/* Landing page and legal pages: same paper look as the app (squared paper, red margin, blue ink, red pen). */
:root {
  color-scheme: light;
  --paper: #FCFCFD; --grid: #E7ECF2; --surface: #FFFFFF; --ink: #1C2433; --ink-2: #3B4658; --muted: #5B6676;
  --line: #C9D2DE; --line-soft: #E1E6ED; --blue: #1F3A93; --blue-hover: #172D74; --red: #D7261E; --margin: #EE9A95; --kline: #E2574C;
  --c-m1: #2F5BD8; --c-m2: #0B7F6E; --c-de: #C2510F; --c-fr: #7048C2;
  --f-ui: 'Archivo', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --f-read: 'Literata', Georgia, serif;
  --f-pen: 'Caveat', 'Segoe Print', cursive;
  --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 30'%3E%3Cpath d='M3 16l9 9L31 3' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
* { 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; color: var(--ink); font-family: var(--f-ui); font-size: 17px; line-height: 1.6;
  background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; background-position: -1px -1px; }
h1, h2, h3 { font-family: var(--f-read); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.pen { font-family: var(--f-pen); color: var(--red); font-weight: 700; line-height: 1; }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }

/* header */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-in { max-width: 1180px; margin: 0 auto; height: 62px; display: flex; align-items: center; gap: 36px; padding: 0 28px; }
.brand { font-family: var(--f-read); font-size: 23px; font-weight: 700; letter-spacing: -0.015em; color: var(--ink); text-decoration: none; }
.top nav { display: flex; gap: 26px; font-size: 15.5px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); text-decoration: underline; }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .top nav { display: none; } .top-in { padding: 0 16px; gap: 16px; } .top .right .btn.ghost { display: none; } }

