/* Temia Kanban – gemeinsame Gestaltung aller Seiten und aller Sprachen.
   Hier steht nur Gestaltung; die Texte stehen in den Seiten der Sprachordner (de/, en/ …).
   Keine Schriften, Skripte oder Bilder von fremden Servern.
   Farben wie in der App (lib/core/theme.dart, lib/core/palette.dart).
   Abstände und Ränder sind richtungsneutral angegeben (inline-start/-end), damit Rechts-nach-links-Sprachen
   mit <html dir="rtl"> ohne weitere Änderung funktionieren. */

/* ------------------------------------------------------------------ Farben und Maße */

:root {
  color-scheme: light dark;

  --brand: #2F5BEA;            /* Markenfarbe der App */
  --brand-hover: #2448C4;
  --brand-tint: #E4EBFF;       /* Fläche des Hinweisbanners in der App */
  --brand-ink: #14224F;
  --brand-line: #2F5BEA;
  --on-brand: #FFFFFF;
  --accent: #FFD54A;           /* Gelb des Notizzettels im App-Symbol */
  --on-accent: #3A2A00;

  --bg: #F4F6FB;               /* Hintergrund der App (hell) */
  --bg-board: #E0E6F9;         /* Hintergrund eines blauen Boards */
  --column: #D7DEF3;           /* Spalte auf dem Board */
  --surface: #FFFFFF;          /* Karten */
  --field: #FFFFFF;
  --hover: rgba(28, 35, 51, .06);
  --ink: #1C2333;
  --ink-2: #4A5368;
  --ink-3: #5F687C;
  --line: #D8DDE8;
  --line-strong: #C3C9D8;
  --link: #2448C4;
  --focus: #2F5BEA;

  --note: #FFF3B0;             /* Notizzettel */
  --on-note: #1C2333;
  --on-note-2: #4A4630;
  --ok: #2E9E4F;
  --ok-ink: #1F7A3D;
  --ok-bg: #DDF4E4;
  --warn-bg: #FFEFC7;
  --warn-ink: #8A5A00;
  --danger: #E5484D;
  --label-blue: #2F7DE1;

  --frame-bar: #EEF1F7;
  --frame-line: #CBD2E1;
  --frame-dot: #C3C9D8;
  --bezel: #1C2333;

  --shadow-sm: 0 1px 2px rgba(20, 34, 79, .06), 0 4px 12px rgba(20, 34, 79, .06);
  --shadow-lg: 0 10px 20px -10px rgba(20, 34, 79, .22), 0 30px 60px -22px rgba(20, 34, 79, .36);

  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 70rem;
  --gutter: 1.25rem;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Segoe UI Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand-hover: #4B72F0;
    --brand-tint: #1F2A4D;
    --brand-ink: #E4EBFF;
    --brand-line: #7F9BFF;

    --bg: #12141A;             /* Hintergrund der App (dunkel) */
    --bg-board: #171F3B;
    --column: #1E2640;
    --surface: #1C1F27;
    --field: #242833;
    --hover: rgba(230, 233, 242, .08);
    --ink: #E8EBF4;
    --ink-2: #B8BECF;
    --ink-3: #9CA3B6;
    --line: #2C3140;
    --line-strong: #3A4052;
    --link: #A9BCFF;
    --focus: #A9BCFF;

    --note: #5F551C;
    --on-note: #FFFFFF;
    --on-note-2: #EDE6C4;
    --ok: #3DB563;
    --ok-ink: #9EE0B5;
    --ok-bg: #1E4630;
    --warn-bg: #5A4410;
    --warn-ink: #FFD77A;

    --frame-bar: #20242E;
    --frame-line: #3A4052;
    --frame-dot: #4A5166;
    --bezel: #3A4052;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 20px -10px rgba(0, 0, 0, .5), 0 30px 60px -22px rgba(0, 0, 0, .7);
  }
}

/* ------------------------------------------------------------------ Grundlagen */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
  hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 1.2rem + 3.9vw, 3.5rem); line-height: 1.14; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.005em; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }

p, ul, ol, dl, table { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.3em; }
li { margin-block: .3em; }

a { color: var(--link); text-underline-offset: .16em; text-decoration-thickness: .06em; }
a:hover { text-decoration-thickness: .12em; }

strong { font-weight: 700; }
small { font-size: .875rem; }

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

code, kbd, samp { font-family: var(--mono); font-size: .92em; }
kbd, code {
  background: var(--hover);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .08em .38em;
  white-space: break-spaces;
}
/* Prüfsummen: 64 Zeichen ohne Leerzeichen. Sie dürfen an jeder Stelle umbrechen, sonst ragen sie auf schmalen
   Bildschirmen über den Rand. */
code.hash { overflow-wrap: anywhere; word-break: break-all; }

