/* ==========================================================================
   artevie|me — Design System
   Digitalisierung und KI für Mittelstand und Handwerk

   Haltung: strukturiert, ruhig, vertrauenswürdig. Keine Effekte um ihrer
   selbst willen. Der Weg zur Kontaktaufnahme ist immer sichtbar.

   Schrift: Century Gothic (CI, lokal) für Display + Labels,
            System-Sans für Fließtext (Lesbarkeit, keine Google-Fonts-
            Einwilligung nötig).
   ========================================================================== */

/* ---------- Fonts (lokal, keine externen Requests) ---------- */
@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/centurygothic.woff2") format("woff2"),
       url("../fonts/centurygothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url("../fonts/centurygothic_bold.woff2") format("woff2"),
       url("../fonts/centurygothic_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  /* Farbe — Marke */
  --navy:        #002060;
  --navy-900:    #001338;
  --navy-700:    #10306E;
  --navy-500:    #3A5687;
  --teal:        #A4D7D8;
  --teal-600:    #6FB6B8;
  --teal-900:    #0E5F62;   /* dunkles Teal: als Text auf Weiß kontraststark */

  /* Farbe — Fläche & Text */
  --paper:       #FFFFFF;
  --mist:        #EFF3F7;
  --mist-deep:   #E2E9F1;
  --ink:         #0B1526;
  --ink-muted:   #46566E;
  --line:        rgba(11, 21, 38, 0.12);
  --line-soft:   rgba(11, 21, 38, 0.07);
  --on-navy:         #FFFFFF;
  --on-navy-muted:   rgba(255, 255, 255, 0.76);
  --on-navy-line:    rgba(255, 255, 255, 0.18);

  /* Legacy-Aliase — die Quiz-Skripte schreiben diese Tokens in Inline-Styles.
     Nicht entfernen, sonst wird generierter Text unlesbar. */
  --white:        var(--ink);
  --brand-blue:   var(--navy);
  --accent-teal:  var(--teal);
  --weight-bold:  700;

  /* Typografie */
  --font-display: "Century Gothic", "Avenir Next", "Futura", "Segoe UI", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-display: clamp(2.25rem, 1.35rem + 3.7vw, 4.25rem);
  --step-h2:      clamp(1.75rem, 1.28rem + 1.95vw, 2.75rem);
  --step-h3:      clamp(1.25rem, 1.13rem + 0.5vw, 1.5rem);
  --step-h4:      clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-lead:    clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --step-body:    1.0625rem;
  --step-small:   0.9375rem;
  --step-label:   0.75rem;

  /* Abstände (4er-Raster) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --section-y: clamp(4rem, 8vw, 7rem);
  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Radien & Schatten */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(11, 21, 38, 0.05), 0 2px 8px rgba(11, 21, 38, 0.04);
  --shadow-md: 0 2px 4px rgba(11, 21, 38, 0.05), 0 12px 28px -8px rgba(11, 21, 38, 0.10);
  --shadow-lg: 0 4px 8px rgba(11, 21, 38, 0.06), 0 28px 56px -16px rgba(11, 21, 38, 0.16);
  --shadow-navy: 0 20px 48px -16px rgba(0, 32, 96, 0.35);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --dur: 220ms;

  --header-h: 76px;
}

/* ==========================================================================
   2. Reset & Grundlagen
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Die Seite ist bewusst hell. Ohne diese Angabe faerbt der Browser im
     Dunkelmodus Formularelemente (z. B. die Radiobuttons im Selbsttest)
     eigenmaechtig um. */
  color-scheme: light;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Sprungziele duerfen nicht unter der klebenden Kopfzeile landen */
:target,
[id] { scroll-margin-top: calc(var(--header-h) + var(--space-5)); }

body,
button,
a,
label,
input,
summary {
  /* Entfernt die 300-ms-Verzoegerung beim Antippen auf Mobilgeraeten */
  touch-action: manipulation;
  /* Wir setzen eigene :active-Zustaende, der graue Systemblitz stoert dabei */
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }

ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--teal-900);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Sichtbarer Skip-Link für Tastaturnutzung */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--r-sm);
  font-weight: 700;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); }

/* ==========================================================================
   3. Typografie
   ========================================================================== */
.display,
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-display);
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h3);
  line-height: 1.25;
  letter-spacing: -0.012em;
}

.h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h4);
  line-height: 1.35;
  letter-spacing: -0.008em;
}

.lead {
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 62ch;
}

.body { color: var(--ink-muted); }
.body + .body { margin-top: var(--space-4); }

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

.label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-900);
}

/* Abschnittsmarke: kurze Linie + Label. Strukturzeichen, keine Deko. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-900);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}

/* Dunkle Flächen: Hero, .surface-navy und alles mit .on-dark */
.on-dark .eyebrow,
.hero .eyebrow,
.surface-navy .eyebrow { color: var(--teal); }

.on-dark .lead,  .on-dark .body,  .on-dark .small,
.hero .lead,     .hero .body,     .hero .small,
.surface-navy .lead, .surface-navy .body, .surface-navy .small { color: var(--on-navy-muted); }

.on-dark .h2, .on-dark .h3, .on-dark .h4,
.hero .h2, .hero .h3, .hero .h4,
.surface-navy .h2, .surface-navy .h3, .surface-navy .h4 { color: var(--on-navy); }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head .h2 { margin-top: var(--space-4); }
.section-head .lead { margin-top: var(--space-4); }

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 700px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.surface-navy {
  background: var(--navy);
  color: var(--on-navy);
}
.surface-paper { background: var(--paper); }

/* ==========================================================================
   12. Rechtstexte (Impressum / Datenschutz)
   ========================================================================== */
/* Gilt für eigene Rechtsseiten UND für Plugin-Ausgabe (z. B. AGB-/
   Impressums-Generator per Shortcode). Deshalb bewusst auf generische
   Elemente gestylt statt auf eigene Klassen. */
.legal {
  max-width: 54rem;
  margin-inline: auto;   /* zentriert sich selbst, auch als Elementor-Container */
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  color: var(--ink-muted);
  overflow-wrap: break-word;
}

.legal h1, .legal h2, .legal h3, .legal h4, .legal h5, .legal h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-top: var(--space-7);
  margin-bottom: var(--space-4);
}
.legal h1 { font-size: var(--step-h2); }
.legal h2 { font-size: var(--step-h3); }
.legal h3 { font-size: var(--step-h4); }
.legal h4, .legal h5, .legal h6 { font-size: 1rem; }
.legal > :first-child { margin-top: 0; }

.legal p { margin-bottom: var(--space-4); color: var(--ink-muted); }
.legal strong, .legal b { color: var(--ink); font-weight: 700; }

.legal ul, .legal ol {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  color: var(--ink-muted);
}
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal li { padding-left: var(--space-1); }

