/* openTMS — Landingpage (Richtung „Antwortbogen“). Tokens aus css/design.css. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.55; }
img { max-width: 100%; }
a { color: inherit; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--otms-ink); color: var(--otms-bg); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
h1 { font-size: clamp(3rem, 6.6vw, 5.4rem); line-height: .92; margin: 12px 0 20px; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: 8px 0 14px; }
h3 { font-size: 26px; line-height: 1.1; margin: 6px 0 8px; }
p { margin: 0 0 12px; }
.otms-btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: var(--otms-bg); border-bottom: 1px solid var(--otms-line); }
.nav-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--otms-pad); height: 68px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-word { font: 700 24px/1 var(--otms-f-display); letter-spacing: -.01em; color: var(--otms-ink); }
.brand-pulse { width: 86px; height: 18px; fill: none; stroke: var(--otms-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; margin-top: 2px; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.nav-links a:hover { border-bottom-color: var(--otms-line-strong); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav-login { text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.nav-login:hover { border-bottom-color: var(--otms-line-strong); }

/* Hero */
.hero-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--otms-pad); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: end; }
.hero-l { padding-block: 72px 32px; }
.hero h1 .x { position: relative; white-space: nowrap; color: var(--otms-ink-soft); }
.hero h1 .x::after { content: ""; position: absolute; left: -2%; right: -2%; top: 50%; height: .09em; background: var(--otms-accent); transform: rotate(-4deg); }
.lead { font-size: 19px; max-width: 34em; color: var(--otms-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-note { margin-top: 16px; font: 400 13px/1.5 var(--otms-f-mono); color: var(--otms-ink-soft); }
.hero-r { padding-bottom: 32px; }
.sheet { border: 1px solid var(--otms-line); background: var(--otms-surface); padding: 28px 22px 10px; }
.sheet-head { display: grid; grid-template-columns: 1fr auto; gap: 0; }
.sheet-head .otms-field { border-radius: 0; }
.sheet-head .otms-field + .otms-field { border-left: 0; }
.sheet-val { display: block; font-size: 15px; }
.sheet-hint { display: flex; justify-content: space-between; margin: 14px 0 8px; }
.sheet-canvas { display: block; width: 100%; height: 430px; }
.sheet-row { display: grid; grid-template-columns: 10px 22px repeat(5, 26px); align-items: center; gap: 5px; height: 27px; font: 500 11.5px/1 var(--otms-f-mono); color: var(--otms-ink-soft); }
.sheet-row::before { content: ""; width: 10px; height: 3px; background: var(--otms-mark); }
.sheet-row .otms-oval { width: 24px; height: 15px; font-size: 9px; }
.sheet-row:nth-child(odd) { background: var(--otms-tint); }

/* Fakten-Leiste */
.facts { border-block: 1px solid var(--otms-line); background: var(--otms-bg-2); }
.facts-in { max-width: 1200px; margin: 0 auto; padding: 0 var(--otms-pad); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.fact { padding: 18px 16px 20px; border-right: 1px solid var(--otms-line); display: grid; gap: 4px; }
.fact:last-child { border-right: 0; }
.fact b { font: 600 34px/1 var(--otms-f-display); }
.fact > span:last-child { font-size: 14px; color: var(--otms-ink-soft); }

/* Sektionen */
.sample, .pillars, .price, .cmp, .testtag, .nov, .faq { max-width: 1200px; margin: 0 auto; padding: 72px var(--otms-pad) 0; }
.sample { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.kv { margin: 20px 0 0; display: grid; gap: 0; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--otms-line); }
.kv > div:last-child { border-bottom: 1px solid var(--otms-line); }
.kv dt { color: var(--otms-ink-soft); } .kv dd { margin: 0; text-align: right; }

/* Aufgabe */
.task { border: 1px solid var(--otms-line); background: var(--otms-surface); padding: 28px 24px 24px; margin: 0; }
.task-stem { font-size: 18px; line-height: 1.55; margin-bottom: 20px; }
.opts { display: grid; }
.opt { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px; border-top: 1px solid var(--otms-line); cursor: pointer; }
.opt:last-child { border-bottom: 1px solid var(--otms-line); }
.opt:hover { background: var(--otms-tint); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt:has(input:focus-visible) { outline: 2px solid var(--otms-focus); outline-offset: -2px; }
.opt:has(input:checked) .otms-oval { background: var(--otms-pencil); border-color: var(--otms-pencil); color: transparent; }
.opt.is-correct { background: var(--otms-ok-tint); } .opt.is-correct .otms-oval { background: var(--otms-ok); border-color: var(--otms-ok); color: transparent; }
.opt.is-wrong { background: var(--otms-danger-tint); } .opt.is-wrong .otms-oval { background: var(--otms-danger); border-color: var(--otms-danger); color: transparent; }
.opt.is-wrong .opt-t { text-decoration: line-through; text-decoration-color: var(--otms-danger); text-decoration-thickness: 2px; }
.opt-tag { font: 600 11px/1 var(--otms-f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--otms-ink-soft); }
.opt.is-correct .opt-tag { color: var(--otms-ok-text); } .opt.is-wrong .opt-tag { color: var(--otms-danger-text); }
.task-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--otms-ink-soft); }
.expl { margin-top: 20px; border-top: 1px solid var(--otms-line-strong); padding-top: 16px; }
.expl-verdict { font: 700 24px/1.1 var(--otms-f-display); margin-bottom: 12px; }
.expl-verdict.is-ok { color: var(--otms-ok-text); } .expl-verdict.is-bad { color: var(--otms-danger-text); }
.expl-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 6px; }
.expl-why { font-size: 14px; }

/* Säulen */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.pillar h3 { margin-top: 10px; }
.pillar .otms-label { display: block; padding-bottom: 8px; border-bottom: 1px solid var(--otms-line-strong); }
.pillar p { color: var(--otms-ink-soft); margin: 0; }

/* Preis */
.price { display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--otms-line); background: var(--otms-surface); padding: 0; margin-top: 72px; }
.price-l, .price-r { padding: 40px 36px; }
.price-l { border-right: 1px solid var(--otms-line); }
.tarif { list-style: none; margin: 20px 0 0; padding: 0; display: grid; }
.tarif li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 6px; border-top: 1px solid var(--otms-line); }
.tarif li:last-child { border-bottom: 1px solid var(--otms-line); }
.tarif li.off { color: var(--otms-ink-soft); text-decoration: line-through; text-decoration-color: var(--otms-line-strong); }
.tarif .r { font: 600 12px/1 var(--otms-f-display); letter-spacing: .12em; text-transform: uppercase; }
.tarif li:not(.off) .r { color: var(--otms-ok-text); }
.price-big { display: grid; gap: 4px; margin-bottom: 8px; }
.price-big > span:first-child { font: 600 64px/1 var(--otms-f-display); font-family: var(--otms-f-display); }
.price-r .otms-btn { margin-top: 22px; width: 100%; }

