/* ==========================================================================
   Kosyn — gemeinsames Stylesheet der öffentlichen Seiten (kosyn.cloud, kosyn.org, Rechtstexte, Changelog,
   Coop-App-Download, melden/signup/login). Die App selbst bleibt „retropixels“; hier: ruhig und erwachsen.
   Regeln: KEINE CSS-Gradients (Software-Renderer-Bug) · Schrift Inter selbst gehostet (OFL, fonts/OFL-Inter.txt)
   · 8-px-Raster · hell/dunkel über prefers-color-scheme, Umschalter setzt html[data-theme] (site.js).
   Aufbau: 1 Schrift · 2 Tokens · 3 Basis · 4 Rahmen (Kopf/Fuß) · 5 Bausteine · 6 Startseite · 7 Formulare
           · 8 Rechtstexte/Unterseiten · 9 Lightbox/Cookie · 10 Bewegung/Druck
   ========================================================================== */

/* ---------- 1 Schrift ---------- */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2 Tokens (hell = Standard, dunkel per Medienabfrage oder Umschalter) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f6f9;
  --surface: #ffffff;
  --surface-2: #f0eff5;
  --line: #e2e1e9;
  --line-strong: #cfcdd9;
  --text: #16151c;
  --muted: #565462;
  --accent: #5b3fd6;
  --accent-hover: #4b31bf;
  --on-accent: #ffffff;
  --accent-soft: #efebff;
  --accent-text: #4a30c0;
  --ok: #1b7a4a;
  --warn: #8a5300;
  --danger: #b42318;
  --shadow-sm: 0 1px 2px rgba(22, 21, 28, .06);
  --shadow: 0 1px 2px rgba(22, 21, 28, .05), 0 8px 24px rgba(22, 21, 28, .07);
  --overlay: rgba(14, 13, 19, .88);

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'DejaVu Sans Mono', monospace;
  --r-sm: 6px; --r: 10px; --r-lg: 16px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --maxw: 1120px;
  --head-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0d13; --bg-soft: #13121a; --surface: #17161f; --surface-2: #1f1d29;
    --line: #2a2836; --line-strong: #3a3749;
    --text: #ecebf3; --muted: #a4a2b3;
    --accent: #a390ff; --accent-hover: #b6a7ff; --on-accent: #120f20;
    --accent-soft: #211c38; --accent-text: #b4a4ff;
    --ok: #4cd394; --warn: #f0b454; --danger: #ff8a80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0d13; --bg-soft: #13121a; --surface: #17161f; --surface-2: #1f1d29;
  --line: #2a2836; --line-strong: #3a3749;
  --text: #ecebf3; --muted: #a4a2b3;
  --accent: #a390ff; --accent-hover: #b6a7ff; --on-accent: #120f20;
  --accent-soft: #211c38; --accent-text: #b4a4ff;
  --ok: #4cd394; --warn: #f0b454; --danger: #ff8a80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- 3 Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + var(--s2)); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 1rem; line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 var(--s2); font-weight: 650; }
h1 { font-size: clamp(2.125rem, 1.3rem + 3.4vw, 3.5rem); letter-spacing: -.03em; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.25rem); letter-spacing: -.025em; }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 var(--s2); }
a { color: var(--accent-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { max-width: 100%; }
img { height: auto; }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--s4) 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* Fokus: immer sichtbar, doppelter Ring hält auf hellen und dunklen Flächen */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: var(--s1) var(--s2); border-radius: var(--r-sm);
}
.skip:focus { top: var(--s1); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s3); }
.container.narrow { max-width: 760px; }
@media (max-width: 600px) { .container { padding: 0 var(--s2); } }

