/* =========================================================================
   Muster-Demo v2 — «Wow»-Design-System (reskinnbar über Tokens)

   Zwei eigenständige Identitäten über <body data-theme="...">:
   - haustechnik : dunkel-industriell, Kupfer/Amber-Akzent, grosse fette Typo
   - gastro      : Espresso/Creme, elegante Display-Serif, warm + sinnlich
   - forge       : Landing-Hub (dunkel, neutral, Elektro-Blau)

   Grundsätze: mobil-first, WCAG-AA-Kontrast, 8pt-Grid, Touch >= 44px,
   prefers-reduced-motion respektiert, KEINE externen CDNs (System-Font-Stacks),
   alle Styles extern (CSP: style-src 'self').
   Reskin: nur die [data-theme]-Token-Blöcke anpassen.
   ========================================================================= */

/* ---------------------------------------------------------------------- */
/* 1. Basis-Skala (themen-unabhängig)                                      */
/* ---------------------------------------------------------------------- */
:root {
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;
  --space-8: 96px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --maxw: 1120px;
  --ease: cubic-bezier(.22, .9, .28, 1);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", Georgia, serif;
  --fs-base: 16px;
}

/* ---------------------------------------------------------------------- */
/* 2. Theme: HAUSTECHNIK — dunkel-industriell, Kupfer/Amber                */
/* ---------------------------------------------------------------------- */
[data-theme="haustechnik"] {
  --bg: #0b1017;
  --bg-elev: #10161f;
  --surface: #151d29;
  --card: #131b26;
  --text: #eef3f8;
  --muted: #a3b1c2;
  --line: rgba(163, 177, 194, .14);
  --line-strong: rgba(163, 177, 194, .28);

  --accent: #e9a13b;         /* Kupfer-Amber */
  --accent-strong: #ffb95c;
  --on-accent: #201302;
  --accent-2: #7fb4e6;       /* Stahlblau, sekundär */
  --glow: rgba(233, 161, 59, .16);

  --font-display: var(--font-sans);
  --display-weight: 800;
  --display-tracking: -0.02em;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-3: 0 26px 70px rgba(0, 0, 0, .55);

  --footer-bg: #070b10;
  --footer-text: #c6d2de;

  /* Chat-Widget (dunkel, premium) */
  --chat-panel-bg: #0f151d;
  --chat-body-bg: #0c1219;
  --chat-header-bg: linear-gradient(135deg, #17222f 0%, #0f151d 100%);
  --chat-header-text: #eef3f8;
  --chat-bot-bg: #17212e;
  --chat-bot-text: #eef3f8;
  --chat-bot-border: rgba(163, 177, 194, .18);
  --chat-user-bg: #e9a13b;
  --chat-user-text: #201302;
  --chat-chip-border: #e9a13b;
  --chat-chip-text: #ffca7d;
  --chat-chip-hover: rgba(233, 161, 59, .14);
  --chat-input-bg: #121a24;
  --chat-input-border: rgba(163, 177, 194, .25);
  --chat-input-text: #eef3f8;
  --chat-accent: #e9a13b;
  --chat-on-accent: #201302;
  --chat-online: #4cd98a;
  --chat-muted: #a3b1c2;
}

/* ---------------------------------------------------------------------- */
/* 3. Theme: GASTRO — Espresso/Creme, Display-Serif, warm                  */
/* ---------------------------------------------------------------------- */
[data-theme="gastro"] {
  --bg: #f9f3e9;
  --bg-elev: #fffaf1;
  --surface: #f2e8d7;
  --card: #fffdf7;
  --text: #2b1b10;
  --muted: #6f5a44;
  --line: rgba(111, 90, 68, .22);
  --line-strong: rgba(111, 90, 68, .4);

  --accent: #a34923;         /* Terrakotta */
  --accent-strong: #833718;
  --on-accent: #ffffff;
  --accent-2: #c69a58;       /* Gold, dekorativ */
  --glow: rgba(198, 154, 88, .28);

  --deep: #221510;           /* Espresso (Hero/Footer) */
  --deep-2: #2e1d13;
  --deep-text: #f7ecd9;
  --deep-muted: #cdbaa2;

  --font-display: var(--font-serif);
  --display-weight: 700;
  --display-tracking: 0;

  --shadow-1: 0 2px 10px rgba(60, 36, 16, .12);
  --shadow-2: 0 12px 34px rgba(60, 36, 16, .18);
  --shadow-3: 0 26px 70px rgba(60, 36, 16, .26);

  --footer-bg: #221510;
  --footer-text: #e8dbc6;

  /* Chat-Widget (warm, hell) */
  --chat-panel-bg: #fffaf1;
  --chat-body-bg: #f6eee0;
  --chat-header-bg: linear-gradient(135deg, #2e1d13 0%, #221510 100%);
  --chat-header-text: #f7ecd9;
  --chat-bot-bg: #ffffff;
  --chat-bot-text: #2b1b10;
  --chat-bot-border: rgba(111, 90, 68, .2);
  --chat-user-bg: #a34923;
  --chat-user-text: #ffffff;
  --chat-chip-border: #a34923;
  --chat-chip-text: #8d3d1c;
  --chat-chip-hover: rgba(163, 73, 35, .1);
  --chat-input-bg: #ffffff;
  --chat-input-border: rgba(111, 90, 68, .35);
  --chat-input-text: #2b1b10;
  --chat-accent: #a34923;
  --chat-on-accent: #ffffff;
  --chat-online: #2e8b57;
  --chat-muted: #6f5a44;
}

/* ---------------------------------------------------------------------- */
/* 4. Theme: FORGE — Landing-Hub                                           */
/* ---------------------------------------------------------------------- */
[data-theme="forge"] {
  --bg: #0a0d12;
  --bg-elev: #0f131a;
  --surface: #141a23;
  --card: #12181f;
  --text: #edf2f7;
  --muted: #9fadbd;
  --line: rgba(159, 173, 189, .16);
  --line-strong: rgba(159, 173, 189, .3);

  --accent: #5aa2ff;
  --accent-strong: #82b9ff;
  --on-accent: #041022;
  --accent-2: #e9a13b;
  --glow: rgba(90, 162, 255, .14);

  --font-display: var(--font-sans);
  --display-weight: 800;
  --display-tracking: -0.02em;

  --shadow-1: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-2: 0 12px 34px rgba(0, 0, 0, .45);
  --shadow-3: 0 26px 70px rgba(0, 0, 0, .55);

  --footer-bg: #06090d;
  --footer-text: #c6d2de;
}

/* ---------------------------------------------------------------------- */
/* 5. Reset + Basis                                                        */
/* ---------------------------------------------------------------------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); }
[data-theme="gastro"] a { color: var(--accent); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--space-3); }
@media (min-width: 800px) { .wrap { padding: 0 var(--space-4); } }

::selection { background: var(--accent); color: var(--on-accent); }

/* ---------------------------------------------------------------------- */
/* 6. Header                                                               */
/* ---------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-1);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: var(--space-3);
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; min-width: 0; }
.brand .logo {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 900; font-size: 17px; letter-spacing: .02em;
  border-radius: 10px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
[data-theme="gastro"] .brand .logo {
  clip-path: none; border-radius: 50%;
  font-family: var(--font-serif);
  background: var(--deep); color: var(--accent-2);
  border: 1px solid var(--accent-2);
}
.brand .brand-name { font-size: 17px; display: block; line-height: 1.25; }
[data-theme="gastro"] .brand .brand-name { font-family: var(--font-serif); font-size: 19px; }
.brand .brand-sub { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative;
  display: inline-block; padding: 12px 12px; min-height: 44px; line-height: 20px;
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 15px;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.nav a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.nav .nav-cta { margin-left: var(--space-2); }
@media (max-width: 720px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav .nav-cta { margin-left: 0; }
}

/* ---------------------------------------------------------------------- */
/* 7. Buttons                                                              */
/* ---------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 50px; padding: 13px 26px; border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 6px 22px var(--glow);
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px var(--glow);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .5s var(--ease);
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:active { transform: translateY(0) scale(.97); box-shadow: 0 4px 14px var(--glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 20%, transparent);
}
.btn-ghost:active { transform: translateY(0) scale(.97); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: 15px; }
.btn:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; }
[data-theme="gastro"] .btn:focus-visible { outline-color: var(--accent); }

/* Auf Espresso-Flächen (Gastro-Hero/Band): heller Ghost */
.on-deep .btn-ghost { color: var(--deep-text); border-color: rgba(247, 236, 217, .45); }
.on-deep .btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ---------------------------------------------------------------------- */
/* 8. Hero                                                                 */
/* ---------------------------------------------------------------------- */
.hero-v2 {
  position: relative; overflow: hidden;
  padding: var(--space-7) 0 var(--space-7);
  min-height: 62vh;
  display: flex; align-items: center;
}
@media (min-width: 900px) { .hero-v2 { min-height: 86vh; padding: var(--space-8) 0; } }
.hero-inner { position: relative; z-index: 2; max-width: 780px; }

/* Animierter Gradient-Mesh-Hintergrund (NEXORA §7.2) */
.hero-v2::before {
  content: "";
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, var(--glow) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 85%, color-mix(in srgb, var(--accent-2) 22%, transparent) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 60% 30%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 50%);
  background-size: 200% 200%;
  animation: gradientShift 16s ease-in-out infinite;
  will-change: background-position;
}
@media (prefers-reduced-motion: reduce) { .hero-v2::before { animation: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  font-size: 12.5px; color: var(--accent); margin-bottom: var(--space-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); display: inline-block;
}
[data-theme="gastro"] .hero-v2 .eyebrow { color: var(--accent-2); }
[data-theme="gastro"] .hero-v2 .eyebrow::before { background: var(--accent-2); }

.hero-title {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(40px, 8.5vw, 82px);
  line-height: 1.02;
}
.hero-title .line { display: block; }
.hero-title .accent { color: var(--accent); position: relative; display: inline-block; }
.hero-title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .1em;
  background: var(--accent); opacity: .28; border-radius: 3px;
  transform-origin: left; animation: underline-draw 1s var(--ease) .9s backwards;
}
[data-theme="gastro"] .hero-title { line-height: 1.12; font-size: clamp(34px, 6.5vw, 64px); }
[data-theme="gastro"] .hero-title .accent { color: var(--accent-2); font-style: italic; }

.hero-v2 .lead {
  font-size: clamp(17px, 2.2vw, 20px); color: var(--muted);
  max-width: 56ch; margin: 0 0 var(--space-5); line-height: 1.65;
}
.on-deep .lead { color: var(--deep-muted); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0 0 var(--space-5); }

.trust-row {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  padding: 0; margin: 0; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
}
.on-deep .trust-row { color: var(--deep-muted); }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before {
  content: "✓"; font-weight: 800; color: var(--accent);
}
[data-theme="gastro"] .trust-row li::before { color: var(--accent-2); }

/* Hero-Einstiegsanimation (gestaffelt) */
.hero-inner > * { animation: rise-in .8s var(--ease) backwards; }
.hero-inner > *:nth-child(1) { animation-delay: .05s; }
.hero-inner > *:nth-child(2) { animation-delay: .15s; }
.hero-inner > *:nth-child(3) { animation-delay: .3s; }
.hero-inner > *:nth-child(4) { animation-delay: .45s; }
.hero-inner > *:nth-child(5) { animation-delay: .6s; }
.hero-title .line { animation: rise-in .7s var(--ease) backwards; }
.hero-title .line:nth-child(1) { animation-delay: .1s; }
.hero-title .line:nth-child(2) { animation-delay: .22s; }
.hero-title .line:nth-child(3) { animation-delay: .34s; }
.hero-title .line:nth-child(4) { animation-delay: .5s; }

/* Dekor-Ebenen */
.hero-decor { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.decor-grid {
  position: absolute; inset: -2% -2%;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 30% 20%, #000 0%, transparent 75%);
}
.decor-glow {
  position: absolute; width: 720px; height: 720px; right: -220px; top: -180px;
  background: radial-gradient(circle, var(--glow) 0%, transparent 62%);
  animation: drift 16s ease-in-out infinite alternate;
}
.decor-glow.g2 {
  width: 520px; height: 520px; right: auto; left: -200px; top: auto; bottom: -220px;
  animation-duration: 22s; animation-delay: -6s;
}
.decor-shape {
  position: absolute; border: 1.5px solid var(--accent); opacity: .18;
}
.decor-shape.s1 {
  width: 130px; height: 130px; right: 12%; top: 22%;
  transform: rotate(22deg); border-radius: 18px;
  animation: floaty 11s ease-in-out infinite alternate;
}
.decor-shape.s2 {
  width: 66px; height: 66px; right: 26%; bottom: 20%;
  transform: rotate(-14deg); border-radius: 10px; border-color: var(--accent-2);
  animation: floaty 9s ease-in-out infinite alternate-reverse;
}
.decor-shape.s3 {
  width: 200px; height: 200px; left: -60px; top: 55%;
  transform: rotate(8deg); border-radius: 50%; opacity: .1;
  animation: floaty 14s ease-in-out infinite alternate;
}
@media (max-width: 760px) {
  .decor-shape.s1 { right: -30px; top: 8%; }
  .decor-shape.s2 { right: 8%; bottom: 6%; }
}

/* Gastro-Hero: Espresso-Fläche mit warmem Licht */
[data-theme="gastro"] .hero-v2 { background: var(--deep); color: var(--deep-text); }
[data-theme="gastro"] .hero-v2 .hero-title { color: var(--deep-text); }
[data-theme="gastro"] .decor-grid { display: none; }
[data-theme="gastro"] .decor-glow {
  background: radial-gradient(circle, rgba(198, 154, 88, .3) 0%, transparent 60%);
}
[data-theme="gastro"] .decor-shape { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 2;
  width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--line-strong); border-radius: 14px;
  display: none;
}
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px;
  margin-left: -2px; border-radius: 3px; background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@media (min-width: 900px) { .scroll-cue { display: block; } }
.on-deep.scroll-cue, [data-theme="gastro"] .scroll-cue { border-color: rgba(247, 236, 217, .35); }

/* --- CSS-Kaffeetasse mit Dampf (Gastro-Signatur im Hero) ----------------- */
.cup-scene {
  position: absolute; right: 6%; bottom: 10%; z-index: 1;
  width: 190px; height: 230px; display: none; pointer-events: none;
}
@media (min-width: 980px) { .cup-scene { display: block; } }
.cup {
  position: absolute; bottom: 24px; left: 30px;
  width: 120px; height: 84px;
  background: linear-gradient(180deg, #fdf6ea, #ecdcc2);
  border-radius: 10px 10px 56px 56px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.cup::before { /* Henkel */
  content: ""; position: absolute; right: -30px; top: 12px;
  width: 42px; height: 46px;
  border: 10px solid #ecdcc2; border-radius: 50%;
  border-left-color: transparent;
  transform: rotate(-8deg);
}
.cup::after { /* Untertasse */
  content: ""; position: absolute; left: -22px; bottom: -22px;
  width: 164px; height: 18px;
  background: linear-gradient(180deg, #f4e8d2, #d9c5a3);
  border-radius: 50%;
}
.cup-coffee {
  position: absolute; bottom: 92px; left: 38px; width: 104px; height: 14px;
  background: radial-gradient(ellipse at 50% 40%, #6b4326, #3a2313 75%);
  border-radius: 50%;
}
.steam { position: absolute; bottom: 116px; left: 52px; width: 80px; height: 110px; }
.steam span {
  position: absolute; bottom: 0; width: 9px; height: 56px;
  background: rgba(247, 236, 217, .55);
  border-radius: 50%; filter: blur(6px); opacity: 0;
  animation: steam 3.6s ease-in-out infinite;
}
.steam span:nth-child(1) { left: 8px; animation-delay: 0s; }
.steam span:nth-child(2) { left: 34px; animation-delay: 1.2s; height: 68px; }
.steam span:nth-child(3) { left: 58px; animation-delay: 2.2s; }

/* ---------------------------------------------------------------------- */
/* 9. Marquee (Gastro)                                                     */
/* ---------------------------------------------------------------------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  background: var(--deep-2); color: var(--accent-2);
  border-top: 1px solid rgba(198, 154, 88, .25);
  border-bottom: 1px solid rgba(198, 154, 88, .25);
  padding: 12px 0;
  font-family: var(--font-serif); font-size: 17px; letter-spacing: .04em;
}
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-block; padding: 0 18px; }
.marquee-track .dot { color: rgba(198, 154, 88, .6); padding: 0; }

/* ---------------------------------------------------------------------- */
/* 10. Stats-Strip (animierte Zahlen)                                      */
/* ---------------------------------------------------------------------- */
.stats-strip {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-strip .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4); padding-top: var(--space-5); padding-bottom: var(--space-5);
}
@media (min-width: 800px) { .stats-strip .wrap { grid-template-columns: repeat(4, 1fr); } }

/* Glasmorphismus-Karte je Stat (NEXORA §7.1, an Theme-Tokens angepasst) */
.stat {
  text-align: center;
  padding: var(--space-4) var(--space-3);
  background: color-mix(in srgb, var(--accent) 7%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 22px rgba(0, 0, 0, .12), 0 1px 0 rgba(255, 255, 255, .05) inset;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.stat:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .16), 0 0 20px color-mix(in srgb, var(--accent) 15%, transparent);
  transform: translateY(-3px);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.1; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
[data-theme="gastro"] .stat-num { color: var(--accent); }
.stat-label { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------------------------------------------------------------------- */
/* 11. Sections + Karten                                                   */
/* ---------------------------------------------------------------------- */
section.block { padding: var(--space-7) 0; }
@media (min-width: 900px) { section.block { padding: var(--space-8) 0; } }
section.block.alt { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 640px; margin-bottom: var(--space-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
h2.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(28px, 4.6vw, 44px);
  line-height: 1.12; margin: 0 0 var(--space-3);
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0; line-height: 1.65; }

.grid { display: grid; gap: var(--space-3); }
@media (min-width: 800px) { .grid { gap: var(--space-4); } }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* Service-/Angebot-Karten — Glasmorphismus (NEXORA §7.1) */
.svc-card {
  position: relative;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-5) var(--space-4) var(--space-4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
[data-theme="haustechnik"] .svc-card {
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
}
.svc-card::before { /* Akzentlinie, wächst bei Hover */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2), 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: var(--line-strong);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-num {
  position: absolute; right: 18px; top: 12px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--muted); opacity: .55;
}
.svc-icon {
  width: 46px; height: 46px; margin-bottom: var(--space-3);
  display: grid; place-items: center;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border-radius: 12px;
}
.svc-icon svg { width: 24px; height: 24px; }
.svc-card h3 { margin: 0 0 var(--space-2); font-size: 19px; font-family: var(--font-display); letter-spacing: -0.01em; }
[data-theme="gastro"] .svc-card h3 { font-size: 21px; }
.svc-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Gastro-Karten: Menü-Stil mit Doppellinie */
[data-theme="gastro"] .svc-card {
  border: 1px solid var(--line);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line);
  border-radius: 6px;
  margin: 5px;
}
[data-theme="gastro"] .svc-card:hover { box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--accent-2), var(--shadow-2); }

/* Werte-/Info-Karten (schlicht, Glasmorphismus + Hover-Glow) */
.card {
  background: color-mix(in srgb, var(--card) 84%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-1), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--line-strong);
}
.card h3 { margin: 0 0 var(--space-2); font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------------- */
/* 12. Signatur-Sektion: Anfrage → KI → Chef (animierter Flow)             */
/* ---------------------------------------------------------------------- */
.flow-section { position: relative; overflow: hidden; }
[data-theme="haustechnik"] .flow-section {
  background: var(--bg-elev);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
[data-theme="gastro"] .flow-section { background: var(--deep); color: var(--deep-text); }
[data-theme="gastro"] .flow-section .section-title { color: var(--deep-text); }
[data-theme="gastro"] .flow-section .section-sub { color: var(--deep-muted); }
[data-theme="gastro"] .flow-section .eyebrow { color: var(--accent-2); }
[data-theme="gastro"] .flow-section .eyebrow::before { background: var(--accent-2); }

.flow {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-3); align-items: stretch;
  margin-bottom: var(--space-5);
}
@media (min-width: 900px) {
  .flow { grid-template-columns: 1fr 56px 1.1fr 56px 1fr; gap: var(--space-2); }
}

.flow-stage {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-4);
  min-height: 210px; display: flex; flex-direction: column;
}
[data-theme="gastro"] .flow-stage {
  background: rgba(255, 253, 247, .06);
  border-color: rgba(198, 154, 88, .3);
}
.flow-stage-num {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-weight: 800; font-size: 14px;
  margin-bottom: var(--space-2);
}
[data-theme="gastro"] .flow-section .flow-stage-num { background: rgba(198, 154, 88, .18); color: var(--accent-2); }
.flow-stage-title { margin: 0 0 var(--space-3); font-size: 16.5px; font-weight: 700; font-family: var(--font-sans); }
.flow-slot { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: flex-start; }

/* Stage 1: eingehende Anfrage-Blase */
.flow-bubble {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 14px 14px 14px 4px; padding: 10px 14px;
  font-size: 14.5px; line-height: 1.45;
  box-shadow: var(--shadow-1);
  opacity: 0; transform: translateY(10px) scale(.96);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
[data-theme="gastro"] .flow-section .flow-bubble { background: rgba(255, 253, 247, .1); color: var(--deep-text); border-color: rgba(198, 154, 88, .35); }
.flow-bubble.show { opacity: 1; transform: none; }
.flow-bubble .flow-time { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
[data-theme="gastro"] .flow-section .flow-bubble .flow-time { color: var(--deep-muted); }

/* Stage 2: KI-Kern + Tags */
.flow-ai-core {
  position: relative; align-self: center;
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent);
  font-weight: 900; font-size: 16px; letter-spacing: .02em;
  margin: 0 auto var(--space-3);
  box-shadow: 0 0 0 0 var(--glow);
}
[data-theme="gastro"] .flow-section .flow-ai-core { background: var(--accent-2); color: #221510; }
.flow-ai-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 2px solid var(--accent); opacity: .4;
}
[data-theme="gastro"] .flow-section .flow-ai-ring { border-color: var(--accent-2); }
.flow-ai-core.active { animation: core-pulse 1s var(--ease) 2; }
.flow-ai-core.idle .flow-ai-ring { animation: ring-pulse 2.6s var(--ease) infinite; }
.flow-tags { flex-direction: row; flex-wrap: wrap; align-content: flex-start; }
.flow-tag {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  opacity: 0; transform: scale(.7);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
[data-theme="gastro"] .flow-section .flow-tag { color: var(--accent-2); border-color: rgba(198, 154, 88, .5); background: rgba(198, 154, 88, .14); }
.flow-tag.show { opacity: 1; transform: scale(1); }

/* Stage 3: Chef-Posteingang */
.flow-card {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
  border-radius: 10px; padding: 10px 12px;
  font-size: 14px; box-shadow: var(--shadow-1);
  opacity: 0; transform: translateX(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .4s var(--ease);
}
[data-theme="gastro"] .flow-section .flow-card { background: rgba(255, 253, 247, .1); color: var(--deep-text); border-left-color: var(--accent-2); border-color: rgba(198, 154, 88, .35); }
.flow-card.show { opacity: 1; transform: none; }
.flow-card.out { opacity: 0; transform: translateY(8px); }
.flow-card .flow-card-title { font-weight: 800; display: flex; align-items: center; gap: 6px; }
.flow-card .flow-card-title::after { content: "✓"; color: var(--chat-online, #4cd98a); font-weight: 900; }
.flow-card .flow-card-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
[data-theme="gastro"] .flow-section .flow-card .flow-card-meta { color: var(--deep-muted); }

/* Pfeile + Wander-Punkt */
.flow-arrow {
  position: relative; min-height: 34px;
  display: flex; align-items: center; justify-content: center;
}
.flow-arrow::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 0;
  border-top: 2px dashed var(--line-strong);
}
@media (max-width: 899px) {
  .flow-arrow { min-height: 40px; }
  .flow-arrow::before { left: 50%; right: auto; top: 15%; bottom: 15%; height: auto; width: 0; border-top: 0; border-left: 2px dashed var(--line-strong); }
}
.flow-dot {
  position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--glow);
  left: 8%; top: calc(50% - 6px); opacity: 0;
}
[data-theme="gastro"] .flow-section .flow-dot { background: var(--accent-2); }
.flow-dot.travel { animation: dot-travel .8s var(--ease) forwards; }
@media (max-width: 899px) {
  .flow-dot { left: calc(50% - 6px); top: 8%; }
  .flow-dot.travel { animation-name: dot-travel-v; }
}

.flow-cta { text-align: center; margin: 0; }

/* ---------------------------------------------------------------------- */
/* 13. Callout-Band (Jobs / Anlässe)                                       */
/* ---------------------------------------------------------------------- */
.band {
  position: relative; overflow: hidden;
  background: var(--accent); color: var(--on-accent);
}
[data-theme="gastro"] .band { background: var(--deep-2); color: var(--deep-text); }
.band .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-6);
}
.band h2 {
  margin: 0 0 var(--space-1);
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15;
}
[data-theme="gastro"] .band h2 { color: var(--accent-2); }
.band p { margin: 0; font-weight: 600; opacity: .92; max-width: 52ch; }
.band .btn-invert {
  background: var(--on-accent); color: var(--accent);
  border-color: transparent;
}
[data-theme="haustechnik"] .band .btn-invert { background: #0b1017; color: #ffb95c; }
[data-theme="gastro"] .band .btn-invert { background: var(--accent-2); color: #221510; }
.band .btn-invert:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.band::after {
  content: ""; position: absolute; right: -70px; top: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 26px solid rgba(0, 0, 0, .1);
}
[data-theme="gastro"] .band::after { border-color: rgba(198, 154, 88, .12); }

/* ---------------------------------------------------------------------- */
/* 14. Bewertungen                                                         */
/* ---------------------------------------------------------------------- */
.review-card {
  position: relative;
  background: color-mix(in srgb, var(--card) 84%, transparent);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: var(--space-5) var(--space-4) var(--space-4);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2), 0 0 18px color-mix(in srgb, var(--accent) 14%, transparent);
  border-color: var(--line-strong);
}
.review-card .quote-mark {
  position: absolute; top: 6px; right: 16px;
  font-family: var(--font-serif); font-size: 84px; line-height: 1;
  color: var(--accent); opacity: .14; pointer-events: none;
}
.stars { color: var(--accent); letter-spacing: 3px; font-size: 17px; margin-bottom: var(--space-2); }
[data-theme="gastro"] .stars { color: var(--accent-2); }
.review-card p { margin: 0 0 var(--space-3); font-size: 16px; line-height: 1.6; }
[data-theme="gastro"] .review-card p { font-family: var(--font-serif); font-size: 17px; font-style: italic; }
.review-author { font-weight: 700; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------------- */
/* 15. Kontakt                                                             */
/* ---------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact-panel {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: var(--shadow-1);
}
[data-theme="gastro"] .contact-panel { border-top-color: var(--accent-2); }
.contact-panel h3 { margin: 0 0 var(--space-3); font-size: 19px; font-family: var(--font-display); }
.contact-panel p { margin: 0 0 var(--space-3); color: var(--muted); }
.contact-panel .contact-strong { color: var(--text); font-weight: 700; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex; justify-content: space-between; gap: var(--space-3);
  padding: 10px 0; border-bottom: 1px dashed var(--line-strong);
  font-size: 15.5px;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list .h-day { color: var(--muted); font-weight: 600; }
.hours-list .h-time { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------- */
/* 16. Footer                                                              */
/* ---------------------------------------------------------------------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-text);
  padding: var(--space-6) 0; border-top: 1px solid var(--line);
}
.site-footer p { margin: 0 0 var(--space-2); }
.site-footer a { color: var(--footer-text); }
.site-footer .muted { color: color-mix(in srgb, var(--footer-text) 62%, transparent); font-size: 13.5px; }

/* ---------------------------------------------------------------------- */
/* 17. Landing (Forge-Hub)                                                 */
/* ---------------------------------------------------------------------- */
.landing-hero { padding: var(--space-7) 0 var(--space-6); min-height: 46vh; }
.preview-card {
  position: relative; display: block; text-decoration: none;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card); color: var(--text);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.preview-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-3); border-color: var(--line-strong); }
.preview-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.preview-visual {
  height: 170px; position: relative; overflow: hidden;
  display: flex; align-items: flex-end; padding: var(--space-3);
}
.preview-visual .pv-word {
  font-family: var(--font-sans); font-weight: 900; letter-spacing: -0.02em;
  font-size: 40px; line-height: 1; opacity: .95;
}
.preview-visual.pv-haustechnik {
  background:
    radial-gradient(420px 200px at 85% -20%, rgba(233, 161, 59, .35), transparent),
    linear-gradient(rgba(163, 177, 194, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(163, 177, 194, .08) 1px, transparent 1px),
    #0e141d;
  background-size: auto, 40px 40px, 40px 40px, auto;
  color: #ffb95c;
}
.preview-visual.pv-gastro {
  background:
    radial-gradient(420px 220px at 20% -30%, rgba(198, 154, 88, .5), transparent),
    #241710;
  color: #e8cf9e;
}
.preview-visual.pv-gastro .pv-word { font-family: var(--font-serif); font-weight: 700; font-style: italic; }
.preview-body { padding: var(--space-4); }
.preview-body h3 { margin: 0 0 var(--space-2); font-size: 20px; }
.preview-body p { margin: 0 0 var(--space-3); color: var(--muted); font-size: 15.5px; }
.preview-open { font-weight: 800; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.preview-open::after { content: "→"; transition: transform .3s var(--ease); }
.preview-card:hover .preview-open::after { transform: translateX(6px); }

.step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
@media (min-width: 800px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step-list li {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: var(--space-4); color: var(--muted); font-size: 15.5px;
}
.step-list .step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent); font-weight: 800; margin-bottom: var(--space-2);
}
.step-list strong { color: var(--text); display: block; margin-bottom: 4px; }

/* ---------------------------------------------------------------------- */
/* 18. Scroll-Reveals                                                      */
/* ---------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------- */
/* 19. Keyframes                                                           */
/* ---------------------------------------------------------------------- */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes underline-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-50px, 40px, 0) scale(1.12); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 0%; }
  33%       { background-position: 30% 60%; }
  66%       { background-position: 70% 30%; }
}
@keyframes floaty {
  from { transform: translateY(0) rotate(var(--r, 22deg)); }
  to { transform: translateY(-22px) rotate(calc(var(--r, 22deg) + 8deg)); }
}
@keyframes cue {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}
@keyframes steam {
  0% { opacity: 0; transform: translateY(0) scaleX(1); }
  25% { opacity: .8; }
  100% { opacity: 0; transform: translateY(-64px) scaleX(1.6); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes core-pulse {
  0% { box-shadow: 0 0 0 0 var(--glow); transform: scale(1); }
  50% { box-shadow: 0 0 0 22px transparent; transform: scale(1.1); }
  100% { box-shadow: 0 0 0 0 transparent; transform: scale(1); }
}
@keyframes ring-pulse {
  0% { transform: scale(1); opacity: .4; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}
@keyframes dot-travel {
  0% { left: 8%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(92% - 12px); opacity: 0; }
}
@keyframes dot-travel-v {
  0% { top: 8%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: calc(92% - 12px); opacity: 0; }
}

/* ---------------------------------------------------------------------- */
/* 20. A11y-Utilities                                                      */
/* ---------------------------------------------------------------------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 0 0 10px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------------- */
/* 21. Reduced Motion — alles ruhigstellen                                 */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  .flow-bubble, .flow-tag, .flow-card { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
}
