/* =============================================================
   V3 — "Cinematic Switch"
   Helle Editorial-Basis, dunkles Finale (.night), Timeline-Hero.
   Lädt NACH styles.css und überschreibt die Dark-Tokens.
   ============================================================= */

/* ---------- Light-Tokens ---------- */
:root {
  --bg:        #F6F5F2;
  --bg-2:      #EFEDE7;
  --panel:     #FFFFFF;
  --panel-2:   #F3F1EC;
  --ink:       #0F1115;
  --ink-2:     #484C55;
  --muted:     #6E7380;
  --soft:      #9AA0AB;
  --line:      rgba(15,17,21,0.13);
  --line-2:    rgba(15,17,21,0.28);
  --accent:        #2F62E9;
  --accent-bright: #2452C7;   /* auf hellem Grund: dunkler = lesbar */
  --accent-glow:   rgba(47,98,233,0.22);
}

/* ---------- Dunkles Finale: Token-Scope ---------- */
.night, .footer, .cta-band {
  --bg:      #101521;
  --bg-2:    #151B2B;
  --panel:   #171D30;
  --panel-2: #1C2338;
  --ink:     #F2F5FA;
  --ink-2:   #A9B4C8;
  --muted:   #8B96AC;
  --soft:    #5E6A82;
  --line:    rgba(160,180,220,0.14);
  --line-2:  rgba(160,180,220,0.26);
  --accent-bright: #5E93FF;
}
.night { background: var(--bg); color: var(--ink); }
.night.band-2, .night .band-2 { background: var(--bg-2); }

/* ---------- Basis-Korrekturen für hell ---------- */
::selection { background: var(--accent); color: #fff; }
::-webkit-scrollbar-thumb { background: #C9C6BF; }
::-webkit-scrollbar-track { background: var(--bg); }

.header {
  background: rgba(246,245,242,0.9);
}
.header[data-scrolled="true"] { background: rgba(246,245,242,0.97); border-bottom-color: var(--line); }
.btn--solid { color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-mobile { background: var(--bg); }

/* Bild-Frames auf hell: leichter Schatten statt Hairline-Glow */
.frame { box-shadow: 0 18px 50px -22px rgba(16,21,33,0.28); }

/* CTA-Band bleibt der Akzent-Moment (blau) */
.cta-band { background: var(--accent); }
.cta-band .btn--solid { background: #fff; border-color: #fff; color: #101521; }
.cta-band .btn--solid:hover { background: #E8EEFF; border-color: #E8EEFF; color: #101521; }

/* Footer = dunkler Abschluss auf jeder Seite */
.footer { background: var(--bg); color: var(--ink-2); border-top: none; }
.footer .brand__name { color: var(--ink); }

/* ---------- Timeline-Hero (Startseite) ---------- */
.tl-hero { padding: clamp(36px, 5vw, 64px) 0 0; position: relative; overflow: hidden; }
.tl-hero__copy { max-width: 760px; position: relative; z-index: 3; }
.tl-hero__title { font-size: clamp(44px, 6vw, 92px); }
.timeline-stage { position: relative; height: clamp(320px, 33vw, 430px); margin-top: -96px; pointer-events: none; }
@media (max-width: 720px) { .timeline-stage { margin-top: -20px; height: 420px; } }
.timeline-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.tl-node { font-family: var(--f-mono); font-size: 12.5px; fill: var(--ink-2); }
.tl-node--strong { fill: var(--accent); font-weight: 600; }
.portrait-cut {
  position: absolute; right: clamp(4%, 9vw, 13%); bottom: 0; height: 96%; z-index: 2;
  filter: drop-shadow(0 24px 50px rgba(16,21,33,0.35));
}
.portrait-cut--img { height: 96%; width: auto; object-fit: contain; object-position: bottom; }
.portrait-note {
  position: absolute; right: clamp(4%, 9vw, 13%); bottom: 14px; z-index: 4;
  background: rgba(16,21,33,0.85); color: #fff;
  font-family: var(--f-mono); font-size: 11px; padding: 6px 10px; max-width: 260px;
}

/* ---------- Trust-Leiste (Kunden-Logo-Marquee) ---------- */
.trust {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 22px 0; background: var(--panel); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.trust__track { display: flex; width: max-content; animation: trust-marquee 38s linear infinite; will-change: transform; }
.trust:hover .trust__track { animation-play-state: paused; }
.trust__group { display: flex; align-items: center; gap: 96px; padding-right: 96px; }
.trust__logo { display: block; height: 30px; width: auto; opacity: 0.62; filter: grayscale(1); transition: opacity .25s ease, filter .25s ease; }
.trust__logo--tall { height: 46px; }
.trust__logo:hover { opacity: 1; filter: none; }
.trust__item { font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: 0.05em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
@keyframes trust-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .trust__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .trust__group { flex-wrap: wrap; justify-content: center; padding-right: 0; gap: 14px 36px; }
  .trust__group[aria-hidden="true"] { display: none; }
}

/* ---------- Leistungen: asymmetrisches Bento ---------- */
.offers-bento { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: 20px; margin-top: 44px; }
.offers-bento .offer { border: 1px solid var(--line); background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.offer--big { grid-row: 1 / span 2; background: linear-gradient(165deg, #EDF1FE, #FFFFFF 55%); border-color: rgba(47,98,233,0.35) !important; }
.offer--big .offer__media { margin: 6px -28px -28px; overflow: hidden; }
.offer--big .offer__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.offer--big .offer__title-big { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 3vw, 40px); line-height: 1.04; letter-spacing: -0.02em; margin: 0; }
.offers-bento .offer__foot { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; align-items: center; }
.offers-bento .offer__desc { color: var(--ink-2); flex: 1; margin: 0; }
.offers-bento .offer__go { color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) {
  .offers-bento { grid-template-columns: 1fr; }
  .offer--big { grid-row: auto; }
  /* KI-Karte mobil: Bild oben, Badge ausblenden */
  .offer--big .offer__media { order: -1; margin: -28px -28px 8px; }
  .offer--big .offer__badge { display: none; }
}
/* Header mobil: nur Logo-Symbol */
@media (max-width: 720px) { .header .brand__name { display: none; } }

/* ---------- Der eine Umschlag: hell → dunkel ---------- */
.switch-band { position: relative; }
.switch-band img { width: 100%; height: clamp(340px, 50vw, 600px); object-fit: cover; display: block; }
.switch-band__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, #F6F5F2 0%, transparent 30%, rgba(16,21,33,0.35) 70%, #101521 100%); }
.switch-band__label { position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 60px); text-align: center; color: #fff; z-index: 1; }
.switch-band__label .display { font-size: clamp(36px, 5.4vw, 82px); }

/* ---------- Feinheiten ---------- */
/* Status-Punkt auf hell */
.status .dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
/* Offer-Preis/Badge aus wp-extra weiterhin gültig; Badge-Kontrast bleibt */
.offer--featured { box-shadow: none; }
/* Work-Cards im Night-Scope: Hairlines statt Schatten */
.night .frame { box-shadow: none; border-color: var(--line); }
/* Kontakt-Sektion im Night-Scope */
.night .contact-line { border-color: var(--line); }
/* Skip-Link Kontrast */
.skip-link { background: var(--accent); }