/* ---------- 4 Rahmen: Kopfzeile + Fußzeile ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-head .container { display: flex; align-items: center; gap: var(--s3); height: var(--head-h); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -.01em;
}
.brand img { width: 28px; height: 28px; border-radius: 7px; image-rendering: pixelated; display: block; }
.brand .tag {
  font-size: .6875rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px;
}
.nav-main { display: flex; align-items: center; gap: var(--s1); margin-right: auto; }
.nav-main a, .nav-mobile a {
  white-space: nowrap;
  color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500;
  padding: 6px 10px; border-radius: var(--r-sm);
}
.nav-main a:hover, .nav-mobile a:hover { color: var(--text); background: var(--surface-2); }
.nav-main a[aria-current="page"], .nav-mobile a[aria-current="page"] { color: var(--text); }
.head-actions { display: flex; align-items: center; gap: var(--s1); margin-left: auto; }
.nav-main + .head-actions { margin-left: 0; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text);
  cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* Handy: einfaches Menü (details/summary, funktioniert ohne JS) */
.nav-mobile { display: none; position: relative; }
.nav-mobile summary { list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile .panel {
  position: absolute; right: 0; top: calc(100% + var(--s1)); width: min(280px, calc(100vw - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: var(--s1); display: flex; flex-direction: column;
}
.nav-mobile .panel a { padding: 10px 12px; color: var(--text); }
@media (max-width: 880px) {
  .nav-main { display: none; }
  .nav-mobile { display: block; }
  .site-head .container { gap: var(--s2); }
}
@media (max-width: 400px) {
  .brand .tag { display: none; }
  .head-actions .btn { padding: 0 12px; }
}
/* Hinweis „Geschlossene Alpha · Zugang anfragen“ links neben „Anmelden“ (kosyn.cloud) bzw. „Hosted testen“ (kosyn.org):
   zweizeilig und dezent; Handy: als erster Punkt im Menü (Link führt auf https://kosyn.cloud/anfrage.php) */
.alpha-note {
  display: inline-flex; flex-direction: column; justify-content: center; flex: none; white-space: nowrap;
  font-size: .75rem; line-height: 1.25; color: var(--muted); text-decoration: none;
  padding: 4px 10px; border-radius: var(--r-sm);
}
.alpha-note .l1 { display: inline-flex; align-items: center; gap: 6px; }
.alpha-note .l1::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); flex: none; }
.alpha-note b { font-size: .8125rem; font-weight: 600; color: var(--accent-text); }
.alpha-note:hover { background: var(--surface-2); text-decoration: none; }
.alpha-note:hover b { text-decoration: underline; text-underline-offset: 3px; }
.nav-mobile .panel .alpha-item { color: var(--accent-text); font-weight: 600; border-bottom: 1px solid var(--line); border-radius: var(--r-sm) var(--r-sm) 0 0; margin-bottom: 4px; }
.nav-mobile .panel .alpha-item span { display: block; font-size: .75rem; font-weight: 500; color: var(--muted); }
/* Seiten mit Hinweis (Startseiten): Die volle Leiste passt erst ab ~1320 px — darunter erst enger, bis 1180 px klappt
   die Navigation ins Menü (auch der alte Überlauf zwischen 881 und 1024 px ist damit weg); der Hinweis bleibt in der
   Leiste, erst auf dem Handy (≤ 880 px) wandert er als erster Punkt ins Menü */
@media (min-width: 1181px) and (max-width: 1320px) {
  .site-head:has(.alpha-note) .nav-main { gap: 2px; }
  .site-head:has(.alpha-note) .nav-main a { padding: 6px 7px; }
}
@media (max-width: 1180px) {
  .site-head:has(.alpha-note) .nav-main { display: none; }
  .site-head:has(.alpha-note) .nav-mobile { display: block; }
  .site-head:has(.alpha-note) .container { gap: var(--s2); }
  .site-head:has(.alpha-note) .nav-main + .head-actions { margin-left: auto; }
}
@media (min-width: 881px) { .nav-mobile .panel .alpha-item { display: none; } }
@media (max-width: 880px) { .head-actions .alpha-note { display: none; } }

.site-foot {
  margin-top: var(--s7); border-top: 1px solid var(--line); background: var(--bg-soft);
  padding: var(--s5) 0 var(--s4); font-size: .9375rem; color: var(--muted);
}
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s4); }
.site-foot h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text); margin: 0 0 var(--s2); font-weight: 600; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--text); text-decoration: underline; }
.site-foot .brand { margin-bottom: var(--s2); }
.site-foot .legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: space-between; font-size: .875rem; }
@media (max-width: 800px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }
@media (max-width: 420px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* ---------- 5 Bausteine ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  min-height: 40px; padding: 0 var(--s2); border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: .9375rem; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover, .btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-ghost, .btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn-ghost:hover, .btn.ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 48px; padding: 0 var(--s3); font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: var(--s3); box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { font-size: 1.125rem; margin-bottom: var(--s1); }
.stack > * + * { margin-top: var(--s3); }

.icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--accent-soft); color: var(--accent-text);
}
.icon svg { width: 20px; height: 20px; }
svg.i { width: 1em; height: 1em; vertical-align: -.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon svg, .icon-btn svg, .btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pill {
  display: inline-block; max-width: 100%;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 4px 14px 4px 12px; font-size: .875rem; line-height: 1.5; color: var(--muted); border-radius: 16px;
}
.pill .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); margin-right: 8px; vertical-align: 1px; }
.pill b { color: var(--text); font-weight: 600; margin-right: 6px; }
.badge {
  display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .02em;
  border-radius: 999px; padding: 2px 10px; background: var(--accent-soft); color: var(--accent-text);
}
.note {
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-sm);
  background: var(--bg-soft); padding: var(--s2); font-size: .9375rem;
}
.note.warn { border-left-color: var(--warn); }
.note.ok { border-left-color: var(--ok); }
.note > :last-child { margin-bottom: 0; }