/* In Rechts-nach-links-Schriften zerreißt Buchstabenabstand die Wörter. */
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand, [dir="rtl"] .eyebrow { letter-spacing: 0; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; inset-inline-start: .75rem; top: -4rem; z-index: 50;
  background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none;
  padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.skip:focus { top: 0; }

/* ------------------------------------------------------------------ Symbole (als Maske, nehmen die Textfarbe an) */

.ico {
  display: inline-block; flex: none; width: 1.5rem; height: 1.5rem; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat;
}
.ico-check    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ico-device   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2.5' width='10' height='19' rx='2.5'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.ico-tablet   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4.5' y='3' width='15' height='18' rx='2.5'/%3E%3Cpath d='M11 17.5h2'/%3E%3C/svg%3E"); }
.ico-monitor  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M8 20h8M12 16v4'/%3E%3C/svg%3E"); }
.ico-laptop   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='5' width='14' height='10' rx='1.5'/%3E%3Cpath d='M3 19h18'/%3E%3C/svg%3E"); }
.ico-terminal { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='15' rx='2'/%3E%3Cpath d='M7 9.5l3 2.5-3 2.5M12.5 15h4'/%3E%3C/svg%3E"); }
.ico-globe    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.8 3 2.8 15 0 18M12 3c-2.8 3-2.8 15 0 18'/%3E%3C/svg%3E"); }
.ico-cloud    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18.5a4.5 4.5 0 0 1-.6-8.96A6 6 0 0 1 18 10a4.25 4.25 0 0 1-.5 8.5H7z'/%3E%3C/svg%3E"); }
.ico-eye-off  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A9.6 9.6 0 0 1 12 6c5 0 8.5 4 9.5 6-.4.8-1.2 2-2.4 3.1M6.5 7.6C4.5 8.9 3.1 10.8 2.5 12c1 2 4.5 6 9.5 6 1.5 0 2.8-.3 4-.9'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E"); }
.ico-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7.5 10.5L12 15l4.5-4.5M5 19.5h14'/%3E%3C/svg%3E"); }
.ico-clock    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.ico-flag     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 21V4h11.5l-2 4 2 4H8v9z'/%3E%3C/svg%3E"); }
.ico-heart    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.6-7.5-10.2A4.3 4.3 0 0 1 12 7.2a4.3 4.3 0 0 1 7.5 2.6C19.500 15.400 12 20 12 20z'/%3E%3C/svg%3E"); }
.ico-support  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.500h16v10.500H10.500L6.500 19.500V16H4z'/%3E%3Cpath d='M8.500 9.500h7M8.500 12.500h4.500'/%3E%3C/svg%3E"); }
.ico-bell     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 16.500V11a6 6 0 0 1 12 0v5.500l1.500 1.500h-15z'/%3E%3Cpath d='M10 20.500a2 2 0 0 0 4 0'/%3E%3C/svg%3E"); }
.ico-flag-outline { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 21V4.500h11.500l-2 3.750 2 3.750H6'/%3E%3C/svg%3E"); }
.ico-label    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6.500h11l5 5.500-5 5.500H4z'/%3E%3C/svg%3E"); }
.ico-palette  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.500a8.500 8.500 0 1 0 0 17c1.200 0 1.800-.800 1.800-1.700 0-1.300-1-1.600-1-2.600 0-.900.700-1.700 1.700-1.700h2a4 4 0 0 0 4-4c0-3.900-3.800-7-8.500-7z'/%3E%3Cpath d='M8 11.500h.010M10.500 8h.010M14.500 8h.010'/%3E%3C/svg%3E"); }
.ico-premium  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M8.5 13.5L7 21l5-2.5 5 2.5-1.5-7.5'/%3E%3C/svg%3E"); }
.ico-block    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M6 6l12 12'/%3E%3C/svg%3E"); }
.ico-pause    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 5h3.500v14H7zM13.500 5H17v14h-3.500z'/%3E%3C/svg%3E"); }
.ico-play     { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }

@media (forced-colors: active) {
  .ico { forced-color-adjust: none; background: CanvasText; }
}

/* ------------------------------------------------------------------ Knöpfe und Marken */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.9rem; padding: .7rem 1.25rem;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  cursor: pointer; transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--hover); }
.btn-sm { min-height: 2.4rem; padding: .45rem .9rem; font-size: .9375rem; }
.btn-lg { min-height: 3.25rem; padding: .85rem 1.5rem; font-size: 1.0625rem; }
.btn:active { transform: translateY(1px); }

/* Knopf, den es noch nicht gibt (Kauf über die Website): sichtbar, aber erkennbar ohne Funktion. */
.btn[disabled], .btn[aria-disabled="true"] {
  background: transparent; color: var(--ink-3);
  border: 1.5px dashed var(--line-strong);
  cursor: not-allowed; transform: none;
}

.soon {
  display: inline-block; white-space: nowrap;
  font-size: .75rem; font-weight: 800; line-height: 1.4;
  color: var(--warn-ink); background: var(--warn-bg);
  border-radius: 999px; padding: .2rem .7rem;
}

.pill {
  display: inline-block; font-size: .75rem; font-weight: 700; line-height: 1.4; color: #fff;
  border-radius: 6px; padding: .08rem .5rem; background: var(--label-blue);
}

/* ------------------------------------------------------------------ Kopfzeile */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--line);
}
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; min-height: 4rem; padding-block: .5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  color: var(--ink); font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; text-decoration: none;
}
.brand img { width: 2rem; height: 2rem; }
.main-nav { display: flex; gap: .15rem; margin-inline-start: .75rem; }
.main-nav a {
  color: var(--ink-2); font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: .45rem .75rem; border-radius: 8px;
}
.main-nav a:hover { color: var(--ink); background: var(--hover); }
.main-nav a[aria-current] { color: var(--ink); background: var(--hover); }
.bar-end { display: flex; align-items: center; gap: .75rem; margin-inline-start: auto; }