.legal a {
  color: var(--teal-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Plugin-Ausgabe enthält gelegentlich Tabellen (z. B. Auftragsverarbeiter).
   table-layout: fixed erzwingt, dass die Tabelle in die Breite passt —
   Text bricht um, statt das Handy horizontal scrollen zu lassen. */
.legal table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  margin-bottom: var(--space-5);
  border-collapse: collapse;
  font-size: var(--step-small);
}
.legal th, .legal td {
  padding: var(--space-3);
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.legal th { background: var(--mist); color: var(--ink); font-weight: 700; }

.legal hr { margin: var(--space-6) 0; border: 0; border-top: 1px solid var(--line); }
.legal address { font-style: normal; margin-bottom: var(--space-4); }

/* Kopfbereich der Rechtsseiten, wenn Titel und Text in getrennten
   Elementor-Widgets liegen */
.legal-intro { padding-block: var(--section-y) var(--space-6); }
.legal-intro .section-head { margin-bottom: 0; }

/* Wenn .legal direkt ein Elementor-Container ist, fehlt der Seitenabstand
   des .wrap — hier selbst setzen, damit die Karte nicht am Rand klebt. */
.e-con.legal,
.elementor-element.legal {
  max-width: min(54rem, 100% - 2 * var(--gutter));
  margin-block-end: var(--section-y);
}

/* ==========================================================================
   13. Blog

   WordPress erzeugt die Beitragsliste selbst (Query-Loop-Block), gefuellt
   ueber Metricool. Wir bestimmen dieses Markup nicht, deshalb wird hier auf
   die Standardklassen von WordPress gestylt, genau wie beim Rechtstext-Plugin.

   Kartenraster: ab 720px zwei Spalten. Jede Karte = Herobild, Titel,
   Rubrik, Anriss, Datum. Bei ungerader Beitragszahl bleibt rechts unten
   eine Lücke; das ist gewollt und ruhiger als eine gestreckte Einzelkarte.
   Fehlt das Beitragsbild (Metricool), ergänzt js/blog.js das Herobild aus
   dem Beitragstext.
   ========================================================================== */

/* ---------- Seitenkopf ---------- */
.blog-intro { padding-block: var(--section-y) var(--space-6); }

/* ---------- Beitragsraster ---------- */
.artevie-blog {
  max-width: min(72rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: var(--section-y);
}

.artevie-blog .wp-block-post-template {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 720px) {
  .artevie-blog .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Karte */
.artevie-blog .wp-block-post {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0 0 var(--space-5);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .artevie-blog .wp-block-post:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .artevie-blog .wp-block-post,
  .artevie-blog .wp-block-post-featured-image img { transition: none; }
  .artevie-blog .wp-block-post:hover { transform: none; }
}

/* Textteile der Karte bekommen den Innenabstand, das Bild nicht */
.artevie-blog .wp-block-post > :not(.wp-block-post-featured-image) {
  margin-inline: clamp(1.25rem, 3vw, 1.75rem);
  min-width: 0;
}
.artevie-blog .wp-block-post-title,
.artevie-blog .wp-block-post-excerpt p,
.artevie-blog .wp-block-post-excerpt__excerpt {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Herobild: oben, randlos, im Seitenverhältnis der Metricool-Bilder (1200x630) */
.artevie-blog .wp-block-post-featured-image {
  margin: 0 0 var(--space-5);
  aspect-ratio: 40 / 21;
  overflow: hidden;
  background: var(--mist-deep);
}
.artevie-blog .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  height: 100%;
}
.artevie-blog .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .artevie-blog .wp-block-post:hover .wp-block-post-featured-image img {
    transform: scale(1.03);
  }
}
/* Karten ohne Bild: Text nicht an die Oberkante kleben */
.artevie-blog .wp-block-post > :first-child:not(.wp-block-post-featured-image) {
  margin-top: var(--space-5);
}

/* Titel */
.artevie-blog .wp-block-post-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h3);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-top: 0;
  margin-bottom: var(--space-2);
  text-wrap: balance;
}
.artevie-blog .wp-block-post-title a { color: inherit; text-decoration: none; }
/* Ganze Karte klickbar über den Titel-Link */
.artevie-blog .wp-block-post-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.artevie-blog .wp-block-post-title a:focus-visible { outline: none; }
.artevie-blog .wp-block-post:has(.wp-block-post-title a:focus-visible) {
  outline: 2px solid var(--teal-900);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .artevie-blog .wp-block-post:hover .wp-block-post-title a { color: var(--teal-900); }
}

/* Rubrik / Kategorie: unter dem Titel, kleiner, fett */
.artevie-blog .wp-block-post-terms {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--teal-900);
  margin-bottom: var(--space-3);
}
.artevie-blog .wp-block-post-terms a { color: inherit; text-decoration: none; }
/* Platzhalter-Kategorie von WordPress nie anzeigen */
.artevie-blog .wp-block-post-terms a[href*="/uncategorized/"],
.artevie-blog .wp-block-post-terms a[href*="/allgemein/"] { display: none; }
.artevie-blog .wp-block-post-terms .wp-block-post-terms__separator { display: none; }

/* Anrisstext */
.artevie-blog .wp-block-post-excerpt { margin-top: 0; margin-bottom: 0; }
.artevie-blog .wp-block-post-excerpt p,
.artevie-blog .wp-block-post-excerpt__excerpt {
  color: var(--ink-muted);
  font-size: var(--step-small);
  line-height: 1.6;
  margin: 0;
}
.artevie-blog .wp-block-post-excerpt__more-link,
.artevie-blog .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--teal-900);
  text-decoration: none;
}

/* Datum: unten in der Karte, gleiche Höhe in jeder Zeile */
.artevie-blog .wp-block-post-date {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--step-label);
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.artevie-blog .wp-block-post-date a { color: inherit; text-decoration: none; }

/* ---------- Leerer Zustand: noch kein Beitrag veroeffentlicht ---------- */
.artevie-blog .wp-block-query-no-results {
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
  text-align: center;
}
.artevie-blog .wp-block-query-no-results p {
  color: var(--ink-muted);
  max-width: 46ch;
  margin-inline: auto;
}

/* ---------- Blaetternavigation ---------- */
.artevie-blog .wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  margin-top: var(--space-7);
}
.artevie-blog .wp-block-query-pagination a,
.artevie-blog .wp-block-query-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--navy);
  text-decoration: none;
  background: var(--paper);
}
.artevie-blog .wp-block-query-pagination .current,
.artevie-blog .wp-block-query-pagination [aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}

/* ==========================================================================
   Einzelner Beitrag

   Der Text kommt aus dem WordPress-Editor bzw. von Metricool. Wir stylen
   deshalb generische Elemente, nicht bestimmte Klassen.
   ========================================================================== */
