/* Swisstoggel – gemeinsames Stylesheet
   Marke: ruhig, präzise, schweizerisch. Die Produkte bringen ihre eigene Welt mit:
   KNX = Petrol/Mint, Talhof = Wiese/Gold. */

:root {
  --ink: #141a19;
  --ink-soft: #4b5553;
  --paper: #f3f4f2;
  --paper-2: #e8eae7;
  --line: #d3d7d4;
  --swiss: #d52b1e;

  --knx-deep: #0e1513;
  --knx-petrol: #123b38;
  --knx-petrol-2: #1b524e;
  --knx-mint: #5eead4;
  --knx-mint-soft: #bff3ea;
  --knx-paper: #f4fbf8;

  --hof-grass: #7fb069;
  --hof-grass-2: #6a9a56;
  --hof-grass-dark: #2f6b3a;
  --hof-blue: #3d5a80;
  --hof-gold: #ffc928;
  --hof-market: #f2c14e;
  --hof-roof: #9e3b32;
  --hof-wood: #8b5a2b;
  --hof-soil: #7a5232;
  --hof-outline: #2b1d14;
  --hof-cream: #fbf4e4;
  --hof-night: #0b1a3a;

  --font-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", var(--font-display);

  --measure: 62ch;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0 0 .5em; font-weight: 600; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); }
p { margin: 0 0 1em; max-width: var(--measure); }
ul { margin: 0; padding: 0; list-style: none; }
.lede { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--ink-soft); }
.wrap { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid var(--swiss); outline-offset: 3px; border-radius: 4px; }
.theme-knx :focus-visible { outline-color: var(--knx-mint); }
.theme-hof :focus-visible { outline-color: var(--hof-gold); }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 20px; border-radius: 10px; background: var(--ink); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--swiss); }
.site-nav { display: flex; gap: 6px; }
.site-nav a { text-decoration: none; white-space: nowrap; padding: 8px 12px; border-radius: 999px; font-weight: 500; color: var(--ink-soft); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
@media (max-width: 560px) { .site-nav { gap: 0; } .site-nav a { padding: 8px 8px; font-size: .9rem; } .brand { font-size: 1.05rem; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1; font-family: var(--font-body); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; }
.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn svg { width: 18px; height: 18px; }

/* Store-Platzhalter, bis die Apps live sind */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none; min-width: 180px; border: 1px solid #333;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: .68rem; opacity: .75; line-height: 1; margin-bottom: 3px; letter-spacing: .02em; }
.store strong { display: block; font-size: 1.05rem; line-height: 1; font-weight: 600; }
.store[aria-disabled="true"] { opacity: .78; cursor: default; }

/* ---------- Startseite: KNX-Hero ---------- */
.knx-hero { background: radial-gradient(120% 80% at 80% 0%, var(--knx-petrol-2), var(--knx-deep) 70%); color: var(--knx-paper); overflow: hidden; }
.knx-hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 8vw, 110px); }
.knx-hero .kicker { font-size: .95rem; font-weight: 500; opacity: .8; margin-bottom: 12px; }
.knx-hero h1 { max-width: 15ch; }
.knx-hero .lede { color: #a9c7c0; max-width: 42ch; }
.knx-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.knx-hero .btn { background: var(--knx-mint); color: var(--knx-deep); }
.knx-hero .btn:hover { background: #8df2e3; }
.knx-hero .btn-ghost { background: transparent; color: var(--knx-paper); border-color: #3a5450; }
.knx-hero .btn-ghost:hover { background: rgba(94,234,212,.1); }
.knx-hero .art { position: relative; min-height: 520px; display: grid; place-items: center; }
.knx-hero .grid-lines { position: absolute; inset: -40px; background-image: linear-gradient(rgba(94,234,212,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(94,234,212,.08) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent); }
.knx-hero .phone { position: relative; z-index: 2; max-width: 290px; }
.knx-hero .phone.back { position: absolute; z-index: 1; max-width: 230px; left: 2%; top: 50px; rotate: -8deg; }
.knx-hero .phone.front { margin-left: 28%; }
@media (max-width: 820px) { .knx-hero .wrap { grid-template-columns: 1fr; } .knx-hero .art { min-height: 0; } .knx-hero .phone.back { display: none; } .knx-hero .phone.front { margin: 0; max-width: 260px; } }
.as-h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; max-width: 18ch; }

/* ---------- Startseite: Intro, Produktreihen ---------- */
.intro { padding: clamp(56px, 9vw, 120px) 0 clamp(24px, 4vw, 48px); }
.intro h1 { max-width: 16ch; }
.intro .lede { max-width: 54ch; }

.product-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.product-row.flip > .media { order: -1; }
.product-row h2 { margin-top: .2em; }
.product-row .facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; margin: 24px 0 28px; max-width: 56ch; }
.product-row .facts li { padding-left: 26px; position: relative; color: var(--ink-soft); }
.product-row .facts li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 4px; }
.product-row.knx .facts li::before { background: var(--knx-mint); }
.product-row.hof .facts li::before { background: var(--hof-gold); border: 2px solid var(--hof-outline); box-sizing: border-box; }
.product-row .media { display: grid; place-items: center; }
.state { display: inline-block; font-size: .85rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); margin-bottom: 18px; }
@media (max-width: 820px) {
  .product-row, .product-row.flip { grid-template-columns: 1fr; }
  .product-row.flip > .media { order: 0; }
  .product-row .facts { grid-template-columns: 1fr; }
}

