/* ============================================================
   SOLAREL Homepage — Layout & Komponenten
   Farben/Typo/Raster ausschließlich über css/brand-tokens.css
   ============================================================ */

@import url('brand-tokens.css');

/* ---------- Reset & Basis ---------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); }

p { margin: 0; }

a { color: var(--accent-text); }

:focus-visible {
  outline: 3px solid var(--solarel-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--solarel-deep);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-s) 0;
}
.skip-link:focus { left: 0; }

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.container--wide {
  width: min(var(--container-wide), 100% - 2 * var(--gutter));
}

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.eyebrow::before {
  content: '';
  width: 2rem;
  height: 2px;
  background: var(--accent-graphic);
  flex: none;
}
.on-dark .eyebrow { color: var(--solarel-bright); }

.section-title {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-head);
  letter-spacing: var(--track-display);
  margin-top: var(--space-4);
  max-width: 22ch;
  text-wrap: balance;
}

.lead {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 56ch;
  margin-top: var(--space-4);
}
.on-dark .lead { color: var(--text-muted-on-dark); }

.section {
  padding-block: var(--section-pad);
}
.section--stage {
  background: var(--bg-stage);
  color: var(--text-on-dark);
}

/* ---------- Reveal-Motion (erklärend, einmalig) ---------- */

@media (prefers-reduced-motion: no-preference) {
  /* Nur wenn JS läuft — ohne JS bleibt alles sichtbar */
  html.js .reveal {
    opacity: 0;
    translate: 0 18px;
    transition: opacity var(--dur-reveal) var(--ease-out), translate var(--dur-reveal) var(--ease-out);
  }
  html.js .reveal.is-visible { opacity: 1; translate: 0 0; }
  html.js .reveal:nth-child(2) { transition-delay: 0.08s; }
  html.js .reveal:nth-child(3) { transition-delay: 0.16s; }
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: 1.1rem;
}

.site-header .brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.site-header .brand img { height: 1.5rem; width: auto; }
.site-header .brand .brand__light { display: none; }

.site-nav {
  display: none;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}
@media (min-width: 56rem) {
  .site-nav { display: flex; }
}

.site-nav a {
  font-size: var(--text-small);
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  padding: 0.7rem 0.25rem;
  transition: opacity var(--dur-quick) ease;
}
.site-nav a:hover { opacity: 0.7; }

.site-header .cta-pill {
  font-size: var(--text-small);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--anthrazit);
  background: var(--white);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: transform var(--dur-quick) var(--ease-out), background var(--dur-quick) ease;
}
.site-header .cta-pill:hover { transform: scale(1.04); }

/* Header nach Scroll: heller Grund, dunkles Logo */
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--hairline);
}
.site-header.is-scrolled .brand .brand__dark { display: none; }
.site-header.is-scrolled .brand .brand__light { display: block; }
.site-header.is-scrolled .site-nav a { color: var(--anthrazit); }
.site-header.is-scrolled .cta-pill {
  background: var(--solarel-deep);
  color: var(--white);
}

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg-stage);
  color: var(--text-on-dark);
  overflow: clip;
}

.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media video {
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__media video.is-playing { opacity: 1; }

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(1, 12, 27, 0.82) 0%, rgba(1, 12, 27, 0.28) 45%, rgba(1, 12, 27, 0.30) 100%);
}

.hero__content {
  position: relative;
  padding-top: 7rem;
}

.hero__claim {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--solarel-bright);
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: var(--leading-tight);
  letter-spacing: var(--track-display-tight);
  max-width: 14ch;
  margin-top: var(--space-3);
  text-wrap: balance;
}

.hero__sub {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--text-muted-on-dark);
  max-width: 46ch;
  margin-top: var(--space-4);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

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

.btn {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform var(--dur-quick) var(--ease-out), opacity var(--dur-quick) ease;
}
.btn:hover { transform: scale(1.04); }
.btn--primary { background: var(--white); color: var(--anthrazit); }
.btn--ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}
.btn--deep { background: var(--solarel-deep); color: var(--white); }
.btn--on-paper {
  color: var(--solarel-deep);
  border: 1px solid var(--hairline);
  background: var(--white);
}

/* ---------- Kennzahlen-Zeile ---------- */

