/* ==========================================================================
   Optero – globale Styles
   Aufbau: Fonts · Tokens · Reset/Basis · Typografie · Layout (.container, .section)
           · Buttons & Links · Platzhalter · Header · Footer · Seiten-Komponenten
   ========================================================================== */

/* ----- Fonts (lokal, keine externen Requests) ----- */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
/* nur für die Wortmarke */
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../assets/fonts/dm-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ----- Tokens ----- */
:root {
  /* Farben (siehe CLAUDE.md – keine weiteren Akzentfarben) */
  --navy: #1C3557;
  --navy-deep: #021F41; /* dunkle Flächen: Header, Hero, Navy-Sektionen, Footer (Wunsch Christian, 05.10.2026) */
  --dove: #5E8FAE;
  --violet: #7C5CBF;   /* ausschließlich HeyOptero / KI-Momente */
  --sun: #F7EDAF;      /* Hinweise, Freigabe, Status */
  --muted: #546B84;
  --line: #DCE4EC;
  --paper: #F4F7FA;
  --white: #FFFFFF;

  /* Schriften */
  --font-fallback: system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font-fallback);
  --font-body: "DM Sans", var(--font-fallback);

  /* Typo-Skala (Desktop 1280 px → Mobil 360 px) */
  --fs-h1: clamp(2.25rem, 1.76rem + 2.17vw, 3.5rem);       /* 56 → 36 */
  --fs-h2: clamp(2rem, 1.66rem + 1.52vw, 2.875rem);        /* 46 → 32 */
  --fs-h3: 1.25rem;                                         /* 20 */
  --fs-lead: clamp(1.0625rem, 1.01rem + 0.22vw, 1.1875rem); /* 19 → 17 */
  --fs-body: 1rem;                                          /* 16 */
  --fs-small: 0.875rem;                                     /* 14 */

  /* Radien nach Hierarchie */
  --r-btn: 12px;
  --r-card: 16px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 5vw, 48px);
  --section-space: clamp(64px, 9vw, 120px);
  --header-h: 72px;

  /* Bewegung: weiches Auslaufen wie bei Apple */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Reset / Basis ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Lenis (weiches Scrollen, js/vendor/lenis.min.js) – Grundregeln aus lenis.css */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* hidden gilt immer – auch gegen display-Regeln von Komponenten (z. B. Formular nach dem Absenden) */
[hidden] { display: none !important; }

main { flex: 1 0 auto; } /* Footer bleibt auf kurzen Seiten unten */

img,
svg {
  display: block;
  max-width: 100%;
}

img { height: auto; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

/* ----- Typografie ----- */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--navy);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
}

p { margin: 0; }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: 60ch;
}

.text { max-width: 60ch; }

.small {
  font-size: var(--fs-small);
  color: var(--muted);
}

.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 ----- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Vertikale Abstände zwischen Sektionen laufen ausschließlich über .section */
.section {
  padding-block: var(--section-space);
  background: var(--white);
}
.section--paper { background: var(--paper); }
.section--navy {
  background: var(--navy-deep);
  color: var(--white);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

/* ----- Buttons & Links ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--navy);
  color: var(--white);
}
.btn--primary:hover { background: #15294A; }

/* Auf Navy-Flächen */
.btn--light {
  background: var(--white);
  color: var(--navy);
}
.btn--light:hover { background: var(--paper); }
.section--navy .btn--light:focus-visible,
.site-footer :focus-visible { outline-color: var(--white); }

.btn--sm {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 0.9375rem;
}

/* Textlink mit Unterstreichung (z. B. sekundäre Aktion im Hero) */
.link {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: var(--dove);
}
.link:hover { text-decoration-color: currentColor; }

/* ----- Platzhalter für [OFFEN]-Inhalte ----- */
/* Sichtbar markiert, damit fehlende Inhalte vor dem Launch auffallen */
.ph-offen {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed currentColor;
  border-radius: 4px;
  font-style: normal;
  font-weight: 500;
  opacity: 0.8;
}

.ph-img {
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--muted);
  font-size: var(--fs-small);
  text-align: center;
}

/* ----- Logo-Platzhalter (bis das SVG da ist) – Wortmarke in Optero-Blau ----- */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.6rem + 0.45vw, 2rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dove);
}

/* ----- Skip-Link ----- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--r-btn);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ==========================================================================
   Header – Navy, geht nahtlos in den Hero über
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-deep);
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.is-scrolled { border-bottom-color: rgb(255 255 255 / 0.14); }
.site-header :focus-visible { outline-color: var(--white); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: var(--header-h);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: rgb(255 255 255 / 0.88);
}
.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--dove);
}

/* Hervorgehobener Header-Button „Testnutzer werden“ in Pastel Sun (Wunsch Christian, 05.10.2026) */
.btn--sun {
  background: var(--sun);
  color: var(--navy-deep);
}
.btn--sun:hover { background: #F2E38F; }

/* Umrandeter Button auf Navy (Header) */
.btn--ghost-light {
  background: transparent;
  border-color: rgb(255 255 255 / 0.45);
  color: var(--white);
}
.btn--ghost-light:hover {
  background: rgb(255 255 255 / 0.08);
  border-color: var(--white);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--r-btn);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

@media (max-width: 900px) {
  /* Ausklappmenü nur, wenn JS läuft – ohne JS bleibt die Liste sichtbar */
  .js .nav-toggle { display: inline-flex; }

  .site-header__inner { flex-wrap: wrap; height: auto; min-height: var(--header-h); }
  .site-header .brand { min-height: var(--header-h); } /* Logo-Zeile bleibt beim Aufklappen stehen */

  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 20px;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgb(255 255 255 / 0.14);
  }
  .site-nav__list li { border-bottom: 1px solid rgb(255 255 255 / 0.14); }
  .site-nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.0625rem;
  }

  .site-nav .btn { margin-top: 20px; width: 100%; }
}

/* ----- Untermenü „Unternehmen“ (Über uns, Karriere) ----- */
.site-nav__group { position: relative; }

.site-nav__sub-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.site-nav__group.is-current > .site-nav__sub-toggle {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
  text-decoration-color: var(--dove);
}
.site-nav__group.is-open > .site-nav__sub-toggle svg { transform: rotate(180deg); }

.site-nav__sub {
  display: none;
  position: absolute;
  top: calc(100% + 28px); /* knapp unter der Header-Kante */
  left: -20px;
  min-width: 200px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--navy-deep);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--r-btn);
}
/* Überbrückt die Lücke zwischen Button und Liste, damit das Menü beim Hinfahren offen bleibt */
.site-nav__sub::before {
  content: "";
  position: absolute;
  inset: -29px 0 100%;
}

.site-nav__sublink {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  color: rgb(255 255 255 / 0.88);
}
.site-nav__sublink:hover,
.site-nav__sublink[aria-current="page"] {
  color: var(--white);
  background: rgb(255 255 255 / 0.08);
}

/* Offen per Klick (JS); ohne JS per Tastaturfokus */
.site-nav__group.is-open > .site-nav__sub,
html:not(.js) .site-nav__group:focus-within > .site-nav__sub { display: block; }

@media (hover: hover) and (min-width: 901px) {
  .site-nav__group:hover > .site-nav__sub { display: block; }
}

@media (max-width: 900px) {
  /* Im Ausklappmenü als Akkordeon – ohne JS bleiben die Unterpunkte sichtbar */
  .site-nav__sub-toggle {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 14px 0;
    text-align: left;
  }
  .site-nav__sub {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 10px;
    background: none;
    border: 0;
  }
  .js .site-nav__sub { display: none; }
  .site-nav__sub::before { content: none; }
  .site-nav__sub li { border-bottom: 0; }
  .site-nav__sublink {
    padding: 10px 0 10px 16px;
    font-size: 1rem;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-deep);
  border-top: 1px solid rgb(255 255 255 / 0.16); /* Trennung zur Navy-Sektion „Testen“ */
  color: var(--white);
  padding-block: clamp(56px, 7vw, 88px) 32px;
  font-size: 0.9375rem;
}

.site-footer a {
  color: rgb(255 255 255 / 0.8);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(2, 1fr); /* Spalte „Für Baustoffhändler“ seit 31.10. ausgeblendet – beim Reaktivieren wieder repeat(3, 1fr) */
  gap: 40px;
}

.site-footer .brand { color: var(--dove); }

.site-footer__claim {
  margin-top: 16px;
  max-width: 28ch;
  color: rgb(255 255 255 / 0.8);
}

.site-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.site-footer__mail svg { flex: none; color: var(--dove); }


/* Social-Icons im Footer */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.site-footer a.social__link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--r-btn);
  color: rgb(255 255 255 / 0.8);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.site-footer a.social__link:hover {
  border-color: rgb(255 255 255 / 0.6);
  background: rgb(255 255 255 / 0.06);
  color: var(--white);
  text-decoration: none;
}

.site-footer__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
}

.site-footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.16);
  color: rgb(255 255 255 / 0.8);
  font-size: var(--fs-small);
}

.site-footer__legal {
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ==========================================================================
   Seiten-Komponenten
   ========================================================================== */

/* Einfacher Seitenkopf für Unterseiten */
.page-intro h1 { max-width: 20ch; }
.page-intro .lead { margin-top: 24px; }

/* Impressum: Pflichtangaben als Label/Wert-Liste mit Haarlinien */
.legal-facts {
  max-width: 920px;
  margin: clamp(40px, 5vw, 56px) 0 0;
  border-top: 1px solid var(--line);
}
.legal-facts__row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr;
  gap: 8px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-facts dt {
  padding-top: 3px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-facts dd { margin: 0; line-height: 1.6; }
.legal-facts__note { color: var(--muted); font-size: var(--fs-small); }
.legal-address { font-style: normal; }

.legal-notes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 48px);
  margin-top: clamp(32px, 4vw, 48px);
}
.legal-notes h3 { margin-bottom: 12px; }
.legal-notes p { color: var(--muted); font-size: var(--fs-small); line-height: 1.7; }

@media (max-width: 900px) {
  .legal-notes__grid { grid-template-columns: 1fr; max-width: 68ch; }
}
@media (max-width: 600px) {
  .legal-facts__row { grid-template-columns: 1fr; gap: 4px; padding-block: 16px; }
}

/* Datenschutz: Kurzfassung, Inhaltsverzeichnis (sticky) + Fließtext */
.legal-stand { margin-top: 16px; color: var(--muted); font-size: var(--fs-small); }
.legal-summary {
  max-width: 920px;
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.legal-summary__title { margin-bottom: 20px; font-size: var(--fs-h3); }

.legal-doc {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: calc(var(--header-h, 72px) + 32px);
}
.legal-toc__title {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: 10px;
  padding: 6px 0;
  color: var(--navy);
  font-size: var(--fs-small);
  text-decoration: none;
}
.legal-toc a::before { content: counter(toc); min-width: 18px; color: var(--dove); font-variant-numeric: tabular-nums; }
.legal-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.legal-text { max-width: 72ch; }
.legal-text > section { scroll-margin-top: calc(var(--header-h, 72px) + 24px); }
.legal-text > section + section {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.legal-text h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
.legal-num { color: var(--dove); font-size: 0.8em; font-variant-numeric: tabular-nums; }
.legal-text h3 { font-size: var(--fs-body); }
.legal-text p,
.legal-text ul,
.legal-text address,
.legal-text .legal-table-wrap,
.legal-text .legal-callout { margin-top: 16px; }
.legal-text ul { display: grid; gap: 6px; padding-left: 22px; }
.legal-text li::marker { color: var(--dove); }
.legal-text p, .legal-text li { line-height: 1.7; }

.legal-callout {
  padding: 20px 24px;
  background: var(--white);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r-btn) var(--r-btn) 0;
}
.legal-callout h3 { margin: 0; }
.legal-callout p { margin-top: 8px; }

.legal-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-btn); background: var(--white); }
.legal-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.legal-table th, .legal-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.legal-table th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); }
.legal-table code { font-size: 0.95em; color: var(--navy); }

.legal-inline-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 900px) {
  .legal-doc { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
}

/* Platzhalter für Rechtstexte (Impressum, Datenschutz) */
.ph-img--legal {
  margin-top: 32px;
  min-height: 240px;
}

/* ----- Gemeinsame Bausteine ----- */
.btn--lg {
  min-height: 56px;
  padding: 15px 28px;
  font-size: 1.0625rem;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .lead { margin-top: 20px; }

/* Platzhalter für Sektionen, deren Inhalt neu geschrieben wird (feste Höhe) */
.placeholder {
  height: 320px;
  display: grid;
  place-items: center;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-card);
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 560px) {
  .placeholder { height: 240px; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.3;
}
.chip--sun {
  background: var(--sun);
  color: var(--navy);
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--dove);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
}

/* ==========================================================================
   1. Hero – Navy, Multi-Device-Shot, HeyOptero-Mic auf dem Handy
      (Abweichung von CLAUDE.md auf Wunsch von Christian, 05.10.2026:
       Violett auch für die Schlagworte im Hero, Animation im Hero erlaubt)
   ========================================================================== */
.section--hero {
  display: flex;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 1px); /* Header (72 px + 1 px Linie) + Hero füllen genau einen Bildschirm (Wunsch Christian, 18.10.2026) */
  min-height: calc(100svh - var(--header-h) - 1px); /* mobil: ohne die ein-/ausfahrende Browserleiste */
  padding-block: clamp(24px, 3.5vw, 48px) clamp(48px, 5.5vw, 80px);
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  color: var(--white);
  overflow-x: clip; /* Glow darf nicht horizontal scrollen lassen */
}
.section--hero > .container { width: 100%; }

/* Hintergrund: Punkteraster (Wunsch Christian, 05.10.2026 – ersetzt Millimeterpapier und Bauplan).
   Gilt für Hero und Kundenstimmen; Stärke über --dots-base / --dots-glow.
   ::before = ruhiges Raster, zu den Rändern auslaufend.
   ::after  = leicht violette Punkte, nur in einem weichen Lichtkegel sichtbar,
              der langsam über das Raster wandert („KI arbeitet“). */