.artevie-post {
  max-width: min(46rem, 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-bottom: var(--section-y);
}

.artevie-post .wp-block-post-featured-image {
  margin: 0 0 var(--space-6);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.artevie-post .wp-block-post-featured-image img { width: 100%; height: auto; }

.artevie-post .wp-block-post-date {
  font-size: var(--step-small);
  color: var(--ink-muted);
  margin-bottom: var(--space-3);
}

.artevie-post .wp-block-post-title,
.artevie-post h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h2);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 var(--space-6);
  text-wrap: balance;
}

/* Fliesstext */
.artevie-post .wp-block-post-content,
.artevie-post .entry-content { font-size: var(--step-body); line-height: 1.75; }

.artevie-post h2, .artevie-post h3, .artevie-post h4,
.artevie-post h5, .artevie-post h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: var(--space-7) 0 var(--space-3);
  text-wrap: balance;
}
.artevie-post h2 { font-size: var(--step-h3); }
.artevie-post h3 { font-size: var(--step-h4); }
.artevie-post h4, .artevie-post h5, .artevie-post h6 { font-size: 1rem; }

.artevie-post p { margin-bottom: var(--space-5); color: var(--ink-muted); }

/* Lange Woerter und ungetrennte URLs duerfen die Spalte nicht sprengen */
.artevie-post h1, .artevie-post h2, .artevie-post h3,
.artevie-post h4, .artevie-post h5, .artevie-post h6,
.artevie-post p, .artevie-post li, .artevie-post a {
  overflow-wrap: break-word;
  hyphens: auto;
}
.artevie-post strong, .artevie-post b { color: var(--ink); font-weight: 700; }

.artevie-post ul, .artevie-post ol {
  margin: 0 0 var(--space-5);
  padding-left: var(--space-6);
  color: var(--ink-muted);
  display: block;
}
.artevie-post ul { list-style: disc; }
.artevie-post ol { list-style: decimal; }
.artevie-post li { margin-bottom: var(--space-2); padding-left: var(--space-1); }

.artevie-post a {
  color: var(--teal-900);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.artevie-post img { max-width: 100%; height: auto; border-radius: var(--r-md); }
.artevie-post figure { margin: var(--space-6) 0; max-width: 100%; }
.artevie-post figcaption {
  font-size: var(--step-small);
  color: var(--ink-muted);
  margin-top: var(--space-3);
}

.artevie-post blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 3px solid var(--teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h4);
  color: var(--navy);
}
.artevie-post blockquote p { color: inherit; }

.artevie-post hr {
  margin: var(--space-7) 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.artevie-post code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--mist);
  padding: 0.15em 0.4em;
  border-radius: var(--r-sm);
}
.artevie-post pre {
  background: var(--mist);
  padding: var(--space-5);
  border-radius: var(--r-md);
  overflow-x: auto;
  margin-bottom: var(--space-5);
}
.artevie-post pre code { background: none; padding: 0; }

.artevie-post table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-bottom: var(--space-5);
  font-size: var(--step-small);
}
.artevie-post th, .artevie-post td {
  border: 1px solid var(--line);
  padding: var(--space-3);
  text-align: left;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}
.artevie-post th { background: var(--mist); color: var(--ink); font-weight: 700; }

/* Zurueck-Link und Abschluss-Aufruf unter dem Beitrag */
.post-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-small);
  color: var(--teal-900);
  text-decoration: none;
}
.post-cta {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  text-align: center;
}
.post-cta .btn-row { justify-content: center; }

/* Container, die unsere Klasse tragen, halten die Seitenraender ein
   (gleiche Loesung wie bei .legal). */
.e-con.artevie-blog, .elementor-element.artevie-blog,
.e-con.artevie-post, .elementor-element.artevie-post {
  margin-block-end: var(--section-y);
}

/* ==========================================================================
   14. Quiz (Selbsttest / Dokumentenreife)
   Klassen und IDs sind an selbsttest.js / dokumentenreife.js gebunden.
   ========================================================================== */
.quiz-shell { max-width: 46rem; margin-inline: auto; }
.quiz-panel {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
}

.quiz-screen { display: none; }
.quiz-screen.active { display: block; }

.progress-track {
  width: 100%;
  height: 6px;
  margin-bottom: var(--space-6);
  background: var(--mist-deep);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.progress-fill {
  width: 0%;
  height: 100%;
  background: var(--teal-600);
  border-radius: var(--r-pill);
  transition: width var(--dur) var(--ease-out);
}

.feature-list { display: grid; gap: var(--space-3); margin: var(--space-5) 0; }
.feature-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: var(--space-3);
  align-items: start;
  color: var(--ink-muted);
}
.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: var(--r-pill);
  background: var(--teal-600);
}

.question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.qnum { font-size: var(--step-small); color: var(--ink-muted); }
.qcat {
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  background: rgba(0, 32, 96, 0.08);
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.question-text { margin-bottom: var(--space-5); color: var(--ink); }

.answers { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.answer-btn {
  width: 100%;
  min-height: 52px;
  padding: var(--space-4) var(--space-5);
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  color: var(--ink);
  font-size: var(--step-body);
  line-height: 1.45;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out),
              background var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .answer-btn:hover { border-color: var(--navy-500); background: var(--mist); }
}
.answer-btn.selected {
  border-color: var(--navy);
  background: rgba(0, 32, 96, 0.05);
  font-weight: 600;
}

.quiz-nav { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; }
.quiz-nav .btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Dokumentenreife: Radio-Liste */
.q-list { display: grid; gap: var(--space-7); margin-bottom: var(--space-6); }
.q-item { min-width: 0; }
.q-item legend.question-text {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: var(--space-4);
  color: var(--ink);
}
.q-item .question-text { margin-bottom: var(--space-4); }
.q-options { display: grid; gap: var(--space-2); }
.q-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .q-option:hover { border-color: var(--navy-500); background: var(--mist); }
}
.q-option input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; }
.q-option:has(input:checked) { border-color: var(--navy); background: rgba(0, 32, 96, 0.05); }

.error-message {
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  background: #FDECEC;
  border: 1px solid #E4B4B4;
  border-radius: var(--r-md);
  color: #96201F;
}
.hidden { display: none !important; }

/* Ergebnis */
.score-display { text-align: center; padding-block: var(--space-6); }
.score-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.score-suffix { font-size: 1.125rem; color: var(--ink-muted); font-family: var(--font-body); font-weight: 400; }

.result-title { text-align: center; margin-bottom: var(--space-5); color: var(--navy); }
.result-description { text-align: center; margin-bottom: var(--space-6); }
.result-description h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h3);
  color: var(--navy);
  margin-bottom: var(--space-3);
}