.hero__stats {
  position: relative;
  list-style: none;
  margin: var(--space-6) 0 0;
  border-top: 1px solid var(--hairline-on-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: var(--space-4) var(--space-5);
  padding-inline: 0;
  gap: var(--space-3);
}
.stat .stat__value { display: block; }
.stat .stat__label { display: block; }

.stat .stat__value {
  font-family: var(--font-display);
  font-size: var(--text-stat);
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.05;
}
.stat .stat__label {
  font-size: var(--text-small);
  color: var(--text-muted-on-dark);
  margin-top: 0.35rem;
}

@media (max-width: 40rem) {
  .hero__stats { grid-template-columns: 1fr; gap: var(--space-4); }
  .stat { display: flex; align-items: baseline; gap: 0.75rem; }
  .stat .stat__label { margin-top: 0; }
}

/* ---------- Was wir tun ---------- */

.fields-intro { max-width: 60rem; }

.fields-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .fields-grid { grid-template-columns: repeat(6, 1fr); }
  .field-card:nth-child(1) { grid-column: span 3; }
  .field-card:nth-child(2) { grid-column: span 3; }
  .field-card:nth-child(3),
  .field-card:nth-child(4),
  .field-card:nth-child(5) { grid-column: span 2; }
}

.field-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: clip;
  display: flex;
  flex-direction: column;
}

.field-card figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: clip;
}
.field-card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
@media (prefers-reduced-motion: no-preference) {
  .field-card:hover figure img { transform: scale(1.045); }
}

.field-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.field-card__num {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.field-card h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: 1.2;
}

.field-card p { color: var(--text-muted); font-size: 1rem; }

/* ---------- Projektablauf (Scrollytelling, R3: Bühne dominant) ---------- */

.process { background: var(--tint-sky); }

.process__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}
@media (min-width: 60rem) {
  .process__layout {
    /* Die Bühne ist der Star: ~63 % Breite, Karten kompakt daneben */
    grid-template-columns: minmax(0, 63fr) minmax(0, 37fr);
    gap: var(--space-6);
    align-items: start;
  }
}

/* Sticky-Bühne: so groß, wie der Viewport erlaubt, vertikal zentriert */
.process__stage { display: none; }
@media (min-width: 60rem) {
  .process__stage {
    display: block;
    position: sticky;
    top: max(5.5rem, calc((100vh - min(74vh, 46rem) - 4rem) / 2));
  }
}

.process__stage-frame {
  /* exakt der eingebackene Hintergrund der Schritt-Videos (Ecken aller 8 Poster gemittelt) —
     weicht bewusst vom --paper-Token ab, sonst zeichnet sich das Video als beiger Rahmen ab */
  background: #f6f0e5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  height: min(74vh, 46rem);
  position: relative;
  overflow: clip;
  box-shadow: var(--shadow-card);
}

