/* ==========================================================================
   site.css — Seitengerüst: Header/Mega-Navigation (P02/K04) + Footer (P13)
   Farben Style Guide. Mobile lt. M01 (Burger-Panel).
   ========================================================================== */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 58%, transparent);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); }
.nav-wrap { display: flex; align-items: center; gap: 1.6rem; height: 100%; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: var(--r-s); }
.brand img { height: 21px; width: auto; }

.main-nav > ul { display: flex; align-items: center; gap: 0.15rem; list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: 0; cursor: pointer;
  font: 500 0.98rem/1 var(--font-sans); color: var(--ink);
  text-decoration: none; padding: 0.65rem 0.85rem; border-radius: var(--r-s);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-link:hover { background: var(--bg-cool); color: var(--ink); }
.nav-link .caret { transition: transform var(--t-fast) var(--ease); color: var(--text-soft); }
.has-mega.is-open .nav-link { background: var(--bg-cool); }
.has-mega.is-open .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; }
.lang-switch {
  font: 500 var(--fs-small)/1 var(--font-sans); color: var(--text-soft);
  text-decoration: none; border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 0.55rem 0.7rem; transition: color var(--t-fast), border-color var(--t-fast);
}
.lang-switch:hover { color: var(--ink); border-color: var(--line-input); }
/* Nur in der Navbar: CTA auf Höhe des Language-Switchers */
.nav-actions .btn {
  height: auto;
  padding: 0.55rem 0.9rem;
  font-size: var(--fs-small);
  line-height: 1;
  border: 1px solid transparent;
}

/* ---------- Mega-Panels (volle Breite unter dem Header,
   Hairlines statt Karte, Spalten mit VERSAL-Gruppenlabels, Hover-Intent) ---------- */
.mega {
  position: absolute; top: calc(100% + 0.55rem);
  left: 50%;
  width: min(calc(100vw - 2 * var(--gutter)), calc(var(--container) - 2 * var(--gutter)));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: 0 30px 60px -30px rgba(7, 28, 61, 0.35);
  padding: 1.6rem 0 0;
  opacity: 0; transform: translate(-50%, -4px); visibility: hidden; pointer-events: none;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.has-mega.is-open .mega { opacity: 1; transform: translate(-50%, 0); visibility: visible; pointer-events: auto; }
.mega .container { max-width: none; padding-inline: 1.7rem; }
.mega-inner { display: grid; gap: 2.2rem; align-items: start; padding-bottom: 1.8rem; }
.mega-inner--produkt { grid-template-columns: 1fr 2.9fr; }
.mega-inner--loesungen { grid-template-columns: 1.5fr 1.1fr 1fr; }
.mega-inner--wissen { grid-template-columns: 1.5fr 1.1fr; }

/* Abdunkeln der Seite bei offenem Mega.
   Direktes body-Kind VOR dem Header: z-index 50 liegt über dem Inhalt,
   unter dem Header (60). Nicht in den Header setzen — dessen
   backdrop-filter würde position:fixed einfangen. */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(3, 29, 64, 0.36);
  opacity: 0; pointer-events: none;
  transition: opacity var(--t-med) var(--ease);
}
body.mega-open .nav-backdrop { opacity: 1; pointer-events: auto; }

.mega-col-title {
  font: 500 var(--fs-label)/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-soft); margin: 0 0 0.9rem;
}
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.15rem 1.2rem; }
.mega-list { display: grid; gap: 0.15rem; }
.mega-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.5rem 0.6rem; margin-left: -0.6rem; border-radius: var(--r-s);
  text-decoration: none; color: var(--text);
  transition: background var(--t-fast) var(--ease);
}
.mega-item:hover { background: var(--bg-cool); color: var(--text); }
.mega-item b { display: block; color: var(--ink); font-weight: 600; font-size: 0.94rem; line-height: 1.35; }
.mega-item span { font-size: 0.8rem; color: var(--text-soft); line-height: 1.4; }
.mega-item:hover b { color: var(--blue-deep); }
.mega-item .app-icon {
  flex: none; width: 1.9rem; height: 1.9rem; border-radius: var(--r-s);
  display: grid; place-items: center; margin-top: 0.05rem;
  color: var(--app, var(--blue));
  background: color-mix(in srgb, var(--app, var(--blue)) 10%, #fff);
}
.mega-item .app-icon svg { width: 1.15rem; height: 1.15rem; }
.mega-item--compact { align-items: center; padding-block: 0.42rem; }
.mega-item--compact b { font-weight: 560; font-size: 0.92rem; }
.mega-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--app, var(--blue)); }