.category-results { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.category-card {
  padding: var(--space-4) var(--space-5);
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.category-card h4 {
  margin-bottom: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--step-label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.category-score {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: var(--space-2);
}
.category-bar { height: 6px; background: var(--mist-deep); border-radius: var(--r-pill); overflow: hidden; }
.category-bar-fill { height: 100%; background: var(--teal-600); border-radius: var(--r-pill); }

.recommendations {
  padding: clamp(1.25rem, 3vw, 2rem);
  margin-bottom: var(--space-6);
  background: var(--mist);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
}
.recommendations h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h4);
  color: var(--navy);
  margin-bottom: var(--space-4);
}
.recommendations ul { display: grid; gap: var(--space-3); }
.recommendations li {
  position: relative;
  padding-left: var(--space-6);
  color: var(--ink-muted);
}
.recommendations li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-pill);
  background: var(--teal-600);
}
.recommendations strong { color: var(--ink); }
/* Von dokumentenreife.js erzeugte Blöcke tragen .glass.card */
.recommendations .card,
#recommendations .card {
  gap: var(--space-4);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.maturity-level {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-h3);
  margin-bottom: var(--space-6);
}
.maturity-tier--low  { color: #96201F; }
.maturity-tier--mid  { color: #8A5A00; }
.maturity-tier--high { color: var(--teal-900); }

/* ==========================================================================
   Fassung 14.11.2026 — runde, ruhige Formen. Gilt fuer ALLE Seiten.
   Ersetzt die frueheren Abschnitte 5 (Buttons), 6 (Header),
   10 (Aktionsleiste), 11 (Footer) und 15 (Motion).
   ========================================================================== */
:root {
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 36px;
  --line-strong: rgba(0, 32, 96, 0.45);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 30px 60px -34px rgba(0, 32, 96, 0.38);
  --hatch: repeating-linear-gradient(135deg, var(--navy) 0 1.5px, transparent 1.5px 7px);
  --hatch-light: repeating-linear-gradient(135deg, var(--teal) 0 1.5px, transparent 1.5px 7px);
  --header-h: 84px;
}

::selection { background: var(--teal); color: var(--navy); }
html { scrollbar-color: var(--navy) var(--mist); }
:focus-visible { border-radius: 12px; }
.on-dark :focus-visible, .site-footer :focus-visible, .contact :focus-visible { outline-color: var(--teal); }

/* ==========================================================================
   5. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              transform 160ms var(--ease-out),
              box-shadow 300ms var(--ease-soft);
}
.btn svg { flex: none; transition: transform 300ms var(--ease-soft); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn--primary { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn--teal,
.on-dark .btn--primary,
.contact .btn--primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.on-dark .btn--secondary,
.contact .btn--secondary { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.45); }
.btn--block { width: 100%; }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy-900); border-color: var(--navy-900); box-shadow: 0 10px 22px -12px rgba(0, 32, 96, 0.7); }
  .btn--secondary:hover { background: rgba(0, 32, 96, 0.06); border-color: var(--navy); }
  .btn--teal:hover { background: var(--teal-600); border-color: var(--teal-600); box-shadow: 0 10px 22px -12px rgba(0, 32, 96, 0.5); }
  .on-dark .btn--primary:hover,
  .contact .btn--primary:hover { background: #fff; border-color: #fff; box-shadow: none; }
  .on-dark .btn--secondary:hover,
  .contact .btn--secondary:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
  .btn:hover svg { transform: translateX(4px); }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* ==========================================================================
   6. Header — schwebende Kapsel
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: 0.7rem;
}
.header-inner {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 60px;
  width: calc(100% - 1.5rem);
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem 0.6rem;
}
/* Der Schleier liegt auf einem Pseudo-Element, damit das aufgeklappte
   Mobilmenue nicht mit weichgezeichnet oder beschnitten wird. */
.header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.06), 0 14px 30px -20px rgba(0, 32, 96, 0.4);
}
@supports not (backdrop-filter: blur(1px)) {
  .header-inner::before { background: var(--paper); }
}

.brand { flex: none; display: flex; align-items: center; min-height: 44px; }
.brand img { height: 28px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.6rem); margin-left: auto; }
.nav a:not(.btn) {
  padding-block: 0.4rem;
  font-size: var(--step-small);
  font-weight: 500;
  color: var(--navy);
  background: linear-gradient(var(--navy), var(--navy)) no-repeat 0 100% / 0 2px;
  transition: background-size 300ms var(--ease-soft);
}
.nav a:not(.btn):hover,
.nav a:not(.btn)[aria-current="page"] { background-size: 100% 2px; }
.nav > .btn { display: none; }

.header-cta { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.header-cta .btn { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.clock {
  min-width: 6.4em;
  text-align: right;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.daybar { position: fixed; top: 0; left: 0; right: 0; z-index: 120; height: 3px; pointer-events: none; }
.daybar i { display: block; height: 100%; background: var(--navy); border-radius: 0 3px 3px 0; transform-origin: 0 50%; transform: scaleX(0); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  flex: none;
}
.nav-toggle span { position: relative; display: block; width: 20px; height: 2px; }
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--navy);
  transition: transform 350ms var(--ease-soft);
}
.nav-toggle span::before { top: -3px; }
.nav-toggle span::after { top: 3px; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-3px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn, .clock { display: none; }
  .header-inner { padding-inline: 1.2rem 0.45rem; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.6rem);
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - 7rem);
    overflow: auto;
    padding: 0.75rem 1.5rem 1.5rem;
    background: var(--navy);
    border-radius: var(--r-lg);
    box-shadow: 0 30px 60px -20px rgba(0, 19, 56, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1rem) scale(0.96);
    transform-origin: 100% 0;
    transition: opacity 300ms var(--ease-out),
                transform 450ms var(--ease-soft),
                visibility 0s linear 450ms;
  }
  .nav.is-open {
    overscroll-behavior: contain;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .nav a:not(.btn) {
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--on-navy);
    background: none;
    border-bottom: 1px solid var(--on-navy-line);
  }
  .nav > .btn { display: inline-flex; margin-top: var(--space-5); background: var(--teal); border-color: var(--teal); color: var(--navy); }
}

/* ==========================================================================
   10. Mobile Aktionsleiste — schwebende Kapsel
   ========================================================================== */
.action-bar {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: none;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding: 0.45rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.06), 0 18px 34px -16px rgba(0, 32, 96, 0.55);
  transition: transform 500ms var(--ease-soft);
}
.action-bar .btn { min-height: 46px; padding-inline: 1rem; font-size: 0.9375rem; }
.action-bar .action-call { width: 46px; padding: 0; }
.js-on .action-bar:not(.is-on) { transform: translateY(170%); }

@media (max-width: 1040px) {
  .action-bar { display: grid; }
  body { padding-bottom: 84px; }
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
  background: var(--navy-900);
  color: var(--on-navy-muted);
  padding-block: var(--space-8) var(--space-6);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}
