/* RecorderGo – Infoseiten (Anleitung, Beispiele) – ohne Bibliotheken, hell/dunkel automatisch */
:root {
  color-scheme: dark light;
  --bg: #16161c; --panel: #1e1f27; --panel2: #272935; --line: #343748; --text: #e9eaf0; --muted: #a3a8bd;
  --accent: #4a94ff; --accentbg: rgba(74,148,255,.12); --warn: #f5b041; --ok: #3fd17f; --shadow: 0 10px 34px rgba(0,0,0,.45);
}
@media (prefers-color-scheme: light) {
  :root { --bg: #f4f5f8; --panel: #fff; --panel2: #eef0f5; --line: #dcdfe8; --text: #1d2030; --muted: #5b6178;
    --accent: #0d6be0; --accentbg: rgba(13,107,224,.08); --warn: #a8650a; --ok: #1a8a4a; --shadow: 0 10px 30px rgba(20,30,60,.14); }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1120px; margin: 0 auto; padding: 10px 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.1em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { padding: 6px 11px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95em; }
.nav a:hover { background: var(--panel2); }
.nav a[aria-current=page] { color: var(--accent); background: var(--accentbg); }
.nav .lang { border: 1px solid var(--line); font-weight: 600; }
.btn { font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 9px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 600; border: 0; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--panel2); color: var(--text) !important; border: 1px solid var(--line); }

/* Inhalt */
main { max-width: 1120px; margin: 0 auto; padding: 26px 18px 60px; }
.hero { display: grid; gap: 26px; grid-template-columns: 1.1fr 1fr; align-items: center; padding: 18px 0 30px; }
.hero h1 { font-size: clamp(1.8em, 4vw, 2.6em); line-height: 1.15; margin: 0 0 12px; }
.hero p.lead { font-size: 1.15em; color: var(--muted); margin: 0 0 18px; }
.hero .shot { border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }

.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 34px; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 76px; align-self: start; max-height: calc(100vh - 96px); overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: .93em; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 3px 0; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 900px) { .toc { position: static; max-height: none; } }

h2 { font-size: 1.55em; margin: 44px 0 10px; padding-top: 6px; border-top: 1px solid var(--line); }
h2:first-child { margin-top: 0; border-top: 0; }
h3 { font-size: 1.15em; margin: 24px 0 6px; }
p, li { max-width: 76ch; }
ul, ol { padding-left: 22px; }
li { margin: 4px 0; }
kbd { font: .85em/1 ui-monospace, Consolas, monospace; padding: 3px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; background: var(--panel2); white-space: nowrap; }
code { font: .9em ui-monospace, Consolas, monospace; background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
figure { margin: 18px 0; }
figure img { border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); display: block; }
figcaption { color: var(--muted); font-size: .9em; margin-top: 8px; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 22px; align-items: start; }
@media (max-width: 700px) { .pair { grid-template-columns: 1fr; } .pair figure { max-width: 300px; } }
.tip, .note { border-left: 4px solid var(--accent); background: var(--accentbg); padding: 10px 14px; border-radius: 0 10px 10px 0; margin: 14px 0; max-width: 76ch; }
.note { border-left-color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); }
table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 12px 0; font-size: .95em; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; background: var(--panel); max-width: 80ch; }
details summary { cursor: pointer; font-weight: 600; }
details[open] summary { margin-bottom: 6px; }

/* Beispiele */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 18px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.card .ic { font-size: 1.4em; }
.card ol { padding-left: 20px; }
.card p.who { color: var(--muted); margin-top: -2px; }
.case { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 26px; align-items: center; margin: 30px 0; }
.case:nth-of-type(even) figure { order: -1; }
@media (max-width: 820px) { .case { grid-template-columns: 1fr; } .case:nth-of-type(even) figure { order: 0; } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .92em; }
footer .in { max-width: 1120px; margin: 0 auto; padding: 22px 18px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); margin-right: 14px; }
@media print { .top, .toc, footer, .cta { display: none; } body { background: #fff; color: #000; } }

/* Sprachwahl (skaliert für weitere Sprachen) */
.langmenu { position: relative; border: 0; padding: 0; margin: 0; background: none; max-width: none; }
.langmenu summary { list-style: none; cursor: pointer; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line); font-weight: 600; font-size: .95em; display: flex; align-items: center; gap: 6px; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: '▾'; font-size: .8em; color: var(--muted); }
.langmenu[open] summary { background: var(--panel2); margin: 0; }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; min-width: 170px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); z-index: 20; }
.langmenu li { margin: 0; }
.langmenu li a { display: block; padding: 7px 10px; border-radius: 7px; color: var(--text); text-decoration: none; }
.langmenu li a:hover { background: var(--panel2); }
.langmenu li a[aria-current] { color: var(--accent); font-weight: 600; }
.langhint { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 8px 14px; background: var(--accentbg); border-bottom: 1px solid var(--line); font-size: .95em; }
.langhint a { font-weight: 600; }
.langhint button { border: 0; background: none; color: var(--muted); font-size: 1.3em; cursor: pointer; line-height: 1; padding: 0 4px; }

/* Startseite */
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 20px 0; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05em; display: flex; gap: 8px; align-items: center; }
.feature p { margin: 0; color: var(--muted); font-size: .95em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.badges li { margin: 0; padding: 4px 10px; border-radius: 99px; background: var(--panel2); border: 1px solid var(--line); font-size: .88em; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 16px 0; }
.project { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.project h3 { margin: 0 0 6px; font-size: 1.05em; }
.project p { margin: 0; color: var(--muted); font-size: .95em; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }

/* Sprachmenü schließen, wenn außerhalb geklickt wird, erledigt site.js */
.langmenu li a[lang] { font-size: .95em; }

/* Rechtliches, Kontakt */
.legal { max-width: 860px; }
.legal h2 { margin-top: 1.6em; }
.legal .lead { font-size: 1.1em; color: var(--muted); }
.addr img { background: #fff; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); box-shadow: none; max-width: 100%; height: auto; margin: 2px 0; }
.muted { color: var(--muted); }
.small { font-size: .9em; }
.cform { display: grid; gap: 14px; max-width: 620px; margin: 18px 0 10px; }
.cform label { display: grid; gap: 5px; font-weight: 600; }
.cform input, .cform textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.cform input:focus, .cform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform p { margin: 0; }
.cstatus { margin-left: 10px; font-weight: 600; }
.cstatus.ok { color: var(--ok); }
.cstatus.err { color: var(--warn); }
.center { text-align: center; padding: 40px 0; }
.center .big { font-size: 4em; margin: 0; line-height: 1; }
.legal .toc { position: static; max-height: none; margin: 16px 0 8px; display: inline-block; padding-right: 26px; }