.process__stage-frame .stage-illu {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.process__stage-frame .stage-illu.is-active { opacity: 1; }

/* Standbild = Poster-Ebene; Video legt sich exakt darüber, sobald es läuft */
.stage-illu img,
.stage-illu video {
  grid-area: 1 / 1;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.stage-illu img { transition: opacity 0.45s ease; }
.stage-illu video { opacity: 0; transition: opacity 0.45s ease; }
.stage-illu video.is-playing { opacity: 1; }
.stage-illu.video-live img { opacity: 0; }

/* ISO-Assets (WS-A) zuerst; eigene SVG-Serie als automatischer Fallback */
.stage-illu svg { display: none; }
.stage-illu.no-iso img, .stage-illu.no-iso video { display: none; }
.stage-illu.no-iso svg { display: block; width: 86%; height: 86%; }

/* Schritt-Leiste an der Bühne: Schritt N von 8 + Titel + Sprung-Segmente */
.process__stagebar { margin-top: var(--space-3); }

.process__stagebar-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.process__stagebar-label #progress-label {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}
.process__stagebar-sep { color: var(--text-muted); }
.process__stagebar-label #progress-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: var(--track-display);
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process__segments {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.5rem;
}
.process__segments .seg {
  flex: 1;
  display: flex;
  align-items: center;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.process__segments .seg span {
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: var(--stone);
  transition: background var(--dur-quick) ease, opacity var(--dur-quick) ease;
}
.process__segments .seg.is-done span { background: var(--solarel-bright); opacity: 0.35; }
.process__segments .seg.is-current span { background: var(--solarel-bright); height: 5px; }
.process__segments .seg:hover span { background: var(--solarel-deep); opacity: 0.5; }
.process__segments .seg.is-current:hover span { background: var(--solarel-bright); opacity: 1; }

/* Schritt-Karten: kompakt, kurze Scroll-Strecke — keine Viewport-Lücken */
.process__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
@media (min-width: 60rem) {
  .process__steps {
    gap: min(22vh, 14rem);
    /* Auslauf unten deutlich laenger als der Schritt-Abstand: Schritt 8
       aktiviert regulaer an der Mittellinie und sein Video bekommt danach
       ~einen Viewport Verweil-Scrollweg auf der gepinnten Buehne, bevor die
       Sektion weiterzieht (Lukas 17.07.). */
    padding-block: min(8vh, 5rem) min(85vh, 50rem);
  }
}

.step {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: var(--space-4) var(--space-5) var(--space-5);
}

/* Desktop: nur der aktive Schritt ist eine „Karte" — der Rest tritt zurück.
   Text bleibt voll lesbar (kein Opacity-Dimmen), die Hierarchie kommt aus
   Fläche, Rahmen und Schatten. */
@media (min-width: 60rem) {
  html.js .step {
    background: transparent;
    border-color: transparent;
    transition: background var(--dur-quick) ease, border-color var(--dur-quick) ease,
                box-shadow var(--dur-quick) ease;
  }
  html.js .step.is-active {
    background: var(--white);
    border-color: var(--solarel-bright);
    box-shadow: var(--shadow-card);
  }
}

.step__num {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-text);
}

.step h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: var(--track-display);
  margin-top: 0.6rem;
}

.step p { color: var(--text-muted); margin-top: 0.75rem; }

/* Mobil: Video volle Breite, Karte direkt darunter (Desktop: Bühne übernimmt) */
.step__media {
  position: relative;
  margin: 0 0 var(--space-4);
  /* gleicher Video-Hintergrund-Ton wie .process__stage-frame (kein beiger Rahmen ums Video) */
  background: #f6f0e5;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  overflow: clip;
}
.step__media img { width: 100%; height: auto; transition: opacity 0.45s ease; }
.step__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.step__media video.is-playing { opacity: 1; }
.step__media.video-live img { opacity: 0; }
.step__media svg { display: none; }
.step__media.no-iso img, .step__media.no-iso video { display: none; }
.step__media.no-iso svg { display: block; padding: 1rem 1.5rem; }
@media (min-width: 60rem) {
  .step .step__media { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .process__stage-frame .stage-illu,
  .stage-illu img, .stage-illu video,
  .step__media img, .step__media video,
  .step { transition: none; }
}

/* ---------- Referenzen ---------- */

.ref-hero {
  margin-top: var(--space-6);
  position: relative;
  border-radius: var(--radius-l);
  overflow: clip;
  background: var(--bg-stage);
  color: var(--white);
  box-shadow: var(--shadow-stage);
}
.ref-hero img {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
  opacity: 0.88;
  min-height: 30rem;
}
.ref-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1, 12, 27, 0.9) 0%, rgba(1, 12, 27, 0.42) 55%, rgba(1, 12, 27, 0.22) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.ref-hero__overlay .eyebrow { color: var(--solarel-bright); }
.ref-hero h3 {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 600;
  letter-spacing: var(--track-display);
  margin-top: var(--space-3);
  max-width: 24ch;
}
.ref-hero p {
  color: var(--text-muted-on-dark);
  max-width: 60ch;
  margin-top: var(--space-3);
}

.ref-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--hairline-on-dark);
}

.ref-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-4);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) {
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64rem) {
  .ref-grid { grid-template-columns: repeat(3, 1fr); }
}

.ref-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: clip;
  display: flex;
  flex-direction: column;
}
.ref-card figure {
  margin: 0;
  aspect-ratio: 16 / 9;
  overflow: clip;
}
.ref-card figure img { width: 100%; height: 100%; object-fit: cover; }

.ref-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.ref-card__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.ref-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: var(--track-display);
}
.ref-card .ref-card__stat {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: var(--track-display);
  margin-top: auto;
  padding-top: 0.75rem;
}
.ref-card p { color: var(--text-muted); font-size: 0.975rem; }

.ref-note {
  margin-top: var(--space-4);
  font-size: var(--text-small);
  color: var(--text-muted);
  max-width: 72ch;
}

/* ---------- Imagefilm ---------- */

.film__frame {
  margin-top: var(--space-6);
  position: relative;
  border-radius: var(--radius-l);
  overflow: clip;
  box-shadow: var(--shadow-stage);
  background: #000;
}
.film__frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.film__poster-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
}
.film__poster-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film__poster-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1, 12, 27, 0.25);
  transition: background var(--dur-quick) ease;
}
.film__poster-btn:hover::after { background: rgba(1, 12, 27, 0.12); }

.film__play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  background: rgba(1, 12, 27, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
}
.film__play svg { width: 1.1rem; height: 1.1rem; }

.film__hint {
  margin-top: var(--space-3);
  font-size: var(--text-small);
  color: var(--text-muted-on-dark);
  text-align: center;
}

/* ---------- Über uns / Standorte ---------- */

.about__layout {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 56rem) {
  .about__layout { grid-template-columns: 6fr 5fr; }
}

.about__facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4) var(--space-5);
  margin: var(--space-5) 0 0;
  padding: 0;
}
.fact .fact__value, .fact .fact__label { display: block; }
.fact .fact__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: var(--track-display);
  color: var(--accent-text);
}
.fact .fact__label { font-size: var(--text-small); color: var(--text-muted); margin-top: 0.2rem; }