.footer-top {
  display: grid;
  gap: var(--space-7);
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--on-navy-line);
}
@media (min-width: 800px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer img { height: 34px; width: auto; }
.footer-tagline { margin-top: var(--space-4); font-size: var(--step-small); }
.footer-col__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--space-4);
}
.footer-col ul { display: grid; }
.footer-col a {
  display: inline-block;
  padding-block: 0.5rem;
  font-size: var(--step-small);
  color: var(--on-navy-muted);
  transition: color var(--dur) var(--ease-out);
}
.footer-col a:hover { color: var(--on-navy); }

.social { display: flex; gap: 0.7rem; margin-top: var(--space-5); }
.social a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--teal);
  border: 1px solid var(--on-navy-line);
  transition: background-color 300ms, color 300ms, border-color 300ms, transform 400ms var(--ease-soft);
}
.social a:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  .social a:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); transform: translateY(-3px); }
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: var(--step-small);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.footer-bottom nav a { display: inline-block; padding-block: 0.5rem; }
.footer-bottom nav a:hover { color: var(--on-navy); }

/* ==========================================================================
   Unterseiten: Rechtstexte, Blog und Tests in der runden Fassung
   ========================================================================== */
.eyebrow { display: none; }             /* Ueberzeilen entfallen in der neuen Fassung */
.section-head .h2,
.blog-intro .h2,
.quiz-panel > .h2,
.quiz-screen > .h2 { margin-top: 0 !important; }

.legal,
.quiz-panel { border: 0; box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.05), var(--shadow-soft); }
.legal a, .artevie-post a, .post-back { color: var(--navy); }

.artevie-blog .wp-block-post { border: 0; box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.05); transition: box-shadow 500ms var(--ease-soft), transform 500ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) {
  .artevie-blog .wp-block-post:hover { box-shadow: var(--shadow-soft); transform: translateY(-6px); }
  .artevie-blog .wp-block-post:hover .wp-block-post-title a { color: var(--navy); }
}
.artevie-blog .wp-block-post-terms { color: var(--ink-muted); }
.artevie-blog .wp-block-query-no-results { border: 0; }
.post-cta { border-top: 0; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--navy); border-radius: var(--r-lg); }
.post-cta .h4 { color: var(--on-navy); }
.post-cta .body { color: var(--on-navy-muted); }
.post-cta .btn--primary { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.post-cta .btn--secondary { color: var(--on-navy); border-color: rgba(255, 255, 255, 0.45); }

.progress-track { height: 10px; }
.progress-fill { background: var(--navy); transition: width 500ms var(--ease-soft); }
.qcat { background: var(--teal); }
.answer-btn,
.q-option {
  border: 0;
  background: var(--mist);
  border-radius: var(--r-md);
  transition: background-color 300ms, transform 300ms var(--ease-soft), box-shadow 300ms;
}
.answer-btn:active, .q-option:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) {
  .answer-btn:hover, .q-option:hover { background: var(--mist-deep); transform: translateY(-2px); }
}
.answer-btn.selected,
.q-option:has(input:checked) { background: var(--teal); color: var(--navy); font-weight: 600; }
.category-card, .recommendations { border: 0; }
.category-bar-fill { background: var(--navy); }
.error-message { border: 0; }

/* ==========================================================================
   Seite nicht gefunden (404)
   ========================================================================== */
.notfound { color: var(--navy); }
.notfound .display { max-width: 14em; }
.notfound .lead { margin-top: 1rem; }
.notfound .tests { max-width: 62rem; }
.notfound .btn-row { margin-top: var(--space-6); }
.nf-code {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6rem, 24vw, 15rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums;
}
.nf-code span { color: var(--teal-600); }

/* ==========================================================================
   15. Motion
   ========================================================================== */
.js [data-rise] {
  opacity: 0;
  transform: translateY(34px) scale(0.975);
  filter: blur(6px);
  transition: opacity 900ms var(--ease-soft), transform 1100ms var(--ease-soft), filter 900ms var(--ease-soft);
  transition-delay: calc(var(--ri, 0) * 90ms);
}
.js [data-rise].is-in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1; transform: none; filter: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .header-inner::before,
  .action-bar { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media print {
  .site-header, .action-bar, .btn, .daybar { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
}

/* ==========================================================================
   Startseite (Fassung 14.11.2026)
   Farbsprache: Navy gefuellt = eigentliche Arbeit, Navy schraffiert = Routine,
   Teal = zurueckgewonnene Zeit.
   Alle Klassen hier gehoeren zur Startseite. IDs sind an js/site.js gebunden.
   ========================================================================== */
.home { color: var(--navy); }
.home h1, .home h2, .home h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
.home h1 { font-size: clamp(2.3rem, 5.1vw, 4.1rem); }
.home h2 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
.home h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.3; }
.home p { margin: 0; text-wrap: pretty; }
.home .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); line-height: 1.5; max-width: 34em; }
.home .section > .wrap > h2 + .lead { margin-top: 1rem; }
.home .on-dark { background: var(--navy); color: var(--on-navy); }
.home .on-dark p { color: var(--on-navy-muted); }
.home .on-dark.section {
  margin-inline: clamp(0.6rem, 1.6vw, 1.5rem);
  border-radius: var(--r-xl);
}
.field-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.on-dark .field-label { color: var(--on-navy-muted); }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Einstieg mit Wochenzettel ---------- */
.intro { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 7vw, 5.5rem); overflow: clip; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: center; }
.intro h1 span { display: block; }
.intro .lead { margin-top: 1.5rem; }

