/* butler.li: gemeinsames Stylesheet für alle Seiten.
   1. Basis: Farben, Schriften, Grundregeln (gelten überall).
   2. Gerüst aller Seiten (.page): Kopf, Navigation, Fuss. Startseite und Unterseiten teilen dieselben Regeln.
   3. Startseite (index.html, .page.home): Abschnitte, Karten, Buttons, Tabs, Schritte, Umschalter.
   4. Unterseiten (Impressum, Datenschutzerklärung, AGB, Kontakt): Inhalt in <main> und Kontaktformular.
   5. Cookie-Banner (consent.js).
   Keine style-Attribute im HTML und keine Inline-Styles in den Skripten (seit 15. Oktober 2026).
   Farben nur hier, als Tokens aus dem Design System butler.li (gleiche Namen). Hell und Dunkel (Stand 12. Oktober 2026);
   theme.js setzt data-theme="light" oder "dark" auf <html>. Im HTML und in den Skripten stehen nur var(--…).
   Inseln, die in beiden Modi hell bleiben, tragen selbst data-theme="light": die Bildflächen der Illustrationen
   (helle PNG) und der Pilot-Kasten (Entscheid Dom, 12. Oktober 2026). */

/* 1. Basis */
:root, [data-theme="light"] {
  color-scheme: light;
  --surface: #ffffff; --surface-muted: #f4f4f5; --surface-raised: #ffffff;
  --ink: #222222; --ink-soft: #3f3f46; --ink-muted: #5c5c66;
  --on-ink: #ffffff; --line: #e4e4e7;
  --accent: #e9ff00; --on-accent: #222222;
  --surface-inverse: #222222; --on-inverse: #ffffff; --on-inverse-muted: #d4d4d8; --line-on-inverse: #3f3f46; --accent-on-inverse: #e9ff00;
  /* Button auf surface-inverse: hell gelb, dunkel dunkel (Gelb wäre auf dem hellen Band unsichtbar) */
  --btn-on-inverse: #e9ff00; --on-btn-on-inverse: #222222;
  /* Button auf accent: bleibt in beiden Modi dunkel */
  --btn-on-accent: #222222; --on-btn-on-accent: #ffffff;
  /* Nur Website (nicht im Design System): Rahmen von Formularfeldern, Schatten des Cookie-Banners */
  --control-border: #a1a1aa; --shadow-float: 0 8px 32px rgba(0, 0, 0, .14);
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #161618; --surface-muted: #1f1f22; --surface-raised: #27272a;
  --ink: #f4f4f5; --ink-soft: #d4d4d8; --ink-muted: #a1a1aa;
  --on-ink: #161618; --line: #34343a;
  --surface-inverse: #f4f4f5; --on-inverse: #161618; --on-inverse-muted: #3f3f46; --line-on-inverse: #d4d4d8; --accent-on-inverse: #646e00;
  --btn-on-inverse: #161618; --on-btn-on-inverse: #f4f4f5;
  --btn-on-accent: #222222; --on-btn-on-accent: #f4f4f5;
  --control-border: #71717a; --shadow-float: 0 8px 32px rgba(0, 0, 0, .5);
}
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url(fonts/inter-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Material Symbols Rounded'; font-style: normal; font-weight: 200 500; font-display: block; src: url(fonts/material-symbols-rounded-subset.woff2?v=2) format('woff2'); }
body { margin: 0; background: var(--surface) }
a { color: var(--ink) } a:hover { opacity: 0.75 }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px }

/* 2. Gerüst aller Seiten (Startseite und Unterseiten) */
.page { background: var(--surface); color: var(--ink); font-family: 'Inter', Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column }
.page .wrap { max-width: 1200px; width: 100%; margin: 0 auto; padding: 0 24px; box-sizing: border-box; display: flex; flex-direction: column }

.page header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0 }
.page .brand { display: flex; align-items: center; gap: 10px; text-decoration: none }
.page .brand img { width: 36px; height: 36px; display: block }
.page .brand span { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.3px }
.page nav { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; font-size: 14px; font-weight: 500 }
.page nav a { text-decoration: none }

