/* aukon.at – Website-Stylesheet. Abgeleitet aus dem aukon UI Design (aukon-ui.css):
   Taubenblau trägt alles, Orange markiert genau eine Sache je Fläche, Archivo 400–700,
   Radius 8 px, keine Schatten. Nur heller Modus. */

/* Schriften: assets/fonts.css wird im <head> direkt verlinkt (kein @import, das wäre eine Kette css → css → woff2). */

:root {
  --aukon-primary: #557185;
  --aukon-primary-hover: #3E5666;
  --aukon-primary-light: #EDF1F4;
  --aukon-primary-100: #E4EAEE;
  --aukon-primary-200: #D5DDE3;
  --aukon-primary-300: #B5C2CC;
  --aukon-primary-400: #768C9C;
  --aukon-primary-700: #3E5666;
  --aukon-primary-800: #2A3A46;
  --aukon-primary-950: #1F2B34;
  --aukon-accent: #EB813A;
  --aukon-accent-hover: #E7802B;
  --aukon-accent-press: #DE7526;                 /* abweichend vom UI Design (#C46416): dunkle Button-Schrift braucht ≥ 4,5:1 */
  --aukon-accent-text: #AD5410;                  /* abweichend vom UI Design (#C46416, 4,05:1): 5,2:1 auf Weiß, 4,7:1 auf accent-light (Kontrast-Entscheidung Jürgen 2026-11-09) */
  --aukon-accent-on-dark: #F3B474;
  --aukon-accent-light: #FDF1E8;
  --aukon-status-success: #257F5F;

  --ui-bg: #F7F9FA;
  --ui-surface: #FFFFFF;
  --ui-surface-sunken: #F1F4F6;
  --ui-border: #D5DDE3;
  --ui-border-soft: #F1F4F6;
  --ui-border-strong: #B5C2CC;
  --ui-text: #2A3A46;
  --ui-text-body: #3E5666;
  --ui-text-muted: #557185;
  --ui-text-faint: #768C9C;
  --ui-focus: var(--aukon-accent);
  --ui-radius: 8px;
  --ui-transition: 150ms cubic-bezier(.2, 0, .2, 1);

  --font-sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --wrap: 1120px;
  --gutter: 16px;

  /* Website-eigene Farben (seit 2026-10-23): dunkle Flächen in Taubenblau statt Dunkelblau, Orange kräftiger.
     Kontraste gemessen: Weiß auf --surface-blue 5,14:1, --text-on-blue darauf 4,65:1, Weiß auf Karte 7,70:1,
     --accent-text-on-blue auf Karte 4,57:1 (nur auf Karten, auf der Fläche selbst nicht ≥ 4,5:1). */
  --surface-blue: var(--aukon-primary);          /* dunkle Sektionen, Hinweisleiste, Hero-Grund */
  --surface-blue-card: var(--aukon-primary-700); /* Karten und Bausteine auf Taubenblau */
  --text-on-blue: #F1F4F6;                       /* Fließtext auf Taubenblau */
  --accent-text-on-blue: #FFB976;                /* kleine orange Schrift, nur auf --surface-blue-card */
  --pattern-tint-blue: rgb(74 100 120 / .75);   /* Tönung über dem blauen Facettenbild auf Taubenblau-Flächen */
  --hero-accent: #F5A568;                        /* orange Wörter der Hero-Überschrift (groß, fett): schlechtester Pixel 3,04:1 */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* Mit motion.js scrollt site.js Anker selbst weich; CSS-Smooth-Scroll stört ScrollTrigger */
html.has-motion { scroll-behavior: auto; }
main [id] { scroll-margin-top: 5rem; }
body {
  margin: 0; background: var(--ui-bg); color: var(--ui-text);
  font-family: var(--font-sans); font-size: 1rem; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
/* Sprunglink „Zum Inhalt springen“: unsichtbar, bis er per Tastatur den Fokus bekommt (WCAG 2.4.1) */
.skip-link { position: absolute; left: var(--gutter, 16px); top: -100px; z-index: 100; padding: .6rem 1rem; border-radius: var(--ui-radius); background: var(--aukon-primary-800); color: #fff; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: .5rem; outline: 2px solid #fff; outline-offset: 2px; }
main:focus { outline: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 4rem 0; overflow-x: clip; }
.section-sunken { background: var(--ui-surface); border-top: 1px solid var(--ui-border); border-bottom: 1px solid var(--ui-border); }
.section-dark { background: var(--surface-blue); color: #fff; }
/* Kleine Labels auf Taubenblau: weiß mit orangem Strich (Orange als 12-px-Schrift hält dort keine 4,5:1) */
.section-dark .ui-section-title, .section-dark .feature-text .ui-section-title { color: #fff; }
.section-dark .ui-h2, .section-dark .ui-h3 { color: #fff; }
.section-dark .lead, .section-dark p { color: var(--text-on-blue); }
/* Fokusring auf Taubenblau weiß (Orange hätte dort nur 1,9:1) */
.section-dark :focus-visible, .hero :focus-visible, .note-bar :focus-visible { outline-color: #fff; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head .lead { margin-top: .75rem; }

/* Kanten zwischen Sektionen: hart, ohne Verlauf und ohne Schräge (seit 2026-10-23). Unter dem Hero sitzt die
   Brücke (.hero-bridge). Bühnen dürfen leicht über die Kante ragen (Sektionen schneiden nur seitlich ab). */
/* Fußzeile: harte Kante; endet die Seite dunkel oder weiß (sunken), entfällt die zusätzliche Linie */
main:has(> .section-dark:last-child) + .site-footer,
main:has(> .section-sunken:last-child) + .site-footer { border-top: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } .section { padding: 3rem 0; } }

/* ── Text ────────────────────────────────────────────────────────────────── */
.ui-section-title {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ui-text-muted);
}
.ui-section-title::before { content: ""; width: 1.5rem; height: 2px; background: var(--aukon-accent); }
.ui-h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.05; font-weight: 700; letter-spacing: -.025em; color: var(--ui-text); }
.ui-h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ui-text); }
.ui-h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--ui-text); }
.lead { font-size: 1.125rem; color: var(--ui-text-body); }
.muted { color: var(--ui-text-muted); }
.small { font-size: .875rem; }
/* Textlinks sind unterstrichen (WCAG 1.4.1: nicht nur durch Farbe erkennbar; Link zu Fließtext nur 1,5:1) */
.ui-link { color: var(--aukon-primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ui-link:hover { text-decoration-thickness: 2px; }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; }
.prose li + li { margin-top: .375rem; }
.prose ul + p { margin-top: 1rem; }
.prose h2 { margin: 2rem 0 .75rem; font-size: 1.375rem; }
.prose h3 { margin: 1.5rem 0 .5rem; font-size: 1.0625rem; }

/* ── Buttons (U-B1) ──────────────────────────────────────────────────────── */
.ui-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.5rem; padding: 0 1rem;
  border: 1px solid transparent; border-radius: var(--ui-radius);
  font-size: .875rem; font-weight: 700; line-height: 1; white-space: nowrap;
  cursor: pointer; text-decoration: none;
  transition: background-color var(--ui-transition), border-color var(--ui-transition), color var(--ui-transition);
}
.ui-btn > svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.ui-btn-primary { background: var(--aukon-primary); color: #fff; }
.ui-btn-primary:hover { background: var(--aukon-primary-hover); }
/* Orange-Button mit dunkler Schrift: Weiß auf #EB813A hätte nur 2,72:1, #1F2B34 hat 5,3:1 (Entscheidung Jürgen 2026-11-09) */
.ui-btn-accent { background: var(--aukon-accent); color: var(--aukon-primary-950); }
.ui-btn-accent:hover { background: var(--aukon-accent-hover); }
.ui-btn-accent:active { background: var(--aukon-accent-press); }
.ui-btn-secondary { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-text-body); }
.ui-btn-secondary:hover { background: var(--ui-surface-sunken); border-color: var(--ui-border-strong); }
.ui-btn-ghost { background: transparent; color: var(--ui-text-muted); }
.ui-btn-ghost:hover { background: var(--ui-surface-sunken); color: var(--ui-text); }
.ui-btn-on-dark { background: transparent; border-color: rgb(255 255 255 / .35); color: #fff; }
.ui-btn-on-dark:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.ui-btn-lg { height: 3rem; padding: 0 1.5rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ── Kopfleiste (U-N1) ───────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); }
.ui-navbar { display: flex; align-items: center; gap: .25rem; height: 3.25rem; }
.brand { display: inline-flex; align-items: center; margin-right: auto; text-decoration: none; }
.brand img { height: 3rem; width: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.ui-nav-item {
  display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; white-space: nowrap;
  border: 0; border-radius: var(--ui-radius); background: transparent; cursor: pointer; text-decoration: none;
  font-size: .84rem; font-weight: 700; color: var(--ui-text-muted);
  transition: background-color var(--ui-transition), color var(--ui-transition);
}
.ui-nav-item:hover { color: var(--ui-text); background: var(--ui-surface-sunken); }
.ui-nav-item[aria-current="page"] { background: var(--aukon-primary); color: #fff; }
.nav-cta { margin-left: .5rem; padding: .4rem .9rem; }
.nav-toggle { display: none; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); color: var(--ui-text); cursor: pointer; }
.nav-toggle svg { width: 1.25rem; height: 1.25rem; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-list { display: none; position: absolute; left: 0; right: 0; top: 3.25rem; flex-direction: column; align-items: stretch; gap: .25rem; padding: .75rem var(--gutter) 1rem; background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); }
  .nav-list.is-open { display: flex; }
  .nav-list .ui-nav-item { justify-content: flex-start; padding: .75rem; font-size: 1rem; }
  .nav-cta { margin: .5rem 0 0; justify-content: center; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
/* Geteilter Aufbau: links der Text auf der dunklen Fläche, rechts der Bildschirm mit Video und scharfem
   Standbild, darunter die Fakten als weiße Karte, die halb auf dem Hero und halb in der nächsten Sektion liegt
   (Brücke). Hintergrund: Low-Poly-Facetten der App in Taubenblau, unter dem Zeiger orange. */
.hero { --bridge-pad: 2rem; position: relative; overflow: hidden; background: var(--surface-blue); color: #fff; }
.hero .wrap { position: relative; padding-top: 5rem; padding-bottom: 0; }
/* Hintergrund: Baustein .facets-bg (siehe unten, „Facetten-Hintergrund“) */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 52%; gap: 2.5rem; align-items: center; }
.hero-text { position: relative; z-index: 1; max-width: 560px; }
.hero-screen { position: relative; perspective: 1500px; }
/* Rahmen 16:9, leicht geneigt wie die Bühne (motion.js übernimmt die Neigung); Tiefe durch Parallaxe, kein Schatten.
   .hero-view schneidet Video und Bilder zu, der Rahmen selbst nicht (die Lichtkante läuft über seinen Rand). */
.hero-media {
  position: relative; aspect-ratio: 16 / 9; border: 1px solid rgb(255 255 255 / .18);
  border-radius: var(--ui-radius); background: var(--surface-blue-card); transform: rotateY(-6deg) rotateX(2deg);
}
.hero-view { position: absolute; inset: 0; overflow: hidden; border-radius: calc(var(--ui-radius) - 1px); }
.hero-media video, .hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Scharfes Standbild: der obere 16:9-Teil (1290 × 726) von serienfertigung.jpg ist das letzte Videobild;
   site.js setzt .is-still ab duration − 0,6 s, das Bild blendet darüber ein und bleibt stehen */
.hero-media .hero-still { position: absolute; inset: 0; object-position: 50% 0; opacity: 0; transition: opacity 600ms ease; }
.hero-media.is-still .hero-still { opacity: 1; }
/* Bildschirm-Rundgang nach dem Video (motion.js, ab 641 px): Bilder blenden über, langsamer Zoom, Begriff darunter */
.hero-media .hero-tour-img { position: absolute; inset: 0; object-position: 50% 0; opacity: 0; }
/* Schluss des Videos (motion.js): drei Kacheln mit Sparten-Begriff rücken zum Cockpit zusammen */
.hero-media .hero-tile { position: absolute; overflow: hidden; border-radius: 4px; opacity: 0; background: var(--surface-blue-card); }
.hero-media .hero-tile img { object-position: 50% 0; }
.hero-tile-label { position: absolute; margin: 0; text-align: center; font-size: .75rem; font-weight: 700; line-height: 1.3; color: #fff; opacity: 0; }
.hero-sheen {
  position: absolute; top: -3px; left: 0; width: 35%; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), #fff 50%, rgb(255 255 255 / 0));
}
.hero-sheen.is-bottom { top: auto; bottom: -3px; }
.hero-tour-label { position: absolute; left: 0; top: 100%; margin-top: .875rem; font-size: .8125rem; font-weight: 700; line-height: 1.3; color: #fff; }
.hero .ui-section-title { color: #fff; }
.hero .ui-section-title::before { background: var(--aukon-accent); }
.hero .ui-h1 { color: #fff; }
.hero .ui-h1 em { font-style: normal; color: var(--hero-accent); }
.hero .lead { margin-top: 1.25rem; color: var(--text-on-blue); font-size: 1.1875rem; }
.hero .btn-row { margin-top: 2rem; }
/* Brücke: unter der Mitte der Karte beginnt die helle Fläche der nächsten Sektion (harte Kante) */
.hero-bridge { position: relative; margin-top: 3.5rem; padding-bottom: var(--bridge-pad); }
.hero-bridge::before {
  content: ""; position: absolute; left: 50%; width: 100vw; margin-left: -50vw;
  top: calc((100% - var(--bridge-pad)) / 2); bottom: 0; background: var(--ui-bg);
}
.hero-facts {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 2rem;
  padding: 1.25rem 1.5rem; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius);
  font-size: .875rem; color: var(--ui-text-body); translate: 0 calc(var(--lift, 0) * 1px);
}
.hero-facts strong { display: block; color: var(--ui-text); font-size: 1.0625rem; }
.hero + .section { padding-top: 2.5rem; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-text { max-width: 640px; }
  .hero-screen { max-width: 720px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero { --bridge-pad: 1.5rem; }
  .hero .wrap { padding-top: 3.5rem; }
  .hero-grid { gap: 2rem; }
  .hero-bridge { margin-top: 2.5rem; }
  /* Handy: die einspaltige Karte ragt nur 3rem in den dunklen Hero */
  .hero-bridge::before { top: 3rem; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding: 1rem 1.125rem; }
  .hero + .section { padding-top: 1.5rem; }
  /* Handy: Video, Kachel-Schluss und Rundgang laufen wie am Desktop (seit 2026-10-30); nur die Lichtkante entfällt */
  .hero-sheen { display: none; }
}

/* Seitenkopf für Unterseiten: Taubenblau mit bewegten Facetten wie der Hero (.page-head.has-facets mit .facets-bg);
   Impressum und Datenschutz ohne has-facets, dort das statische Facettenbild (siehe „Facettenmuster“) */
.page-head { color: #fff; padding: 3.5rem 0 2.5rem; }
.page-head.has-facets { position: relative; overflow: hidden; background: var(--surface-blue); }
.page-head.has-facets > .wrap { position: relative; }
.page-head .ui-section-title, .page-head .ui-h1 { color: #fff; }
.page-head .lead { max-width: 720px; margin-top: .75rem; color: var(--text-on-blue); }
.page-head :focus-visible { outline-color: #fff; }

/* ── Facetten-Hintergrund .facets-bg (Hero der Startseite, Seitenköpfe der Unterseiten) ──────────────────
   Low-Poly-Facetten der aukon-App als SVGs (assets/hero-bg.js, Daten assets/hero-facetten.js). Die Fläche
   darüber (.hero, .page-head.has-facets) braucht position: relative und overflow: hidden, ihr Inhalt
   position: relative. Zwei Schichten, deckungsgleich:
   blau        gleichmäßig getönt (--facets-tint, einfarbige Ebene, kein Verlauf)
   is-orange   orange, ungetönt, nur im Kreis um den Zeiger (Maske 460 px an --mx/--my, motion.js)
   Handy und motion-off: nur blau, statisch. .facets-bg ist 8 % höher als die Fläche, damit die Parallaxe
   (y −6 %, motion.js) unten keine Lücke öffnet. */
.facets-bg { --facets-tint: .3; position: absolute; left: 0; right: 0; top: 0; bottom: -8%; overflow: hidden; pointer-events: none; }
.facets-layer { position: absolute; inset: 0; }
.facets-layer > svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.facets-layer:not(.is-orange)::after { content: ""; position: absolute; inset: 0; background: rgb(42 58 70 / var(--facets-tint)); }
.facets-layer.is-orange {
  display: none; opacity: 0; transition: opacity 600ms ease;
  -webkit-mask-image: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%), #000 0 40%, transparent 100%);
  mask-image: radial-gradient(circle 460px at var(--mx, 50%) var(--my, 50%), #000 0 40%, transparent 100%);
}
.facets-layer.is-orange.is-on { opacity: 1; }
@media (min-width: 641px) and (hover: hover) {
  .has-motion:not(.motion-off) .facets-layer.is-orange { display: block; }
}

/* ── Karten (U-C1), nummerierte Karten, Icon-Kacheln (U-C7) ──────────────── */
.ui-card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.ui-card-body { padding: 1.25rem; }
.card { background: var(--ui-surface); border: 1px solid var(--ui-border); border-top: 3px solid var(--aukon-primary); border-radius: var(--ui-radius); padding: 1.25rem; }
.card.is-accent { border-top-color: var(--aukon-accent); }
.card .ui-h3 { margin-bottom: .5rem; }
.card p { color: var(--ui-text-body); font-size: .9375rem; }
.card-no { display: block; margin-bottom: .5rem; font-size: .875rem; font-weight: 700; color: var(--aukon-accent-text); font-variant-numeric: tabular-nums; }
/* Modulkarten: beim Zeigen läuft die obere Linie von links in Orange (Hintergrundebenen, folgen dem Radius) */
.card-link {
  text-decoration: none; border-top-color: transparent;
  background:
    linear-gradient(var(--aukon-accent), var(--aukon-accent)) 0 0 / 0 3px no-repeat border-box,
    linear-gradient(var(--aukon-primary), var(--aukon-primary)) 0 0 / 100% 3px no-repeat border-box,
    var(--ui-surface);
  transition: border-color var(--ui-transition), background-size 200ms cubic-bezier(.5, 1, .89, 1);
}
.card-link:hover { border-color: var(--ui-border-strong); border-top-color: transparent; background-size: 100% 3px, 100% 3px, auto; }
.card-link.is-accent:hover { border-top-color: var(--aukon-accent); }
.card-link .ui-link { display: inline-block; margin-top: .75rem; }
.ui-icon-tile {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; border-radius: var(--ui-radius);
  background: var(--aukon-primary-100); color: var(--aukon-primary);
}
.ui-icon-tile > svg { width: 1.375rem; height: 1.375rem; }
.card.is-accent .ui-icon-tile { background: var(--aukon-accent-light); color: var(--aukon-accent-text); }
.section-dark .card { background: var(--surface-blue-card); border-color: var(--surface-blue-card); border-top-color: var(--aukon-accent); }
.section-dark .card p { color: #fff; }
.section-dark .card .card-no { color: var(--accent-text-on-blue); }
.section-dark .ui-icon-tile { background: var(--surface-blue-card); color: var(--aukon-accent); }
.section-dark .feature-text p, .section-dark .feature-text li { color: var(--text-on-blue); }
.section-dark .feature-text li::before { background: var(--aukon-accent); }
/* Merksatz auf Taubenblau: weiß und fett mit orangem Strich (statt oranger Schrift) */
.claim-on-blue { padding-left: .875rem; border-left: 3px solid var(--aukon-accent); font-weight: 700; }
.section-dark .claim-on-blue { color: #fff; }

/* ── KPI-Kacheln (U-C3) ──────────────────────────────────────────────────── */
.ui-kpi { padding: 1rem 1.125rem; background: var(--ui-surface); border: 1px solid var(--ui-border); border-top: 3px solid var(--aukon-primary-300); border-radius: var(--ui-radius); }
.ui-kpi.is-accent { border-top-color: var(--aukon-accent); }
.ui-kpi-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ui-text-muted); }
.ui-kpi-value { margin-top: .25rem; font-size: 1.75rem; line-height: 1.1; font-weight: 700; color: var(--ui-text); font-variant-numeric: tabular-nums; }
.ui-kpi-sub { margin-top: .375rem; font-size: .8125rem; color: var(--ui-text-muted); }
.big-num { font-size: 3rem; line-height: 1; font-weight: 700; color: var(--aukon-accent-text); font-variant-numeric: tabular-nums; }

/* ── Badges & Chips (U-X1/X2) ────────────────────────────────────────────── */
.ui-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .125rem .5rem; white-space: nowrap;
  border: 1px solid var(--aukon-primary-200); border-radius: var(--ui-radius);
  background: var(--aukon-primary-light); color: var(--aukon-primary-700);
  font-size: 10px; font-weight: 700; line-height: 1.4; text-transform: uppercase; letter-spacing: .08em;
}
.ui-badge.is-accent { background: var(--aukon-accent-light); border-color: #F6D2B6; color: var(--aukon-accent-text); }
.chips { display: flex; flex-wrap: wrap; gap: .375rem; }
.ui-chip { display: inline-flex; align-items: center; padding: .25rem .5rem; border-radius: var(--ui-radius); background: var(--ui-surface-sunken); color: var(--ui-text-body); font-size: .75rem; font-weight: 600; line-height: 1.2; }

/* ── Prozesskette ────────────────────────────────────────────────────────── */
.chain { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; counter-reset: step; }
.chain li { padding: .875rem .75rem; background: var(--ui-surface); border: 1px solid var(--ui-border); border-top: 3px solid var(--aukon-primary); border-radius: var(--ui-radius); }
.chain li:nth-child(even) { border-top-color: var(--aukon-accent); }
.chain li::before { counter-increment: step; content: "0" counter(step); display: block; font-size: .8125rem; font-weight: 700; color: var(--aukon-accent-text); }
.chain strong { display: block; margin-top: .125rem; font-size: .9375rem; }
.chain span { display: block; font-size: .75rem; color: var(--ui-text-muted); }
@media (max-width: 960px) { .chain { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Prozesspfad (motion.js, nur ab 961 px): Linie über den Schritten zeichnet sich, erreichte Schritte leuchten */
.chain-path { display: none; }
.chain-path.is-on { display: block; width: 100%; height: 24px; margin-bottom: .5rem; overflow: visible; }
.chain-track, .chain-line { fill: none; stroke-width: 2; stroke-linecap: round; }
.chain-track { stroke: var(--aukon-primary-200); }
.chain-line { stroke: var(--aukon-primary); }
.chain-dot { fill: var(--ui-surface); stroke: var(--aukon-primary-300); stroke-width: 2; transition: fill 300ms ease, stroke 300ms ease; }
.chain-dot.is-lit { fill: var(--aukon-primary); stroke: var(--aukon-primary); }
.chain.is-pathed li { transition: border-color 300ms ease; }
.chain.is-pathed li::before { transition: color 300ms ease; }
.chain.is-pathed li:not(.is-lit) { border-top-color: var(--ui-border-strong); }
.chain.is-pathed li:not(.is-lit)::before { color: var(--ui-text-faint); }
.chain.is-pathed li.is-lit { border-right-color: var(--aukon-primary-300); border-bottom-color: var(--aukon-primary-300); border-left-color: var(--aukon-primary-300); }
@media (max-width: 640px) { .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Screenshots ─────────────────────────────────────────────────────────── */
.shot { overflow: hidden; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: .625rem .875rem; border-top: 1px solid var(--ui-border-soft); font-size: .8125rem; color: var(--ui-text-muted); }
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem; align-items: center; }
.feature + .feature { margin-top: 4rem; }
.feature.is-flipped .feature-text { order: 2; }
.feature-text .ui-h2 { margin-bottom: .75rem; }
.feature-text p { color: var(--ui-text-body); }
.feature-text ul { margin-top: 1rem; }
.feature-text li { position: relative; padding-left: 1.25rem; margin-top: .375rem; font-size: .9375rem; color: var(--ui-text-body); }
.feature-text li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--aukon-primary); }
@media (max-width: 860px) { .feature { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .feature.is-flipped .feature-text { order: 0; } .feature + .feature { margin-top: 3rem; } }

/* ── Fotos (media/fotos, seit 2026-10-23) ─────────────────────────────────
   Dokumentarische Szenen aus dem Betrieb, nie neben Screenshots in derselben Zeile. Rahmen wie .card, kein Schatten,
   kein Text über dem Bild. Die Dateien sind 1024 px breit (halle-ueberblick 1344 px): Plätze breiter als die Datei
   werden begrenzt, nie hochskaliert. Auf dem Handy volle Breite und über dem zugehörigen Text. */
.photo { overflow: hidden; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface-sunken); max-width: 1024px; }
.photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.photo figcaption { padding: .625rem .875rem; border-top: 1px solid var(--ui-border-soft); background: var(--ui-surface); font-size: .8125rem; color: var(--ui-text-muted); }
/* breites Bild zwischen Kopf und Raster: volle Wrap-Breite, Höhe begrenzt */
.photo.is-wide { max-width: none; margin-bottom: 2.5rem; }
.photo.is-wide img { aspect-ratio: auto; height: clamp(240px, 36vw, 520px); object-position: 50% 25%; }
/* Kopf mit Foto: Abschnittskopf links, Foto rechts, darunter das Raster */
.head-photo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.head-photo .section-head { margin-bottom: 0; }
/* Foto oben in der Karte, bündig mit dem Kartenrand (unter der farbigen Oberkante) */
.card.has-photo { overflow: hidden; }
.card-photo { display: block; width: calc(100% + 2.5rem); max-width: none; margin: -1.25rem -1.25rem 1.25rem; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-bottom: 1px solid var(--ui-border); }
/* Statement mit Foto: Text links über zwei Zeilen, rechts Foto und Kacheln */
.statement.has-photo { grid-template-areas: "text photo" "text side"; grid-template-rows: auto 1fr; row-gap: 1rem; }
.statement.has-photo > .statement-text { grid-area: text; }
.statement.has-photo > .photo { grid-area: photo; }
.statement.has-photo > .statement-side { grid-area: side; align-self: start; }
/* Zeile mit zwei Screenshots unter einem Foto-Block (Branchen: Fertiger) */
.shots-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; align-items: start; margin-top: 4rem; }
@media (max-width: 860px) {
  .head-photo { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .head-photo > .photo, .feature > .photo { order: -1; }
  .statement.has-photo { grid-template-areas: "photo" "text" "side"; grid-template-rows: auto; row-gap: 2rem; }
  .shots-row { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 3rem; }
}

/* ── Hinweiszeile unter Sektionen (wie Fußzeile der Präsentation) ───────── */
.note-bar { margin-top: 2rem; padding: 1.125rem 1.25rem; border-radius: var(--ui-radius); background: var(--surface-blue); color: #fff; }
.note-bar .ui-section-title { margin-bottom: .25rem; color: #fff; }
.note-bar .ui-section-title::before { background: var(--aukon-accent); }
.note-bar p { color: #fff; }

/* ── Preise ──────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.plan { display: flex; flex-direction: column; padding: 1.25rem 1rem; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); }
.plan.is-highlighted { border-color: var(--aukon-accent); }
.plan-name { font-size: 1.125rem; font-weight: 700; }
.plan-sub { font-size: .8125rem; color: var(--ui-text-muted); }
.plan-price { margin: 1rem 0 .25rem; font-size: 1.75rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price small { font-size: .8125rem; font-weight: 600; color: var(--ui-text-muted); }
.plan-incl { font-size: .75rem; font-weight: 700; color: var(--aukon-accent-text); }
.plan ul { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ui-border-soft); font-size: .875rem; color: var(--ui-text-body); }
.plan li + li { margin-top: .375rem; }
.plan .ui-btn { margin-top: auto; }
.plan ul + .ui-btn { margin-top: 1.25rem; }
@media (max-width: 1024px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.price-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.price-table th, .price-table td { padding: .75rem .5rem; text-align: left; border-bottom: 1px solid var(--ui-border); vertical-align: top; }
.price-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ui-text-muted); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── FAQ (U-N2) ──────────────────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--ui-border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: .625rem; height: .625rem; border-right: 2px solid var(--ui-text-faint); border-bottom: 2px solid var(--ui-text-faint); transform: rotate(45deg); transition: transform var(--ui-transition); flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 1rem; color: var(--ui-text-body); }

/* ── Formular (U-F1/F7) ──────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.form-grid .is-full { grid-column: 1 / -1; }
.req { color: var(--aukon-accent-text); }
.form-note { margin-bottom: 1rem; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* Das Attribut hidden gewinnt gegen display: grid/flex (Formular nach dem Senden, Statuszeile davor) */
[hidden] { display: none !important; }
.form-status { margin-top: 1rem; padding: .75rem 1rem; border-radius: var(--ui-radius); border: 1px solid var(--ui-border); font-size: .9375rem; line-height: 1.5; }
.form-status.is-ok { background: #F0F9F5; border-color: #257F5F; color: #16523D; }
.form-status.is-fehler { background: #FEF4F3; border-color: #A74E49; color: #6D312E; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.ui-label { display: block; margin-bottom: .375rem; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ui-text-muted); }
.ui-field {
  display: block; width: 100%; height: 2.5rem; padding: 0 .75rem;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface);
  font: inherit; font-size: .875rem; color: var(--ui-text);
  transition: border-color var(--ui-transition);
}
.ui-field::placeholder { color: var(--ui-text-faint); }
.ui-field:hover { border-color: var(--ui-border-strong); }
.ui-field:focus { outline: none; border-color: var(--aukon-primary); box-shadow: 0 0 0 1px var(--aukon-primary); }
textarea.ui-field { height: auto; min-height: 8rem; padding: .625rem .75rem; resize: vertical; }
select.ui-field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23768C9C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .625rem center; padding-right: 2rem; }
.ui-hint { margin-top: .375rem; font-size: .75rem; color: var(--ui-text-muted); }

/* ── Kontaktblock ────────────────────────────────────────────────────────── */
.contact-lines { display: grid; gap: .75rem; }
.contact-lines a { display: flex; align-items: center; gap: .75rem; padding: .875rem 1rem; background: var(--ui-surface); border: 1px solid var(--ui-border); border-radius: var(--ui-radius); color: var(--ui-text); font-weight: 700; text-decoration: none; transition: border-color var(--ui-transition); }
.contact-lines a:hover { border-color: var(--ui-border-strong); }
.contact-lines svg { width: 1.125rem; height: 1.125rem; color: var(--aukon-primary); flex-shrink: 0; }
.contact-lines span { font-weight: 500; color: var(--ui-text-muted); font-size: .8125rem; display: block; }

/* ── Statement ───────────────────────────────────────────────────────────── */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; }
.statement blockquote { margin: 0; font-size: 1.25rem; line-height: 1.5; color: var(--ui-text); }
.statement blockquote p + p { margin-top: 1rem; }
.quote-slot { border-left: 3px solid var(--aukon-accent); padding: .25rem 0 .25rem 1.25rem; margin-top: 1.5rem; }
.quote-slot p { font-size: 1.25rem; line-height: 1.45; font-weight: 600; color: var(--ui-text); }
.quote-slot p.muted { font-size: .95rem; font-weight: 400; margin-top: .5rem; }
.statement cite { display: block; margin-top: 1.25rem; font-style: normal; font-weight: 700; }
.statement cite span { display: block; font-weight: 500; color: var(--ui-text-muted); font-size: .875rem; }
@media (max-width: 860px) { .statement { grid-template-columns: minmax(0, 1fr); } }

/* ── Fußzeile ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--ui-surface); border-top: 1px solid var(--ui-border); padding: 1.75rem 0 1.25rem; font-size: .875rem; color: var(--ui-text-body); }
.site-footer .ui-link { color: var(--aukon-primary-700); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 2rem 2.5rem; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 1.25rem; max-width: 560px; }
.footer-brand img { height: 4.5rem; width: auto; flex: 0 0 auto; }
.footer-links-2 { columns: 2; column-gap: 1.75rem; }
.footer-links-2 li { break-inside: avoid; }
.footer-grid .footer-heading { margin-bottom: .5rem; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ui-text-body); }
.footer-grid li + li { margin-top: .25rem; }
.footer-grid a { color: var(--ui-text-body); text-decoration: none; }
.footer-grid a:hover { color: var(--aukon-primary); text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 1.25rem; padding-top: .875rem; border-top: 1px solid var(--ui-border-soft); font-size: .8125rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: auto auto; justify-content: start; gap: 1.5rem 2.5rem; } .footer-grid > .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; } .footer-brand { align-items: flex-start; } .footer-brand img { height: 3.5rem; } }

/* ── Bewegung (assets/motion.js) ─────────────────────────────────────────── */
.has-motion:not(.motion-off) [data-reveal],
.has-motion:not(.motion-off) [data-reveal-group] > * { visibility: hidden; }
/* Zähler: bis motion.js den Startwert 0 gesetzt hat, ist die Zahl unsichtbar (ohne JS steht der Endwert) */
.has-motion:not(.motion-off) [data-count] { visibility: hidden; display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
/* Hero: Text erscheint erst mit der Einblendung (kein Aufblitzen); auf dem Handy sofort sichtbar */
@media (min-width: 641px) {
  .has-motion:not(.motion-off) .hero-text > *,
  .has-motion:not(.motion-off) .hero-facts,
  .has-motion:not(.motion-off) .hero-screen,
  .has-motion:not(.motion-off) .page-head .wrap > :not(.chips),
  .has-motion:not(.motion-off) .page-head .chips > * { visibility: hidden; }
}
.hero .ui-h1 .w, .page-head .ui-h1 .w { display: inline-block; }
[data-tilt] { transform-style: preserve-3d; }
[data-parallax] { position: relative; z-index: 1; }

/* Linie unter einem Abschnittskopf, zeichnet sich von links */
[data-draw]::after { content: ""; display: block; height: 2px; margin-top: 1.5rem; background: var(--aukon-primary-300); transform-origin: 0 50%; }
.has-motion:not(.motion-off) [data-draw]::after { transform: scaleX(0); transition: transform 800ms cubic-bezier(.5, 1, .89, 1) 250ms; }
.has-motion:not(.motion-off) [data-draw].is-drawn::after { transform: none; }

/* Kennzahlen mit Unterlinie, die sich beim Scrollen füllt (--fill 0 bis 1 setzt motion.js) */
[data-fill] > .ui-kpi { position: relative; padding-bottom: 1.5rem; }
[data-fill] > .ui-kpi::before,
[data-fill] > .ui-kpi::after { content: ""; position: absolute; left: 1.125rem; right: 1.125rem; bottom: .75rem; height: 2px; background: var(--aukon-primary-100); }
[data-fill] > .ui-kpi::after { background: var(--aukon-primary); transform: scaleX(var(--fill, 1)); transform-origin: 0 50%; }
[data-fill] > .ui-kpi.is-accent::after { background: var(--aukon-accent); }

/* Belegszene in der KI-Sektion der Startseite (seit 2026-10-23, ersetzt den Staub im Licht): erzählt „KI schlägt
   vor, ein Mensch gibt frei“. Links ein Beleg (Karte auf Taubenblau), rechts der Vorschlag der KI (weiße Karte) mit
   Status und Knopf „Freigeben“. Der Grundzustand im CSS ist das Endbild (ohne JS, motion-off, Handy ≤ 640 px);
   motion.js setzt ab 641 px den Anfangszustand und spielt den Ablauf (Zeiten in ablauf/motion.md).
   Kontraste: Chip #2A3A46 auf Weiß 11,7:1 (Label #557185 5,1:1), „Wartet auf Freigabe“ #1F2B34 auf #EB813A 5,3:1,
   „Freigegeben“ und Stempel Weiß auf #257F5F 4,9:1, Knopf Weiß auf #557185 5,1:1, Titel Weiß auf Karte 7,7:1. */
.beleg-szene {
  display: grid; grid-template-columns: minmax(0, 460px) minmax(40px, 1fr) minmax(0, 460px);
  align-items: center; max-width: 1100px; margin: 0 0 2.5rem;
}
.bs-beleg {
  position: relative; overflow: hidden; min-height: 344px; padding: 1.25rem 1.375rem 3.5rem;
  border: 1px solid rgb(255 255 255 / .22); border-radius: var(--ui-radius);
  background: var(--surface-blue-card); color: #fff; font-size: .75rem; line-height: 1.3;
}
.bs-l { display: block; height: 6px; max-width: 100%; border-radius: 3px; background: rgb(255 255 255 / .24); }
.bs-l.is-k { width: 3rem; } .bs-l.is-m { width: 4.5rem; } .bs-l.is-l { width: 7.5rem; }
.bs-l.is-p1 { width: 62%; } .bs-l.is-p2 { width: 48%; } .bs-l.is-p3 { width: 55%; }
.bs-kopf { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: .875rem; margin-bottom: .5rem; border-bottom: 1px solid rgb(255 255 255 / .2); }
.bs-logo { width: 2.75rem; height: 1.75rem; border-radius: 4px; background: rgb(255 255 255 / .3); }
.bs-titel { display: flex; flex-direction: column; align-items: flex-end; gap: .45rem; font-size: .875rem; font-weight: 700; letter-spacing: .02em; }
.bs-feld {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 2.375rem;
  margin: 0 -.5rem; padding: .375rem .5rem; border: 1px solid transparent; border-radius: var(--ui-radius);
}
.bs-feld.is-summe { margin-top: .375rem; }
.bs-zeilen { display: flex; flex-direction: column; gap: .4rem; flex: 1 1 0; min-width: 2rem; }
.bs-chip {
  display: inline-flex; gap: .3rem; padding: .25rem .5rem; border-radius: var(--ui-radius);
  background: var(--ui-surface); color: var(--ui-text); font-size: .75rem; font-weight: 600; white-space: nowrap;
}
.bs-chip b { font-weight: 500; color: var(--ui-text-muted); }
.bs-pos { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid rgb(255 255 255 / .12); }
.bs-pos:nth-child(5) { border-bottom-color: rgb(255 255 255 / .4); }
.bs-stempel {
  position: absolute; left: 1.375rem; bottom: 1rem; padding: .25rem .625rem; transform: rotate(-6deg);
  border: 1px solid rgb(255 255 255 / .6); border-radius: var(--ui-radius); background: var(--aukon-status-success);
  color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
/* Lesezeile: die Ebene fährt per yPercent von oben nach unten, an ihrer Oberkante die helle Linie, darüber ein
   schwacher Glanz (Licht ist die einzige erlaubte Verlaufsform, siehe design.md) */
.bs-scan { position: absolute; inset: 0; visibility: hidden; opacity: 0; pointer-events: none; }
.bs-scan::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: #fff; }
.bs-scan::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 3rem; background: linear-gradient(rgb(255 255 255 / 0), rgb(255 255 255 / .16)); }
.bs-weg { position: relative; height: 1px; margin: 0 .875rem; background: rgb(255 255 255 / .55); transform-origin: 0 50%; }
.bs-weg::before, .bs-weg::after { content: ""; position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.bs-weg::before { left: -3px; } .bs-weg::after { right: -3px; }
.bs-vorschlag { padding: 1.25rem; border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); color: var(--ui-text); }
.bs-vkopf { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding-bottom: .875rem; border-bottom: 1px solid var(--ui-border); }
.bs-vlabel { display: flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ui-text-muted); }
.bs-vlabel::before { content: ""; width: 1rem; height: 2px; background: var(--aukon-accent); }
.bs-status { display: grid; }
.bs-st {
  grid-area: 1 / 1; justify-self: end; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem;
  border-radius: var(--ui-radius); font-size: .75rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.bs-st.is-wartet { visibility: hidden; opacity: 0; background: var(--aukon-accent); color: var(--aukon-primary-950); }
.bs-st.is-frei { background: var(--aukon-status-success); color: #fff; }
.bs-st svg { flex-shrink: 0; }
.bs-vzeile { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--ui-border-soft); font-size: .9375rem; }
.bs-vzeile span { color: var(--ui-text-muted); }
.bs-vzeile b { font-weight: 600; color: var(--ui-text); text-align: right; }
.bs-vfuss { position: relative; display: flex; justify-content: flex-end; padding-top: 1rem; }
.bs-knopf {
  display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 1rem; border-radius: var(--ui-radius);
  background: var(--aukon-primary); color: #fff; font-size: .875rem; font-weight: 600;
}
.bs-zeiger { position: absolute; right: -.25rem; top: 2.1rem; }
.bs-zeiger path { fill: #fff; stroke: var(--aukon-primary-950); stroke-width: 1.4; stroke-linejoin: round; }
/* Einspaltig (≤ 860 px): Beleg, kurzer senkrechter Weg, Vorschlag untereinander */
@media (max-width: 860px) {
  .beleg-szene { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin: 0 auto 2.5rem; }
  .bs-weg { justify-self: center; width: 1px; height: 1.75rem; margin: .5rem 0; transform-origin: 50% 0; }
  .bs-weg::before { left: -3px; top: -3px; } .bs-weg::after { left: -3px; right: auto; top: auto; bottom: -3px; }
}

/* Lichtlinie: wandert einmal über die obere Kante einer dunklen Sektion */
[data-sweep] { position: relative; }
[data-sweep]::after {
  content: ""; position: absolute; left: 0; top: 0; width: 40%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aukon-accent), transparent);
  opacity: 0; transform: translateX(-100%); pointer-events: none;
}
.has-motion:not(.motion-off) [data-sweep].is-swept::after { animation: sweep 1.2s cubic-bezier(.45, 0, .55, 1) forwards; }
@keyframes sweep { 0% { opacity: 0; transform: translateX(-100%); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(250%); } }

/* 3D-Bühne: der Screenshot als Bildschirm, Bausteine ragen heraus */
.stage3d { position: relative; margin-bottom: 3rem; perspective: 1500px; perspective-origin: 50% 40%; }
.stage3d-screen {
  position: relative; aspect-ratio: 1290 / 776; border-radius: var(--ui-radius);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-14deg);
}
/* Auf Taubenblau liegt das Grundbild deutlich dunkler als die Fläche (Abdeckung .8), damit sich Bühne und Bausteine absetzen */
.stage3d-base { position: absolute; inset: 0; border-radius: var(--ui-radius); overflow: hidden; border: 1px solid rgb(255 255 255 / .35); background: #fff; }
.stage3d-base img { width: 100%; height: 100%; object-fit: cover; }
.stage3d-base::after { content: ""; position: absolute; inset: 0; background: rgb(31 43 52 / .8); }
.stage3d-part {
  position: absolute; display: block; border-radius: var(--ui-radius); overflow: hidden;
  border: 1px solid var(--aukon-primary-200); background: #fff; transform-style: preserve-3d;
  outline: 1px solid rgb(31 43 52 / .25);
}
.stage3d-part img { display: block; width: 100%; height: auto; }
.stage3d-label {
  position: absolute; left: 0; right: 0; bottom: -3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem;
  font-size: .8125rem; color: var(--text-on-blue);
}
.stage3d-label b { color: #fff; font-weight: 700; }
/* Helle Bühne für helle Abschnitte: Grundbild unter heller Fläche, Bausteine mit kräftigerem Rahmen */
.stage3d.is-light .stage3d-base { border-color: var(--ui-border); }
.stage3d.is-light .stage3d-base::after { background: rgb(247 249 250 / .6); }
.stage3d.is-light .stage3d-part { border-color: var(--ui-border-strong); outline: 0; }
.stage3d.is-light .stage3d-label { color: var(--ui-text-muted); }
.stage3d.is-light .stage3d-label b { color: var(--ui-text); }
/* Hohe Screenshots (z. B. Cockpit Geschäftsführung, 1290 × 1045): neben Text etwas schmaler, damit die unteren
   Bausteine beim Einflug nicht in die Textspalte ragen (gemessen mit sweep.mjs bei 1440/1100/960) */
@media (min-width: 861px) {
  .stage3d.is-tall .stage3d-screen { width: 88%; margin-left: auto; }
  .stage3d.is-tall .stage3d-label { left: 12%; }
}
/* Einspaltig steht die Bühne unter Text: etwas Luft, damit herausragende Bausteine beim Einflug nichts streifen */
@media (max-width: 860px) { .feature .stage3d { margin-top: 1.5rem; } }
/* Handy (seit 2026-10-30): Bühne etwas schmaler und leicht seitlich geneigt, die Bausteine liegen in einer auf 92 % verkleinerten
   Ebene (.stage3d-parts, legt motion.js an), damit sie samt Hervorhebung ganz im Rahmen bleiben; Safari schneidet sonst am Rahmen ab */
@media (max-width: 640px) {
  .stage3d { perspective: 1200px; margin-bottom: 4.75rem; } .stage3d-label { bottom: -4.5rem }
  .stage3d-screen { width: 92%; margin: 0 auto; transform: rotateX(4deg) rotateY(-8deg); }
  .stage3d-parts { position: absolute; inset: 0; transform-style: preserve-3d; transform: scale(.92); }
}
@media (max-width: 640px) { .btn-row .ui-btn { white-space: normal; text-align: center; height: auto; min-height: 2.75rem; padding-top: .6rem; padding-bottom: .6rem; } }

/* ── Facettenmuster (statisch, seit 2026-10-23) ──────────────────────────────
   Dasselbe Low-Poly-Muster wie im Hero, hier als leichtes Bild (cover, zentriert, ohne Bewegung). Die Tönung ist
   eine gleichmäßige Fläche (linear-gradient mit zwei gleichen Farben = einfarbige Ebene, kein Verlauf).
   Blau auf Taubenblau-Flächen: hellste Facette mit Tönung (88 113 132), Weiß 5,11:1, Fließtext 4,63:1.
   Blau auf der weißen Fußzeile: 14 % Muster, Text dort #3E5666 (6,3:1 statt #557185 mit 4,2:1).
   Orange nur als heller Grund mit dunkler Schrift (.muster-orange, höchstens zwei Stellen je Seite, nie hinter
   langem Fließtext): 15 % Muster auf #FDF1E8, Text #2A3A46 8,6:1, #3E5666 5,65:1. Zahlen gemessen mit Pixel-Kontrast. */
.section-dark, .page-head:not(.has-facets) {
  background: linear-gradient(var(--pattern-tint-blue), var(--pattern-tint-blue)), url("../media/hero-bg-blau.webp") 50% 50% / cover no-repeat, var(--surface-blue);
}
.site-footer {
  background: linear-gradient(rgb(255 255 255 / .86), rgb(255 255 255 / .86)), url("../media/hero-bg-blau.webp") 50% 50% / cover no-repeat, var(--ui-surface);
}
.muster-orange {
  background: linear-gradient(rgb(253 241 232 / .85), rgb(253 241 232 / .85)), url("../media/hero-bg-orange.webp") 50% 50% / cover no-repeat, var(--aukon-accent-light);
  border: 1px solid #F6D2B6; color: var(--ui-text);
}
.muster-orange p, .muster-orange .ui-kpi-label, .muster-orange .ui-kpi-sub { color: var(--ui-text-body); }
.card.muster-orange { border-top: 3px solid var(--aukon-accent); }
.ui-kpi.muster-orange { border-top: 3px solid var(--aukon-accent); }
.note-bar.muster-orange { color: var(--ui-text); }
.note-bar.muster-orange .ui-section-title { color: var(--ui-text-body); }
.note-bar.muster-orange p { color: var(--ui-text); }

/* Druck (seit 2026-10-23, Audit): Browser drucken ohne Hintergründe, weiße Schrift auf Taubenblau wäre
   unsichtbar. Im Druck daher helle Flächen mit dunkler Schrift, alles Eingeblendete sichtbar,
   keine Bewegung, kein Video, keine Bühnen und Facetten, Kopfleiste ohne Menü. Bildschirm unverändert. */
@media print {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html, body { background: #fff !important; }
  .site-header { position: static !important; }
  .nav-toggle, .nav-list, .facets-bg, .hero-screen, .stage3d, .hero-sheen, .btn-row { display: none !important; }
  .hero, .page-head, .section-dark, .note-bar, .site-footer, .muster-orange, .section-dark .card {
    background: #fff !important; background-image: none !important; color: var(--ui-text) !important;
  }
  .hero *, .page-head *, .section-dark *, .note-bar * { color: var(--ui-text) !important; }
  .hero-grid { display: block !important; }
  [data-reveal], [data-reveal-group] > *, [data-parallax], .w, .hero-text > *, .page-head .wrap > *, .section-head {
    opacity: 1 !important; visibility: visible !important; transform: none !important; translate: none !important;
  }
  h2, h3 { break-after: avoid; }
  figure, .card, .ui-kpi, tr { break-inside: avoid; }
}
/* Produktname bleibt auch in Versalien-Labels klein geschrieben */
.keep-case { text-transform: none; }

/* Integration: Datenflüsse */
/* Startseite, Abschnitt „Passt zu dem, was Sie haben“ (seit 2026-10-29): fünf bestehende Programme sind mit aukon
   in der Mitte verbunden, Belege fließen über die Linien, die Module Angebote und Lager docken an. Bühne in einem
   festen Koordinatensystem 640 × 340 (viewBox der Linien), Kacheln in Prozent davon, Schrift in cqw: so treffen
   die Linien bei jeder Breite die Kacheln. Linien enden innerhalb der Kacheln, die Kacheln liegen darüber.
   Der Grundzustand im CSS ist das Endbild (ohne JS, motion-off, reduzierte Bewegung, Handy ≤ 640 px);
   motion.js (11b) spielt ab 641 px den Ablauf. Orange nur an aukon (Oberkante) und den Modul-Kacheln.
   Kontraste: Weiß auf #557185 5,1:1, #2A3A46 auf Weiß 11,7:1, #557185 auf Weiß 5,1:1. */
.df-figur { margin: 0; width: 100%; max-width: 640px; justify-self: center; }
.datenfluss {
  position: relative; aspect-ratio: 640 / 340; container-type: inline-size;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-bg);
}
.df-linien { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.df-weg { fill: none; stroke: var(--aukon-primary-300); stroke-width: 1.5; stroke-linecap: round; }
.df-beleg {
  position: absolute; z-index: 1; width: 14px; height: 18px; margin: -9px 0 0 -7px; visibility: hidden; opacity: 0;
  border: 1.5px solid var(--aukon-primary); border-radius: 2px; background: var(--ui-surface);
}
.df-beleg::before, .df-beleg::after { content: ""; position: absolute; left: 2px; right: 2px; height: 1.5px; background: var(--aukon-primary-300); }
.df-beleg::before { top: 4px; } .df-beleg::after { top: 8px; right: 4px; }
.df-k {
  position: absolute; z-index: 2; width: 24.375%; height: 17.0588%; padding: 0 .375rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem; text-align: center;
  border: 1px solid var(--ui-border); border-radius: var(--ui-radius); background: var(--ui-surface); color: var(--ui-text);
  line-height: 1.2; white-space: nowrap;
}
.df-k b { font-size: clamp(11px, 2.2cqw, 14px); font-weight: 600; }
.df-k small { font-size: clamp(10px, 1.75cqw, 12px); color: var(--ui-text-muted); }
.df-p-mail { left: 37.8125%; top: 8.5294%; }
.df-p-buch { left: 5.3125%; top: 30.8824%; }
.df-p-steu { left: 70.3125%; top: 30.8824%; }
.df-p-web { left: 5.3125%; top: 72.6471%; }
.df-p-bank { left: 70.3125%; top: 72.6471%; }
.df-aukon {
  left: 36.7188%; top: 47.0588%; width: 26.5625%; height: 18.8235%;
  border: 0; border-top: 3px solid var(--aukon-accent); background: var(--aukon-primary); color: #fff;
  font-size: clamp(16px, 3.6cqw, 22px); font-weight: 700; letter-spacing: -.01em;
}
.df-modul {
  top: 67.0588%; width: 12.8125%; height: 11.7647%; padding: 0 .25rem;
  border-top: 3px solid var(--aukon-accent); font-size: clamp(11px, 2cqw, 13px); font-weight: 600;
}
.df-m-ang { left: 36.7188%; }
.df-m-lag { left: 50.4688%; }
.df-caption { margin-top: .75rem; text-align: center; text-wrap: balance; font-size: .875rem; color: var(--ui-text-muted); }
/* Unter dem Hero: Brücke und Sektion weiß, ohne zusätzliche Linie */
.hero:has(+ .section-sunken) .hero-bridge::before { background: var(--ui-surface); }
.hero + .section-sunken { border-top: 0; }
/* Handy: statisches Raster statt Bühne, Programme oben, darunter aukon mit den Modulen */
@media (max-width: 640px) {
  .datenfluss {
    aspect-ratio: auto; container-type: normal; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem;
    grid-template-areas: "mail mail" "buch steu" "web bank" "auk auk" "ang lag"; padding: .75rem;
  }
  .df-linien, .df-beleg { display: none; }
  .df-k { position: relative; left: auto; top: auto; width: auto; height: auto; min-height: 3.25rem; padding: .5rem; white-space: normal; }
  .df-k b { font-size: .875rem; }
  .df-k small { font-size: .75rem; }
  .df-p-mail { grid-area: mail; } .df-p-buch { grid-area: buch; } .df-p-steu { grid-area: steu; }
  .df-p-web { grid-area: web; } .df-p-bank { grid-area: bank; }
  .df-aukon { grid-area: auk; margin-top: 1rem; font-size: 1.375rem; }
  .df-aukon::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); width: 1px; height: 1rem; background: var(--aukon-primary-300); }
  .df-modul { min-height: 2.75rem; font-size: .875rem; }
  .df-m-ang { grid-area: ang; } .df-m-lag { grid-area: lag; }
}
