/* TIDLY. Franken · Seitenstil
   Tokens kommen ausschließlich aus brand.css (Quelle: Projekte/Tidly-Franken/brand/). */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; color-scheme: dark; }
body {
  margin: 0; background: var(--t-black); color: var(--t-ink);
  font-family: var(--t-font); font-stretch: var(--t-stretch-body); font-weight: 400;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--t-yellow); color: var(--t-on-yellow); }
:focus-visible { outline: 2px solid var(--t-yellow); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--t-line-strong) var(--t-black); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--t-yellow); color: var(--t-on-yellow); padding: 10px 16px; border-radius: var(--t-radius-sm); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Typografie ---------- */
.display, h1, h2, h3 { font-stretch: var(--t-stretch-display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(38px, 7.4vw, 104px); line-height: 0.96; }
h2 { font-size: clamp(30px, 4.6vw, 64px); line-height: 1.0; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.01em; }
.eyebrow {
  font-stretch: 80%; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--t-ink-3); margin: 0 0 var(--t-s4);
}
.eyebrow b { color: var(--t-yellow); font-weight: 700; }
/* Im Hero liegt die Zeile auf dem Canvas, ink-3 reichte dort nicht (3,2:1) */
.hero-copy .eyebrow { color: var(--t-ink-2); }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--t-ink-2); max-width: 36em; margin: 0; }
.muted { color: var(--t-ink-3); }
.small { font-size: 14px; line-height: 1.5; }
.dot { color: var(--t-yellow); }
.num { font-variant-numeric: tabular-nums; }
.data { font-stretch: 75%; font-weight: 600; letter-spacing: 0.02em; }

/* ---------- Layout ---------- */
.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
@media (min-width: 768px) { .wrap { width: min(1240px, 100% - 80px); } }
.section { padding-block: clamp(80px, 11vw, 160px); position: relative; }
.section--tight { padding-block: clamp(64px, 8vw, 112px); }
.section-head { display: grid; gap: var(--t-s5); margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) {
  .section-head { grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: var(--t-s8); }
}
.rule { height: 1px; background: var(--t-line); border: 0; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--t-radius-sm); border: 1px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--t-ease-out), background-color 200ms ease, border-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--t-yellow); color: var(--t-on-yellow); }
.btn--dark { background: var(--t-black); color: var(--t-ink); }
.btn--ghost { border-color: var(--t-line-strong); color: var(--t-ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { box-shadow: inset 0 0 0 999px rgba(255, 255, 255, 0.16); }
  .btn--ghost:hover { border-color: var(--t-ink-3); }
  .btn--dark:hover { background: var(--t-surface); }
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 200ms var(--t-ease-out); }
@media (hover: hover) and (pointer: fine) { .btn:hover svg { transform: translateX(3px); } }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  color: var(--t-ink); padding-block: 12px; border-bottom: 1px solid var(--t-line-strong);
  transition: border-color 200ms ease;
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 200ms var(--t-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .link-arrow:hover { border-color: var(--t-yellow); }
  .link-arrow:hover svg { transform: translateX(3px); }
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 72px;
  display: flex; align-items: center;
  transition: background-color 250ms ease, border-color 250ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(0, 0, 0, 0.92); border-bottom-color: var(--t-line); }
@supports (backdrop-filter: blur(1px)) { .site-header.is-solid { background: rgba(0, 0, 0, 0.78); backdrop-filter: blur(14px); } }
.site-header .wrap { display: flex; align-items: center; gap: var(--t-s5); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; min-height: 44px; }
.brand img { height: 20px; width: auto; }
.brand-region {
  font-stretch: 112%; font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--t-ink-2); padding-left: 12px; border-left: 1px solid var(--t-line-strong); line-height: 1;
}
.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--t-radius-sm);
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--t-ink-2); position: relative;
  transition: color 200ms ease;
}
.nav a[aria-current="page"] { color: var(--t-ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--t-yellow);
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--t-ink); } }
.header-cta { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: transparent; border: 1px solid var(--t-line-strong); border-radius: var(--t-radius-sm);
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }
@media (min-width: 1040px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .menu-btn { display: none; }
}

