/* =========================================================================
   SEREAL — Redesign-Layer (Prototyp Startseite)
   Liegt ÜBER style.css. Markenfarben bleiben, dazu kommen:
   Tiefe (Gradients/Glow/weiche Schatten), Sektions-Rhythmus hell/dunkel,
   ein Hero mit Produktvisual und dezente Bewegung.
   ========================================================================= */

:root {
  --shadow-sm:  0 1px 2px rgba(62,62,64,.06), 0 2px 8px -4px rgba(62,62,64,.10);
  --shadow-md:  0 2px 4px rgba(62,62,64,.05), 0 12px 28px -14px rgba(62,62,64,.22);
  --shadow-lg:  0 4px 8px rgba(62,62,64,.05), 0 40px 80px -40px rgba(62,62,64,.42);
  --shadow-xl:  0 8px 16px rgba(62,62,64,.06), 0 60px 120px -50px rgba(62,62,64,.55);
  --r-lg: 18px;
  --r-xl: 24px;
}

/* Sektions-Überschriften etwas größer — aber responsiv, nicht per Inline-Style.
   38px fest hat auf 375px-Displays die Seite horizontal überlaufen lassen. */
h2.sect { font-size: 38px; }

/* ---- Full-bleed-Bänder ------------------------------------------------- */
.band { max-width: none; margin: 0; padding: 0; }
.band-inner { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---- Nav: Schatten erst beim Scrollen --------------------------------- */
.nav { transition: box-shadow 220ms var(--ease-out), background 220ms var(--ease-out); }
.nav.scrolled { box-shadow: 0 1px 0 var(--border), 0 12px 28px -22px rgba(62,62,64,.5); }

/* =========================================================================
   1. HERO
   ========================================================================= */
.hero-wrap { position: relative; overflow: hidden; isolation: isolate; }
.hero-wrap::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 900px; z-index: -2;
  background:
    radial-gradient(52% 42% at 14% 18%, rgba(197,106,78,.13), transparent 70%),
    radial-gradient(44% 38% at 86% 8%, rgba(94,115,130,.12), transparent 68%),
    radial-gradient(34% 30% at 74% 86%, rgba(212,162,76,.09), transparent 72%);
}
/* feines Punktraster, das nach unten ausfadet */
.hero-wrap::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 760px; z-index: -1;
  background-image: radial-gradient(rgba(62,62,64,.13) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
          mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 72%);
}

.hero-new {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr);
  gap: 44px; align-items: center; padding-top: 76px; padding-bottom: 88px;
}
.hero-new h1 { margin-top: 20px; font-size: 54px; text-wrap: pretty; hyphens: none; }
/* Der Akzent-Halbsatz bekommt immer eine eigene Zeile — sonst bricht es zufällig */
.hero-new h1 .accent { display: block; }
.hero-new .lead { font: 400 17.5px/1.62 var(--font-sans); color: var(--fg); max-width: 560px; text-wrap: pretty; margin: 0; }
.hero-new .ctas { margin-top: 34px; }

/* Pill über der Headline */
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  font: 600 11.5px/1 var(--font-sans); letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-terracotta-700); background: rgba(255,255,255,.72);
  border: 1px solid var(--c-terracotta-100); border-radius: 999px;
  padding: 8px 14px 8px 11px; backdrop-filter: blur(6px); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-success); flex-shrink: 0; position: relative; }
.pill .dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--c-success); opacity: .55; animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .7 } 70%,100% { transform: scale(1.5); opacity: 0 } }

/* Buttons bekommen Tiefe */
.btn { transition: background 140ms var(--ease-out), transform 140ms var(--ease-out), box-shadow 200ms var(--ease-out); }
.btn-primary, .btn-slate { box-shadow: var(--shadow-sm); }
.btn-primary:hover, .btn-slate:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-secondary:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* Vertrauenszeile unter den CTAs */
.hero-trust {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  font: 500 13px/1.4 var(--font-sans); color: var(--fg-muted); max-width: 560px;
}
.hero-trust b { color: var(--fg-strong); font-weight: 600; font-family: var(--font-mono); font-size: 13.5px; }
.hero-trust i { width: 3px; height: 3px; border-radius: 50%; background: var(--c-terracotta-300); display: block; }

