/* Mainnet-Portal – Design-System „wie Claude Code“ (Mainnet-Vault/Design-System.md).
   Ruhig, warm, minimal; ein Akzent (Terrakotta); hell und dunkel gleichwertig.
   Schriften: Inter / JetBrains Mono, falls lokal vorhanden (keine fremden Quellen). */
:root {
  --bg: #FAF9F5; --surface: #FFFFFF; --soft: #F0EEE6; --text: #1F1E1D; --muted: #5F5E59;
  --border: #E2DFD4; --accent: #C96442; --on-accent: #FFFFFF;
  --ok: #2F6B42; --warn: #8A5A12; --err: #A63D33;
  --mono: "JetBrains Mono", "Cascadia Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Yu Gothic UI", "Noto Sans CJK SC", "Noto Sans CJK JP", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1F1E1D; --surface: #262624; --soft: #2D2C2A; --text: #F5F4EE; --muted: #A8A7A0;
    --border: #3A3936; --accent: #D97757; --on-accent: #1F1E1D;
    --ok: #7BC596; --warn: #E3B062; --err: #F08A7E;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-weight: 600; }
code { font-family: var(--mono); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.strong { font-weight: 600; }
.acc { color: var(--accent); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }

/* Nodi */
.nodi .ant { fill: var(--ok); }
.nodi .ant.off { fill: var(--muted); }
.nodi .bd { fill: var(--accent); }
.nodi .ey { fill: #1F1E1D; }

/* Kopf */
.top { border-bottom: 1px solid var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.word { font-weight: 700; font-size: 18px; letter-spacing: 0.06em; }
.managed { color: var(--muted); font-size: 13px; }
/* Kopfmarke: Nodi · MAINNET · verwaltet von cypherpunk2077.com · online
   (Wortmarke etwas größer, Monospace; Entschlüsselung beim Laden nur auf
   Start- und Info-Seite per buehne.js, sonst ruhig und statisch) */
.kopfmarke { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.brand-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; }
.managed { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; }
.managed .by { font-size: 13px; }
.wm { color: var(--text); font-family: var(--mono); font-size: 16.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.wm-v span { display: inline-block; min-width: 1ch; text-align: center; }
.live { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border: 1px solid var(--border); border-radius: 999px; color: var(--ok); font-size: 12px; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: livepuls 2.4s ease-in-out infinite; }
@keyframes livepuls { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .live i { animation: none; opacity: 1; } }
.nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; flex: 1 1 auto; }
.langs { display: flex; gap: 4px; }
.langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 36px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 14px; }
.langs a.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.langs a:hover { text-decoration: none; }

/* Hero + Prüfung */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero-text { flex: 999 1 560px; min-width: 0; }
.hero-nodi { flex: 1 1 240px; display: flex; justify-content: center; }
.hero-nodi svg { max-width: 100%; height: auto; }
.kicker { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
h1 { margin: 0; font-size: clamp(36px, 6vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
.lead { margin: 20px 0 0; max-width: 680px; font-size: 19px; color: var(--muted); }
.check { margin-top: 28px; max-width: 720px; }
/* Reiter „Domain finden“ / „Mainnet durchsuchen“ (Links, ohne JavaScript) */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 28px 0 0; }
.tabs a { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 8px 8px 0 0; background: var(--surface); color: var(--muted); font-size: 14px; }
.tabs a.on { background: var(--text); border-color: var(--text); color: var(--bg); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.on:hover { color: var(--bg); }
.tabs + .check, .check .tabs + form { margin-top: 12px; }
.check .tabs { margin-top: 0; }
/* Treffer der Mainnet-Suche */
.result.treffer { max-width: 760px; }
.hits { list-style: none; margin: 16px 0 0; padding: 0; }
.hit { padding: 14px 0; border-top: 1px solid var(--border); }
.hit-title { font-size: 18px; font-weight: 600; overflow-wrap: anywhere; }
.hit-url { margin: 2px 0 0; overflow-wrap: anywhere; }
.hit-snippet { margin: 6px 0; overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; border: 0; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips label { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; }
.chips input:checked + label { background: var(--text); border-color: var(--text); color: var(--bg); }
.chips input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.field input { flex: 1 1 220px; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--text); font-size: 17px; outline: none; }
.field button, .btn.primary { background: var(--accent); color: var(--on-accent); border: 0; }
.field button { height: 48px; padding: 0 22px; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
.hint { margin: 8px 0 0 8px; font-size: 13px; color: var(--muted); }
.result { margin-top: 14px; min-height: 52px; max-width: 720px; padding-left: 8px; }
.res { margin: 0; font-family: var(--mono); font-size: 14px; }
.res.ok { color: var(--ok); }
.res.warn { color: var(--warn); }
.res.err { color: var(--err); }
.result code { padding: 2px 6px; border-radius: 6px; background: var(--soft); font-size: 13px; }

/* Abschnitte */
.band { border-top: 1px solid var(--border); padding: 64px 0; }
.band.surface { background: var(--surface); }
h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -0.01em; }
h2.xl { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; max-width: 820px; }
.split { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; }
.split > div { flex: 1 1 420px; min-width: 0; }
.price { flex: 0 0 auto !important; text-align: right; }
.big { font-weight: 700; font-size: 40px; line-height: 1; }
.tiles { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }
.tile { flex: 1 1 160px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.tile.hi { border-color: var(--accent); }
.tile .tld { font-weight: 700; font-size: 28px; }
.tile.hi .tld { color: var(--accent); }
.tile p { margin: 6px 0 0; font-size: 15px; }
.tile.step, .doc .tile { flex-basis: 240px; }
.tile h3 { margin: 0 0 8px; font-size: 18px; }
.tile code { display: block; margin-top: 16px; padding: 10px 12px; border-radius: 6px; background: var(--soft); font-size: 13px; }
.table { overflow-x: auto; margin-top: 32px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 20px; text-align: left; vertical-align: top; }
thead tr { background: var(--soft); }
thead th { font-weight: 500; color: var(--muted); }
tbody tr { border-top: 1px solid var(--border); }
tbody th { font-weight: 600; }
.bans { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.bans li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg); }
.bans .x { color: var(--err); font-family: var(--mono); font-weight: 600; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 500; }
.btn:hover { text-decoration: none; }
.btn.primary { font-weight: 600; }
.term { flex: 1 1 420px; min-width: 0; padding: 20px 22px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); font-size: 14px; line-height: 1.8; white-space: pre-wrap; }

/* Visitenkarte */
.cardpage { padding-top: 32px; padding-bottom: 48px; }
.panel { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.card { max-width: 820px; padding: 40px; }
.cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.cardhead .word { font-size: 16px; }
.fqdn { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 700; line-height: 1.15; word-break: break-all; letter-spacing: 0; }
.status { margin: 10px 0 0; font-size: 14px; }
.badge { display: inline-block; margin: 14px 0 0; padding: 4px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 13px; }
.ctitle { margin: 28px 0 8px; font-size: 26px; line-height: 1.25; letter-spacing: 0; }
.cdesc { margin: 0; font-size: 18px; color: var(--muted); max-width: 620px; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.tags li { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--soft); color: var(--muted); font-size: 13px; }
.notice { margin-top: 28px; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); }
.notice.warn { border-color: var(--warn); }
.notice.err { border-color: var(--err); }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; font-size: 15px; }
.meta { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 36px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }
.note { margin-top: 20px; }

/* WHOIS (Teil 14 §8) */
.whoispage .check { margin-top: 20px; }
.whois { margin-top: 18px; white-space: normal; overflow-wrap: anywhere; }
.wdl { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 2px 20px; margin: 10px 0; }
.wdl div { display: contents; }
.wdl dt { color: var(--muted); }
.wdl dd { margin: 0; }
.wdl .res { font-size: inherit; }
.wdl code { padding: 1px 6px; border-radius: 6px; background: var(--soft); }

/* Textseiten: Regeln, Download, Impressum, Datenkarte, Chat */
.doc { max-width: 880px; padding-top: 48px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(32px, 5vw, 48px); }
.doc .lead { margin-bottom: 16px; }
.docsec { margin-top: 44px; }
.docsec h2 { font-size: 26px; }
.docsec .kicker { margin: 0 0 4px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc blockquote { margin: 16px 0; padding: 12px 18px; border-left: 3px solid var(--accent); background: var(--surface); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.cat { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.cat.hard { border-color: var(--err); }
.cat h3 { margin: 0 0 8px; font-size: 18px; }
.cat p { margin: 6px 0 0; }
.doc code { padding: 1px 6px; border-radius: 6px; background: var(--soft); font-size: 13px; overflow-wrap: anywhere; }
.doc .table table { min-width: 560px; }
.cta { margin-top: 48px; padding: 28px; }
.ausfuellen { color: var(--warn); }
.wege li { margin: 10px 0; }

/* Fuß */
.foot { border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.foot .bar { justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.footline { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav.open { flex-basis: 100%; font-size: 13px; }

@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .hero { padding-top: 40px; }
  .card { padding: 24px; }
  .wdl { grid-template-columns: 1fr; }
  .wdl dd { margin-bottom: 6px; }
  .price { text-align: left; }
  .lead { font-size: 17px; }
}

/* ---- Startseite nach Main.dc.html (Runde 5): Reiter, Endungen, Film, Spenden ---- */
/* Reiter „◆ Domain finden · ⌕ Mainnet durchsuchen · $ WHOIS“ (unterstrichen) */
.tabs { gap: 4px; margin: 32px 0 0; max-width: 720px; border-bottom: 1px solid var(--border); }
.tabs a { height: 40px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 15px; }
.tabs a.on { background: transparent; border-color: var(--accent); color: var(--text); }
.tabs a.on:hover { color: var(--text); }
.tabs + .check, .tabs + form { margin-top: 16px; }
/* Endungs-Chips über versteckte Radio-Knöpfe (ohne JavaScript) */
.tldr { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chips { align-items: center; }
.chips .chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; cursor: pointer; }
#t-cp77:checked ~ .chips label[for="t-cp77"], #t-com:checked ~ .chips label[for="t-com"], #t-de:checked ~ .chips label[for="t-de"], #t-net:checked ~ .chips label[for="t-net"], #t-org:checked ~ .chips label[for="t-org"] { background: var(--text); border-color: var(--text); color: var(--bg); }
#t-cp77:focus-visible ~ .chips label[for="t-cp77"], #t-com:focus-visible ~ .chips label[for="t-com"], #t-de:focus-visible ~ .chips label[for="t-de"], #t-net:focus-visible ~ .chips label[for="t-net"], #t-org:focus-visible ~ .chips label[for="t-org"], #t-auto:focus-visible ~ .chips .tldin { outline: 2px solid var(--accent); outline-offset: 2px; }
.tldin { display: inline-flex; align-items: center; height: 36px; padding: 0 6px 0 14px; border: 1px dashed var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 14px; }
.chips .tldin input { position: static; opacity: 1; width: 96px; height: 32px; border: 0; background: transparent; color: var(--text); font-family: var(--mono); font-size: 14px; outline: none; }
.tldin:has(input:not(:placeholder-shown)) { border-style: solid; border-color: var(--text); color: var(--text); }
/* Endung im Feld: rotierend (keine gewählt) oder fest */
.field .tldrot, .field .tldfix { display: none; flex: 0 0 auto; font-size: 17px; }
#t-auto:checked ~ .field .tldrot { display: inline-block; }
.chips:has(.tldin input:not(:placeholder-shown)) ~ .field .tldrot { display: none; }
#t-cp77:checked ~ .field .tf-cp77, #t-com:checked ~ .field .tf-com, #t-de:checked ~ .field .tf-de, #t-net:checked ~ .field .tf-net, #t-org:checked ~ .field .tf-org { display: inline; }
.tldrot { position: relative; width: 8ch; height: 1.5em; overflow: hidden; vertical-align: middle; }
.tldrot-i { position: absolute; left: 0; top: 0; white-space: nowrap; color: var(--accent); opacity: 0; animation: tldrot 40s linear infinite both; }
.tldrot-i:nth-child(2) { animation-delay: 2s; } .tldrot-i:nth-child(3) { animation-delay: 4s; } .tldrot-i:nth-child(4) { animation-delay: 6s; } .tldrot-i:nth-child(5) { animation-delay: 8s; }
.tldrot-i:nth-child(6) { animation-delay: 10s; } .tldrot-i:nth-child(7) { animation-delay: 12s; } .tldrot-i:nth-child(8) { animation-delay: 14s; } .tldrot-i:nth-child(9) { animation-delay: 16s; } .tldrot-i:nth-child(10) { animation-delay: 18s; }
.tldrot-i:nth-child(11) { animation-delay: 20s; } .tldrot-i:nth-child(12) { animation-delay: 22s; } .tldrot-i:nth-child(13) { animation-delay: 24s; } .tldrot-i:nth-child(14) { animation-delay: 26s; } .tldrot-i:nth-child(15) { animation-delay: 28s; }
.tldrot-i:nth-child(16) { animation-delay: 30s; } .tldrot-i:nth-child(17) { animation-delay: 32s; } .tldrot-i:nth-child(18) { animation-delay: 34s; } .tldrot-i:nth-child(19) { animation-delay: 36s; } .tldrot-i:nth-child(20) { animation-delay: 38s; }
@keyframes tldrot { 0% { opacity: 0; transform: translateY(8px); } 1.5% { opacity: 1; transform: translateY(0); } 4.2% { opacity: 1; transform: translateY(0); } 5% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 0; transform: translateY(-8px); } }
/* Film rechts im Hero */
.hero-film { flex: 1 1 400px; min-width: 0; }
/* Nodi: Antenne leuchtet (Design-System, Nodi.md) */
.nodi .ant { animation: antglow 2.4s ease-in-out infinite; }
.nodi .ant.off { animation: none; }
@keyframes antglow { 0%, 100% { opacity: .75; filter: none; } 50% { opacity: 1; filter: drop-shadow(0 0 1px var(--ok)) drop-shadow(0 0 3px var(--ok)); } }
@media (prefers-reduced-motion: reduce) {
  .nodi .ant, .tldrot-i { animation: none; }
  .tldrot-i:first-child { opacity: 1; }
}
/* Spendenbalken */
.donate { background: var(--accent); color: var(--on-accent); }
.donate a { color: var(--on-accent); text-decoration: underline; }
.donate-in { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.donate-text { flex: 1 1 520px; min-width: 0; }
.donate-text h2 { margin: 0 0 4px; display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; }
.donate-text p { margin: 0; font-size: 15px; opacity: .95; }
.donate .btc { flex: 0 0 auto; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF; }
.donate-det { flex: 0 1 auto; }
.donate-det[open] { flex: 1 1 100%; }
.donate-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 2px solid var(--on-accent); border-radius: 10px; background: var(--on-accent); color: var(--accent); font-weight: 700; font-size: 16px; cursor: pointer; list-style: none; }
.donate-btn::-webkit-details-marker { display: none; }
.donate-btn:focus-visible { outline: 2px solid var(--on-accent); outline-offset: 3px; }
.donate-btn .btc { box-shadow: none; }
.donate-panel { margin-top: 18px; padding: 16px 18px; border-radius: 10px; background: var(--surface); color: var(--text); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.donate-panel a { color: var(--accent); }
.donate-qr { width: 148px; height: 148px; border-radius: 6px; flex: 0 0 auto; }
.donate-addr { flex: 1 1 320px; min-width: 0; }
.donate-addr p { margin: 2px 0 0; }
.addr { font-size: 16px; word-break: break-all; }
.donate-addr a { display: inline-block; margin-top: 6px; word-break: break-all; }
/* Fuß: Gruppe „Portal“ */
.foot nav.seiten { font-size: 14px; }
/* Download, Datenschutz, Kaufen */
.release h2 .acc { font-weight: 700; }
.hash { overflow-wrap: anywhere; word-break: break-all; }
.dateien td, .dateien th { padding: 12px 14px; }
.notiz { margin: 8px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font-family: var(--mono); font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.doc pre.term { margin: 10px 0; overflow-x: auto; white-space: pre; }
.wochen { list-style: none; padding-left: 8px !important; color: var(--accent); }
.nie li { border-color: var(--border); }
.anwalt { margin-top: 24px; }

/* ---- Mobil (Runde 5, „Mobile Ansicht muss für alles perfekt sein“) ----
   Ziel: kein waagerechtes Scrollen ab 320 px, Tippziele ≥ 44 px, Fließtext
   ≥ 16 px, Menü ohne JavaScript (<details>), Tabellen als Karten, Abstände
   für die iPhone-Notch (viewport-fit=cover + env(safe-area-inset-*)). */
.tabs a { gap: 8px; }
.menue { display: none; }
.foot .bar { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
/* Überschriften ausgewogen umbrechen; Japanisch nach Wortgruppen, CJK streng */
h1, h2, h3, .bh-h1, .bh-h2, .bh-h3 { text-wrap: balance; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .bh-h1, :lang(ja) .bh-h2, :lang(ja) .bh-h3 { word-break: auto-phrase; }
:lang(zh) body, :lang(ja) body { line-break: strict; }
/* Lebenszeichen und andere Textseiten: lange Zeilen umbrechen statt überlaufen */
.doc pre:not(.term) { white-space: pre-wrap; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: minmax(150px, max-content) 1fr; gap: 4px 20px; margin: 20px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }

/* Kopf: Menü statt Linkzeilen */
@media (max-width: 759px) {
  .top { position: relative; }
  .top .bar { flex-wrap: nowrap; align-items: flex-start; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .top .bar > .nav, .top .bar > .langs { display: none; }
  .kopfmarke { position: relative; display: block; flex: 1 1 auto; min-width: 0; }
  .brand { flex-wrap: wrap; align-items: center; gap: 0 10px; }
  .brand .nodi { flex: 0 0 auto; }
  .brand-t { display: contents; }
  .brand .word { line-height: 44px; }
  .managed { flex: 1 1 100%; min-width: 0; padding-bottom: 2px; }
  .live { position: absolute; top: 10px; right: 0; }
  .menue { display: block; flex: 0 0 auto; }
  .menue > summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
  .menue > summary::-webkit-details-marker { display: none; }
  .menue > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .menue[open] > summary { background: var(--text); border-color: var(--text); color: var(--bg); }
  .menue-i { flex: 0 0 auto; width: 18px; height: 14px; background: linear-gradient(currentColor, currentColor) top / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) bottom / 100% 2px no-repeat; }
  .menue-tafel { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; max-height: calc(100vh - 80px); max-height: calc(100dvh - 80px); overflow-y: auto; padding: 4px max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: 0 28px 40px -28px rgba(31, 30, 29, .45); }
  .menue-nav { display: flex; flex-direction: column; }
  .menue-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--border); color: var(--text); font-size: 17px; }
  .menue-nav a:hover { text-decoration: none; color: var(--accent); }
  .menue-tafel .langs { flex-wrap: wrap; gap: 8px; margin-top: 16px; }
  .menue-tafel .langs a { height: 44px; min-width: 60px; font-size: 15px; }
}
@media (max-width: 399px) {
  .menue > summary { width: 44px; padding: 0; }
  .menue-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .brand .word { font-size: 17px; }
}

/* Tippziele ≥ 44 px auf Touch-Geräten und schmalen Fenstern */
@media (max-width: 759px), (pointer: coarse) {
  .langs a { height: 44px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .tabs a { height: 44px; }
  .brand { min-height: 44px; }
  .chips .chip, .chips label { height: 44px; }
  .tldin { height: 46px; }
  .chips .tldin input { height: 44px; font-size: 16px; }
  #download p.small > a, [data-feld="lebenszeichen"] > a, p.einzel > a, dd > a { display: inline-block; padding-top: 12px; padding-bottom: 12px; }
  .foot nav { gap: 0 20px; }
  .foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .toc a, .hit-title a { display: inline-flex; align-items: center; min-height: 44px; }
  .result .small a, .meta a, .note a { display: inline-flex; align-items: center; min-height: 44px; }
  .btn, .field button { min-height: 48px; }
}

/* Schmale Bildschirme: Schrift, Abstände, Tabellen als Karten */
@media (max-width: 640px) {
  .field { padding-left: 12px; }
  .field input { flex-basis: 120px; font-size: 17px; }
  .field button { flex: 1 1 100%; }
  .card { padding: 22px 18px; }
  .tile p, .notice p + p, .donate-text p, .cdesc { font-size: 16px; }
  .term { font-size: 13.5px; }
  h2 { font-size: 26px; }
  .doc h1 { font-size: clamp(30px, 8.6vw, 40px); }
  .docsec h2 { font-size: 23px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
  .table { overflow: visible; }
  .table table, .doc .table table { min-width: 0; font-size: 16px; }
  .table table, .table tbody, .table tr, .table th, .table td { display: block; width: auto; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .table tbody tr { padding: 14px 16px; }
  .table tbody tr:first-child { border-top: 0; }
  .table th, .table td, .dateien td, .dateien th { padding: 3px 0; }
  .table tbody th { padding-bottom: 6px; font-size: 17px; }
  .table td + td { margin-top: 6px; }
  .table td[data-l]::before { content: attr(data-l); display: block; margin-bottom: 1px; font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--muted); }
  .donate-qr { width: 168px; height: 168px; }
}
@media (max-width: 399px) {
  .lead { font-size: 16.5px; }
  .tabs a { padding: 0 12px; }
}

/* Fließtext ≥ 16 px auch auf Tablets mit Touch (bis 1024 px) sowie für
   Hinweise, Prüf-Ergebnisse und Anleitungen auf dem Handy (Inhalte-Go 2026-10-29).
   Kleingedruckt bleiben nur Stand-Zeilen in Monospace. */
@media (max-width: 1024px) and (pointer: coarse) {
  table, .tile p, .notice p + p, .donate-text p, .cdesc { font-size: 16px; }
}
@media (max-width: 640px), (max-width: 1024px) and (pointer: coarse) {
  p.small:not(.mono), ol.small, ul.small, .hint, .res { font-size: 16px; }
}