.zettel {
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.06), var(--shadow-soft);
  overflow: hidden;
  rotate: -3deg;
}
.zettel-head { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; align-items: end; padding: 1.2rem 1.4rem 1.1rem; border-bottom: 1px solid var(--line); }
.zettel-head strong { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.01em; }
.switch { position: relative; isolation: isolate; grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; margin-top: 0.5rem; padding: 4px; background: var(--mist); border-radius: var(--r-pill); }
.switch::before { content: ""; position: absolute; z-index: -1; inset: 4px 50% 4px 4px; background: var(--navy); border-radius: var(--r-pill); box-shadow: 0 4px 10px -4px rgba(0, 32, 96, 0.6); transition: transform 500ms var(--ease-soft); }
.zettel.is-after .switch::before { transform: translateX(100%); }
.switch button { appearance: none; min-height: 44px; padding: 0.55rem 0.8rem; border: 0; border-radius: var(--r-pill); background: none; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--navy); cursor: pointer; transition: color 250ms; }
.switch button[aria-pressed="true"] { color: var(--on-navy); }
.week { display: grid; grid-template-columns: 2.4rem repeat(5, 1fr); gap: 0 0.45rem; padding: 1.1rem 1.4rem 1.2rem; }
.week .hours { display: flex; flex-direction: column; justify-content: space-between; padding-top: 1.7rem; font-family: var(--font-display); font-weight: 700; font-size: 0.7rem; color: var(--ink-muted); }
.day { display: flex; flex-direction: column; min-width: 0; }
.day > span { height: 1.7rem; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; }
.day-col { display: flex; flex-direction: column; gap: 3px; height: clamp(15rem, 30vw, 21rem); }
.blk { flex: var(--h) 1 0; min-height: 0; border-radius: 9px; transition: flex-grow 900ms var(--ease-soft), opacity 600ms; transition-delay: calc(var(--d) * 30ms); }
.blk.core { background: var(--navy); }
.blk.routine { background: var(--hatch); opacity: 0.8; }
.blk.free { flex-grow: 0; margin-top: -3px; background: var(--teal); opacity: 0; }
.zettel.is-after .blk.routine { flex-grow: calc(var(--h) * 0.35); }
.zettel.is-after .blk.free { flex-grow: calc(var(--h) * 0.65); margin-top: 0; opacity: 1; }
.zettel-foot { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.zettel-foot div { padding: 0.9rem 1.4rem; border-left: 1px solid var(--line); }
.zettel-foot div:first-child { border-left: 0; }
.zettel-foot b { display: block; font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.3; }
.zettel-foot .is-free b { display: inline-block; padding-inline: 0.1em; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 88% / 100% 0.42em; }
.key { display: inline-block; width: 0.85rem; height: 0.85rem; margin-right: 0.35rem; border-radius: 4px; vertical-align: -0.1em; }
.key.core { background: var(--navy); }
.key.routine { background: var(--hatch); }
.key.free { background: var(--teal); }
.zettel-note { padding: 0.7rem 1.4rem 1.1rem; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--ink-muted); }

/* ---------- Kurzfakten ---------- */
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; padding-inline: clamp(1.25rem, 3vw, 2.25rem); background: var(--paper); border-radius: var(--r-md); box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.05); }
.facts div { padding: 1.1rem clamp(1rem, 2.5vw, 2rem); border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts dd { margin: 0.15rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 1.6vw, 1.25rem); }

/* ---------- Kennen Sie das? + Rechner ---------- */
.check-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; margin-top: 3rem; }
.checks { display: grid; gap: 0.6rem; margin: 0; padding: 0; list-style: none; }
.checks label { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; padding: 1.15rem 1.3rem; background: var(--paper); border-radius: var(--r-md); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 500; line-height: 1.35; cursor: pointer; transition: background-color 350ms, transform 350ms var(--ease-soft), box-shadow 350ms; }
.checks label:active { transform: scale(0.985); }
.checks label:has(input:checked) { background: var(--teal); }
.checks input { appearance: none; display: grid; place-content: center; width: 1.7rem; height: 1.7rem; margin: 0.1rem 0 0; background: var(--paper); border: 1.5px solid var(--navy); border-radius: 50%; cursor: pointer; }
.checks input:checked { background: var(--navy); }
.checks input::after { content: ""; width: 1.05rem; height: 1.05rem; background: #fff; clip-path: polygon(8% 52%, 20% 40%, 40% 60%, 82% 12%, 94% 24%, 40% 86%); transform: scale(0) rotate(-12deg); transition: transform 350ms var(--ease-soft); }
.checks input:checked::after { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .checks label:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -20px rgba(0, 32, 96, 0.5); }
}

.rechner { position: sticky; top: 6.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.home .rechner h3 { font-size: 1.3rem; }
.rechner output { display: block; margin-top: 1.25rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1; }
.rechner output small { margin-left: 0.4em; font-family: var(--font-body); font-weight: 500; font-size: 0.3em; letter-spacing: 0; color: var(--on-navy-muted); }
.rechner input[type=range] { appearance: none; width: 100%; height: 44px; margin: 1.5rem 0 0.4rem; background: transparent; cursor: pointer; }
.rechner input[type=range]::-webkit-slider-runnable-track { height: 12px; border-radius: 999px; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 0 / var(--fill, 30%) 100%, rgba(255, 255, 255, 0.16); }
.rechner input[type=range]::-moz-range-track { height: 12px; border-radius: 999px; background: linear-gradient(var(--teal), var(--teal)) no-repeat 0 0 / var(--fill, 30%) 100%, rgba(255, 255, 255, 0.16); }
.rechner input[type=range]::-webkit-slider-thumb { appearance: none; width: 2rem; height: 2rem; margin-top: calc(6px - 1rem); border: 0; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.5); transition: transform 200ms var(--ease-soft); }
.rechner input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.rechner input[type=range]::-moz-range-thumb { width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: #fff; }
.scale { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; color: var(--on-navy-muted); }
.home .rechner p.result { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--on-navy-line); font-size: 1.12rem; line-height: 1.45; color: var(--on-navy); }
.rechner p.result b { color: var(--teal); }
.rechner .fine { margin-top: 0.5rem; font-size: 0.82rem; }
.rechner .btn { width: 100%; margin-top: 1.5rem; }
.bridge { max-width: 24em; margin-top: 3rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; }
.bridge s { color: var(--ink-muted); text-decoration-thickness: 2px; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.service { display: flex; flex-direction: column; gap: 1rem; padding: clamp(1.5rem, 2.6vw, 2.25rem); background: var(--mist); border-radius: var(--r-lg); transition: transform 500ms var(--ease-soft), box-shadow 500ms var(--ease-soft); }
.service p { color: var(--ink-muted); }
.service ul { display: grid; gap: 0.55rem; margin: auto 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); list-style: none; font-weight: 500; }
.service li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.6rem; align-items: baseline; }
.service li::before { content: ""; width: 0.7rem; height: 0.7rem; background: var(--teal); border-radius: 50%; transform: translateY(0.05rem); }
@media (hover: hover) and (pointer: fine) {
  .service:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
}