/* Fuss */
.page footer { display: flex; flex-direction: column; gap: 40px; padding: 40px 0; border-top: 1px solid var(--line) }
.page .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px }
.page .cols > div { display: flex; flex-direction: column; gap: 10px; font-size: 14px }
.page .head { font-weight: 600 }
.page .muted { color: var(--ink-muted); text-decoration: none; line-height: 1.5 }
.page .legal { text-decoration: none }
.page .legal[aria-current] { font-weight: 600; text-decoration: none }
.page .sign { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px }
.page .mark { display: flex; align-items: center; gap: 14px; font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.5px }
.page .mark img { width: 48px; height: 48px; display: block }
.page .claim { font-size: 20px; line-height: 1.3; font-weight: 500; max-width: 240px; padding-bottom: 10px }
.page .copy { font-size: 12px; color: var(--ink-muted) }
.page .col-about { flex: 1 1 280px }
.page .col-links { flex: 1 1 200px }
.page .col-contact { flex: 1 1 220px }
/* Startseite: Links im Fuss ohne Zeilenhöhe 1.5 (wie bisher; Unterseiten haben 1.5, Angleichung offen) */
.home .cols a.muted { line-height: normal }

/* 3. Startseite */
/* Typografie */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted) }
.eyebrow-inverse { color: var(--accent-on-inverse) }
.eyebrow-accent { color: var(--on-accent) }
.eyebrow-dot { display: flex; align-items: center; gap: 10px }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent) }
.display { font-family: 'Bricolage Grotesque', Arial, sans-serif; margin: 0; font-size: 72px; line-height: 0.97; font-weight: 500; letter-spacing: -0.03em }
.h2 { font-family: 'Bricolage Grotesque', Arial, sans-serif; margin: 0; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.04; font-weight: 500; letter-spacing: -0.02em }
.h2-lg { font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -0.025em }
.h3 { font-family: 'Bricolage Grotesque', Arial, sans-serif; margin: 0; font-size: 22px; font-weight: 600 }
.lead { margin: 0; font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 480px }
.text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-muted) }
.text-narrow { max-width: 560px }
.text-inverse { color: var(--on-inverse-muted) }
.text-accent { color: var(--on-accent) }
.small { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-muted) }
.hint { margin: 0; font-size: 14px; color: var(--ink-muted) }

/* Buttons (Pillen) */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px }
.btn { text-decoration: none; padding: 15px 26px; border-radius: 999px; font-size: 15px; font-weight: 600 }
.btn-lg { padding: 16px 28px; font-size: 16px }
.btn-ink { background: var(--ink); color: var(--on-ink) }
.btn-accent { background: var(--accent); color: var(--on-accent) }
.btn-on-inverse { align-self: flex-start; background: var(--btn-on-inverse); color: var(--on-btn-on-inverse) }
.btn-on-accent { background: var(--btn-on-accent); color: var(--on-btn-on-accent) }

/* Abschnitte */
.band-muted { background: var(--surface-muted) }
.band-inverse { background: var(--surface-inverse); color: var(--on-inverse) }
.band-inner { max-width: 1200px; margin: 0 auto; padding: 104px 24px; box-sizing: border-box; display: flex; flex-direction: column; gap: 48px }
.split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 48px }
.split-stretch { align-items: stretch; gap: 32px 48px }
.split-main { flex: 999 1 520px; display: flex; flex-direction: column; gap: 18px }
.split-side { flex: 1 1 320px }
.split-side-wide { flex: 1 1 340px }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: stretch; gap: 48px; padding: 40px 0 56px }
.hero-text { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 24px 0 }
.hero-media { flex: 1 1 440px; background: var(--surface-muted); border-radius: 28px; overflow: hidden; display: flex; flex-direction: column }
.media-img { width: 100%; height: auto; display: block }
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 20px 24px }
.facts { display: flex; flex-wrap: wrap; gap: 24px 48px; padding: 28px 0 88px; border-top: 1px solid var(--line) }
.fact { flex: 1 1 240px; display: flex; flex-direction: column; gap: 4px }
.fact-title { font-size: 16px; font-weight: 600 }
.fact-text { font-size: 14px; line-height: 1.5; color: var(--ink-muted) }