/* --- Hero-Visual: schwebender Browser-Rahmen mit Glow --- */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% -8% -14% 2%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15,118,110,.34), transparent 76%);
  filter: blur(46px);
}
.frame {
  position: relative; z-index: 1;
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  background: var(--c-paper); box-shadow: var(--shadow-xl);
  transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}
.frame:hover { transform: translateY(-4px); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--border); background: var(--c-cream-200); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.frame-bar .ttl { font: 500 12px/1 var(--font-mono); color: var(--fg-muted); margin-left: 8px; }
.frame-bar .ttl b { color: #0f766e; font-weight: 600; }
.frame img { display: block; width: 100%; height: auto; }

/* kleine schwebende Kennzahl-Karte über dem Screenshot */
.float-card {
  position: absolute; z-index: 2; left: -26px; bottom: -26px;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px;
  box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 14px;
}
.float-card .fc-num { font: 600 26px/1 var(--font-sans); color: #0f766e; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.float-card .fc-txt { font: 500 11.5px/1.35 var(--font-sans); color: var(--fg-muted); }
.float-card .fc-txt b { display: block; color: var(--fg-strong); font-weight: 600; font-size: 12.5px; }

/* =========================================================================
   2. TRUST-STRIP (Zahlen ganz nach oben — Social Proof)
   ========================================================================= */
.trust-band { background: var(--c-cream-200); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-strip .ts {
  padding: 30px 28px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.trust-strip .ts:first-child { border-left: 0; padding-left: 0; }
.trust-strip .num { font: 600 34px/1 var(--font-sans); letter-spacing: -.02em; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.trust-strip .num em { font-style: normal; color: var(--c-terracotta); }
.trust-strip .desc { font: 500 13px/1.45 var(--font-sans); color: var(--fg-muted); text-wrap: pretty; }

/* =========================================================================
   3. PRODUKTE (ersetzt Produktzeile + Trifecta — eine Sektion statt zwei)
   ========================================================================= */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; align-items: stretch; }
.pcard {
  --pc: var(--c-terracotta);
  position: relative; display: flex; flex-direction: column; gap: 12px;
  background: var(--c-paper); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 26px 24px; text-decoration: none; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.pcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--pc), color-mix(in srgb, var(--pc) 35%, transparent));
}
.pcard::after {
  content: ""; position: absolute; inset: -40% -30% auto auto; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--pc) 22%, transparent), transparent 72%);
  opacity: 0; transition: opacity 300ms var(--ease-out); pointer-events: none;
}
a.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--pc) 34%, var(--border)); }
a.pcard:hover::after { opacity: 1; }
.pcard .pc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard .pc-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font: 600 10px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 12%, transparent); color: var(--pc);
}
.pcard .pc-role { font: 600 10.5px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-subtle); }
.pcard h3 { margin: 6px 0 0; font: 600 26px/1.1 var(--font-sans); letter-spacing: .03em; color: var(--pc); }
.pcard .pc-tag { font: 500 11.5px/1 var(--font-mono); color: var(--fg-muted); }
.pcard p { margin: 4px 0 0; font: 400 14.5px/1.6 var(--font-sans); color: var(--fg); text-wrap: pretty; }
.pcard .pc-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font: 600 13px/1 var(--font-sans); color: var(--pc); }
.pcard .pc-foot .meta { font: 400 12px/1 var(--font-mono); color: var(--fg-subtle); }
.pcard .pc-foot .go { display: inline-flex; align-items: center; gap: 7px; }
.pcard .pc-foot .go svg { transition: transform 220ms var(--ease-out); }
a.pcard:hover .pc-foot .go svg { transform: translateX(4px); }
.pcard.soon { background: linear-gradient(180deg, var(--c-cream-200), var(--c-cream-500)); }
.pcard.soon h3 { color: var(--c-mustard-700); }

/* Fluss-Zeile unter den Karten */
.flowline {
  margin-top: 26px; display: flex; align-items: center; gap: 0; flex-wrap: wrap;
  background: var(--c-paper); border: 1px solid var(--border); border-radius: 14px;
  padding: 4px; box-shadow: var(--shadow-sm);
}
.flowline .fl {
  flex: 1 1 200px; display: flex; align-items: center; gap: 11px; padding: 14px 18px;
  font: 400 13.5px/1.45 var(--font-sans); color: var(--fg); text-wrap: pretty;
}
.flowline .fl b { font-weight: 600; color: var(--fg-strong); }
.flowline .fl .sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.flowline .arw { color: var(--c-terracotta-300); flex-shrink: 0; display: flex; align-items: center; }

