/* ==========================================================================
   GeoKraft – Design-Tokens & Basisstile
   Quelle: CLAUDE.md (Markenguide). Schriften selbst gehostet (kein
   Google-Fonts-CDN, DSGVO).
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
}

:root {
  /* Farben – Grün/Beige/Schwarz, Koralle ausschließlich für den Haupt-CTA
     "Lösungen entdecken + Angebot erhalten" (siehe CLAUDE.md Wording-/Farbregel) */
  --green: #085a30;
  --green-deep: #06421f;
  --ink: #10160f;
  --ink-soft: #4a5647;
  --coral: #ff6b5c;
  --coral-ink: #2a0e09;
  --cream: #f6f1e4;
  --bg: #f6f1e4;
  --surface: var(--cream);
  --border: #e2dac4;
  --on-dark: #f6f1e4;
  --on-dark-soft: #b9c4b3;

  /* Typografie */
  --font-display: "Poppins", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Abstände */
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 1.75rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;
  --radius: 18px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 var(--gap-sm);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

p {
  margin: 0 0 var(--gap-sm);
  max-width: 62ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 var(--gap-xs);
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--coral);
  color: var(--coral-ink);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px -8px rgb(255 107 92 / 60%);
}

.btn--secondary {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.btn--beige {
  background: var(--cream);
  color: var(--green-deep);
}

.btn--beige:hover {
  box-shadow: 0 8px 24px -8px rgb(0 0 0 / 25%);
}

.btn--ghost-on-dark {
  background: transparent;
  border-color: var(--on-dark);
  color: var(--on-dark);
}

/* ---- Header/Nav ----------------------------------------------------------- */

.site-header {
  background: var(--green);
  color: var(--on-dark);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  padding: 0.9rem 0;
}

.site-header__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--on-dark);
}