/* Sprachwahl: bei zwei Sprachen ein Umschalter. Kommen viele Sprachen dazu, genügt hier ein Link auf die
   Sprachübersicht (index.html#languages im Wurzelordner). */
.lang { display: inline-flex; padding: 2px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); }
.lang a {
  color: var(--ink-2); font-size: .8125rem; font-weight: 700; line-height: 1.5; text-decoration: none;
  padding: .25rem .65rem; border-radius: 999px;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--bg); background: var(--ink); }

@media (max-width: 760px) {
  .site-header { position: static; }
  html { scroll-padding-top: 1rem; }
  .bar { min-height: 0; padding-block: .7rem .35rem; }
  .main-nav { order: 3; width: 100%; margin-inline-start: -.75rem; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { padding: .6rem .75rem; }
  .bar-end .btn { display: none; }
}
@media (max-width: 480px) {
  /* Vier Menüpunkte passen auf dem Handy nicht in eine Zeile. „Funktionen“ (.nav-opt, ein Sprung auf der
     Startseite) entfällt dort, damit „Herunterladen“, „Hilfe“ und „Premium“ ohne seitliches Blättern zu sehen sind. */
  .main-nav .nav-opt { display: none; }
  .main-nav { margin-inline-start: -.6rem; }
  .main-nav a { padding-inline: .6rem; }
}

/* ------------------------------------------------------------------ Abschnitte */

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-block-end: clamp(1.5rem, 3vw, 2.5rem); }
.section-head p:last-child { margin-block-end: 0; }
.eyebrow { display: block; margin-block-end: .75rem; color: var(--link); font-size: .875rem; font-weight: 800; letter-spacing: .02em; }
.lead { color: var(--ink-2); font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.5; }
.fine { color: var(--ink-3); font-size: .875rem; }
.after { margin-block-start: 1rem; }
.after-lg { margin-block-start: 1.5rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split-top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Startseite: Einstieg */

/* Der Text oben bleibt flach (Überschrift und Vorspann auf breiten Bildschirmen je eine Zeile), damit das große
   Bildschirmfoto darunter schon ohne Blättern beginnt. */
.hero { background: var(--bg-board); overflow: hidden; padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-copy { max-width: 62rem; margin-inline: auto; text-align: center; }
.hero h1 { margin-block-end: .45em; font-size: clamp(2.1rem, 1.2rem + 3.9vw, 3rem); }
.hero .lead { margin-inline: auto; color: var(--ink-2); }
.u-task, .u-note { text-decoration: underline; text-decoration-thickness: .13em; text-underline-offset: .13em; text-decoration-skip-ink: none; }
.u-task { text-decoration-color: var(--brand-line); }
.u-note { text-decoration-color: var(--accent); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-block: 1.6rem .85rem; }
.cta .ico { width: 1.25rem; height: 1.25rem; }
@media (max-width: 480px) {
  /* Auf dem Handy stehen die beiden Knöpfe untereinander und gleich breit. */
  .cta { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
}
/* Zeile unter den Knöpfen: was der Knopf „Für Windows herunterladen“ lädt, und der Weg zu allen Apps. */
.hero-dl { margin: 0 0 1.15rem; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: .9375rem; font-weight: 600; }
.hero-facts li { display: inline-flex; align-items: center; gap: .4rem; margin: 0; }
.hero-facts .ico { width: 1.1rem; height: 1.1rem; color: var(--ok-ink); }

/* Rahmen um ein Bildschirmfoto: ein Fenster mit Titelleiste. */
.device {
  overflow: hidden; background: var(--surface);
  border: 1px solid var(--frame-line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.device-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding-inline: 12px; background: var(--frame-bar); border-block-end: 1px solid var(--frame-line); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--frame-dot); }
.device img { width: 100%; }

/* ------------------------------------------------------------------ Startseite: Bildfolge
   Mehrere Bildschirmfotos in einem Rahmen, die sich abwechseln (assets/shots.js). Die Reiter darüber wählen eine
   Ansicht, der runde Knopf daneben hält den Wechsel an und setzt ihn fort.
   - Ohne Skript (.shots ohne .is-ready) ist die Folge eine Reihe zum seitlichen Blättern; Reiter und
     Bildunterschriften bleiben unsichtbar, behalten aber ihren Platz – so springt beim Laden nichts.
   - Den Takt gibt eine CSS-Animation: Der gedrückte Reiter füllt sich in sechs Sekunden; ist er voll, blättert das
     Skript weiter. Angehalten wird über die Klassen .is-paused (vom Besucher), .is-held (Maus über dem Bild) und
     .is-away (Bildfolge nicht im Fenster).
   - Wer im System „Bewegung reduzieren“ eingestellt hat, bekommt keinen selbsttätigen Wechsel und kein Überblenden. */

.shots { margin-block-start: clamp(1.5rem, 3vw, 2.25rem); }

.shots-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 2.9rem; margin-block-end: 1rem; }
.shots:not(.is-ready) .shots-nav { visibility: hidden; }
.shots-tabs {
  position: relative; display: flex; gap: .2rem; min-width: 0; padding: .25rem;
  overflow-x: auto; scrollbar-width: none;
  background: var(--surface); background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.shots-tabs::-webkit-scrollbar, .shots-stage::-webkit-scrollbar { display: none; }
.shots-tab {
  position: relative; isolation: isolate; flex: none; overflow: hidden;
  padding: .45rem .9rem; border: 0; border-radius: 999px;
  color: var(--ink-2); background: transparent;
  font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.3; white-space: nowrap; cursor: pointer;
}
.shots-tab:hover { color: var(--ink); }
.shots-tab:focus-visible { outline-offset: -3px; border-radius: 999px; }
.shots-tab[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
/* Füllung des gedrückten Reiters: zeigt, wann das nächste Bild kommt. Liegt hinter der Schrift. */
.shots-tab::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--brand-line) 22%, transparent);
  transform: scaleX(0); transform-origin: 0 50%;
}
[dir="rtl"] .shots-tab::before { transform-origin: 100% 50%; }
.shots-toggle {
  flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0;
  color: var(--ink-2); background: var(--surface); background: color-mix(in srgb, var(--surface) 60%, transparent);
  border: 1px solid var(--line-strong); border-radius: 50%; cursor: pointer;
}
.shots-toggle:hover { color: var(--ink); background: var(--surface); }
.shots-toggle:focus-visible { border-radius: 50%; }
.shots-toggle .ico { width: 1.15rem; height: 1.15rem; }

.shots-stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shot { flex: 0 0 100%; scroll-snap-align: center; }
.shots.is-ready .shots-stage { display: grid; overflow: hidden; touch-action: pan-y; }
.shots.is-ready .shot { grid-area: 1 / 1; visibility: hidden; }
/* Das vorige Bild bleibt liegen, bis das neue darüber eingeblendet ist – so scheint nie der Rahmen durch. */
.shots.is-ready .shot.is-prev { visibility: visible; }
.shots.is-ready .shot.is-active { visibility: visible; z-index: 1; }

.shots-captions { display: grid; max-width: 44rem; margin: 1.1rem auto 0; color: var(--ink-2); text-align: center; text-wrap: balance; }
.shots-caption { grid-area: 1 / 1; margin: 0; visibility: hidden; }
.shots.is-ready .shots-caption.is-active { visibility: visible; }

@keyframes shots-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shots-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  .shots.is-ready:not(.is-paused) .shots-tab[aria-pressed="true"]::before { animation: shots-progress 6s linear forwards; }
  .shots.is-ready.is-held:not(.is-paused) .shots-tab[aria-pressed="true"]::before,
  .shots.is-ready.is-away:not(.is-paused) .shots-tab[aria-pressed="true"]::before { animation-play-state: paused; }
  /* .is-live setzt das Skript erst beim ersten Wechsel – das erste Bild blendet beim Laden nicht ein. */
  .shots.is-live .shot.is-active, .shots.is-live .shots-caption.is-active { animation: shots-fade .45s ease both; }
}
@media (prefers-reduced-motion: reduce) {
  .shots-toggle { display: none; }
}

