/* /sources/css/style.css */
:root {
  color-scheme: dark;
  --bg: #040914;
  --bg-soft: rgba(10, 18, 32, 0.92);
  --text: #e9eef5;
  --sekundaer: #a9b7c6;
  --akzent-start: #00b4ff;
  --akzent-ende: #2ad6ff;
  --max-breite: 1120px;
  --radius: 18px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(42, 214, 255, 0.18), transparent 60%), var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--akzent-ende);
  outline-offset: 4px;
}

button {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

main {
  display: block;
}

section {
  background: var(--bg);
}

.wrap {
  max-width: var(--max-breite);
  margin-inline: auto;
  padding: clamp(2.2rem, 4vw, 3.2rem) 1.2rem;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}

p {
  margin: 0;
}

/* Hero */
#hero {
  padding-top: clamp(3rem, 7vw, 5.2rem);
  padding-bottom: clamp(3rem, 7vw, 5.2rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.4rem);
  max-width: 38rem;
  text-align: left;
}

.hero-kicker{
  font-size: clamp(.9rem, 1.2vw, 1.05rem);
  color:#a9b7c6;
  letter-spacing:.06em;
  margin: 0 0 .25rem 0;
}
.hero-title{
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  font-weight: 800;
  color:#e9eef5;
  margin: .2rem 0 .8rem;
}

.hero-lead {
  color: var(--sekundaer);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2.2vw, 1.1rem);
}

.hero-photo{
  position: relative;
  justify-self: end;
  width: clamp(280px, 33vw, 440px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;          /* sorgt für einen sauberen, kreisrunden Zuschnitt */
  isolation: isolate;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 12px rgba(10,16,22,.35) inset,
    0 0 80px rgba(0,180,255,.14),
    0 0 180px rgba(42,214,255,.10);
}
.hero-photo::before{
  content:"";
  position:absolute; inset:-12%;
  border-radius:50%;
  background:
    radial-gradient(closest-side, rgba(42,214,255,.22), transparent 68%),
    radial-gradient(closest-side, rgba(0,180,255,.12), transparent 76%);
  filter: blur(2px);
  z-index:-1;
}
.hero-photo img{
  width: 86%;
  height: 86%;
  object-fit: cover;
  border-radius: 50%;
  /*
   * Ziel des Ausschnitts:
   *  - Stirn frei halten
   *  - Fokus auf Kopf und obere Schultern
   *  - Hemd-Logo dezent halten
   */
  object-position: 48% 42%;
  transform: translate(-2%, 4%);
  display: block;
}
@media (max-width: 1200px){
  .hero-photo img{
    width: 88%;
    height: 88%;
    object-position: 48% 46%;
    transform: translate(-2%, 6%);
  }
}
@media (max-width: 860px){
  .hero-photo{ justify-self:center; }
  .hero-photo img{
    width: 90%;
    height: 90%;
    object-position: 48% 50%;
    transform: translate(-2%, 6%);
  }
}

.hero-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.1rem;
  font-weight: 700;
  color: #e9eef5;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(0, 180, 255, 0.18), rgba(42, 214, 255, 0.0)),
    linear-gradient(90deg, #00b4ff, #2ad6ff);
  background-size: 100% 100%, 0 2px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 100%;
  box-shadow: 0 10px 36px rgba(0, 180, 255, 0.16);
  transition: background-size 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-next::after {
  content: "›";
  font-size: 1.15em;
  transform: translateY(1px);
}

.hero-next:hover,
.hero-next:focus-visible {
  background-size: 100% 100%, 100% 2px;
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(0, 180, 255, 0.22);
}

.hero-next:focus-visible {
  outline: 2px solid rgba(42, 214, 255, 0.9);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

.btn:focus-visible {
  outline: 2px solid rgba(42, 214, 255, 0.85);
  outline-offset: 4px;
  box-shadow: 0 0 0 4px rgba(0, 180, 255, 0.28);
}

.btn-primary {
  background: linear-gradient(90deg,#00b4ff,#2ad6ff);
  color: #0a1016;
  box-shadow: 0 10px 30px rgba(0,180,255,.20);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-1px);
}

.btn-outline {
  color:#e9eef5;
  border: 1px solid #2ad6ff;
  background: transparent;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-1px);
}

/* Leistungen */
#warum-ich h2,
#leistungen h2,
#prozess h2,
#kontakt h2 {
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--bg-soft);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 180, 255, 0.06);
  display: grid;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card p {
  color: var(--sekundaer);
}

.card-note {
  color: #a9b7c6;
  font-size: 0.85rem;
  line-height: 1.4;
}

.card-note small {
  display: block;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 180, 255, 0.1);
}

.cards-cta {
  margin-top: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  justify-content: center;
}

.cards-cta .btn {
  min-width: min(18rem, 100%);
}

/* Prozess */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.steps li {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 1rem;
  display: grid;
  gap: 0.4rem;
}

.steps strong {
  font-size: 1.05rem;
}

.steps span {
  color: var(--sekundaer);
  font-size: 0.95rem;
}

/* Kontakt */
.lead {
  color: var(--sekundaer);
  margin-bottom: 0.8rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.meta {
  color: var(--sekundaer);
  font-size: 0.95rem;
  margin-top: 0.6rem;
}

/* Fusszeile */
.fusszeile {
  background: rgba(6, 12, 24, 0.85);
  border-top: 1px solid rgba(42, 214, 255, 0.12);
}

.fusszeile-inhalt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.fuss-links {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.95rem;
}

.fuss-links a {
  color: var(--sekundaer);
}

.fuss-links a:hover,
.fuss-links a:focus-visible {
  color: var(--text);
}

/* Reveal-Animation */
[data-reveal],
.reveal-ziel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].ist-sichtbar,
.reveal-ziel.ist-sichtbar {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    justify-items: center;
    text-align: center;
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-photo {
    justify-self: center;
  }

  .hero-next {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-top: clamp(4rem, 11vw, 5rem);
    padding-bottom: clamp(3.4rem, 12vw, 5.2rem);
  }

  .hero-grid {
    gap: clamp(2.4rem, 8vw, 3.2rem);
  }

  .hero-copy {
    max-width: 32rem;
    padding-inline: 1.2rem;
    text-align: center;
    justify-items: center;
  }

  .hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
  }

  .hero-title {
    font-size: clamp(1.95rem, 7vw, 2.45rem);
    line-height: 1.12;
  }

  .hero-lead {
    line-height: 1.7;
    padding-inline: 0.2rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
    width: min(28rem, 90%);
    margin-inline: auto;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-next {
    display: flex;
    width: min(28rem, 90%);
    margin-inline: auto;
    margin-top: 1rem;
    justify-content: center;
    text-align: center;
  }

  .btn {
    padding-block: 1rem;
  }

  .hero-photo {
    width: min(300px, 78vw);
    box-shadow:
      0 0 0 10px rgba(10, 16, 22, 0.4) inset,
      0 0 60px rgba(0, 180, 255, 0.12),
      0 0 120px rgba(42, 214, 255, 0.08);
    margin-top: 1.8rem;
  }

  .hero-photo::before {
    background:
      radial-gradient(closest-side, rgba(42, 214, 255, 0.16), transparent 72%),
      radial-gradient(closest-side, rgba(0, 180, 255, 0.08), transparent 78%);
  }

  .hero-photo img {
    width: 92%;
    height: 92%;
    object-position: 50% 44%;
    transform: translate(-1%, 5%);
  }
}

@media (max-width: 980px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* Bewegungsreduktion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