.about__media {
  border-radius: var(--radius-l);
  overflow: clip;
  box-shadow: var(--shadow-card);
}

.locations {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
  .locations { grid-template-columns: repeat(3, 1fr); }
}

.location {
  border-top: 2px solid var(--solarel-bright);
  background: var(--white);
  border-radius: 0 0 var(--radius-m) var(--radius-m);
  padding: var(--space-4);
}
.location .location__role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.location h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0.4rem;
}
.location p { color: var(--text-muted); font-size: 0.975rem; margin-top: 0.4rem; }

/* ---------- Kontakt ---------- */

.contact {
  background: var(--solarel-deep);
  color: var(--white);
}
.contact .eyebrow { color: var(--solarel-bright); }
.contact .section-title { color: var(--white); }
.contact .lead { color: rgba(255, 255, 255, 0.78); }

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 1rem;
}
.contact__channels a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.contact__channels a:hover { border-color: var(--white); }
.contact__channels .label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 0.3rem;
}

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

.site-footer {
  background: var(--bg-stage);
  color: var(--text-muted-on-dark);
  padding-block: var(--space-7) var(--space-5);
  font-size: var(--text-small);
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--hairline-on-dark);
}

.site-footer .brand img { height: 1.35rem; width: auto; }
.site-footer .brand .claim {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--solarel-bright);
  margin-top: 0.6rem;
  display: block;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}
.site-footer a {
  color: var(--text-muted-on-dark);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer a:hover { color: var(--white); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-4);
  color: rgba(255, 255, 255, 0.62);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.68); min-height: 0; }
.site-footer__bottom a:hover { color: var(--white); }

/* ---------- Studio-Zwischenseite ---------- */

.studio-gate {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--bg-stage);
  color: var(--white);
  padding: var(--gutter);
}
.studio-gate__card {
  max-width: 34rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.studio-gate__card img { height: 1.6rem; width: auto; }
.studio-gate__card h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: var(--track-display);
  line-height: var(--leading-head);
}
.studio-gate__card p { color: var(--text-muted-on-dark); }
.studio-gate__card .btn { margin-top: var(--space-2); }
.studio-gate__back {
  color: rgba(255, 255, 255, 0.55);
  font-size: var(--text-small);
  text-decoration: none;
}
.studio-gate__back:hover { color: var(--white); }

/* ============================================================
   RUNDE 2 — Navigation (Dropdown + Mobile), Zielgruppen-Lenkung,
   7er-Leistungsgrid, Video-Player, Detailseiten, Galerie, Karriere
   ============================================================ */

/* ---------- Header: Leistungen-Dropdown (Desktop) ---------- */

.site-nav .has-menu { position: relative; }

.site-nav .nav-trigger {
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: 500;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 0.25rem;
}
.site-nav .nav-trigger svg { width: 0.7rem; height: 0.7rem; transition: transform var(--dur-quick) ease; }
.site-nav .has-menu[data-open="true"] .nav-trigger svg { transform: rotate(180deg); }

.nav-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(40rem, 88vw);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-quick) ease, transform var(--dur-quick) var(--ease-out), visibility var(--dur-quick);
  z-index: 60;
}
.site-nav .has-menu[data-open="true"] .nav-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-panel a {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--text-strong);
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-m);
  transition: background var(--dur-quick) ease;
}
.nav-panel a:hover { background: var(--tint-sky); }
.nav-panel a strong { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: var(--track-display); }
.nav-panel a span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Header: Mobile-Menü ---------- */

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--white);
}
@media (min-width: 56rem) { .nav-toggle { display: none; } }
.site-header.is-scrolled .nav-toggle { color: var(--anthrazit); }
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle .icon-close { display: none; }

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink-dark);
  color: var(--white);
  padding: 5.5rem var(--gutter) var(--gutter);
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.42s var(--ease-out), visibility 0.42s;
}
.mobile-nav[data-open="true"] { transform: translateY(0); visibility: visible; }
body.nav-open { overflow: hidden; }
.mobile-nav__group { border-top: 1px solid var(--hairline-on-dark); padding-block: 0.35rem; }
.mobile-nav a, .mobile-nav summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: var(--track-display);
  padding: 0.85rem 0;
  min-height: 44px;
}
.mobile-nav details summary { cursor: pointer; list-style: none; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .chev { transform: rotate(180deg); }
.mobile-nav .chev { width: 1rem; height: 1rem; transition: transform var(--dur-quick) ease; flex: none; }
.mobile-nav .submenu a {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted-on-dark);
  padding: 0.6rem 0 0.6rem 1rem;
}
.mobile-nav .submenu a:hover { color: var(--white); }
.mobile-nav .mobile-nav__cta { margin-top: var(--space-4); }
.mobile-nav .mobile-nav__cta a {
  color: var(--anthrazit);
  font-family: var(--font-body);
  font-size: 1rem;
  justify-content: center;
}

