/* ==========================================================
   Expressheft — „Schulheft bei Nacht"
   Karopapier · Textmarker · Handschrift · Tinte
   ========================================================== */
@import url('/fonts/fonts.css');

:root {
  /* Nacht (Schreibtisch) */
  --bg: #0b0f1c;
  --bg-2: #0e1424;
  --panel: #121828;
  --panel-2: #161d31;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2efe6;
  --muted: #98a1b6;

  /* Heft (Papier) */
  --paper: #faf6ec;
  --paper-2: #f3eddd;
  --paper-grid: rgba(96, 130, 175, 0.16);
  --paper-margin: #e8635a;
  --ink: #1d2536;
  --ink-soft: #4a5468;

  /* Marker */
  --marker: #ffe44d;
  --marker-deep: #f5cf00;
  --lime: #b4fc46;
  --blue: #5aa2ff;
  --red: #ff6b6b;

  --radius: 16px;
  --radius-sm: 10px;
  /* handgezeichneter Rahmen */
  --sketch: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --font-head: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;
  --font-hand: 'Caveat', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background:
    linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px),
    radial-gradient(1000px 500px at 80% -5%, rgba(255, 228, 77, 0.05), transparent 60%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em;
  overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto;
}
p, li, summary { overflow-wrap: break-word; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
::selection { background: var(--marker); color: #14161c; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hand { font-family: var(--font-hand); font-weight: 700; letter-spacing: 0; }
.ic {
  width: 1.1em; height: 1.1em; stroke: currentColor; fill: none;
  stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -0.18em; display: inline-block; flex-shrink: 0;
}
.founder-strip {
  max-width: 460px; margin: 0 auto 34px; text-align: center;
  background: var(--panel); border: 2px dashed rgba(255,228,77,.5);
  border-radius: 12px; padding: 14px 18px;
}
.founder-strip .cnt { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--marker); }
.founder-strip .track { height: 9px; background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: 99px; margin-top: 9px; overflow: hidden; }
.founder-strip .fill { height: 100%; width: 0%; background: repeating-linear-gradient(-45deg, var(--marker) 0 8px, var(--marker-deep) 8px 16px); border-radius: 99px; transition: width .6s; }
.price-card .price .old-p { font-size: 17px; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2.5px; font-weight: 400; margin-right: 10px; }

/* Textmarker-Effekt */
.hl {
  background: linear-gradient(100deg, transparent 0%, var(--marker) 4%, var(--marker) 96%, transparent 100%);
  color: #171204; padding: 1px 10px 2px; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline-block; transform: rotate(-0.7deg);
}
.hl-lime {
  background: linear-gradient(100deg, transparent 0%, var(--lime) 4%, var(--lime) 96%, transparent 100%);
  color: #101a04; padding: 1px 10px 2px; border-radius: 4px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  display: inline-block; transform: rotate(0.5deg);
}
/* Wellen-Unterstreichung wie mit Stift */
.wavy { text-decoration: underline wavy var(--marker) 2.5px; text-underline-offset: 6px; }

/* ---------- Buttons (handgezeichnet) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  padding: 14px 26px; cursor: pointer; white-space: nowrap;
  border-radius: var(--sketch);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  max-width: 100%;
}
.btn:active { transform: scale(.97) rotate(-0.5deg); }
.btn-marker {
  background: var(--marker); color: #171204; border-color: #171204;
  box-shadow: 3px 3px 0 #000;
}
.btn-marker:hover { transform: translate(-1px, -2px) rotate(-0.6deg); box-shadow: 5px 6px 0 #000, 0 0 34px rgba(255, 228, 77, .25); }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--marker); color: var(--marker); transform: rotate(0.4deg); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 28, 0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 10px; }
.logo { font-family: var(--font-head); font-weight: 700; font-size: 19px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo .dot { color: var(--marker); }
.logo-mark {
  width: 32px; height: 32px; flex-shrink: 0;
  background: var(--marker); border: 2px solid #171204;
  border-radius: 8px 3px 9px 4px / 4px 9px 3px 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #171204; font-size: 17px; font-weight: 800;
  transform: rotate(-4deg); box-shadow: 2px 2px 0 #000;
}
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 15px; color: var(--muted); min-width: 0; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links .hide-m { display: none; } .nav-links { gap: 10px; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 76px 0 64px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero h1 { font-size: clamp(32px, 6vw, 58px); font-weight: 700; max-width: 14ch; }
@media (max-width: 920px) { .hero h1 { max-width: none; } }
.hero p.sub { color: var(--muted); font-size: clamp(16px, 2.2vw, 18.5px); margin: 22px 0 30px; max-width: 520px; }
.hero p.sub b { color: var(--text); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.hero-note b { color: var(--marker); font-weight: 600; }
.hero-scribble { font-family: var(--font-hand); font-size: clamp(18px, 2.6vw, 24px); color: var(--marker); margin-bottom: 10px; transform: rotate(-1.2deg); display: inline-block; }

/* Sticker */
.badge-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.sticker {
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; color: var(--ink);
  background: var(--paper); padding: 6px 14px;
  border-radius: 4px 12px 5px 11px / 11px 5px 12px 4px;
  box-shadow: 2px 2px 0 rgba(0,0,0,.55);
  position: relative; transform: rotate(-1.5deg);
}
.sticker:nth-child(2) { transform: rotate(1.2deg); }
.sticker:nth-child(3) { transform: rotate(-0.8deg); }
.sticker::before {
  content: ''; position: absolute; top: -7px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 42px; height: 13px; background: rgba(255, 244, 179, 0.5);
  border-left: 1px dashed rgba(0,0,0,.12); border-right: 1px dashed rgba(0,0,0,.12);
}
.sticker.gelb { background: var(--marker); }

/* ---------- Heft-Seite (Papier-Mockup) ---------- */
.heft {
  background:
    linear-gradient(rgba(96,130,175,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,130,175,0.16) 1px, transparent 1px),
    linear-gradient(90deg, transparent 44px, var(--paper-margin) 44px, var(--paper-margin) 46px, transparent 46px),
    var(--paper);
  background-size: 24px 24px, 24px 24px, auto, auto;
  color: var(--ink);
  border-radius: 6px 14px 8px 12px / 12px 6px 14px 8px;
  box-shadow: 8px 10px 0 rgba(0,0,0,.45), 0 30px 60px rgba(0,0,0,.4);
  transform: rotate(0.6deg);
  padding: 26px 24px 26px 60px;
  position: relative;
  min-width: 0;
}
.heft::after { /* Klebestreifen oben */
  content: ''; position: absolute; top: -12px; right: 34px; width: 86px; height: 24px;
  background: rgba(255, 244, 179, 0.55); transform: rotate(3deg);
  border-left: 1px dashed rgba(0,0,0,.1); border-right: 1px dashed rgba(0,0,0,.1);
}
.heft-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; flex-wrap: wrap;
}
.heft-head .t { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; }
.heft-head .kw { font-family: var(--font-hand); font-size: 19px; color: var(--paper-margin); }
.heft-day { margin-bottom: 13px; }
.heft-day h5 { font-family: var(--font-head); font-size: 13px; color: var(--ink); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.heft-day .tag { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; letter-spacing: .04em; }
.tag-b { background: rgba(38, 132, 76, .14); color: #26844c; }
.tag-s { background: rgba(43, 108, 214, .13); color: #2b6cd6; }
.heft-day li { list-style: none; padding-left: 15px; position: relative; font-size: 13px; color: var(--ink-soft); margin: 2px 0; line-height: 1.5; }
.heft-day li::before { content: '–'; position: absolute; left: 2px; color: var(--paper-margin); }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--ink); vertical-align: -2px; animation: blink .85s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.heft-check {
  display: none; margin-top: 10px; font-family: var(--font-hand); font-size: 19px;
  color: #26844c; transform: rotate(-1deg);
}

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4.4vw, 40px); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 16.5px; }
.kicker {
  display: inline-block; font-family: var(--font-hand); font-size: clamp(19px, 2.6vw, 24px);
  color: var(--marker); margin-bottom: 10px; transform: rotate(-1deg);
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0,1fr); } }
.step {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px 5px 16px 6px / 6px 16px 5px 14px;
  padding: 28px; position: relative;
}
.step .num {
  font-family: var(--font-hand); font-size: 26px; font-weight: 700; color: #171204;
  background: var(--marker); width: 40px; height: 40px;
  border-radius: 50% 45% 52% 48% / 48% 52% 45% 50%;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
  transform: rotate(-3deg); border: 2px solid #171204; box-shadow: 2px 2px 0 #000;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
@media (max-width: 860px) { .features { grid-template-columns: minmax(0,1fr); } }
.feature {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px 16px 7px 14px / 14px 7px 16px 6px;
  padding: 26px; transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: rgba(255, 228, 77, 0.45); transform: translateY(-3px) rotate(-0.3deg); }
.feature .ico { font-size: 26px; margin-bottom: 14px; display: block; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; align-items: center;
  border: 2px dashed rgba(255, 228, 77, .45); background: linear-gradient(120deg, rgba(255,228,77,.06), rgba(90,162,255,.04)); }
@media (max-width: 860px) { .feature.wide { grid-template-columns: minmax(0,1fr); } }
.feature.wide h3 { font-size: 23px; }

/* Stil-Vergleich auf Papier */
.style-demo {
  background:
    linear-gradient(rgba(96,130,175,0.14) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 26px;
  color: var(--ink); border-radius: 5px 12px 6px 10px / 10px 6px 12px 5px;
  padding: 20px 20px 16px; font-size: 13.5px;
  box-shadow: 4px 5px 0 rgba(0,0,0,.4);
  transform: rotate(-0.6deg); line-height: 26px;
}
.style-demo .lbl { font-family: var(--font-hand); font-size: 17px; color: var(--paper-margin); }
.style-demo .a { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(232,99,90,.7); text-decoration-thickness: 2px; }
.style-demo .b { color: var(--ink); font-weight: 600; background: linear-gradient(100deg, transparent 0%, rgba(255,228,77,.75) 3%, rgba(255,228,77,.75) 97%, transparent 100%); border-radius: 3px; padding: 0 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .pricing { grid-template-columns: minmax(0,1fr); max-width: 420px; margin: 0 auto; } }
.price-card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px 6px 15px 7px / 7px 15px 6px 14px;
  padding: 32px 26px; display: flex; flex-direction: column; position: relative;
}
.price-card.hot {
  border: 2px solid var(--marker);
  box-shadow: 6px 7px 0 rgba(0,0,0,.5), 0 0 44px rgba(255, 228, 77, 0.09);
  transform: rotate(-0.5deg) scale(1.02);
}
.price-card .plan { font-family: var(--font-head); font-weight: 600; color: var(--muted); font-size: 15px; }
.price-card .price { font-family: var(--font-head); font-size: clamp(34px, 4vw, 42px); font-weight: 700; margin: 10px 0 2px; }
.price-card .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.price-card .once { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { padding: 6px 0 6px 28px; position: relative; font-size: 14.5px; color: #cdd3e0; }
.price-card li::before { content: '✓'; position: absolute; left: 0; color: var(--marker); font-weight: 700; }
.hot-badge {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  background: var(--marker); color: #171204; font-family: var(--font-head);
  font-size: 12px; font-weight: 700; padding: 6px 16px;
  border-radius: 4px 10px 5px 9px / 9px 5px 10px 4px;
  border: 2px solid #171204; box-shadow: 2px 2px 0 #000; white-space: nowrap;
}
.vs-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 30px; }
.vs-note s { color: var(--red); }
.free-hint { text-align: center; margin-bottom: 36px; font-family: var(--font-hand); font-size: clamp(20px, 3vw, 26px); color: var(--lime); transform: rotate(-0.8deg); }

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px 12px 7px 11px / 11px 7px 12px 6px;
  margin-bottom: 12px; overflow: hidden;
}
.faq summary {
  padding: 17px 20px; cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--marker); font-size: 22px; font-weight: 400; flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq .a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* ---------- CTA-Band ---------- */
.cta-band {
  background:
    linear-gradient(rgba(96,130,175,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96,130,175,0.15) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px, 24px 24px, auto;
  color: var(--ink);
  border-radius: 10px 22px 12px 20px / 20px 12px 22px 10px;
  box-shadow: 8px 9px 0 rgba(0,0,0,.5);
  padding: 52px 28px; text-align: center; transform: rotate(-0.4deg);
}
.cta-band h2 { font-size: clamp(24px, 3.6vw, 36px); margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 26px; }
.cta-band .hand-note { font-family: var(--font-hand); font-size: 19px; color: var(--paper-margin); margin-top: 16px; display: block; transform: rotate(-1deg); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 38px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- Modal ---------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(5, 8, 16, 0.78); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--panel-2); border: 1px solid var(--line-strong);
  border-radius: 12px 22px 14px 20px / 20px 14px 22px 12px;
  max-width: 680px; width: 100%; padding: 32px; position: relative;
  max-height: 92vh; overflow-y: auto;
}
.modal .close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  color: var(--muted); font-size: 26px; cursor: pointer; z-index: 2;
}
.modal h3 { font-size: 23px; margin-bottom: 8px; padding-right: 28px; }
.modal p.mut { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

/* ---------- Formulare ---------- */
input, select, textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 11px 13px; width: 100%;
  outline: none; transition: border-color .15s; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--marker); }
label { font-size: 13px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }

/* Heft-Typewriter: Ghost reserviert die Endhöhe, Live-Ebene tippt darüber → kein Layout-Shift */
.heft-body { position: relative; }
.heft-ghost { visibility: hidden; }
.heft-live { position: absolute; inset: 0; }

/* Gründer-Preis: regulärer Listenpreis durchgestrichen (9,99 € = echter Normalpreis ab Abo 31, s. /api/founder-left) */
.old-price {
  color: var(--muted); font-size: .58em; font-weight: 600; vertical-align: middle;
  text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--red);
  margin-right: 6px;
}
.founder-note { margin-top: 8px; font-family: var(--font-hand); font-size: 17px; color: var(--marker); transform: rotate(-0.6deg); }

/* Datums-/Monats-Inputs: iOS & Android rendern sie sonst höher/anders als normale Felder */
input[type="date"], input[type="month"] {
  -webkit-appearance: none; appearance: none;
  height: 45px; line-height: normal; display: block; text-align: left; min-width: 0;
}
