/*
 * Impressum, Datenschutz und Nutzungsbedingungen im Stream-Deck-Look.
 * Wird NACH legal.css geladen und legt nur den Look darüber. Texte und Aufbau bleiben unverändert.
 */
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/landing-deck/familjen-grotesk-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/landing-deck/jetbrains-mono-latin-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --lav: #c9b0ff; --lcd: #09070d; --plate: #0e0b14; --case-hi: #201b2b; --accent-lo: #5b1fb8; --green: #6fdcaa;
  --deck: linear-gradient(180deg, #1c1726, #100d16);
  --deck-shadow: 0 1px 0 #3a3150 inset, 0 0 0 1px #2a2338, 0 30px 50px -18px rgba(0,0,0,.45), 0 10px 0 #06050a;
}
html body { background-color: var(--bg); background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.2px); background-size: 6px 6px; }

/* Kopfzeile */
html body .lg-nav { padding-block: 18px; }
html body .lg-logo { font-size: 17px; font-weight: 600; }
html body .lg-logo i { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(160deg, #a66bff, #5a28c4); box-shadow: 0 3px 0 #000, inset 0 0 0 1px rgba(255,255,255,.18); font-weight: 700; }
html body .lg-nav nav { gap: 8px; font-size: 14px; }
html body .lg-nav nav a { padding: 8px 13px; border-radius: 10px; background: var(--case-hi); color: var(--muted); font-weight: 600; box-shadow: 0 4px 0 var(--line); transition: transform .06s, box-shadow .06s, color .15s; }
html body .lg-nav nav a:hover { color: var(--text); }
html body .lg-nav nav a:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
html body .lg-nav nav a[aria-current="page"] { color: #fff; background: linear-gradient(160deg, #a66bff, #5a28c4); box-shadow: 0 4px 0 #000, inset 0 0 0 1px rgba(255,255,255,.18); }

/* Inhaltsverzeichnis als Tastenfeld */
html body .lg-body { gap: 32px; padding-block: 44px 72px; }
html body .lg-toc { top: 20px; gap: 6px; padding: 16px 12px 14px; border-radius: 20px; background: var(--deck); box-shadow: var(--deck-shadow); }
html body .lg-toc b { margin: 0 4px 8px; font: 500 11px var(--mono); letter-spacing: .14em; color: var(--muted); }
html body .lg-toc a { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 0; border-radius: 10px; background: #0a080e; color: var(--muted); font-size: 13.5px; box-shadow: 0 3px 0 #000, inset 0 0 0 1px #2a2338; transition: transform .06s, box-shadow .06s, color .15s; }
html body .lg-toc a::before { content: ""; flex: 0 0 7px; height: 7px; border-radius: 50%; background: #3a3348; transition: background .15s, box-shadow .15s; }
html body .lg-toc a:hover { color: var(--text); background: #14101b; }
html body .lg-toc a:hover::before { background: var(--lav); box-shadow: 0 0 8px var(--lav); }
html body .lg-toc a:active { transform: translateY(2px); box-shadow: 0 1px 0 #000, inset 0 0 0 1px #2a2338; }

html body .lg-toc { max-height: calc(100vh - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #3a3150 transparent; }
html body .lg-toc a { flex: 0 0 auto; }
html body .lg-toc a.is-on { color: #fff; background: #1d1828; box-shadow: 0 3px 0 #000, inset 0 0 0 1px var(--accent), 0 0 18px -6px rgba(145,70,255,.7); }
html body .lg-toc a.is-on::before { background: var(--lav); box-shadow: 0 0 6px var(--lav), 0 0 14px var(--accent); }
/* Impressum ohne Inhaltsverzeichnis: Platte mittig */
html body .lg-body:has(> div:empty:first-child) { grid-template-columns: minmax(0, 860px); justify-content: center; }
html body .lg-body > div:empty:first-child { display: none; }

/* Text auf einer Pult-Platte */
html body .lg-text { max-width: none; padding: 34px clamp(20px, 4vw, 44px) 40px; border-radius: 24px; background: var(--deck); box-shadow: var(--deck-shadow); }
html body .lg-text > * { max-width: 46em; }
html body .lg-text h1::before { content: "modcenter.app"; display: block; width: max-content; margin-bottom: 18px; padding: 4px 9px; border-radius: 2px; background: var(--accent); color: #fff; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; transform: rotate(-1.5deg); box-shadow: 0 2px 0 var(--accent-lo); }
html body .lg-text h1 { font-weight: 700; letter-spacing: -.035em; }
html body .lg-text h2 { position: relative; margin-top: 40px; padding: 22px 0 0 20px; border-top: 1px dashed var(--line); font-size: 22px; scroll-margin-top: 20px; }
html body .lg-text h2::before { content: ""; position: absolute; left: 0; top: calc(22px + .45em); width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
html body .lg-text h2:target::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
html body .lg-text h3 { font-size: 16.5px; }
html body .lg-text a { text-underline-offset: 3px; }

/* Anschrift und Hinweise als Display */
html body .lg-address { padding: 18px 20px; border: 0; border-radius: 14px; background: var(--lcd); color: #ddd3f2; font: 500 14px/1.75 var(--mono); box-shadow: inset 0 0 0 1px var(--line), inset 0 2px 10px rgba(0,0,0,.8); }
html body .lg-note { border: 0; border-radius: 12px; background: var(--lcd); font-family: var(--mono); font-size: 13.5px; box-shadow: inset 3px 0 0 var(--lav), inset 0 0 0 1px var(--line), inset 0 2px 10px rgba(0,0,0,.8); }
html body .lg-lead em { color: var(--amber); font-family: var(--mono); font-size: 14px; font-style: normal; }

/* Tabellen */
html body .lg-table { border: 0; border-radius: 14px; background: var(--plate); box-shadow: inset 0 0 0 1px #221c2e; }
html body .lg-table th { background: #0a080e; font: 500 11px var(--mono); letter-spacing: .12em; }
html body .lg-table th, html body .lg-table td { border-bottom-color: #221c2e; }
html body .lg-table td:last-child { font-family: var(--mono); font-size: 13.5px; }

/* Fußzeile */
html body .lg-foot { font: 500 12px var(--mono); }
html body .lg-foot a { color: var(--muted); }
html body .lg-foot a:hover { color: var(--text); }

@media (max-width: 860px) {
  html body .lg-body { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 28px 56px; }
  html body .lg-toc { max-height: none; overflow: visible; }
  html body .lg-toc { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); }
  html body .lg-toc b { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  html body .lg-text { padding: 26px 18px 30px; border-radius: 20px; }
  html body .lg-nav nav a { padding: 7px 10px; font-size: 13px; }
  html body .lg-text h2 { font-size: 20px; }
  html body .lg-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 14px 10px 12px; }
  html body .lg-toc a { gap: 7px; padding: 7px 8px; font-size: 12px; line-height: 1.3; }
}