.section--hero {
  --dots-base: 0.06;  /* Hero: noch subtiler (Wunsch Christian, 06.10.2026) */
  --dots-glow: 0.26;
  position: relative;
  isolation: isolate;
}
.section--hero::before,
.section--hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-size: 22px 22px;
  background-position: 11px 11px;
}
.section--hero::before {
  background-image: radial-gradient(circle, rgb(255 255 255 / var(--dots-base)) 1px, transparent 1.6px);
  -webkit-mask-image: radial-gradient(ellipse 80% 85% at 55% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 85% at 55% 50%, #000 30%, transparent 85%);
}
.section--hero::after {
  background-image: radial-gradient(circle, rgb(196 182 236 / var(--dots-glow)) 1.1px, transparent 1.7px);
  -webkit-mask-image: radial-gradient(circle closest-side, #000, transparent);
  mask-image: radial-gradient(circle closest-side, #000, transparent);
  -webkit-mask-size: 520px 520px;
  mask-size: 520px 520px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 20% 30%;
  mask-position: 20% 30%;
  animation: dotSweep 16s ease-in-out infinite alternate;
}
@keyframes dotSweep {
  0%   { -webkit-mask-position: 15% 25%; mask-position: 15% 25%; }
  35%  { -webkit-mask-position: 55% 75%; mask-position: 55% 75%; }
  70%  { -webkit-mask-position: 85% 30%; mask-position: 85% 30%; }
  100% { -webkit-mask-position: 65% 60%; mask-position: 65% 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .section--hero::after { animation: none; -webkit-mask-position: 70% 45%; mask-position: 70% 45%; }
}

/* Hallenfoto hinter dem Hero (Wunsch Christian, 30.10.2026: „Tiefe“).
   Foto wird über mix-blend luminosity in Navy eingefärbt (nur seine Helligkeit bleibt),
   darüber Verläufe: links satt Navy für die H1, rechts schimmert die Halle durch,
   unten läuft alles vollständig ins Navy aus. Punkteraster liegt weiter obenauf. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--navy-deep);
  pointer-events: none;
}
.hero__bg img {
  /* breiter als der Hero und nach links versetzt: die Säge rückt aus dem
     Geräte-Shot in die Lücke neben der H1 */
  position: absolute;
  top: 0;
  left: -19%;
  width: 128%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  mix-blend-mode: luminosity;
  opacity: var(--hero-bg-op, 0.55);
  transform: scale(1.06);
  animation: heroBgIn 2.4s var(--ease-soft, ease-out) both;
}
@keyframes heroBgIn {
  from { opacity: 0; transform: scale(1.12); }
  to   { opacity: var(--hero-bg-op, 0.55); transform: scale(1.06); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgb(2 31 65 / 0.55) 0%, rgb(2 31 65 / 0) 22%, rgb(2 31 65 / 0) 55%, var(--navy-deep) 100%),
    linear-gradient(90deg, var(--navy-deep) 0%, rgb(2 31 65 / 0.88) 30%, rgb(2 31 65 / 0.45) 62%, rgb(2 31 65 / 0.25) 100%);
}
@media (max-width: 900px) {
  /* gestapelt: Halle oben hinter der H1, nach unten zu den Geräten hin ausblenden */
  .hero__bg img { left: 0; width: 100%; object-position: 50% 30%; }
  .hero__bg::after {
    background: linear-gradient(to bottom, rgb(2 31 65 / 0.6) 0%, rgb(2 31 65 / 0.75) 35%, var(--navy-deep) 70%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg img { animation: none; }
}
/* Startseite: Foto sichtbarer, blauer Schleier schwächer (Wunsch Christian, 05.11.2026). */
.section--hero { --hero-bg-op: 0.64; }
@media (min-width: 901px) {
  .section--hero .hero__bg::after {
    background:
      linear-gradient(to bottom, rgb(2 31 65 / 0.4) 0%, rgb(2 31 65 / 0) 22%, rgb(2 31 65 / 0) 60%, var(--navy-deep) 100%),
      linear-gradient(90deg, var(--navy-deep) 0%, rgb(2 31 65 / 0.8) 30%, rgb(2 31 65 / 0.3) 62%, rgb(2 31 65 / 0.1) 100%);
  }
}
@media (max-width: 900px) {
  .section--hero .hero__bg::after {
    background: linear-gradient(to bottom, rgb(2 31 65 / 0.45) 0%, rgb(2 31 65 / 0.62) 35%, var(--navy-deep) 72%);
  }
}

.hero__grid {
  display: grid;
  /* Geräte-Shot bekam mehr Platz (1fr / 1.1fr, Wunsch Christian, 12.10.2026);
     seit 10.11.2026 wieder 1 : 1, damit die längere H1 größer bleiben kann (Wunsch Christian) */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

/* Textspalte als Container: Die H1-Größe richtet sich auch nach ihrer Breite (cqi) */
.hero__copy { container-type: inline-size; }
.section--hero h1 {
  color: var(--white);
  /* höchstens 4 Zeilen für „Die smarte Infrastruktur …“ (Wunsch Christian, 10.11.2026):
     ab ca. 9.5cqi bricht sie in 5 Zeilen um, 9.4cqi lässt etwas Reserve; sonst wie bisher */
  font-size: min(clamp(2.375rem, 1.9rem + 1.8vw, 3.5rem), 9.4cqi);
  line-height: 1.28;
}

/* Schlagworte als violette Markierung */
.hl {
  /* inline-block mit eigener Zeilenhöhe: die Fläche ist niedriger als die Zeile,
     so bleibt zwischen Markierungen in aufeinanderfolgenden Zeilen Luft */
  display: inline-block;
  padding: 0.04em 0.14em 0.1em;
  border-radius: 0.14em;
  background: var(--violet);
  color: var(--white);
  line-height: 1;
}

/* Subclaim unter der H1 (Wunsch Christian, 04.11.2026) */
.hero__sub {
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.3;
  color: rgb(255 255 255 / 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  margin-top: 36px;
}
.section--hero .link { color: var(--white); }
.section--hero :focus-visible { outline-color: var(--white); }

/* schmaler Desktop: H1 braucht mehr Breite, sonst bricht „Baustoffhandel“ um */
@media (max-width: 1150px) {
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .section--hero { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; }
  .devices { justify-self: center; max-width: 520px; }
}

/* ----- Multi-Device-Shot -----
   Alle Maße relativ zur Breite des Shots (cqw), damit er stufenlos skaliert. */
.devices {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  justify-self: end;
  width: 100%;
  max-width: 530px; /* 600 → 530 (Wunsch Christian, 18.10.2026: „kleiner“); 480 war zu klein, 720 zu groß */
  aspect-ratio: 1 / 0.78;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 1.35cqw;
  line-height: 1.35;
}
.devices svg { display: block; flex: none; }
/* Violetter Glow hinter den Geräten (Wunsch Christian, 05.10.2026 – Abweichung von „keine Glow-Effekte“) */
.devices::before {
  content: "";
  position: absolute;
  inset: -12% -14% -16% -8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(124 92 191 / 0.95), rgb(124 92 191 / 0.45) 50%, transparent 100%);
  filter: blur(5cqw);
}

/* Monitor (Web-App) – Größenverhältnisse angenähert: Monitor 88 %, Tablet 45 %, Handy 17.5 % der Shot-Breite */
.dev-monitor {
  position: absolute;
  top: 0;
  left: 6%;
  width: 88%;
}
.dev-monitor__screen {
  aspect-ratio: 16 / 10;
  padding: 1.1cqw;
  border-radius: 2.2cqw;
  background: #E7ECF2;
}
.dev-monitor__neck {
  width: 13%;
  height: 6cqw;
  margin: 0 auto;
  background: #C9D3DE;
}
.dev-monitor__foot {
  width: 30%;
  height: 1.2cqw;
  margin: 0 auto;
  border-radius: 1cqw 1cqw 0.4cqw 0.4cqw;
  background: #DCE4EC;
}

/* Web-App im Monitor: Nachbau von „Mein Betrieb“ (Dashboard der echten App) mit Beispieldaten.
   Farben wie in der App: Sidebar/Text #1a2332, Flächen #F0F3F7, Linien #D9E1EA */
.web {
  --app-navy: #1a2332;
  --app-line: #D9E1EA;
  --app-mute: #64798F;
  display: grid;
  grid-template-columns: 14.49cqw minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: 1.38cqw;
  background: #F8FAFC;
  color: var(--app-navy);
  font-size: 1.15cqw;
  line-height: 1.3;
}
.web b, .web strong { font-weight: 600; }
.web small { display: block; font-size: inherit; }
.web i, .web em { font-style: normal; }

.web__side {
  display: flex;
  flex-direction: column;
  gap: 1.49cqw;
  padding: 1.84cqw 0.8cqw;
  background: var(--app-navy);
}
.web__brand {
  padding: 0.23cqw 0.69cqw 0;
  color: var(--dove);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.99cqw;
  letter-spacing: -0.03em;
  line-height: 1;
}
.web__nav { display: flex; flex-direction: column; gap: 0.17cqw; }
.web__group {
  padding: 0 0.8cqw 0.34cqw;
  color: rgb(255 255 255 / 0.4);
  font-size: 0.83cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.web__item {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  height: 2.53cqw;
  padding: 0 0.8cqw;
  border-radius: 0.69cqw;
  color: rgb(255 255 255 / 0.6);
  font-size: 1.24cqw;
  font-weight: 500;
  white-space: nowrap;
}
.web__item svg { width: 1.55cqw; height: 1.55cqw; }
.web__item.is-active { background: rgb(255 255 255 / 0.2); color: var(--white); }
.web__badge {
  display: grid;
  place-items: center;
  min-width: 1.61cqw;
  height: 1.61cqw;
  margin-left: auto;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: var(--white);
  font-size: 0.94cqw;
  line-height: 1;
}

.web__main {
  display: flex;
  flex-direction: column;
  gap: 1.15cqw;
  min-width: 0;
  overflow: hidden;
  padding: 1.6cqw 1.6cqw 0;
  background: #F4F6FA;
  /* unten ausblenden: das Raster läuft wie in der App weiter */
  -webkit-mask-image: linear-gradient(#000 78%, transparent 99%);
          mask-image: linear-gradient(#000 78%, transparent 99%);
}

/* Neues Dashboard (28.10.2026): Begrüßung + „Anpassen“, darunter Widgets im 12er-Raster.
   Schemenhaft: Werte als Platzhalter-Balken (.web__sk), keine Zahlen. */
.web__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1cqw; }
.web__greet { font-family: var(--font-display); font-size: 2.07cqw; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; }
.web__adj {
  display: inline-flex;
  align-items: center;
  gap: 0.5cqw;
  padding: 0.6cqw 1cqw;
  border: 1px solid var(--app-line);
  border-radius: 0.7cqw;
  background: var(--white);
  font-size: 0.95cqw;
  font-weight: 600;
  white-space: nowrap;
}
.web__adj svg { width: 1.05cqw; height: 1.05cqw; color: var(--dove); }

.web__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 4.3cqw;
  gap: 0.95cqw;
}
.web__w {
  position: relative;
  grid-column: var(--x) / span var(--w);
  grid-row: var(--y) / span var(--h);
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
  min-width: 0;
  padding: 1cqw 1.05cqw;
  overflow: hidden;
  border-radius: 1cqw;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(26 35 50 / 0.04), 0 0.6cqw 1.6cqw -0.8cqw rgb(26 35 50 / 0.16);
}
.web__sk { display: block; width: var(--sw, 60%); height: 0.62cqw; border-radius: 0.31cqw; background: #E6EBF1; }
.web__sk--big { height: 1.3cqw; margin-top: auto; border-radius: 0.4cqw; background: #D5DDE6; }

.web__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 0.5cqw; min-width: 0; }
.web__top b { overflow: hidden; font-size: 1.02cqw; text-overflow: ellipsis; white-space: nowrap; }

/* Icon-Kacheln mit Verlauf wie in der App (CI_VERLAUF) – Violett bleibt HeyOptero vorbehalten */
.web__ic { flex: none; display: grid; place-items: center; width: 2cqw; height: 2cqw; border-radius: 0.6cqw; color: var(--white); }
.web__ic svg { width: 1.1cqw; height: 1.1cqw; }
.web__ic--navy  { background: linear-gradient(135deg, #1a2332, #2A3A55 55%, #3E5A7E); }
.web__ic--dove  { background: linear-gradient(135deg, #3F6F8F, #5E8FAE 55%, #86AECA); }
.web__ic--slate { background: linear-gradient(135deg, #2F4C72, #4A6E96 55%, #6390B6); }
.web__ic--ink   { background: linear-gradient(135deg, #1a2332, #344052 55%, #5F6877); }
.web__ic--sun   { background: linear-gradient(135deg, #E2C25A, #EED77E 55%, #F7EDAF); color: var(--app-navy); }

/* Datum + fünf Stufen des Auftragsflusses */
.web__date { gap: 0.2cqw; }
.web__date small { color: var(--dove); font-size: 0.78cqw; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.web__date b { font-family: var(--font-display); font-size: 3.4cqw; font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }
.web__date .web__sk { margin-top: auto; }

/* Donuts */
.web__chart { gap: 0.9cqw; }
.web__donut { flex: none; width: 11.6cqw; height: 11.6cqw; margin: auto; }
.web__donut circle { fill: none; stroke-width: 5.5; }
.web__leg { display: grid; gap: 0.7cqw; }
.web__leg > span { display: flex; align-items: center; gap: 0.6cqw; }
.web__leg i { flex: none; width: 0.7cqw; height: 0.7cqw; border-radius: 50%; }

/* Wetter: jetzt + 6 Tage */
.web__wet { flex-direction: row; align-items: center; gap: 1.2cqw; background: linear-gradient(135deg, #FFFFFF, #EEF4F9); }
.web__wet-now { display: flex; align-items: center; gap: 0.5cqw; }
.web__wet-now svg { width: 2.3cqw; height: 2.3cqw; color: #E2B93B; }
.web__wet-now b { font-family: var(--font-display); font-size: 2.3cqw; font-weight: 600; line-height: 1; }
.web__wet-days { flex: 1; display: flex; justify-content: space-between; gap: 0.4cqw; }
.web__wet-days i { display: grid; justify-items: center; gap: 0.35cqw; }
.web__wet-days i::before { content: ""; width: 1.05cqw; height: 1.05cqw; border-radius: 50%; background: #F2DE8C; }
.web__wet-days i:nth-child(3n)::before { background: #C9D6E2; }
.web__wet-days i::after { content: ""; width: 1.3cqw; height: 0.5cqw; border-radius: 0.25cqw; background: #D5DDE6; }

/* To-dos */
.web__check { display: flex; align-items: center; gap: 0.6cqw; }
.web__check i { flex: none; width: 1cqw; height: 1cqw; border: 0.17cqw solid #B8C5D3; border-radius: 0.3cqw; }
.web__check.is-done i { border-color: var(--app-navy); background: var(--app-navy); }
.web__check.is-done .web__sk { opacity: 0.55; }

/* Kommunikation / Aktivitäten */
.web__list { gap: 0.9cqw; }
.web__row { display: flex; align-items: center; gap: 0.7cqw; }
.web__row i { flex: none; display: grid; place-items: center; width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #E6EEF4; }
.web__row--ai i { background: rgb(124 92 191 / 0.12); color: var(--violet); }
.web__row--ai svg { width: 1.05cqw; height: 1.05cqw; }

/* Einmaliger Aufbau wie in der App (optero-reveal): Widgets steigen gestaffelt auf, Donut-Bögen zeichnen sich */
@keyframes webIn { from { opacity: 0; transform: translateY(0.8cqw) scale(0.98); } }
@keyframes webArc { from { stroke-dasharray: 0 100; } }
@media (prefers-reduced-motion: no-preference) {
  .devices.is-in .web__w { animation: webIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(0.3s + var(--i) * 60ms) both; }
  .devices.is-in .web__arc { animation: webArc 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.8s both; }
  .js .devices:not(.is-in) .web__w { opacity: 0; }
}

/* Tablet (Plantafel) mit KI-Optimierung als Animation:
   „Verfugen“ rückt in eine freie Lücke, KI-Sternchen zeigen die smarte Planung.
   Aufbau wie die Plantafeln in der Scroll-Story und den Kern-Funktionen (Wunsch Christian, 05.11.2026). */
.dev-tablet {
  position: absolute;
  left: 0;
  bottom: 0; /* schließt unten bündig mit dem Handy ab (Wunsch Christian, 05.11.2026) */
  width: 45%;
  aspect-ratio: 45 / 30.56;
  display: flex;
  padding: 1.03cqw 2.7cqw;
  border-radius: 2.2cqw;
  background: #E7ECF2;
  box-shadow: 0 0 0 1px rgb(28 53 87 / 0.08);
}
/* Als iPad erkennbar (Wunsch Christian, 05.11.2026): quer gehalten, Kamera an der einen kurzen Seite, Home-Button an der anderen */
.dev-tablet::before,
.dev-tablet::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  border-radius: 50%;
}
.dev-tablet::before {
  left: 1.1cqw;
  width: 0.5cqw;
  height: 0.5cqw;
  background: #A9B6C5;
}
.dev-tablet::after {
  right: 0.4cqw;
  width: 1.9cqw;
  height: 1.9cqw;
  background: #F1F4F8;
  box-shadow: inset 0 0 0 0.14cqw #A9B6C5;
}
.dev-tablet .plan { flex: 1; min-width: 0; height: auto; }
.plan {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 1cqw 1.1cqw 1.1cqw;
  border-radius: 1cqw;
  background: var(--white);
}
.plan__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6cqw;
  margin-bottom: 0.6cqw;
  white-space: nowrap;
}
.plan__title {
  display: flex;
  align-items: center;
  gap: 0.4cqw;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3cqw;
}
.plan__title svg {
  width: 1.2cqw;
  height: 1.2cqw;
  color: var(--violet);
  animation: twinkle 2.4s ease-in-out infinite;
}
.plan__kw {
  display: flex;
  align-items: center;
  gap: 0.2cqw;
  color: var(--muted);
  font-size: 0.68cqw;
}
.plan__kw svg { width: 0.75cqw; height: 0.75cqw; }
.plan__add {
  padding: 0.22cqw 0.55cqw;
  border-radius: 0.35cqw;
  background: var(--navy);
  color: var(--white);
  font-size: 0.62cqw;
  font-weight: 600;
}
/* Auf dem Handy wäre die Schrift im Knopf kleiner als 3 px und sitzt nicht mehr sauber darin */
@container (max-width: 420px) {
  .plan__add { display: none; }
}
.plan__grid {
  --gx: 0.18cqw; /* Spaltenabstand – auch für die Verschiebe-Animation */
  --gy: 0.3cqw; /* Zeilenabstand */
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 4.9cqw repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(4, minmax(0, 1fr)) auto minmax(0, 1fr);
  gap: var(--gy) var(--gx);
}
.plan__day {
  grid-column: var(--c);
  grid-row: 1;
  font-size: 0.58cqw;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.plan__sec {
  grid-column: 1 / -1;
  grid-row: var(--r);
  display: flex;
  align-items: center;
  gap: 0.25cqw;
  padding: 0.12cqw 0.3cqw;
  border-radius: 0.22cqw;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.56cqw;
  font-weight: 600;
  line-height: 1.2;
}
.plan__sec svg { width: 0.66cqw; height: 0.66cqw; }
.plan__who {
  grid-column: 1;
  grid-row: var(--r);
  display: flex;
  align-items: center;
  gap: 0.25cqw;
  min-width: 0;
  font-size: 0.6cqw;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.plan__who > i {
  flex: none;
  width: 0.36cqw;
  height: 0.36cqw;
  border-radius: 50%;
  background: var(--dove);
}
.plan__who > span { min-width: 0; line-height: 1.4; }
.plan__who small { display: block; color: var(--muted); font-size: 0.5cqw; font-weight: 400; }
/* Spur einer Zeile: zeigt freie Tage als leere Felder */
.plan__track {
  grid-column: 2 / -1;
  grid-row: var(--r);
  border-radius: 0.3cqw;
  background-color: var(--paper);
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: 20% 100%;
}
/* Position über Custom Properties: --c Startspalte, --s Breite, --r Zeile */
.plan__job,
.plan__slot {
  grid-column: var(--c) / span var(--s, 1);
  grid-row: var(--r);
  min-width: 0;
  border-radius: 0.3cqw;
}
.plan__job {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.35cqw;
  background: #DBE7F0;
  border-left: 0.2cqw solid var(--dove);
  font-size: 0.62cqw;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.plan__job b, .plan__job small { display: block; line-height: 1.4; }
.plan__job b { font-weight: 600; }
.plan__job small { font-size: 0.52cqw; font-weight: 400; opacity: 0.8; }
.plan__job--main { background: var(--navy); border-left-color: var(--navy); color: var(--white); }
.plan__job--sun { background: #FBF6DA; border-left-color: #E2CF63; }
/* Abwesenheit wie in den anderen Plantafeln: schraffierte Fläche statt Einsatz */
.plan__job--off {
  align-items: center;
  border-left: 0;
  background: repeating-linear-gradient(135deg, var(--paper) 0 0.2cqw, #E2E8EE 0.2cqw 0.4cqw);
  color: var(--muted);
  font-size: 0.56cqw;
  font-weight: 500;
}

/* freie Lücke, in die die KI den Einsatz schiebt */
.plan__slot {
  border: 1px dashed transparent;
  animation: planSlot 11s ease-in-out infinite;
}

/* der Einsatz, der verschoben wird: eine Spalte nach links, zwei Zeilen nach oben */
.plan__job--move {
  overflow: visible;
  animation: planMove 11s cubic-bezier(.6, 0, .25, 1) infinite;
}
.plan__spark {
  position: absolute;
  right: -0.55cqw;
  top: -0.6cqw;
  width: 1.3cqw;
  height: 1.3cqw;
  color: transparent;
  animation: planSpark 11s ease-in-out infinite;
}

@keyframes planMove {
  /* Schritt 1 – „Verfugen“: 0–6 % Ausgangslage · 8–26 % KI wählt aus · 26–38 % Verschieben */
  0%, 6%   { transform: none; background: #DBE7F0; border-left-color: var(--dove); opacity: 1; }
  9%, 26%  { transform: none; background: #DBE7F0; border-left-color: var(--violet); opacity: 1; }
  38%, 86% { transform: translate(calc(-100% - var(--gx)), calc(-200% - 2 * var(--gy))); background: #EEE9F7; border-left-color: var(--violet); opacity: 1; }
  93%      { transform: translate(calc(-100% - var(--gx)), calc(-200% - 2 * var(--gy))); opacity: 0; }
  94%      { transform: none; opacity: 0; background: #DBE7F0; border-left-color: var(--dove); }
  100%     { transform: none; opacity: 1; }
}
@keyframes planSlot {
  0%, 14%   { border-color: transparent; background: transparent; }
  19%, 36%  { border-color: var(--violet); background: rgb(124 92 191 / 0.06); }
  40%, 100% { border-color: transparent; background: transparent; }
}
@keyframes planSpark {
  /* Sterne erscheinen VOR dem Verschieben (KI arbeitet), funkeln, wandern dann mit */
  0%, 5%    { color: transparent; transform: scale(0.4) rotate(-20deg); }
  9%        { color: var(--violet); transform: scale(1.25) rotate(0); }
  13%       { color: var(--violet); transform: scale(0.85) rotate(10deg); }
  17%       { color: var(--violet); transform: scale(1.2) rotate(-6deg); }
  21%       { color: var(--violet); transform: scale(0.9) rotate(6deg); }
  25%, 86%  { color: var(--violet); transform: scale(1) rotate(0); }
  90%, 100% { color: transparent; transform: scale(0.6); }
}
/* Schritt 2: Sobald Freitag bei LS frei ist, rückt „Abdichtung“ nach rechts (Do–Fr) */
.plan__job--move2 {
  overflow: visible;
  animation: planMove2 11s cubic-bezier(.6, 0, .25, 1) infinite;
}
.plan__slot--2 { animation-name: planSlot2; }
.plan__spark--2 { animation-name: planSpark2; }

@keyframes planMove2 {
  0%, 42%  { transform: none; background: #DBE7F0; border-left-color: var(--dove); opacity: 1; }
  45%, 58% { transform: none; background: #DBE7F0; border-left-color: var(--violet); opacity: 1; }
  70%, 86% { transform: translateX(calc(150% + 1.5 * var(--gx))); background: #EEE9F7; border-left-color: var(--violet); opacity: 1; }
  93%      { transform: translateX(calc(150% + 1.5 * var(--gx))); opacity: 0; }
  94%      { transform: none; opacity: 0; background: #DBE7F0; border-left-color: var(--dove); }
  100%     { transform: none; opacity: 1; }
}
@keyframes planSlot2 {
  0%, 48%   { border-color: transparent; background: transparent; }
  52%, 68%  { border-color: var(--violet); background: rgb(124 92 191 / 0.06); }
  72%, 100% { border-color: transparent; background: transparent; }
}
@keyframes planSpark2 {
  0%, 41%   { color: transparent; transform: scale(0.4) rotate(-20deg); }
  45%       { color: var(--violet); transform: scale(1.25) rotate(0); }
  49%       { color: var(--violet); transform: scale(0.85) rotate(10deg); }
  53%       { color: var(--violet); transform: scale(1.2) rotate(-6deg); }
  57%, 86%  { color: var(--violet); transform: scale(1) rotate(0); }
  90%, 100% { color: transparent; transform: scale(0.6); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0); opacity: 1; }
  50%      { transform: scale(0.75) rotate(12deg); opacity: 0.6; }
}

@media (prefers-reduced-motion: reduce) {
  /* Endzustand zeigen: Einsatz liegt in der Lücke, Sternchen sichtbar */
  .plan__title svg, .plan__slot, .plan__job--move, .plan__job--move2, .plan__spark { animation: none; }
  .plan__job--move2 { transform: translateX(calc(150% + 1.5 * var(--gx))); background: #EEE9F7; border-left-color: var(--violet); }
  .plan__job--move { transform: translate(calc(-100% - var(--gx)), calc(-200% - 2 * var(--gy))); background: #EEE9F7; border-left-color: var(--violet); }
  .plan__spark { color: var(--violet); }
}

/* Handy = native iOS-App HeyOptero (SwiftUI, heyoptero-ios), Tab „Erfassen“ bei laufender Aufnahme.
   Maße aus der App (pt) auf die Handybreite umgerechnet: 1 pt ≈ 0.042cqw. */
.dev-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 17.5%;
  aspect-ratio: 9 / 19;
  padding: 0.6cqw;
  border-radius: 2.78cqw;
  background: #E7ECF2;
  box-shadow: 0 0 0 1px rgb(28 53 87 / 0.08);
}
.ios {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.23cqw;
  background: #F2F2F7; /* systemGroupedBackground */
}
/* Navy-Kopf mit Wortmarke (OpteroKopf) */
.ios__bar {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.3cqw;
  padding-top: 2.3cqw;
  background: var(--navy);
}
.ios__island {
  position: absolute;
  left: 50%;
  top: 0.5cqw;
  transform: translateX(-50%);
  width: 4.6cqw;
  height: 1.3cqw;
  border-radius: 1cqw;
  background: #060B14;
}
.ios__brand { color: var(--dove); font-family: var(--font-display); font-size: 0.9cqw; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.ios__me { position: absolute; right: 0.8cqw; bottom: 0.45cqw; width: 0.95cqw; height: 0.95cqw; color: rgb(255 255 255 / 0.7); }

.ios__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 0 1cqw;
}
/* Aufnahmeknopf: 144 pt, rot während der Aufnahme, Pause-Symbol, Pulsringe */
.ios__mic {
  position: relative;
  display: grid;
  place-items: center;
  width: 6cqw;
  height: 6cqw;
  margin-bottom: 1.3cqw;
  border-radius: 50%;
  background: #FF3B30;
  color: var(--white);
  box-shadow: 0 0.35cqw 0.7cqw rgb(0 0 0 / 0.18);
  transform: scale(1.05);
}
.ios__mic svg { position: relative; width: 2cqw; height: 2cqw; }
.ios__mic i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgb(255 59 48 / 0.2);
  animation: iosPulse 1.2s ease-out infinite;
}
.ios__mic i + i { background: rgb(255 59 48 / 0.12); animation-name: iosPulse2; }
@keyframes iosPulse  { from { transform: scale(1); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
@keyframes iosPulse2 { from { transform: scale(1); opacity: 1; } to { transform: scale(1.75); opacity: 0; } }

.ios__state { color: #FF3B30; font-size: 0.72cqw; font-weight: 600; line-height: 1.2; }
.ios__time { margin-top: 0.15cqw; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.65cqw; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ios__hint { width: 3.6cqw; height: 0.32cqw; margin-top: 0.3cqw; border-radius: 0.2cqw; background: #C7C7CC; }

/* Live-Text als Karte – schemenhaft: Zeilen kommen beim Sprechen nacheinander dazu */
.ios__card {
  display: grid;
  align-content: start;
  gap: 0.36cqw;
  width: 100%;
  min-height: 3.3cqw;
  margin-top: 1.3cqw;
  padding: 0.67cqw;
  border-radius: 0.59cqw;
  background: var(--white);
}
.ios__card i {
  display: block;
  width: var(--sw);
  height: 0.34cqw;
  border-radius: 0.2cqw;
  background: #3A4A5E;
  transform-origin: left;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}
.ios.is-live .ios__card i:not(.is-on) { transform: scaleX(0); opacity: 0; }

.ios__done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3cqw;
  width: 100%;
  height: 2.09cqw;
  margin-top: 1.3cqw;
  border-radius: 0.59cqw;
  background: var(--navy);
  color: var(--white);
  font-size: 0.72cqw;
  font-weight: 600;
}
.ios__done svg { width: 0.75cqw; height: 0.75cqw; }

/* Tab-Leiste: Erfassen · Projekte · Aufmaß · Chat */
.ios__tabs {
  flex: none;
  display: flex;
  justify-content: space-around;
  height: 3.5cqw;
  padding: 0.5cqw 0.6cqw 0;
  border-top: 1px solid rgb(60 60 67 / 0.12);
  background: rgb(249 249 249 / 0.94);
  color: #999;
  position: relative;
}
.ios__tabs svg { width: 1.05cqw; height: 1.05cqw; }
.ios__tabs .is-active { color: var(--navy); }
.ios__tabs::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.4cqw;
  transform: translateX(-50%);
  width: 5.6cqw;
  height: 0.22cqw;
  border-radius: 0.2cqw;
  background: #1C1C1E;
}

@media (prefers-reduced-motion: reduce) {
  .ios__mic i { animation: none; opacity: 0; }
}

/* Teile aus dem App-Nachbau, die die Händler-Sektion (Sektion 8) weiter nutzt */
.app__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.app__head svg { color: var(--dove); }
.app__line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dashed #E3E9EF;
}
.app__ld {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.app__lm {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.app__ls {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.app__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid var(--dove);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 600;
  color: var(--dove);
  vertical-align: 1px;
}

/* ==========================================================================
   2. Scroll-Story „Eine Software, die mitdenkt.“
      .is-live (Desktop): Text links scrollt normal, .story__pin rechts ist sticky;
        js/main.js setzt Deckkraft/Transform der Bühnenteile passend zum Scrollstand.
      .is-static (≤ 900 px oder reduzierte Bewegung): Stationen untereinander,
        jede mit eigenem Standbild der Bühne (.st-stage--snap, von JS geklont).
      Ohne JS: Text + eine Bühne mit dem Dashboard.
   ========================================================================== */
#alltag { overflow-x: clip; } /* große Dokumente im Anflug erzeugen keinen Seiten-Scroll */

/* Pfeil zum Überspringen (Wunsch Christian, 01.11.2026): steht am unteren Bildschirmrand, solange #alltag im Bild ist.
   Sticky statt JS, liegt auf Desktop in der Lücke unter der Bühne (.story__pin). */
.story-skip {
  position: sticky;
  top: calc(100vh - 52px);
  top: calc(100svh - 52px);
  z-index: 5;
  display: flex;
  justify-content: center;
  height: 0;
  pointer-events: none;
}
.story-skip__link {
  display: grid;
  place-items: center;
  flex: none;
  width: 88px;
  height: 36px;
  border-radius: var(--r-pill);
  color: var(--navy);
  pointer-events: auto;
  transition: opacity 0.3s ease, visibility 0.3s;
}
/* Story zu Ende, Sektion scrollt nach oben (js/main.js setzt .is-done) */
.story-skip.is-done .story-skip__link { opacity: 0; visibility: hidden; }
.story-skip__link svg { opacity: 0.6; transition: opacity 0.2s ease; }
.story-skip__link:hover svg { opacity: 1; animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .story-skip__link svg { animation: storySkipPulse 2.4s ease-in-out infinite; }
}
@keyframes storySkipPulse {
  0%, 100% { opacity: 0.4; transform: translateY(-2px); }
  50%      { opacity: 0.9; transform: translateY(2px); }
}
/* Stationen untereinander: Der Pfeil liegt über dem Inhalt, braucht also einen ruhigen Grund */
@media (max-width: 900px), (prefers-reduced-motion: reduce) {
  .story-skip { top: calc(100vh - 68px); top: calc(100svh - 68px); }
  .story-skip__link {
    height: 40px;
    background: rgb(244 247 250 / 0.85);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }
}
.story {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 5vw, 80px);
}

/* Auftakt über die volle Breite, mittig. Desktop (.is-live): liegt über Text- und Bühnenspalte,
   bleibt in der Lage der Bühne stehen (sticky) und wird von js/main.js beim Scrollen weich ausgeblendet.
   .story__intro ist nur der Platzhalter für Story-Position t = 0 (gleiche Höhe wie .story__pin). */
.story__opener { grid-column: 1 / -1; pointer-events: none; }
.story__opener-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: clamp(48px, 7vw, 72px);
  will-change: opacity, transform, filter;
}
.story__headline {
  max-width: 16ch;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.story__opener .lead { max-width: 44ch; margin-top: 24px; text-wrap: balance; }
.story__intro-text { max-width: 46ch; margin-top: 14px; font-weight: 500; text-wrap: balance; }
.story__intro { display: none; }

.story.is-live .story__opener,
.story.is-live .story__steps,
.story.is-live .story__aside { grid-row: 1; }
.story.is-live .story__steps { grid-column: 1; }
.story.is-live .story__aside { grid-column: 2; }
.story.is-live .story__opener { position: relative; z-index: 2; }
.story.is-live .story__opener-in {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  justify-content: center;
  height: min(720px, calc(100vh - var(--header-h) - 48px));
  padding-bottom: 48px; /* gleiche Mitte wie das App-Fenster */
}
.story.is-live .story__intro { display: block; height: min(720px, calc(100vh - var(--header-h) - 48px)); }
/* Reihenfolge strikt nacheinander: Auftakt aus → Handy ein → Text der ersten Station */
.story.is-opening #story-1 { opacity: 0; }
.story.is-opening .story__nav { opacity: 0; transform: translateY(8px); }

.story__step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 135vh;
  padding-block: 40px;
  transition: opacity 0.7s var(--ease-soft);
}
/* Die min-heights hier gelten nur ohne JS – im Live-Modus setzt js/main.js die Höhen aus STORY_PACE */
.story__step--lock { justify-content: flex-start; min-height: 240vh; padding-block: 0; } /* letzte Station: Text bleibt mittig stehen, bis die Sektion endet */
/* Lange Stationen: Text bleibt stehen (sticky), während die Bühne die Abfolge zeigt */
.story__step--long { justify-content: flex-start; min-height: 340vh; }
#story-2.story__step--long { min-height: 420vh; padding-block: 0; }
/* gleiche Lage wie .story__pin → Text und Bühne teilen dieselbe Mitte und lösen sich gleichzeitig */
.story__stick {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: min(720px, calc(100vh - var(--header-h) - 48px));
  padding-bottom: 48px; /* Punkte-Navigation unter der Bühne (28 px + 20 px Abstand) → gleiche Mitte wie das Fenster */
}
.story.is-live .story__step { justify-content: flex-start; padding-block: 0; } /* jeder Text bleibt während seiner Szenen stehen (.story__stick) */
.story.is-live .story__step:not(.is-current) { opacity: 0.18; }
.story__title,
.story__sub {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3.25rem);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.story__sub { color: var(--muted); }
.story__text { max-width: 36ch; margin-top: 20px; color: var(--muted); font-size: var(--fs-lead); text-wrap: pretty; }
.story__cta { align-self: flex-start; margin-top: 32px; }

.story__pin {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: calc(100vh - var(--header-h) - 48px);
  max-height: 720px;
}
.st-stage { flex: 0 1 520px; min-height: 0; }

/* Fortschritt als Punkte (aktiv = gestreckter Balken) */
.story__nav {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 2px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease-soft);
}
.story__nav.glass { --glass-bg: rgb(255 255 255 / 0.6); }
.story__nav button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.story__nav button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: #B8C5D3;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.story__nav button:hover::before { background: var(--muted); }
.story__nav button[aria-current="step"]::before { width: 22px; background: var(--navy); }
.story:not(.is-live) .story__nav { display: none; }


/* ----- Bühne ----- */
.st-cam { position: relative; height: 100%; }
.st-win {
  --app-navy: #1a2332;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 18px;
  background: #F8FAFC;
  color: var(--app-navy);
  font-size: 13px;
  line-height: 1.35;
  box-shadow: 0 0 0 1px rgb(2 31 65 / 0.06), 0 30px 60px -30px rgb(2 31 65 / 0.35), 0 18px 36px -18px rgb(2 31 65 / 0.16);
  transform-origin: 50% 60%;
}
.st-stage svg { display: block; flex: none; }
.st-stage b { font-weight: 600; }
.st-stage small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.st-stack { display: grid; }
.st-stack > * { grid-area: 1 / 1; }

.st-side { display: flex; flex-direction: column; gap: 1px; padding: 18px 10px; background: var(--app-navy); }
.st-side__brand {
  padding: 0 8px 14px;
  color: var(--dove);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.st-side__group {
  padding: 10px 8px 4px;
  color: rgb(255 255 255 / 0.4);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.st-side__item {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 27px;
  padding: 0 8px;
  border-radius: 7px;
  color: rgb(255 255 255 / 0.6);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.st-side__item svg { width: 14px; height: 14px; }
.st-side__item.is-active { background: rgb(255 255 255 / 0.16); color: var(--white); }

.st-main { position: relative; display: flex; flex-direction: column; min-width: 0; }
.st-top { position: relative; flex: none; height: 48px; border-bottom: 1px solid var(--line); background: var(--white); }
.st-top__title {
  position: absolute;
  left: 18px;
  top: 0;
  line-height: 47px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  opacity: 0;
}
.st-top__title:first-child { opacity: 1; } /* ohne JS: Projekt */

.st-canvas { position: relative; flex: 1; min-height: 0; margin: 16px; }
.st-layer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 10px; opacity: 0; }
.st-layer.st-proj { opacity: 1; } /* ohne JS: Projekt */

.st-label { color: var(--dove); font-size: 11.5px; font-weight: 600; }
.st-label small { display: inline; margin-left: 4px; font-weight: 400; }
.st-pill {
  flex: none;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: #E6EEF4;
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.st-sk { display: block; width: var(--w); height: 8px; border-radius: 4px; background: #E6EBF1; }
.st-fact {
  display: flex;
  flex-direction: column;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 10px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.st-fact small { font-size: 10px; }

/* Projektmaske */
.st-proj__head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.st-proj__head b { font-family: var(--font-display); font-size: 17px; }
.st-proj__head small { flex-basis: 100%; }
.st-proj__tabs {
  display: flex;
  gap: 16px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.st-proj__tabs span { padding-bottom: 8px; border-bottom: 2px solid transparent; }
.st-proj__tabs .is-active { border-bottom-color: var(--navy); color: var(--navy); font-weight: 600; }
.st-proj__pos {
  flex: 1;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  --row: 38px;
  container-type: inline-size; /* Kalkulation richtet sich nach der Listenbreite, nicht nach dem Fenster */
  /* --sc 0…1 aus js/main.js: Liste rückt beim Aufklappen der Kalkulation hoch, die Maske gibt die Fläche frei */
  -webkit-mask-image: linear-gradient(#000 calc(50% + var(--sc, 0) * 38%), transparent calc(88% + var(--sc, 0) * 12%));
  mask-image: linear-gradient(#000 calc(50% + var(--sc, 0) * 38%), transparent calc(88% + var(--sc, 0) * 12%));
}
.st-proj__pos li:first-child { margin-top: calc(var(--sc, 0) * -2 * var(--row)); }
.st-proj__pos li { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border-bottom: 1px dashed #E3E9EF; }
/* Von HeyOptero eingefügte Zeile: klappt auf (--p 0…1 aus js/main.js), violett hinterlegt, Sternchen funkeln */
.st-proj__airow {
  position: relative;
  height: calc(var(--p, 1) * 38px) !important;
  opacity: var(--p, 1);
  overflow: visible;
  background: rgb(124 92 191 / 0.07);
  box-shadow: inset 3px 0 0 var(--violet);
}
.st-proj__ico.is-ai { background: var(--violet); color: var(--white); }
.st-proj__aitag { flex: none; padding: 1px 7px; border-radius: var(--r-pill); background: rgb(124 92 191 / 0.14); color: var(--violet); font-size: 10.5px; }
.st-proj__aisparks { position: absolute; left: 22px; top: 2px; }
.st-proj__pos .st-proj__aisparks, .st-proj__pos .st-proj__aisparks span { overflow: visible; }
.st-sparks--row { right: auto; left: 0; top: -10px; width: 36px; height: 30px; }
.st-proj__pos li:last-child { border-bottom: 0; }
.st-proj__pos li > span, .st-proj__mat .st-stack { flex: 1; min-width: 0; font-weight: 500; }
.st-proj__pos li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-proj__pos em { color: var(--muted); font-style: normal; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-proj__ico { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: #EEF2F6; color: var(--muted); }
.st-proj__ico svg { width: 12px; height: 12px; }
.st-proj__ico.is-pkg { color: var(--dove); }
.st-proj__shop { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: rgb(124 92 191 / 0.12); color: var(--violet); }
.st-proj__shop svg { width: 13px; height: 13px; }
.st-proj__toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  width: max-content;
  margin: 0 auto;
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: var(--r-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.st-proj__toast svg { width: 13px; height: 13px; }

/* Kalkulation einer Position (PositionKalkulation.js): Knopf „Kalkulation“ an der Zeile, klappt Lohn + Material auf */
.st-proj__calcrow { position: relative; }
.st-proj__pos .st-proj__calcrow.is-open { background: var(--paper); box-shadow: inset 3px 0 0 var(--navy); border-bottom: 0; }
.st-proj__kalk {
  display: flex;
  align-items: center;
  flex: none;
  gap: 4px;
  height: 24px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  font-size: 11px;
  font-style: normal;
  opacity: 0;
}
.st-proj__kalk b { font-weight: 500; }
.st-proj__kalk svg { width: 12px; height: 12px; }
.st-proj__calcrow.is-open .st-proj__kalk { border-color: var(--navy); }
.st-proj__calcrow.is-open .st-proj__kalk b { font-weight: 600; }
.st-proj__calcrow.is-open .st-proj__chev { transform: rotate(180deg); }
.st-proj__calcrow .st-proj__kalkcur { left: auto; right: 72px; top: 16px; }

.st-proj__pos .st-calc {
  display: block;
  height: calc(var(--p, 0) * var(--calc-h, 178px));
  padding: 0;
  overflow: hidden;
  border-bottom: 1px dashed #E3E9EF;
  background: var(--paper);
  box-shadow: inset 3px 0 0 var(--navy);
}
.st-calc__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 2px 12px 12px 15px; }
.st-calc__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.st-calc__kat { display: inline-flex; align-items: center; gap: 3px; }
.st-calc__kat svg { width: 11px; height: 11px; color: var(--dove); }
.st-calc__row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 48px 86px 58px 44px;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--white);
  font-size: 12px;
}
.st-calc__row--head { min-height: 0; padding-block: 0; background: none; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.st-calc__row .is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-calc__row strong { font-weight: 600; }
.st-calc__span { grid-column: span 2; color: var(--muted); font-size: 11px; }
.st-calc__row:not(.st-calc__row--head) .st-calc__opt:not(.st-calc__span) { color: var(--muted); }
.st-calc__name { font-weight: 500; white-space: nowrap; }
.st-calc__art { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11.5px; }
.st-calc__art i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--navy); }
.st-calc__art--mat i { background: var(--dove); }
/* Anteile am Einzelpreis, in den Farben der Kostenarten */
.st-calc__bar { display: flex; gap: 2px; height: 6px; margin-block: 2px; border-radius: var(--r-pill); overflow: hidden; background: #E6EBF1; }
.st-calc__bar i { width: calc(var(--p, 1) * var(--w)); background: var(--navy); }
.st-calc__bar i + i { background: var(--dove); }
.st-calc__sum { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 12px; color: var(--muted); font-size: 12px; }
.st-calc__sum span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-calc__sum b { color: var(--navy); font-weight: 600; }
.st-calc__sum strong { color: var(--navy); font-family: var(--font-display); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.st-calc__sum small { grid-column: 1 / -1; font-size: 11px; }
/* Schmale Bühne: nur Art, Bezeichnung, Menge, VK */
@container (max-width: 460px) {
  .st-proj__kalk b, .st-calc__opt { display: none; }
  .st-proj__calcrow .st-proj__kalkcur { right: 44px; top: 12px; }
  .st-calc__row { grid-template-columns: 62px minmax(0, 1fr) 46px 40px; gap: 6px; }
}

/* „Produkt aus Baustoffshop“ (MaterialShopInlinePicker) – ohne Preise */
.st-shop {
  position: absolute;
  inset: -16px;
  z-index: 3;
  display: flex;
  align-items: center;
  padding: 16px;
  background: rgb(2 31 65 / 0.28);
  opacity: 0;
}
.st-shop__panel {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 24px 48px -16px rgb(2 31 65 / 0.4);
  transform-origin: 50% 60%;
}
.st-shop__head { display: flex; align-items: center; gap: 10px; }
.st-shop__head > i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: #E6EEF4; color: var(--navy); }
.st-shop__head svg { width: 16px; height: 16px; }
.st-shop__head b { display: block; font-size: 13.5px; }
.st-shop__need {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1.5px dashed #C4B5FD;
  border-radius: 10px;
  background: linear-gradient(90deg, #F5F3FF, #EFF6FF);
}
.st-shop__need > i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--violet); color: var(--white); }
.st-shop__need svg { width: 14px; height: 14px; }
.st-shop__need b { font-size: 12.5px; }
.st-shop__need small b { font-size: 11px; color: var(--navy); }
.st-shop__need em { margin-left: 4px; padding: 1px 7px; border-radius: var(--r-pill); background: #EDE9FE; color: #6D28D9; font-style: normal; }
.st-shop__search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.st-shop__search svg { width: 14px; height: 14px; }
.st-shop__card { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.st-shop__info { flex: 1; min-width: 0; }
.st-shop__info b { display: block; font-size: 13px; }
.st-shop__info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-shop__btns { display: grid; gap: 5px; flex: none; }
.st-shop__std, .st-shop__alt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.st-shop__std { background: var(--violet); color: var(--white); }
.st-shop__std.is-on { background: var(--navy); }
.st-shop__card { position: relative; }
.st-shop__ring { position: absolute; inset: -1px; border: 2px solid var(--navy); border-radius: 12px; pointer-events: none; }
.st-shop__pick { position: relative; }
/* Mauszeiger + Klick-Welle auf „Als Standard“ */
.st-ripple { position: absolute; inset: -4px; border: 2px solid var(--violet); border-radius: 10px; opacity: 0; pointer-events: none; }
.st-cursor { position: absolute; left: 55%; top: 45%; z-index: 2; width: 22px; height: 22px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgb(2 31 65 / 0.35)); transform-origin: 4px 3px; }
.st-cursor svg { width: 100%; height: 100%; }
.st-shop__std svg { width: 11px; height: 11px; }
.st-shop__alt { border: 1px solid var(--violet); color: var(--violet); }
/* Fliese 30 × 60 als Vorschaubild (Fugenraster) */
.st-tile {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background-color: #F4F3EF;
  background-image: linear-gradient(#DEDBD2 1px, transparent 1px), linear-gradient(90deg, #DEDBD2 1px, transparent 1px);
  background-size: 28px 14px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.st-tile--grey { background-color: #B9C0C7; background-image: linear-gradient(#A3AAB2 1px, transparent 1px), linear-gradient(90deg, #A3AAB2 1px, transparent 1px); }

/* Plantafel – inkl. Zeile „Offen“ und KI-Moment. Zeilen wachsen mit der Bühne (max. 52 px), Einsatz-Block wie in der App: Kunde, Projekt, Uhrzeit */
.st-canvas { container: stcanvas / inline-size; }
.st-layer.st-plan {
  --gy: 6px;
  display: grid;
  grid-template-columns: 40px repeat(5, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(6, minmax(0, 52px)) auto;
  align-content: center;
  gap: var(--gy) 5px;
}
.st-plan__bar { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 12px; }
.st-plan__bar b { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.st-plan__bar small { font-size: 11.5px; }
.st-plan__nav { display: flex; gap: 2px; }
.st-plan__nav i { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--muted); }
.st-plan__nav svg { width: 12px; height: 12px; }
.st-plan__today { margin-left: auto; padding: 3px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); color: var(--muted); font-size: 11px; font-weight: 500; }
.st-plan__day { grid-column: var(--c); grid-row: 2; padding-bottom: 6px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; white-space: nowrap; }
.st-plan__day small { display: inline; font-size: 10.5px; font-weight: 400; }
.st-plan__day.is-today { color: var(--navy); }
/* Raster bewusst sehr leise: gibt Struktur, ohne mit den Einsätzen zu konkurrieren */
.st-plan__col { grid-column: var(--c); grid-row: 2 / 9; margin-inline: -2.5px; border-left: 1px solid #EDF1F5; }
.st-plan__col.is-today { background: rgb(94 143 174 / 0.04); }
.st-plan__line { grid-column: 1 / -1; grid-row: var(--r); align-self: end; margin-bottom: calc(var(--gy) / -2 - 0.5px); border-bottom: 1px solid #EDF1F5; }
.st-plan__who {
  grid-column: 1;
  grid-row: var(--r);
  display: grid;
  place-items: center;
  align-self: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.st-plan__who--open { width: auto; height: auto; border: 0; background: none; justify-self: start; }
.st-plan__job, .st-plan__slot { grid-column: var(--c) / span var(--s, 1); grid-row: var(--r); border-radius: 6px; }
.st-plan__job {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0 8px;
  overflow: hidden;
  border-left: 3px solid var(--dove);
  background: #E6EEF4;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.st-plan__job small, .st-plan__job b, .st-plan__job em { display: block; overflow: hidden; text-overflow: ellipsis; }
.st-plan__job small { color: var(--muted); font-size: 10.5px; font-weight: 400; }
.st-plan__job b { font-weight: 600; }
.st-plan__job em { color: var(--muted); font-size: 10.5px; font-style: normal; font-weight: 400; font-variant-numeric: tabular-nums; }
.st-plan__job--sun { border-left-color: #E2CF63; background: #FBF6DA; }
/* Abwesenheit wie in der App: getönte Fläche statt Einsatz */
.st-plan__job--off { border-left: 0; background: repeating-linear-gradient(135deg, #F1F4F7 0 6px, #E9EEF3 6px 12px); color: var(--muted); font-size: 11px; font-weight: 500; align-items: center; }
.st-plan__slot { border: 1.5px dashed var(--violet); background: rgb(124 92 191 / 0.06); }
/* der neue Einsatz: gleitet aus „Offen“ fünf Zeilen nach oben (--p = 0…1 aus js/main.js); 100 % = eigene Zeilenhöhe */
.st-plan__job--case {
  z-index: 2;
  overflow: visible;
  border: 1px solid var(--navy);
  border-left-width: 3px;
  background: var(--white);
  transform: translateY(calc(var(--p, 0) * -5 * (100% + var(--gy))));
}
/* Schmale Bühne: nur Kunde und Projekt */
@container stcanvas (max-width: 430px) {
  .st-plan__job em, .st-plan__day small, .st-plan__bar small, .st-plan__today { display: none; }
  .st-plan__job { padding: 0 6px; }
}
.st-plan__ai { position: absolute; inset: -1px -1px -1px -3px; z-index: -1; border: 1px solid var(--violet); border-left-width: 3px; border-radius: 6px; background: #EEE9F7; }
.st-sparks { position: absolute; right: -12px; top: -18px; width: 44px; height: 38px; pointer-events: none; }
.st-sparks i { position: absolute; color: var(--violet); animation: twinkle 1.8s ease-in-out infinite; }
.st-sparks i:nth-child(1) { right: 0; top: 0; width: 22px; height: 22px; }
.st-sparks i:nth-child(2) { right: 24px; top: 10px; width: 13px; height: 13px; animation-delay: -0.6s; }
.st-sparks i:nth-child(3) { right: 6px; top: 25px; width: 11px; height: 11px; animation-delay: -1.2s; }
.st-sparks svg { width: 100%; height: 100%; fill: rgb(124 92 191 / 0.18); }
.st-hey-bubble {
  grid-column: 1 / -1;
  grid-row: 9;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 12px 6px 9px;
  border-radius: var(--r-pill);
  background: var(--violet);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px rgb(124 92 191 / 0.7);
}
.st-hey-bubble > i { display: block; width: 14px; height: 14px; }
.st-hey-bubble svg { width: 14px; height: 14px; }


/* Dashboard „Mein Betrieb“ als Widget-Raster (features/dashboard). Raster 4 Spalten × 5 Reihen;
   js/main.js setzt --x/--y/--w/--h (Lage), --lift (angehoben) und .is-edit (Anpassen-Modus, Wackeln). */
.st-db { gap: 10px; }
.st-db__head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 30px; }
.st-db__hello { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.01em; white-space: nowrap; }
.st-db__btn { justify-items: end; }
.st-db__btn > span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 8px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.st-db__btn svg { width: 12px; height: 12px; }
.st-db__adj { border: 1px solid var(--line); background: var(--white); }
.st-db__adj svg { color: var(--dove); }
.st-db__done { background: var(--navy); color: var(--white); }

.st-db__grid { --gap: 10px; position: relative; flex: 1; min-height: 0; }
.st-db__w {
  position: absolute;
  left: calc((100% + var(--gap)) / 4 * var(--x));
  top: calc((100% + var(--gap)) / 5 * var(--y));
  width: calc((100% + var(--gap)) / 4 * var(--w) - var(--gap));
  height: calc((100% + var(--gap)) / 5 * var(--h) - var(--gap));
}
.st-db__w.is-grab { z-index: 3; }
.st-db__ph { border: 2px dashed var(--dove); border-radius: 12px; background: rgb(94 143 174 / 0.14); opacity: 0; }
.st-db__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 9px 10px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgb(26 35 50 / 0.04),
    0 calc(8px + var(--lift, 0) * 16px) calc(22px + var(--lift, 0) * 22px) -12px rgb(26 35 50 / calc(0.14 + var(--lift, 0) * 0.26));
}
@keyframes stWob { 0%, 100% { transform: rotate(-0.6deg); } 50% { transform: rotate(0.6deg); } }
.st-db.is-edit .st-db__card { animation: stWob 0.32s ease-in-out infinite; }
.st-db.is-edit .st-db__w:nth-child(2n) .st-db__card { animation-duration: 0.36s; animation-delay: -0.16s; }
.st-db.is-edit .st-db__w:nth-child(3n) .st-db__card { animation-duration: 0.29s; }
.st-db.is-edit .is-grab .st-db__card { animation: none; }
.st-db__minus {
  position: absolute;
  left: -6px;
  top: -6px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--app-navy);
  color: var(--white);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.st-db__minus svg { width: 9px; height: 9px; }
.st-db__rs { position: absolute; right: 6px; bottom: 6px; width: 9px; height: 9px; border-right: 2.5px solid var(--dove); border-bottom: 2.5px solid var(--dove); border-radius: 0 0 4px 0; opacity: 0; transition: opacity 0.25s ease; }
.st-db.is-edit .st-db__minus { opacity: 1; transform: none; }
.st-db.is-edit .st-db__rs { opacity: 1; }
.st-db .is-grab .st-db__minus { opacity: 0; }
/* Mauszeiger in Rastereinheiten; --cb = 1 steht er am Knopf oben rechts */
.st-db__cur {
  left: calc((1 - var(--cb, 1)) * (100% + var(--gap)) / 4 * var(--cx, 2.5) + var(--cb, 1) * (100% - 34px));
  top: calc((1 - var(--cb, 1)) * (100% + var(--gap)) / 5 * var(--cy, 1) - var(--cb, 1) * 27px);
  z-index: 6;
}

.st-db__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.st-db__top b { overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.st-db__chip { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgb(26 35 50 / 0.07); color: var(--app-navy); }
.st-db__chip--dove { background: rgb(94 143 174 / 0.12); color: var(--dove); }
.st-db__chip svg { width: 11px; height: 11px; }

.st-db__donut { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; }
.st-db__ring { flex: none; width: auto; height: 100%; max-width: 100%; max-height: 112px; }
.st-db__ring circle { fill: none; stroke-width: 6; }
.st-db__cover { stroke-dashoffset: calc(var(--p, 1) * -100px); }
.st-db__leg { display: grid; flex: 1; gap: 7px; min-width: 0; max-width: 130px; }
.st-db__leg span { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 6px; color: var(--muted); font-size: 10.5px; white-space: nowrap; }
.st-db__leg i { width: 7px; height: 7px; border-radius: 50%; }
.st-db__leg .st-sk { grid-column: 2; height: 6px; }

.st-db__wet { display: flex; align-items: center; gap: 6px; margin-top: auto; }
.st-db__wet i { color: #E2B93B; }
.st-db__wet svg { width: 18px; height: 18px; }
.st-db__wet b { font-family: var(--font-display); font-size: 19px; line-height: 1; }

.st-db__todo { display: grid; gap: 4px; }
.st-db__todo span { display: flex; align-items: center; gap: 5px; overflow: hidden; font-size: 10.5px; white-space: nowrap; }
.st-db__todo i { flex: none; width: 9px; height: 9px; border: 1.5px solid #B8C5D3; border-radius: 3px; }

.st-db__plan { display: grid; grid-template-columns: 20px repeat(5, minmax(0, 1fr)); grid-template-rows: 14px; grid-auto-rows: 20px; gap: 6px 4px; }
.st-db__day { grid-column: var(--c); grid-row: 1; color: var(--muted); font-size: 9.5px; font-weight: 600; text-align: center; }
.st-db__who { grid-column: 1; grid-row: var(--r); align-self: center; color: var(--muted); font-size: 9.5px; font-weight: 600; }
.st-db__job {
  grid-column: var(--c) / span var(--s, 1);
  grid-row: var(--r);
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 5px;
  overflow: hidden;
  border-left: 2px solid var(--dove);
  border-radius: 4px;
  background: #E6EEF4;
  font-size: 9.5px;
  font-weight: 500;
  white-space: nowrap;
}
.st-db__job.is-sun { border-left-color: #D9BE4F; background: var(--sun); }

.st-db__team { display: grid; gap: 9px; }
.st-db__team > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.st-db__team i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); font-size: 8.5px; font-style: normal; font-weight: 600; }
.st-db__team .st-sk { flex: 1; width: auto; max-width: var(--w); height: 6px; }
.st-db__dot { flex: none; width: 6px; height: 6px; margin-left: auto; border-radius: 50%; background: var(--navy); }
.st-db__dot.is-off { background: #C9D3DE; }
/* Schmale Widgets (Handy-Standbild): erst die Legende, dann das Symbol weglassen */
.st-db__card { container-type: inline-size; }
@container (max-width: 210px) { .st-db__leg { display: none; } }
@container (max-width: 96px) { .st-db__chip { display: none; } .st-db__todo span { font-size: 9.5px; } }

/* Einrichtung */
.st-up__title { font-family: var(--font-display); font-size: 15px; }
.st-up__drop {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 72px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
}
.st-up__drop > svg { width: 24px; height: 24px; color: var(--dove); }
.st-up__drop b { display: block; color: var(--navy); font-size: 13px; }
.st-up__drop-hl { position: absolute; inset: -2px; border: 2px solid var(--navy); border-radius: 12px; background: rgb(28 53 87 / 0.05); opacity: 0; }
.st-up__file { display: flex; align-items: center; gap: 10px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.st-up__icon { flex: none; width: 26px; height: 26px; }
.st-up__icon i { display: grid; place-items: center; border-radius: 7px; background: #E6EEF4; color: var(--muted); }
.st-up__icon .is-busy { color: var(--dove); }
.st-up__icon .is-done { background: var(--navy); color: var(--white); }
.st-up__icon svg { width: 13px; height: 13px; }
.st-up__name { flex: 1; min-width: 0; }
.st-up__name b { display: block; overflow: hidden; font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.st-up__result { display: grid; gap: 6px; margin: 4px 0 0; padding: 0 2px; list-style: none; }
.st-up__result li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.st-up__result li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.st-up__result small { display: inline; }

/* Globaler HeyOptero (Button + Panel wie in der App) */
.st-fab {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 4px 16px rgb(28 53 87 / 0.35);
}
.st-fab svg { width: 18px; height: 18px; }
.st-hey {
  position: absolute;
  right: 14px;
  bottom: 66px;
  z-index: 5;
  width: min(300px, 78%);
  overflow: hidden;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 16px 48px -8px rgb(2 31 65 / 0.3);
  opacity: 0;
  transform-origin: 100% 100%;
}
.st-hey__head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; }
.st-hey__head svg { width: 15px; height: 15px; }
.st-hey__body { display: flex; flex-direction: column; gap: 12px; min-height: 120px; padding: 14px; background: #F8FAFC; }
.st-hey__msg {
  align-self: flex-end;
  max-width: 88%;
  padding: 8px 12px;
  border-radius: 14px 14px 4px 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
}
.st-hey__msg span, .st-phone__tx span { display: inline-block; }
.st-hey__busy { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.st-hey__busy i { display: block; }
.st-hey__busy svg { width: 14px; height: 14px; color: var(--violet); }

/* Handy-App (optimate-mobile): großer Aufnahme-Button mittig */
.st-phone {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 236px;
  height: 480px;
  margin: auto;
  padding: 9px;
  border-radius: 44px;
  background: #0E2140;
  box-shadow: 0 30px 60px -24px rgb(2 31 65 / 0.45);
  color: var(--navy);
  font-size: 13px;
  line-height: 1.35;
  opacity: 0;
}
.st-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 35px; background: #F6F8FB; }
.st-phone__island { position: absolute; left: 50%; top: 9px; z-index: 2; width: 70px; height: 20px; margin-left: -35px; border-radius: 12px; background: #050E1C; }
.st-phone__brand { padding: 36px 16px 11px; background: var(--navy); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.st-phone__brand { color: #8FB3CC; }
.st-phone__view { position: absolute; left: 0; right: 0; top: 66px; bottom: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 16px; }

.st-rec { align-items: center; justify-content: center; gap: 16px; text-align: center; }
.st-rec__state { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.st-rec__state .is-red { color: #E5484D; }
.st-rec__btn { position: relative; flex: none; width: 80px; height: 80px; margin: 6px 0; }
.st-rec__face { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: #1C3557; color: var(--white); box-shadow: 0 18px 36px -14px rgb(2 31 65 / 0.55); }
.st-rec__face svg { width: 32px; height: 32px; }
.st-rec__face.is-red { background: #E5484D; box-shadow: 0 18px 36px -14px rgb(229 72 77 / 0.6); }
.st-rec__face.is-red svg { width: 22px; height: 22px; }
.st-rec__face.is-busy { background: #E5E7EB; color: var(--muted); }
.st-rec__face.is-busy i { display: block; width: 26px; height: 26px; }
.st-rec__face.is-busy svg { width: 26px; height: 26px; }
.st-rec__rings { position: absolute; inset: 0; }
.st-rec__rings i { position: absolute; inset: 0; border-radius: 50%; background: rgb(229 72 77 / 0.3); animation: recPulse 2s ease-out infinite; }
@keyframes recPulse { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.3); opacity: 0; } }
.st-rec__rings i + i { animation-delay: 1s; }
.st-rec__timer { color: var(--navy); font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 15px; font-variant-numeric: tabular-nums; }
.st-rec__tx { position: relative; width: 100%; min-height: 96px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 12.5px; line-height: 1.4; text-align: left; }
.st-rec__tx span { display: inline-block; }
.st-rec__ph { position: absolute; left: 12px; top: 10px; color: #A9B6C4; }

.st-sum__title { font-family: var(--font-display); font-size: 16px; }
.st-sum__card, .st-sum__sec { padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.st-sum__card b { display: block; font-size: 14px; }
.st-sum__card em { display: block; margin-top: 2px; color: var(--muted); font-size: 11.5px; }
.st-sum__sec { display: grid; gap: 3px; font-size: 12px; }
.st-sum__sec small { margin-bottom: 2px; color: var(--dove); font-weight: 600; }
.st-sum__sec span { display: flex; justify-content: space-between; }
.st-sum__sec em { color: var(--muted); font-style: normal; }
.st-sum__foot { display: flex; gap: 8px; margin-top: auto; }
.st-sum__again, .st-sum__send { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: 14px; font-size: 12.5px; font-weight: 600; }
.st-sum__again { flex: none; padding: 0 12px; border: 1px solid var(--line); background: var(--white); }
.st-sum__send { flex: 1; background: var(--navy); color: var(--white); }
.st-sum__again svg, .st-sum__send svg { width: 14px; height: 14px; }

.st-sent { align-items: center; justify-content: center; gap: 12px; text-align: center; }
.st-sent__ok { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); color: var(--white); }
.st-sent__ok svg { width: 32px; height: 32px; }
.st-sent > b { font-family: var(--font-display); font-size: 17px; }
.st-sent ul { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 12.5px; text-align: left; }
.st-sent li { display: flex; align-items: center; gap: 8px; }
.st-sent li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #E6EEF4; color: var(--navy); }
.st-sent li i svg { width: 11px; height: 11px; }
.st-sent li i.is-busy { background: none; color: var(--violet); }
.st-sent li i.is-busy svg { width: 14px; height: 14px; }

/* Dokument-Mockups (fliegen per JS) */
.st-doc {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 120px;
  height: 170px;
  padding: 12px 11px;
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgb(2 31 65 / 0.06), 0 18px 40px -12px rgb(2 31 65 / 0.35);
  opacity: 0;
  pointer-events: none;
  /* Eigene Ebene: Der weiche Schatten wird sonst bei jeder Skalierung neu gezeichnet → Ruckeln beim Flug */
  will-change: transform, opacity;
  backface-visibility: hidden;
}
.st-doc__head { display: flex; justify-content: space-between; }
.st-doc__head > i { width: 22px; height: 10px; border-radius: 2px; background: var(--navy); }
.st-doc__head span { display: grid; gap: 3px; }
.st-doc__head span i { width: 30px; height: 3px; background: var(--line); }
.st-doc b { color: var(--navy); font-family: var(--font-display); font-size: 10px; }
.st-doc__lines { display: grid; gap: 6px; }
.st-doc__lines i { height: 3px; background: #E6EBF1; }
.st-doc__lines i:nth-child(2n) { width: 78%; }
.st-doc__lines i:nth-child(3n) { width: 90%; }
.st-doc__sum { display: flex; justify-content: flex-end; margin-top: auto; }
.st-doc__sum i { width: 40px; height: 5px; background: #C9D3DE; }

/* ----- Standbilder (mobil / reduzierte Bewegung) ----- */
.story.is-static { display: block; }
.story.is-static .story__aside { display: none; }
.story.is-static .story__step, .story.is-static #story-2 { min-height: 0; padding-block: clamp(48px, 7vw, 72px) 0; }
.story.is-static .story__stick { position: static; height: auto; padding-bottom: 0; }
.st-stage--snap { height: 460px; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .st-rec__rings i, .st-sparks i, .st-db.is-edit .st-db__card { animation: none; }
}
@media (max-width: 900px) {
  .story { display: block; }
  .story__step, #story-2.story__step--long { min-height: 0; padding-block: 48px 0; }
  .story__stick { position: static; height: auto; padding-bottom: 0; }
  .story__pin { position: static; height: auto; margin-top: 40px; }
  .st-stage { height: 460px; }
  .st-win { grid-template-columns: minmax(0, 1fr); }
  .st-side { display: none; }
}
@media (max-width: 560px) {
  .st-stage, .st-stage--snap { height: 410px; }
  .st-win { font-size: 12px; border-radius: 14px; }
  .st-top { height: 42px; }
  .st-top__title { left: 14px; line-height: 41px; font-size: 14px; }
  .st-canvas { margin: 12px; }
  .st-layer { gap: 8px; }
  .st-proj__tabs { gap: 12px; font-size: 11.5px; }
  .st-proj__pos { --row: 32px; }
  .st-proj__pos li { height: 32px; padding: 0 10px; }
  .st-proj__airow { height: calc(var(--p, 1) * 32px) !important; }
  .st-calc__in { padding: 2px 10px 10px 12px; }
  .st-proj__aitag { display: none; }
  .st-layer.st-plan { --gy: 4px; grid-template-columns: 34px repeat(5, minmax(0, 1fr)); column-gap: 3px; }
  .st-shop__need, .st-shop__alt, .st-shop__search { display: none; }
  .st-shop__panel { gap: 8px; padding: 12px; }
  .st-tile { width: 44px; height: 44px; }
  .st-proj__pos li { gap: 8px; }
  .st-plan__who { width: 26px; height: 26px; font-size: 10px; }
  .st-plan__job { padding: 0 5px; font-size: 11px; }
  .st-plan__job small { font-size: 9.5px; }
  .st-plan__bar { margin-bottom: 2px; }
  .st-aw__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-aw__stats > span:nth-child(n+3), .st-aw__ctx { display: none; }
  .st-aw__title { font-size: 17px; }
  .st-aw__plot { height: 96px; }
  .st-up__title { display: none; }
  .st-up__drop { height: 60px; }
  .st-up__file { padding: 6px 10px; }
  .st-fab { width: 36px; height: 36px; right: 10px; bottom: 10px; }
}

/* ==========================================================================
   3. So funktioniert's  (auch OpteroConnect auf baustoffhandel.html)
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.step__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 2.8rem + 2.5vw, 5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--dove);
}
.step h3 { margin: 20px 0 10px; }
.step p { color: var(--muted); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step {
    display: grid;
    grid-template-columns: 56px 1fr;
    column-gap: 16px;
  }
  .step__num { grid-row: 1 / 3; font-size: 3rem; }
  .step h3 { margin-top: 6px; }
}

/* ==========================================================================
   4. Funktionen  (auch Nutzen auf baustoffhandel.html)
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.feature h3 { margin: 20px 0 8px; }
.feature p { color: var(--muted); }

@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .feature { padding: 24px; }
}

/* ==========================================================================
   3. Denkt mit / du entscheidest – drei schlichte Elemente
   ========================================================================== */
.trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.trust__item {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.trust__item > svg { display: block; width: 24px; height: 24px; color: var(--dove); }
.trust__title {
  margin: 14px 0 6px;
  font-size: 1.25rem;
}
.trust__item p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 900px) {
  .trust { grid-template-columns: 1fr; gap: 0; }
  .trust__item { padding: 20px 0; }
  .trust__item:last-child { padding-bottom: 0; }
}

/* ==========================================================================
   5. HeyOptero – aus reference/heyoptero-section.html übernommen
      (Variablen auf globale Tokens umgestellt, Abstände über .section/.container)
   ========================================================================== */
.ho-section {
  color: var(--navy);
  font-family: var(--font-body);
}
.ho-section *, .ho-section *::before, .ho-section *::after { box-sizing: border-box; }
.ho-section svg { display: block; flex: none; }

.ho-wrap {
  max-width: none; /* Breite kommt von .container, damit die Sektion mit den anderen fluchtet */
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

.ho-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.ho-lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
  margin: 0 0 28px;
}

.ho-points {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
}
.ho-points li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}
.ho-points svg { color: var(--violet); margin-top: 2px; }
.ho-points h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 2px;
}
.ho-points p { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--muted); }

.ho-guard { margin-top: 28px; }
.ho-limits { margin: 10px 0 0; font-size: 14px; color: var(--muted); }

.ho-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sun);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15.5px;
}

/* ----- Telefon ----- */
.ho-device { width: 340px; max-width: 100%; zoom: .84; } /* Telefon proportional verkleinert: 286 × ~580 px */
.ho-phone { background: var(--navy); border-radius: 50px; padding: 11px; }
.ho-screen {
  position: relative;
  height: 690px;
  border-radius: 40px;
  background: #F6F8FB;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ho-statusbar {
  height: 44px;
  flex: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px 0 32px;
  font-weight: 600;
  font-size: 13px;
}
.ho-island {
  position: absolute; left: 50%; top: 10px; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 20px; background: var(--navy);
}
.ho-batt { width: 22px; height: 11px; border: 1.5px solid var(--navy); border-radius: 3px; padding: 1px; }
.ho-batt i { display: block; height: 100%; width: 70%; background: var(--navy); border-radius: 1px; }

.ho-appbar { flex: none; display: flex; align-items: center; gap: 10px; padding: 4px 18px 12px; }
.ho-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--violet); color: #fff;
  display: grid; place-items: center;
}
.ho-appname { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.15; }
.ho-state { font-size: 12px; color: var(--muted); }

.ho-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.ho-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.ho-cardlabel { font-size: 11.5px; font-weight: 500; color: var(--dove); margin-bottom: 6px; }

.ho-tx { margin: 0; min-height: 56px; font-size: 13px; line-height: 1.45; }
.ho-tx .ph { color: #A9B6C4; }
.ho-w { opacity: 0; animation: hoWord .22s ease-out forwards; }
.ho-caret {
  display: inline-block; width: 2px; height: 1em; margin-left: 1px;
  background: var(--violet); vertical-align: -2px;
  animation: hoBlink 1s steps(1) infinite;
}

.ho-quote {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.ho-quote.is-on { opacity: 1; transform: none; }
.ho-qhead {
  flex: none; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 14px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.ho-qhead svg { color: var(--dove); }
.ho-chip {
  margin-left: auto;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  background: var(--sun); padding: 3px 9px; border-radius: 999px;
}

.ho-lines { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.ho-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px;
  padding: 5px 0; border-bottom: 1px dashed #E3E9EF;
  opacity: 0; transform: translateY(4px);
  transition: opacity .3s ease, transform .3s ease;
}
.ho-line.in { opacity: 1; transform: none; }
.ho-ld { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-lm { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ho-ls {
  grid-column: 2; grid-row: 1 / 3; align-self: center;
  font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.ho-tag {
  display: inline-block; margin-left: 6px; padding: 0 5px;
  font-size: 10px; font-weight: 600; color: var(--dove);
  border: 1px solid var(--dove); border-radius: 5px; vertical-align: 1px;
}
.ho-skel {
  height: 10px; border-radius: 5px; margin: 14px 0;
  background: linear-gradient(90deg, #EDF1F5 0%, #E0E7EE 50%, #EDF1F5 100%);
  background-size: 200% 100%;
  animation: hoShimmer 1.1s linear infinite;
}
.ho-skel:nth-child(2) { width: 78%; }
.ho-skel:nth-child(3) { width: 90%; }
.ho-skel:nth-child(4) { width: 64%; }

.ho-totals {
  flex: none; padding-top: 8px; display: grid; gap: 2px; font-size: 12px;
  font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity .3s ease;
}
.ho-totals.is-on { opacity: 1; }
.ho-row { display: flex; justify-content: space-between; color: var(--muted); }
.ho-row.sum { color: var(--navy); font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 2px; }

.ho-dock { flex: none; position: relative; height: 104px; }
.ho-voice, .ho-final {
  position: absolute; inset: 10px 14px 22px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .3s ease;
}
.ho-voice { gap: 14px; }
.ho-final { flex-direction: column; gap: 8px; opacity: 0; }
.ho-screen[data-step="done"] .ho-voice { opacity: 0; }
.ho-screen[data-step="done"] .ho-final { opacity: 1; }

.ho-mic {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: grid; place-items: center;
  transition: background-color .25s ease, transform .15s ease;
}
.ho-mic::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--violet); opacity: 0;
}
.ho-mic.press { transform: scale(.9); }
.ho-screen[data-step="listening"] .ho-mic { background: var(--violet); }
.ho-screen[data-step="listening"] .ho-mic::after { animation: hoRing 1.4s ease-out infinite; }
.ho-screen[data-step="thinking"] .ho-mic { background: #B7C4D2; }

.ho-wave { display: flex; align-items: center; gap: 3px; height: 22px; width: 42px; }
.ho-wave i { width: 3px; height: 4px; border-radius: 2px; background: #C9D4DF; }
.ho-screen[data-step="listening"] .ho-wave i { background: var(--violet); animation: hoBar .8s ease-in-out infinite alternate; }
.ho-wave i:nth-child(2) { animation-delay: .15s !important; }
.ho-wave i:nth-child(3) { animation-delay: .35s !important; }
.ho-wave i:nth-child(4) { animation-delay: .05s !important; }
.ho-wave i:nth-child(5) { animation-delay: .25s !important; }
.ho-wave i:nth-child(6) { animation-delay: .45s !important; }

.ho-approval {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500;
  background: var(--sun); padding: 4px 10px; border-radius: 999px;
}
.ho-actions { display: flex; gap: 8px; width: 100%; }
.ho-btn {
  flex: 1; text-align: center; padding: 11px 0; border-radius: 12px;
  font-weight: 600; font-size: 14px;
}
.ho-btn.ghost { border: 1.5px solid var(--line); background: #fff; }
.ho-btn.solid { background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center; gap: 6px; }

@keyframes hoWord { from { opacity: 0; } to { opacity: 1; } }
@keyframes hoBlink { 50% { opacity: 0; } }
@keyframes hoShimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }
@keyframes hoRing { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes hoBar { from { height: 4px; } to { height: 20px; } }

@media (max-width: 900px) {
  .ho-wrap { grid-template-columns: 1fr; }
  .ho-device { justify-self: center; }
}
@media (max-width: 560px) {
  .ho-note { border-radius: 16px; }
}

/* 7. „Für wen“ (Gewerke als Pills) entfernt – ersetzt durch 7b Gewerke (30.10.2026) */

/* ==========================================================================
   3. HeyOptero denkt mit. Du entscheidest. (Gestaltung 31.10.2026)
      Navy-Box mit drei Textkarten, ohne Grafiken und Animation (Wunsch Christian, 01.11.2026).
   ========================================================================== */
.hy-box {
  --hy-photo: 270px; /* Breite der Handwerkerin, rechts läuft der Ärmel an der Kartenkante aus */
  padding: clamp(24px, 5vw, 64px);
  border-radius: 28px;
  background: var(--navy-deep);
  color: var(--white);
}
/* rechts bleibt Platz für den Kopf der Handwerkerin, der aus der gelben Karte herausragt */
.hy-head { display: grid; gap: 20px; padding-right: calc(var(--hy-photo) + 24px); }
.hy-head h2 { color: var(--white); }
.hy-head__sub { color: var(--dove); }
.hy-head .lead { margin: 0; color: rgb(255 255 255 / 0.78); text-wrap: pretty; }

.hy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 16px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.hy-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 280px; /* niedrig genug, dass der Kopf der Handwerkerin ganz aus der Karte ragt */
  padding: 28px;
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.07);
}
.hy-card__title {
  max-width: 13ch; /* alle drei Titel zweizeilig, damit die Absätze auf einer Höhe beginnen */
  margin: 0;
  color: var(--white);
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 1.75rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.hy-card p { margin: 0; color: rgb(255 255 255 / 0.78); }
/* Pastel Sun = „deine Entscheidung“ (Farblogik): die Karte, auf die die Überschrift hinausläuft */
.hy-card--sun {
  position: relative;
  padding-right: calc(var(--hy-photo) + 20px);
  background: var(--sun);
}
.hy-card--sun .hy-card__title,
.hy-card--sun p { color: var(--navy-deep); }
/* Dunkle Schrift auf Hell wirkt dünner als Weiß auf Navy: feine Kontur gleicht die Stärke optisch an */
.hy-card--sun .hy-card__title { -webkit-text-stroke: 0.3px currentColor; }
/* Rechts bündig mit der Karte: Die Datei ist so beschnitten, dass der Ärmel an der Kartenkante ausläuft */
.hy-card__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: var(--hy-photo);
  height: auto;
  border-bottom-right-radius: var(--r-card);
}

/* Ab hier zu schmal für drei Spalten: Die gelbe Karte bekommt eine eigene Zeile, darüber Luft für den Kopf */
@media (max-width: 1200px) {
  .hy-head { padding-right: 0; }
  .hy-grid { grid-template-columns: 1fr 1fr; }
  .hy-card { min-height: 0; }
  .hy-card--sun { grid-column: 1 / -1; justify-content: center; gap: 12px; min-height: 320px; margin-top: 100px; }
}
@media (max-width: 900px) {
  .hy-box { --hy-photo: 230px; }
  .hy-card { padding: 24px; }
  .hy-card--sun { min-height: 270px; margin-top: 72px; padding-right: calc(var(--hy-photo) + 20px); }
}
/* Handy: alles untereinander, die Handwerkerin steht über dem Text der gelben Karte */
@media (max-width: 560px) {
  .hy-box { --hy-photo: 200px; }
  .hy-grid { grid-template-columns: 1fr; gap: 12px; }
  .hy-card { gap: 12px; }
  .hy-card--sun { justify-content: flex-start; min-height: 0; margin-top: 60px; padding: 0 24px 24px; }
  .hy-card__photo { position: static; align-self: flex-end; margin: -48px -24px -12px 0; border-bottom-right-radius: 0; }
  .hy-card--sun .hy-card__title { max-width: none; padding-top: 18px; border-top: 1px solid rgb(2 31 65 / 0.18); }
}

/* Fassung ohne Foto (#grenzen-b): nur auf dem iPad/Tablet (Entscheidung Christian, 10.11.2026).
   Tablet = Touch als Hauptbedienung und breiter als ein Handy. Desktop und Handy zeigen die Fassung mit Foto. */
.hy-variant--tablet { display: none; }
@media (hover: none) and (pointer: coarse) and (min-width: 561px) {
  .hy-variant--foto { display: none; }
  .hy-variant--tablet { display: block; }
}
.hy-box--plain .hy-head {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 5vw, 72px);
  align-items: end;
  padding-right: 0;
}
.hy-box--plain .hy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(32px, 4.5vw, 56px);
}
.hy-box--plain .hy-card { gap: 32px; min-height: 280px; }
.hy-box--plain .hy-card__title { font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem); }
.hy-box--plain .hy-card--sun {
  grid-column: auto;
  justify-content: flex-start;
  margin-top: 0;
  padding: 28px;
}
@media (max-width: 900px) {
  .hy-box--plain .hy-head { grid-template-columns: 1fr; }
  .hy-box--plain .hy-grid { grid-template-columns: 1fr; gap: 12px; }
  .hy-box--plain .hy-card { gap: 12px; min-height: 0; padding: 24px; }
  .hy-box--plain .hy-card--sun { padding: 24px; }
  .hy-box--plain .hy-card--sun .hy-card__title { padding-top: 0; border-top: 0; }
}

/* ==========================================================================
   7a. Funktionen (30.10.2026) – Navy, sechs Karten mit „Durchlauf“ 01 → 06
       js/main.js [data-fx]: .is-active wandert über die Karten, Maus darüber übernimmt.
       --mx/--my = Mausposition je Karte (Lichtkegel auf Fläche und Rand).
   ========================================================================== */
.eyebrow {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dove);
}
.section--fx {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
/* Punkteraster + großes, langsam wanderndes Optero-Blau-Licht */
.section--fx::before,
.section--fx::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.section--fx::before {
  inset: 0;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.06) 1px, transparent 1.6px);
  background-size: 22px 22px;
  background-position: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, #000 30%, transparent 85%);
}
.section--fx::after {
  width: 900px;
  height: 900px;
  left: 50%;
  top: 30%;
  margin: -450px 0 0 -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(94 143 174 / 0.28), transparent 62%);
  animation: fxGlow 18s ease-in-out infinite alternate;
}
@keyframes fxGlow {
  0%   { translate: -38% -10%; }
  50%  { translate: 30% 20%; }
  100% { translate: -5% 45%; }
}

.fx-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 24px clamp(32px, 6vw, 96px);
  align-items: end;
}
.fx-head__sub { color: var(--dove); }
.fx-head .lead { color: rgb(255 255 255 / 0.72); max-width: 48ch; }

.fx-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.fx-card {
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.4vw, 32px);
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-card);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.02));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: background-color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
/* Lichtkegel auf der Fläche … */
.fx-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgb(94 143 174 / 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}
/* … und auf dem Rand */
.fx-card::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgb(160 196 218 / 0.95), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
  pointer-events: none;
}
.fx-card.is-active::before,
.fx-card.is-active::after { opacity: 1; }
.fx-card.is-active { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 30px 60px -36px rgb(0 0 0 / 0.8); }

.fx-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.fx-card__ic {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-btn);
  background: linear-gradient(145deg, rgb(94 143 174 / 0.32), rgb(94 143 174 / 0.08));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), inset 0 0 0 1px rgb(255 255 255 / 0.08);
  color: #A9C7DA;
  transition: background 0.5s var(--ease-soft), color 0.5s var(--ease-soft), box-shadow 0.5s var(--ease-soft);
}
.fx-ic { width: 26px; height: 26px; }
.fx-card.is-active .fx-card__ic {
  background: var(--dove);
  color: var(--white);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 0 0 6px rgb(94 143 174 / 0.16), 0 10px 28px -6px rgb(94 143 174 / 0.7);
}
.fx-card__no {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgb(255 255 255 / 0.28);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s var(--ease-soft);
}
.fx-card.is-active .fx-card__no { color: var(--sun); }
.fx-card__title {
  margin: 28px 0 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fx-card p { color: rgb(255 255 255 / 0.66); }
.fx-card__chip { align-self: flex-start; margin-top: 18px; }
/* Fortschritt: läuft über die Dauer, die die Karte aktiv ist */
.fx-card__bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--dove), #A9C7DA);
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
}
.fx-card.is-active .fx-card__bar {
  opacity: 1;
  transform: scaleX(1);
  transition: transform var(--fx-step, 2800ms) linear, opacity 0.3s;
}
[data-fx].is-hover .fx-card__bar { opacity: 0; }

/* Icons zeichnen sich: beim Einblenden (Transition) und jedes Mal, wenn die Karte dran ist (Animation) */
@media (prefers-reduced-motion: no-preference) {
  .js .fx-ic > *,
  .js .fx-ic > g > * {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.2s var(--ease-soft) calc(var(--d, 0s) + 0.3s);
  }
  .js .fx-card:not(.is-in) .fx-ic > *,
  .js .fx-card:not(.is-in) .fx-ic > g > * { stroke-dashoffset: 1; }
  .js .fx-card.is-active .fx-ic > *,
  .js .fx-card.is-active .fx-ic > g > * { animation: icDraw2 1s var(--ease-soft) both; }
  .js .fx-card.is-active .fx-ic__hand { transform-origin: 12px 12px; transform-box: view-box; animation: icDraw2 1s var(--ease-soft) both, fxTick 2.8s var(--ease-soft) both; }
}
@keyframes icDraw2 { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fxTick  { from { rotate: -120deg; } to { rotate: 0deg; } }

@media (max-width: 1000px) {
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .fx-head { grid-template-columns: 1fr; }
}
/* Mobil kompakt: Icon links, Text rechts, keine Nummern */
@media (max-width: 600px) {
  .fx-grid { grid-template-columns: 1fr; gap: 10px; }
  .fx-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; padding: 18px; }
  .fx-card__top { grid-row: 1 / span 3; }
  .fx-card__ic { width: 44px; height: 44px; }
  .fx-ic { width: 22px; height: 22px; }
  .fx-card__no { display: none; }
  .fx-card__title { margin: 2px 0 4px; font-size: 1.125rem; }
  .fx-card p { font-size: 15px; }
  .fx-card__chip { grid-column: 2; justify-self: start; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .section--fx::after { animation: none; }
}

/* ==========================================================================
   7b. Gewerke – Navy wie die Funktionen (7a), zehn Kacheln mit Icon (seit 04.11.2026, vorher Fotos),
       Durchlauf über [data-fx]: Die aktive Kachel füllt sich im Optero-Lila. Ohne Links.
   ========================================================================== */
.section--trades::after { top: 45%; animation-delay: -9s; } /* Licht nicht synchron zur Funktionen-Sektion */
.trades-head { text-align: center; margin-inline: auto; }
.trades-head .lead { margin-inline: auto; color: rgb(255 255 255 / 0.72); }
.trades-head h2 { color: var(--white); }

/* 10 Karten: Desktop 5 × 2, ≤ 900 px zwei Spalten (Wunsch Christian: immer volle Reihen) */
.trade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: clamp(40px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 900px) {
  .trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.fx-card.trade {
  gap: 20px;
  min-height: clamp(150px, 13vw, 176px);
  padding: clamp(18px, 1.7vw, 24px);
}
/* Aktive Kachel: Fläche im Optero-Lila statt Lichtkegel. Eigene Ebene, damit die Farbe weich überblendet. */
.fx-card.trade::before { background: var(--violet); }
.fx-card.trade::after { background: radial-gradient(260px circle at var(--mx) var(--my), rgb(255 255 255 / 0.75), transparent 60%); }
.fx-ic.trade__ic {
  width: 48px;
  height: 48px;
  color: #B9A6EA; /* aufgehelltes --violet, sonst zu wenig Kontrast auf Navy */
  transition: color 0.5s var(--ease-soft);
}
.trade__name {
  margin-top: auto;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.9rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.fx-card.trade.is-active .trade__ic { color: var(--white); }
.fx-card.trade.is-active { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), 0 24px 48px -28px rgb(124 92 191 / 0.9); }
/* .fx-card stellt auf dem Handy auf Icon links um; die Namen hier brauchen die volle Breite. */
@media (max-width: 600px) {
  .fx-card.trade { display: flex; gap: 14px; min-height: 0; padding: 16px; }
  .fx-ic.trade__ic { width: 32px; height: 32px; }
  .trade__name { font-size: 0.9375rem; }
}

/* Hinweis unter den Karten: nur Text (01.11.2026, Kasten entfernt) */
.trade-more {
  margin: 32px auto 0;
  max-width: 62ch;
  color: rgb(255 255 255 / 0.66);
  text-align: center;
}
.trade-more strong { color: var(--white); font-weight: 600; }

/* ==========================================================================
   8. Händler-Anbindung – Kette Hersteller → Baustoffhandel → Handwerk
   ========================================================================== */
/* .chain wird nur noch auf baustoffhandel.html genutzt. */

.chain {
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.chain__stations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.chain__station {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}
/* Verbindungslinie von der vorherigen Station zur Mitte dieser Station */
.chain__station + .chain__station::before {
  content: "";
  position: absolute;
  top: 31px;
  right: 50%;
  width: 100%;
  height: 2px;
  background: var(--dove);
}
.chain__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}
.chain__station--focus .chain__icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.chain__result {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.chain__result .app__head { border-bottom: 0; padding-bottom: 6px; }
.chain__result .app__line { border-bottom: 0; }

@media (max-width: 560px) {
  .chain__station { font-size: 14px; }
  .chain__icon { width: 56px; height: 56px; }
  .chain__station + .chain__station::before { top: 27px; }
}

/* ----- Startseite: Handwerk und Baustoffhandel. Direkt verbunden. (30.10.2026) -----
   Zentrierter Kopf mit Newsletter-Box, schlicht ohne Grafik (Wunsch Christian, 01.11.2026). */
.haendler__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}
.haendler__sub { color: var(--dove); }
/* Alle Absätze gleich breit (Wunsch Christian, 01.11.2026): volle Zeilen statt balance, das je Absatz anders schmal umbricht */
.haendler__head .lead { width: 100%; margin-top: 24px; max-width: 56ch; text-wrap: pretty; }
.haendler__head .lead + .lead { margin-top: 12px; }
/* Sticker: --k (0 = Start, 1 = gelandet) und --o setzt js/main.js [data-sticker]; ohne JS / reduzierte Bewegung gelandet */
.hs-sticker {
  --fx: -70px;
  --fy: 70px;
  --r: 6deg;
  --dr: 12deg;
  --ds: 0.8;
  position: absolute;
  top: -18px;
  right: -196px;
  z-index: 1;
  padding: 14px 18px;
  border-radius: var(--r-card);
  background: var(--sun);
  box-shadow: inset 0 0 0 1px rgb(2 31 65 / 0.06), 0 14px 28px -14px rgb(2 31 65 / 0.35);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  opacity: var(--o, 1);
  transform:
    translate(calc(var(--fx) * (1 - var(--k, 1))), calc(var(--fy) * (1 - var(--k, 1))))
    rotate(calc(var(--r) + var(--dr) * (1 - var(--k, 1))))
    scale(calc(1 + var(--ds) * (1 - var(--k, 1))));
}
@media (max-width: 1180px) {
  .hs-sticker {
    --fx: 0px;
    --fy: 40px;
    --r: -4deg;
    --dr: -8deg;
    --ds: 0.4;
    position: relative;
    top: auto;
    right: auto;
    margin-bottom: 24px;
  }
}
/* Newsletter (31.10.2026, ersetzt den Link zur Unterseite)
   Volle Containerbreite, zweispaltig (Wunsch Christian, 01.11.2026) */
.nl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(36px, 4vw, 56px);
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--r-card);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -36px rgb(2 31 65 / 0.35);
}
@media (max-width: 900px) {
  .nl { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
.nl__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nl__text { margin-top: 8px; color: var(--muted); }
.nl__row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: calc(var(--r-btn) + 6px);
  background: var(--paper);
  transition: border-color 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.nl__row:focus-within { border-color: var(--dove); box-shadow: 0 0 0 4px rgb(94 143 174 / 0.15); }
.nl__row input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  outline: none;
}
.nl__row input::placeholder { color: #8A9BAD; }
.nl__row .btn { flex: none; }
.nl__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl__form.is-invalid .nl__row { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.nl__error { margin-top: 10px; color: var(--navy); font-size: var(--fs-small); font-weight: 600; }
.nl__note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.nl__note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nl__success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--r-btn);
  background: var(--paper);
  color: var(--navy);
  font-weight: 600;
  text-align: left;
}
.nl__success svg { flex: none; color: var(--dove); }
@media (max-width: 480px) {
  .nl__row { flex-direction: column; padding: 6px; }
  .nl__row input[type="email"] { min-height: 44px; }
  .nl__row .btn { width: 100%; }
}

/* ==========================================================================
   9. Kundenstimmen – Slider (Box-Optik wie HeyOptero, Wunsch Christian, 01.11.2026)
      Navy-Box über die volle Containerbreite. Die Person steht links auf der Unterkante der Box,
      ihr Kopf ragt oben heraus, der Arm liegt auf der Zitatkarte rechts.
   ========================================================================== */
.section--quote {
  --q-lift: clamp(60px, 5.4vw, 76px);  /* so weit ragt der Kopf oben aus der Box */
  --q-photo: 270px;                    /* Spalte für die Person, der Arm reicht darüber hinaus auf die Karte */
  --q-pad: clamp(24px, 4vw, 48px);
  padding-top: calc(var(--section-space) * 0.5 + var(--q-lift));
}

/* Die Box: gibt das Koordinatensystem für Person und Weiter-Knopf vor */
.quote-slider__frame {
  position: relative;
  padding: var(--q-pad) var(--q-pad) var(--q-pad) calc(var(--q-photo) + var(--q-pad));
  border-radius: 28px;
  background: var(--navy-deep);
  color: var(--white);
}

/* Höhe an der Box festgemacht: Der Kopf ragt immer gleich weit heraus, auch wenn die Box mit dem Text wächst */
.quote-stage { height: 100%; }
.quote-stage__img {
  position: absolute;
  left: 24px; /* Abstand zur runden Boxecke */
  bottom: 0;
  z-index: 2; /* Arm/Seite liegt über der Karte */
  width: auto;
  height: calc(97% + var(--q-lift));
  max-width: none;
}
/* Björn: Von der Karte aus platziert, damit sein Rücken sie bei jeder Boxhöhe berührt (das Foto hat rechts neben dem Ärmel rund 13 px Luft) */
.quote-stage--bjoern .quote-stage__img {
  left: auto;
  right: calc(100% - var(--q-photo) - var(--q-pad) - 28px);
  height: calc(96% + var(--q-lift));
}

.quote {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  margin: 0;
  padding: 24px 68px 22px 48px; /* links Platz für den Arm, rechts für Anführungszeichen und Weiter-Knopf */
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.07); /* wie .hy-card */
}

.quote__mark {
  position: absolute;
  right: 22px;
  top: -12px; /* das Zeichen sitzt tief in seiner Zeile, so steht es auf Höhe der ersten Textzeile */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  color: var(--dove);
  opacity: 0.6;
}
.quote__text {
  margin: 0;
  font-family: var(--font-body); /* Outfit gibt es hier erst ab 500, auf Navy wirkt das zu kräftig */
  font-weight: 400;
  font-size: clamp(1.0625rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--white);
  text-wrap: pretty;
}
.quote__cite {
  font-size: 0.9375rem;
  color: rgb(255 255 255 / 0.78);
}
.quote__cite strong { color: var(--white); font-weight: 600; }

/* Überschrift mit Sternen rechtsbündig, bündig mit dem rechten Rand der Karte */
.quote-slider__head {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  text-align: right;
}
.quote-slider__title {
  margin: 0;
  color: var(--white);
}

/* Sterne unter der Überschrift (Wunsch Christian, 30.10.2026) */
.quote-slider__stars {
  display: flex;
  gap: 5px;
  margin-top: 12px;
  color: var(--sun);
}
.quote-slider__stars svg { width: 20px; height: 20px; fill: currentColor; }

/* Weiter-Knopf unten rechts in der Karte.
   Der Ring läuft 8 s voll, sein Ende löst den Wechsel aus (js/main.js); Hover/Fokus/außer Sicht hält ihn an. */
.quote-next {
  position: absolute;
  z-index: 3;
  right: calc(var(--q-pad) + 16px);
  bottom: calc(var(--q-pad) + 16px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgb(255 255 255 / 0.65);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.quote-next:hover { color: var(--white); background: rgb(255 255 255 / 0.06); }
.quote-next:focus-visible { outline: 1.5px solid rgb(255 255 255 / 0.7); outline-offset: 2px; }
.quote-next__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.quote-next__ring circle {
  fill: none;
  stroke: transparent;
  stroke-width: 1.2;
}
.quote-slider.is-auto .quote-next__ring circle {
  stroke: rgb(255 255 255 / 0.7);
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
  animation: quoteRing 8s linear forwards;
}
.quote-slider.is-paused .quote-next__ring circle { animation-play-state: paused; }
@keyframes quoteRing { to { stroke-dashoffset: 0; } }
/* Grundring unter dem laufenden Ring */
.quote-next::before {
  content: "";
  position: absolute;
  inset: 0.75px;
  border: 1.2px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
}

/* Ohne JS: Weiter-Knopf aus, Folien untereinander, jede Person bei ihrem Zitat */
.quote-next { display: none; }
.js .quote-next { display: grid; }
.quote-slide + .quote-slide { margin-top: var(--q-pad); }
html:not(.js) .quote-stage__img { position: static; display: block; width: 200px; height: auto; margin-bottom: 16px; }

/* Mit JS: Folien übereinander, Crossfade; beide Karten sind gleich hoch, beim Wechsel springt nichts */
.js .quote-slider__track { display: grid; }
.js .quote-slide {
  grid-area: 1 / 1;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.js .quote-slide.is-active { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .js .quote-slide { transition: none; }
}

/* Tablet: Überschrift über der Box, darin nur noch Person und Karte.
   Die Box umschließt jetzt nur die Folien, deshalb hängt die Person an .quote-slider__track. */
@media (max-width: 1000px) {
  .section--quote {
    --q-lift: 60px;
    --q-photo: 230px;
    --q-pad: 24px;
    padding-top: calc(var(--section-space) * 0.75);
  }
  .quote-slider__frame {
    padding: 0;
    border-radius: 0;
    background: none;
  }
  .quote-slider__head { margin-bottom: calc(var(--q-lift) + 24px); }
  .quote-slider__title { color: var(--navy); }
  .quote-slider__stars { color: var(--navy); } /* Pastel Sun wäre auf Weiß nicht lesbar */
  .quote-slider__track {
    position: relative;
    min-height: 320px;
    padding: var(--q-pad) var(--q-pad) var(--q-pad) calc(var(--q-photo) + var(--q-pad));
    border-radius: 28px;
    background: var(--navy-deep);
  }
  .quote { padding: 22px 60px 20px 48px; }
}

/* Schmal: Überschrift linksbündig, die Person steht mittig auf der Zitatkarte, der Kopf ragt oben aus der Box */
@media (max-width: 760px) {
  .quote-slider__head { align-items: flex-start; text-align: left; }
  .quote-slider__track {
    min-height: 0;
    padding: 0 var(--q-pad) var(--q-pad);
  }
  .quote-stage { display: flex; flex-direction: column; }
  .quote-stage__img,
  .quote-stage--bjoern .quote-stage__img {
    position: relative;
    left: auto;
    right: auto;
    z-index: 0; /* die Karte verdeckt die Schnittkante am Bein */
    align-self: center;
    height: clamp(230px, 44vw, 300px); /* beide gleich hoch: Die Karte beginnt beim Wechsel an derselben Stelle */
    margin-top: calc(var(--q-lift) * -1);
  }
  .quote {
    flex: 1;
    height: auto;
    margin-top: -1px;
    padding: 24px 60px 68px 22px;
    background: #1C3654; /* deckend (= Navy-Box + 11 % Weiß), hier liegt die Karte über dem Foto */
  }
  .quote__mark { font-size: 56px; right: 16px; top: 6px; }
  .quote-next { right: calc(var(--q-pad) + 12px); bottom: calc(var(--q-pad) + 12px); }
}
@media (max-width: 560px) {
  .section--quote { --q-pad: 14px; }
  .quote { padding: 22px 44px 64px 18px; }
}

/* ==========================================================================
   10. Anmeldung Testnutzer – heller Hintergrund, Glas-Karte in Weiß (Wunsch Christian, 05.10.2026)
   ========================================================================== */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.signup__lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: var(--fs-lead);
  color: var(--muted);
}
.signup__benefits {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.signup__benefits li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--navy);
}
.signup__benefits svg {
  box-sizing: content-box;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--navy-deep);
  color: var(--white);
  width: 14px;
  height: 14px;
}
.signup__cta {
  margin-top: 28px;
  font-size: var(--fs-lead);
  font-weight: 600;
  color: var(--navy);
}

/* Glas-Karte */
.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--navy);
}

.form { display: grid; gap: 22px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 18px;
}

.field { display: grid; gap: 8px; align-content: start; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__opt { font-weight: 400; color: #8A9AAD; }

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--navy);
  font-size: 1rem;
  appearance: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field input:hover,
.field select:hover { border-color: #B7C4D2; }
.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
  background: var(--white);
}
/* Fehler ohne zusätzliche Signalfarbe: kräftiger Navy-Rahmen + Meldung mit Icon */
.field [aria-invalid="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.field select:invalid { color: #8A9AAD; }
.field option { color: var(--navy); background: var(--white); }

/* Autofill-Hintergrund an das Feld angleichen */
.field input:-webkit-autofill {
  -webkit-text-fill-color: var(--navy);
  box-shadow: 0 0 0 1000px var(--paper) inset;
  caret-color: var(--navy);
}

.field__select { position: relative; }
.field__select select { padding-right: 44px; }
.field__select svg {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.field__error {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--navy);
}
.field__error[hidden] { display: none; }

.form__alert {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  background: var(--sun);
  border-radius: var(--r-btn);
  color: var(--navy-deep);
  font-size: 0.9375rem;
  font-weight: 500;
}
.form__alert[hidden] { display: none; }
.form__alert svg { flex: none; margin-top: 2px; }
.form__alert a { color: inherit; text-underline-offset: 3px; }

/* Fuß: Desktop Hinweis links, Button rechts (im DOM Button zuerst) */
.form__foot {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 6px;
}
.form .btn { flex: none; }
.form .btn[disabled] { opacity: 0.7; cursor: progress; }
.form-card :focus-visible { outline-color: var(--navy); }

.form__hint {
  max-width: 36ch;
  font-size: var(--fs-small);
  color: var(--muted);
}
.form__hint a { color: var(--navy); text-underline-offset: 3px; }

/* Honeypot gegen Spam – für Menschen unsichtbar */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding-block: 32px;
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { color: var(--navy); font-size: 1.5rem; }
.form-success__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--navy-deep);
}

@media (max-width: 900px) {
  .signup { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form .btn { width: 100%; }
}

/* ==========================================================================
   11. FAQ (vorerst ausgeblendet)
   ========================================================================== */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; color: var(--dove); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); }

/* ==========================================================================
   Unterseiten: Team, CTA-Band
   ========================================================================== */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.person__photo { aspect-ratio: 4 / 5; width: 100%; }
.person h3 {
  margin-top: 24px;
  font-size: 1.5rem;
  font-weight: 600;
}
.person h3:first-child { margin-top: 0; } /* ohne Foto darüber kein Abstand */
.person__role { margin-top: 6px; font-weight: 500; color: var(--dove); }
.person__bio { margin-top: 12px; color: var(--muted); }

@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
}

/* Über uns: Gründungsgeschichte unter der H1 */
.about-story {
  display: grid;
  gap: 20px;
  max-width: 64ch;
  margin-top: 32px;
}
/* alle Absätze der Geschichte in derselben Größe */
.about-story p {
  font-size: var(--fs-lead);
  color: var(--muted);
}

/* Über uns: Zwischenüberschrift „Der richtige Moment.“ im Fließtext */
.about-story__title {
  margin-top: 28px;
  font-size: clamp(1.625rem, 1.45rem + 0.75vw, 2.125rem); /* 34 → 26 px: Zwischenüberschrift, bewusst kleiner als Sektions-H2 (Wunsch Christian) */
}

/* Über uns: Mission – Aufbau wie Deck-Folie „Die Mission“ (Zeilen-Karten, Dove/Violett/Sun je Seite), Fläche im Navy der Website */
.mission__head { max-width: 760px; }
.mission__lead {
  margin-top: 16px;
  font-size: var(--fs-lead);
  color: rgb(255 255 255 / 0.8);
}
.mission__list {
  display: grid;
  gap: 16px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.mission__item {
  --accent: var(--dove);
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 8px clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 2.5vw, 28px) clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--r-card);
  background: rgb(255 255 255 / 0.04);
}
/* Akzentstrich links in der Farbe der Zeile */
.mission__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: var(--accent);
  transform-origin: top;
}
.mission__item--violet { --accent: #A48BDB; } /* aufgehelltes --violet, sonst zu wenig Kontrast auf Navy */
.mission__item--sun { --accent: var(--sun); }
.mission__word {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 1.6rem + 1.1vw, 2.5rem); /* 40 → 30 px */
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.mission__for {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--white);
}
.mission__text {
  margin-top: 6px;
  color: rgb(255 255 255 / 0.72);
}
.mission__close {
  margin-top: clamp(32px, 4vw, 48px);
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 500;
  font-style: italic;
  color: var(--sun);
}

@media (max-width: 900px) {
  .mission__item { grid-template-columns: 1fr; align-items: start; }
}

/* Mission: Einblenden beim Scrollen (einmalig). Ausgangszustand nur, wenn JS aktiv und Bewegung erlaubt (.is-armed) */
.mission { --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1); }
.mission__item:nth-child(1) { --i: 0; }
.mission__item:nth-child(2) { --i: 1; }
.mission__item:nth-child(3) { --i: 2; }

.mission.is-armed .mission__head,
.mission.is-armed .mission__item,
.mission.is-armed .mission__close {
  opacity: 0;
  transform: translateY(28px);
}
.mission.is-armed .mission__item::before { transform: scaleY(0); }
.mission.is-armed .mission__word { opacity: 0; transform: translateX(-20px); }
.mission.is-armed .mission__body { opacity: 0; transform: translateY(8px); }

.mission.is-in .mission__head,
.mission.is-in .mission__item,
.mission.is-in .mission__close,
.mission.is-in .mission__item::before,
.mission.is-in .mission__word,
.mission.is-in .mission__body {
  opacity: 1;
  transform: none;
}
.mission.is-in .mission__head {
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
}
.mission.is-in .mission__item {
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out), border-color 0.6s ease;
  transition-delay: calc(0.25s + var(--i) * 0.22s);
}
.mission.is-in .mission__item::before {
  transition: transform 0.6s var(--ease-out);
  transition-delay: calc(0.55s + var(--i) * 0.22s);
}
.mission.is-in .mission__word {
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(0.6s + var(--i) * 0.22s);
}
.mission.is-in .mission__body {
  transition: opacity 0.6s ease, transform 0.7s var(--ease-out);
  transition-delay: calc(0.75s + var(--i) * 0.22s);
}
.mission.is-in .mission__close {
  transition: opacity 0.7s ease, transform 0.8s var(--ease-out);
  transition-delay: 1.45s;
}

/* Sektion mit reduziertem Innenabstand (z. B. Gründer auf Über uns) */
.section--tight { padding-block: clamp(32px, 4vw, 48px); }

/* zwei Navy-Sektionen direkt hintereinander: feine Trennlinie */
.section--navy + .section--navy { border-top: 1px solid rgb(255 255 255 / 0.08); }
/* Navy-Sektion als letzte vor dem (ebenfalls navy) Footer: dieselbe feine Trennlinie */
main > .section--navy:last-child { border-bottom: 1px solid rgb(255 255 255 / 0.08); }

/* Über uns: Geschichte links, Teamfoto rechts – oben bündig mit der H1, bleibt beim Scrollen stehen */
.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  grid-template-areas:
    "title photo"
    "story photo";
  grid-template-rows: auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.about-intro h1 { grid-area: title; }
.about-intro .about-story { grid-area: story; }
.about-intro__photo {
  grid-area: photo;
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  width: 100%;
  border-radius: var(--r-card);
}

@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
    grid-template-areas: "title" "photo" "story";
    grid-template-rows: auto;
  }
  .about-intro__photo { position: static; max-width: 340px; margin-top: 28px; }
}

/* Karriere: offene Stellen als ruhige Liste mit Trennlinien */
.jobs {
  max-width: 760px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.job {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}
.job__meta { margin-top: 4px; color: var(--muted); }
.jobs__note { margin-top: 32px; color: var(--muted); }
.job__title { color: inherit; text-decoration: none; }
.job__title:hover { text-decoration: underline; text-decoration-color: var(--dove); text-underline-offset: 4px; }

/* Stellenanzeige (karriere-<stelle>.html) */
.jobad-intro__back { margin-bottom: 20px; font-size: var(--fs-small); }
.jobad-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.jobad-facts .chip {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 500;
}
.jobad-intro__cta { margin-top: 32px; }

.jobad > * { max-width: 760px; }
.jobad__lead {
  max-width: 60ch;
  font-size: var(--fs-lead);
  color: var(--navy);
}
.jobad__block { margin-top: clamp(48px, 6vw, 72px); }
.jobad__block h2 {
  margin-bottom: 20px;
  font-size: clamp(1.625rem, 1.45rem + 0.75vw, 2.125rem); /* 34 → 26 */
}
.jobad__block p { max-width: 60ch; }
.jobad__block p + p { margin-top: 16px; }

.jobad__block .jobad__quote {
  margin-top: 28px;
  padding-left: 20px;
  border-left: 3px solid var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}

.jobad__list {
  display: grid;
  gap: 14px;
  max-width: 64ch;
  margin: 0;
  padding-left: 22px;
}
.jobad__list li::marker { color: var(--dove); }
.jobad__list strong { color: var(--navy); }
/* Profil: Häkchen wie bei der Testnutzer-Anmeldung */
.jobad__list--check { padding-left: 0; list-style: none; gap: 12px; }
.jobad__list--check li {
  position: relative;
  padding-left: 34px;
}
.jobad__list--check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.perks li {
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.perks h3 { font-size: 1.0625rem; color: var(--navy); }
.perks p { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; }

/* Bewerbung: Text oben bündig neben dem (hohen) Formular, bleibt beim Scrollen stehen */
.jobad-apply { align-items: start; }
.jobad-apply .signup__text { position: sticky; top: calc(var(--header-h) + 32px); }
@media (max-width: 900px) {
  .jobad-apply .signup__text { position: static; }
}
.jobad-contact { margin-top: 24px; font-weight: 600; color: var(--navy); }
.jobad-note { margin-top: 48px; font-size: var(--fs-small); color: var(--muted); }

@media (max-width: 560px) {
  .perks { grid-template-columns: 1fr; }
  .jobad__block .jobad__quote { font-size: 1.125rem; }
}

/* Formular: Textfeld und Datei-Upload (Bewerbung) */
.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--navy);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field textarea:hover { border-color: #B7C4D2; }
.field textarea:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-color: var(--navy);
  background: var(--white);
}
.field__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Ablagefläche: das echte <input type="file"> liegt unsichtbar darüber */
.field .upload {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 22px 16px;
  background: var(--paper);
  border: 1.5px dashed #B7C4D2;
  border-radius: var(--r-btn);
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.field .upload:hover,
.field .upload.is-drag { border-color: var(--navy); background: var(--white); }
.field .upload:focus-within { outline: 2px solid var(--navy); outline-offset: 2px; }
.field .upload:has([aria-invalid="true"]) { border-style: solid; border-color: var(--navy); }
.upload svg { color: var(--dove); }
.upload__text { color: var(--navy); font-size: 0.9375rem; }
.upload__text strong { font-weight: 600; text-decoration: underline; text-decoration-color: var(--dove); text-underline-offset: 3px; }
.upload__hint { font-size: 0.8125rem; }
.field .upload__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
/* Liste voll (Lebenslauf: eine Datei) → Ablagefläche ausblenden */
.field.is-full .upload { display: none; }

.upload__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.upload__list:empty { display: none; }
.upload__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--navy);
  font-size: 0.9375rem;
}
.upload__item > svg { flex: none; color: var(--dove); }
.upload__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload__size { flex: none; color: var(--muted); font-size: 0.8125rem; }
.upload__remove {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.upload__remove:hover { background: var(--paper); color: var(--navy); }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}
.cta-band p {
  margin-top: 12px;
  font-size: var(--fs-lead);
  color: rgb(255 255 255 / 0.85);
}

/* ==========================================================================
   Bewegung & Glas (18.10.2026, Wunsch Christian: „mehr Apple-Eleganz“)
   Sanfte Fade-ins, animierte Ränder, Liquid Glass. Alles respektiert
   prefers-reduced-motion; ohne JS ist alles sofort sichtbar.
   ========================================================================== */

/* ----- Sanftes Einblenden ([data-reveal], js/main.js setzt .is-in) ----- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal]:not([data-reveal="words"]),
  .js [data-reveal="words"] .story__w,
  .js [data-reveal="words"] .story__fade {
    transition:
      opacity 0.8s var(--ease-soft) var(--d, 0s),
      transform 0.8s var(--ease-soft) var(--d, 0s),
      filter 0.8s var(--ease-soft) var(--d, 0s);
  }
  .js [data-reveal]:not([data-reveal="words"]):not(.is-in) {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(4px);
  }
  /* Auftakt der Story: Wörter nacheinander, aus der Unschärfe */
  .js [data-reveal="words"] .story__w { display: inline-block; --d: calc(var(--i) * 80ms + 60ms); }
  .js [data-reveal="words"] .story__fade { --d: calc(var(--i) * 80ms + 60ms); }
  .js [data-reveal="words"]:not(.is-in) .story__w { opacity: 0; transform: translateY(0.3em); filter: blur(8px); }
  .js [data-reveal="words"]:not(.is-in) .story__fade { opacity: 0; transform: translateY(12px); filter: blur(4px); }
}

/* ----- Buttons: weicher Wechsel, leichtes Nachgeben beim Klick ----- */
.btn {
  transition:
    background-color 0.3s var(--ease-soft),
    color 0.3s var(--ease-soft),
    border-color 0.3s var(--ease-soft),
    transform 0.3s var(--ease-soft);
}
.btn:active { transform: scale(0.97); }

/* ----- Liquid Glass -----
   Milchglas mit Lichtkante oben (wie visionOS/iOS), nur wo etwas dahinter liegt. */
.glass {
  background: var(--glass-bg, rgb(255 255 255 / 0.55));
  -webkit-backdrop-filter: blur(18px) saturate(1.8);
  backdrop-filter: blur(18px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.85),
    inset 0 0 0 1px rgb(255 255 255 / 0.5),
    0 10px 30px -14px rgb(2 31 65 / 0.3);
}

/* Header beim Scrollen: nur die feine Linie. Kein backdrop-filter – bei 94 % Deckkraft war das Glas
   kaum sichtbar, musste aber bei jedem Scroll-Frame über die volle Breite neu gerechnet werden. */
.site-header {
  transition: border-color 0.4s var(--ease-soft);
}
.site-header.is-scrolled {
  border-bottom-color: rgb(255 255 255 / 0.1);
}
.site-header:has(.site-nav.is-open) { background: var(--navy-deep); } /* aufgeklapptes Menü bleibt gut lesbar */

/* Bühne: HeyOptero-Panel, Shop-Popup und Bestätigung als Glas über der App */
.st-hey {
  border-color: transparent;
  background: rgb(255 255 255 / 0.74);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
}
.st-hey__head { background: rgb(28 53 87 / 0.92); }
.st-hey__body { background: transparent; }
.st-shop {
  background: rgb(2 31 65 / 0.2);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.st-shop__panel {
  background: rgb(255 255 255 / 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  backdrop-filter: blur(24px) saturate(1.8);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 24px 48px -16px rgb(2 31 65 / 0.4);
}
.st-proj__toast {
  background: rgb(28 53 87 / 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18);
}

/* ----- Animierte Ränder -----
   Ein Lichtpunkt wandert langsam am Rand entlang (conic-gradient, als Rahmen ausmaskiert). */
@property --ring-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes ringTurn { to { --ring-a: 360deg; } }

.ring::after {
  content: "";
  position: absolute;
  inset: var(--ring-inset, 0);
  z-index: 1;
  padding: var(--ring-w, 1px);
  border-radius: var(--ring-r, inherit);
  background: conic-gradient(from var(--ring-a), var(--ring-colors));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ringTurn var(--ring-speed, 8s) linear infinite;
  pointer-events: none;
}

/* Hero-CTA: feine Lichtbahn mit Abstand um den Button */
.ring--halo {
  position: relative;
  --ring-inset: -5px;
  --ring-r: calc(var(--r-btn) + 5px);
  --ring-speed: 7s;
  --ring-colors: rgb(255 255 255 / 0.12) 0deg, rgb(255 255 255 / 0.12) 200deg, rgb(255 255 255 / 0.95) 290deg, rgb(247 237 175 / 0.8) 320deg, rgb(255 255 255 / 0.12) 360deg;
}
/* Formular-Karte: Licht läuft über die Linie */
.ring--line {
  --ring-inset: -1px;
  --ring-speed: 10s;
  --ring-colors: var(--line) 0deg, var(--line) 230deg, var(--dove) 300deg, var(--navy) 320deg, var(--line) 360deg;
}
/* HeyOptero (KI-Moment): Farbband in Violett, Optero-Blau und Sun */
.ring--ai {
  --ring-w: 1.5px;
  --ring-speed: 4s;
  --ring-colors: var(--violet) 0deg, var(--dove) 120deg, var(--sun) 200deg, var(--violet) 280deg, var(--violet) 360deg;
}
.st-fab.ring--ai { --ring-inset: -3px; --ring-w: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ring::after { animation: none; }
}

/* ==========================================================================
   Cookie-Hinweis (Aufbau in main.js, Muster wie MTCS)
   ========================================================================== */
.consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  isolation: isolate;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 20px;
  /* Liquid Glass: durchscheinendes Navy, starke Unschärfe, Lichtkante oben, leichter Glanz */
  background:
    linear-gradient(145deg, rgb(255 255 255 / 0.14) 0%, rgb(255 255 255 / 0.03) 38%, rgb(255 255 255 / 0) 60%),
    rgb(2 31 65 / 0.84);
  -webkit-backdrop-filter: blur(28px) saturate(1.8);
  backdrop-filter: blur(28px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.28),
    inset 0 0 0 1px rgb(255 255 255 / 0.04),
    0 30px 70px -20px rgb(2 31 65 / 0.6);
  color: var(--white);
  font-size: var(--fs-small);
  animation: consentIn 0.5s var(--ease-soft, ease) both;
}
@keyframes consentIn { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }

.consent__head { display: flex; align-items: center; gap: 12px; }
.consent__head .brand { font-size: 1.25rem; }
.consent__title { margin: 0; color: var(--white); font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; }
.consent__text { margin-top: 12px; color: rgb(255 255 255 / 0.75); line-height: 1.6; }
.consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.consent__actions--single { grid-template-columns: 1fr; }
.consent__actions .btn { min-height: 42px; padding: 9px 14px; font-size: 0.9375rem; }
.consent__meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.consent__meta--end { justify-content: flex-end; }
.consent__links { display: flex; gap: 16px; }
.consent__full { display: grid; grid-column: 1 / -1; }
/* „Anpassen“: transparent mit feiner weißer Umrandung */
.consent__btn-outline {
  border: 1px solid rgb(255 255 255 / 0.7);
  background: rgb(255 255 255 / 0.04);
  color: var(--white);
}
.consent__btn-outline:hover { border-color: var(--white); background: rgb(255 255 255 / 0.1); }
.consent__meta a,
.consent__meta button {
  padding: 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.6);
  font: inherit;
  font-size: 0.8125rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(255 255 255 / 0.3);
  cursor: pointer;
}
.consent__meta a:hover,
.consent__meta button:hover { color: var(--white); }
.consent :focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.consent__cats { display: grid; gap: 10px; margin-top: 16px; }
.consent__cat { border: 1px solid rgb(255 255 255 / 0.14); border-radius: var(--r-btn); background: rgb(255 255 255 / 0.06); }
.consent__cat-head { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; }
.consent__cat-body { flex: 1; min-width: 0; }
.consent__cat-title { margin: 0; color: var(--white); font-weight: 600; }
.consent__cat-desc { margin-top: 2px; color: rgb(255 255 255 / 0.65); font-size: 0.8125rem; line-height: 1.5; }
.consent__chip {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.7);
  font-size: 0.75rem;
  font-weight: 600;
}
.consent__switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.consent__switch::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.2s ease;
}
.consent__switch[aria-checked="true"] { background: var(--dove); }
.consent__switch[aria-checked="true"]::after { transform: translateX(20px); }
.consent__table { width: calc(100% - 32px); margin: 0 16px 14px; border-collapse: collapse; color: rgb(255 255 255 / 0.65); font-size: 0.75rem; }
.consent__table th { padding: 8px 8px 6px 0; color: rgb(255 255 255 / 0.45); font-weight: 600; text-align: left; border-top: 1px solid rgb(255 255 255 / 0.1); }
.consent__table td { padding: 6px 8px 6px 0; vertical-align: top; border-top: 1px solid rgb(255 255 255 / 0.06); }
.consent__table code { color: var(--white); }

@media (max-width: 560px) {
  .consent { right: 16px; bottom: 16px; padding: 20px; }
}

/* Footer: „Cookie-Einstellungen“ sieht aus wie die anderen Rechtslinks */
.site-footer__consent {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.site-footer__consent { color: rgb(255 255 255 / 0.8); }
.site-footer__consent:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Kern-Funktionen (#kernfunktionen, 01.11.2026): Phasen als Tabs, Text links, Demo rechts.
   Alles in der Szene ist in em, die Bühne setzt die Schriftgröße über ihre Breite (cqw).
   Szenen laufen einmal ab: Der Grundzustand im CSS ist das Endbild, die Animationen kommen
   nur davor (--t = Startzeit). Sie starten neu, weil ihre Hülle aus hidden zurückkommt.
   ========================================================================== */
.kf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.kf-head { text-align: center; margin-inline: auto; max-width: 820px; }
.kf-head .lead { margin-inline: auto; }

/* --- Phasenleiste: Linie zeigt, wie weit das Projekt ist --- */
.kf-tabs-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: clamp(28px, 3.5vw, 44px);
  box-shadow: inset 0 -2px 0 var(--line);
}
.kf-tabs-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--navy);
  transform-origin: left;
  transform: scaleX(calc((var(--kf-fort, 0) * 5 + 1) / 6));
  transition: transform 0.5s var(--ease-soft);
}
.kf-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 8px 18px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}
.kf-tab:hover,
.kf-tab[aria-selected="true"] { color: var(--navy); }
.kf-tab[aria-selected="true"] { font-weight: 600; }
.kf-tab:focus-visible { outline: 2px solid var(--violet); outline-offset: -4px; border-radius: var(--r-btn); }
.kf-tab__ic { flex: none; width: 20px; height: 20px; color: var(--dove); }
.kf-tab[aria-selected="true"] .kf-tab__ic { color: var(--navy); }

/* --- Phase: Text + Demo --- */
.kf-panel { display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); grid-template-rows: auto 1fr; column-gap: clamp(28px, 4vw, 56px); align-items: start; }
.kf-panel:focus-visible { outline: 2px solid var(--violet); outline-offset: 6px; border-radius: var(--r-card); }
.kf-copy { padding-top: 8px; }
.kf-stagewrap { grid-column: 2; grid-row: 1 / 3; }
.kf-copy__title { margin: 0 0 14px; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.kf-copy p { margin: 0; color: var(--muted); }
.kf-copy strong { color: var(--navy); font-weight: 600; }
.kf-next {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
  margin-top: 20px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.kf-next:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; border-radius: 4px; }

.kf-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.kf-switch__btn {
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.kf-switch__btn:hover { color: var(--navy); }
.kf-switch__btn[aria-pressed="true"] { background: var(--navy); box-shadow: none; color: var(--white); }
.kf-switch__btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

/* --- Bühne --- */
.kf-stage {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  aspect-ratio: 25 / 21;
  border-radius: var(--r-card);
  background-color: var(--navy-deep);
  background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1.5px);
  background-size: 22px 22px;
  --kf-rand: 50px; /* Mindestabstand der Szene zum Bühnenrand, auf jeder Breite */
}
.kf-demo { position: absolute; inset: 0; }
.kf-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--kf-rand);
  color: var(--navy);
  /* Schrift aus der Breite innerhalb des Rands: 54em passen immer hinein */
  font-size: calc((100cqw - 2 * var(--kf-rand)) / 54);
  line-height: 1.35;
}
.kf-scene p { margin: 0; max-width: none; }
/* Nur ein Fenster auf der Bühne: darf größer sein als neben einem Handy */
.kf-scene:not(.kf-duo):not(.kf-ai) { font-size: calc((100cqw - 2 * var(--kf-rand)) / 46.7); }

@media (max-width: 900px) {
  /* Phasen laufen seitlich, Text über der Demo */
  .kf-tabs-bar { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .kf-tabs-bar::-webkit-scrollbar { display: none; }
  .kf-tabs-bar::after { display: none; }
  .kf-tab { flex: none; padding: 12px 14px 14px; font-size: 1rem; }
  .kf-tab[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--navy); }
  /* Weiter-Link mobil unter der Demo */
  .kf-panel { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 20px; }
  .kf-copy { padding-top: 0; }
  .kf-stagewrap, .kf-next { grid-column: 1; grid-row: auto; }
  .kf-next { margin-top: 0; }
  .kf-stage { aspect-ratio: 5 / 6; }
  .kf-scene, .kf-scene:not(.kf-duo):not(.kf-ai) { font-size: calc((100cqw - 2 * var(--kf-rand)) / 34.76); }
}

/* Ohne JS: alle Phasen untereinander, keine Bedienelemente */
html:not(.js) .kf-tabs-bar,
html:not(.js) .kf-next,
html:not(.js) .kf-switch { display: none; }
html:not(.js) .kf-panel[hidden],
html:not(.js) .kf-demo[hidden] { display: grid !important; }
html:not(.js) .kf-panel { margin-bottom: 40px; }

/* Bühne nicht erreicht oder wieder verlassen: Szenen warten am Anfang (js/main.js [data-kf]) */
.js .kf:not(.is-seen) .kf-stage *,
.js .kf:not(.is-seen) .kf-stage *::before,
.js .kf:not(.is-seen) .kf-stage *::after { animation-play-state: paused !important; }

/* --- Zeitleisten-Bausteine (--t = Start, --dur = Dauer) --- */
.kf-i { animation: kfUp 0.55s var(--ease-soft) var(--t, 0s) backwards; }
.kf-f { animation: kfFade 0.5s ease var(--t, 0s) backwards; }
.kf-p { animation: kfPop 0.45s var(--ease-soft) var(--t, 0s) backwards; }
.kf-o { opacity: 0; visibility: hidden; animation: kfOut 0.35s ease var(--t, 0s) both; }
.kf-d { stroke-dasharray: 1; animation: kfDraw var(--dur, 0.7s) ease-in-out var(--t, 0s) backwards; }
.kf-w { transform-origin: left; animation: kfGrow var(--dur, 1s) var(--ease-soft) var(--t, 0s) backwards; }
@keyframes kfUp { from { opacity: 0; transform: translateY(0.8em); } }
@keyframes kfFade { from { opacity: 0; } }
@keyframes kfPop { from { opacity: 0; transform: scale(0.82); } }
@keyframes kfOut { from { opacity: 1; visibility: visible; } to { opacity: 0; visibility: hidden; } }
@keyframes kfDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes kfGrow { from { transform: scaleX(0); } }

/* --- Bausteine: Fenster --- */
.kf-win {
  width: 100%;
  max-width: 50em;
  overflow: hidden;
  border-radius: 1em;
  background: var(--white);
  box-shadow: 0 1.6em 3.6em rgb(0 0 0 / 0.38);
}
.kf-win__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  padding: 0.85em 1.3em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.kf-win__top > b { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 1.1em; }
.kf-tabs { display: flex; gap: 1em; color: var(--muted); font-size: 0.9em; }
.kf-tabs .is-on { color: var(--navy); font-weight: 600; box-shadow: 0 0.55em 0 -0.42em var(--navy); }
.kf-pad { display: grid; gap: 0.8em; padding: 1.3em; }
.kf-pad--tight { gap: 0.1em; padding-block: 0.6em 1.1em; }
.kf-sub { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 1.2em; }

/* --- Bausteine: Handy (Look der iOS-App, wie im Hero) --- */
.kf-ph {
  flex: none;
  width: 19.5em;
  height: 41em;
  padding: 0.6em;
  border-radius: 2.8em;
  background: #0b1a2c;
  box-shadow: 0 1.6em 3.6em rgb(0 0 0 / 0.42), inset 0 0 0 1px rgb(255 255 255 / 0.14);
}
.kf-ph__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 2.25em;
  background: var(--white);
}
.kf-ph__bar {
  flex: none;
  position: relative;
  padding: 2.6em 1em 0.75em;
  background: var(--navy-deep);
  color: var(--dove);
  text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
}
.kf-ph__bar b { font-weight: 800; font-size: 1.05em; }
.kf-ph__island { position: absolute; top: 0.65em; left: 50%; width: 5.6em; height: 1.45em; margin-left: -2.8em; border-radius: 1em; background: #000; }
.kf-ph__body { flex: 1; min-height: 0; padding: 1em; overflow: hidden; }
.kf-ph__tabs { flex: none; display: flex; justify-content: space-around; padding: 0.7em 0.5em 1.1em; border-top: 1px solid var(--line); color: var(--muted); }
.kf-ph__tabs svg { display: block; width: 1.5em; height: 1.5em; opacity: 0.55; }
.kf-ph__tabs .is-on { color: var(--navy); }
.kf-ph__tabs .is-on svg { opacity: 1; }

/* Zwei Geräte: Desktop nebeneinander, Mobil nacheinander (das erste geht, das zweite kommt) */
.kf-duo { display: flex; align-items: center; justify-content: center; gap: 1.6em; }
.kf-duo .kf-win { flex: 1; min-width: 0; }
@media (min-width: 901px) {
  /* Fenster neben dem Handy: so hoch wie der weiße Screen (Handy 41em minus Rand 2 × 0.6em), Button steht unten, der Inhalt füllt den Rest */
  .kf-duo .kf-win { display: flex; flex-direction: column; height: 39.8em; }
  .kf-duo .kf-win > .kf-pad { display: flex; flex: 1; flex-direction: column; min-height: 0; }
  .kf-duo .kf-win > .kf-pad > .kf-btn { align-self: flex-start; margin-top: auto; }
  .kf-duo .kf-win > .kf-3d { flex: 1; height: auto; min-height: 0; }
  .kf-duo .kf-win > .kf-pad--tight { flex: none; }
  .kf-duo .kf-win > .kf-pad--tight > .kf-btn { margin-top: 0.7em; }
  .kf-duo .kf-win > .kf-pad > .kf-draw { flex: 1; min-height: 0; max-height: none; }
  .kf-duo .kf-week__row { padding-block: 1.25em; }
}
@media (max-width: 900px) {
  .kf-duo { display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; }
  .kf-duo > * { grid-area: 1 / 1; }
  .kf-duo__a { opacity: 0; visibility: hidden; animation: kfOut 0.45s ease var(--leave, 5s) both; }
  .kf-duo__b, .kf-duo__b .kf-p, .kf-duo__b .kf-i { animation-delay: var(--tm, var(--t, 0s)); }
  .kf-duo .kf-win { width: 100%; }
}

/* --- Bausteine: Kleinteile --- */
.kf-spark { flex: none; width: 1.1em; height: 1.1em; color: var(--violet); }
.kf-sk { display: block; width: 100%; max-width: 6em; height: 0.62em; border-radius: 0.4em; background: var(--line); }
.kf-sk--dark { background: #b9c8d6; }
.kf-sk--lg { height: 0.95em; }
.kf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6em 1em;
  border-radius: 0.7em;
  font-weight: 600;
  font-size: 0.95em;
  white-space: nowrap;
}
.kf-btn--navy { background: var(--navy); color: var(--white); }
.kf-btn--ai { background: var(--violet); color: var(--white); }
.kf-btn--sun { background: var(--sun); color: var(--navy); }
.kf-btn--ghost { box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-weight: 500; }
.kf-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.3em 0.8em;
  border-radius: 99em;
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9em;
  white-space: nowrap;
}
.kf-pill svg { width: 0.9em; height: 0.9em; }
.kf-pill--sun { background: var(--sun); color: var(--navy); }
.kf-kv { display: flex; justify-content: space-between; gap: 1em; padding: 0.45em 0; border-bottom: 1px solid var(--line); }
.kf-kv span { color: var(--muted); }
.kf-kv b { font-weight: 600; white-space: nowrap; }
.kf-pad .kf-btn, .kf-form .kf-btn { justify-self: start; }
.kf-pad--tight .kf-btn { margin-top: 0.7em; }

.kf-msg { padding: 0.6em 0.85em; border-radius: 1em; background: var(--paper); }
.kf-msg--me { justify-self: end; margin-left: 2em !important; border-bottom-right-radius: 0.3em; background: var(--navy); color: var(--white); }
.kf-msg--ai { justify-self: start; margin-right: 1.5em !important; border-bottom-left-radius: 0.3em; }
.kf-note { display: flex; align-items: center; gap: 0.45em; color: var(--violet); font-weight: 600; font-size: 0.92em; }
.kf-steps { display: flex; flex-wrap: wrap; gap: 0.5em 1.1em; color: var(--navy); font-weight: 500; }
.kf-steps span { display: inline-flex; align-items: center; gap: 0.4em; }
.kf-steps svg { width: 0.95em; height: 0.95em; color: var(--dove); }
.kf-steps--tight { font-size: 0.92em; }

.kf-form { display: flex; flex-direction: column; gap: 0.5em; }
.kf-form small { margin-top: 0.3em; color: var(--muted); font-size: 0.86em; }
.kf-form__name { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 1.4em; }
.kf-form__line { font-weight: 600; font-size: 1.05em; }
.kf-form__save { margin-top: auto; }
.kf-form__signed { align-self: center; margin-top: 0.4em; }
.kf-chips { display: flex; gap: 0.35em; }
.kf-chips span { padding: 0.15em 0.65em; border-radius: 99em; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 0.86em; }
.kf-chips .is-on { background: var(--navy); color: var(--white); box-shadow: none; }
.kf-plan { display: block; width: 100%; }
.kf-plan text { fill: var(--muted); font: 500 11px "DM Sans", system-ui, sans-serif; }

.kf-chat { display: grid; align-content: start; gap: 0.7em; }
.kf-photo { margin: 0; overflow: hidden; justify-self: end; width: 86%; border-radius: 0.9em; box-shadow: 0 0 0 1px var(--line); }
.kf-photo svg { display: block; width: 100%; height: auto; }
.kf-photo__txt text { fill: #3a4a5e; font: italic 500 13px "DM Sans", system-ui, sans-serif; text-anchor: middle; }

/* --- HeyOptero --- */
.kf-ai { display: flex; align-items: center; justify-content: center; gap: 1.4em; }
.kf-ai__src { display: grid; gap: 0.6em; }
.kf-src {
  padding: 0.5em 0.95em;
  border-radius: 0.7em;
  background: rgb(124 92 191 / 0.22);
  box-shadow: inset 0 0 0 1px #a48bdb;
  color: var(--white);
  font-weight: 500;
  white-space: nowrap;
  animation: kfSrc 0.5s ease var(--t, 0s) backwards;
}
@keyframes kfSrc { from { background: rgb(255 255 255 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); color: rgb(255 255 255 / 0.6); } }
.kf-ai__panel { display: flex; flex-direction: column; width: 31em; height: 38em; overflow: hidden; border-radius: 1.2em; background: var(--white); box-shadow: 0 0 0 2px var(--violet), 0 1.6em 3.6em rgb(0 0 0 / 0.38); }
.kf-ai__head { display: flex; align-items: center; gap: 0.5em; padding: 0.9em 1.2em; border-bottom: 1px solid var(--line); font-family: "Outfit", system-ui, sans-serif; }
.kf-ai__head b { font-weight: 600; font-size: 1.1em; color: var(--violet); }
.kf-ai__chat { flex: 1; min-height: 0; display: grid; align-content: start; gap: 0.75em; padding: 1.2em; }
.kf-ai__acts { display: flex; gap: 0.5em; }
.kf-ai__input { display: flex; align-items: center; justify-content: space-between; margin: 0 1em 1em; padding: 0.7em 1em; border-radius: 0.8em; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.kf-ai__input svg { width: 1.2em; height: 1.2em; color: var(--violet); }
@media (max-width: 900px) {
  .kf-ai { flex-direction: column; gap: 1em; }
  .kf-ai__src { grid-template-columns: repeat(3, auto); justify-content: center; }
  .kf-ai__src .kf-src { padding: 0.35em 0.6em; font-size: 0.9em; }
  /* margin: Der violette Ring (2px) zählt mit zum Abstand */
  .kf-ai__panel { width: calc(100% - 4px); height: auto; flex: 1; min-height: 0; margin: 2px; }
}

/* HeyOptero: zweite Frage im selben Chat, die Antwort bringt ein Säulendiagramm mit */
.kf-ai__turn { grid-area: 1 / 1; display: grid; align-content: start; gap: 0.75em; min-width: 0; }
.kf-chart { display: flex; flex-direction: column; min-width: 0; height: 16.5em; padding: 0.8em 0.95em 0.5em; border-radius: 0.9em; box-shadow: inset 0 0 0 1px var(--line); }
.kf-chart__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1em; }
.kf-chart__head b { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 1.1em; }
.kf-chart__head small { color: var(--muted); font-size: 0.86em; white-space: nowrap; }
.kf-chart__plot { position: relative; flex: 1; min-height: 0; margin-top: 0.5em; }
.kf-chart__grid, .kf-chart__cols { position: absolute; inset: 0.7em 0 1.8em 3em; }
.kf-chart__grid { color: var(--muted); }
.kf-chart__grid span { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--line); font-size: 0.82em; line-height: 0; white-space: nowrap; text-indent: -3.6em; }
.kf-chart__grid span:last-child { border-top-color: var(--muted); }
.kf-chart__cols { display: flex; align-items: stretch; gap: 0.5em; }
.kf-chart__col { position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; }
.kf-chart__col i { display: block; width: 62%; border-radius: 0.35em 0.35em 0 0; background: var(--dove); animation: kfRise 0.8s var(--ease-soft) var(--t, 0s) backwards; }
.kf-chart__col.is-peak i { background: var(--navy); animation: kfRise 0.8s var(--ease-soft) var(--t, 0s) backwards, kfPeak 0.5s ease 12.3s backwards; }
.kf-chart__col span { position: absolute; top: 100%; left: 50%; margin-top: 0.45em; transform: translateX(-50%); color: var(--muted); font-size: 0.86em; line-height: 1.2; white-space: nowrap; }
.kf-chart__col.is-peak span { color: var(--navy); font-weight: 600; }
@keyframes kfRise { from { height: 0; } }
@keyframes kfPeak { from { background: var(--dove); } }
@media (max-width: 900px) {
  /* Der längste Eintrag bekommt seine eigene Zeile */
  .kf-ai__src .kf-src:last-child { grid-column: 1 / -1; justify-self: center; }
}

/* --- 3D-Aufmaß: Handy mit LiDAR-Scan --- */
.kf-scan { position: absolute; inset: 0; z-index: 2; background: #10253f; color: var(--white); }
.kf-scan__room { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-scan__lines path { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.kf-scan__lines .kf-scan__open { stroke: #9ec1d9; }
.kf-scan__top { position: absolute; top: 2.6em; left: 0.8em; right: 0.8em; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.92em; }
.kf-scan__top span { padding: 0.35em 0.8em; border-radius: 99em; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.5); }
.kf-scan__top .kf-scan__done { background: var(--white); color: var(--navy); box-shadow: none; }
.kf-scan__mini { position: absolute; left: 50%; bottom: 1.6em; width: 8.4em; margin-left: -4.2em; padding: 0.5em; border-radius: 0.8em; background: rgb(255 255 255 / 0.1); }
.kf-scan__mini path { fill: none; stroke: var(--white); stroke-width: 2; stroke-linejoin: round; }
.kf-scan__calc { position: absolute; top: 50%; left: 1.5em; right: 1.5em; display: flex; align-items: center; justify-content: center; gap: 0.6em; padding: 0.85em; border-radius: 0.9em; transform: translateY(-50%); background: rgb(255 255 255 / 0.92); color: var(--navy); font-weight: 500; }
.kf-spin { flex: none; width: 1em; height: 1em; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: kfSpinner 0.8s linear infinite; }
@keyframes kfSpinner { to { transform: rotate(360deg); } }

/* 3D-Modell: echte CSS-3D-Wände. Innenseiten zeigen nach innen, die Wand zur Kamera verschwindet (Puppenhaus-Ansicht wie in RaumModell.js). */
.kf-3d { display: grid; place-items: center; height: 19em; perspective: 70em; overflow: hidden; background: var(--paper); }
.kf-3d__room { --w: 15.4em; --d: 12.8em; --h: 7.4em; position: relative; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-30deg) rotateY(-28deg); animation: kfOrbit 24s linear infinite; }
@keyframes kfOrbit { from { transform: rotateX(-30deg) rotateY(-28deg); } to { transform: rotateX(-30deg) rotateY(332deg); } }
.kf-3d__floor {
  position: absolute;
  left: calc(var(--w) / -2);
  top: calc(var(--d) / -2);
  width: var(--w);
  height: var(--d);
  transform: translateY(calc(var(--h) / 2)) rotateX(90deg);
  background-color: var(--white);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 1.45em 1.45em;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.kf-3d__dim { position: absolute; left: 0; right: 0; bottom: 0.25em; text-align: center; color: var(--navy); font-weight: 600; font-size: 0.8em; }
.kf-3d__wall {
  position: absolute;
  top: calc(var(--h) / -2);
  height: var(--h);
  backface-visibility: hidden;
  background: #dfe7ef;
  box-shadow: inset 0 0 0 1.5px var(--navy);
}
.kf-3d__wall--b, .kf-3d__wall--f { left: calc(var(--w) / -2); width: var(--w); }
.kf-3d__wall--r, .kf-3d__wall--l { left: calc(var(--d) / -2); width: var(--d); background: #cfdbe6; }
.kf-3d__wall--b { transform: translateZ(calc(var(--d) / -2)); }
.kf-3d__wall--f { transform: rotateY(180deg) translateZ(calc(var(--d) / -2)); }
.kf-3d__wall--r { transform: rotateY(-90deg) translateZ(calc(var(--w) / -2)); }
.kf-3d__wall--l { transform: rotateY(90deg) translateZ(calc(var(--w) / -2)); }
.kf-3d__win { position: absolute; left: 18%; top: 14%; width: 22%; height: 52%; background: var(--white); box-shadow: inset 0 0 0 2px var(--dove); }
.kf-3d__win--2 { left: 58%; }
.kf-3d__door { position: absolute; left: 32%; bottom: 0; width: 34%; height: 80%; background: var(--navy); }

/* --- Bauteilskizze --- */
.kf-draw { display: block; width: 100%; max-height: 20em; }
.kf-draw text { font: 600 12px "DM Sans", system-ui, sans-serif; fill: var(--navy); text-anchor: middle; }
.kf-draw__dim path { fill: none; stroke: var(--dove); stroke-width: 1.2; }
.kf-draw .kf-draw__a { text-anchor: start; }
.kf-under { position: relative; min-height: 2.6em; display: grid; }
.kf-under > * { grid-area: 1 / 1; }

/* --- Handskizze: Kamerabild im Handy. Skizze liegt fast fertig auf dem Holz, nur die Stiftspitze (Grafitton der Linien, läuft nach hinten aus) blendet ein,
       schreibt die letzte Maßangabe und blendet aus; Auslöser, Foto liegt im Chat. kfStift ist so berechnet, dass die Spitze auf den Strichen läuft (--t/--dur je Strich). --- */
.kf-cam { position: absolute; inset: 0; z-index: 2; overflow: hidden; background: #E8D6B8 url("../assets/img/holz.webp") center / cover; }
.kf-cam__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kf-cam__strich { fill: none; stroke: #33373d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; stroke-opacity: 0.88; }
.kf-sk-s { stroke-dasharray: 1; animation: kfStrich var(--dur, 0.3s) linear var(--t, 0s) backwards; }
.kf-cam__stift { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform, opacity; animation: kfStift 2.06s linear 0s both; }
.kf-cam__stift svg { position: absolute; left: -0.370em; top: -0.370em; width: 4.073em; height: 3.888em; max-width: none; overflow: visible; }
.kf-cam__bar { position: absolute; left: 0; right: 0; bottom: 0; display: grid; place-items: center; padding: 1em 0 1.3em; background: var(--navy-deep); }
.kf-cam__shutter { display: block; width: 3.3em; height: 3.3em; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 0.2em var(--navy-deep), 0 0 0 0.4em var(--white); animation: kfAusloeser 0.3s ease var(--t, 0s) both; }
.kf-cam__flash { position: absolute; inset: 0; background: var(--white); opacity: 0; animation: kfBlitz 0.32s ease-out var(--t, 0s) both; }
@keyframes kfStrich { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes kfAusloeser { 40% { transform: scale(0.8); } }
@keyframes kfBlitz { 0% { opacity: 0; } 25% { opacity: 0.95; } 100% { opacity: 0; } }
@keyframes kfStift{0%{transform:translate(3.997em,9.669em);opacity:0;animation-timing-function:cubic-bezier(.2,.7,.3,1)}14.57%{transform:translate(2.296em,8.241em);opacity:1}15.94%{transform:translate(3.039em,8.234em)}17.13%{transform:translate(3.684em,8.225em)}18.13%{transform:translate(4.230em,8.213em)}18.95%{transform:translate(4.676em,8.199em)}19.68%{transform:translate(5.073em,8.184em)}20.41%{transform:translate(5.470em,8.171em)}21.14%{transform:translate(5.867em,8.160em)}21.88%{transform:translate(6.263em,8.151em)}22.61%{transform:translate(6.660em,8.146em)}23.34%{transform:translate(7.057em,8.148em)}24.07%{transform:translate(7.453em,8.158em)}24.8%{transform:translate(7.850em,8.174em)}25.53%{transform:translate(8.247em,8.192em)}26.26%{transform:translate(8.643em,8.206em)}26.99%{transform:translate(9.040em,8.216em)}27.72%{transform:translate(9.437em,8.221em)}28.45%{transform:translate(9.833em,8.225em)}29.18%{transform:translate(10.230em,8.229em)}29.91%{transform:translate(10.627em,8.233em)}30.64%{transform:translate(11.023em,8.238em)}31.37%{transform:translate(11.420em,8.245em)}32.1%{transform:translate(11.817em,8.258em)}32.83%{transform:translate(12.213em,8.275em)}33.56%{transform:translate(12.610em,8.298em)}35.03%{transform:translate(13.403em,8.347em);animation-timing-function:ease-in-out}43.52%{transform:translate(6.474em,6.951em)}44.13%{transform:translate(6.593em,6.858em)}44.48%{transform:translate(6.680em,6.868em)}44.99%{transform:translate(6.734em,6.983em)}45.88%{transform:translate(6.755em,7.201em)}48.06%{transform:translate(6.765em,7.742em);animation-timing-function:ease-in-out}52.73%{transform:translate(7.268em,7.614em)}56.13%{transform:translate(7.205em,7.885em);animation-timing-function:ease-in-out}61.11%{transform:translate(7.617em,6.936em)}61.59%{transform:translate(7.692em,6.841em)}62%{transform:translate(7.762em,6.770em)}62.32%{transform:translate(7.827em,6.723em)}62.59%{transform:translate(7.888em,6.699em)}62.82%{transform:translate(7.945em,6.693em)}63.03%{transform:translate(7.998em,6.699em)}63.24%{transform:translate(8.047em,6.717em)}63.46%{transform:translate(8.091em,6.747em)}63.67%{transform:translate(8.125em,6.788em)}63.89%{transform:translate(8.144em,6.838em)}64.13%{transform:translate(8.147em,6.899em)}64.42%{transform:translate(8.134em,6.969em)}64.75%{transform:translate(8.106em,7.045em)}65.1%{transform:translate(8.064em,7.123em)}65.49%{transform:translate(8.008em,7.202em)}65.92%{transform:translate(7.938em,7.282em)}66.36%{transform:translate(7.865em,7.362em)}66.77%{transform:translate(7.799em,7.438em)}67.15%{transform:translate(7.740em,7.512em)}67.5%{transform:translate(7.688em,7.583em)}67.78%{transform:translate(7.655em,7.642em)}67.94%{transform:translate(7.653em,7.682em)}68.08%{transform:translate(7.683em,7.701em)}68.33%{transform:translate(7.744em,7.701em)}68.65%{transform:translate(7.823em,7.692em)}68.99%{transform:translate(7.907em,7.687em)}69.34%{transform:translate(7.994em,7.686em)}69.71%{transform:translate(8.086em,7.689em)}70.47%{transform:translate(8.273em,7.698em);animation-timing-function:ease-in-out}75.56%{transform:translate(8.965em,6.664em)}76.06%{transform:translate(8.862em,6.730em)}76.5%{transform:translate(8.779em,6.803em)}76.91%{transform:translate(8.716em,6.883em)}77.3%{transform:translate(8.674em,6.969em)}77.69%{transform:translate(8.648em,7.061em)}78.08%{transform:translate(8.635em,7.157em)}78.48%{transform:translate(8.636em,7.257em)}78.9%{transform:translate(8.650em,7.360em)}79.31%{transform:translate(8.675em,7.457em)}79.66%{transform:translate(8.710em,7.539em)}79.99%{transform:translate(8.754em,7.605em)}80.28%{transform:translate(8.809em,7.655em)}80.56%{transform:translate(8.869em,7.686em)}80.81%{transform:translate(8.931em,7.697em)}81.07%{transform:translate(8.995em,7.687em)}81.37%{transform:translate(9.062em,7.656em)}81.69%{transform:translate(9.124em,7.608em)}82.01%{transform:translate(9.173em,7.546em)}82.35%{transform:translate(9.210em,7.469em)}82.73%{transform:translate(9.235em,7.378em)}83.13%{transform:translate(9.249em,7.281em)}83.51%{transform:translate(9.252em,7.186em)}83.88%{transform:translate(9.245em,7.094em)}84.25%{transform:translate(9.228em,7.004em)}84.6%{transform:translate(9.202em,6.922em)}84.91%{transform:translate(9.167em,6.854em)}85.19%{transform:translate(9.124em,6.799em)}85.46%{transform:translate(9.072em,6.758em)}85.7%{transform:translate(9.020em,6.729em)}85.89%{transform:translate(8.975em,6.710em)}86.05%{transform:translate(8.937em,6.700em)}86.18%{transform:translate(8.906em,6.700em)}86.4%{transform:translate(8.852em,6.709em);opacity:1;animation-timing-function:cubic-bezier(.45,0,.7,.5)}100%{transform:translate(10.553em,8.138em);opacity:0}}
.kf-photo--holz { background: #E8D6B8 url("../assets/img/holz.webp") center / cover; }
@media (min-width: 901px) {
  /* Solange nur das Handy zu sehen ist, steht es mittig (Hälfte von Fenster + Abstand); es rückt zur Seite, wenn das Fenster kommt */
  .kf-ph--mitte { animation: kfMitte 0.7s var(--ease-soft) var(--ruck, 0s) backwards; }
  @keyframes kfMitte { from { transform: translateX(17.25em); } }
}
@media (max-width: 900px) {
  /* Mobil kommt das Fenster erst, wenn das Handy geht: die saubere Zeichnung startet dann erst */
  .kf-duo__b .kf-draw .kf-d, .kf-duo__b .kf-draw .kf-f, .kf-duo__b .kf-under > * { animation-delay: var(--tm, var(--t, 0s)); }
}

/* --- Angebot --- */
.kf-offer__head { display: flex; align-items: center; justify-content: space-between; }
.kf-swap { display: inline-grid; justify-items: end; }
.kf-swap > * { grid-area: 1 / 1; }
.kf-offer__row { display: grid; grid-template-columns: minmax(0, 1fr) 6em 5em; align-items: center; gap: 1em; padding: 0.5em 0; border-bottom: 1px solid var(--line); }
.kf-offer__row > span:nth-child(2) { text-align: right; }
.kf-offer__row .kf-sk { justify-self: end; width: 3.6em; }
.kf-offer__row--h { padding-top: 0; color: var(--muted); font-size: 0.86em; }
.kf-offer__row--h > span:nth-child(3) { text-align: right; }
.kf-offer__row--new { color: var(--navy); font-weight: 600; }
.kf-offer__row--new > span:first-child { display: flex; align-items: center; gap: 0.45em; }
.kf-offer__foot { display: flex; align-items: center; justify-content: space-between; }
.kf-sum { display: inline-flex; align-items: center; gap: 0.8em; font-weight: 600; }
.kf-sum .kf-sk { width: 5.5em; }
.kf-win { position: relative; }
.kf-ask { position: absolute; left: 1.2em; right: 1.2em; bottom: 1.2em; }
.kf-ask > div { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 0.9em; border-radius: 0.9em; background: var(--white); box-shadow: 0 0 0 1.5px var(--violet), 0 1em 2em rgb(0 0 0 / 0.35); }
.kf-ask span:not(.kf-btn) { flex: 1; font-weight: 500; }

/* --- Kalkulation einer Position --- */
.kf-calc { display: grid; gap: 0.1em; padding: 0.9em 1em; border-radius: 0.9em; box-shadow: inset 0 0 0 1px var(--line); }
.kf-calc__head { display: flex; justify-content: space-between; gap: 1em; margin-bottom: 0.45em; }
.kf-calc__head b { font-weight: 600; }
.kf-calc__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) 3.6em minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 0.8fr); align-items: center; gap: 0.7em; padding: 0.36em 0; border-bottom: 1px solid var(--line); }
.kf-calc__row--h { color: var(--muted); font-size: 0.86em; padding-top: 0; }
.kf-calc__art { color: var(--muted); }
.kf-calc__n { text-align: right; white-space: nowrap; }
.kf-calc__from { margin-top: 0.55em !important; }
.kf-calc__foot { display: flex; align-items: center; justify-content: space-between; gap: 1em; margin-top: 0.45em; }
.kf-calc__foot .kf-btn { padding-block: 0.4em; }
.kf-calc__foot .kf-sk { width: 5em; }
.kf-calc__rate { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: 0.7em 1em; border-radius: 0.9em; background: var(--paper); }
.kf-calc__rate b { display: block; font-weight: 600; }
.kf-calc__rate small { color: var(--muted); font-size: 0.86em; }
@media (max-width: 900px) {
  .kf-calc__row { grid-template-columns: minmax(0, 1.5fr) 3.6em repeat(3, minmax(0, 0.7fr)); gap: 0.5em; }
  .kf-calc__art { display: none; }
}

/* --- Plantafel: Warnung am Einsatz, dann kommt Jonas dazu --- */
.kf-job { display: flex; align-items: center; min-width: 0; padding-inline: 0.7em; border-radius: 0.55em; background: #e4ebf2; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.92em; }
.kf-job--main { background: var(--navy); color: var(--white); font-weight: 600; }
.kf-job--off { justify-content: center; background: repeating-linear-gradient(135deg, var(--paper) 0 0.4em, #e9eef3 0.4em 0.8em); color: var(--muted); font-size: 0.86em; }
.kf-board { position: relative; display: grid; grid-template-columns: 7.4em repeat(5, minmax(0, 1fr)); grid-template-rows: 1.6em 1.5em repeat(4, 3.1em) 1.5em repeat(2, 3.1em) 1.5em 3.1em; gap: 0.3em; }
.kf-board__h { align-self: center; color: var(--muted); font-size: 0.82em; text-align: center; white-space: nowrap; }
.kf-board__sec { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.45em; padding-inline: 0.5em; border-radius: 0.35em; background: var(--paper); color: var(--muted); font-weight: 600; font-size: 0.8em; }
.kf-board__sec svg { width: 1.1em; height: 1.1em; }
.kf-board__who { grid-column: 1; display: flex; align-items: center; gap: 0.5em; min-width: 0; font-weight: 600; font-size: 0.88em; line-height: 1.2; }
.kf-board__who > i { flex: none; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--dove); }
.kf-board__who > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-board__who small { display: block; color: var(--muted); font-weight: 400; font-size: 0.86em; }
/* Spur einer Zeile: zeigt freie Tage als leere Felder */
.kf-board__track { grid-column: 2 / -1; border-radius: 0.45em; background-color: var(--paper); background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: 20% 100%; }
.kf-job--two { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center; column-gap: 0.5em; padding-inline: 0.65em 0.45em; line-height: 1.22; }
.kf-job--two b, .kf-job--two small { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kf-job--two b { font-weight: 600; font-size: 0.96em; }
.kf-job--two small { font-weight: 400; font-size: 0.86em; opacity: 0.82; }
.kf-job--b { background: #dbe7f0; box-shadow: inset 0.24em 0 0 var(--dove); }
.kf-job--c { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.kf-job__fz { grid-column: 2; grid-row: 1 / 3; align-self: center; display: grid; justify-items: end; font-style: normal; font-weight: 500; font-size: 0.82em; }
.kf-job__fz > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.35em; padding: 0.2em 0.55em; border-radius: 99em; background: rgb(255 255 255 / 0.16); white-space: nowrap; }
.kf-job--b .kf-job__fz > span { background: var(--white); color: var(--navy); }
.kf-job__fz svg { flex: none; width: 1.1em; height: 1.1em; }
.kf-job__fz .is-gesperrt { background: var(--sun); color: var(--navy); text-decoration: line-through; }
.kf-job--add { animation: kfUp 0.5s var(--ease-soft) var(--t, 5.4s) backwards; }
.kf-job--warn { animation: kfUp 0.55s var(--ease-soft) 1.5s backwards, kfWarn 6s ease 0s backwards; }
.kf-job--belegt { animation: kfBelegt 6s ease 0s backwards; }
@keyframes kfBelegt { 0%, 80% { background: var(--sun); } 100% { background: #dbe7f0; } }
.kf-plan-kw { display: inline-flex; align-items: center; gap: 0.5em; color: var(--muted); font-size: 0.9em; }
.kf-plan-kw svg { width: 1em; height: 1em; }
.kf-plan-acts { display: flex; gap: 0.4em; }
.kf-plan-acts .kf-btn { display: inline-flex; align-items: center; gap: 0.35em; padding: 0.3em 0.75em; font-size: 0.86em; }
.kf-plan-acts svg { width: 1.1em; height: 1.1em; }
@media (min-width: 901px) {
  .kf-scene.kf-scene--plan:not(.kf-duo):not(.kf-ai) { font-size: calc((100cqw - 2 * var(--kf-rand)) / 52); }
  .kf-scene--plan .kf-win { max-width: none; }
}
@media (max-width: 900px) {
  .kf-board { grid-template-columns: 6.2em repeat(5, minmax(0, 1fr)); }
  .kf-board__h { font-size: 0.72em; }
  .kf-job__fz, .kf-plan-acts .kf-btn--ghost { display: none; }
  .kf-job--two { padding-inline: 0.5em 0.3em; }
}
@keyframes kfWarn { 0%, 80% { box-shadow: inset 0 0 0 0.16em var(--sun); } 100% { box-shadow: none; } }
.kf-check__in { display: grid; gap: 0.4em; padding: 0.8em 1em; border-radius: 0.8em; background: rgb(247 237 175 / 0.5); font-weight: 500; }
.kf-check { grid-area: 2 / 1; }
.kf-checked { grid-area: 2 / 1; align-self: center; }
.kf-board { grid-area: 1 / 1; }
.kf-scene .kf-pad:has(> .kf-board) { grid-template-rows: auto minmax(4.6em, auto); padding: 0.9em 1.1em 1em; }

/* --- Baustellendoku --- */
.kf-duo--phones { gap: 2.4em; }
.kf-sign { position: relative; margin-top: 0.2em; border-radius: 0.8em; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.kf-sign svg { display: block; width: 100%; }
.kf-sign__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 0.92em; }

/* --- Zeiterfassung --- */
.kf-rec { display: flex; flex-direction: column; gap: 0.6em; }
.kf-rec small { margin-top: 0.3em; color: var(--muted); font-size: 0.86em; }
.kf-rec .kf-msg { align-self: flex-end; }
.kf-rec__btn { position: relative; align-self: center; display: grid; place-items: center; width: 5.4em; height: 5.4em; margin-block: 0.4em 0.5em; border-radius: 50%; background: var(--navy); color: var(--white); }
.kf-rec__btn svg { width: 2em; height: 2em; }
.kf-rec__btn i { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgb(28 53 87 / 0.35); animation: kfPulse 1.2s ease-out 3 both; }
@keyframes kfPulse { to { box-shadow: 0 0 0 1em rgb(28 53 87 / 0); } }
.kf-week__row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(5, minmax(0, 1fr)); align-items: center; gap: 0.3em; padding: 0.42em 0; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.kf-week__row > :first-child { text-align: left; font-weight: 500; }
.kf-week__row--h { padding-top: 0; color: var(--muted); font-size: 0.86em; }
.kf-week__row--h > :first-child { font-weight: 400; }
.kf-week__new { border-radius: 0.4em; font-weight: 600; animation: kfNew 1s ease 4.2s both; background: rgb(94 143 174 / 0.2); }
@keyframes kfNew { from { background: rgb(94 143 174 / 0.75); } }
.kf-week__off { color: var(--dove); font-size: 0.9em; }
.kf-legend { color: var(--muted); font-size: 0.82em; }

/* --- Nachkalkulation --- */
.kf-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.7em; }
.kf-kpi { display: grid; gap: 0.5em; padding: 0.8em 0.95em; border-radius: 0.8em; background: var(--paper); }
.kf-kpi small { color: var(--muted); font-size: 0.86em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kf-ist__head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 0.3em; }
.kf-ist__head small { color: var(--muted); font-size: 0.86em; }
.kf-ist__row { position: relative; display: grid; gap: 0.3em; padding: 0.42em 0; }
.kf-ist__row em { position: absolute; right: 0; top: 0.25em; padding: 0.1em 0.65em; border-radius: 99em; background: var(--sun); font-style: normal; font-weight: 600; font-size: 0.82em; }
.kf-ist__track { position: relative; display: block; height: 0.6em; border-radius: 1em; overflow: hidden; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.kf-ist__track .kf-w { display: block; height: 100%; border-radius: 1em; background: var(--dove); }
.kf-ist__row.is-over .kf-ist__track { background: var(--sun); }
.kf-ist__row.is-over .kf-w { background: var(--navy); }

/* --- E-Rechnung --- */
.kf-inv { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: start; gap: 1.1em; }
.kf-inv__sheet { position: relative; display: grid; gap: 0.5em; align-content: start; min-height: 17em; padding: 1.1em; border-radius: 0.5em; background: var(--white); box-shadow: 0 0 0 1px var(--line), 0 0.6em 1.6em rgb(2 31 65 / 0.12); }
.kf-inv__sheet > b { font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 1.15em; }
.kf-inv__sheet .kf-sk { max-width: none; }
.kf-inv__badge { position: absolute; left: 1em; bottom: 1em; }
.kf-inv__side { display: grid; gap: 0.8em; min-width: 0; }
.kf-fmt { display: flex; flex-wrap: wrap; gap: 0.35em; }
.kf-fmt span { padding: 0.2em 0.7em; border-radius: 99em; box-shadow: inset 0 0 0 1px var(--dove); color: var(--navy); font-weight: 600; font-size: 0.86em; }
@media (max-width: 900px) {
  .kf-inv { grid-template-columns: minmax(0, 1fr); }
  .kf-inv__sheet { min-height: 11em; padding-bottom: 3em; }
  .kf-inv__sheet .kf-sk:nth-of-type(n+4) { display: none; }
  .kf-win__top .kf-tabs > :first-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .kf-stage *, .kf-stage *::before, .kf-stage *::after { animation: none !important; }
}

/* ==========================================================================
   Blog (09.11.2026) – Aufbau nach dem Fluentime-Blog (Aufmacher, Raster, Tags,
   FAQ, Weiterlesen), dazu ein Themenfilter. Seiten unter blog/ werden aus
   Redaktion/blog/*.md erzeugt (Redaktion/blog_bauen.py).
   ========================================================================== */

/* ----- Übersicht ----- */
.blog-intro { padding-bottom: clamp(40px, 5vw, 64px); }
.blog-intro .container { text-align: center; }
.blog-list { padding-top: clamp(40px, 5vw, 64px); }
.blog-intro h1 { max-width: 18ch; margin-inline: auto; }
.blog-intro .lead { margin-inline: auto; }

.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: clamp(32px, 4vw, 48px);
}
.blog-filter__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--white);
  color: var(--navy);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.blog-filter__btn:hover { border-color: var(--dove); }
.blog-filter__btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.blog-filter__n { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.blog-filter__btn[aria-pressed="true"] .blog-filter__n { color: rgba(255, 255, 255, 0.7); }

/* Aufmacher: neuester (oder angehefteter) Beitrag */
.post-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--navy-deep);
  color: var(--white);
}
.post-feature__cover {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.3px);
  background-size: 22px 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.post-feature__icon {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--navy-deep);
  box-shadow: inset 0 0 0 1px rgba(94, 143, 174, 0.5);
  color: var(--dove);
}
.post-feature__svg { width: 60px; height: 60px; }
.post-feature__body {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 56px);
}
.post-feature__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: var(--fs-small);
}
.post-feature__meta .chip { padding-block: 3px; }
.post-feature__title {
  margin-top: 20px;
  color: var(--white);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
}
.post-feature__title a { color: inherit; text-decoration: none; }
.post-feature__title a::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.post-feature__title a:focus-visible { outline: none; }
.post-feature:has(a:focus-visible) { outline: 2px solid var(--white); outline-offset: 3px; }
.post-feature__text { margin-top: 16px; max-width: 54ch; color: rgba(255, 255, 255, 0.78); font-size: var(--fs-lead); }
.post-feature__more {
  margin-top: auto;
  padding-top: 28px;
  color: var(--sun);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
}
.post-feature:hover .post-feature__more { text-decoration-color: currentColor; }

/* Schlagworte */
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; }
.post-tags li {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 500;
}
.post-tags--dark li { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.9); }

.blog-list__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section > .container > .blog-list__head:first-child { margin-top: 0; }
.blog-list__head h2 { font-size: clamp(1.5rem, 1.3rem + 0.7vw, 2rem); }
.blog-list__count { color: var(--muted); font-size: var(--fs-small); }
.blog-list.is-filtered .blog-list__head { margin-top: 0; }

/* Karten */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.post-card:hover { border-color: var(--dove); }
.post-card:has(a:focus-visible) { outline: 2px solid var(--navy); outline-offset: 3px; }
.post-card__top { display: flex; align-items: center; gap: 12px; }
.post-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-btn);
  background: var(--paper);
}
.post-card__icon .icon { width: 20px; height: 20px; }
.post-card__thema { color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.post-card__title { margin-top: 20px; font-size: 1.3125rem; line-height: 1.25; }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card__title a:focus-visible { outline: none; }
.post-card__text {
  display: -webkit-box;
  margin-top: 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9375rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.post-card__meta,
.post-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 1000px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature__cover { min-height: 180px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .post-feature__icon { width: 96px; height: 96px; }
  .post-feature__svg { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ----- Beitrag ----- */
.post-wrap { max-width: calc(760px + 2 * var(--gutter)); }

.post-hero { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 88px); }
.post-hero__back { font-size: var(--fs-small); }
.post-hero__back .link { color: rgba(255, 255, 255, 0.8); text-decoration-color: rgba(255, 255, 255, 0.35); }
.post-hero__back .link:hover { color: var(--white); text-decoration-color: currentColor; }
.post-hero__thema { margin-top: 32px; }
.post-hero__thema a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.post-hero__thema a:hover { background: rgba(255, 255, 255, 0.16); }
.post-hero__thema .icon { width: 18px; height: 18px; color: var(--dove); }
.post-hero h1 { margin-top: 20px; max-width: none; }
.post-hero__lead { margin-top: 20px; color: rgba(255, 255, 255, 0.8); font-size: var(--fs-lead); }
.post-hero__meta { margin-top: 0; padding-top: 28px; color: rgba(255, 255, 255, 0.68); font-size: var(--fs-small); }

/* Fließtext */
.prose { font-size: 1.0625rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem);
  line-height: 1.2;
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h3 { margin-top: 1.8em; font-size: 1.1875rem; font-weight: 600; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; font-size: var(--fs-lead); }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 24px; }
.prose li::marker { color: var(--dove); font-weight: 600; }
.prose strong { font-weight: 600; }
.prose em { color: var(--muted); }
.prose blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--dove);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  line-height: 1.35;
}

/* Hinweisbox (:::hinweis) – Pastel Sun = Hinweis */
.post-note {
  padding: 24px 28px;
  border-radius: var(--r-card);
  background: var(--sun);
}
.post-note__title { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 600; }
.post-note > * + * { margin-top: 10px; }
.post-note ul { display: grid; gap: 6px; padding-left: 22px; }
.post-note li::marker { color: var(--navy); }

/* Tabellen */
.post-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-btn); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; line-height: 1.5; }
.post-table th, .post-table td { padding: 12px 16px; text-align: left; vertical-align: top; }
.post-table th { background: var(--paper); font-weight: 600; }
.post-table td:first-child { white-space: nowrap; font-weight: 600; }
.post-table tr + tr td { border-top: 1px solid var(--line); }

/* Teilen */
.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.post-share__title { margin-right: auto; color: var(--muted); font-size: var(--fs-small); font-weight: 600; }
.post-share__btn { border-color: var(--line); background: var(--white); color: var(--navy); }
.post-share__btn:hover { border-color: var(--navy); }

/* FAQ */
.post-faq { margin-top: clamp(48px, 6vw, 72px); }
.post-faq h2 { margin-bottom: 20px; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.875rem); }
.post-faq__item { border-top: 1px solid var(--line); }
.post-faq__item:last-child { border-bottom: 1px solid var(--line); }
.post-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.post-faq__item summary::-webkit-details-marker { display: none; }
.post-faq__item summary::after {
  content: "+";
  flex: none;
  width: 24px;
  color: var(--dove);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  transition: transform 0.2s var(--ease-soft);
}
.post-faq__item[open] summary::after { transform: rotate(45deg); }
.post-faq__item p { padding-bottom: 20px; color: var(--muted); max-width: 64ch; }

/* Abschluss: Testnutzer */
.post-cta {
  margin-top: clamp(48px, 6vw, 72px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--r-card);
  background: var(--navy-deep);
  color: var(--white);
}
.post-cta h2 { color: var(--white); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2rem); }
.post-cta p { margin-top: 12px; max-width: 52ch; color: rgba(255, 255, 255, 0.8); }
.post-cta .btn { margin-top: 24px; }
.post-cta .btn:focus-visible { outline-color: var(--white); }

@media (max-width: 560px) {
  .post-note { padding: 20px; }
  .post-share__title { flex-basis: 100%; }
}

/* Quellenliste am Ende eines Beitrags (## Quellen) */
.prose #quellen { font-size: 1.25rem; }
.prose #quellen + ul { gap: 6px; color: var(--muted); font-size: var(--fs-small); line-height: 1.55; }
.prose #quellen + ul .link { font-weight: 500; overflow-wrap: anywhere; }