.site-header__logo img {
  height: 32px;
  width: auto;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header__actions .btn {
  padding: 0.85rem 1.6rem;
  font-size: 1.05rem;
}

/* ---- Sections -------------------------------------------------------------- */

.section {
  padding: var(--gap-xl) 0;
}

.section--surface {
  background: var(--surface);
}

.section--green {
  background: var(--green-deep);
  color: var(--on-dark);
}

.section--green .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.section--services .services-grid__item h3 {
  color: var(--ink);
}

.section--green p {
  color: var(--on-dark-soft);
}

.section--split {
  background: var(--green);
}

.section--split-cta {
  background: var(--green-deep);
  color: var(--on-dark);
}

.section--split-cta p {
  color: var(--on-dark-soft);
}

.section--ink {
  background: var(--ink);
  color: var(--on-dark);
}

.section--ink .eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.section--ink p {
  color: var(--on-dark-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--gap-md);
  margin-top: var(--gap-lg);
}

.services-grid__item {
  min-width: 0;
  padding: var(--gap-md);
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.services-grid__item h3 {
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.services-grid__item p {
  margin: 0;
  color: var(--ink-soft);
}

/* ---- Split-Duo: Training/Physiotherapie diagonal ineinander übergehend, ---- */
/* fliegen beim Scrollen von links/rechts ins Bild (siehe .is-visible)         */

.split-duo {
  position: relative;
  width: 100%;
  height: clamp(380px, 37vw, 620px);
  overflow: hidden;
  background: var(--green);
}

.split-duo__side {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
  cursor: pointer;
  transition: transform 1.1s cubic-bezier(0.16, 0.8, 0.24, 1), opacity 1.1s ease;
}

.split-duo__side:hover img {
  transform: scale(1.04);
}

.split-duo__side img {
  position: absolute;
  top: 0;
  height: 100%;
  width: 56%;
  object-fit: contain;
  background: var(--green);
  transition: transform 0.4s ease;
}

.split-duo__side--left {
  clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%);
  transform: translateX(-60%);
  opacity: 0;
}

.split-duo__side--left img {
  left: 0;
}

.split-duo__side--right {
  clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%);
  transform: translateX(60%);
  opacity: 0;
}

.split-duo__side--right img {
  right: 0;
}

.split-duo.is-visible .split-duo__side--left,
.split-duo.is-visible .split-duo__side--right {
  transform: translateX(0);
  opacity: 1;
}

.split-duo__label {
  position: absolute;
  bottom: var(--gap-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-dark);
  background: rgb(6 66 31 / 88%);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
}

.split-duo__side--left .split-duo__label {
  left: var(--gap-md);
}

.split-duo__side--right .split-duo__label {
  right: var(--gap-md);
}

@media (prefers-reduced-motion: reduce) {
  .split-duo__side {
    transition: none;
    transform: translateX(0);
    opacity: 1;
  }
}

@media (max-width: 700px) {
  .split-duo__side img {
    width: 100%;
    height: 58%;
  }
  .split-duo__side--left {
    clip-path: polygon(0 0, 100% 0, 100% 56%, 0 44%);
    transform: translateY(-60%);
  }
  .split-duo__side--left img {
    top: 0;
    left: 0;
  }
  .split-duo__side--right {
    clip-path: polygon(0 44%, 100% 56%, 100% 100%, 0 100%);
    transform: translateY(60%);
  }
  .split-duo__side--right img {
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
  }
  .split-duo__side--left .split-duo__label {
    top: var(--gap-md);
    bottom: auto;
  }
}

/* ---- Hero -------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  opacity: 0.96;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgb(6 12 8 / 0%) 0%,
    rgb(6 12 8 / 0%) 38%,
    rgb(6 12 8 / 55%) 62%,
    rgb(6 12 8 / 92%) 100%
  );
}

.hero__grid {
  position: relative;
  z-index: 1;
  min-height: clamp(560px, 78vw, 720px);
  padding: var(--gap-xl) 0 var(--gap-lg);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: var(--gap-lg);
  align-items: end;
}

.hero__grid--single {
  grid-template-columns: 1fr;
}

.hero__content {
  max-width: 640px;
}

.hero__eyebrow {
  color: var(--green);
  opacity: 1;
  font-size: 0.68rem;
  text-shadow:
    0 0 2px rgb(246 241 228 / 95%),
    0 0 6px rgb(246 241 228 / 95%),
    0 0 16px rgb(246 241 228 / 80%);
}

.hero__eyebrow--light {
  color: var(--cream);
  opacity: 0.95;
  text-shadow:
    0 1px 2px rgb(0 0 0 / 90%),
    0 2px 8px rgb(0 0 0 / 80%),
    0 0 18px rgb(0 0 0 / 60%);
}

.hero__content h1 {
  text-shadow: 0 4px 20px rgb(0 0 0 / 45%);
}

.hero--physio .hero__content h1 {
  font-size: clamp(1.6rem, 4vw, 2.72rem);
}

.hero__offer {
  font-size: clamp(0.8rem, 1.82vw, 0.98rem);
  color: var(--on-dark-soft);
  max-width: 56ch;
  text-shadow: 0 2px 10px rgb(0 0 0 / 45%);
}

/* Kurzfassung existiert nur fuer Mobile/Tablet (siehe Media Queries
   unten) - auf Desktop bleibt sie ausgeblendet, dort steht die
   Langfassung. */
.hero__offer--short {
  display: none;
}

.hero__ctas {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: var(--gap-md) 0 var(--gap-sm);
}

.hero__secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--on-dark-soft);
  text-shadow: 0 2px 8px rgb(0 0 0 / 55%);
}

/* Unter 860px: Foto wird zu einem festen Banner oben, Text läuft darunter auf
   hellem Grund weiter. Das garantiert unabhängig von Bildausschnitt und
   Textlänge, dass nie Text über einem Gesicht landet (siehe CLAUDE.md-Vorgabe). */