/* ---------- Zielgruppen-Lenkung ---------- */

.steer { background: var(--paper); }
.steer__head { max-width: 60rem; }
.steer__grid {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .steer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .steer__grid { grid-template-columns: repeat(3, 1fr); } }

.door {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  text-decoration: none;
  color: var(--text-strong);
  overflow: clip;
  transition: border-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease, transform var(--dur-quick) var(--ease-out);
}
/* Lichtlinie oben — Signature-Akzent, zeichnet sich bei Fokus/Hover */
.door::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  background: var(--solarel-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.door:hover, .door:focus-visible { border-color: color-mix(in srgb, var(--solarel-bright) 55%, var(--hairline)); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.door:hover::before, .door:focus-visible::before { transform: scaleX(1); }
.door__eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
}
.door h3 { font-size: 1.35rem; font-weight: 600; letter-spacing: var(--track-display); line-height: 1.2; }
.door__line { color: var(--text-muted); font-size: 1rem; flex: 1; }
.door__ref {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding-top: 0.85rem;
  margin-top: auto;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.door__ref b { font-family: var(--font-display); color: var(--accent-text); font-weight: 600; letter-spacing: var(--track-display); }
.door__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent-text);
}
.door__go svg { width: 1rem; height: 1rem; transition: transform var(--dur-quick) var(--ease-out); }
.door:hover .door__go svg, .door:focus-visible .door__go svg { transform: translateX(4px); }

/* ---------- Leistungen: 7-Karten-Grid mit Link + Pfeil ---------- */

.field-card { text-decoration: none; color: var(--text-strong); position: relative; }
a.field-card:hover { border-color: color-mix(in srgb, var(--solarel-bright) 45%, var(--hairline)); box-shadow: var(--shadow-card); }
.field-card__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-text);
}
.field-card__go svg { width: 0.95rem; height: 0.95rem; transition: transform var(--dur-quick) var(--ease-out); }
a.field-card:hover .field-card__go svg { transform: translateX(4px); }

/* 7 Felder: 3-spaltig; erste zwei Karten breiter (Feature) */
@media (min-width: 48rem) {
  .fields-grid { grid-template-columns: repeat(6, 1fr); }
  .fields-grid--seven .field-card { grid-column: span 2; }
  .fields-grid--seven .field-card:nth-child(1),
  .fields-grid--seven .field-card:nth-child(2) { grid-column: span 3; }
}

/* ---------- Video-Player (Imagefilm, eigene Controls) ---------- */

.player {
  margin-top: var(--space-6);
  position: relative;
  border-radius: var(--radius-l);
  overflow: clip;
  background: #000;
  box-shadow: var(--shadow-stage);
  aspect-ratio: 16 / 9;
}
.player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.player__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: grid;
  place-items: center;
}
.player__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(1,12,27,0.5), rgba(1,12,27,0.12));
  transition: background var(--dur-quick) ease;
}
.player__poster:hover::after { background: linear-gradient(to top, rgba(1,12,27,0.38), rgba(1,12,27,0.06)); }
.player__big-play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  background: rgba(1, 12, 27, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  transition: transform var(--dur-quick) var(--ease-out);
}
.player__poster:hover .player__big-play { transform: scale(1.04); }
.player__big-play svg { width: 1.1rem; height: 1.1rem; }
.player.is-active .player__poster { display: none; }

.player__controls {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(to top, rgba(1,12,27,0.72), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-quick) ease, transform var(--dur-quick) ease;
}
.player.is-active:hover .player__controls,
.player.is-active:focus-within .player__controls,
.player.is-active.is-paused .player__controls { opacity: 1; transform: translateY(0); }
.player__btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  color: var(--white);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background var(--dur-quick) ease;
}
.player__btn:hover { background: rgba(255,255,255,0.28); }
.player__btn svg { width: 1.2rem; height: 1.2rem; }
.player__btn .i-pause, .player__btn .i-unmute { display: none; }
.player.is-playing .player__btn--play .i-play { display: none; }
.player.is-playing .player__btn--play .i-pause { display: block; }
.player.is-muted .player__btn--mute .i-unmute { display: none; }
.player:not(.is-muted) .player__btn--mute .i-mute { display: none; }
.player:not(.is-muted) .player__btn--mute .i-unmute { display: block; }
.player__time { font-family: var(--font-mono); font-size: 0.78rem; color: var(--white); flex: none; font-variant-numeric: tabular-nums; }
.player__track {
  flex: 1;
  height: 6px;
  border: 0;
  padding: 0;
  background: rgba(255,255,255,0.24);
  border-radius: 999px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.player__track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--solarel-bright);
  border-radius: 999px;
}
.player__hint { margin-top: var(--space-3); font-size: var(--text-small); color: var(--text-muted-on-dark); text-align: center; }

