/* hushtide.de · ruhige Nacht-Gestaltung · Regeln: web/hushtide-de/DESIGN.md
   Keine Fremdschriften, keine Fremdskripte. Serifenschrift für Überschriften, Systemschrift für Fließtext. */
:root {
  --bg: #090e1c;
  --bg-elev: #0f1629;
  --bg-card: #131b33;
  --bg-soft: #1a2440;
  --border: rgba(240, 176, 126, 0.30);
  --border-subtle: rgba(242, 235, 225, 0.11);
  --text: #f2ebe1;
  --muted: #b9bfcd;
  --faint: #8d94a7;
  --accent: #f0b07e;
  --accent-strong: #f7cba6;
  --accent-ink: #1a1206;
  --yt: #f2a199;
  --radius: 18px;
  --radius-lg: 28px;
  --maxw: 1120px;
  --section: clamp(56px, 9vw, 112px);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
  --welle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 10'%3E%3Cpath d='M1 5c5-5.4 9.7-5.4 14.7 0s9.6 5.4 14.6 0 9.7-5.4 14.7 0' fill='none' stroke='%23f0b07e' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--text); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: clip;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 88% -4%, rgba(240, 176, 126, 0.07), transparent 62%),
    radial-gradient(760px 620px at -6% 34%, rgba(64, 92, 170, 0.10), transparent 62%),
    var(--bg);
  background-repeat: no-repeat;
}
::selection { background: rgba(240, 176, 126, 0.32); color: #fff; }
a { color: var(--accent-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
strong { font-weight: 650; }
code { font-size: 0.92em; background: var(--bg-card); padding: 2px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; font-weight: 700; z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; border-radius: 8px; }
.wrap { width: min(var(--maxw), calc(100% - 32px)); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Schrift ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; text-wrap: balance; color: var(--text); }
h1 { font-size: clamp(2.15rem, 5vw, 3.5rem); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 18px; max-width: 21ch; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.55rem); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 16px; max-width: 26ch; }
h3 { font-size: 1.26rem; line-height: 1.3; margin: 0 0 8px; }
main p { text-wrap: pretty; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3 { letter-spacing: 0.02em; line-height: 1.4; word-break: auto-phrase; }
html[lang="ja"] body { line-height: 1.9; line-break: strict; }
.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 0.74rem; line-height: 1.5; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); font-weight: 700; margin: 0 0 14px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.2rem); line-height: 1.65; color: var(--muted); margin: 0 0 28px; max-width: 60ch; }
.lead strong { color: var(--text); font-weight: 600; }
.breadcrumb { font-size: 0.84rem; color: var(--faint); margin: 0 0 22px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-strong); }
.meta-row { font-size: 0.84rem; color: var(--faint); margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.meta-row a { color: var(--muted); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 14, 28, 0.78); backdrop-filter: saturate(1.3) blur(14px); -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; gap: 12px 22px; min-height: 64px; padding: 8px 0; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; margin-right: auto; text-decoration: none; color: var(--text);
  font-family: var(--serif); font-weight: 500; font-size: 1.32rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { order: 2; display: flex; align-items: center; gap: 24px; font-size: 0.92rem; }
.nav-links > a { color: var(--muted); text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; white-space: nowrap; }
.nav-links > a:hover { color: var(--text); }
.nav-links > a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.lang-pills { display: inline-flex; gap: 2px; padding-left: 18px; border-left: 1px solid var(--border-subtle); }
.lang-pills a { padding: 5px 8px; border-radius: 8px; font-size: 0.8rem; letter-spacing: 0.04em; color: var(--faint); text-decoration: none; }
.lang-pills a:hover { color: var(--text); }
.lang-pills a.active { color: var(--accent-strong); font-weight: 700; }
.nav-toggle { display: none; }

/* ---------- Schaltflächen ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px; font-family: var(--sans); font-weight: 650; font-size: 0.95rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 30px rgba(240, 176, 126, 0.20); }
.btn-primary:hover { background: var(--accent-strong); color: var(--accent-ink); }
.btn-secondary { background: rgba(242, 235, 225, 0.06); color: var(--text); border-color: rgba(242, 235, 225, 0.24); }
.btn-secondary:hover { background: rgba(242, 235, 225, 0.13); color: #fff; border-color: rgba(242, 235, 225, 0.42); }
.btn-yt { background: rgba(9, 14, 28, 0.25); color: var(--text); border-color: rgba(242, 161, 153, 0.55); }
.btn-yt::before { content: ""; flex: none; width: 0; height: 0; border-left: 9px solid var(--yt); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent; }
.btn-yt:hover { background: rgba(242, 161, 153, 0.14); color: #fff; }
.btn-sm { padding: 9px 17px; font-size: 0.86rem; }
.nav-cta { order: 3; box-shadow: none; }

/* ---------- Seitenkopf ---------- */
.hero { padding: clamp(36px, 6vw, 72px) 0 0; }
.hero:has(.hero-grid) { padding-top: 0; }
.hero > .btn-row { margin-top: 4px; }
.hero > .card-grid { margin-top: clamp(28px, 4vw, 48px); }

/* Startseiten: Bild über die volle Breite, Text unten links darauf */
.hero-grid {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: clamp(560px, 84vh, 800px);
  margin-inline: calc(50% - 50vw); padding: 120px calc(50vw - 50%) 0;
}
.hero-grid::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 14, 28, 0.52) 0%, rgba(9, 14, 28, 0.10) 24%, rgba(9, 14, 28, 0.60) 60%, var(--bg) 100%),
    linear-gradient(90deg, rgba(9, 14, 28, 0.55), transparent 72%);
}
.hero-grid > div:first-child { min-width: 0; }
.hero-grid h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); line-height: 1.04; max-width: 15ch; margin-bottom: 22px; text-shadow: 0 2px 30px rgba(9, 14, 28, 0.5); }
.hero-grid .lead { color: #dcdde3; max-width: 58ch; }
.hero-grid .lead strong { color: #fff; }
.hero-visual img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 36%; }
.hero-caption {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 28px;
  margin-top: clamp(28px, 4vw, 44px); padding: 18px 0 clamp(20px, 3vw, 32px); border-top: 1px solid rgba(242, 235, 225, 0.2);
  font-size: 0.76rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted);
}
.hero-caption a { color: var(--accent-strong); text-decoration: none; letter-spacing: 0.08em; }
.hero-caption a:hover { color: #fff; }

/* ---------- Kurzantwort (Antwort zuerst, für Menschen und KI-Suche) ---------- */
.tldr-box {
  display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 14px 44px; align-items: start;
  padding: clamp(32px, 5vw, 60px) 0; border-bottom: 1px solid var(--border-subtle);
}
.hero:not(:has(.hero-grid)) .tldr-box { margin-top: clamp(24px, 4vw, 40px); border-top: 1px solid var(--border-subtle); }
.tldr-label {
  display: block; font-size: 0.74rem; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700;
  color: var(--accent); padding-top: 0.75em; border-top: 1px solid var(--accent);
}
.tldr-box p { margin: 0; font-family: var(--serif); font-size: clamp(1.18rem, 2.1vw, 1.5rem); line-height: 1.55; color: var(--text); max-width: 44em; }
.tldr-box strong { font-weight: 600; color: var(--accent-strong); }

/* ---------- Abschnitte ---------- */
main > section { padding: var(--section) 0 0; }
main > section.hero { padding-top: clamp(36px, 6vw, 72px); }
main > section.hero:has(.hero-grid) { padding-top: 0; }
main > section > h2::before { content: ""; display: block; width: 46px; height: 10px; margin-bottom: 20px; background: var(--welle) no-repeat left center / contain; }
main > section > h2 + .card-grid, main > section > h2 + .table-wrap { margin-top: clamp(24px, 3vw, 36px); }
.section-sub { color: var(--muted); font-size: 1.06rem; max-width: 62ch; margin: 0 0 clamp(28px, 4vw, 44px); }

/* ---------- Karten ---------- */
.card-grid { counter-reset: karte; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(22px, 3vw, 40px) clamp(18px, 2.4vw, 28px); }
.card-grid:has(> .card:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card {
  position: relative; background: var(--bg-elev); border: 1px solid var(--border-subtle); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--border); }
.card .eyebrow { margin: 0; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card .btn { position: relative; z-index: 1; }
.card > .btn { align-self: flex-start; }
.card-grid > .card:not(:has(.eyebrow, .card-img))::before {
  counter-increment: karte; content: counter(karte, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: var(--accent);
}
.card-img { margin: -26px -26px 10px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-card); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card-guide:hover .card-img img { transform: scale(1.04); }
.card-guide h3 { font-size: 1.36rem; }
.card-guide .btn { background: none; border: 0; padding: 6px 0; border-radius: 0; color: var(--accent-strong); font-size: 0.9rem; }
.card-guide .btn:hover { transform: none; color: #fff; }

/* Rechtstexte: eine ruhige Lesespalte statt Kasten */
.hero > .card { display: block; background: none; border: 0; border-radius: 0; padding: 0; max-width: 72ch; margin-top: clamp(20px, 3vw, 36px); }
.hero > .card h2 { font-size: 1.4rem; max-width: none; margin: 40px 0 10px; padding-top: 28px; border-top: 1px solid var(--border-subtle); }
.hero > .card p { color: var(--muted); margin: 0 0 12px; }
.hero > .card p strong { color: var(--text); }

/* ---------- Nacht-Kompass ---------- */
.compass-shell { display: block; }
.tab-bar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.compass-tab {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end;
  aspect-ratio: 4 / 3; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--bg-card);
  color: var(--text); font-family: var(--sans); font-weight: 650; font-size: 0.92rem; line-height: 1.25; text-align: left; cursor: pointer;
}
.compass-tab img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.85) brightness(0.58); transition: filter 0.3s ease, transform 0.6s ease; }
.compass-tab::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 28%, rgba(9, 14, 28, 0.88)); }
.compass-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid transparent; transition: border-color 0.2s ease; }
.compass-tab:hover img { filter: saturate(1) brightness(0.8); }
.compass-tab[aria-selected="true"] { color: var(--accent-strong); }
.compass-tab[aria-selected="true"] img { filter: none; transform: scale(1.05); }
.compass-tab[aria-selected="true"]::after { border-color: var(--accent); }
.compass-panel[hidden] { display: none; }
.compass-panel { background: var(--bg-elev); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(20px, 3.4vw, 44px); }
.compass-panel-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.compass-panel h3 { font-size: clamp(1.45rem, 2.5vw, 1.95rem); line-height: 1.2; margin-bottom: 14px; }
.compass-panel-grid > div > p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.app-nudge { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; margin: 22px 0 26px; font-size: 0.95rem; color: var(--muted); }
.app-nudge strong { display: block; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 4px; }