/* Unter 860px: Text bleibt (wie am Desktop) auf dem Foto, aber oben verankert
   statt unten - dort ist bei diesem Foto reichlich "Deckenluft" bevor die
   Köpfe beginnen, sodass Text und Gesichter sich nie überschneiden, ohne
   dass Bild und Text in zwei getrennte Blöcke auseinanderfallen. */
@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
    min-height: 600px;
    align-items: start;
    padding-top: var(--gap-lg);
  }

  .hero__media::after {
    background: linear-gradient(
      180deg,
      rgb(6 12 8 / 60%) 0%,
      rgb(6 12 8 / 45%) 26%,
      rgb(6 12 8 / 0%) 50%,
      rgb(6 12 8 / 70%) 100%
    );
  }

  .hero__content {
    max-width: 88%;
  }

  .hero__content h1 {
    font-size: clamp(1.5rem, 5.8vw, 2.2rem);
    line-height: 1.15;
  }

  .hero--physio .hero__content h1 {
    font-size: clamp(1.2rem, 4.64vw, 1.76rem);
  }

  /* Auf Mobile/Tablet läuft eine eigens verfasste Kurzfassung statt der
     Langfassung vom Desktop (siehe hero__offer--full / --short in den
     HTML-Dateien) - kürzer als die Desktop-Version zu kürzen, statt sie
     nur kleiner zu setzen oder per Zeilenlimit abzuschneiden. Kräftigerer
     Text-Schatten statt nur auf den Foto-Verlauf zu vertrauen, da der
     sichere ("dunkle") Bereich je nach Foto unterschiedlich weit reicht. */
  .hero__offer--full {
    display: none;
  }

  .hero__offer--short {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 40ch;
    text-shadow:
      0 1px 3px rgb(0 0 0 / 85%),
      0 2px 10px rgb(0 0 0 / 70%);
  }

  .hero__ctas {
    margin: 0.8rem 0 0.4rem;
  }

  /* Redundant zum immer sichtbaren Header-Button ("Zur Physiotherapie" /
     "Zum Gesundheitsstudio") - hier ausgeblendet, damit der Link nicht in
     die Gesichtszone des Fotos rutscht. */
  .hero__secondary-link {
    display: none;
  }

  /* Gesundheitstraining-Seite: Inhalt soll ganz unten im Above-the-Fold-
     Bereich sitzen statt oben ("Deckenluft"-Ankerung), da bei diesem Foto
     der untere Bildrand frei von Gesichtern ist. */
  .hero--anchor-bottom .hero__grid {
    align-items: end;
  }

  .hero--anchor-bottom .hero__media::after {
    background: linear-gradient(
      180deg,
      rgb(6 12 8 / 0%) 0%,
      rgb(6 12 8 / 0%) 46%,
      rgb(6 12 8 / 40%) 68%,
      rgb(6 12 8 / 72%) 100%
    );
  }
}

/* Echtes Mobil (<=640px), nur Startseite mit Video: Button etwas kleiner
   (kein Umbruch mehr) und weiter unten, damit er nicht auf den Gesichtern
   der beiden im Hintergrundfoto landet; Video rutscht dadurch ebenfalls
   ein Stück tiefer. */
@media (max-width: 640px) {
  .hero--with-video .hero__ctas {
    margin-top: 6.5rem;
  }

  .hero__ctas .btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.3rem;
    white-space: nowrap;
  }
}

/* Tablet (641-860px), nur Startseite mit Video: Video deutlich kleiner und
   rechtsbündig, Text/Buttons rutschen als Spalte daneben, weiter unten
   verankert statt oben auf dem Foto. */