/* ---------- Fundament ---------- */
.fund-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: end; margin-top: 3rem; }
.stairs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stairs li { display: grid; grid-template-columns: 3.2rem 1fr; gap: 0.5rem; align-items: center; width: var(--w); padding: 1.1rem 1.4rem; background: var(--bg); border-radius: var(--r-md); color: var(--on-navy); }
.stairs li b { display: block; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.3; }
.stairs li span { font-size: 0.98rem; color: var(--on-navy-muted); }
.stairs .lvl { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--teal); }
.stairs li.top, .stairs li.top span, .stairs li.top .lvl { color: var(--navy); }
.stairs li.later { display: block; width: 100%; max-width: 34em; padding: 0.6rem 0.25rem 0; background: none; font-size: 0.98rem; color: var(--ink-muted); }
.stairs li.later b { display: inline; font-family: var(--font-body); font-size: inherit; color: var(--navy); }
.js-on .stairs li { transition: transform 700ms var(--ease-soft), opacity 500ms; transition-delay: calc(var(--i) * 140ms); }
.js-on .stairs:not(.is-in) li { transform: translateY(1.25rem); opacity: 0; }
.quick { padding: clamp(1.25rem, 2.5vw, 1.75rem); background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(0, 32, 96, 0.05), var(--shadow-soft); }
.quick .checks { margin-top: 0.9rem; }
.quick .checks label { padding: 0.9rem 1.1rem; background: var(--mist); font-size: 1.08rem; }
.quick .checks label:has(input:checked) { background: var(--teal); }
.quick .verdict { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.35; }
.quick .btn { width: 100%; margin-top: 1.25rem; }

/* ---------- Team ---------- */
.change-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.people { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; max-width: 26rem; }
.people i { aspect-ratio: 1; border: 1px solid var(--on-navy-line); border-radius: 50%; transition: background-color 500ms, border-color 500ms; transition-delay: calc(var(--i) * 9ms); }
.people.is-in i.doubt { background: var(--hatch-light); border-color: var(--teal); }
.people-cap { max-width: 26rem; margin-top: 1.1rem; }
.people-cap b { margin-right: 0.3rem; font-family: var(--font-display); font-size: 1.5rem; color: var(--on-navy); }
.change-grid h2 + p { max-width: 32em; margin-top: 1.4rem; font-size: 1.15rem; }
.change-list { margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--on-navy-line); list-style: none; }
.change-list li { display: flex; gap: 0.8rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--on-navy-line); font-weight: 500; }
.change-list li::before { content: ""; flex: none; width: 0.7rem; height: 0.7rem; background: var(--teal); border-radius: 50%; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .home .on-dark.section { animation: tafel linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes tafel { from { transform: scale(0.9); border-radius: 64px; } to { transform: none; border-radius: var(--r-xl); } }
  }
}

/* ---------- Vorher / Nachher ---------- */
.shift { margin-top: 2.5rem; }
.shift-row { display: grid; grid-template-columns: 1fr 2.5rem 1fr; gap: 1rem; align-items: center; padding: 1.3rem 0.25rem; border-bottom: 1px solid var(--line); }
.shift-row s { font-size: 1.05rem; color: var(--ink-muted); text-decoration-color: var(--line-strong); }
.shift-row svg { justify-self: center; }
.shift-row div b { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 2.2vw, 1.6rem); line-height: 1.3; }
.shift-row div span { font-size: 0.98rem; color: var(--ink-muted); }

/* ---------- Ablauf ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0 0; padding: 0; list-style: none; }
.step { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 1.5rem clamp(1.1rem, 2vw, 1.75rem) 1.9rem; background: var(--mist); border-radius: var(--r-lg); }
.step .no { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: 1; }
.home .step h3 { margin-top: 1rem; font-size: 1.25rem; }
.step p { margin: 0.6rem 0 1.25rem; font-size: 0.98rem; color: var(--ink-muted); }
.step .btn { min-height: 44px; margin-top: auto; padding: 0.55rem 1.2rem; font-size: 0.95rem; }
.stamp { position: absolute; top: 1.4rem; right: 1rem; padding: 0.3rem 0.8rem; background: var(--teal); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.js-on .steps .step { transition: transform 800ms var(--ease-soft), opacity 600ms; transition-delay: calc(var(--i) * 110ms); }
.js-on .steps:not(.is-in) .step { transform: translateY(1.5rem) rotate(calc((var(--i) - 1.5) * 1.2deg)); opacity: 0; }
.js-on .stamp { transition: transform 450ms var(--ease-soft) 750ms, opacity 200ms 750ms; }
.js-on .steps:not(.is-in) .stamp { transform: scale(1.5); opacity: 0; }
.swipe-hint { display: none; }

/* ---------- Gruender ---------- */
.founders-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.photo { position: relative; margin: 0; }
.photo img { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.photo figcaption { position: absolute; left: 1rem; bottom: 1rem; max-width: 17rem; padding: 0.7rem 1rem; background: rgba(0, 32, 96, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: var(--r-md); font-size: 0.92rem; line-height: 1.35; color: var(--on-navy); }
.photo figcaption b { display: block; font-family: var(--font-display); font-size: 1.02rem; }
.founders-grid .lead { margin-top: 1.4rem; color: var(--navy); }
.founders-grid .lead ~ p { max-width: 36em; margin-top: 1rem; color: var(--ink-muted); }
.sign { display: flex; flex-wrap: wrap; gap: 0.3rem 2rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sign b { font-family: var(--font-display); font-size: 1.15rem; }
.sign span { flex-basis: 100%; font-size: 0.95rem; color: var(--ink-muted); }

/* ---------- Neuester Blog-Artikel, 3D ---------- */
.blog-teaser { overflow: clip; padding-block: clamp(2rem, 5vw, 4rem) var(--section-y); }
.blog-teaser .wrap { perspective: 1500px; }
.post3d { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4rem); background: var(--navy); border-radius: var(--r-xl); color: var(--on-navy); text-decoration: none; transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 350ms var(--ease-soft), box-shadow 500ms var(--ease-soft); box-shadow: 0 60px 80px -50px rgba(0, 19, 56, 0.8); will-change: transform; }
.post3d::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(40rem circle at var(--gx) var(--gy), rgba(164, 215, 216, 0.28), transparent 55%); opacity: 0; pointer-events: none; transition: opacity 500ms; }
.post3d.is-hover::after { opacity: 1; }
.post3d.is-hover { box-shadow: 0 80px 90px -50px rgba(0, 19, 56, 0.9); }
.post3d-text { display: grid; gap: 1rem; justify-items: start; transform: translateZ(50px); }
.home .post3d h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.15; color: var(--on-navy); }
.home .post3d p { max-width: 30em; font-size: 1.1rem; color: var(--on-navy-muted); }
.post3d .meta { font-size: 0.9rem; color: var(--on-navy-muted); }
.post3d .meta:empty { display: none; }
.post3d .btn { margin-top: 0.5rem; }
.pill { padding: 0.3rem 0.9rem; background: var(--teal); border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); }
.post3d-stack { position: relative; height: 17rem; transform-style: preserve-3d; animation: schweben 6s ease-in-out infinite alternate; }
@keyframes schweben { from { translate: 0 -8px; } to { translate: 0 10px; } }
.sheet { position: absolute; inset: 0 10%; display: grid; gap: 0.6rem; align-content: start; padding: 1.2rem; background: #fff; border-radius: 18px; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.65); }
.sheet i { height: 0.55rem; background: rgba(0, 32, 96, 0.14); border-radius: 99px; }
.sheet i:first-child { height: 3.4rem; background: var(--teal); border-radius: 12px; }
.sheet i:nth-child(2) { width: 72%; height: 0.85rem; margin-top: 0.3rem; background: var(--navy); }
.sheet i:last-child { width: 55%; }
.sheet:nth-child(1) { background: #c9d6ee; transform: translateZ(20px) translateX(-14%) rotate(-10deg); }
.sheet:nth-child(2) { background: #e6edf8; transform: translateZ(75px) rotate(-3deg); }
.sheet:nth-child(3) { transform: translateZ(140px) translateX(10%) rotate(6deg); }
/* Bild des Artikels: ersetzt das vorderste Blatt, sobald es geladen ist */
.post3d-img { position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-radius: 18px; box-shadow: 0 30px 40px -24px rgba(0, 0, 0, 0.65); transform: translateY(-50%) translateZ(140px) rotate(4deg); }
.post3d-img[hidden] { display: none; }
.post3d-stack.has-img .sheet:nth-child(3) { display: none; }
.post3d-stack.has-img { margin-left: 10%; }

/* ---------- Tests ---------- */
.tests { display: grid; gap: 0.75rem; margin-top: 2.5rem; }
.test { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 1rem 2.5rem; align-items: center; padding: 1.6rem clamp(1.25rem, 2.5vw, 2rem); background: var(--mist); border-radius: var(--r-lg); color: inherit; text-decoration: none; transition: transform 500ms var(--ease-soft); }
.test::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--teal); transform: scaleX(0); transform-origin: 0 50%; transition: transform 550ms var(--ease-soft); }
.test b { font-family: var(--font-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); line-height: 1.3; }
.test .meta { display: block; margin-top: 0.35rem; }
.test p { color: var(--ink-muted); }
.test .go { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border: 1px solid var(--navy); border-radius: 50%; transition: transform 400ms var(--ease-soft), background-color 300ms, color 300ms; }
.test:focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .test:hover { transform: translateY(-4px); }
  .test:hover::before { transform: none; }
  .test:hover p, .test:hover .field-label { color: var(--navy); }
  .test:hover .go { transform: translateX(6px); background: var(--navy); color: var(--on-navy); }
}