.mega-spot {
  display: flex; flex-direction: column; align-items: flex-start; height: 100%;
  text-decoration: none;
  background: var(--bg-cool); border: 1px solid var(--line-soft); border-radius: var(--r-m);
  padding: 1.1rem 1.2rem 1.2rem;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.mega-spot:hover { border-color: var(--blue-100); background: var(--blue-050); }
.mega-spot img { height: 26px; width: auto; margin-bottom: 0.8rem; }
.mega-spot b { display: block; color: var(--ink); font-weight: 640; margin-bottom: 0.2rem; }
.mega-spot span { font-size: 0.85rem; color: var(--text-soft); line-height: 1.45; display: block; }
.mega-spot .go { color: var(--blue); font-weight: 500; margin-top: auto; padding-top: 0.7rem; font-size: 0.9rem; }
.mega-spot .spot-label {
  font: 500 var(--fs-label)/1 var(--font-sans); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); display: block; margin-bottom: 0.55rem;
}
.mega-spot .spot-kpi { font: 620 1.45rem/1.15 var(--font-serif); color: var(--ink); display: block; margin-top: 0.45rem; }
.mega-spot .spot-kpi small { display: block; font: 400 0.78rem/1.35 var(--font-sans); color: var(--text-soft); margin-top: 0.15rem; }

.mega-footer {
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem; color: var(--text-soft);
}
.mega-footer .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.8rem; }
.mega-footer a { white-space: nowrap; font-weight: 500; }

/* ---------- Burger / Mobile (M01) ---------- */
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 0.55rem; border-radius: var(--r-s); }
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast); }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Schmale Desktop-Breite direkt oberhalb des Burger-Umbruchs: ein Punkt mehr
   (Preise) braucht knapper bemessene Abstände, damit „Trust Center" nicht umbricht. */
@media (min-width: 62.01rem) and (max-width: 68rem) {
  .main-nav > ul { gap: 0; }
  .nav-link { padding-inline: 0.55rem; }
}

