:root {
  --bg: #FFFDF8; --bg2: #F6F1E6; --ink: #111; --mute: #4A4A4A; --line: #D9D4C7; --card: #fff; --akzent: #1F5FA8;
  --blau: #8EC5F0; --gelb: #FFD84D; --orange: #FFB070; --violett: #C9A8E8; --rosa: #F7A8C8;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #17171A; --bg2: #202024; --ink: #F4F1EA; --mute: #C2BFB8; --line: #3A3A40; --card: #232327; --akzent: #8EC5F0; }
}
:root[data-theme="dark"] { --bg: #17171A; --bg2: #202024; --ink: #F4F1EA; --mute: #C2BFB8; --line: #3A3A40; --card: #232327; --akzent: #8EC5F0; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
       font-size: 19px; line-height: 1.55; }
img, svg, iframe { max-width: 100%; }
a { color: var(--akzent); }
:focus-visible { outline: 4px solid var(--akzent); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.5px; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 6px; }
p { margin: 0 0 14px; }
section { padding: 64px 0; }
section.alt { background: var(--bg2); }
.lead { font-size: 22px; max-width: 40em; }
.mute { color: var(--mute); }

.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 2px solid var(--line); }
.bar { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; }
.brand svg { width: 34px; height: 34px; }
.top nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.top nav a:hover { text-decoration: underline; }
.top nav a.btn { color: var(--bg); }
.top nav a.btn.ghost { color: var(--ink); }
@media (max-width: 760px) { .top nav a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 12px 22px;
       border-radius: 14px; border: 3px solid var(--ink); background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none; font-size: 19px; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.small { min-height: 44px; padding: 6px 14px; font-size: 16px; border-width: 2px; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.hero { padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-formen { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 360px; justify-self: center; }
.hero-formen img { width: 100%; height: auto; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } .hero-formen { max-width: 260px; } }

.kasten { border: 3px solid var(--ink); border-radius: 16px; padding: 18px 20px; background: var(--card); }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .zwei { grid-template-columns: 1fr; } }

.schritte { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; counter-reset: s; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; background: var(--card);
               border: 2px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.schritte li::before { content: counter(s); width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg);
                       display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; }

.phasen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
@media (max-width: 900px) { .phasen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .phasen { grid-template-columns: 1fr; } }
.phase { background: #fff; color: #111; border: 6px solid var(--rand); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.phase .pk { background: var(--hell); border-bottom: 2px solid var(--rand); padding: 8px 14px; font-weight: 800; font-size: 21px; }
.phase img { width: 96px; height: 96px; margin: 14px auto 4px; display: block; }
.phase p { padding: 0 16px; margin: 0 0 6px; }
.phase .bsp { font-weight: 650; font-size: 20px; line-height: 1.3; margin-top: auto; padding-bottom: 14px; }
.phase .fokus { color: #4A4A4A; font-size: 16px; }

.wuerfel-reihe { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0; }
.w { width: 130px; height: 130px; border-radius: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center;
     font-weight: 800; text-align: center; }
.w.rot { background: #F2A0A0; border: 5px solid #B22222; color: #111; font-size: 40px; }
.w.schwarz { background: #111; border: 5px solid #111; color: #fff; font-size: 22px; }
.w small { font-size: 14px; font-weight: 600; }

.test-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .test-grid { grid-template-columns: 1fr; } }
.tablet { border: 12px solid #111; border-radius: 30px; background: #111; overflow: hidden; aspect-ratio: 3 / 4.6; width: 100%; max-width: 380px; justify-self: center; }
.tablet iframe { width: 100%; height: 100%; border: 0; display: block; background: #FFFDF8; }

.downloads { display: grid; gap: 14px; margin: 18px 0; }
.dl { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--card); border: 2px solid var(--line);
      border-radius: 14px; padding: 14px 16px; color: var(--ink); text-decoration: none; }
.dl:hover { border-color: var(--ink); }
.dl .ico { width: 52px; height: 52px; border-radius: 10px; background: var(--ink); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.dl b { display: block; font-size: 20px; }
.dl span.mute { font-size: 16px; }
.dl .pfeil { font-weight: 700; white-space: nowrap; }
@media (max-width: 520px) { .dl { grid-template-columns: 48px 1fr; } .dl .pfeil { grid-column: 2; } }

details { border-bottom: 2px solid var(--line); padding: 14px 0; }
summary { font-weight: 700; font-size: 20px; cursor: pointer; }
details p { margin: 10px 0 0; }

.foot { border-top: 2px solid var(--line); padding: 28px 0 40px; }
.foot-grid { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--ink); }
.legal { padding: 40px 0 60px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 24px; margin-top: 28px; }