@media (min-width: 641px) and (max-width: 860px) {
  .hero--with-video .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(230px, 0.68fr);
    align-items: end;
    min-height: 760px;
    padding-top: var(--gap-xl);
  }

  .hero--with-video .video-card {
    aspect-ratio: 4 / 3;
  }

  .hero--with-video .hero__media::after {
    background: linear-gradient(
      180deg,
      rgb(6 12 8 / 0%) 0%,
      rgb(6 12 8 / 0%) 38%,
      rgb(6 12 8 / 55%) 62%,
      rgb(6 12 8 / 92%) 100%
    );
  }

  .hero--with-video .hero__content {
    max-width: 100%;
  }

  .hero--with-video .hero__content h1 {
    font-size: clamp(1.8rem, 4.2vw, 2.4rem);
    line-height: 1.15;
  }

  /* Tablet hat mehr Luft als echtes Mobile: Kurzfassung etwas größer -
     gilt fuer alle Hero-Varianten, nicht nur mit Video. */
  .hero__offer--short {
    font-size: 1rem;
    max-width: 48ch;
  }

  .hero--with-video .hero__secondary-link {
    display: inline-flex;
  }

  .hero--with-video .hero__eyebrow {
    color: var(--cream);
    opacity: 0.95;
    text-shadow:
      0 1px 2px rgb(0 0 0 / 90%),
      0 2px 8px rgb(0 0 0 / 80%),
      0 0 18px rgb(0 0 0 / 60%);
  }
}

/* ---- Video card (im Hero und in der Video-Sektion) ------------------------ */

.video-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / 55%);
  text-decoration: none;
}

.video-card img,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
}

.video-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(6 12 8 / 5%) 55%, rgb(6 12 8 / 75%) 100%);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -6px rgb(0 0 0 / 45%);
  transition: transform 0.15s ease, opacity 0.2s ease;
  cursor: pointer;
}

.video-card:hover .video-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card.is-playing::before,
.video-card.is-playing .video-card__play,
.video-card.is-playing .video-card__label {
  opacity: 0;
  pointer-events: none;
}

.video-card video::-webkit-media-controls {
  display: none !important;
}

.video-card.is-playing video::-webkit-media-controls {
  display: flex !important;
}

.video-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
  fill: var(--green-deep);
}

.video-card__label {
  position: absolute;
  left: var(--gap-sm);
  right: var(--gap-sm);
  bottom: var(--gap-sm);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.video-card--wide {
  aspect-ratio: 16 / 9;
}

/* ---- Öffnungszeiten (Vor-Ort-Sektion) ---------------------------------- */

.opening-hours {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: var(--gap-sm) 0 var(--gap-md);
}

.opening-hours__row {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.opening-hours__row strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.opening-hours__row span {
  font-family: var(--font-mono);
  color: var(--ink-soft);
}

/* ---- Google-Maps-Einbettung: Klick-zum-Laden -------------------------- */

.map-embed {
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: var(--gap-md) 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-embed__load {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--cream);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  transition: background 0.15s ease;
}

.map-embed__load:hover {
  background: var(--border);
}

.map-embed__load svg {
  width: 28px;
  height: 28px;
  fill: var(--green);
}

/* ---- Stat / testimonial callouts ---------------------------------------- */

.stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.stat__num {
  font-size: 1.3rem;
  font-weight: 500;
}

.stat__label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
}

/* ---- Erfolgskarten-Karussell: 2 kleine + 1 große, randlos, Wechsel alle 5s -- */

.testi-carousel {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--gap-sm);
  align-items: center;
  margin-top: var(--gap-lg);
}

.testi-carousel__slot {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  position: relative;
}

.testi-carousel__slot--side {
  opacity: 0.65;
  transition: opacity 0.5s ease;
}

.testi-carousel__slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface);
  display: block;
}

@media (max-width: 700px) {
  .testi-carousel {
    grid-template-columns: 1fr;
  }
  .testi-carousel__slot--side {
    display: none;
  }
}

/* Rondell: kleine, durchlaufende Kartenreihe mit allen Testimonials, randlos */
.testi-rondell {
  margin-top: var(--gap-lg);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}