/* ---------- Gerät-Rahmen für Screenshots ---------- */
.phone { width: 100%; max-width: 320px; aspect-ratio: 360 / 760; border-radius: 40px; padding: 12px; background: #0b0f0e; box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 70px rgba(0,0,0,.35); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; translate: -50%; width: 90px; height: 24px; border-radius: 999px; background: #0b0f0e; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; }
.phone.light { background: #2a302e; }
.tablet { width: 100%; max-width: 760px; aspect-ratio: 1024 / 768; border-radius: 26px; padding: 14px; background: #0b0f0e; box-shadow: 0 30px 70px rgba(0,0,0,.35); }
.tablet img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }

/* ---------- Über / Fusszeile ---------- */
.about { padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.about h2 { max-width: 14ch; }
.about .cols p { color: var(--ink-soft); }
.principles { display: grid; gap: 18px; margin-top: 8px; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.principles .glyph { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; }
.principles .glyph svg { width: 22px; height: 22px; }
.principles strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.principles span { color: var(--ink-soft); }
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } }

.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-soft); font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .note { width: 100%; font-size: .85rem; max-width: none; margin: 0; }

/* ---------- Produktseiten: gemeinsames ---------- */
.theme-knx { --page-bg: var(--knx-deep); --page-fg: var(--knx-paper); --page-muted: #a9c7c0; --page-accent: var(--knx-mint); --page-card: #152220; --page-line: #243633; background: var(--page-bg); color: var(--page-fg); }
.theme-knx .site-header { background: color-mix(in srgb, var(--knx-deep) 80%, transparent); border-bottom-color: #1e2d2a; }
.theme-knx .site-nav a { color: var(--page-muted); }
.theme-knx .site-nav a:hover, .theme-knx .site-nav a[aria-current="page"] { color: var(--page-fg); background: #1a2b28; }
.theme-knx .brand { color: var(--page-fg); }
.theme-knx .brand-mark { background: var(--knx-mint); }
.theme-knx .lede, .theme-knx .muted { color: var(--page-muted); }
.theme-knx .site-footer { border-top-color: var(--page-line); color: var(--page-muted); }
.theme-knx .btn-ink { background: var(--knx-mint); color: var(--knx-deep); }
.theme-knx .btn-ink:hover { background: #8df2e3; }

.theme-hof { --page-bg: var(--hof-cream); --page-fg: var(--hof-outline); --page-muted: #6b5a4a; --page-accent: var(--hof-gold); --page-card: #fff; --page-line: #e7dcc4; background: var(--page-bg); color: var(--page-fg); }
.theme-hof .site-header { background: color-mix(in srgb, var(--hof-cream) 84%, transparent); border-bottom-color: var(--page-line); }
.theme-hof .site-nav a { color: var(--page-muted); }
.theme-hof .site-nav a:hover, .theme-hof .site-nav a[aria-current="page"] { color: var(--page-fg); background: #f1e7d0; }
.theme-hof .brand-mark { background: var(--hof-outline); }
.theme-hof .brand-mark::after { background: var(--hof-gold); }
.theme-hof .lede, .theme-hof .muted { color: var(--page-muted); }
.theme-hof .site-footer { border-top-color: var(--page-line); color: var(--page-muted); }
.theme-hof .btn-ink { background: var(--hof-outline); color: var(--hof-cream); }

.page-hero { padding: clamp(48px, 7vw, 100px) 0 clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.page-hero .app-id { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 22px; font-weight: 600; }
.page-hero .app-id img { width: 48px; height: 48px; border-radius: 12px; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { max-width: 46ch; }
.page-hero .stores { margin-top: 26px; }
.page-hero .beta { margin-top: 18px; font-size: .95rem; }
.page-hero .beta a { font-weight: 600; }
@media (max-width: 820px) { .page-hero { grid-template-columns: 1fr; } }

.section { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--page-line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px clamp(28px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--page-muted); }
@media (max-width: 820px) { .section-head { grid-template-columns: 1fr; } }

/* Funktionsliste: Gruppen mit Definitionen statt gleicher Karten */
.feature-groups { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.feature-groups .toc { position: sticky; top: 84px; display: grid; gap: 4px; }
.feature-groups .toc a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--page-muted); border-left: 2px solid transparent; }
.feature-groups .toc a:hover { color: var(--page-fg); border-left-color: var(--page-accent); }
.feature-group { padding: 26px 0 30px; border-top: 1px solid var(--page-line); scroll-margin-top: 90px; }
.feature-group:first-child { border-top: 0; padding-top: 0; }
.feature-group h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.feature-group h3 .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--page-card); border: 1px solid var(--page-line); flex: none; }
.feature-group h3 .ico svg { width: 20px; height: 20px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 28px; }
.features li { padding: 10px 0 10px 18px; border-left: 2px solid var(--page-line); }
.features li strong { display: block; font-weight: 600; margin-bottom: 2px; }
.features li span { color: var(--page-muted); font-size: .97rem; }
.theme-knx .features li:hover { border-left-color: var(--knx-mint); }
.theme-hof .features li { border-left-color: #e3d4b4; }
.theme-hof .features li:hover { border-left-color: var(--hof-gold); }
@media (max-width: 820px) { .feature-groups { grid-template-columns: 1fr; } .feature-groups .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } }

/* Screenshots-Galerie */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); align-items: start; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 14px; color: var(--page-muted); font-size: .95rem; }
.gallery .phone { max-width: 100%; }
@media (max-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure:nth-child(3) { grid-column: 1 / -1; max-width: 50%; margin-inline: auto; } }

/* Zahlen-/Faktenband */
.factband { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--page-line); border: 1px solid var(--page-line); border-radius: var(--radius); overflow: hidden; }
.factband div { background: var(--page-card); padding: 22px 20px; }
.factband strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.3rem); line-height: 1; margin-bottom: 6px; }
.factband span { color: var(--page-muted); font-size: .95rem; }

/* Preis / Modell */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--page-card); border: 1px solid var(--page-line); border-radius: var(--radius); padding: 28px; }
.plan h3 { margin-bottom: 4px; }
.plan .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 10px 0 16px; }
.plan .price small { font-size: .95rem; font-weight: 500; color: var(--page-muted); font-family: var(--font-body); }
.plan ul li { padding: 7px 0; border-top: 1px solid var(--page-line); color: var(--page-muted); }
.plan ul li:first-child { border-top: 0; }
.plan.full { border-color: var(--page-accent); }
@media (max-width: 720px) { .pricing { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--page-line); padding: 6px 0; }
.faq details:last-child { border-bottom: 1px solid var(--page-line); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 500; color: var(--page-muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--page-muted); padding-bottom: 12px; }