/* Vergleich */
.cmp-table { border: 1px solid var(--otms-line); background: var(--otms-surface); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 160px 1fr 1fr; }
.cmp-head > div { padding: 12px 16px; font: 600 12px/1.2 var(--otms-f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--otms-ink-soft); border-bottom: 1px solid var(--otms-line-strong); }
.cmp-row > div { padding: 14px 16px; border-bottom: 1px solid var(--otms-line); }
.cmp-row:last-child > div { border-bottom: 0; }
.cmp-row > div + div { border-left: 1px solid var(--otms-line); }
.cmp-row > div:nth-child(2) { color: var(--otms-ink-soft); }
.cmp-row > div:nth-child(3) { background: var(--otms-tint); }
.cmp-k { font-weight: 600; }

/* Testtag */
.day { display: flex; height: 54px; margin: 20px 0 8px; border: 1px solid var(--otms-line-strong); }
.seg { flex: var(--m) 1 0; display: flex; align-items: flex-end; padding: 0 0 6px 6px; font: 600 12px/1 var(--otms-f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--otms-ink); border-right: 1px solid var(--otms-line-strong); overflow: hidden; white-space: nowrap; }
.seg:last-child { border-right: 0; }
.seg-pause { background: repeating-linear-gradient(-45deg, transparent 0 6px, var(--otms-line) 6px 7px); color: var(--otms-ink-soft); }
.seg-s { background: repeating-linear-gradient(90deg, var(--otms-line) 0 1px, transparent 1px 4px); padding: 0; }
.day-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.dl { list-style: none; margin: 8px 0 0; padding: 0; }
.dl li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-top: 1px solid var(--otms-line); }
.dl li:last-child { border-bottom: 1px solid var(--otms-line); }
.dl li > span:first-child { font: 600 14px/1.4 var(--otms-f-mono); color: var(--otms-ink-soft); }
.dl li > span:last-child { color: var(--otms-ink-soft); font-size: 14px; }