.testi-rondell__track {
  display: flex;
  gap: 4px;
  width: max-content;
  animation: testi-scroll 90s linear infinite;
}

.testi-rondell__track img {
  height: 160px;
  width: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--surface);
  display: block;
  flex-shrink: 0;
}

.testi-rondell:hover .testi-rondell__track {
  animation-play-state: paused;
}

@keyframes testi-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .testi-rondell__track {
    animation: none;
    overflow-x: auto;
  }
}

/* ---- Footer -------------------------------------------------------------- */

/* ---- Team-Grid: ein Foto pro Mitarbeiter:in, klickbar zum Instagram-Interview */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: var(--gap-lg);
}

@media (max-width: 520px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  text-decoration: none;
  background: var(--ink);
}

.team-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-card:hover img {
  transform: scale(1.05);
}

.team-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgb(6 12 8 / 88%) 100%);
}

.team-card__label {
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.7rem;
  z-index: 1;
  color: var(--on-dark);
}

.team-card__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  display: block;
  margin-bottom: 0.35rem;
}

.team-card__role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--on-dark-soft);
  display: block;
}

.team-card__role-line {
  display: block;
  line-height: 1.5;
}

.team-card__ig {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgb(6 12 8 / 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.team-card:hover .team-card__ig,
.team-card:focus-visible .team-card__ig {
  opacity: 1;
}

.team-card__ig svg {
  width: 16px;
  height: 16px;
  fill: var(--on-dark);
}

.site-footer {
  background: var(--ink);
  color: var(--on-dark-soft);
  padding: var(--gap-md) 0 var(--gap-sm);
  font-size: 0.85rem;
  line-height: 1.5;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-value {
  color: var(--on-dark);
}

.site-footer__top {
  margin-bottom: var(--gap-md);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap-lg);
  padding-bottom: var(--gap-sm);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
  margin-bottom: 0.5rem;
}

.site-footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.site-footer__legal {
  font-size: 0.8rem;
  opacity: 0.7;
}

.site-footer__cancel {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.12rem;
}

/* ---- Zurück-nach-oben-Button --------------------------------------------- */

.back-to-top {
  position: fixed;
  right: var(--gap-sm);
  bottom: var(--gap-sm);
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 45%);
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background 0.15s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--green-deep);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: var(--on-dark);
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: opacity 0.01s linear, visibility 0.01s linear;
  }
}

/* ---- Cookie-Consent-Banner ------------------------------------------------ */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 500;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--gap-md) var(--gap-sm);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1 1 420px;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
}

.cookie-banner__text a {
  color: var(--on-dark);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  flex-shrink: 0;
}

.cookie-banner__actions .btn {
  padding: 0.7rem 1.3rem;
  font-size: 0.92rem;
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__text {
    /* flex-basis wirkt in flex-direction:column auf die Höhe statt die Breite -
       ohne diesen Reset erzwingt der Desktop-Wert 420px eine Mindesthöhe. */
    flex-basis: auto;
  }

  .cookie-banner__actions .btn {
    flex: 1;
    justify-content: center;
  }
}

/* ---- Rechtliche Seiten (Impressum, Datenschutz) ------------------------- */

.legal-page {
  max-width: 720px;
}

.legal-page h1 {
  margin-bottom: var(--gap-md);
}

.legal-page h2 {
  margin-top: var(--gap-lg);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
}

.legal-page p {
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: none;
}

/* ---- Kündigungsseite --------------------------------------------------- */

.cancel-intro {
  max-width: 680px;
  text-align: center;
  margin: 0 auto;
}

.cancel-intro h1 {
  color: var(--on-dark);
}

.cancel-intro > p {
  color: var(--on-dark-soft);
}