.shot {
  margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--surface-2); box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: .875rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }

.checks { list-style: none; padding: 0; margin: 0 0 var(--s2); display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(-45deg);
}

/* ---------- 6 Startseite ---------- */
.section { padding: var(--s7) 0 0; }
.section.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: var(--s7) 0; margin-top: var(--s7); }
.section.alt + .section { padding-top: var(--s7); }
.section-head { max-width: 680px; margin-bottom: var(--s5); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: block; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); margin-bottom: var(--s1); }
.lead { font-size: 1.125rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 600px) {
  .section { padding-top: var(--s6); }
  .section.alt { padding: var(--s6) 0; margin-top: var(--s6); }
  .section.alt + .section { padding-top: var(--s6); }
  .section-head { margin-bottom: var(--s4); }
  .lead { font-size: 1.0625rem; }
}

.hero { padding: var(--s6) 0 0; text-align: center; }
.hero h1 { max-width: 1000px; margin: var(--s3) auto var(--s3); }
.hero .lead { max-width: 680px; margin: 0 auto var(--s4); font-size: 1.1875rem; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: var(--s2); }
.hero .fine { font-size: .875rem; color: var(--muted); margin: 0; }
.hero .shot { margin: var(--s5) auto 0; max-width: 1040px; }
@media (max-width: 600px) {
  .hero { padding-top: var(--s5); text-align: left; }
  .hero .ctas { justify-content: flex-start; }
  .hero .ctas .btn { flex: 1 1 auto; }
  .hero .lead { font-size: 1.0625rem; }
}

.grid { display: grid; gap: var(--s3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; gap: var(--s2); } }

.feature { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 600px) {
  /* Handy: kompakt, Icon links neben Titel und Text */
  .card.feature { display: grid; grid-template-columns: 40px 1fr; column-gap: var(--s2); row-gap: 4px; align-items: start; padding: var(--s2); }
  .card.feature > .icon { grid-row: 1 / span 2; }
  .card.feature > :not(.icon) { grid-column: 2; }
  .card.feature h3 { margin: 0; }
}
.feature h3 { margin: 4px 0 0; }
.feature p { margin: 0; color: var(--muted); font-size: .9375rem; }