/* Mobiles Menü */
.menu {
  position: fixed; inset: 0; z-index: 80; margin: 0; padding: 0; border: 0; width: 100%; height: 100%;
  max-width: none; max-height: none; background: var(--t-black); color: var(--t-ink); overscroll-behavior: contain;
}
.menu::backdrop { background: rgba(0, 0, 0, 0.6); }
.menu[open] { display: flex; flex-direction: column; }
.menu-top { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--t-line); }
.menu-list { list-style: none; margin: 0; padding: 24px 20px; display: grid; gap: 4px; }
.menu-list a {
  display: flex; align-items: baseline; justify-content: space-between; min-height: 56px; padding: 10px 0;
  border-bottom: 1px solid var(--t-line); text-decoration: none;
  font-stretch: 112%; font-weight: 800; font-size: 28px; letter-spacing: -0.01em;
}
.menu-list a span { font-stretch: 80%; font-weight: 600; font-size: 13px; color: var(--t-ink-3); letter-spacing: 0.1em; }
.menu-foot { margin-top: auto; padding: 20px; display: grid; gap: 12px; }
.menu[open] .menu-list li { animation: menuIn 420ms var(--t-ease-out) both; }
.menu[open] .menu-list li:nth-child(2) { animation-delay: 40ms; }
.menu[open] .menu-list li:nth-child(3) { animation-delay: 80ms; }
.menu[open] .menu-list li:nth-child(4) { animation-delay: 120ms; }
.menu[open] .menu-list li:nth-child(5) { animation-delay: 160ms; }
@keyframes menuIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Hero: die gelbe Linie ---------- */
.hero { position: relative; height: 270vh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  /* oben: Lesbarkeit der Kopfzeile. unten: Lesbarkeit des Copy-Blocks ueber dem Canvas
     (WCAG-AA-Fix 30.09.26 — vorher stand der Text ab 14% ohne jede Unterlage) */
  background:
    linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 14%),
    linear-gradient(0deg, rgba(0,0,0,0.80) 0%, rgba(0,0,0,0.48) 28%, rgba(0,0,0,0) 54%);
}
/* Handy: Text im Fluss auf eigenem dunklen Grund, darüber bleibt mindestens die Arbeitsfläche frei */
@media (max-width: 899px) {
  .hero-stage { display: flex; flex-direction: column; height: auto; min-height: 100vh; min-height: 100svh; padding-top: 300px; }
  .hud-lanes i { width: 14px; }
}
/* Kleine Handys: ohne Scroll-Strecke, die Drohne reinigt von selbst */
.hero.is-flow { height: auto; }
.hero.is-flow .hero-stage { position: relative; }
.hero-copy {
  position: relative; margin-top: auto; padding: 56px 20px 28px;
  display: grid; gap: var(--t-s4);
  background: linear-gradient(180deg, rgba(0,0,0,0) 0, rgba(0,0,0,0.9) 48px, rgba(0,0,0,0.97) 100%);
}
.hero-copy h1 { font-size: clamp(36px, 10.2vw, 64px); }
.hero-copy .lead { font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.hero-partner { font-size: 13px; line-height: 1.45; color: var(--t-ink-2); margin: 0; max-width: 40em; }
.hero-partner strong { color: var(--t-ink); font-weight: 600; }
.hero-hud {
  position: absolute; top: 84px; left: 20px; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
}
.hero-hud .hud-note { display: none; }
.hero-hud .hud-value { font-size: 28px; }
.hero-hud .hud-lanes { margin-top: 0; }
@media (min-width: 900px) {
  .hero-hud { left: auto; display: grid; gap: 6px; justify-items: end; text-align: right; }
  .hero-hud .hud-note { display: block; }
  .hero-hud .hud-value { font-size: clamp(32px, 4.4vw, 56px); }
  .hero-hud .hud-lanes { margin-top: 4px; }
}
.hud-label { font-stretch: 75%; font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--t-ink-3); }
.hud-value { font-stretch: 75%; font-weight: 700; font-size: clamp(32px, 4.4vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hud-value small { font-size: 0.45em; font-weight: 600; color: var(--t-ink-2); margin-left: 4px; }
.hud-lanes { display: flex; gap: 4px; margin-top: 4px; }
.hud-lanes i { width: 22px; height: 3px; background: var(--t-line-strong); position: relative; overflow: hidden; border-radius: 2px; }
.hud-lanes i::after { content: ""; position: absolute; inset: 0; background: var(--t-yellow); transform: scaleX(var(--f, 0)); transform-origin: left; }
.hud-note { font-size: 12px; color: var(--t-ink-3); max-width: 22em; }
.hero-scroll {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: none;
  align-items: center; gap: 10px; font-size: 12px; font-stretch: 80%; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-ink-3);
  transition: opacity 300ms ease;
}
.hero-scroll i { width: 1px; height: 28px; background: linear-gradient(var(--t-yellow), transparent); animation: scrollHint 1.8s var(--t-ease-in-out) infinite; transform-origin: top; }
@keyframes scrollHint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.title-dot {
  display: inline-block; width: 0.19em; height: 0.19em; margin-left: 0.05em; border-radius: 50%;
  background: var(--t-yellow); vertical-align: baseline; transition: opacity 200ms ease;
}
.title-dot.is-away { opacity: 0; }

/* Drohne: DOM-Element über dem Canvas, damit das Schweben nicht den Canvas neu zeichnen muss */
.drone { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; will-change: transform; opacity: 0; transition: opacity 200ms ease; }
.drone.is-on { opacity: 1; }
.drone-scale { position: absolute; left: 0; top: 0; will-change: transform; }
.drone-body { position: absolute; width: 14px; height: 14px; left: -7px; top: -7px; animation: hover 2.4s var(--t-ease-in-out) infinite; }
.drone-body::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 196, 4, 0.38) 0%, rgba(255, 196, 4, 0) 70%); }
.drone-body::after { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid rgba(255, 196, 4, 0.55); }
.drone-core { position: absolute; inset: 0; border-radius: 50%; background: var(--t-yellow); }
@keyframes hover { 0%, 100% { transform: translateY(-1.5px); } 50% { transform: translateY(1.5px); } }