/* ---------- YouTube-Karten (Verbindung erst nach Klick) ---------- */
.yt-card { display: flex; flex-direction: column; min-width: 0; }
.yt-stage { position: relative; aspect-ratio: 16 / 9; background: #04070e; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38); }
.yt-stage img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.yt-card:hover .yt-stage img { transform: scale(1.03); }
.yt-stage iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt-badge {
  position: absolute; top: 10px; left: 10px; z-index: 1; background: rgba(9, 14, 28, 0.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--text); padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
.yt-play-trigger {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 12px; cursor: pointer; color: #fff;
  display: flex; flex-direction: row-reverse; align-items: flex-end; justify-content: flex-start; gap: 10px;
  background: linear-gradient(to top, rgba(9, 14, 28, 0.78), rgba(9, 14, 28, 0) 46%);
}
.yt-play-circle {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 0.95rem; padding-left: 3px; transition: transform 0.2s ease, background 0.2s ease;
}
.yt-play-trigger:hover .yt-play-circle { transform: scale(1.08); background: var(--accent-strong); }
.yt-play-hint { font-family: var(--sans); font-size: 0.74rem; font-weight: 600; color: var(--text); background: rgba(9, 14, 28, 0.80); padding: 5px 11px; border-radius: 999px; margin-bottom: 8px; }
.yt-body { padding: 16px 2px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: space-between; }
.yt-body h3 { font-size: 1.2rem; }
.yt-body p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--muted); }
.yt-body .btn-row { gap: 4px 22px; }
.yt-body .btn { background: none; border: 0; border-radius: 0; padding: 6px 0; font-size: 0.86rem; font-weight: 650; }
.yt-body .btn:hover { transform: none; background: none; color: #fff; }
.yt-body .btn-secondary { color: var(--text); }
.yt-body .btn-secondary::after { content: "↗"; font-size: 0.9em; color: var(--faint); }
.yt-body .btn-yt { color: var(--yt); }
.card-grid:has(> .yt-card) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid:has(> .yt-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-top: 1px solid var(--border-subtle); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; line-height: 1.6; text-align: left; }
th, td { padding: 18px 24px 18px 0; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
th { font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--faint); padding-top: 14px; padding-bottom: 14px; }
td { color: var(--muted); }
td:first-child { font-family: var(--serif); font-size: 1.1rem; line-height: 1.4; color: var(--text); width: 24%; }
td strong { font-weight: 500; }
table.vs th:last-child, table.vs td:last-child { background: rgba(240, 176, 126, 0.07); color: var(--text); padding-left: 22px; padding-right: 22px; }
table.vs th:last-child { color: var(--accent); }

/* ---------- App-Block ---------- */
.app-showcase {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 32px; align-items: center;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 64px); background: #0d1326;
}
.app-showcase::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #0d1326 30%, rgba(13, 19, 38, 0.86) 54%, rgba(13, 19, 38, 0.30) 100%),
    url("/assets/bild/licht.webp") right center / auto 100% no-repeat;
}
.app-showcase h2 { max-width: 20ch; }
.app-showcase p { max-width: 56ch; }
.qr-card {
  background: rgba(9, 14, 28, 0.66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 235, 225, 0.18); border-radius: 20px; padding: 16px; text-align: center; width: 200px; justify-self: end;
}
.qr-card img { width: 156px; height: 156px; margin: 0 auto 10px; border-radius: 10px; }
.qr-card span { display: block; font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ---------- Fragen und Antworten ---------- */
.faq-list { border-top: 1px solid var(--border-subtle); }
details.faq-item { border-bottom: 1px solid var(--border-subtle); }
details.faq-item summary {
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; padding: 22px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1; color: var(--accent); transition: transform 0.2s ease; }
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item summary:hover { color: var(--accent-strong); }
details.faq-item p { margin: 0 0 24px; color: var(--muted); max-width: 68ch; }

/* ---------- Ratgeber-Seiten ---------- */
.guide-fig { margin: clamp(22px, 3vw, 36px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 9; background: var(--bg-card); }
.guide-fig img { width: 100%; height: 100%; object-fit: cover; }
.prose { padding-top: calc(var(--section) - 36px); }
.prose > section { padding: 36px 0; border-top: 1px solid var(--border-subtle); }
.prose > section:last-child { border-bottom: 1px solid var(--border-subtle); }
.prose h2 { font-size: clamp(1.4rem, 2.3vw, 1.75rem); line-height: 1.22; margin: 0 0 12px; max-width: none; }
.prose p { margin: 0; font-size: 1.1rem; line-height: 1.8; color: #cfd3dd; max-width: 68ch; }

/* ---------- Fußzeile ---------- */
.site-footer { margin-top: var(--section); border-top: 1px solid var(--border-subtle); padding: 56px 0 48px; font-size: 0.93rem; color: var(--muted); background: linear-gradient(180deg, rgba(15, 22, 41, 0.7), rgba(15, 22, 41, 0)); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px 24px; margin-bottom: 36px; }
.footer-grid h2 { font-family: var(--sans); font-size: 0.72rem; line-height: 1.5; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin: 0 0 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.notice-bar { border-top: 1px solid var(--border-subtle); padding-top: 22px; font-size: 0.82rem; line-height: 1.65; color: var(--faint); max-width: 96ch; }

/* ---------- Zweispaltige Lesefassung ab Desktop ---------- */
@media (min-width: 900px) {
  main > section:has(> .faq-list) { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); column-gap: 56px; align-items: start; }
  main > section:has(> .faq-list) > h2 { position: sticky; top: 96px; }
  .prose > section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); column-gap: 56px; align-items: start; }
  .prose h2 { margin: 0; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1000px) {
  .card-grid:has(> .yt-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Schmale Kopfzeile ---------- */
@media (max-width: 880px) {
  .nav-inner { flex-wrap: wrap; gap: 8px 10px; min-height: 58px; }
  .brand { font-size: 1.22rem; }
  .nav-cta { order: 2; }
  .nav-links { order: 4; flex-basis: 100%; flex-wrap: wrap; gap: 2px 18px; padding: 2px 0 8px; }
  .lang-pills { margin-left: auto; padding-left: 0; border-left: 0; }
  .js .nav-toggle {
    order: 3; display: inline-grid; place-items: center; width: 42px; height: 42px; padding: 0; cursor: pointer;
    background: rgba(242, 235, 225, 0.06); border: 1px solid rgba(242, 235, 225, 0.2); border-radius: 50%; color: var(--text);
  }
  .nav-toggle span, .nav-toggle span::before { display: block; width: 16px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.2s ease; }
  .nav-toggle span { transform: translateY(-3px); }
  .nav-toggle span::before { content: ""; transform: translateY(6px); }
  .nav-open .nav-toggle span { transform: rotate(45deg); }
  .nav-open .nav-toggle span::before { transform: rotate(-90deg); }
  .js .nav-links { display: none; }
  .js .nav-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 0 14px; }
  .js .nav-open .nav-links > a { padding: 14px 2px; border-bottom: 1px solid var(--border-subtle); font-size: 1.05rem; color: var(--text); }
  .js .nav-open .lang-pills { margin: 12px 0 0 -8px; }
  .js .nav-open .lang-pills a { padding: 8px 12px; font-size: 0.9rem; }
}

/* ---------- Handy ---------- */
@media (max-width: 820px) {
  .compass-panel-grid, .app-showcase { grid-template-columns: 1fr; }
  .qr-card { display: none; }
  .app-showcase::before { background: linear-gradient(180deg, rgba(13, 19, 38, 0.90), rgba(13, 19, 38, 0.97)), url("/assets/bild/licht.webp") center / cover no-repeat; }
  .tab-bar { display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 8px; }
  .tab-bar::-webkit-scrollbar { display: none; }
  .compass-tab { flex: 0 0 42%; max-width: 190px; scroll-snap-align: start; }
}
@media (max-width: 700px) {
  html[lang="de"] main p, html[lang="de"] td, html[lang="de"] h1, html[lang="de"] h2 { hyphens: auto; hyphenate-limit-chars: 10 4 4; }
  .hero-grid { min-height: min(86vh, 640px); padding-top: 96px; }
  .hero-grid .btn-row .btn { flex: 1 1 100%; }
  .hero-caption { font-size: 0.7rem; letter-spacing: 0.12em; }
  .hero-grid::before { background: linear-gradient(180deg, rgba(9, 14, 28, 0.50) 0%, rgba(9, 14, 28, 0.22) 20%, rgba(9, 14, 28, 0.74) 48%, var(--bg) 100%); }
  .card-grid:has(> .card:nth-child(4):last-child) { grid-template-columns: 1fr; }
  .tldr-box { grid-template-columns: 1fr; }
  .tldr-label { justify-self: start; padding-right: 28px; }
  .guide-fig { aspect-ratio: 3 / 2; border-radius: 18px; }
  .btn-sm.nav-cta { padding: 9px 14px; font-size: 0.82rem; }

  /* Videokarten: seitlich wischen statt endlos scrollen */
  .card-grid:has(> .yt-card:nth-child(3)) {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 16px;
    margin-inline: -16px; padding: 0 16px 6px; scroll-padding-inline: 16px;
  }
  .card-grid:has(> .yt-card:nth-child(3))::-webkit-scrollbar { display: none; }
  .card-grid:has(> .yt-card:nth-child(3)) > .yt-card { flex: 0 0 84%; scroll-snap-align: start; }
  .card-grid:has(> .yt-card:nth-child(2):last-child) { grid-template-columns: 1fr; }

  /* Tabellen als gestapelte Blöcke mit Spaltenname über jedem Wert (Beschriftung setzt hushtide.js) */
  .js .table-wrap { overflow: visible; border-top: 0; }
  .js table, .js tbody, .js tr, .js td { display: block; width: auto; }
  .js thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .js tr { padding: 20px 0; border-top: 1px solid var(--border-subtle); }
  .js tr:last-child { border-bottom: 1px solid var(--border-subtle); }
  .js td, .js table.vs td:last-child { border: 0; padding: 0 0 14px; width: auto; }
  .js tr td:last-child { padding-bottom: 0; }
  .js td:first-child { font-size: 1.22rem; }
  .js td[data-label]::before { content: attr(data-label); display: block; font-family: var(--sans); font-size: 0.68rem; line-height: 1.5; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin-bottom: 2px; }
  .js table.vs td:last-child { background: none; }
  .js table.vs td:last-child::before { color: var(--accent); }
}