/* page with margin line */
.sheetpage { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 28px 0 100px; }
.sheetpage::before, .sheetpage::after { content: ""; position: absolute; top: 0; bottom: 0; width: 2px; left: 62px; background: var(--margin); }
.sheetpage::after { width: 1px; left: 66px; }
@media (max-width: 860px) { .sheetpage { padding: 0 16px 0 32px; } .sheetpage::before { left: 14px; } .sheetpage::after { left: 18px; } }
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block:first-of-type { border-top: 0; }
.kicker-free h2 { font-size: 38px; max-width: 22ch; }
@media (max-width: 860px) { section.block { padding: 48px 0; } .kicker-free h2 { font-size: 30px; } }
.lead { font-size: 19px; color: var(--ink-2); max-width: 60ch; margin-top: 14px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 3px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: 15.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.lg { min-height: 54px; padding: 0 28px; font-size: 17px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 64px 0 80px; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 40px 0 56px; } }
.hero h1 { font-size: 58px; line-height: 1.02; letter-spacing: -0.03em; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.hero > * { min-width: 0; }
@media (max-width: 860px) { .hero h1 { font-size: 38px; } .demo { padding: 22px 18px 20px; } .demo .row { grid-template-columns: 26px auto; } .demo .row > span:last-child { grid-column: 2; } }
.hero .lead { font-size: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 30px; }
.hero .fine { margin-top: 14px; font-size: 14.5px; color: var(--muted); }

/* corrected sheet in the hero */
.demo { background: var(--surface); border: 1px solid var(--line); box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line); padding: 26px 30px 24px; position: relative; }
.demo .tab { position: absolute; top: -27px; left: 28px; height: 27px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 6px 6px 0 0; background: var(--c-m1); color: #fff; font-size: 13.5px; font-weight: 700; }
.demo h3 { font-size: 22px; }
.demo .q { font-family: var(--f-read); font-size: 17px; margin: 6px 0 16px; color: var(--ink-2); }
.demo .row { display: grid; grid-template-columns: 30px auto 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); font-family: var(--f-read); font-size: 21px; }
.demo .row b { font-size: 17px; }
.fr { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; line-height: 1.1; margin: 0 2px; font-size: .9em; }
.fr > span { padding: 0 3px; } .fr > span:first-child { border-bottom: 1.5px solid currentColor; }
.ans { display: inline-flex; align-items: center; min-width: 70px; height: 50px; padding: 0 12px; border: 1.5px solid var(--line); color: var(--blue); font-family: var(--f-ui); font-weight: 600; font-size: 18px; background: var(--surface); }
.ans.wrong { text-decoration: underline wavy var(--red); text-underline-offset: 6px; }
.mark { font-family: var(--f-pen); color: var(--red); font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.mark svg { width: 26px; height: 22px; } .mark path { fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.demo .total { display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.circ { position: relative; display: inline-block; padding: 2px 12px; }
.circ svg { position: absolute; left: -8px; top: -8px; width: calc(100% + 16px); height: calc(100% + 16px); overflow: visible; }
.circ svg path { fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.demo .total .pen { font-size: 38px; }

/* two-column text blocks */
.split2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 34px; }
@media (max-width: 960px) { .split2 { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.gs { background: var(--surface); border: 1.5px solid var(--ink); padding: 22px 26px; }
.gs table { width: 100%; border-collapse: collapse; font-size: 16px; }
.gs th, .gs td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); text-align: right; }
.gs th:first-child, .gs td:first-child { text-align: left; font-weight: 400; }
.gs thead th { border-bottom: 1.5px solid var(--ink); font-size: 14px; font-weight: 600; }
.gs .pen { font-size: 26px; }
.gs .sum { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 600; }
.gs .sum .pen { font-size: 40px; }

/* subject cards */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 16px; margin-top: 44px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; }
.card::before { content: ""; position: absolute; top: -12px; left: var(--tx, 16px); width: 52px; height: 12px; border-radius: 3px 3px 0 0; background: var(--tab); }
.card h3 { font-size: 21px; padding: 16px 18px 12px; border-bottom: 1.5px solid var(--kline); }
.card ul { margin: 0; padding: 14px 18px 18px 36px; font-size: 15.5px; color: var(--ink-2); display: flex; flex-direction: column; gap: 6px; }

/* box illustration */
.box { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 8px; max-width: 520px; }
.slot { position: relative; height: 170px; }
.slot .in { position: absolute; inset: 18px 0 0 0; background: #CDD3DB; border-radius: 4px 4px 8px 8px; }
.slot .cd { position: absolute; left: 5px; right: 5px; height: 90px; background: #fff; border: 1px solid var(--line); border-radius: 3px; }
.slot .cd i { position: absolute; top: -10px; width: 40%; height: 10px; border-radius: 3px 3px 0 0; }
.slot .fr0 { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: var(--ink); color: #fff; border-radius: 4px 4px 8px 8px; padding: 10px; font-size: 12.5px; display: flex; flex-direction: column; justify-content: space-between; }
.slot .fr0 b { font-family: var(--f-read); font-size: 15px; }

/* steps / price / faq */
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { padding-left: 32px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 19px; background: var(--red); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat; }
.price { background: var(--surface); border: 1.5px solid var(--ink); padding: 34px 38px; max-width: 620px; box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line); }
.price .amount { display: flex; align-items: baseline; gap: 14px; margin: 14px 0 6px; }
.price .amount .pen { font-size: 64px; }
.faq { margin-top: 26px; max-width: 760px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-family: var(--f-read); font-size: 19px; font-weight: 600; 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(--f-ui); color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); max-width: 66ch; }

/* sample task */
.try { background: var(--surface); border: 1px solid var(--line); padding: 24px 28px; max-width: 640px; margin-top: 26px; }
.try .inp { min-height: 48px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 2px; font: inherit; font-size: 19px; color: var(--blue); font-weight: 600; width: 140px; }
.try .fb { margin-top: 12px; font-size: 15.5px; color: var(--red); min-height: 24px; }
.try .fb.ok { color: var(--ink-2); }

/* footer */
.foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 30px 28px 40px 100px; display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 14.5px; color: var(--muted); }
.foot-in a { color: var(--ink-2); }
.foot-in p { flex-basis: 100%; max-width: 90ch; }
@media (max-width: 860px) { .foot-in { padding: 24px 16px 32px 32px; } }

/* legal pages */
.legal { max-width: 760px; padding: 52px 0 80px; }
.legal h1 { font-size: 40px; margin-bottom: 8px; }
.legal h2 { font-size: 23px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal .ph { background: #FFF3C4; padding: 0 4px; }
.legal .note { border-left: 4px solid var(--red); background: var(--surface); padding: 12px 16px; margin: 18px 0; font-size: 15px; }

/* 34-Punkte-Rechner */
.calc-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: start; padding: 64px 0 24px; }
@media (max-width: 960px) { .calc-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0 16px; } }
.calc-hero h1 { font-size: 52px; line-height: 1.04; letter-spacing: -0.03em; }
@media (max-width: 860px) { .calc-hero h1 { font-size: 38px; } }
.calc-hero .fine { margin-top: 16px; font-size: 14.5px; color: var(--muted); max-width: 58ch; }
.calc td { vertical-align: middle; }
.calc td label { cursor: pointer; }
.gin { width: 76px; height: 42px; border: 0; border-bottom: 1.5px solid var(--line); background: transparent; text-align: right; font-family: var(--f-pen); font-weight: 700; font-size: 30px; color: var(--red); padding: 0 4px; }
.gin::placeholder { color: var(--line); }
.gin:focus { outline: none; border-bottom-color: var(--blue); }
.exam-in { margin-top: 14px; }
.exam-in summary { cursor: pointer; font-size: 15px; color: var(--blue); }
.exam-in table { margin-top: 6px; }
.calc-out { margin-top: 16px; padding-top: 14px; border-top: 1.5px solid var(--ink); min-height: 92px; }
.calc-out .sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 15.5px; }
.calc-out .result { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.calc-out .result .pen { font-size: 46px; }
.calc-out .result p { font-size: 15.5px; color: var(--ink-2); }
.calc-out .warnline { color: var(--red); }
.h2s { font-size: 32px; }
@media (max-width: 860px) { .h2s { font-size: 26px; } }
.lead-form { margin-top: 0; display: flex; flex-direction: column; gap: 12px; }
.lead-form .lab { font-weight: 600; font-size: 15.5px; }
.lead-form .inp { width: 100%; font-size: 17px; color: var(--ink); font-weight: 400; }
.lead-form .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.lead-form .chk input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.lead-form .btn { align-self: flex-start; }
.lead-form .fb { margin-top: 0; }
.xs { font-size: 13.5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