/* Ton-Knopf: dezente Frosted-Pill rechts unten — das Bild bleibt ungestört
   (Lukas 17.07.). „Ton an“ im stummen Autolauf startet bewusst von vorn. */
.player__sound {
  display: none;
  position: absolute;
  z-index: 3;
  right: 0.9rem;
  bottom: 0.9rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(1, 12, 27, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--white);
  cursor: pointer;
  align-items: center;
  gap: 0.6rem;
  transition: background var(--dur-quick) ease, bottom var(--dur-quick) var(--ease-out);
}
.player.is-auto .player__sound,
.player.is-engaged .player__sound { display: inline-flex; }
.player__sound:hover { background: rgba(1, 12, 27, 0.78); }
.player__sound svg { width: 1.2rem; height: 1.2rem; flex: none; }
.player__sound .i-sound-off { display: none; }
.player.is-muted .player__sound .i-sound-on { display: none; }
.player.is-muted .player__sound .i-sound-off { display: block; }
.player__sound-label { font-weight: 600; font-size: 0.9rem; }
/* Wenn die Steuerleiste einblendet, rückt der Knopf über sie */
.player.is-active:hover .player__sound,
.player.is-active:focus-within .player__sound,
.player.is-active.is-paused .player__sound { bottom: 5.6rem; }

/* ---------- Detailseiten: Page-Hero, Breadcrumb, Bausteine ---------- */

.page-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink-dark);
  color: var(--white);
  overflow: clip;
}
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img, .page-hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(1,12,27,0.85) 0%, rgba(1,12,27,0.35) 55%, rgba(1,12,27,0.45) 100%);
}
.page-hero__content { position: relative; padding-block: 8rem var(--space-6); }
.page-hero h1 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: var(--leading-head);
  letter-spacing: var(--track-display);
  max-width: 20ch;
  margin-top: var(--space-3);
  text-wrap: balance;
}
.page-hero__sub { font-size: var(--text-lead); color: rgba(255,255,255,0.82); max-width: 52ch; margin-top: var(--space-4); }
.page-hero .eyebrow { color: var(--solarel-bright); }

.breadcrumb {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.5; }
/* Zurück-Punkt: fester Weg zurück zur Übersicht, Trefffläche ≥44px bei ruhigem Schriftbild */
.breadcrumb .breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding-inline: 0.25rem;
  margin: -0.7rem 0 -0.7rem -0.25rem;
  text-transform: uppercase;
  letter-spacing: var(--track-eyebrow);
  font-weight: 500;
  color: rgba(255,255,255,0.78);
  transition: color var(--dur-quick) ease;
}
.breadcrumb .breadcrumb__back:hover,
.breadcrumb .breadcrumb__back:focus-visible { color: var(--white); }
/* Auf hellen Seiten ohne dunklen Hero (z. B. /termin/) dunkle Brotkrume */
.breadcrumb--on-light .breadcrumb__back { color: var(--slate); }
.breadcrumb--on-light .breadcrumb__back:hover,
.breadcrumb--on-light .breadcrumb__back:focus-visible { color: var(--text-strong); }
.breadcrumb__chev {
  font-size: 1.35em;
  line-height: 1;
  transform: translateY(-0.08em);
  transition: transform var(--dur-quick) var(--ease-out);
}
.breadcrumb .breadcrumb__back:hover .breadcrumb__chev { transform: translate(-0.2em, -0.08em); }

/* Nutzen-Argumente (Detailseiten) */
.benefits-grid {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
  grid-template-columns: 1fr;
}
@media (min-width: 44rem) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: var(--space-4);
}
.benefit__icon {
  width: 2.75rem; height: 2.75rem;
  display: inline-grid; place-items: center;
  border-radius: var(--radius-m);
  background: var(--tint-sky);
  color: var(--solarel-deep);
  margin-bottom: var(--space-3);
}
.benefit__icon svg { width: 1.4rem; height: 1.4rem; }
.benefit h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: var(--track-display); }
.benefit p { color: var(--text-muted); margin-top: 0.5rem; font-size: 1rem; }

/* Markt-Kontext-Notiz (belegte Fremdzahlen ehrlich einordnen) */
.context-note {
  margin-top: var(--space-5);
  border-left: 2px solid var(--solarel-bright);
  padding: 0.75rem 0 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 70ch;
}
.context-note strong { color: var(--text-strong); font-weight: 600; }