.cancel-video {
  /* Die Quelldatei ist ein 9:16-Hochformat-Container, in dem der eigentliche
     Bildinhalt nur einen mittleren Streifen einnimmt (feste schwarze Balken
     oben/unten, ca. 218px/220px bei 640px Höhe -> Inhaltsverhältnis 360:202).
     object-fit:cover auf ein Element in genau diesem Verhaeltnis schneidet
     die Balken weg, ohne die Datei neu zuschneiden zu muessen. */
  position: relative;
  max-width: 640px;
  aspect-ratio: 360 / 202;
  margin: var(--gap-lg) auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.cancel-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cancel-reasons {
  max-width: 640px;
  margin: 0 auto var(--gap-lg);
  text-align: center;
}

.cancel-reasons h2 {
  color: var(--on-dark);
}

.cancel-reasons > p {
  color: var(--on-dark-soft);
}

.cancel-reasons__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--gap-sm);
  margin: var(--gap-sm) 0 var(--gap-md);
  text-align: left;
}

.cancel-reasons__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--on-dark-soft);
  border-radius: var(--radius);
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cancel-reasons__item:has(input:checked) {
  border-color: var(--cream);
  background: rgb(246 241 228 / 12%);
}

.cancel-reasons__item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--cream);
}

#reasons-confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cancel-choice h2 {
  color: var(--on-dark);
}

.cancel-choice__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap-sm);
  max-width: 560px;
  margin: 0 auto;
}

.cancel-choice__btn {
  justify-content: center;
  width: 100%;
}

/* ---- Dialoge ------------------------------------------------------------ */

.cancel-dialog {
  border: none;
  border-radius: var(--radius);
  padding: var(--gap-lg);
  max-width: 520px;
  width: calc(100% - 2rem);
  background: var(--surface);
  color: var(--ink);
}

.cancel-dialog::backdrop {
  background: rgb(6 12 8 / 65%);
}

.cancel-dialog__close-form {
  display: flex;
  justify-content: flex-end;
  margin: -0.5rem -0.5rem 0.5rem 0;
}

.cancel-dialog__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 0.25rem 0.6rem;
}

.cancel-dialog h2 {
  margin-top: 0.25rem;
}

.cancel-form {
  display: flex;
  flex-direction: column;
  gap: var(--gap-sm);
  margin-top: var(--gap-sm);
}

.cancel-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.cancel-form input[type="text"],
.cancel-form input[type="email"],
.cancel-form select,
.cancel-form textarea {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  color: var(--ink);
}

.cancel-form textarea {
  resize: vertical;
}

.cancel-form__fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--gap-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cancel-form__fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 0.4rem;
}

.cancel-form__radio {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.cancel-form__date {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cancel-success {
  text-align: center;
  padding: var(--gap-sm) 0;
}

.cancel-success .btn {
  margin-top: var(--gap-sm);
}

/* ---- Utility --------------------------------------------------------------- */

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

@media (max-width: 640px) {
  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 0.6rem;
    padding: 0.75rem 0;
  }

  .site-header__logo {
    flex: 1 1 100%;
  }

  .site-header__actions {
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .site-header__actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ---- Social-Media-Bereich ---------------------------------------------- */

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: var(--gap-lg);
}

.social-links__item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.4rem;
  background: rgb(246 241 228 / 6%);
  border: 1px solid rgb(246 241 228 / 16%);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--on-dark);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.social-links__item:hover {
  transform: translateY(-2px);
  background: rgb(246 241 228 / 10%);
  border-color: var(--green);
  box-shadow: 0 12px 24px -16px rgb(0 0 0 / 55%);
}

.social-links__icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links__icon svg {
  width: 22px;
  height: 22px;
  fill: var(--on-dark);
}

.social-links__text {
  display: flex;
  flex-direction: column;
}

.social-links__text strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
}

.social-links__handle {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--on-dark-soft);
}

/* ---- Blog / Lösungskärtchen-Artikel ------------------------------------ */

.loesungen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap-sm);
  margin-top: var(--gap-lg);
}

