/* GanzEasyBro – Funnel-Seite
   Farben aus design/brand.json (Mathe ganz easy bro) */
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Patrick Hand"; src: url("/assets/fonts/patrick-hand.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --bg: #FFF8E7;
  --paper: #FFFFFF;
  --ink: #14213D;
  --muted: #5B6478;
  --accent: #E8552F;
  --accent-dark: #A8361A;
  --teal: #0B7F75;
  --green: #147A43;
  --violet: #5B3FD1;
  --marker: #FFE45C;
  --line: #CFE0EE;
  --grid: rgba(20, 33, 61, .055);
  --radius: 18px;
  --border: 3px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --wrap: 1120px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  line-height: 1.55;
  font-size: 17px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 900; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }
.section { padding: 72px 0; }
.eyebrow { font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent); margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.lead strong { color: var(--ink); }
.hl { color: var(--accent); background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 92%, transparent 92%); padding: 0 .1em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 900;
  border: var(--border); border-radius: 999px; box-shadow: var(--shadow);
  padding: .8em 1.5em; font-size: 1.05rem; cursor: pointer; font-family: inherit;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn:focus-visible { outline: 3px dashed var(--accent); outline-offset: 4px; }
.btn--big { font-size: 1.2rem; padding: .95em 1.8em; }
.btn--small { font-size: .9rem; padding: .5em 1.1em; box-shadow: var(--shadow-sm); }
.btn--light { background: var(--marker); color: var(--ink); }
.btn[aria-disabled="true"] { background: #cfd3dc; color: #6b7280; pointer-events: none; box-shadow: var(--shadow-sm); }

/* 0 · Topbar */
.topbar {
  background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center;
  gap: .7em; padding: .5em 1em; font-size: .9rem; font-weight: 700; flex-wrap: wrap; text-align: center;
}
.topbar__tag { background: var(--marker); color: var(--ink); border-radius: 6px; padding: .1em .5em; font-weight: 900; text-transform: uppercase; font-size: .75rem; letter-spacing: .06em; }
.countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.topbar__tag { white-space: nowrap; }
.topbar__text b { color: var(--marker); }
.topbar__text s { opacity: .7; }
.countdown b { color: var(--marker); font-weight: 900; }

/* Header */
.header { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; }
.header__logo img { height: 52px; width: auto; }
@media (max-width: 520px) {
  .header__cta { display: none; }
  .header { justify-content: center; padding: 12px 20px 4px; }
  .header__logo img { height: 60px; }
  .topbar { font-size: .8rem; gap: .5em; flex-wrap: nowrap; padding: .45em .6em; }
  .topbar__text { white-space: nowrap; }
  .topbar__ends { display: none; }
  .hero { padding-top: 14px; }
  .facts { gap: 8px; }
  .facts li { font-size: .88rem; }
}

/* 1 · Hero */
.hero { padding: 28px 0 64px; }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1.1fr .9fr; } }
.facts { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: .35em .9em; font-weight: 800; font-size: .95rem; display: flex; gap: .4em; align-items: center; }
.hero__note { margin-top: 14px; font-size: .9rem; color: var(--muted); font-weight: 700; }
.hero__visual { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.book { border-radius: 6px 14px 14px 6px; overflow: hidden; border: var(--border); box-shadow: 10px 12px 0 var(--ink); background: #fff; }
.book--hero { width: min(330px, 72vw); transform: rotate(4deg); position: relative; }
.book--hero::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 14px; background: linear-gradient(90deg, rgba(0,0,0,.18), transparent); z-index: 1; }
.hero__ups { position: absolute; width: min(150px, 32vw); left: max(0px, calc(50% - 250px)); bottom: -6px; transform: rotate(-8deg); filter: drop-shadow(3px 4px 0 rgba(20,33,61,.15)); animation: bob 3.2s ease-in-out infinite; }
.sticker { position: absolute; background: var(--marker); border: var(--border); border-radius: 12px; padding: .35em .7em; font-weight: 900; font-size: .95rem; box-shadow: var(--shadow-sm); white-space: nowrap; }
.sticker--a { top: 8%; right: max(0px, calc(50% - 230px)); transform: rotate(6deg); }
.sticker--b { bottom: 22%; right: max(0px, calc(50% - 250px)); transform: rotate(-5deg); background: #fff; }
@keyframes bob { 50% { transform: rotate(-8deg) translateY(-8px); } }

/* Cards */
.card { background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* 2 · Schmerz */
.pain { background: rgba(255,255,255,.5); border-block: var(--border); }
.pain__grid { display: grid; gap: 18px; margin-top: 24px; }
@media (min-width: 720px) { .pain__grid { grid-template-columns: 1fr 1fr; } }
.pain__card { position: relative; }
.pain__emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.pain__card p { color: var(--muted); margin: 0; }
.pain__ups { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.pain__ups img { width: 120px; }
.bubble { position: relative; background: #fff; border: var(--border); border-radius: 18px; padding: .6em 1em; font-family: "Patrick Hand", cursive; font-size: 1.35rem; margin: 0; box-shadow: var(--shadow-sm); }
.bubble--navy { background: var(--ink); color: #fff; }

/* 3 · Lösung */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 24px 22px 20px; position: relative; box-shadow: var(--shadow); }
.step p { color: var(--muted); margin: 0; }
.step__n { position: absolute; top: -18px; left: 18px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 900; border: var(--border); font-size: 1.1rem; }
.step:nth-child(2) .step__n { background: var(--teal); }
.step:nth-child(3) .step__n { background: var(--violet); }
@media (min-width: 820px) {
  .step:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 1.4rem; color: var(--ink); z-index: 1; }
}
.solution__bruno { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.solution__bruno img { width: 130px; }

/* 4 · Inhalt */
.inside__grid { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 640px) { .inside__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .inside__grid { grid-template-columns: repeat(3, 1fr); } }
.feat { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; }
.feat__ic { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); }
.numbers { margin-top: 30px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 22px; box-shadow: 5px 5px 0 var(--accent); }
.numbers__label { font-weight: 800; color: var(--marker); margin-bottom: 10px; }
.numbers__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (min-width: 720px) { .numbers__row { grid-template-columns: repeat(4, 1fr); } }
.numbers b { display: block; font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900; line-height: 1; }
.numbers span { font-size: .9rem; opacity: .85; }

/* 5 · Leseprobe */
.tabs { display: flex; gap: 8px; margin: 18px 0 18px; }
.tab { font: inherit; font-weight: 900; border: var(--border); background: #fff; border-radius: 999px; padding: .4em 1.1em; cursor: pointer; }
.tab.is-active { background: var(--ink); color: #fff; }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.tab small { font-weight: 700; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(72vw, 300px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 4px 18px; scrollbar-width: thin; }
.page { margin: 0; scroll-snap-align: start; }
.page button { all: unset; cursor: zoom-in; display: block; border: var(--border); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); background: #fff; transition: transform .2s var(--ease); }
.page button:hover { transform: translateY(-4px) rotate(-1deg); }
.page button:focus-visible { outline: 3px dashed var(--accent); outline-offset: 4px; }
.page figcaption { font-weight: 800; margin-top: 10px; font-size: .95rem; }
.hint { color: var(--muted); font-size: .9rem; }

/* 6 · Kurs */
.course__grid { display: grid; gap: 18px; margin-top: 20px; }
@media (min-width: 720px) { .course__grid { grid-template-columns: 1fr 1fr; } }
.course__grid p { margin: 0; color: var(--muted); }
.course__note { margin-top: 20px; color: var(--muted); max-width: 70ch; }
.badge { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; padding: 0 .4em; color: #fff; font-size: .9rem; margin-right: .3em; vertical-align: 2px; }
.badge--teal { background: var(--teal); }
.badge--coral { background: var(--accent); }

/* 7 · Vergleich */
.compare__grid { display: grid; gap: 18px; margin-top: 24px; align-items: stretch; }
@media (min-width: 820px) { .compare__grid { grid-template-columns: 1fr 1fr 1.15fr; } }
.cmp { background: rgba(255,255,255,.7); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px; position: relative; }
.cmp ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cmp li { padding-left: 1.8em; position: relative; }
.cmp li::before { position: absolute; left: 0; font-weight: 900; }
.cmp li.ok::before { content: "✓"; color: var(--green); }
.cmp li.no::before { content: "✕"; color: var(--accent-dark); }
.cmp--win { background: #fff; border: var(--border); box-shadow: 6px 6px 0 var(--accent); }
.cmp__ribbon { position: absolute; top: -14px; right: 16px; background: var(--marker); border: 2px solid var(--ink); border-radius: 8px; padding: 0 .6em; font-weight: 900; font-size: .85rem; }

/* 8 · Kaufbereich */
.buy { background: var(--ink); color: #fff; border-block: var(--border); scroll-margin-top: 0; }
.buy .eyebrow { color: var(--marker); }
.picker { display: grid; gap: 18px; margin-top: 24px; }
.pstep { border: 3px solid #fff; border-radius: var(--radius); padding: 20px; margin: 0; background: rgba(255,255,255,.04); transition: opacity .3s, border-color .3s; min-width: 0; }
.pstep legend, .pstep__title { font-weight: 900; font-size: 1.15rem; padding: 0 .4em; display: flex; align-items: center; gap: .5em; margin: 0; }
.pstep__title { padding: 0 0 14px; }
.pstep__n { width: 30px; height: 30px; border-radius: 50%; background: var(--marker); color: var(--ink); display: inline-grid; place-items: center; font-size: .95rem; }
.pstep.is-done { border-color: var(--marker); }
.pstep.is-done .pstep__n { background: var(--green); color: #fff; }
.pstep.is-locked { opacity: .35; pointer-events: none; }
.pstep__info { margin: 12px 0 0; color: #dbe2ef; }

.tiles { display: grid; gap: 10px; margin-top: 14px; }
.tiles--fach { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tiles--land { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
@media (max-width: 420px) { .tiles--land { grid-template-columns: 1fr 1fr; } }
.tiles--kurs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tile {
  font: inherit; text-align: left; cursor: pointer; color: var(--ink); background: #fff;
  border: 3px solid #fff; border-radius: 14px; padding: 12px 14px; font-weight: 800; font-size: .98rem;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s; line-height: 1.25;
  -webkit-tap-highlight-color: transparent;
}
.tile:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--marker); }
.tile:focus-visible { outline: 3px dashed var(--marker); outline-offset: 3px; }
.tile[aria-pressed="true"] { background: var(--marker); border-color: var(--marker); box-shadow: 4px 4px 0 var(--accent); }
.tile:disabled { background: rgba(255,255,255,.12); color: rgba(255,255,255,.6); border-color: rgba(255,255,255,.25); cursor: not-allowed; box-shadow: none; transform: none; }
.tile small { display: block; font-weight: 700; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.tile:disabled small { color: rgba(255,255,255,.6); }
.tile--fach { font-size: 1.15rem; padding: 16px; display: flex; align-items: center; gap: .6em; }
.tile--fach .ic { font-size: 1.6rem; }
.tile--kurs b { font-size: 1.1rem; display: block; }

.product { display: grid; gap: 22px; align-items: center; }
@media (min-width: 760px) { .product { grid-template-columns: 260px 1fr; } }
.product__cover { position: relative; width: min(260px, 70vw); margin: 0 auto; border: var(--border); border-color: #fff; border-radius: 6px 14px 14px 6px; overflow: hidden; box-shadow: 8px 8px 0 var(--accent); transform: rotate(-2deg); background: var(--bg); }
.product__cover > img { width: 100%; }
.cv { position: absolute; inset: 0; color: var(--ink); padding: 8% 7%; pointer-events: none; }
.cv__land { display: inline-block; background: var(--ink); color: #fff; font-weight: 900; font-size: .62rem; border-radius: 999px; padding: .25em .7em; text-transform: uppercase; letter-spacing: .06em; }
.cv__title { display: block; margin-top: 6%; font-size: 1.75rem; font-weight: 1000; line-height: .95; color: var(--accent); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; text-shadow: 2px 2px 0 var(--ink); }
.cv__ed { display: inline-block; margin-top: 6%; background: #fff; border: 2px solid var(--ink); font-weight: 900; font-size: .62rem; padding: .2em .5em; border-radius: 4px; }
.cv__kurs { position: absolute; top: 6%; right: 5%; width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; border: 2px solid var(--ink); font-weight: 900; font-size: .68rem; text-align: center; transform: rotate(10deg); line-height: 1.05; }
.product__info h3 { font-size: 1.5rem; }
.product__list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; color: #dbe2ef; }
.product__list li::before { content: "✓ "; color: var(--marker); font-weight: 900; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.price__old { text-decoration: line-through; opacity: .6; font-size: 1.2rem; font-weight: 800; }
.price__now { font-size: 2.4rem; font-weight: 1000; color: var(--marker); line-height: 1; }
.price__tag { background: var(--accent); border-radius: 6px; padding: .15em .5em; font-weight: 900; font-size: .8rem; }
.btn--buy { width: 100%; max-width: 420px; }
.product__meta { margin: 12px 0 10px; font-size: .9rem; color: #dbe2ef; }
.pay { display: flex; flex-wrap: wrap; gap: 6px; }
.pay span { background: #fff; color: var(--ink); border-radius: 6px; padding: .15em .55em; font-size: .78rem; font-weight: 900; }

/* 9 · Sicherheit */
.trust { padding: 40px 0; }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (min-width: 820px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { background: #fff; border: 2px solid var(--ink); border-radius: 14px; padding: 14px; display: grid; gap: 2px; }
.trust__item span { font-size: 1.4rem; }
.trust__item small { color: var(--muted); }

/* 10 · FAQ */
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 800; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 900; transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* 11 · Final */
.final { background: var(--accent); color: #fff; border-top: var(--border); padding: 70px 0 80px; text-align: center; }
.final__inner { display: grid; justify-items: center; }
.final__bruno { width: 150px; margin-bottom: 10px; }
.final h2 { color: #fff; text-shadow: 3px 3px 0 var(--ink); }
.final p { font-size: 1.15rem; max-width: 40ch; }

/* 12 · Footer */
.footer { background: var(--ink); color: #c9d1e3; padding: 30px 0 110px; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer a { color: #fff; text-decoration: none; font-weight: 700; }
.footer a:hover { text-decoration: underline; }
.footer .footer__wd { border: 2px solid #fff; border-radius: 999px; padding: .15em .8em; }
.footer p { margin: 0; }
@media (min-width: 900px) { .footer { padding-bottom: 30px; } }

/* Klebender Button (Handy) */
.stickybar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  background: var(--accent); color: #fff; text-decoration: none; text-align: center; font-weight: 900; font-size: 1.1rem;
  padding: .9em; border: var(--border); border-radius: 999px; box-shadow: var(--shadow);
  transform: translateY(160%); transition: transform .35s var(--ease);
}
.stickybar.is-visible { transform: none; }
@media (min-width: 900px) { .stickybar { display: none; } }

/* Lightbox */
.lightbox { border: var(--border); border-radius: 12px; padding: 0; max-width: min(92vw, 820px); max-height: 92vh; background: #fff; }
.lightbox::backdrop { background: rgba(20,33,61,.75); }
.lightbox img { width: 100%; height: auto; }
.lightbox__close { position: sticky; top: 8px; float: right; margin: 8px; width: 40px; height: 40px; border-radius: 50%; border: var(--border); background: var(--marker); font-weight: 900; cursor: pointer; z-index: 2; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8em 1.2em; border-radius: 12px; border: 2px solid var(--marker); font-weight: 700; z-index: 60; max-width: 90vw; text-align: center; }

/* Einblenden beim Scrollen */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__ups { animation: none; }
}