/* ---------- Kontakt ---------- */
.contact { margin-bottom: clamp(0.6rem, 1.6vw, 1.5rem); }
.home .contact h2 { max-width: 11em; font-size: clamp(2.4rem, 7vw, 5.2rem); }
.contact .lead { margin-top: 1.5rem; }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr) minmax(0, 1.1fr); margin-top: 3.5rem; border-top: 1px solid var(--on-navy-line); }
.contact-grid > * { margin-right: 1.5rem; padding: 1.5rem 1.5rem 1.5rem 0; border-right: 1px solid var(--on-navy-line); text-decoration: none; }
.contact-grid > *:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.contact-grid a b { display: inline-block; margin-top: 0.5rem; font-family: var(--font-display); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.3; color: var(--on-navy); overflow-wrap: anywhere; text-decoration: underline 2px transparent; text-underline-offset: 0.3em; transition: text-decoration-color 300ms; }
.contact-grid a:hover b { text-decoration-color: var(--teal); }
.contact-grid address { font-style: normal; line-height: 1.55; color: var(--on-navy-muted); }
.contact-grid address b { color: var(--on-navy); }

/* ---------- Einstieg: Bewegung beim Laden ---------- */
.js .intro h1 span { opacity: 0; transform: translateY(0.6em); animation: auf 900ms var(--ease-soft) forwards; animation-delay: calc(var(--n) * 110ms + 100ms); }
.js .intro .lead, .js .intro .btn-row { opacity: 0; animation: auf 900ms var(--ease-soft) 500ms forwards; }
.js .intro .zettel { opacity: 0; transform: translateY(40px) scale(0.94); animation: auf 1200ms var(--ease-soft) 350ms forwards; }
@keyframes auf { to { opacity: 1; transform: none; } }

/* ---------- Schmale Bildschirme ---------- */
@media (max-width: 1040px) {
  .intro-grid, .check-grid, .change-grid, .founders-grid, .fund-grid { grid-template-columns: 1fr; }
  .zettel { rotate: -2deg; margin-block: 0.75rem; }
  .rechner { position: static; }
  .services { grid-template-columns: 1fr; }
  .stairs li { width: calc(var(--w) * 0.5 + 50%); }
  .stairs li.later { width: 100%; }
  .steps { display: flex; gap: 0.75rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); padding-bottom: 0.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .steps::-webkit-scrollbar { display: none; }
  .step { flex: 0 0 82%; scroll-snap-align: start; }
  .swipe-hint { display: flex; gap: 0.4rem; margin-top: 1rem; }
  .swipe-hint i { width: 1.6rem; height: 4px; background: var(--line); border-radius: 2px; transition: background-color 300ms; }
  .swipe-hint i.on { width: 2.6rem; background: var(--navy); }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > * { margin-right: 0; padding: 1.2rem 0; border-right: 0; border-bottom: 1px solid var(--on-navy-line); }
  .test { grid-template-columns: 1fr auto; }
  .test p { grid-column: 1; grid-row: 2; }
  .test .go { grid-column: 2; grid-row: 1 / span 2; }
  .post3d { grid-template-columns: 1fr; gap: 1.5rem; padding: 1.75rem 1.5rem 2rem; }
  .post3d-stack { order: -1; height: 11.5rem; margin-inline: 8%; }
  .post3d-text { transform: translateZ(30px); }
  .sheet:nth-child(3) { transform: translateZ(90px) translateX(8%) rotate(6deg); }
  .post3d-img { transform: translateY(-50%) translateZ(90px) rotate(3deg); }
  .post3d-stack.has-img { height: auto; aspect-ratio: 40 / 23; margin-inline: 4%; }
}
@media (max-width: 640px) {
  .facts dl { grid-template-columns: 1fr; padding-block: 0.4rem; }
  .facts div { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: 0.8rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts div:first-child { border-top: 0; }
  .facts dd { margin: 0; text-align: right; }
  .week { grid-template-columns: 1.9rem repeat(5, 1fr); gap: 0 0.3rem; padding-inline: 0.9rem; }
  .zettel-foot div { padding: 0.6rem 0.7rem; }
  .shift-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .shift-row svg { justify-self: start; width: 18px; transform: rotate(90deg); }
  .people { gap: 4px; }
  .photo figcaption { left: 0.6rem; bottom: 0.6rem; }
  .home .on-dark.section { border-radius: var(--r-lg); }
  .home .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .js .intro h1 span, .js .intro .lead, .js .intro .btn-row, .js .intro .zettel { opacity: 1; transform: none; }
  .post3d { transform: none; }
  .post3d-stack { animation: none; }
}