.edition h3 { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; margin-bottom: 12px; }
.edition p { color: var(--muted); font-size: .9375rem; }
.edition .checks { font-size: .9375rem; }
.editions .edition { padding: var(--s4); }
.editions .edition h3 { font-size: 1.25rem; }
.editions .edition-trust { background: var(--surface-2); }
@media (max-width: 600px) { .editions .edition { padding: var(--s3); } }
.steps { list-style: none; padding: 0; margin: 0; }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border-radius: 50%;
  background: var(--accent); color: var(--bg); font-size: .8125rem; font-weight: 700; vertical-align: 2px; }
.ki-more { margin-top: var(--s3); }
.ki-more h3 { font-size: 1rem; }
.ki-origin { display: flex; gap: var(--s2); align-items: flex-start; background: var(--surface-2); }
.ki-origin p { margin: 0; color: var(--muted); font-size: .9375rem; }
.ki-origin b { color: var(--text); }
.edition .for { font-size: .8125rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: var(--s1); display: block; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s6); align-items: center; }
.split.rev { grid-template-columns: 7fr 5fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: var(--s4); }
  .split.rev > :first-child { order: 0; }
}
.split .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: var(--s3); }

.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.trust > div { display: flex; flex-direction: column; gap: 12px; }
.trust h3 { margin: 4px 0 0; font-size: 1rem; }
.trust p { margin: 0; color: var(--muted); font-size: .9375rem; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .trust { grid-template-columns: 1fr; gap: var(--s3); } }

.offer { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.offer .card { padding: var(--s4); display: flex; flex-direction: column; }
.offer .card.primary { border-color: var(--accent); box-shadow: var(--shadow); }
.offer .card .btn { align-self: flex-start; margin-top: auto; }
.offer .card .btns { margin-top: auto; }
.offer .card .btns .btn { margin-top: 0; }
.offer .card .checks { margin-bottom: var(--s3); }
.offer .price { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--s1); }
@media (max-width: 760px) { .offer { grid-template-columns: 1fr; } .offer .card { padding: var(--s3); } }