/* Ablauf-Ausschnitt (kompakte Schrittkette) */
.mini-flow { display: grid; gap: var(--space-3); margin-top: var(--space-6); grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 48rem) { .mini-flow { grid-template-columns: repeat(4, 1fr); } }
.mini-step {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
.mini-step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-text);
  letter-spacing: 0.1em;
}
.mini-step h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: 0.4rem; letter-spacing: var(--track-display); }
.mini-step p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.35rem; }

/* CTA-Band (Detailseiten-Abschluss) */
.cta-band { background: var(--solarel-deep); color: var(--white); }
.cta-band .eyebrow { color: var(--solarel-bright); }
.cta-band h2 { color: var(--white); }
.cta-band .lead { color: rgba(255,255,255,0.82); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* Ruhiger Rückweg am Seitenende: ein Link zurück zur Leistungs-Übersicht */
.back-band {
  border-top: 1px solid var(--hairline);
  padding-block: var(--space-6);
  text-align: center;
}
.back-band__link {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  padding-inline: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  font-weight: 500;
  letter-spacing: var(--track-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur-quick) ease;
}
.back-band__link:hover,
.back-band__link:focus-visible { color: var(--solarel-deep); }
.back-band__link svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform var(--dur-quick) var(--ease-out);
}
.back-band__link:hover svg { transform: translateX(0.25em); }

/* ---------- Referenzen-Galerie ---------- */

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-6);
}
.filter-chip {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--hairline);
  background: var(--white);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  transition: all var(--dur-quick) ease;
}
.filter-chip:hover { border-color: var(--solarel-deep); color: var(--text-strong); }
.filter-chip[aria-pressed="true"] { background: var(--solarel-deep); border-color: var(--solarel-deep); color: var(--white); }

.gallery {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-5);
  grid-template-columns: 1fr;
}
@media (min-width: 40rem) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.project {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: clip;
  display: flex;
  flex-direction: column;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out), border-color var(--dur-quick) ease, box-shadow var(--dur-quick) ease;
}
.project:hover { box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--solarel-bright) 40%, var(--hairline)); }
.project.is-hidden { display: none; }
.project figure { margin: 0; aspect-ratio: 16 / 10; overflow: clip; background: var(--tint-sky); }
.project figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
@media (prefers-reduced-motion: no-preference) { .project:hover figure img { transform: scale(1.045); } }
.project--nophoto figure { display: none; }
.project__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.project__cat {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.project h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: var(--track-display); line-height: 1.15; }
.project__place { font-size: 0.9rem; color: var(--text-muted); }
.project__kwp {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--accent-text);
  letter-spacing: var(--track-display);
  margin-top: auto;
  padding-top: 0.6rem;
}
.gallery-empty { margin-top: var(--space-5); color: var(--text-muted); display: none; }

/* ---------- Karriere ---------- */

.jobs { display: grid; gap: var(--space-4); margin-top: var(--space-6); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .jobs { grid-template-columns: repeat(2, 1fr); } }
.job {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: clip;
}
.job > summary {
  list-style: none;
  cursor: pointer;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.job > summary::-webkit-details-marker { display: none; }
.job__badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--tint-sky);
  color: var(--solarel-deep);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.job h3 { font-size: var(--text-h3); font-weight: 600; letter-spacing: var(--track-display); }
.job__teaser { color: var(--text-muted); }
.job__more { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; color: var(--accent-text); font-size: 0.95rem; }
.job__more svg { width: 1rem; height: 1rem; transition: transform var(--dur-quick) ease; }
.job[open] .job__more svg { transform: rotate(180deg); }
.job__detail { padding: 0 var(--space-4) var(--space-4); border-top: 1px solid var(--hairline); }
.job__detail h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-top: var(--space-4); letter-spacing: var(--track-display); }
.job__detail ul { margin: 0.5rem 0 0; padding-left: 1.1rem; color: var(--text-muted); }
.job__detail li { margin-bottom: 0.35rem; }
.job__detail p { color: var(--text-muted); margin-top: 0.5rem; }
.job__detail .apply-link { margin-top: var(--space-4); }

.benefits-band { background: var(--tint-sky); }
.chips {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 48rem) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 68rem) { .chips { grid-template-columns: repeat(4, 1fr); } }
.chip {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.95rem;
  font-weight: 500;
}
.chip svg { width: 1.2rem; height: 1.2rem; color: var(--solarel-deep); flex: none; }

/* Formular */
.form-wrap {
  margin-top: var(--space-6);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.apply-form { display: grid; gap: var(--space-4); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--row { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 40rem) { .field--row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; }
.field label .req { color: var(--solarel-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-strong);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-m);
  padding: 0.8rem 1rem;
  min-height: 48px;
  width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--solarel-bright);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--solarel-bright) 25%, transparent);
}
.field__hint { font-size: 0.82rem; color: var(--text-muted); }
.form-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--tint-sky);
  border-radius: var(--radius-m);
  padding: var(--space-4);
}
.form-note strong { color: var(--text-strong); }
.apply-form .btn { justify-content: center; }

