/* Raumaufteilung.com – website (landing page, legal pages). No framework, no web fonts, no JavaScript.
   Colours only as tokens on :root (light) and redefined for dark (same values as the app). */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --border: #dfe3e8;
  --text: #1a2330;
  --text-muted: #5a6576;
  --primary: #1f4e8c;
  --primary-hover: #183e70;
  --primary-soft: #e3ecf8;
  --on-primary: #ffffff;
  --accent: #c4925c;
  --todo-bg: #fff3c4;
  --todo-text: #6b4f00;
  --shadow: 0 10px 30px rgba(15, 20, 26, 0.12);
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141a; --bg-alt: #161c24; --surface: #161c24; --border: #2a333f;
    --text: #e6eaf0; --text-muted: #9aa5b4; --primary: #6b9be0; --primary-hover: #8ab0ea; --primary-soft: #1d2b40;
    --on-primary: #0f141a; --accent: #d9a46c; --todo-bg: #4a3a0c; --todo-text: #ffe08a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--text-muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none; }
.brand svg { width: 26px; height: 26px; stroke: var(--primary); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--text-muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--primary); color: var(--text); }
.btn--primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn--small { min-height: 40px; padding: 0 16px; }

/* hero */
.hero { padding: 64px 0 40px; background: linear-gradient(var(--bg), var(--bg-alt)); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; color: var(--text-muted); font-size: .95rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; stroke: var(--primary); flex: none; }
.shot { border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }

/* sections */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 46em; margin-bottom: 40px; }
.section-head p { color: var(--text-muted); font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--text-muted); margin: 0; font-size: .97rem; }
.icon { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-soft); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; stroke: var(--primary); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split--rev .split__media { order: -1; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; font-weight: 700; }
.steps strong { display: block; }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; color: var(--text-muted); font-size: .95rem; }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.three li { counter-increment: step; }
.three li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 14px; }

/* FAQ */
.faq { max-width: 50em; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 1.05rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); margin: 0 0 16px; }

/* closing call to action */
.final { text-align: center; padding: 80px 0; }
.final .cta { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 32px 0; font-size: .95rem; color: var(--text-muted); }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { color: var(--text-muted); }
.foot a:hover { color: var(--text); }

@media (max-width: 440px) { .brand__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .3em; }
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.stand { color: var(--text-muted); font-size: .95rem; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .split--rev .split__media { order: 0; }
  .grid, .three { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  .section { padding: 56px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top .wrap { gap: 12px; }
  .grid, .three { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .cta .btn { flex: 1 1 100%; }
  .foot nav { margin-left: 0; }
}

/* cookie consent (consent.js) – both choices equally prominent */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 16px; pointer-events: none; }
.consent__box { pointer-events: auto; max-width: 720px; margin: 0 auto; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; font-size: .95rem; }
.consent__box p { margin: 0 0 12px; color: var(--text-muted); }
.consent__box .consent__title { color: var(--text); font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent__actions .btn { cursor: pointer; font: inherit; font-weight: 600; min-width: 140px; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--text-muted); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--text); }
@media (max-width: 600px) { .consent { padding: 10px; } .consent__actions .btn { flex: 1 1 0; min-width: 0; } }