@media (max-width: 62rem) {
  .nav-burger { display: block; }
  .main-nav {
    /* absolut zum (sticky) Header statt position:fixed — dessen
       backdrop-filter fängt fixed-Nachfahren ein (Containing Block) */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    z-index: 55;
    background: var(--bg); overflow-y: auto; padding: 1rem var(--gutter) 3rem;
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav-link { width: 100%; justify-content: space-between; padding: 1rem 0.25rem; font-size: 1.1rem; }
  .nav-link:hover { background: none; }
  .mega {
    position: static; width: auto; max-width: none;
    border: 0; box-shadow: none; padding: 0 0 1rem;
    display: none; opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  }
  .has-mega.is-open .mega { display: block; transform: none; }
  .nav-backdrop { display: none; }
  .mega-inner, .mega-inner--produkt, .mega-inner--loesungen { grid-template-columns: 1fr; gap: 1.2rem; padding-inline: 0; }
  .mega .container { padding-inline: 0; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-footer .container { padding-inline: 0; }
  .lang-switch { display: none; }
}
/* Demo-CTA im Burger-Panel nur, wenn er im Header keinen Platz hat */
.nav-demo { display: none; }
@media (max-width: 24.99rem) {
  .nav-actions .btn { display: none; }
  .main-nav > ul > li.nav-demo { display: block; border-bottom: 0; padding-top: 1.4rem; }
  .nav-demo .btn { width: 100%; }
}

/* ---------- Footer (P13, Nachtfläche) — Inhaltsbereich läuft als Karte mit Radius unten aus ---------- */
main#main {
  background: var(--bg);
  border-radius: 0 0 var(--r-l) var(--r-l);
  overflow: clip;
  position: relative; z-index: 1;
  margin-bottom: calc(-1 * var(--r-l)); /* legt die Rundung über die Navy-Fläche des Footers */
}
.site-footer {
  background: var(--navy); color: var(--on-navy);
  padding: calc(clamp(var(--s-8), 8vw, var(--s-12)) + var(--r-l)) 0 var(--s-4);
  font-size: var(--fs-small);
}
.footer-grid {
  display: grid; gap: var(--s-6);
  grid-template-columns: 1.6fr repeat(4, minmax(8.5rem, 1fr));
  margin-bottom: var(--s-8);
}
@media (max-width: 62rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 38rem) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 20px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { color: var(--on-navy-soft); line-height: 1.6; }
.footer-brand a { color: var(--on-navy-soft); text-decoration: none; }
.footer-brand a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }   /* wie .footer-col a */
.footer-brand p.footer-claim { font-family: var(--font-serif); font-style: italic; color: var(--lime); font-size: 1.02rem; }
.footer-col h3 {
  font: 500 var(--fs-label)/1 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--on-navy-soft); margin: 0.2rem 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a { color: var(--on-navy); text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.6rem; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-dark); padding-top: var(--s-3);
  color: var(--on-navy-soft);
}
.footer-bottom ul { display: flex; gap: 1.4rem; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: var(--on-navy-soft); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Pos 03: Logo-Band + Claim (P04 groß, M04) ---------- */
.logo-band { padding-block: clamp(2.6rem, 6vw, 4.5rem); }
.logoband-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2.5rem; margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.logoband-head h2 { font-size: var(--fs-d3); max-width: 30ch; margin: 0; }
.logoband-label { font-size: var(--fs-small); color: var(--text-soft); margin: 0 0 0.6rem; }
.logoband-link { white-space: nowrap; font-weight: 500; text-decoration: none; }
.marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; align-items: center; gap: 3.6rem; padding-right: 3.6rem; flex: none; }
.marquee .client-logo { font-size: 1.18rem; }
html.motion .marquee-track { animation: marqueeMove 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeMove { to { transform: translateX(-50%); } }

/* ---------- Pos 04: Vorher/Nachher (P14), editoriale Bauweise:
   Hairlines statt Boxen, VERSAL-Mikrolabels, Werkbank-Vignetten ---------- */
.section-head { max-width: 52rem; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.section-head h2 { font-size: var(--fs-d2); margin-bottom: 0.35em; }
.oldway { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.oldway::before {
  content: ""; position: absolute; left: 50%; top: 0.4rem; bottom: 0.4rem;
  width: 1px; background: var(--line-soft);
}
.oldway-label {
  font: 600 0.7rem/1 var(--font-label); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-soft); margin: 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--line);
}
.oldway-col--with .oldway-label { color: var(--blue-deep); border-bottom-color: var(--blue-100); }
.oldway-visual {
  position: relative; height: 11.5rem; overflow: hidden;
  border: 1px solid var(--line-soft); border-radius: var(--r-m);
  margin: 1.2rem 0 1.5rem;
}
.ow-card { position: absolute; width: 12.5rem; opacity: 0.92; }
.ow-card .doc-title { display: block; font: 600 0.72rem/1.3 var(--font-sans); color: var(--text-soft); padding: 0.65rem 0.8rem 0.1rem; }
.ow-card .skeleton i { background: #e6eaf1; }
.ow-card--1 { left: 6%; top: 14%; transform: rotate(-4deg); }
.ow-card--2 { left: 38%; top: 42%; transform: rotate(2.5deg); }
.ow-card--3 { right: 5%; top: 10%; transform: rotate(6deg); }
.oldway-visual--with { background: #fff; display: grid; place-items: center; padding: 1rem; }
.oldway-visual--with .gd { width: 100%; max-width: 24rem; }
.oldway h3 { font-size: 1.3rem; margin: 0 0 0.3rem; }
.oldway-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.oldway-list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 0; }
.oldway-list li + li { border-top: 1px solid var(--line-soft); }
.oldway-list .check { flex: none; width: 1.35rem; height: 1.35rem; margin-top: 0.1em; border-radius: 50%; display: grid; place-items: center; background: var(--blue-050); color: var(--blue); }
.oldway-list .check svg { width: 0.8rem; height: 0.8rem; }
.oldway-list--cross .check { background: #eef0f4; color: var(--text-soft); }
.oldway-list--cross li > span:last-child { color: var(--text-soft); }
@media (max-width: 62rem) {
  .oldway { grid-template-columns: 1fr; gap: 3rem; }
  .oldway::before { display: none; }
}

/* ---------- Pos 05: Kennzahlen-Matrix (E01, Raster, sparsam belegt) ---------- */
.stats-grid {
  display: grid; gap: 4px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 10.5rem);
  background: var(--bg-cool);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l); overflow: hidden;
  padding: 4px;
}
.sg-tile, .sg-empty { background: #fff; border-radius: var(--r-m); }
.sg-tile {
  display: grid; place-content: center; text-align: center;
  padding: 1.2rem; gap: 0.4rem;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.sg-fading .sg-dyn { opacity: 0; transform: translateY(-7px); }
.sg-tile--b { background: var(--blue-050); }
.sg-tile--wm { background: var(--bg-warm); }
.sg-tile--dots {
  background-color: #fff;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 85%, var(--text-soft)) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
.sg-tile--glow {
  background:
    radial-gradient(15rem 9rem at 80% 18%, rgba(255, 77, 129, 0.13), transparent 62%),
    radial-gradient(13rem 9rem at 10% 92%, rgba(251, 239, 243, 0.95), transparent 60%),
    #fff;
}
.sg-num { display: block; font: 620 1.6rem/1.05 var(--font-serif); color: var(--ink); letter-spacing: -0.01em; font-variant-numeric: lining-nums; }
.sg-label { display: block; font: 400 0.78rem/1.35 var(--font-sans); color: var(--text-soft); max-width: 13rem; margin-inline: auto; }
.sg-size-2 .sg-num { font-size: clamp(1.9rem, 2.6vw, 2.5rem); }
.sg-size-4 .sg-num { font-size: clamp(2.6rem, 3.4vw, 3.6rem); }
.sg-case {
  grid-column: 5 / 7; grid-row: 1 / 3;
  position: relative; display: block; text-decoration: none; overflow: hidden; background: var(--navy);
  border-radius: var(--r-m);
}
.sg-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.sg-case::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(3,29,64,0.06) 30%, rgba(3,29,64,0.78) 100%); }
.sg-case-body { position: absolute; left: 1.4rem; right: 1.4rem; bottom: 1.3rem; z-index: 1; color: #fff; }
.sg-case-kpi { font: 620 clamp(2.4rem, 3.4vw, 3.4rem)/1 var(--font-serif); display: block; }
.sg-case-label { display: block; font: 400 0.9rem/1.4 var(--font-sans); color: rgba(255,255,255,0.85); margin-top: 0.3rem; }
.sg-case-meta { display: block; font: 500 0.72rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 0.7rem; }
.sg-case-arrow {
  position: absolute; top: 1rem; right: 1rem; z-index: 1;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--ink);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease);
}
.sg-case:hover .sg-case-arrow { transform: translate(2px, -2px); }
@media (max-width: 62rem) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: 9rem; }
  .stats-grid > * { grid-column: auto !important; grid-row: auto !important; }
  .sg-empty { display: none; }
  .sg-case { grid-column: 1 / 3 !important; grid-row: span 2 !important; order: -1; }
}
/* Große Kachel (200 Mio. €) passt schmal nicht in eine halbe Spalte */
@media (max-width: 40rem) { .stats-grid > .sg-size-4 { grid-column: 1 / -1 !important; } }