@media (min-width: 900px) {
  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(0,0,0,0.97) 0%, rgba(0,0,0,0.9) 32%, rgba(0,0,0,0.35) 46%, rgba(0,0,0,0) 56%),
      linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 16%),
      linear-gradient(0deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 14%);
  }
  .hero-copy {
    position: absolute; top: 0; bottom: 0; left: 0; right: auto; margin: 0; width: min(50vw, 740px); align-content: center;
    padding: 72px 0 40px max(40px, calc((100vw - 1240px) / 2)); background: none;
  }
  .hero-copy h1 { font-size: clamp(44px, 5.2vw, 80px); }
  .hero-copy .lead { font-size: 18px; max-width: 30em; }
  .hero-hud { top: auto; bottom: 40px; right: max(40px, calc((100vw - 1240px) / 2)); }
  .hero-scroll { display: inline-flex; }
}

/* Linienzeilen der Überschrift */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: block; transform: translateY(105%); animation: lineUp 900ms var(--t-ease-out) forwards; }
.line:nth-child(2) > span { animation-delay: 90ms; }
.line:nth-child(3) > span { animation-delay: 180ms; }
@keyframes lineUp { to { transform: translateY(0); } }
.fade-up { opacity: 0; transform: translateY(12px); animation: fadeUp 700ms var(--t-ease-out) forwards; animation-delay: var(--d, 300ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 800ms var(--t-ease-out), transform 800ms var(--t-ease-out); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ablauf ---------- */
.phases { display: grid; gap: var(--t-s8); position: relative; list-style: none; margin: 0; padding: 0; }
.phase { position: relative; padding-left: 36px; }
.phase::before { content: ""; position: absolute; left: 6px; top: 12px; bottom: -64px; width: 1px; background: var(--t-line-strong); }
.phase:last-child::before { display: none; }
.phase-mark { position: absolute; left: 0; top: 6px; width: 13px; height: 13px; border-radius: 50%; background: var(--t-black); border: 2px solid var(--t-line-strong); transition: background-color 400ms ease, border-color 400ms ease; }
.phase.in .phase-mark { background: var(--t-yellow); border-color: var(--t-yellow); }
.phase-no { font-stretch: 75%; font-weight: 700; font-size: 14px; letter-spacing: 0.14em; color: var(--t-yellow); margin: 0 0 8px; }
.phase h3 { margin-bottom: var(--t-s4); }
.phase ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.phase li { display: grid; gap: 2px; }
.phase li strong { font-weight: 700; font-size: 16px; }
.phase li span { color: var(--t-ink-3); font-size: 15px; line-height: 1.5; }
.phases-wrap { position: relative; }
.phase-track { display: none; }
@media (min-width: 960px) {
  .phases { grid-template-columns: repeat(3, 1fr); gap: var(--t-s7); padding-top: 40px; z-index: 1; }
  .phase { padding-left: 0; }
  .phase::before { display: none; }
  .phase-mark { top: -40px; left: 0; z-index: 1; }
  .phase-track { display: block; position: absolute; left: 6px; right: 0; top: 6px; height: 1px; background: var(--t-line-strong); }
  .phase-track i { position: absolute; inset: 0; background: var(--t-yellow); transform: scaleX(0); transform-origin: left; transition: transform 1200ms var(--t-ease-in-out); }
  .phases.in + .phase-track i { transform: scaleX(1); }
}
.fallback-note { margin-top: var(--t-s7); padding: var(--t-s5); border: 1px solid var(--t-line); border-radius: var(--t-radius); display: grid; gap: 8px; max-width: 760px; }
.fallback-note p { margin: 0; color: var(--t-ink-2); }

/* ---------- Leistungen (Tabs) ---------- */
.services { display: grid; gap: var(--t-s6); }
.tablist { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: flex; align-items: baseline; gap: 12px; min-height: 48px; padding: 10px 16px;
  background: transparent; border: 1px solid var(--t-line-strong); border-radius: var(--t-radius-sm); cursor: pointer;
  text-align: left; color: var(--t-ink-3); transition: color 200ms ease, border-color 200ms ease, background-color 200ms ease;
}
.tab-no { font-stretch: 75%; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; }
.tab-name { font-stretch: 112%; font-weight: 800; font-size: 18px; }
.tab[aria-selected="true"] { color: var(--t-ink); border-color: var(--t-yellow); background: var(--t-surface); }
.tab[aria-selected="true"] .tab-no { color: var(--t-yellow); }
.panel { display: grid; gap: var(--t-s6); }
.panel[hidden] { display: none; }
.panel-media { border-radius: var(--t-radius); overflow: hidden; background: var(--t-surface); aspect-ratio: 16 / 9; position: relative; border: 1px solid var(--t-line); }
.panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel-media figcaption { position: absolute; left: 12px; bottom: 12px; font-size: 12px; background: rgba(0,0,0,0.72); padding: 4px 8px; border-radius: 4px; color: var(--t-ink-2); }
.panel-body { display: grid; gap: var(--t-s5); align-content: start; }
.panel-body p { margin: 0; color: var(--t-ink-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; }
.facts li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--t-line); font-size: 16px; }
.facts li:last-child { border-bottom: 1px solid var(--t-line); }
.facts li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--t-yellow); margin-top: 9px; }
@media (min-width: 960px) {
  .services { grid-template-columns: 300px 1fr; gap: var(--t-s8); align-items: start; }
  .tablist { flex-direction: column; overflow: visible; gap: 0; position: sticky; top: 100px; }
  .tab { border: 0; border-top: 1px solid var(--t-line); border-radius: 0; padding: 22px 0; min-height: 0; background: transparent; position: relative; }
  .tab:last-child { border-bottom: 1px solid var(--t-line); }
  .tab-name { font-size: 30px; }
  .tab[aria-selected="true"] { background: transparent; }
  .tab::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--t-yellow); transform: scaleX(0); transform-origin: left; transition: transform 350ms var(--t-ease-out); }
  .tab[aria-selected="true"]::after { transform: scaleX(1); }
  @media (hover: hover) { .tab:hover { color: var(--t-ink-2); } }
  .panel { grid-template-columns: 1.2fr 1fr; gap: var(--t-s7); align-items: start; }
}
.panel.is-entering { animation: panelIn 380ms var(--t-ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }

/* PV-Illustration */
.pv-art { width: 100%; height: 100%; }

/* ---------- Referenzen ---------- */
.gallery { position: relative; }
.gallery-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px;
  padding: 0 20px 8px; margin: 0 -20px; scrollbar-width: none; overscroll-behavior-x: contain;
  list-style: none; cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging * { pointer-events: none; }
@media (min-width: 768px) { .gallery-track { grid-auto-columns: 62%; gap: 24px; padding: 0 40px 8px; margin: 0 -40px; scroll-padding-inline: 40px; } }
@media (min-width: 1280px) { .gallery-track { grid-auto-columns: 48%; } }
.slide { scroll-snap-align: start; margin: 0; }
.slide button { display: block; width: 100%; padding: 0; border: 0; background: var(--t-surface); border-radius: var(--t-radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 16 / 9; }
.slide img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--t-ease-out); }
@media (hover: hover) and (pointer: fine) { .slide button:hover img { transform: scale(1.02); } }
.slide figcaption { display: flex; justify-content: space-between; gap: 12px; padding-top: 12px; font-size: 14px; color: var(--t-ink-3); }
.slide figcaption b { color: var(--t-ink-2); font-weight: 600; }
.gallery-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: var(--t-s5); }
.gallery-count { font-stretch: 75%; font-weight: 700; font-size: 16px; letter-spacing: 0.08em; }
.gallery-count span { color: var(--t-ink-3); }
.gallery-nav { display: flex; gap: 8px; }
.icon-btn {
  width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--t-line-strong); background: transparent; cursor: pointer;
  transition: transform 160ms var(--t-ease-out), border-color 200ms ease, opacity 200ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):hover { border-color: var(--t-yellow); } }