/* ---------- Team-/Menschen-Streifen ---------- */

.people {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 56rem) { .people { grid-template-columns: repeat(4, 1fr); } }
.people figure { margin: 0; border-radius: var(--radius-m); overflow: clip; aspect-ratio: 4 / 5; background: var(--tint-sky); }
.people figure img { width: 100%; height: 100%; object-fit: cover; }
.people figure:nth-child(1) { aspect-ratio: 4 / 5; }
.people figcaption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 0.2rem 0;
}

/* Vollflächen-Bild-Trenner */
.band-media {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: clip;
  background: var(--ink-dark);
}
.band-media img, .band-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band-media__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(1,12,27,0.78), rgba(1,12,27,0.15)); }
.band-media__cap {
  position: relative;
  color: var(--white);
  padding: var(--space-6) 0;
}
.band-media__cap h2 { color: var(--white); max-width: 24ch; }
.band-media__cap .lead { color: rgba(255,255,255,0.82); }
.band-media__cap .eyebrow { color: var(--solarel-bright); }

/* ---------- Section-Utilities ---------- */
.section--tint { background: var(--tint-sky); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .section-title, .section-head--center .lead { margin-inline: auto; }

/* ---------- R2-Feinheiten: Nav-Farben, Toggle-Zustände ---------- */

.site-nav { color: var(--white); }
.site-header.is-scrolled .site-nav { color: var(--anthrazit); }

/* Offenes Mobile-Menü: Header (Logo + Schließen-X) liegt ÜBER dem Panel,
   Grund wird transparent, Logo immer weiß */
body.nav-open .site-header {
  z-index: 60;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.nav-open .site-header .cta-pill { visibility: hidden; }
body.nav-open .nav-toggle { color: var(--white); }
body.nav-open .site-header.is-scrolled .brand .brand__light { display: none; }
body.nav-open .site-header.is-scrolled .brand .brand__dark { display: block; }
body.nav-open .nav-toggle .icon-open { display: none; }
body.nav-open .nav-toggle .icon-close { display: block; }

@media (max-width: 30rem) {
  .site-header .cta-pill { display: none; } /* CTA lebt im Mobile-Menü */
}

/* Galerie-Intro-Zeile */
.gallery-note { margin-top: var(--space-4); font-size: var(--text-small); color: var(--text-muted); max-width: 72ch; }

/* Cinemagraph-Video (Bänder, Page-Heroes, ISO-Features):
   blendet erst ein, wenn es wirklich läuft — darunter bleibt das Foto */
.band-media video.lazy-vid,
.page-hero__media video.lazy-vid,
.about__media video.lazy-vid { opacity: 0; transition: opacity 0.9s ease; }
.band-media video.lazy-vid.is-playing,
.page-hero__media video.lazy-vid.is-playing,
.about__media video.lazy-vid.is-playing { opacity: 1; }

.about__media { position: relative; }
.about__media video.lazy-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Referenz-Verweis unterm Startseiten-Grid */
.section__more { margin-top: var(--space-6); display: flex; justify-content: center; }

/* Hero: waehrend der Logo-Szene im Teaser-Video (~Sek. 50–59) weichen Claim und
   Headline dem eingeblendeten Solarel-Schriftzug im Film — sonst stehen zwei
   Texte uebereinander. Gesteuert per timeupdate in js/site.js. */
.hero__claim, .hero h1 { transition: opacity 0.6s ease; }
.hero.logo-szene .hero__claim, .hero.logo-szene h1 { opacity: 0; }

/* ---------- Terminbuchung (/termin/) — eingebetteter Buchungs-Flow ---------- */
.termin-hinweis {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-left: 3px solid #0699F8;
  border-radius: var(--radius-m);
  padding: 1rem 1.25rem;
  margin-bottom: var(--space-5);
}
.termin-hinweis p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }
.termin-hinweis strong { color: var(--text-strong); }
.termin-embed {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-l);
  overflow: clip;
  box-shadow: var(--shadow-card);
  background: #FFFFFF;
}
/* Hoehe kommt per postMessage aus der eingebetteten Buchung (js/site.js) —
   der iframe waechst mit dem Inhalt, die Seite scrollt als EINE Flaeche.
   40rem = Fallback, falls die Meldung ausbleibt. */
.termin-embed iframe { display: block; width: 100%; height: 40rem; border: 0; }
.termin-fallback { margin-top: var(--space-3); font-size: 0.9rem; color: var(--text-muted); }