/* Zeit sparen: Kennzahl und Karten */
.stat { flex: 1 1 300px; background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px }
.stat-value { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: clamp(64px, 8vw, 104px); line-height: 0.9; font-weight: 500; letter-spacing: -0.03em }
.stat-text { margin: 0; font-size: 16px; line-height: 1.5 }
.stat .ms { font-size: 44px; margin-bottom: auto } /* Icon oben, Text unten */
.stack { display: flex; flex-direction: column; gap: 16px }
.cards { display: flex; flex-wrap: wrap; gap: 20px }
.card { flex: 1 1 230px; background: var(--surface-raised); color: var(--ink); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px }
.card-wide { flex-basis: 260px; gap: 10px }

/* Datenschutz: Punkte auf dunklem Band */
.pillars { display: flex; flex-wrap: wrap; gap: 32px }
.pillar { flex: 1 1 230px; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line-on-inverse) }
.pillar .h3 { font-size: 21px; color: var(--on-inverse) }
.pillar .small { color: var(--on-inverse-muted) }

/* So funktioniert's */
.how { display: flex; flex-direction: column; gap: 48px; padding: 112px 0 64px }
.how-body { display: flex; flex-wrap: wrap; align-items: center; gap: 56px }
.how-media { flex: 1 1 420px; background: var(--surface-muted); border-radius: 28px; overflow: hidden }
.steps { flex: 1 1 420px; display: flex; flex-direction: column }

/* Testphase */
.pilot-section { padding: 48px 0 112px }
.pilot { background: var(--accent); color: var(--on-accent); border-radius: 28px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 40px }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px }

/* Fragen */
.faq { display: flex; flex-wrap: wrap; gap: 40px 64px; padding: 0 0 120px }
.faq-intro { flex: 1 1 300px; display: flex; flex-direction: column; gap: 18px }
.faq-list { flex: 999 1 520px; display: flex; flex-direction: column }
.faq-item { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-top: 1px solid var(--line) }
.faq-item:last-child { border-bottom: 1px solid var(--line) }
.faq-q { display: flex; justify-content: space-between; gap: 16px; font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 19px; font-weight: 600 }
.faq-q .dash { color: var(--ink-muted) }
.faq-a { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-muted) }

/* Tabs, Schritte, Umschalter */
.ms { font-family: 'Material Symbols Rounded'; font-weight: 300; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; flex: none; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; user-select: none; align-self: flex-start }
#daten :focus-visible { outline-color: var(--on-inverse) }
.tab { border: none; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; min-height: 40px; background: var(--surface); color: var(--ink-soft) }
.tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent) }
.step { display: flex; gap: 20px; width: 100%; text-align: left; padding: 24px 16px; margin: 0; background: transparent; border: none; border-radius: 16px; cursor: pointer; font-family: inherit }
.step[aria-selected="true"] { background: var(--surface-muted) }
.step .num { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--surface-muted) }
.step[aria-selected="true"] .num { color: var(--on-accent); background: var(--accent) }
.step-title { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 22px; font-weight: 600; color: var(--ink) }
.step-body { display: flex; flex-direction: column; gap: 6px }
.step-text { font-size: 16px; line-height: 1.55; color: var(--ink-muted) }

/* Umschalter Hell/Dunkel (theme.js), gleiche Spur und Höhe wie der Sprachumschalter */
.theme-switch { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: none; border-radius: 999px; cursor: pointer; overflow: hidden; background: var(--surface-muted); color: var(--ink) }
.theme-switch .ms { font-size: 20px; align-self: center }
.lang-switch { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--surface-muted); font-size: 14px; font-weight: 600 }
.lang-switch button { border: none; cursor: pointer; font: inherit; letter-spacing: 0.02em; min-width: 40px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--ink-muted) }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink) }