@media (max-width: 640px) {
  /* Auf dem Handy zeigt der Rahmen Handy-Bildschirmfotos (siehe <picture> in der Seite). Die Klasse .shots--phone
     setzt build_site.py nur, wenn es zu jeder Ansicht ein Handy-Bild gibt. */
  .shots--phone .device { width: min(74%, 18rem); margin-inline: auto; border: 7px solid var(--bezel); border-radius: 30px; background: var(--bezel); }
  .shots--phone .shots-stage { border-radius: 23px; }
  .shots--phone .device-bar { display: none; }
}

/* ------------------------------------------------------------------ Startseite: die Unterschiede als Board */

.board {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; align-items: start;
  padding: clamp(.7rem, 2vw, 1.1rem); background: var(--bg-board); border-radius: 22px;
}
.col { padding: .55rem; background: var(--column); border-radius: var(--radius); }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .55rem .15rem; }
.col-head h3 { margin: 0; font-size: .9375rem; }
.count {
  flex: none; font-size: .8125rem; font-weight: 700; line-height: 1.5; color: var(--ink-2);
  background: var(--hover); border-radius: 10px; padding: 0 .55rem;
}
.kcard { margin-block-start: .55rem; padding: 1rem 1.05rem 1.05rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.kcard h4 { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 .4rem; font-size: 1.0625rem; line-height: 1.3; }
.kcard h4::before {
  content: ""; flex: none; width: 1.3rem; height: 1.3rem; margin-block-start: .04rem; border-radius: 50%;
  background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5l3.700 3.700L17.500 8.500'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.kcard p { margin: 0; color: var(--ink-2); font-size: .9688rem; line-height: 1.55; }
.kcard .vs { margin-block-start: .75rem; padding-block-start: .7rem; border-block-start: 1px dashed var(--line-strong); color: var(--ink-3); font-size: .875rem; }
.kcard .vs b { color: var(--ink-2); font-weight: 700; }
.kcard.note { background: var(--note); border-color: transparent; color: var(--on-note); }
.kcard.note h4::before { display: none; }
.kcard.note p { color: var(--on-note-2); }
.kcard.note .vs { border-color: color-mix(in srgb, var(--on-note) 35%, transparent); color: var(--on-note-2); }
.kcard.note .vs b { color: var(--on-note); }
.kcard code { background: transparent; border: 0; padding: 0; color: var(--ink); font-size: .9em; }

@media (max-width: 900px) { .board { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Startseite: Schnellerfassung */

.qa { display: grid; gap: .6rem; }
.qa-step { margin: .4rem 0 0; color: var(--ink-3); font-size: .875rem; font-weight: 700; }
.qa-field {
  display: flex; align-items: flex-start; gap: .6rem; padding: .8rem .9rem;
  background: var(--field); border: 1.5px solid var(--brand-line); border-radius: var(--radius-sm);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-line) 18%, transparent);
  font-size: 1.0625rem; line-height: 1.5;
}
.qa-field .plus { flex: none; color: var(--ink-3); font-weight: 700; }
.tok { border-radius: 5px; padding: .05em .28em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tok-date { background: var(--brand-tint); color: var(--brand-ink); }
.tok-label { background: color-mix(in srgb, var(--label-blue) 22%, transparent); }
.tok-prio { background: color-mix(in srgb, var(--danger) 22%, transparent); }
.demo-card { margin: 0; box-shadow: var(--shadow-sm); }
.demo-title { display: flex; align-items: flex-start; gap: .6rem; margin-block: .45rem .55rem; font-weight: 600; line-height: 1.35; }
.demo-title .circle { flex: none; width: 1.2rem; height: 1.2rem; margin-block-start: .1rem; border: 2px solid var(--ink-3); border-radius: 50%; }
.demo-title .ico-flag { width: 1.15rem; height: 1.15rem; margin-inline-start: auto; color: var(--danger); }
.chip {
  display: inline-flex; align-items: center; gap: .3rem; font-size: .8125rem; font-weight: 700; line-height: 1.5;
  color: var(--ink-2); background: var(--hover); border-radius: 7px; padding: .05rem .5rem;
}
.chip .ico { width: .95rem; height: .95rem; }
.examples { margin: 1.25rem 0 0; padding: 0; list-style: none; }
.examples li { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .2rem; margin: 0; padding-block: .6rem; border-block-start: 1px solid var(--line); }
.examples span { color: var(--ink-2); font-size: .9375rem; }

/* ------------------------------------------------------------------ Listen mit Haken, Kacheln, Plattformen */

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: .35rem 2rem; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding-block: .55rem; border-block-end: 1px solid var(--line); }
.checks .ico { width: 1.25rem; height: 1.25rem; margin-block-start: .2rem; color: var(--ok-ink); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1rem; }
.tile { padding: 1.3rem 1.3rem 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.section-alt .tile { background: var(--bg); }
.tile h3 { margin-block-end: .35rem; }
.tile p { margin: 0; color: var(--ink-2); font-size: .9688rem; }
.tile-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-block-end: .9rem; color: var(--brand-ink); background: var(--brand-tint); border-radius: 12px; }

.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }
.platform { display: flex; align-items: center; gap: .9rem; margin: 0; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.platform > .ico { width: 1.75rem; height: 1.75rem; color: var(--ink-2); }
.platform > div { flex: 1; min-width: 0; }
.platform strong { display: block; line-height: 1.3; }
.platform span.sub { display: block; color: var(--ink-3); font-size: .875rem; line-height: 1.4; }
.platform.is-soon { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.platform.is-live { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.platform.is-live > .ico { color: var(--link); }
@media (max-width: 420px) { .platform.is-live { flex-wrap: wrap; } .platform.is-live .btn { width: 100%; } }

.roadmap { margin: 0; padding: 0; list-style: none; }
.roadmap li { margin: 0; padding-block: .7rem; border-block-start: 1px solid var(--line); }
.roadmap li:last-child { border-block-end: 1px solid var(--line); }
.roadmap strong { display: block; }
.roadmap span { color: var(--ink-2); font-size: .9688rem; }

/* ------------------------------------------------------------------ Preise */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 1.4rem 1.3rem 1.3rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); }
.plan h3 { margin: 0 0 .6rem; font-size: 1.0625rem; }
.plan .price { margin: 0 0 .5rem; color: var(--ink); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.05rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.plan .price small { display: block; margin-block-start: .15rem; color: var(--ink-2); font-size: .9375rem; font-weight: 600; letter-spacing: 0; }
.plan p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.plan.is-popular { border: 2px solid var(--brand-line); background: color-mix(in srgb, var(--brand-tint) 55%, var(--surface)); }
.plan .badge {
  position: absolute; inset-block-start: -.8rem; inset-inline-start: 1.1rem;
  font-size: .75rem; font-weight: 800; line-height: 1.5; color: var(--on-brand); background: var(--brand);
  border-radius: 999px; padding: .1rem .7rem;
}
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-block: 1.5rem 0; padding: 1.1rem 1.2rem; border: 1.5px dashed var(--line-strong); border-radius: var(--radius); }
.buy p { flex: 1 1 18rem; margin: 0; color: var(--ink-2); font-size: .9375rem; }

.price-line { display: flex; flex-wrap: wrap; gap: .5rem .75rem; margin: 1.25rem 0; padding: 0; list-style: none; }
.price-line li { margin: 0; padding: .45rem .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: .9375rem; }
.price-line b { font-weight: 800; }

/* Hinweisbanner der App, nachgebaut für die Premium-Seite */
.banner-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .7rem .9rem; color: var(--brand-ink); background: var(--brand-tint); border-radius: var(--radius-sm); }
.banner-demo .b-ico { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; color: #fff; background: var(--brand); border-radius: 10px; }
.banner-demo .b-text { flex: 1 1 12rem; min-width: 0; font-size: .875rem; line-height: 1.4; }
.banner-demo .b-text b { display: block; font-size: .9375rem; }
.banner-demo .b-ad { margin-inline-end: .4rem; padding: 0 .3rem; border: 1px solid currentColor; border-radius: 4px; font-size: .6875rem; font-weight: 400; opacity: .8; vertical-align: .08em; }
.banner-demo .b-more { padding: .35rem .8rem; background: color-mix(in srgb, var(--brand-line) 20%, transparent); border-radius: var(--radius-sm); font-size: .875rem; font-weight: 700; white-space: nowrap; }
.banner-demo .b-close { font-size: .875rem; font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------------ Aufruf am Seitenende */

.final { text-align: center; color: var(--on-brand); background: var(--brand); }
.final h2 { margin-block-end: .35em; }
.final p { max-width: 36rem; margin-inline: auto; color: #DDE5FF; }
.final .btn { margin-block-start: .75rem; color: var(--brand-ink); background: #FFFFFF; }
.final .btn:hover { background: var(--accent); color: var(--on-accent); }
@media (prefers-color-scheme: dark) { .final .btn { color: #14224F; } }
.final :focus-visible { outline-color: #FFFFFF; }

/* ------------------------------------------------------------------ Textseiten (Hilfe, Premium, Rechtliches) */

.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.25rem); background: var(--bg-board); }
.page-head h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 2.9rem); margin-block-end: .3em; }
.page-head .lead { max-width: 44rem; margin: 0; }
.page-head .fine { margin: .9rem 0 0; }

.doc { display: grid; grid-template-columns: 15.5rem minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.doc.single { grid-template-columns: minmax(0, 46rem); }
.toc { position: sticky; top: 5.5rem; align-self: start; max-height: calc(100vh - 7rem); overflow: auto; font-size: .9375rem; }
.toc h2 { margin: 0 0 .5rem; color: var(--ink-3); font-size: .8125rem; font-weight: 800; letter-spacing: .04em; }
.toc ol { margin: 0; padding: 0; list-style: none; border-inline-start: 2px solid var(--line); }
.toc li { margin: 0; }
.toc a { display: block; margin-inline-start: -2px; padding: .32rem .9rem; color: var(--ink-2); text-decoration: none; border-inline-start: 2px solid transparent; }
.toc a:hover { color: var(--ink); border-inline-start-color: var(--brand-line); }
@media (max-width: 900px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
  .toc ol { columns: 2 12rem; column-gap: 1.5rem; border: 0; }
  .toc a { margin: 0; padding: .4rem 0; border: 0; break-inside: avoid; }
}

.prose { max-width: 46rem; }
.prose > section { padding-block-end: .5rem; }
.prose h2 { margin-block: 2.2em .6em; padding-block-start: .2em; font-size: clamp(1.35rem, 1.15rem + .9vw, 1.7rem); }
.prose > section:first-child h2, .prose > h2:first-child { margin-block-start: 0; }
.prose h3 { margin-block: 1.7em .4em; }
.prose li > p { margin-block-end: .4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9688rem; }
.prose th, .prose td { padding: .6rem .7rem; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.prose th { color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.prose td:first-child { width: 46%; }
.table-wrap { margin-block: 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-block-end: 0; }
@media (max-width: 620px) {
  /* Tabellen als Stapel: erst die Eingabe, darunter die Erklärung */
  .stack thead { display: none; }
  .stack tr { display: block; padding: .65rem .8rem; border-block-end: 1px solid var(--line); }
  .stack tr:last-child { border-block-end: 0; }
  .stack td { display: block; width: auto !important; padding: .1rem 0; border: 0; }
  .stack td + td { color: var(--ink-2); }
}

.tip, .warn { margin-block: 0 1.2em; padding: .9rem 1.1rem; border-radius: var(--radius-sm); font-size: .9688rem; }
.tip { color: var(--brand-ink); background: var(--brand-tint); }
.warn { color: var(--warn-ink); background: var(--warn-bg); }
.tip > :last-child, .warn > :last-child { margin-block-end: 0; }
.tip a, .warn a { color: inherit; }

/* Hilfe: Zeile der Eigenschaften einer geöffneten Karte, nachgebaut (Termin, Erinnerung, Priorität, Labels, Farbe).
   Die hervorgehobene Marke (.prop-mark) ist die, um die es im Text geht. */
.props { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: 0 1.2em; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.prop { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .8rem; color: var(--ink); background: var(--hover); border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 600; line-height: 1.25; }
.prop .ico { width: 1.15rem; height: 1.15rem; color: var(--ink-2); }
.prop-due { color: var(--warn-ink); background: var(--warn-bg); }
.prop-due .ico { color: inherit; }
.prop-mark { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand-line); }

/* Hilfe: Benachrichtigung zu einer Karte, nachgebaut – App, Titel, Termin und Board, darunter die beiden Schaltflächen. */
.notif { display: grid; gap: .1rem; max-width: 25rem; margin-block: 0 1.2em; padding: .9rem 1.15rem .95rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); line-height: 1.35; }
.notif-app { display: flex; align-items: center; gap: .5rem; margin-block-end: .45rem; color: var(--ink-2); font-size: .8125rem; }
.notif-app img { width: 1.25rem; height: 1.25rem; }
.notif-title { font-size: 1rem; font-weight: 700; }
.notif-text { color: var(--ink-2); font-size: .9375rem; }
.notif-actions { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; margin-block-start: .7rem; color: var(--link); font-size: .9375rem; font-weight: 600; }

.steps { counter-reset: step; margin: 0 0 1.2em; padding: 0; list-style: none; }
.steps > li { position: relative; margin: 0; padding: .1rem 0 .9rem; padding-inline-start: 2.7rem; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; inset-block-start: 0;
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem;
  color: var(--brand-ink); background: var(--brand-tint); border-radius: 50%; font-size: .875rem; font-weight: 800;
}

/* Rechtstexte: Entwurfshinweis und Platzhalter – absichtlich nicht zu übersehen */
.draft { margin-block: 0 2rem; padding: 1rem 1.15rem; color: #3A2A00; background: #FFF6D6; border: 2px dashed #B07A00; border-radius: var(--radius); }
.draft strong { display: block; margin-block-end: .2rem; font-size: 1.0625rem; }
.draft p { margin: 0; }
.ph {
  padding: .05em .4em; color: #3A2A00; background: #FFD54A; outline: 1px dashed #8A5A00; outline-offset: -1px;
  border-radius: 4px; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
.legal address { font-style: normal; margin-block-end: 1em; }

/* ------------------------------------------------------------------ Fußzeile */

.site-footer { padding-block: clamp(2.25rem, 5vw, 3.5rem) 1.75rem; color: var(--ink-2); background: var(--surface); border-block-start: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.footer-grid h2 { margin: 0 0 .7rem; color: var(--ink); font-size: .9375rem; font-weight: 800; letter-spacing: 0; }
.footer-grid ul { margin: 0; padding: 0; list-style: none; }
.footer-grid li { margin: 0 0 .45rem; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-brand p { max-width: 22rem; margin: .8rem 0 0; }
.footer-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-block-start: 2rem; padding-block-start: 1.25rem; border-block-start: 1px solid var(--line); color: var(--ink-3); font-size: .875rem; }
.footer-note p { margin: 0; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ------------------------------------------------------------------ Wurzelseite: Sprachwahl */

.chooser { display: grid; place-items: center; min-height: 100vh; min-height: 100svh; padding: 2rem var(--gutter); background: var(--bg-board); }
.chooser-card { width: min(100%, 30rem); padding: clamp(1.75rem, 5vw, 2.75rem); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.chooser-card img { width: 5rem; height: 5rem; margin: 0 auto 1.1rem; }
.chooser-card h1 { margin-block-end: .3em; font-size: clamp(1.8rem, 1.4rem + 2vw, 2.4rem); }
.chooser-card p { margin: 0 0 .25rem; color: var(--ink-2); }
.chooser-list { display: grid; gap: .7rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.chooser-list li { margin: 0; }
.chooser-list .btn { width: 100%; }
/* Rechtsseiten beider Sprachen – erreichbar auch ohne Weiterleitung (Skript aus, Aufruf mit #languages). */
.chooser-card .chooser-legal { margin: 1.5rem 0 0; font-size: .875rem; }
.chooser-card .chooser-legal + .chooser-legal { margin-top: .3rem; }

/* ------------------------------------------------------------------ Seiten mit zwei Zuständen
   Für die Seiten, auf die der Server weiterleitet: widerruf-eingegangen / withdrawal-received und
   kuendigung-eingegangen / cancellation-received (seit 29.11.2026); später premium-danke / premium-thanks und
   premium-abgebrochen / premium-cancelled.
   Der Server hängt den zweiten Zustand als Sprungmarke an die Adresse (…#failed, …#pending). Ganz oben im <body>
   steht ein leeres Element mit dieser Kennung (.state-mark); ist es das Sprungziel, zeigt die Seite überall den
   anderen Text – ohne Skript. Was nur in einem der beiden Zustände gilt, trägt .when-default bzw. .when-alt
   (Blöcke zusätzlich .when, Links innerhalb einer Textzeile zusätzlich .when-inline). */

.state-mark { position: absolute; top: 0; }
.when { display: block; }
.when-alt { display: none; }
.state-mark:target ~ * .when-default { display: none; }
.state-mark:target ~ * .when-alt { display: block; }
.state-mark:target ~ * .when-alt.when-inline { display: inline; }

/* ------------------------------------------------------------------ Rechtsseiten zum Kauf (Widerruf, Kündigung)
   Für die Seiten widerruf / withdrawal, kuendigen / cancel-subscription und ihre Eingangsseiten.
   .statute: Text, den das Gesetz vorgibt (Widerrufsbelehrung, Muster-Widerrufsformular) – als Block abgesetzt.
   .form: Formular ohne Skript; .hp ist das Lockfeld gegen Automaten (für Menschen unsichtbar, von der
   Tastaturfolge ausgenommen). .footer-act: die beiden gesetzlich benannten Verweise in der Fußzeile. */

.statute { margin-block: 0 1.2em; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand-line); border-radius: var(--radius-sm); }
.statute h3 { margin-block-start: 1.2em; }
.statute h3:first-child { margin-block-start: 0; }
.statute > :last-child { margin-block-end: 0; }
.dash { list-style: "–  "; }

.form { display: grid; gap: 1.15rem; margin-block: 0 1rem; padding: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.form fieldset { display: grid; gap: .55rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.form legend { margin-block-end: .35rem; padding: 0; font-weight: 800; }
.form label { display: block; margin-block-end: .3rem; font-weight: 700; }
.form .choice { display: flex; align-items: flex-start; gap: .6rem; margin: 0; font-weight: 400; }
.form .choice input { flex: none; margin-block-start: .35em; }
.form input[type="text"], .form input[type="email"], .form input[type="date"], .form textarea {
  display: block; width: 100%; max-width: 30rem; padding: .6rem .75rem; color: var(--ink); background: var(--field);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit;
}
.form textarea { max-width: none; resize: vertical; }
.form input[type="date"] { max-width: 14rem; }
.form :focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.form p { margin: 0; }
.form .hint { margin-block-start: .35rem; color: var(--ink-3); font-size: .875rem; }
.form .say { padding: .8rem 1rem; color: var(--brand-ink); background: var(--brand-tint); border-radius: var(--radius-sm); font-weight: 600; }
.form .hp { position: absolute; inset-inline-start: -200vw; width: 1px; height: 1px; overflow: hidden; }

.footer-grid a.footer-act { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------------------------ Bewegung, Druck */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

@media print {
  :root { --bg: #fff; --surface: #fff; --bg-board: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #bbb; --link: #000; }
  body { font-size: 11pt; }
  .site-header, .site-footer, .toc, .cta, .hero-dl, .final, .skip, .shots { display: none !important; }
  .page-head, .hero { padding-block: 0 1rem; }
  .doc { display: block; padding: 0; }
  a { text-decoration: none; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
  h2, h3 { break-after: avoid; }
}