/* ---------- Pos 06: App-Bento (2+3+1, getönte
   Flächen, große zweifarbige Headline, Pfeil-Kreis, Visual unten beschnitten,
   dezente Punkt-Deko, sanfte CSS-Loops) ---------- */
.apps-bento { display: grid; gap: 1rem; grid-template-columns: repeat(6, 1fr); }
.ab-tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-cool);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  padding: 1.7rem 1.7rem 0;
  text-decoration: none; color: inherit;
  min-height: 21rem;
}
.ab-tile--lg { grid-column: span 3; }
.ab-tile--md { grid-column: span 2; min-height: 19rem; }
.ab-tile--wide { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 2.5rem; padding: 1.7rem; }
.ab-dots {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--line) 80%, var(--text-soft)) 1px, transparent 1.2px);
  background-size: 20px 20px; opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
  mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.ab-tile.is-live { isolation: isolate; }
.ab-tile.is-live .ab-dots { display: none; }
.ab-live { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.ab-arrow {
  position: absolute; top: 1.15rem; right: 1.15rem; z-index: 2;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  background: #fff; border: 1px solid var(--line-soft); color: var(--ink);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease);
}
.ab-tile:hover .ab-arrow { transform: translate(2px, -2px); }
.ab-kicker {
  font: 600 0.66rem/1 var(--font-label); letter-spacing: 0.11em; text-transform: uppercase;
  color: color-mix(in srgb, var(--app-accent, var(--blue)) 55%, var(--navy));
  margin-bottom: 0.7rem;
}
.ab-title { font: 640 clamp(1.25rem, 1.7vw, 1.55rem)/1.32 var(--font-sans); color: var(--text-soft); margin: 0; max-width: 22ch; letter-spacing: -0.01em; }
.ab-title b { color: var(--ink); font-weight: 640; }
.ab-visual { position: relative; z-index: 1; margin-top: auto; padding-top: 1.5rem; }
.ab-visual .gd { width: 92%; margin-inline: auto; transform: translateY(10px); }
.ab-tile--wide .ab-visual { margin: 0 0 0 auto; padding: 0; flex: none; width: min(30rem, 48%); }
.ab-tile--wide .ab-visual .gd { width: 100%; transform: none; }
/* Mini-Impact-Karte (SHOW) */
.ab-impact { width: 15rem; margin: 0 auto; background: #fff; border: 1px solid var(--line-warm); border-radius: var(--r-m) var(--r-m) 0 0; border-bottom: 0; box-shadow: var(--shadow-warm); overflow: hidden; transform: translateY(1px); }
.ab-impact .impact-art { height: 3rem; background: var(--bg-warm); display: flex; align-items: flex-start; justify-content: flex-end; padding: 0.45rem; }
.ab-impact .impact-badge { font: 500 0.58rem/1 var(--font-label); letter-spacing: 0.08em; text-transform: uppercase; background: #fff; color: var(--mint-text); border: 1px solid var(--line-warm); border-radius: 4px; padding: 0.26rem 0.42rem; }
.ab-impact .impact-body { padding: 0.65rem 0.8rem 0.9rem; }
.ab-impact b { display: block; font: 600 0.8rem/1.35 var(--font-sans); color: var(--ink); }
.ab-impact .impact-heart { display: inline-flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font: 600 0.72rem/1 var(--font-sans); color: var(--pink-deep); }
html.motion .ab-impact .impact-heart svg { animation: abHeart 2.8s var(--ease) infinite; transform-origin: center; }
@keyframes abHeart { 0%, 70%, 100% { transform: scale(1); } 78% { transform: scale(1.25); } }
/* Badge-Crossfade (GRANT) */
.anim-badge { display: inline-grid; }
.anim-badge > * { grid-area: 1 / 1; justify-self: end; }
.anim-badge > :last-child { opacity: 0; }
html.motion .anim-badge > :first-child { animation: abSwapA 6s var(--ease) infinite; }
html.motion .anim-badge > :last-child { animation: abSwapB 6s var(--ease) infinite; }
@keyframes abSwapA { 0%, 42% { opacity: 1; } 50%, 92% { opacity: 0; } 100% { opacity: 1; } }
@keyframes abSwapB { 0%, 42% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
/* Balken-Loops (SHARE/FUND/VOTE) */
html.motion .anim-bar > span { animation: abBar 5.5s var(--ease) infinite; }
@keyframes abBar { 0% { width: 26%; } 55%, 90% { width: var(--to, 84%); } 100% { width: 26%; } }
.ab-vote-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.4rem 0.7rem; }
.ab-vote-row .vname { font: 500 0.7rem/1 var(--font-sans); color: var(--app-text); width: 6.5rem; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ab-vote-row .gd-bar { flex: 1; }
.ab-vote-row .vcount { font: 600 0.68rem/1 var(--font-label); color: var(--app-ink); }
html.motion .ab-vote-row:nth-child(2) .anim-bar > span { animation-delay: 0.35s; }
html.motion .ab-vote-row:nth-child(3) .anim-bar > span { animation-delay: 0.7s; }
/* Code (Part) */
.ab-code { background: var(--navy); border-radius: var(--r-m); padding: 1.1rem 1.3rem; font: 400 0.74rem/1.7 var(--font-mono); color: var(--on-navy); overflow: hidden; }
.ab-code .c-key { color: var(--mint); }
.ab-code .c-str { color: var(--lime); }
.ab-code .c-com { color: var(--on-navy-soft); }
.ab-caret { display: inline-block; width: 7px; height: 0.9em; background: var(--lime); vertical-align: -0.12em; }
html.motion .ab-caret { animation: abCaret 1.1s steps(1) infinite; }
@keyframes abCaret { 50% { opacity: 0; } }
/* Kachel-Zusätze lt. Review: Duo-Impact, Code-Chips, Zahlungszeile, Klick */
.ab-impact-duo { display: flex; gap: 0.8rem; justify-content: center; align-items: flex-end; }
.ab-impact--sm { width: 11.5rem; }
.ab-impact--sm b { font-size: 0.72rem; }
.ab-chips { display: flex; gap: 0.45rem; margin-bottom: 0.6rem; }
.ab-code-chip {
  font: 600 0.6rem/1 var(--font-label); letter-spacing: 0.04em;
  color: var(--app-text-soft); background: #fff;
  border: 1px solid var(--app-line); border-radius: 6px; padding: 0.34rem 0.45rem;
}
html.motion .ab-code-chip { animation: abChip 5.5s var(--ease) infinite; }
html.motion .ab-chips .ab-code-chip:nth-child(2) { animation-delay: 0.45s; }
html.motion .ab-chips .ab-code-chip:nth-child(3) { animation-delay: 0.9s; }
@keyframes abChip {
  0%, 16% { background: #fff; border-color: var(--app-line); color: var(--app-text-soft); }
  28%, 88% { background: var(--app-tint-green); border-color: #b7e3c4; color: var(--app-green-deep); }
  100% { background: #fff; border-color: var(--app-line); color: var(--app-text-soft); }
}
.ab-pay {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--app-line); border-radius: 8px;
  padding: 0.45rem 0.6rem; margin-bottom: 0.6rem;
  font: 500 0.66rem/1 var(--app-font, var(--font-sans)); color: var(--app-text, var(--text));
}
.ab-pay svg { flex: none; color: var(--app-text-soft, var(--text-soft)); }
.ab-pay .pay-badge { margin-left: auto; font: 500 0.58rem/1 var(--font-sans); color: #fff; background: var(--app-green, #22c55e); border-radius: 5px; padding: 0.26rem 0.42rem; }
html.motion .ab-pay { animation: abPay 5.5s var(--ease) infinite; }
@keyframes abPay { 0%, 12% { opacity: 0; transform: translateY(7px); } 24%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.ab-votebtn-wrap { position: relative; display: flex; justify-content: flex-end; padding: 0.55rem 0.7rem 0.15rem; }
html.motion .ab-votebtn-wrap .gd-btn { animation: abClick 5.5s var(--ease) infinite; }
@keyframes abClick { 0%, 24% { transform: scale(1); } 28% { transform: scale(0.92); } 33%, 100% { transform: scale(1); } }
.ab-cursor { position: absolute; right: 1.1rem; top: 1.7rem; pointer-events: none; color: var(--app-ink, var(--ink)); }
html.motion .ab-cursor { animation: abCursor 5.5s var(--ease) infinite; }
@keyframes abCursor {
  0% { transform: translate(52px, 38px); opacity: 0; }
  12% { opacity: 1; }
  24% { transform: translate(0, 0); opacity: 1; }
  28% { transform: translate(0, 0) scale(0.88); }
  42% { opacity: 1; }
  56%, 100% { opacity: 0; transform: translate(0, 0); }
}

/* ---------- Pos 07a–c: Story-Blöcke (P07, editoriale Bauweise) ---------- */
/* Story-Blöcke: getönte Content-Box statt vollbreiter Sektionsfläche */
.story-box { border-radius: var(--r-l); padding: clamp(1.8rem, 4vw, 3.2rem); }
.story-box--warm { background: var(--bg-warm); border: 1px solid var(--line-warm); }
.story-box--warm .story-kicker { color: var(--warm-label); }
.story-box--warm .story-visual { background: #fff; border-color: var(--line-warm); }
.story-box--soft { background: var(--bg-cool); border: 1px solid var(--line-soft); }

.story-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.story-grid--flip > .story-copy { order: 2; }
.story-kicker {
  font: 600 0.7rem/1 var(--font-label); letter-spacing: 0.11em; text-transform: uppercase;
  color: var(--text-soft); display: block; margin-bottom: 1rem;
}
.section--warm .story-kicker { color: var(--warm-label); }
.story-title { font: 640 clamp(1.7rem, 2.6vw, 2.4rem)/1.18 var(--font-sans); letter-spacing: -0.012em; color: var(--ink); margin: 0 0 0.55em; }
.story-copy .check-list strong { color: var(--ink); font-weight: 600; }
.story-quote { border-top: 1px solid var(--line); margin-top: 1.7rem; padding-top: 1.35rem; }
.section--warm .story-quote { border-top-color: var(--line-warm); }
.story-quote blockquote { margin: 0 0 0.9rem; font-size: 1.04rem; line-height: 1.55; color: var(--ink); }
.story-visual {
  position: relative; overflow: hidden;
  background: var(--bg-cool); border: 1px solid var(--line-soft); border-radius: var(--r-l);
  padding: 2rem 2rem 0; min-height: 25rem;
  display: flex; align-items: flex-end;
}
.story-visual .gd { width: 100%; transform: translateY(10px); }
.section--warm .story-visual { background: #fff; border-color: var(--line-warm); }
.story-glow {
  position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(22rem 15rem at 82% 12%, rgba(255, 77, 129, 0.12), transparent 60%);
}
html.motion .story-syncrow { animation: abPay 6s var(--ease) infinite; }
@media (max-width: 62rem) {
  .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  .story-grid--flip > .story-copy { order: 0; }
  .story-visual { min-height: 20rem; }
}

/* ---------- Pos 09: Zitat-Wand (P11):
   3 vertikal laufende Spalten, oben/unten maskiert, Hover pausiert ---------- */
.qwall-head { text-align: center; max-width: 44rem; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.qwall-head .eyebrow { justify-content: center; }
.qwall {
  position: relative; overflow: hidden;
  height: clamp(26rem, 46vw, 34rem);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.qwall-col { display: flex; flex-direction: column; }
html.motion .qwall-col { animation: qScroll var(--qdur, 32s) linear infinite; }
html.motion .qwall:hover .qwall-col { animation-play-state: paused; }
@keyframes qScroll { to { transform: translateY(-50%); } }
.qcard {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-m);
  padding: 1.35rem 1.4rem; flex: none; margin-bottom: 1rem;
}
.qcard .qbrand {
  display: block; font: 600 0.66rem/1 var(--font-label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-soft); margin-bottom: 0.75rem;
}
.qcard blockquote { margin: 0 0 0.9rem; font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
.qcard .qmeta b { display: block; font-weight: 600; color: var(--ink); font-size: 0.88rem; }
.qcard .qmeta span { font-size: 0.78rem; color: var(--text-soft); }
.qcard .qmeta:has(> .qava) { display: grid; grid-template-columns: auto 1fr; column-gap: 0.7rem; align-items: center; }
.qcard .qava {
  grid-row: span 2; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover;
  background: var(--bg-cool-tint);
}
html:not(.motion) .qwall { height: auto; mask-image: none; -webkit-mask-image: none; }
html:not(.motion) .qwall .dupe { display: none; }
/* Ohne Bewegung: jedes Zitat genau einmal, die 6 Karten der ersten Spalte im Raster,
   die umsortierten Kopien in Spalte 2 und 3 (aria-hidden) entfallen */
html:not(.motion) .qwall-col:first-child { display: contents; }
html:not(.motion) .qwall-col:first-child .qcard { margin-bottom: 0; }
html:not(.motion) .qwall-col[aria-hidden="true"] { display: none; }
@media (max-width: 62rem) {
  .qwall { grid-template-columns: 1fr; height: 28rem; }
  .qwall-col:nth-child(n+2) { display: none; }
}

/* ---------- Pos 10: Compliance-Bühne (E03) — Navy-Content-Box, Lime nur hier ---------- */
.comp-box {
  position: relative; overflow: hidden; border-radius: var(--r-l);
  background: radial-gradient(26rem 18rem at 90% -8%, rgba(41, 97, 225, 0.4), transparent 62%), var(--navy);
  padding: clamp(2rem, 4.5vw, 3.6rem);
}
.comp-box .story-kicker { color: var(--lime); }
.comp-head { max-width: 47rem; margin-bottom: 2rem; }
.comp-head .story-title { font-size: clamp(2rem, 3.2vw, 2.85rem); margin: 0 0 0.45em; }
.comp-head .lead { color: rgba(255, 255, 255, 0.74); }
.comp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin-bottom: 2.4rem; font-size: 0.78rem; color: rgba(255, 255, 255, 0.58); }
.comp-chips .chip { border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 6px; padding: 0.32rem 0.66rem; font: 600 0.68rem/1 var(--font-label); letter-spacing: 0.07em; text-transform: uppercase; color: rgba(255, 255, 255, 0.92); }
.comp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 2rem; }
.comp-tile { border-top: 1px solid rgba(255, 255, 255, 0.18); padding: 1.5rem 0 1rem; }
.comp-tile .t-ico { display: inline-flex; width: 1.55rem; color: var(--lime); margin-bottom: 0.9rem; }
.comp-tile .t-ico svg { width: 100%; height: auto; }
.comp-tile h3 { font: 600 1rem/1.3 var(--font-sans); color: #fff; margin: 0 0 0.5rem; }
.comp-tile p { margin: 0; font-size: 0.84rem; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.comp-cta { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.4rem; }
.comp-cta .btn-note { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.comp-box .btn--lime { background: var(--lime-deep); border-color: var(--lime-deep); color: var(--navy); }
.comp-box .btn--lime:hover { background: var(--lime); border-color: var(--lime); color: var(--navy); }
@media (max-width: 62rem) { .comp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .comp-grid { grid-template-columns: 1fr; } .comp-tile { padding-bottom: 0.4rem; } }

/* ---------- Pos 08: Case-Beweisband (E02, Bauweise des Matrix-Case-Panels) ---------- */
.case-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.case-strip .sg-case { grid-column: auto; grid-row: auto; border-radius: var(--r-l); min-height: 17.5rem; border: 1px solid var(--line-soft); }
@media (max-width: 62rem) { .case-strip { grid-template-columns: 1fr; } .case-strip .sg-case { min-height: 14rem; } }
@media (max-width: 62rem) {
  .apps-bento { grid-template-columns: 1fr; }
  .ab-tile--lg, .ab-tile--md, .ab-tile--wide { grid-column: auto; min-height: 17rem; }
  .ab-tile--wide { flex-direction: column; align-items: stretch; gap: 1.4rem; padding-bottom: 1.7rem; }
  .ab-tile--wide .ab-visual { width: 100%; }
}

/* ---------- Pos 11: FAQ (P17 SEO-Variante): Kopf zentriert, Fragen volle Breite ---------- */
.faq-head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2rem, 4.5vw, 3rem); }
.faq-head .display-2 { margin: 0 0 0.4em; }
.faq-hint { color: var(--text-soft); font-size: 0.95rem; margin-inline: auto; }

/* ---------- Pos 12: Bookend-CTA (P12 Hero-Echo) ---------- */
.cta-bookend { text-align: center; max-width: 46rem; margin-inline: auto; padding-block: clamp(1.5rem, 4vw, 3rem); }
.cta-bookend .eyebrow { justify-content: center; }
.cta-bookend h2 { font: 640 clamp(2.1rem, 4.2vw, 3.15rem)/1.12 var(--font-sans); letter-spacing: -0.018em; color: var(--ink); margin: 0 0 0.45em; }
.cta-bookend .lead { margin: 0 auto 2em; max-width: 36rem; }
.cta-actions { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.cta-actions .email-combo { width: min(100%, 26.5rem); }

/* ---------- Kundenlogos (29.09.2026): echte Logos aus Twenty-Bestandskunden, Originalfarben ---------- */
.client-logo-img { display: block; flex: none; height: auto; max-width: 100%; }
.logoband-rows { display: grid; gap: 2.4rem; padding-block: 0.4rem; }
.marquee--logos .marquee-group { gap: 3.4rem; padding-right: 3.4rem; }
html.motion .marquee--logos .marquee-track { animation-duration: var(--dur, 200s); }
html.motion .marquee--rev .marquee-track { animation-direction: reverse; }
.logo-wall { align-items: center; gap: 1.5rem 2.6rem; }
.hero-proof-names { align-items: center; gap: 0.6rem 1.8rem; }
/* auf dunklen Flächen bekommt jedes Logo eine helle Kachel, damit Originalfarben lesbar bleiben */
.on-dark .client-logo-img { background: #fff; padding: 0.4rem 0.65rem; border-radius: 6px; box-sizing: content-box; }