.loesungen-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.loesungen-card:hover {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 12px 24px -16px rgb(6 12 8 / 35%);
}

.loesungen-card__img {
  width: 100%;
  aspect-ratio: 900 / 431;
  object-fit: cover;
  display: block;
}

.loesungen-card__body {
  padding: var(--gap-md);
}

.loesungen-card__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.5rem;
}

.loesungen-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.loesungen-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.loesungen-teaser {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--gap-lg);
  align-items: center;
}

.loesungen-teaser__media img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.loesungen-teaser__content .btn {
  margin-top: var(--gap-sm);
}

@media (max-width: 700px) {
  .loesungen-teaser {
    grid-template-columns: 1fr;
  }
}

.article-hero {
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--gap-lg) 0;
}

.article-hero__eyebrow {
  color: var(--cream);
  opacity: 0.85;
}

.article-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--on-dark-soft);
  margin-top: 0.3rem;
}

.article-hero__img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: var(--gap-md);
}

.article-body {
  padding-top: var(--gap-xl);
  padding-bottom: var(--gap-xl);
}

.article-body h2 {
  margin-top: var(--gap-lg);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.article-body h3 {
  margin-top: var(--gap-md);
  font-size: 1.2rem;
}

.article-body p {
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: none;
}

.article-body ul,
.article-body ol {
  padding-left: 1.3rem;
  margin-bottom: 1.2rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.article-body figure {
  margin: var(--gap-md) 0;
  max-width: 640px;
}

.article-body figure.figure--sm {
  max-width: 240px;
}

.article-body .figure-row {
  display: flex;
  gap: var(--gap-sm);
  margin: var(--gap-md) 0;
}

.article-body .figure-row figure {
  flex: 1 1 0;
  margin: 0;
  min-width: 0;
}

@media (max-width: 520px) {
  .article-body .figure-row {
    flex-direction: column;
  }
}

.article-video {
  margin: var(--gap-md) 0 var(--gap-lg);
}

.article-body img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 420px;
  border-radius: var(--radius);
  display: block;
}

.is-zoomable {
  cursor: zoom-in;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gap-lg) var(--gap-md);
  background: rgb(6 12 8 / 92%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px -20px rgb(0 0 0 / 70%);
  cursor: zoom-out;
}

.lightbox__close {
  position: absolute;
  top: var(--gap-sm);
  right: var(--gap-sm);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgb(246 241 228 / 12%);
  color: var(--on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.lightbox__close:hover {
  background: rgb(246 241 228 / 22%);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox {
    transition: opacity 0.01s linear, visibility 0.01s linear;
  }
}

.article-body figcaption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

.article-body sup {
  font-size: 50%;
  vertical-align: super;
  line-height: 0;
}

.article-yt {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 640px;
  margin: var(--gap-md) 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}

.article-yt__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-yt__play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(16 22 15 / 35%);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-yt__play:hover {
  background: rgb(16 22 15 / 50%);
}

.article-yt__play svg {
  width: 60px;
  height: 60px;
  fill: var(--cream);
  filter: drop-shadow(0 4px 12px rgb(0 0 0 / 40%));
}

.article-yt__label {
  position: absolute;
  left: var(--gap-sm);
  bottom: var(--gap-sm);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--on-dark);
  background: rgb(16 22 15 / 55%);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
}

.article-yt iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.article-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  margin-bottom: var(--gap-lg);
}

.article-toc__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin-bottom: 0.6rem;
  display: block;
}

.article-toc ol {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink-soft);
}

.article-toc a {
  color: var(--ink);
  text-decoration: none;
}

.article-toc a:hover {
  text-decoration: underline;
}

.article-sources {
  margin-top: var(--gap-lg);
  border-top: 1px solid var(--border);
  padding-top: var(--gap-md);
}

.article-sources summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--green);
}

.article-sources ol {
  margin-top: 0.8rem;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.article-sources li {
  margin-bottom: 0.5rem;
}