/* Galerie (Vorschaubilder, öffnen die Lightbox) */
.shots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.shots figure { margin: 0; }
.shots button {
  display: block; width: 100%; padding: 0; margin: 0; cursor: zoom-in; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.shots button:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shots figcaption { font-size: .875rem; color: var(--muted); margin-top: 12px; }
@media (max-width: 960px) { .shots { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .shots { grid-template-columns: repeat(2, 1fr); gap: var(--s2); } .shots figcaption { font-size: .8125rem; margin-top: var(--s1); } }

/* Anmelde-Karte (kosyn.cloud): klappt unter der Kopfzeile auf */
.login-wrap { display: flex; justify-content: flex-end; padding-top: var(--s3); }
.login-wrap .card { width: 100%; max-width: 420px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .login-wrap .card { max-width: none; } }

/* ---------- 7 Formulare ---------- */
label { display: block; font-size: .875rem; font-weight: 600; color: var(--text); margin-bottom: var(--s2); }
label input, label select, label textarea { margin-top: 6px; }
input, select, textarea {
  display: block; width: 100%; min-height: 44px; font: inherit; font-size: 1rem; font-weight: 400; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px;
}
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; min-height: 0; accent-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
::placeholder { color: var(--muted); opacity: .8; }
.hint { font-size: .8125rem; color: var(--muted); font-weight: 400; }
.err, .error { color: var(--danger); font-size: .9375rem; }
.okmsg { color: var(--ok); font-size: .9375rem; }
.spacefield { display: flex; align-items: stretch; margin-top: 6px; }
.spacefield input { flex: 1; min-width: 0; margin: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.spacefield .suffix {
  display: flex; align-items: center; padding: 0 12px; white-space: nowrap; font-size: .875rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; background: var(--surface-2);
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 8 Unterseiten: Rechtstexte, Changelog, Download, Formularseiten ---------- */
.page { padding: var(--s6) 0 0; }
.page-head { margin-bottom: var(--s5); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 2.75rem); margin-bottom: var(--s2); }
.page-head .lead { margin: 0; }
.prose { font-size: 1rem; }
.prose h2 { font-size: 1.375rem; margin: var(--s5) 0 var(--s2); scroll-margin-top: calc(var(--head-h) + var(--s2)); }
.prose h3 { font-size: 1.0625rem; margin: var(--s4) 0 var(--s1); scroll-margin-top: calc(var(--head-h) + var(--s2)); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 var(--s2); }
.prose li { margin: 6px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s3); font-size: .9375rem; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose > :first-child { margin-top: 0; }
.toc { list-style: none; padding: 0; margin: 0 0 var(--s4); columns: 2; column-gap: var(--s4); font-size: .9375rem; }
.toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 600px) { .toc { columns: 1; } .page { padding-top: var(--s5); } }
.form-card { max-width: 520px; }
.page .card + .card { margin-top: var(--s3); }
/* Rechtstexte (datenschutz.html, impressum.html): je Abschnitt eine .sec in .prose; erster Abschnitt ohne Abstand oben */
.prose .sec > h2:first-child { margin-top: var(--s5); }
.prose > .sec:first-child > h2:first-child { margin-top: 0; }
.prose .sec > :last-child { margin-bottom: 0; }
.prose .sec + .sec { padding-top: var(--s1); }
/* Handy: .nav-main ist ausgeblendet → Knöpfe (Theme/Menü) trotzdem rechtsbündig */
@media (max-width: 880px) { .nav-main + .head-actions { margin-left: auto; } }

/* ---------- 9 Lightbox + Cookie-Hinweis ---------- */
#lb {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: var(--s2); background: var(--overlay);
}
#lb img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
#lb p { margin: 0; color: #f2f1f7; font-size: .9375rem; text-align: center; }
#lb .lb-bar { display: flex; gap: var(--s1); }
#lb .lb-bar button {
  min-height: 40px; padding: 0 var(--s2); border-radius: var(--r-sm); cursor: pointer; font: inherit; font-size: .9375rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, .25); background: #1d1b26; color: #f2f1f7;
}
#lb .lb-bar button:hover { background: #2a2736; }
#lb .lb-bar button:focus-visible { outline: 2px solid #b6a7ff; outline-offset: 2px; }

#cookie-note {
  position: fixed; left: var(--s2); right: var(--s2); bottom: var(--s2); z-index: 50; margin: 0 auto; max-width: 640px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 12px var(--s2); display: flex; gap: var(--s2); align-items: center; justify-content: space-between; flex-wrap: wrap;
  font-size: .875rem; color: var(--muted);
}
#cookie-note button {
  min-height: 36px; padding: 0 var(--s2); border-radius: var(--r-sm); border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; cursor: pointer;
}

/* ---------- 10 Bewegung + Druck ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-head, .site-foot, #cookie-note, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* Hervorgehobener Hinweis (z. B. anfrage.php „So geht es weiter") — einfarbig, keine Gradients */
.callout { background: var(--accent-soft); border: 1px solid var(--accent); border-left-width: 4px; border-radius: var(--r-sm);
  padding: 14px 16px; margin: 16px 0; color: var(--text); }
.callout-title { margin: 0 0 6px; font-weight: 700; }
.callout .steps { margin: 0; padding-left: 1.25em; }
.callout .steps li + li { margin-top: 4px; }

/* „KoSyn steht für Kooperative Synergie" im Hero-Text: Ko/Syn dezent hinterlegt (einfarbig, keine Gradients) */
.ks-hl { background: var(--accent-soft); color: var(--accent-text); border-radius: 3px; padding: 0 1px; margin-right: -1px; font-weight: 600; }
.lead .ks { color: var(--text); }