.icon-btn svg { width: 20px; height: 20px; }
.ref-note { margin-top: var(--t-s6); max-width: 46em; }

/* Lightbox */
.lightbox { overscroll-behavior: contain; padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.94); }
.lightbox[open] { display: grid; place-items: center; animation: lbIn 220ms var(--t-ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lightbox figure { margin: 0; width: min(1600px, 94vw); display: grid; gap: 12px; }
.lightbox img { width: 100%; height: auto; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: var(--t-ink-2); font-size: 14px; text-align: center; }
.lb-close, .lb-prev, .lb-next { position: fixed; background: rgba(0,0,0,0.6); color: var(--t-ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.95); }

/* ---------- Solar-Teaser ---------- */
.teaser { background: var(--t-deep); border-block: 1px solid var(--t-line); }
.teaser-grid { display: grid; gap: var(--t-s7); }
@media (min-width: 960px) { .teaser-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--t-s8); } }
.teaser-tool { display: grid; gap: var(--t-s5); padding: var(--t-s6); border: 1px solid var(--t-line-strong); border-radius: var(--t-radius); background: var(--t-surface); }
.teaser-out { display: grid; gap: 4px; }
.teaser-out .big { font-stretch: 75%; font-weight: 700; font-size: clamp(34px, 5vw, 56px); line-height: 1; font-variant-numeric: tabular-nums; }
.teaser-out .big small { font-size: 0.42em; color: var(--t-ink-2); font-weight: 600; margin-left: 4px; }
.assumptions { font-size: 13px; color: var(--t-ink-3); margin: 0; }