/* =========================================================================
   4. DUNKLE PRODUKT-SEKTION (der Kontrastmoment)
   ========================================================================= */
.dark-band {
  background: var(--c-charcoal-900); color: #C4C0B5; position: relative; overflow: hidden; isolation: isolate;
  padding: 96px 0 100px; margin-top: 0;
}
.dark-band::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 780px; z-index: -1;
  background:
    radial-gradient(46% 42% at 72% 26%, rgba(15,118,110,.30), transparent 70%),
    radial-gradient(40% 36% at 18% 8%, rgba(197,106,78,.16), transparent 72%);
}
.dark-band .eyebrow { color: var(--c-mustard-300); }
.dark-band h2.sect { color: var(--c-cream); }
.dark-band .lead { font: 400 16.5px/1.65 var(--font-sans); color: #9C9892; max-width: 620px; margin: 14px 0 0; text-wrap: pretty; }

.shot-dark {
  margin-top: 44px; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid rgba(250,246,238,.14); background: #232325;
  box-shadow: 0 60px 120px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(250,246,238,.04);
  position: relative;
}
.shot-dark .frame-bar { background: #2F2F31; border-bottom: 1px solid rgba(250,246,238,.10); }
.shot-dark .frame-bar .ttl { color: #8B8983; }
.shot-dark .frame-bar .ttl b { color: #5eead4; }
.shot-dark img { display: block; width: 100%; height: auto; }
.shot-dark .cap {
  padding: 18px 24px; border-top: 1px solid rgba(250,246,238,.10); background: rgba(250,246,238,.03);
  font: 400 14px/1.6 var(--font-sans); color: #A5A29B; text-wrap: pretty;
}
.shot-dark .cap b { color: #5eead4; font-weight: 600; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
.thumb {
  display: block; text-decoration: none; border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(250,246,238,.12); background: #232325;
  transition: transform 240ms var(--ease-out), border-color 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.thumb:hover { transform: translateY(-3px); border-color: rgba(94,234,212,.4); box-shadow: 0 30px 60px -34px rgba(0,0,0,.9); }
.thumb img { display: block; width: 100%; height: auto; opacity: .88; transition: opacity 240ms var(--ease-out); }
.thumb:hover img { opacity: 1; }
.thumb .tl { padding: 12px 16px; font: 600 12.5px/1.3 var(--font-sans); color: var(--c-cream); border-top: 1px solid rgba(250,246,238,.10); }
.thumb .tl span { display: block; font: 400 11.5px/1.35 var(--font-sans); color: #8B8983; margin-top: 3px; }

.dark-cta { margin-top: 40px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-onlight { background: var(--c-cream); color: var(--c-charcoal-900); }
.btn-onlight:hover { background: #fff; }
.btn-outline-light { background: transparent; color: var(--c-cream); border-color: rgba(250,246,238,.28); }
.btn-outline-light:hover { background: rgba(250,246,238,.08); }

/* =========================================================================
   5. MISSION — editorial statt Kartenraster (Layout-Wechsel!)
   ========================================================================= */
.mission-ed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 40px; }
.mission-ed .me { padding: 4px 34px 8px; border-left: 1px solid var(--border); }
.mission-ed .me:first-child { border-left: 0; padding-left: 0; }
.mission-ed .me .rule { width: 42px; height: 3px; border-radius: 2px; margin-bottom: 18px; }
.mission-ed .me .mlabel { font: 600 11px/1 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; }
.mission-ed .me p { margin: 14px 0 0; font: 500 21px/1.38 var(--font-sans); letter-spacing: -.008em; color: var(--fg-strong); text-wrap: pretty; }
.mission-ed .me.terra   .rule { background: var(--c-terracotta); }
.mission-ed .me.terra   .mlabel { color: var(--c-terracotta-700); }
.mission-ed .me.slate   .rule { background: var(--c-slate); }
.mission-ed .me.slate   .mlabel { color: var(--c-slate-700); }
.mission-ed .me.mustard .rule { background: var(--c-mustard); }
.mission-ed .me.mustard .mlabel { color: var(--c-mustard-700); }

/* =========================================================================
   6. ZITAT-BAND
   ========================================================================= */
.quote-band {
  background: linear-gradient(180deg, var(--c-cream-200), var(--c-paper-tint));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 84px 0; position: relative; overflow: hidden;
}
.quote-band::before {
  content: "\201C"; position: absolute; left: 50%; top: -70px; transform: translateX(-560px);
  font: 700 340px/1 var(--font-sans); color: var(--c-terracotta); opacity: .07; pointer-events: none;
}
.quote-band .quote { font-size: 36px; }
.quote-band .qsub { font: 400 16px/1.6 var(--font-sans); color: var(--fg-muted); margin-top: 20px; max-width: 580px; text-wrap: pretty; }

/* =========================================================================
   7. ABSCHLUSS-CTA mit Trace
   ========================================================================= */
.final-cta {
  margin-top: 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  background: var(--c-paper); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 34px 38px; box-shadow: var(--shadow-md); position: relative; overflow: hidden;
}
.final-cta::after {
  content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(197,106,78,.14), transparent 72%); pointer-events: none;
}
.final-cta img { width: 74px; height: 74px; border-radius: 50%; }
.final-cta h3 { margin: 0 0 8px; font: 600 24px/1.2 var(--font-sans); letter-spacing: -.01em; color: var(--fg-strong); }
.final-cta p { margin: 0; font: 400 15px/1.6 var(--font-sans); color: var(--fg); max-width: 560px; text-wrap: pretty; }
.final-cta .fc-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* =========================================================================
   8. Leitmotiv-Band: etwas mehr Atmosphäre
   ========================================================================= */
.leitmotiv { position: relative; overflow: hidden; margin-top: 0; padding: 72px 32px; }
.leitmotiv::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 400px;
  background: radial-gradient(46% 60% at 50% 100%, rgba(212,162,76,.20), transparent 70%);
}
.leitmotiv-inner { position: relative; }

/* =========================================================================
   9. Bewegung — dezent, und aus, wenn der Nutzer das so will
   ========================================================================= */
/* Wichtig: .reveal versteckt NICHTS, solange nicht html.anim gesetzt ist.
   Die Klasse setzt ein Inline-Skript im <head> — nur wenn JS läuft, der
   IntersectionObserver existiert und der Nutzer Animationen zulässt.
   Ohne JS (oder wenn etwas schiefgeht) ist der Inhalt einfach da. */
html.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
html.anim .reveal.in { opacity: 1; transform: none; }
html.anim .reveal.d1 { transition-delay: 80ms; }
html.anim .reveal.d2 { transition-delay: 160ms; }
html.anim .reveal.d3 { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  html.anim .reveal { opacity: 1; transform: none; transition: none; }
  .pill .dot::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================================
   10. Responsive
   ========================================================================= */
@media (max-width: 1020px) {
  h2.sect { font-size: 30px; }
  .hero-new { grid-template-columns: 1fr; gap: 48px; padding-top: 56px; }
  .hero-new h1 { font-size: 46px; }
  .hero-visual { max-width: 620px; }
  .float-card { left: auto; right: 12px; bottom: -20px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip .ts { padding: 24px 22px; }
  .trust-strip .ts:nth-child(odd) { border-left: 0; padding-left: 0; }
  .prod-grid, .thumbs { grid-template-columns: 1fr; }
  .mission-ed { grid-template-columns: 1fr; gap: 28px; }
  .mission-ed .me { border-left: 0; padding: 0; }
  .final-cta { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .quote-band .quote { font-size: 26px; }
  .quote-band::before { display: none; }
  .band-inner { padding: 0 20px; }
  .dark-band { padding: 64px 0 72px; }
}
@media (max-width: 620px) {
  h2.sect { font-size: 26px; }
  .hero-new h1 { font-size: 36px; }
  .mission-ed .me p { font-size: 19px; }
  .final-cta { padding: 24px 20px; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip .ts { border-left: 0; padding: 18px 0; border-top: 1px solid var(--border); }
  .trust-strip .ts:first-child { border-top: 0; }
  .float-card { display: none; }
}