/* 4. Unterseiten: Inhalt */
.page main { max-width: 760px; padding: 40px 0 88px; overflow-wrap: break-word }
.page .back { display: inline-block; margin-bottom: 32px; font-size: 14px; font-weight: 500; color: var(--ink-muted); text-decoration: none }
.page main h1 { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: clamp(34px, 6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.5px; margin: 0 0 16px; hyphens: auto }
.page main h2 { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 24px; line-height: 1.25; font-weight: 600; margin: 48px 0 14px; scroll-margin-top: 24px }
.page main p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--ink-soft) }
.page main p strong { color: var(--ink) }
.page .stand { font-size: 14px; color: var(--ink-muted) }
.page .draft { background: var(--accent); color: var(--on-accent); border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.5; margin: 20px 0 24px }
.page .draft strong { color: inherit }
.page .clause { display: flex; gap: 14px }
.page .clause .no { flex: 0 0 38px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums }

.page .only-de { border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 15px; line-height: 1.5; margin: -12px 0 24px }

/* Kontaktformular (kontakt.html) */
.page .form { display: flex; flex-direction: column; gap: 20px; margin-top: 28px }
.page .field { display: flex; flex-direction: column; gap: 6px }
.page .field label { font-size: 14px; font-weight: 600 }
.page .field .opt { font-weight: 400; color: var(--ink-muted) }
.page .field input, .page .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: 12px; padding: 12px 14px; min-height: 48px; box-sizing: border-box; width: 100% }
.page .field textarea { min-height: 160px; resize: vertical; line-height: 1.5 }
.page .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden }
.page .submit { align-self: flex-start; font: inherit; font-size: 16px; font-weight: 600; background: var(--accent); color: var(--on-accent); border: none; border-radius: 999px; padding: 0 28px; min-height: 48px; cursor: pointer }
.page .submit:disabled { opacity: 0.6; cursor: default }
.page .note { font-size: 14px; line-height: 1.55; color: var(--ink-muted); margin: 0 }
.page .status { font-size: 16px; line-height: 1.5; margin: 0; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line) }
.page .status[hidden] { display: none }
.page .status.ok { background: var(--surface-muted) }
.page .status.err { border-color: var(--ink) }
.page .choice { border: none; padding: 0; margin: 0; min-width: 0 }
.page .choice legend { font-size: 14px; font-weight: 600; padding: 0; margin-bottom: 6px }
.page .radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 16px; cursor: pointer }
.page .radio input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--ink) }
.page .choice { gap: 0 }
.page .field .radio, .page .radio { font-weight: 400; font-size: 16px; min-height: 40px }
.page .field[hidden], .page .opt[hidden] { display: none }
.page .field select { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: 12px; padding: 12px 14px; min-height: 48px; box-sizing: border-box; width: 100% }
.page .in { display: inline-flex; vertical-align: -2px; margin-left: 4px; color: var(--ink) }

/* 5. Cookie-Banner (consent.js) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 9999; max-width: 560px; margin: 0 auto 0 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); padding: 20px 22px; font-family: Inter, Arial, sans-serif; box-sizing: border-box }
.consent h2 { font-family: 'Bricolage Grotesque', Arial, sans-serif; font-size: 20px; line-height: 1.25; font-weight: 600; margin: 0 0 8px }
.consent p { margin: 0 0 16px; font-size: 14px; line-height: 1.55; color: var(--ink-soft) }
.consent p a { color: var(--ink) }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px }
.consent button { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 10px 20px; border-radius: 999px; cursor: pointer; border: 2px solid var(--ink) }
.consent [data-c="yes"] { background: var(--accent); color: var(--on-accent) }
.consent [data-c="no"] { background: var(--surface); color: var(--ink) }

.nowrap { white-space: nowrap }