/* Regler */
.range-row { display: grid; gap: 10px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-head label, .field > label, .fieldset > legend { font-weight: 700; font-size: 15px; }
.range-val { font-stretch: 75%; font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
  --p: 50%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--t-yellow) var(--p), var(--t-line-strong) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--t-line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--t-yellow); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--t-yellow); border: 4px solid var(--t-black); box-shadow: 0 0 0 1px var(--t-yellow); transition: transform 160ms var(--t-ease-out); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--t-yellow); border: 4px solid var(--t-black); box-shadow: 0 0 0 1px var(--t-yellow); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--t-yellow); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--t-yellow); }

/* ---------- Einsatzgebiet ---------- */
.region { display: grid; gap: var(--t-s7); }
@media (min-width: 960px) { .region { grid-template-columns: 1fr 1fr; gap: var(--t-s8); } }
.towns { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.towns li { padding: 14px 0; border-top: 1px solid var(--t-line); font-stretch: 112%; font-weight: 700; font-size: clamp(18px, 2vw, 24px); display: flex; align-items: center; gap: 12px; }
.towns li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--t-yellow); flex: none; }
.towns.later li { color: var(--t-ink-3); font-weight: 600; }
.towns.later li::before { background: transparent; border: 1px solid var(--t-line-soft); }
.towns-label { font-stretch: 80%; font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--t-ink-3); margin: 0 0 12px; }