/* November */
.nov { background: var(--otms-ink); color: var(--otms-bg); padding: 40px var(--otms-pad); margin-top: 72px; border: 1px solid var(--otms-ink); }
.nov .otms-label { color: var(--otms-line); }
.nov-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.nov h2 { margin-top: 6px; }
.nov p { max-width: 60ch; margin: 0; }
.nov .otms-btn--primary { white-space: nowrap; }

/* FAQ */
.faq details { border-top: 1px solid var(--otms-line); }
.faq details:last-child { border-bottom: 1px solid var(--otms-line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 22px/1.2 var(--otms-f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--otms-f-mono); color: var(--otms-ink-soft); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 70ch; padding-bottom: 18px; color: var(--otms-ink); }

/* Footer */
.foot { margin-top: 72px; border-top: 1px solid var(--otms-line); background: var(--otms-bg-2); }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 32px var(--otms-pad) 40px; display: grid; grid-template-columns: 1fr auto auto; gap: 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot nav a { text-decoration: underline; text-decoration-color: var(--otms-line-strong); text-underline-offset: 4px; }

@media (max-width: 980px) {
    .nav-links { display: none; }
    .hero-in, .sample, .price, .nov-in, .day-lists { grid-template-columns: minmax(0, 1fr); }
    .hero-l { padding-block: 48px 0; }
    .price-l { border-right: 0; border-bottom: 1px solid var(--otms-line); }
    .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .facts-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fact { border-bottom: 1px solid var(--otms-line); } .fact:nth-child(2n) { border-right: 0; } .fact:last-child { grid-column: 1 / -1; border-bottom: 0; }
    .foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .nav-in { height: 60px; gap: 12px; } .nav-login { display: none; }
    .cta-row .otms-btn { width: 100%; }
    .pillars { grid-template-columns: 1fr; gap: 28px; }
    .sheet { padding: 22px 12px 8px; } .sheet-grid { grid-template-columns: 1fr; }
    .cmp-head, .cmp-row { grid-template-columns: 1fr 1fr; }
    .cmp-row > .cmp-k { grid-column: 1 / -1; padding-bottom: 0; border-bottom: 0; }
    .cmp-head > .cmp-k { display: none; }
    .cmp-row > div + div { border-left: 0; } .cmp-row > div:nth-child(3) { border-left: 1px solid var(--otms-line); }
    .day { height: 42px; } .seg { font-size: 10px; letter-spacing: .04em; padding-left: 3px; }
    .faq summary { font-size: 19px; }
    .task { padding: 20px 14px; }
    .opt { grid-template-columns: 34px minmax(0, 1fr); } .opt-tag { grid-column: 2; }
}