.notice { border-left: 3px solid var(--page-accent); padding: 12px 18px; background: var(--page-card); border-radius: 0 10px 10px 0; color: var(--page-muted); font-size: .97rem; max-width: 70ch; }

/* ---------- KNX-spezifisch ---------- */
.knx-hero-art { position: relative; display: grid; place-items: center; min-height: 520px; }
.knx-hero-art .phone { position: relative; z-index: 2; max-width: 300px; }
.knx-hero-art .phone.back { position: absolute; z-index: 1; max-width: 240px; left: 0; top: 60px; rotate: -8deg; opacity: .9; }
.knx-hero-art .phone.front { margin-left: 26%; }
.knx-hero-art .glow { position: absolute; inset: 10% 0; background: radial-gradient(50% 50% at 50% 50%, rgba(94,234,212,.22), transparent 70%); }
@media (max-width: 820px) { .knx-hero-art { min-height: 0; } .knx-hero-art .phone.back { display: none; } .knx-hero-art .phone.front { margin: 0; } }

.bus-diagram { background: var(--page-card); border: 1px solid var(--page-line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.bus-diagram svg { width: 100%; height: auto; }
.bus-diagram p { color: var(--page-muted); }
.bus-diagram h3 { margin-bottom: 8px; }
@media (max-width: 820px) { .bus-diagram { grid-template-columns: 1fr; } }

/* ---------- Talhof-spezifisch ---------- */
.theme-hof h1, .theme-hof .pixel-title { font-family: var(--font-pixel); font-weight: 600; letter-spacing: 0; }
.hof-hero-art { position: relative; }
.hof-hero-art .scene { image-rendering: pixelated; image-rendering: crisp-edges; width: 100%; border-radius: 22px; border: 5px solid var(--hof-outline); box-shadow: 0 30px 60px rgba(43,29,20,.28); }
.hof-hero-art .herd { position: absolute; left: -10px; bottom: -22px; display: flex; gap: 10px; align-items: flex-end; }
.hof-hero-art .herd img { width: clamp(44px, 6vw, 72px); image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(43,29,20,.18)); }
.hof-hero-art .herd img:nth-child(odd) { transform: scaleX(-1); }

.valley { display: grid; gap: 14px; }
.area { display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: start; padding: 24px; border-radius: 18px; border: 3px solid var(--hof-outline); box-shadow: 6px 6px 0 var(--hof-outline); }
.area .area-name { font-family: var(--font-pixel); font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1; }
.area .area-gate { font-size: .9rem; color: var(--page-muted); margin-top: 8px; }
.area .animals { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; }
.area .animals li { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.65); border: 2px solid var(--hof-outline); }
.area .animals img { width: 28px; height: 28px; image-rendering: pixelated; }
.area .animals .rare::after { content: "selten"; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: var(--hof-gold); border: 1.5px solid var(--hof-outline); margin-left: 2px; }
.area .animals .vrare::after { content: "sehr selten"; }
.area p { color: var(--page-muted); margin: 0; }
.area-wiese { background: #a9d48f; }
.area-wald { background: #8fbf7a; }
.area-see { background: #a7d3e8; }
.area-hoehle { background: #c9bfb4; }
.area-gipfel { background: #f2f6fa; }
@media (max-width: 720px) { .area { grid-template-columns: 1fr; } }

.crops { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.crop { background: var(--page-card); border: 2px solid var(--hof-outline); border-radius: 12px; padding: 14px; box-shadow: 4px 4px 0 var(--hof-outline); }
.crop strong { font-family: var(--font-pixel); font-size: 1.2rem; display: block; }
.crop span { display: block; font-size: .9rem; color: var(--page-muted); }

.pixel-band { background: var(--hof-grass); border-block: 4px solid var(--hof-outline); padding: 22px 0; overflow: hidden; }
.pixel-band .wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.pixel-band .herd { display: flex; gap: 14px; flex-wrap: wrap; }
.pixel-band .herd img { width: 44px; image-rendering: pixelated; }
.pixel-band p { margin: 0; color: var(--hof-outline); font-weight: 600; }

/* ---------- Rechtstexte ---------- */
.legal { padding: clamp(40px, 6vw, 80px) 0; }
.legal .wrap { max-width: 76ch; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal li { margin: .3em 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0 1.6em; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-weight: 600; }
.legal .meta { font-size: .9rem; color: var(--ink-soft); }
.todo { background: #fff3cd; color: #5c4400; border: 1px dashed #d8a800; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.todo-box { background: #fff8e1; border: 1px dashed #d8a800; border-radius: 10px; padding: 14px 18px; margin: 0 0 28px; color: #5c4400; font-size: .95rem; }
.todo-box strong { display: block; margin-bottom: 4px; }
.legal address { font-style: normal; color: var(--ink); line-height: 1.5; margin-bottom: 1em; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.legal-nav a { text-decoration: none; font-size: .92rem; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.site-nav a small { font-size: .7rem; font-weight: 600; margin-left: 4px; padding: 2px 6px; border-radius: 999px; background: var(--paper-2); color: var(--ink-soft); vertical-align: middle; }
.theme-hof .site-nav a small { background: #f1e7d0; }
.theme-knx .site-nav a small { background: #1a2b28; color: var(--page-muted); }
.launch-note { background: var(--hof-gold); color: var(--hof-outline); border-bottom: 3px solid var(--hof-outline); padding: 12px 0; font-weight: 600; text-align: center; }
.launch-note .wrap { max-width: none; }

/* Mobil: Navigation darf umbrechen statt die Seite zu verbreitern */
.site-nav { flex-wrap: wrap; justify-content: flex-end; }
.site-header .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 6px; }
.knx-hero { overflow-x: clip; }
@media (max-width: 480px) { .site-nav a { font-size: .85rem; padding: 6px 7px; } }