/* ---------- Wir ---------- */
.team { display: grid; gap: var(--t-s7); }
@media (min-width: 960px) { .team { grid-template-columns: 1fr 1fr; gap: var(--t-s8); align-items: start; } }
.roles { display: grid; gap: 0; margin: var(--t-s6) 0 0; }
.roles div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--t-line); font-size: 17px; }
.roles div:last-child { border-bottom: 1px solid var(--t-line); }
.roles dt { font-stretch: 80%; font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-yellow); padding-top: 3px; }
.roles dd { margin: 0; color: var(--t-ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 900px; }
.faq details { border-top: 1px solid var(--t-line); }
.faq details:last-child { border-bottom: 1px solid var(--t-line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-stretch: 108%; font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--t-line-strong); position: relative; transition: transform 250ms var(--t-ease-out), border-color 200ms ease; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 250ms var(--t-ease-out); }
.faq details[open] summary i { border-color: var(--t-yellow); }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--t-ink-2); max-width: 44em; }
.faq .answer p { margin: 0; }

/* ---------- CTA-Band ---------- */
.cta-band { background: var(--t-yellow); color: var(--t-on-yellow); }
.cta-band .wrap { display: grid; gap: var(--t-s5); }
@media (min-width: 960px) { .cta-band .wrap { grid-template-columns: 1.3fr auto; align-items: end; } }
.cta-band h2 { max-width: 14ch; }
.cta-band p { margin: 12px 0 0; font-size: 18px; max-width: 34em; }
/* Opacity entfernt: 0.85 x 0.8 stapelte sich auf dem Gelb zu 1,3:1 (Fix 30.09.26).
   Die Zurueckhaltung traegt jetzt die gestrichelte Linie, nicht die Transparenz. */
.cta-band .contact-line { font-size: 15px; margin-top: 16px; }
.cta-band :focus-visible { outline-color: var(--t-black); }
.cta-band ::selection { background: var(--t-black); color: var(--t-yellow); }

/* ---------- Fußzeile ---------- */
.site-footer { padding: var(--t-s8) 0 var(--t-s7); border-top: 1px solid var(--t-line); }
.footer-grid { display: grid; gap: var(--t-s6); }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { text-decoration: none; color: var(--t-ink-2); display: inline-flex; min-height: 44px; align-items: center; }
@media (hover: hover) { .site-footer a:hover { color: var(--t-ink); } }
.footer-bottom { margin-top: var(--t-s7); padding-top: var(--t-s5); border-top: 1px solid var(--t-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--t-ink-3); }
.ph { color: var(--t-ink-3); border-bottom: 1px dashed var(--t-line-soft); }
.cta-band .ph { color: inherit; border-bottom-color: currentColor; border-bottom-style: dashed; }

