/* Schweizer Pass – Stylesheet, Mobile First (Basis = Smartphone, Erweiterungen per min-width) */

/* ---------------------------------------------------------------- Schrift: Inter (OFL), lokal gehostet */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- Design-Tokens */
:root {
  --red: #da291c;
  --red-600: #c22417;
  --red-700: #a51d13;
  --red-50: #fdeceb;
  --bg: #f6f6f5;
  --surface: #ffffff;
  --surface-2: #f8f8f7;
  --text: #18181b;
  --muted: #62646a;
  --border: #e6e6e3;
  --ok: #18794e;
  --ok-bg: #e6f4ec;
  --bad: #b3261e;
  --bad-bg: #fbe9e7;
  --focus: #0b57d0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 2px 8px rgba(16, 16, 20, .03);
  --shadow-lg: 0 -4px 30px rgba(16, 16, 20, .14);
  --header-h: 60px;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f11; --surface: #1b1b1f; --surface-2: #232328; --text: #ececee; --muted: #a2a2aa; --border: #2f2f36;
    --ok: #6fd39a; --ok-bg: #12301f; --bad: #ff8a80; --bad-bg: #3a1a18; --focus: #8ab4f8; --red-50: #3a1714;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 16px rgba(0, 0, 0, .3);
  }
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "cv11", "ss01"; /* ruhigere Ziffern und Buchstaben */
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
}
body.no-scroll { overflow: hidden; }
a { color: var(--red); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: #ff7b70; } }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1 { font-size: 1.65rem; line-height: 1.2; margin: .3em 0 .4em; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 1.4em 0 .6em; }
h3 { font-size: 1.05rem; margin: 1.2em 0 .4em; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lead { font-size: 1.075rem; color: var(--muted); }
.big { font-size: 1.35rem; font-weight: 700; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
main { min-height: 60vh; padding-top: 12px; padding-bottom: 32px; }
main:focus, main:focus-visible, .sheet-panel:focus, .sheet-panel:focus-visible { outline: none; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-wrap { display: inline-flex; line-height: 0; }

/* ---------------------------------------------------------------- Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--red); }
.topbar-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; margin-right: auto; }
.brand img { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prefs-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer;
  max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prefs-btn .ico { width: 18px; height: 18px; color: var(--red); }
.prefs-btn:hover { border-color: var(--red); }
.nav-desktop { display: none; }

/* ---------------------------------------------------------------- Mobile Tab-Leiste */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-top: 1px solid var(--border);
}
.tabbar a, .tabbar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font: inherit; font-size: .7rem; font-weight: 600;
  background: none; border: 0; cursor: pointer; position: relative; padding: 6px 2px 4px; min-width: 0;
}
.tabbar span:not(.ico-wrap) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar a[aria-current="page"], .tabbar button.active { color: var(--red); }
.tabbar a[aria-current="page"]::before {
  content: ""; position: absolute; top: 0; left: 34%; right: 34%; height: 2px; border-radius: 0 0 2px 2px; background: var(--red);
}
.tabbar a[aria-current="page"] .ico { stroke-width: 2.2; }

/* ---------------------------------------------------------------- Menü-Sheet */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 12, .45); opacity: 0; transition: opacity .2s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; outline: none;
  background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg);
  padding: 8px 16px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .22s ease-out;
}
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 6px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h2 { margin: 6px 0; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); font-size: 1rem; cursor: pointer; }
.sheet-nav { display: grid; gap: 4px; margin: 4px 0 8px; }
.sheet-nav a {
  display: flex; align-items: center; gap: 14px; padding: 13px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600;
}
.sheet-nav a .ico { color: var(--red); }
.sheet-nav a:hover, .sheet-nav a[aria-current="page"] { background: var(--red-50); }
.sheet-prefs { border-top: 1px solid var(--border); padding-top: 4px; display: grid; gap: 8px; }
.sheet-prefs h3 { margin: 12px 0 4px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sheet-prefs label { font-weight: 600; font-size: .9rem; margin-top: 6px; }
.pills { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pills button {
  height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer;
}
.pills button[aria-checked="true"] { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------------------------------------------------------------- Bausteine */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin: 14px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .75rem; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .09em; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); border-radius: 2px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.actions.stack { margin: 12px 0 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.btn:active { transform: scale(.98); }
.btn .ico { width: 20px; height: 20px; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: var(--red-600); }
.btn.lg { min-height: 54px; font-size: 1.05rem; }
.btn.danger { color: var(--bad); }
.btn.wa { background: #25d366; border-color: #25d366; color: #063d1b; }
.btn.block { display: flex; width: 100%; }
.btn.small { min-height: 36px; padding: 4px 12px; font-size: .875rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.notice { padding: 12px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--focus); }
.notice.error { border-left-color: var(--bad); background: var(--bad-bg); }
.linkbox { font-family: ui-monospace, monospace; font-size: .8rem; word-break: break-all; background: var(--surface-2); border: 1px dashed var(--border); padding: 10px 12px; border-radius: 10px; }
.linklist { padding-left: 1.2em; }
.linklist li { margin: 8px 0; }
.linklist.big { list-style: none; padding: 0; display: grid; gap: 8px; }
.linklist.big a { display: block; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 600; }
.tag { display: inline-block; font-size: .78rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; margin: 0 0 10px; }
.grid2 { display: grid; gap: 4px; }

/* Startseite: Kacheln */
.tiles { display: grid; gap: 10px; margin: 18px 0 6px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; min-height: 72px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: border-color .15s, transform .1s;
}
.tile:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.tile:active { transform: scale(.99); }
.tile > .ico-wrap:first-child { width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); color: var(--red); display: grid; place-items: center; flex: none; }
.tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.tile-text strong { font-size: 1rem; }
.tile-text small { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile > .ico-wrap:last-child { color: var(--muted); opacity: .45; }
.tile > .ico-wrap:last-child .ico { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- Fragen */
.question { padding: 18px 16px; }
.question .q { font-size: 1.12rem; line-height: 1.4; margin: 0 0 14px; }
.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: flex-start; gap: 12px; text-align: left; width: 100%; min-height: 54px; padding: 12px 14px;
  border: 2px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .12s, background .12s;
}
.option:hover:not(:disabled) { border-color: color-mix(in srgb, var(--red) 40%, var(--border)); }
.option .letter { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
.option > span:last-child { padding-top: 3px; }
.option.chosen { border-color: var(--focus); background: color-mix(in srgb, var(--focus) 7%, var(--surface)); }
.option.chosen .letter { background: var(--focus); border-color: var(--focus); color: #fff; }
.option.right { border-color: var(--ok); background: var(--ok-bg); }
.option.right .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.option.wrong { border-color: var(--bad); background: var(--bad-bg); }
.option.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.option:disabled { cursor: default; opacity: 1; }
.feedback:empty { display: none; }
.feedback { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.feedback .verdict { font-weight: 700; margin: 0 0 6px; }
.verdict.ok { color: var(--ok); }
.verdict.bad { color: var(--bad); }
.explanation { margin: 6px 0; }
.source { font-size: .82rem; color: var(--muted); margin: 4px 0 0; }

/* ---------------------------------------------------------------- Fortschritt & Statistik */
.bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; margin: 8px 0 14px; }
.bar > span { display: block; height: 100%; width: 0; background: var(--focus); border-radius: inherit; transition: width .35s; }
.bar.ok > span { background: var(--ok); }
.bar.bad > span { background: var(--bad); }
.progress { margin: 0; color: var(--muted); font-size: .9rem; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; box-shadow: var(--shadow); }
.stat strong { display: block; font-size: 1.5rem; line-height: 1.2; }
.stat span { font-size: .8rem; color: var(--muted); }
.catrow { display: grid; grid-template-columns: 1fr 52px; gap: 2px 10px; align-items: center; margin: 10px 0; }
.catrow > span:first-child { grid-column: 1 / -1; font-size: .9rem; font-weight: 600; }
.catrow .bar { margin: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- Testsimulation */
.testbar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 5;
  display: flex; justify-content: space-between; gap: 12px; font-weight: 700; font-size: .9rem;
  background: var(--bg); padding: 10px 0 2px; margin-top: -4px;
}
.clock { font-variant-numeric: tabular-nums; }
.clock.low { color: var(--bad); }
.qnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; margin-top: 22px; }
.qnav button { height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; }
.qnav button.done { background: var(--ok-bg); border-color: var(--ok); }
.qnav button.cur { outline: 2px solid var(--focus); outline-offset: 1px; }
.result { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); margin: 12px 0; text-align: center; }
.result strong { font-size: 1.7rem; }
.result.ok { background: var(--ok-bg); color: var(--ok); }
.result.bad { background: var(--bad-bg); color: var(--bad); }

/* ---------------------------------------------------------------- Formulare */
.form { display: grid; gap: 6px; }
.form label { font-weight: 600; margin-top: 10px; font-size: .95rem; }
.form label.check { font-weight: 500; display: flex; gap: 10px; align-items: center; margin-top: 6px; min-height: 40px; }
input, select, textarea {
  font: inherit; font-size: 16px; /* verhindert Zoom auf iOS */
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; width: 100%; min-height: 48px;
}
select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2362646a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
input:focus, select:focus, textarea:focus { border-color: var(--focus); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
input[type="checkbox"], input[type="radio"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--red); flex: none; }
input[type="search"] { margin: 8px 0 16px; }
fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 12px 0 4px; padding: 8px 14px 12px; }
legend { font-weight: 600; padding: 0 6px; }
.form .btn { margin-top: 14px; }
main > .btn, .form .btn { width: 100%; } /* mobil: Hauptaktionen über die volle Breite */
.hp { position: absolute; left: -5000px; }

/* ---------------------------------------------------------------- Infoseiten, Glossar, Tabellen */
.prose { line-height: 1.65; }
.prose h3 { margin: 1.4em 0 .4em; }
.prose li { margin: 5px 0; }
.glossary dt { font-weight: 700; margin-top: 16px; }
.glossary dd { margin: 4px 0 0; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl th { font-size: .8rem; color: var(--muted); font-weight: 600; }
.tblwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------------------------------------------------------------- Fusszeile */
.footer { border-top: 1px solid var(--border); padding: 22px 0 28px; color: var(--muted); font-size: .85rem; text-align: center; }
.footer img { display: block; margin: 0 auto 8px; }
.footer a { color: var(--muted); }

/* ================================================================ ab Tablet (≥ 640px) */
@media (min-width: 640px) {
  .wrap { padding: 0 24px; }
  h1 { font-size: 2rem; }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions.stack { flex-direction: column; }
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .card { padding: 22px; }
  .question { padding: 22px; }
  .catrow { grid-template-columns: minmax(140px, 1fr) 2fr 56px; }
  .catrow > span:first-child { grid-column: auto; }
  .form:not(.wide) { max-width: 560px; }
  .form .btn { justify-self: start; }
  main > .btn, .form .btn { width: auto; }
  .sheet-panel { left: 50%; right: auto; width: 520px; transform: translate(-50%, 100%); }
  .sheet.open .sheet-panel { transform: translate(-50%, 0); }
}

/* ================================================================ ab Desktop (≥ 960px) */
@media (min-width: 960px) {
  :root { --header-h: 68px; }
  body { padding-bottom: 0; }
  .tabbar { display: none; }
  .nav-desktop { display: flex; gap: 2px; }
  .nav-desktop a, .nav-desktop button {
    display: inline-flex; border: 0; background: none; font-family: inherit; cursor: pointer; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px;
    color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap;
  }
  .nav-desktop a .ico { width: 19px; height: 19px; }
  .nav-desktop a:hover, .nav-desktop button:hover { color: var(--text); background: var(--surface-2); }
  .nav-desktop a[aria-current="page"], .nav-desktop button.active { color: var(--red); background: var(--red-50); }
  .brand { margin-right: 0; flex: none; }
  .nav-desktop { margin: 0 auto; }
  .prefs-btn { flex: none; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .grid2 { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .sheet-panel { top: 0; bottom: 0; left: auto; right: 0; width: 400px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .sheet.open .sheet-panel { transform: none; }
  .sheet-handle { display: none; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .brand-text small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .topbar, .footer, .actions, .qnav, .tabbar, .sheet { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* ================================================================ Gestaltung: Hero, Seitenköpfe, Themen, Fakten */
.hero {
  position: relative; overflow: hidden; margin: 8px 0 6px; padding: 26px 20px 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(140deg, #d32a1e 0%, #c2241a 55%, #a81d15 100%);
  box-shadow: 0 6px 20px rgba(150, 25, 15, .16);
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 170px; height: 170px; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M208 96h96v112h112v96H304v112h-96V304H96v-96h112z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 1.85rem; margin: 12px 0 8px; letter-spacing: -.02em; }
.hero .lead { color: rgba(255, 255, 255, .86); }
.hero .eyebrow { color: rgba(255, 255, 255, .9); }
.hero .eyebrow::before { background: rgba(255, 255, 255, .7); }
.btn.light { background: #fff; border-color: #fff; color: #a81d15; }
.btn.light:hover { background: #fdf3f2; border-color: #fdf3f2; }
.btn.ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .8); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .2); }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dd { margin: 0; font-size: 1.45rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.hero-stats dt { font-size: .78rem; color: rgba(255, 255, 255, .75); }
.section-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 10px; }
.page-head { margin: 4px 0 14px; }
.page-head h1 { margin-bottom: 4px; }
.page-head .lead { margin: 0; }
.back { display: inline-block; margin: 4px 0 2px; font-weight: 600; text-decoration: none; }

/* Üben */
.practice-setup { display: grid; gap: 10px; }
.label { font-weight: 600; font-size: .9rem; }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.segmented button { height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.segmented button[aria-checked="true"] { background: var(--surface); color: var(--red); box-shadow: var(--shadow); }
.topics { display: grid; gap: 10px; }
.topic {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; min-height: 72px; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .1s;
}
.topic:hover { border-color: color-mix(in srgb, var(--red) 45%, var(--border)); }
.topic:active { transform: scale(.99); }
.topic > .ico-wrap:first-child { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--surface-2); border: 1px solid var(--border); color: var(--red); }
.topic-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.topic-text small { color: var(--muted); }
.topic > .ico-wrap:last-child { color: var(--muted); opacity: .45; }
.topic > .ico-wrap:last-child .ico { width: 18px; height: 18px; }

/* Testsimulation: Eckdaten */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 4px; }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 8px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.facts dd { margin: 0; font-size: 1.6rem; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.facts dt { font-size: .8rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 32px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318794e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat;
}

/* Quellen */
.sources h3 { margin-top: 0; }
.source-list { list-style: none; padding: 0; margin: 0; }
.source-list li + li { border-top: 1px solid var(--border); }
.source-list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; text-decoration: none; color: var(--text); }
.source-list a .ico { color: var(--red); margin-top: 2px; }
.source-list a span { display: flex; flex-direction: column; }
.source-list small { color: var(--muted); font-size: .8rem; }
.source-list a:hover strong { color: var(--red); }

/* Glossar A–Z */
.az { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 4; display: flex; gap: 4px; overflow-x: auto; padding: 8px 0; background: var(--bg); scrollbar-width: none; }
.az::-webkit-scrollbar { display: none; }
.az a { flex: none; min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-weight: 700; color: var(--text); }
.az a:hover { border-color: var(--red); color: var(--red); }
.az-group { scroll-margin-top: calc(var(--header-h) + 60px); }
.az-group h2 { font-size: 1.15rem; margin: 20px 0 6px; color: var(--muted); }
.az-group dl { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; box-shadow: var(--shadow); }
.az-group dt { font-weight: 700; padding-top: 14px; }
.az-group dd { margin: 4px 0 0; padding-bottom: 14px; color: var(--muted); }
.az-group dd:not(:last-child) { border-bottom: 1px solid var(--border); }

@media (min-width: 640px) {
  .hero { margin: 12px 0 8px; padding: 40px 40px 30px; border-radius: 24px; }
  .hero::after { width: 280px; height: 280px; right: -50px; top: -60px; }
  .hero h1 { font-size: 2.3rem; }
  .hero-stats { max-width: 460px; }
  .topics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .practice-setup { grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
  .practice-setup .btn.block { width: auto; }
  .facts { gap: 14px; }
  .facts dd { font-size: 2rem; }
}
@media (min-width: 960px) {
  .hero { padding: 52px 56px 38px; }
  .hero::after { width: 300px; height: 300px; right: 56px; top: 50%; transform: translateY(-50%); opacity: .06; }
  .hero h1 { font-size: 2.75rem; max-width: 680px; }
  .hero .lead { max-width: 640px; font-size: 1.15rem; }
  .topics { grid-template-columns: repeat(3, 1fr); }
  .footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; }
  .footer img { margin: 0; }
  .footer p { margin: 0; }
}

/* Telegram */
.btn.tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.btn.tg:hover { background: #1c8cc2; border-color: #1c8cc2; }
.community { margin-top: 14px; }

/* Startseite: Seitenkarte bündig zur Frage des Tages */
.side-card p:first-child { margin-top: 0; }
.grid2 .section-title { margin-top: 22px; }
.grid2 .question, .grid2 .side-card { margin-top: 0; }

/* ================================================================ Reduktion: schlicht & übersichtlich */
.tile > .ico-wrap:last-child, .topic > .ico-wrap:last-child { display: none; }
.tile, .topic { padding: 16px; gap: 14px; }
.tile-text strong, .topic-text strong { font-weight: 650; }
.tile:hover, .topic:hover { box-shadow: 0 2px 12px rgba(16, 16, 20, .06); }
.prose ul { padding-left: 1.25em; }
.prose li::marker { color: var(--red); }
.prose h3 { font-size: 1.05rem; margin-top: 1.6em; }
.footer { margin-top: 24px; }
@media (max-width: 639px) { .hero::after { display: none; } } /* mobil: Logo in der Kopfzeile genügt */

/* ================================================================ Typografie & Hero mit Frage des Tages */
h1, h2, h3, .hero h1, .brand-text strong { letter-spacing: -.022em; }
h1 { font-weight: 700; }
.lead { line-height: 1.6; }
.stat strong, .facts dd, .hero-stats dd, .num, .clock { font-variant-numeric: tabular-nums; }
.hero-aside { display: none; }
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
  .hero::after { display: none; }
  .hero-aside { display: block; position: relative; z-index: 1; }
  .hero-aside .question { margin: 0; color: var(--text); box-shadow: 0 18px 40px rgba(80, 10, 5, .28); border: 0; }
  .hero-aside .aside-label { display: block; margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
  .qotd-below { display: none; }
  .grid2.home-lower { grid-template-columns: 1fr; }
  .home-lower .side .side-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .home-lower .side .side-card p { margin: 0; }
  .home-lower .side .actions.stack { flex-direction: row; margin: 0; flex: none; }
  .hero .actions { flex-wrap: nowrap; }
  .hero .btn.lg { min-height: 50px; padding: 10px 16px; font-size: .98rem; }
  .home-lower .community { flex-direction: row; flex-wrap: wrap; }
  .home-lower .community .btn.block { width: auto; flex: 1 1 260px; }
}

/* ================================================================ Feinschliff: ruhige Bewegung & Tiefe */
::selection { background: color-mix(in srgb, var(--red) 18%, transparent); }
.topbar { transition: box-shadow .2s, border-color .2s; }
.topbar.scrolled { box-shadow: 0 1px 12px rgba(16, 16, 20, .07); border-bottom-color: transparent; }
main.enter > * { animation: sp-enter .28s ease-out both; }
main.enter > *:nth-child(2) { animation-delay: .03s; }
main.enter > *:nth-child(3) { animation-delay: .06s; }
main.enter > *:nth-child(n+4) { animation-delay: .09s; }
@keyframes sp-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.tile, .topic { transition: border-color .18s, box-shadow .18s, transform .18s; }
.tile:hover, .topic:hover { transform: translateY(-1px); }
.tile > .ico-wrap:first-child, .topic > .ico-wrap:first-child { transition: background .18s, border-color .18s; }
.tile:hover > .ico-wrap:first-child, .topic:hover > .ico-wrap:first-child { background: var(--red-50); border-color: transparent; }
.feedback:not(:empty) { animation: sp-enter .22s ease-out both; }
.option.right .letter, .option.wrong .letter { animation: sp-pop .25s ease-out; }
@keyframes sp-pop { 0% { transform: scale(.7); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
.hero { box-shadow: 0 6px 20px rgba(150, 25, 15, .16), inset 0 1px 0 rgba(255, 255, 255, .12); }
.card, .tile, .topic, .stat, .facts div { border-color: color-mix(in srgb, var(--border) 85%, transparent); }
.footer small { display: block; margin-top: 4px; opacity: .8; }
@media (prefers-reduced-motion: reduce) {
  main.enter > *, .feedback:not(:empty), .option .letter { animation: none !important; }
  .tile:hover, .topic:hover { transform: none; }
}


/* ================================================================ Swiss Style: Passumschlag-Header, Raster statt Template */
:root { --radius: 10px; --radius-sm: 6px; --pass-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23000' fill-opacity='.07' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z' transform='translate(.8 .8)'/%3E%3Cpath fill='%23fff' fill-opacity='.10' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z'/%3E%3C/svg%3E"); }
body { overflow-x: clip; }

/* Header wie der rote Passumschlag mit geprägtem Kreuzraster */
.topbar {
  background: var(--red) var(--pass-pattern) 0 0 / 36px 36px; background-attachment: fixed;
  -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 0; color: #fff;
}
.topbar::before { display: none; }
.topbar.scrolled { box-shadow: 0 2px 14px rgba(80, 10, 5, .22); }
.brand, .brand-text strong { color: #fff; }
.brand-text small { color: rgba(255, 255, 255, .78); }
.prefs-btn { background: transparent; border-color: rgba(255, 255, 255, .5); color: #fff; }
.prefs-btn .ico { color: #fff; }
.prefs-btn:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
@media (min-width: 960px) {
  .nav-desktop a, .nav-desktop button { color: rgba(255, 255, 255, .86); }
  .nav-desktop a:hover, .nav-desktop button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
  .nav-desktop a[aria-current="page"], .nav-desktop button.active { color: #fff; background: rgba(0, 0, 0, .14); }
}

/* Startseite: Header und Einstieg bilden ein durchgehendes rotes Band */
main > .hero:first-child {
  margin: -12px calc(50% - 50vw) 0; padding: 30px calc(50vw - 50%) 40px; border-radius: 0; box-shadow: none;
  background: var(--red) var(--pass-pattern) 0 0 / 36px 36px; background-attachment: fixed;
}
main > .hero:first-child::after { display: none; }
.hero .eyebrow { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; }
.hero .eyebrow::before { display: none; }
.hero h1 { font-weight: 750; }
.btn, .btn.lg { border-radius: 8px; }
.btn.light { color: var(--red-700); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.hero-stats div { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px; }
.hero-stats dd { font-size: 1.15rem; }
.hero-stats dt { font-size: .88rem; }
@media (min-width: 960px) {
  main > .hero:first-child { padding-top: 52px; padding-bottom: 56px; }
  .hero-aside .question { border-radius: 12px; box-shadow: 0 16px 40px rgba(60, 5, 0, .25); }
  .hero-aside .aside-label { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600; }
}

/* Abschnittstitel als typografische Linie (Swiss Style) */
.section-title {
  text-transform: none; letter-spacing: -.01em; font-size: 1.1rem; font-weight: 700; color: var(--text);
  border-top: 2px solid var(--text); padding-top: 10px; margin: 40px 0 6px;
}

/* Startseite: nummerierte Einträge mit Trennlinien statt Symbol-Kacheln */
.tiles { counter-reset: tile; gap: 0 36px; margin: 0; }
.tile {
  counter-increment: tile; align-items: baseline; gap: 16px; min-height: 0; padding: 18px 0;
  background: none; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; box-shadow: none;
}
.tile::before { content: counter(tile, decimal-leading-zero); font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; min-width: 26px; }
.tile > .ico-wrap:first-child { display: none; }
.tile:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tile:hover strong { color: var(--red); }
.tile-text strong { font-size: 1.05rem; }

/* Flache Flächen statt schwebender Karten */
.card, .stat, .facts div, .topic, .question, .linklist.big a { box-shadow: none; }
.topic > .ico-wrap:first-child { background: none; border: 0; width: 28px; height: 28px; }
.topic:hover > .ico-wrap:first-child { background: none; }
.topic:hover { transform: none; box-shadow: none; }
.option { border-width: 1.5px; border-radius: 10px; }
.footer { border-top: 2px solid var(--text); }
.page-head { margin-top: 20px; } .back { margin-top: 16px; }


/* ================================================================ Farbsystem: gedämpftes Schweizer Rot + Komplementärfarbe Petrol */
:root {
  --red: #c22d23; --red-600: #a8261d; --red-700: #8e2019; --red-50: #f8ecea;
  --accent: #1f6e6b; --accent-600: #185a57; --accent-50: #e6f0ef;   /* Komplementär zu Rot */
  --bg: #f7f6f3; --surface: #ffffff; --surface-2: #f3f2ee; --text: #1d1d1b; --muted: #66665f; --border: #e4e2dc;
  --ok: #2b7a52; --ok-bg: #e8f3ec; --bad: #b23a2f; --bad-bg: #f9ebe9;
  --focus: var(--accent);
  --pass-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23000' fill-opacity='.05' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z' transform='translate(.8 .8)'/%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root {
    --red: #b02a21; --red-50: #3a1916; --accent: #6fb9b3; --accent-600: #8fcac5; --accent-50: #17302e;
    --bg: #121211; --surface: #1c1c1a; --surface-2: #242421; --text: #ecebe6; --muted: #a6a59d; --border: #32312d;
    --ok: #7cc79c; --ok-bg: #16301f; --bad: #f0928a; --bad-bg: #3a1c19;
  }
}
a { color: var(--accent); }
.prose a, .source-list a:hover strong, .back { color: var(--accent); }
.bar > span { background: var(--accent); }
.option.chosen { border-color: var(--accent); background: var(--accent-50); }
.option.chosen .letter { background: var(--accent); border-color: var(--accent); }
.segmented button[aria-checked="true"] { color: var(--accent); }
.pills button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); }
.qnav button.cur { outline-color: var(--accent); }
.tile:hover strong { color: var(--accent); }
.tile::before { color: var(--red); }
.topic > .ico-wrap:first-child { color: var(--accent); }
.tabbar a[aria-current="page"], .tabbar button.active { color: var(--red); }
.sheet-nav a .ico { color: var(--accent); }
.sheet-nav a:hover, .sheet-nav a[aria-current="page"] { background: var(--accent-50); }
.eyebrow { color: var(--accent); }
.hero .eyebrow { color: rgba(255, 255, 255, .9); }
.footer a { color: var(--muted); }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.btn.primary:hover { background: var(--red-600); border-color: var(--red-600); }
.notice { border-left-color: var(--accent); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }


/* ================================================================ Dezent: roter Header (Passumschlag), heller warmer Einstieg */
:root { --hero-bg: #f6eeea; --hero-line: #ead9d3; }
@media (prefers-color-scheme: dark) { :root { --hero-bg: #1f1816; --hero-line: #3a2c28; } }
main > .hero:first-child {
  background: var(--hero-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23c22d23' fill-opacity='.06' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z'/%3E%3C/svg%3E") 0 0 / 36px 36px; background-attachment: fixed;
  color: var(--text); border-bottom: 1px solid var(--hero-line);
}
.hero h1 { color: var(--text); }
.hero .lead { color: var(--muted); }
.hero .eyebrow { color: var(--red); }
.hero .btn.light { background: var(--red); border-color: var(--red); color: #fff; }
.hero .btn.light:hover { background: var(--red-600); border-color: var(--red-600); }
.hero .btn.ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.hero .btn.ghost:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--surface); }
.hero-stats { border-top-color: var(--hero-line); }
.hero-stats dt { color: var(--muted); }
.hero-stats dd { color: var(--text); }
@media (min-width: 960px) {
  .hero-aside .aside-label { color: var(--muted); }
  .hero-aside .question { border: 1px solid var(--hero-line); box-shadow: 0 10px 30px rgba(70, 35, 25, .08); }
}
.section-title { border-top-width: 1px; border-top-color: var(--text); }


/* ================================================================ Swissness: Passzeile, Alpenhorizont, viersprachige Fusszeile */
.passline { margin: 0 0 10px; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
main > .hero:first-child { padding-bottom: 92px; }
main > .hero:first-child::after {
  display: block; content: ""; position: absolute; left: 0; right: 0; bottom: -1px; top: auto; width: auto; height: 70px;
  transform: none; opacity: 1; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23efe1db' d='M0 90V66l58-8 52 7 62-22 44 13 46-22 40 15 52-28 30 15 38-9 52 22 48-7 56-31 34 18 40-7 52 21 58-7 52-21 42 15 50-5 52 17 48-6 52-18 40 15 50-7 58 20 50-9 52-16 48 18 50-5 40 11V90z'/%3E%3Cpath fill='none' stroke='%23d9bfb6' stroke-width='1.2' d='M0 66l58-8 52 7 62-22 44 13 46-22 40 15 52-28 30 15 38-9 52 22 48-7 56-31 34 18 40-7 52 21 58-7 52-21 42 15 50-5 52 17 48-6 52-18 40 15 50-7 58 20 50-9 52-16 48 18 50-5 40 11'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none;
}
@media (prefers-color-scheme: dark) { main > .hero:first-child::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23281e1b' d='M0 90V66l58-8 52 7 62-22 44 13 46-22 40 15 52-28 30 15 38-9 52 22 48-7 56-31 34 18 40-7 52 21 58-7 52-21 42 15 50-5 52 17 48-6 52-18 40 15 50-7 58 20 50-9 52-16 48 18 50-5 40 11V90z'/%3E%3Cpath fill='none' stroke='%233d2e2a' stroke-width='1.2' d='M0 66l58-8 52 7 62-22 44 13 46-22 40 15 52-28 30 15 38-9 52 22 48-7 56-31 34 18 40-7 52 21 58-7 52-21 42 15 50-5 52 17 48-6 52-18 40 15 50-7 58 20 50-9 52-16 48 18 50-5 40 11'/%3E%3C/svg%3E"); } }
@media (min-width: 960px) {
  main > .hero:first-child { padding-bottom: 110px; }
  main > .hero:first-child::after { height: 90px; }
}
.hero-stats { max-width: none; flex-wrap: nowrap; gap: 6px 24px; }
@media (max-width: 639px) { .hero-stats { flex-wrap: wrap; } }
.footer small span[lang] { letter-spacing: .04em; }


/* ================================================================ Kleine Schweizer Kreuze – dezent und schlicht */
.x { display: inline-block; width: .62em; height: .62em; margin: 0 .55em; vertical-align: .02em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23c22d23' d='M12 4h8v8h8v8h-8v8h-8v-8H4v-8h8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.passline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; margin-bottom: 14px; }
.passline .x { width: 7px; height: 7px; margin: 0 10px; }
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title::before { content: ""; width: 9px; height: 9px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23c22d23' d='M12 4h8v8h8v8h-8v8h-8v-8H4v-8h8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.footer small .x { width: 6px; height: 6px; margin: 0 6px; }
@media (min-width: 960px) { main > .hero:first-child { row-gap: 0; } .hero .passline { margin-bottom: 4px; } }


/* ================================================================ Fusszeile: Marke, drei Spalten, Rechtliches */
.footer { margin-top: 48px; padding: 0; border-top: 1px solid var(--border); text-align: left; font-size: .9rem;
  background: var(--hero-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Cpath fill='%23c22d23' fill-opacity='.045' d='M16 11h4v5h5v4h-5v5h-4v-5h-5v-4h5z'/%3E%3C/svg%3E") 0 0 / 36px 36px; color: var(--muted); }
.footer .wrap { display: block; }
.footer-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 28px 24px; padding-top: 36px; padding-bottom: 28px; }
.f-brand { grid-column: 1 / -1; }
.f-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.f-logo img { margin: 0; }
.f-logo span { display: flex; flex-direction: column; line-height: 1.2; }
.f-logo small { color: var(--muted); font-size: .8rem; }
.f-langs { margin: 14px 0 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.f-langs .x { width: 7px; height: 7px; margin: 0 9px; }
.f-note { margin: 0; max-width: 46ch; font-size: .85rem; }
.f-col h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.f-col h3::before { display: none; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f-col a { color: var(--muted); text-decoration: none; }
.f-col a:hover { color: var(--accent); text-decoration: underline; }
.footer-bottom { display: flex !important; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  border-top: 1px solid var(--hero-line); padding-top: 16px; padding-bottom: 22px; font-size: .8rem; }
.footer-bottom .x { width: 6px; height: 6px; margin: 0 8px; }
.footer-bottom a { color: var(--muted); }
.footer::before, .footer img + p { display: none; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; padding-top: 48px; }
  .f-brand { grid-column: auto; }
}
.footer-grid { align-items: start !important; } .f-logo strong { color: var(--text); font-size: 1rem; } .f-langs { line-height: 1.9; }
.f-langs { letter-spacing: .07em; font-size: .74rem; white-space: nowrap; } .f-langs .x { margin: 0 7px; } @media (max-width: 380px) { .f-langs { white-space: normal; } }