/* Vorschau-Kennzeichnung */
.preview-flag {
  position: fixed; right: 12px; top: 80px; z-index: 60; font-size: 10px; font-weight: 700; font-stretch: 80%; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--t-surface); color: var(--t-ink-3); border: 1px solid var(--t-line-strong); border-radius: 999px; padding: 4px 9px; pointer-events: none;
}

/* ---------- Unterseiten-Kopf ---------- */
.page-hero { padding: 160px 0 clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--t-line); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(36px, 6.4vw, 92px); max-width: 14ch; }
.page-hero .lead { margin-top: var(--t-s5); }
.crumbs { font-size: 14px; color: var(--t-ink-3); margin: 0 0 var(--t-s5); }
.crumbs a { color: var(--t-ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--t-ink); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .line > span { opacity: 1 !important; transform: none !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; }
  .hero-scroll { display: none !important; }
}

/* --- Nachtflug (22.10.2026): die Drohne liegt jetzt im Canvas, nicht mehr im DOM --- */
.hero.is-kino .drone { display: none; }

/* --- Kamerafahrt und Scanstrich (22.10.2026) --- */
.is-kino-img { transition: none; will-change: transform; }
.scanline { position: relative; }
.scanline::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 26%;
  background: linear-gradient(90deg, rgba(255,196,4,0) 0%, rgba(255,196,4,0.5) 45%, rgba(255,255,255,0.55) 50%, rgba(255,196,4,0.5) 55%, rgba(255,196,4,0) 100%);
  transform: translateX(-140%); opacity: 0; pointer-events: none; mix-blend-mode: screen;
}
.scanline.is-scanned::after { animation: scanPass 1150ms var(--t-ease-out) forwards; }
@keyframes scanPass {
  0% { transform: translateX(-140%); opacity: 0; }
  12% { opacity: 0.85; }
  88% { opacity: 0.5; }
  100% { transform: translateX(440%); opacity: 0; }
}
/* Vollbild wie im Kino: das Bild fährt leicht heran */
.lightbox[open] img { animation: lbIn 460ms var(--t-ease-out) both; }
@keyframes lbIn { from { transform: scale(0.965); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scanline::after { display: none; }
  .lightbox[open] img { animation: none; }
  .is-kino-img { transform: none !important; }
}

/* --- Bildsprache: die Fotos laufen ins Schwarz der Marke aus (22.10.2026) --- */
.slide button, .panel-media { position: relative; }
.slide button::before, .panel-media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(118% 88% at 50% 38%, rgba(0,0,0,0) 46%, rgba(0,0,0,0.40) 100%),
    linear-gradient(0deg, rgba(0,0,0,0.58) 0%, rgba(0,0,0,0.12) 22%, rgba(0,0,0,0) 38%);
}
.slide button img, .panel-media img { filter: saturate(0.94) contrast(1.06) brightness(0.95); }
.slide button::after, .panel-media::after { z-index: 3; }
.slide button { box-shadow: inset 0 0 0 1px var(--t-line); }
@media (hover: hover) and (pointer: fine) {
  .slide button:hover { box-shadow: inset 0 0 0 1px var(--t-line-strong), 0 18px 48px -24px rgba(0,0,0,0.9); }
}
.lightbox img { filter: saturate(0.96) contrast(1.04); }

/* --- Ablauf: die Drohne fliegt den Zeitstrahl ab (22.10.2026) --- */
.track-drone {
  position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; background: var(--t-yellow); opacity: 0;
}
/* Lichtschein als gezeichnetes Licht, nicht als farbiger Schatten */
.track-drone::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 196, 4, 0.34) 0%, rgba(255, 196, 4, 0.12) 38%, rgba(255, 196, 4, 0) 70%);
}
.phase-track.is-flying .track-drone { animation: trackFlight 1200ms var(--t-ease-in-out) forwards; }
@keyframes trackFlight {
  0% { left: 0; opacity: 0; }
  8% { opacity: 1; }
  100% { left: 100%; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .track-drone { display: none; } }
