/* =========================================================
   LernKultur – Stylesheet
   Konzept: „Das Schulheft“ – Karopapier, Korrekturstift,
   Heft-Etiketten, Karteikarten, Postkarte.
   ========================================================= */

/* ---------- Schriften (lokal, keine Verbindung zu Google) ---------- */
@font-face { font-family: "Luckiest Guy"; src: url("fonts/luckiest-guy.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("fonts/montserrat.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* ---------- Farben & Grundwerte (hier zentral anpassen) ---------- */
:root {
  --cyan: #13bde6;          /* Original-Cyan vom Flyer */
  --cyan-deep: #087ea8;     /* für Links/Text auf hellem Grund */
  --cyan-soft: #e2f6fc;
  --ink: #0c2b3b;           /* Tinte – dunkles Blau statt Schwarz */
  --ink-soft: #3e5d6c;
  --paper: #fffdf6;         /* Heftpapier */
  --paper-2: #f5fbfd;
  --yellow: #ffd23f;        /* Textmarker */
  --red: #d9363e;           /* Korrekturstift */
  --grid: rgba(19, 189, 230, .17);

  --border: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;

  --display: "Luckiest Guy", "Arial Black", Impact, sans-serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 500 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: var(--yellow); color: var(--ink); }
img, svg { display: block; }
a { color: var(--cyan-deep); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1; text-transform: uppercase; margin: 0; }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: .005em; }
h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
small { font-size: .8em; }
.nowrap { white-space: nowrap; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }

/* Karopapier */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  background-position: -1px -1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 13px 24px; border: var(--border); border-radius: 999px;
  font: 800 1rem/1.2 var(--sans); text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-big { padding: 16px 30px; font-size: 1.08rem; }
.btn-small { padding: 9px 18px; font-size: .92rem; background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.btn-yellow { background: var(--yellow); }
.btn-white { background: #fff; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--cyan); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; box-shadow: none; }
.btn-ghost-light:hover { box-shadow: none; background: rgba(255,255,255,.12); }

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; background: var(--ink); color: var(--yellow); text-decoration: none;
  font-weight: 800; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-align: center;
}
.topbar-go { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.topbar:hover .topbar-go { color: var(--yellow); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav nav { display: flex; gap: 26px; margin-left: auto; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; position: relative; z-index: 0; }
.nav nav a::after {
  content: ""; position: absolute; left: -3px; right: -3px; bottom: 1px; height: 8px; z-index: -1;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav nav a:hover::after { transform: scaleX(1); }

.logo {
  font-family: var(--display); font-size: 1.85rem; line-height: 1; padding-top: 5px;
  text-transform: uppercase; color: var(--ink); text-decoration: none; letter-spacing: .01em;
}
.logo span { color: var(--cyan); text-shadow: 2px 2px 0 var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: var(--cyan);
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  padding: clamp(110px, 12vw, 150px) 0 clamp(90px, 10vw, 130px);
}
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }

.pennant {
  position: absolute; top: 0; left: clamp(16px, 4vw, 56px); z-index: 2;
  background: #fff; color: var(--cyan-deep);
  font-family: var(--display); font-size: clamp(1rem, 1.8vw, 1.35rem); line-height: 1.1; text-align: center;
  padding: 16px 20px 40px;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
  animation: drop .7s cubic-bezier(.2, 1.4, .4, 1) both;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: var(--border); border-radius: 999px; box-shadow: var(--shadow-sm);
  padding: 7px 16px; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  margin-bottom: 26px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }

.hero h1 {
  font-size: clamp(3.3rem, 8.2vw, 7rem); color: #fff; line-height: .95;
  text-shadow:
    -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink),
    0 -2px 0 var(--ink), 0 2px 0 var(--ink), -2px 0 0 var(--ink), 2px 0 0 var(--ink),
    .07em .07em 0 var(--ink);
  margin-bottom: 30px;
}
.h1-line { display: block; }
.h1-mark { position: relative; color: var(--yellow); white-space: nowrap; }

.worries { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.worries li {
  position: relative; background: var(--ink); color: #fff; font-weight: 700; font-size: .98rem;
  padding: 8px 16px; border-radius: 14px;
}
.worries li::after {
  content: ""; position: absolute; left: 18px; bottom: -7px; border: 8px solid transparent;
  border-top-color: var(--ink); border-bottom: 0;
}
.worries li:nth-child(2) { transform: rotate(-2deg); }
.worries li:nth-child(3) { transform: rotate(1.5deg); }

.hero-lead { font-size: clamp(1.1rem, 1.8vw, 1.28rem); max-width: 30em; margin-bottom: 32px; }

/* Klassenarbeit */
.hero-art { position: relative; justify-self: center; width: min(420px, 100%); }
.exam {
  position: relative; background: #fff; border: var(--border); border-radius: 6px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: 30px 26px 128px 52px; transform: rotate(3deg);
  background-image:
    linear-gradient(90deg, transparent 38px, rgba(217,54,62,.55) 38px, rgba(217,54,62,.55) 40px, transparent 40px),
    repeating-linear-gradient(transparent 0 33px, rgba(19,189,230,.35) 33px 34px);
  background-position: 0 0, 0 70px;
  animation: float-in .9s cubic-bezier(.2, 1.2, .4, 1) .1s both;
}
.exam-clip {
  position: absolute; top: -22px; left: 50%; width: 26px; height: 58px; margin-left: -13px;
  border: 4px solid #9aa9b1; border-radius: 13px; border-bottom-color: transparent;
}
.exam-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-weight: 800; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft);
  border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 8px;
}
.exam-body p { font-family: var(--hand); font-size: 1.75rem; line-height: 34px; margin: 0; color: #1d3f86; }
.exam-body b { font-weight: 700; }
.exam-body .indent { padding-left: 26px; }
.tick { font-style: normal; color: var(--red); font-weight: 700; margin-left: 6px; display: inline-block; animation: pop .4s ease .9s both; }
.tick-2 { animation-delay: 1.05s; } .tick-3 { animation-delay: 1.2s; }

.grade { position: absolute; right: 16px; bottom: 20px; width: 150px; height: 100px; }
.grade-label { position: absolute; left: 2px; top: -16px; font-family: var(--hand); font-size: 1.5rem; color: var(--ink-soft); }
.grade-old, .grade-new { position: absolute; font-family: var(--hand); font-weight: 700; line-height: 1; color: var(--red); }
.grade-old { left: 4px; top: 16px; font-size: 3.8rem; opacity: .9; }
.grade-new { left: 66px; top: 18px; font-size: 4.4rem; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) 2s both; }
.grade-strike, .grade-ring { position: absolute; fill: none; stroke: var(--red); stroke-linecap: round; }
.grade-strike { left: -6px; top: 10px; width: 70px; height: 70px; stroke-width: 5; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .45s ease 1.5s forwards; }
.grade-ring { left: 42px; top: -2px; width: 120px; height: 100px; stroke-width: 3.5; stroke-dasharray: 360; stroke-dashoffset: 360; animation: draw .8s ease 2.4s forwards; }
.exam-note { position: absolute; left: 52px; bottom: 30px; width: 140px; line-height: 1; font-family: var(--hand); font-weight: 700; font-size: 1.8rem; color: var(--red); margin: 0; transform: rotate(-6deg); animation: pop .4s ease 3s both; }

.sticker {
  position: absolute; border: var(--border); box-shadow: var(--shadow-sm);
  font-weight: 800; text-align: center; line-height: 1.1;
}
.sticker-free {
  top: -46px; right: -28px; width: 118px; height: 118px; border-radius: 50%;
  background: var(--yellow); display: grid; place-content: center; transform: rotate(12deg);
  font-size: .95rem; animation: spin-in .8s cubic-bezier(.2, 1.4, .4, 1) .5s both;
}
.sticker-free strong { font-family: var(--display); font-weight: 400; font-size: 1.7rem; text-transform: uppercase; display: block; margin-top: 4px; }
.sticker-voucher {
  bottom: -26px; left: -34px; background: #fff; border-radius: 12px; padding: 10px 16px;
  transform: rotate(-6deg); font-size: .95rem; animation: spin-in .8s cubic-bezier(.2, 1.4, .4, 1) .7s both;
}
.sticker-voucher span { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: 50%; background: #22c55e; color: #fff; font-size: .8rem; }

.doodle { position: absolute; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.doodle-star { width: 46px; top: 38%; left: -70px; fill: var(--yellow); transform: rotate(-12deg); animation: wobble 5s ease-in-out infinite; }
.doodle-arrow { width: 110px; bottom: -80px; right: 10px; stroke: #fff; stroke-width: 4; transform: rotate(160deg) scaleX(-1); }
.doodle-spiral { width: 54px; top: -78px; left: -46px; stroke: #fff; stroke-width: 3.5; }

.torn { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 40px; fill: var(--paper); }

/* ---------- Kooperationen ---------- */
.trust { padding: 26px 0 30px; border-bottom: 2px dashed rgba(12,43,59,.2); }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 14px 36px; flex-wrap: wrap; }
.trust-label { margin: 0; font-family: var(--hand); font-size: 1.6rem; font-weight: 700; color: var(--ink-soft); }
.trust-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.trust-list li { font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.35rem); text-transform: uppercase; color: var(--cyan-deep); padding-top: 3px; }
.trust-list li + li::before { content: "✦"; color: var(--yellow); -webkit-text-stroke: 1px var(--ink); margin-right: 32px; }

/* ---------- Abschnitte allgemein ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 5px 12px; border-radius: 6px; margin-bottom: 18px;
}
.section-head h2 { color: var(--ink); }
.section-lead { font-size: 1.15rem; color: var(--ink-soft); margin: 22px 0 0; max-width: 40em; }

.u-scribble {
  color: var(--cyan-deep); white-space: nowrap;
  background: linear-gradient(transparent 62%, var(--yellow) 62%, var(--yellow) 90%, transparent 90%);
  padding: 0 .06em;
}

/* ---------- Bildungsgutschein ---------- */
.section-voucher { background: var(--yellow); border-bottom: var(--border); }
.section-voucher::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(12,43,59,.13) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.section-voucher .wrap { position: relative; }

.coupon {
  display: grid; grid-template-columns: 1fr 230px;
  background: #fff; border: var(--border); border-radius: 24px; box-shadow: 10px 10px 0 var(--ink);
  transform: rotate(-.6deg);
}
.coupon-main { padding: clamp(28px, 5vw, 56px); }
.coupon-tag {
  display: inline-block; margin: 0 0 18px; padding: 5px 14px; border: 2px dashed var(--ink); border-radius: 8px;
  font-weight: 800; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem;
}
.coupon h2 { font-size: clamp(2.1rem, 5.6vw, 4.3rem); line-height: .95; color: var(--ink); hyphens: manual; }
.coupon h2 .nowrap { color: var(--cyan); text-shadow: 3px 3px 0 var(--ink); }
.coupon-text { font-size: 1.15rem; margin: 22px 0 0; max-width: 36em; color: var(--ink-soft); }
.coupon-text strong { color: var(--ink); }

.coupon-stub {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-left: 3px dashed var(--ink); background: var(--cyan-soft); border-radius: 0 21px 21px 0; padding: 28px 16px;
}
.coupon-stub::before, .coupon-stub::after {
  content: ""; position: absolute; left: -17px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--yellow); border: var(--border);
}
.coupon-stub::before { top: -17px; clip-path: inset(50% 0 0 0); }
.coupon-stub::after { bottom: -17px; clip-path: inset(0 0 50% 0); }
.scissors { position: absolute; left: -15px; top: 42%; width: 28px; height: 28px; background: #fff; padding: 3px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; transform: rotate(90deg); }
.stub-small { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--ink-soft); }
.stub-price { font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--cyan); text-shadow: 4px 4px 0 var(--ink); padding-top: 10px; }

.check {
  margin-top: 44px; background: var(--ink); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 40px);
  box-shadow: 8px 8px 0 rgba(12,43,59,.25);
}
.check-q { font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 1.8rem); text-transform: uppercase; line-height: 1.15; margin-bottom: 20px; }
.check-options { display: flex; flex-wrap: wrap; gap: 10px; }
.check-options label { cursor: pointer; }
.check-options input { position: absolute; opacity: 0; pointer-events: none; }
.check-options span {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  border: 2px solid rgba(255,255,255,.5); font-weight: 700; transition: background .15s, border-color .15s, color .15s;
}
.check-options span::before {
  content: ""; width: 20px; height: 20px; border-radius: 6px; border: 2px solid currentColor; flex: none;
  background-position: center; background-repeat: no-repeat; background-size: 14px;
}
.check-options label:hover span { border-color: #fff; }
.check-options input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }
.check-options input:checked + span { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.check-options input:checked + span::before {
  background-color: var(--ink); border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23ffd23f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.check-options small { font-weight: 500; opacity: .8; }
.check-result { margin-top: 22px; min-height: 28px; }
.check-hint { margin: 0; font-family: var(--hand); font-size: 1.5rem; color: var(--cyan); }
.check-yes { display: none; }
.check-yes p { font-size: 1.1rem; max-width: 40em; }
.check-yes .btn { box-shadow: 4px 4px 0 var(--cyan); background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.check.is-yes .check-hint { display: none; }
.check.is-yes .check-yes { display: block; animation: rise .4s ease both; }

/* ---------- Angebot ---------- */
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff; border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease, translate .6s cubic-bezier(.2, .8, .3, 1);
}
.service:hover { transform: translate(-3px, -3px) rotate(-.5deg); box-shadow: 9px 9px 0 var(--ink); }
.service p { color: var(--ink-soft); margin: 0; }
.service h3 { font-size: 1.3rem; hyphens: manual; }
.service-icon {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px;
  border: var(--border); border-radius: 16px; transform: rotate(-4deg);
}
.service:nth-child(even) .service-icon { transform: rotate(4deg); }
.service-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.c-cyan { background: var(--cyan); } .c-yellow { background: var(--yellow); } .c-red { background: #ff8a8f; }

.service-special {
  grid-column: span 3; background: var(--ink); color: #fff;
  display: flex; align-items: center; gap: 20px 40px; flex-wrap: wrap;
  box-shadow: 6px 6px 0 var(--cyan);
}
.service-special:hover { transform: none; box-shadow: 6px 6px 0 var(--cyan); }
.special-label { margin: 0 !important; font-family: var(--hand); font-size: 2rem; font-weight: 700; color: var(--yellow) !important; line-height: 1.1; }
.special-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.special-list li { border: 2px solid rgba(255,255,255,.55); border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.special-list small { font-weight: 500; opacity: .75; }

/* ---------- Ablauf ---------- */
.section-steps { background: var(--paper-2); border-top: var(--border); border-bottom: var(--border); padding-bottom: clamp(120px, 13vw, 170px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; z-index: 1; }
.steps li { background: var(--paper); border: var(--border); border-radius: var(--radius); padding: 30px 28px 28px; position: relative; }
.steps li:nth-child(2) { margin-top: 26px; }
.steps li:nth-child(3) { margin-top: 52px; }
.steps p { color: var(--ink-soft); margin: 0; }
.step-no {
  position: absolute; top: -30px; left: 22px;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--yellow); border: var(--border); box-shadow: var(--shadow-sm);
  font-family: var(--display); font-size: 1.8rem; padding-top: 4px;
}
.steps h3 { margin-top: 18px; font-size: 1.35rem; }
.steps-wrap { position: relative; }
.steps-path { position: absolute; left: 24px; right: 24px; width: calc(100% - 48px); top: -2px; height: 110px; fill: none; stroke: var(--cyan); stroke-width: 3; stroke-dasharray: 10 10; z-index: 0; }

/* ---------- Fächer ---------- */
.section-subjects { overflow: hidden; }
.marquee {
  display: flex; overflow: hidden; padding: 10px 0 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 10px; }
.marquee-track {
  list-style: none; margin: 0; padding: 0 9px; display: flex; gap: 18px; flex: none;
  animation: marquee 48s linear infinite;
}
.marquee-reverse .marquee-track { animation-direction: reverse; animation-duration: 54s; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.label {
  flex: none; background: #fff; border: var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  padding: 8px 22px 6px; min-width: 170px; text-align: left;
  font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1.15;
  background-image: linear-gradient(transparent calc(100% - 14px), rgba(12,43,59,.25) calc(100% - 14px), rgba(12,43,59,.25) calc(100% - 12px), transparent calc(100% - 12px));
}
.label:nth-child(3n+1) { transform: rotate(-1.5deg); }
.label:nth-child(3n+2) { transform: rotate(1deg); }
.label small {
  display: block; font-family: var(--sans); font-weight: 800; font-size: .66rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--cyan-deep); margin-bottom: 2px;
}
.schools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 48px 0 0; }
.schools span { background: var(--cyan-soft); border: 2px solid var(--cyan); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: .95rem; }
.hand-note { text-align: center; font-family: var(--hand); font-size: 1.9rem; font-weight: 700; color: var(--red); margin: 22px 0 0; rotate: -1.5deg; }

/* ---------- Preise ---------- */
.cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.index-card {
  position: relative; display: block; color: var(--ink); text-decoration: none;
  background: #fff; border: var(--border); border-radius: 8px; box-shadow: var(--shadow);
  padding: 34px 28px 26px;
  background-image:
    linear-gradient(var(--red), var(--red)),
    repeating-linear-gradient(transparent 0 31px, rgba(19,189,230,.3) 31px 32px);
  background-size: 100% 2px, 100% 100%;
  background-position: 0 70px, 0 94px;
  background-repeat: no-repeat, repeat;
  transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease, translate .6s cubic-bezier(.2, .8, .3, 1);
}
.index-card:nth-child(1) { transform: rotate(-1.5deg); }
.index-card:nth-child(2) { transform: rotate(1deg); margin-top: 14px; }
.index-card:nth-child(3) { transform: rotate(-.5deg); }
.index-card:hover { transform: rotate(0) translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.index-card::before {
  content: ""; position: absolute; top: -14px; left: 50%; width: 96px; height: 28px; margin-left: -48px;
  background: rgba(255, 210, 63, .75); border-left: 2px dashed rgba(12,43,59,.15); border-right: 2px dashed rgba(12,43,59,.15);
  transform: rotate(-3deg);
}
.index-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 26px; }
.price { margin: 0 0 12px; font-weight: 700; color: var(--ink-soft); line-height: 32px; }
.price span { font-family: var(--display); font-size: 3.4rem; line-height: 1; color: var(--ink); vertical-align: -6px; margin-right: 4px; }
.index-card ul { list-style: none; margin: 0; padding: 0; }
.index-card li { font-family: var(--hand); font-size: 1.55rem; line-height: 32px; padding-left: 26px; position: relative; }
.index-card li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.index-card-voucher { background-color: var(--cyan-soft); }
.index-card-voucher .price span { color: var(--cyan); text-shadow: 3px 3px 0 var(--ink); }
.index-card-voucher li:last-child { color: var(--cyan-deep); font-weight: 700; }
.index-card-voucher li:last-child::before { content: "→"; color: var(--cyan-deep); }

.stamp {
  position: absolute; right: 40px; top: -210px; z-index: 2;
  width: 140px; height: 140px; border-radius: 50%;
  display: grid; place-content: center; text-align: center; color: var(--red);
  border: 4px solid var(--red); outline: 2px solid var(--red); outline-offset: -12px;
  background: rgba(255, 253, 246, .85);
  transform: rotate(-14deg);
}
.stamp-big { font-family: var(--display); font-size: 2.3rem; line-height: 1; padding-top: 6px; }
.stamp-small { font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; max-width: 90px; margin: 0 auto; }

.terms { margin-top: 72px; max-width: 820px; background: #fff; border: var(--border); border-radius: var(--radius); }
.terms summary {
  cursor: pointer; list-style: none; padding: 18px 24px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.terms summary::-webkit-details-marker { display: none; }
.terms summary::after {
  content: "+"; font-family: var(--display); font-size: 1.6rem; line-height: 1; width: 34px; height: 34px; flex: none;
  display: grid; place-items: center; padding-top: 4px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  transition: transform .2s ease;
}
.terms[open] summary::after { transform: rotate(45deg); }
.terms ul { margin: 0; padding: 0 24px 22px 46px; color: var(--ink-soft); }
.terms li { margin-bottom: 8px; }

/* ---------- Kontakt ---------- */
.section-contact {
  background-color: var(--cyan);
  background-image:
    linear-gradient(rgba(255,255,255,.2) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(255,255,255,.2) 1.5px, transparent 1.5px);
  background-size: 34px 34px;
  border-top: var(--border);
}
.section-head-light h2 { color: #fff; text-shadow: -2px -2px 0 var(--ink), 2px -2px 0 var(--ink), -2px 2px 0 var(--ink), 2px 2px 0 var(--ink), .06em .06em 0 var(--ink); }

.postcard {
  display: grid; grid-template-columns: 1fr 1fr; background: var(--paper);
  border: var(--border); border-radius: 10px; box-shadow: 12px 12px 0 var(--ink);
  rotate: -1deg; position: relative;
}
.postcard-msg { padding: clamp(28px, 4vw, 48px); border-right: 2px solid rgba(12,43,59,.25); font-family: var(--hand); font-size: 1.85rem; line-height: 1.3; color: #1d3f86; }
.postcard-msg p { margin: 0 0 .7em; }
.postcard-hello { font-weight: 700; }
.postcard-sign { margin-top: 1.2em !important; }
.postcard-sign strong { font-size: 2.3rem; }
.postcard-addr { position: relative; padding: clamp(28px, 4vw, 48px); padding-top: 170px; }
.stamp-post {
  position: absolute; top: 28px; right: 28px; width: 104px; height: 124px;
  background: var(--cyan); border: 7px dotted var(--paper); outline: 2px solid var(--ink); outline-offset: -2px;
  display: grid; place-items: center; transform: rotate(3deg);
}
.stamp-post span { font-family: var(--display); color: #fff; text-shadow: 2px 2px 0 var(--ink); font-size: 1.25rem; line-height: 1; text-align: center; text-transform: uppercase; padding-top: 4px; }
.postmark { position: absolute; top: 40px; right: 128px; width: 130px; height: 130px; transform: rotate(-12deg); opacity: .7; }
.postmark circle { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.postmark text { font: 800 12.5px var(--sans); letter-spacing: 1.5px; fill: var(--ink); }
.postmark .pm-mid { font: 400 20px var(--display); letter-spacing: 1px; }
.addr-lines { margin: 0; }
.addr-lines dt { font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.addr-lines dt small { letter-spacing: .04em; text-transform: none; font-weight: 600; font-size: .95em; }
.addr-lines dd { margin: 0 0 18px; padding-bottom: 6px; border-bottom: 2px solid rgba(12,43,59,.2); font-family: var(--hand); font-size: 1.8rem; line-height: 1.2; font-weight: 700; overflow-wrap: anywhere; }
.addr-lines dd:last-child { margin-bottom: 0; }
.addr-lines a { color: var(--ink); text-decoration: none; }
.addr-lines a:hover { color: var(--cyan-deep); text-decoration: underline; }

.contact-extra { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; margin-top: 56px; }
.hours { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.hours li { background: #fff; border: var(--border); border-radius: 14px; padding: 10px 18px; font-weight: 800; box-shadow: var(--shadow-sm); }
.hours small { display: block; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 64px 0 32px; font-size: .92rem; overflow: hidden; }
.footer-big {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 9.2vw, 7.6rem); line-height: .9; margin: 0 0 40px;
  color: transparent; -webkit-text-stroke: 2px var(--cyan); white-space: nowrap;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; border-top: 1px solid rgba(255,255,255,.2); padding-top: 22px; }
.footer-row nav { display: flex; gap: 22px; }
.footer-row a { color: #fff; }

/* ---------- Aktionsleiste Handy ---------- */
.callbar { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 110px; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4rem); margin-bottom: 12px; }
.legal h2 { font-family: var(--sans); font-weight: 800; text-transform: none; font-size: 1.2rem; margin: 2.2em 0 .5em; }
.legal-back { display: inline-block; margin-bottom: 28px; font-weight: 700; }

/* ---------- Animationen ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes drop { from { translate: 0 -100%; } to { translate: 0 0; } }
@keyframes float-in { from { opacity: 0; transform: rotate(10deg) translateY(40px); } to { opacity: 1; transform: rotate(3deg); } }
@keyframes spin-in { from { opacity: 0; scale: .3; rotate: -40deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes wobble { 0%, 100% { rotate: 0deg; scale: 1; } 50% { rotate: 20deg; scale: 1.1; } }
@keyframes marquee { to { transform: translateX(-100%); } }

/* Einblenden beim Scrollen (nur mit JavaScript aktiv) */
.js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .6s ease, translate .6s cubic-bezier(.2, .8, .3, 1); }
.js .service[data-reveal], .js .index-card[data-reveal] { transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease, translate .6s cubic-bezier(.2, .8, .3, 1); }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { flex-wrap: wrap; justify-content: center; flex: 1 1 100%; min-width: 0; row-gap: 14px; }
  .label { min-width: 0; }
  .marquee-track[aria-hidden] { display: none; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1060px) {
  .nav nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 90px; }
  .hero-art { width: min(380px, 84%); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service-special { grid-column: span 2; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stamp { top: -200px; right: 10px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 76px; }
  .topbar { font-size: .7rem; letter-spacing: .06em; gap: 4px 8px; }
  .nav { height: 64px; }
  .logo { font-size: 1.55rem; }
  .hero { padding-top: 120px; }
  .pennant { padding: 12px 14px 32px; }
  .hero .actions .btn { width: 100%; }
  .sticker-free { width: 96px; height: 96px; right: -14px; top: -40px; font-size: .8rem; }
  .sticker-free strong { font-size: 1.35rem; }
  .sticker-voucher { left: -10px; }
  .doodle-star { left: auto; right: -20px; top: 55%; width: 38px; }
  .doodle-arrow { display: none; }
  .exam { padding: 26px 18px 118px 46px; }
  .exam-note { left: 46px; width: 110px; font-size: 1.5rem; }
  .exam-body p { font-size: 1.5rem; }
  .grade { scale: .85; transform-origin: bottom right; right: 8px; }

  .coupon { grid-template-columns: minmax(0, 1fr); transform: none; }
  .coupon h2 { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .coupon h2 .nowrap { white-space: normal; }
  .trust-list { flex-direction: column; align-items: center; gap: 6px; }
  .trust-list li + li::before { content: none; }
  .coupon-stub { border-left: 0; border-top: 3px dashed var(--ink); border-radius: 0 0 21px 21px; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; padding: 22px 16px; }
  .coupon-stub::before, .coupon-stub::after { top: -17px; bottom: auto; }
  .coupon-stub::before { left: -17px; clip-path: inset(0 0 0 50%); }
  .coupon-stub::after { left: auto; right: -17px; clip-path: inset(0 50% 0 0); }
  .scissors { left: 50%; top: -16px; transform: none; margin-left: -14px; }
  .stub-price { font-size: 3.6rem; padding-top: 6px; }

  .services { grid-template-columns: 1fr; }
  .service-special { grid-column: auto; }
  .steps { grid-template-columns: 1fr; gap: 52px; }
  .steps li:nth-child(n) { margin-top: 0; }
  .steps-path { display: none; }
  .section-steps { padding-bottom: clamp(80px, 10vw, 130px); }
  .cards { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; }
  .index-card:nth-child(n) { transform: rotate(0); margin-top: 0; }
  .index-card h3 { font-size: .95rem; letter-spacing: .04em; }
  .stamp { width: 104px; height: 104px; top: -36px; right: -6px; }
  .stamp-big { font-size: 1.9rem; }

  .postcard { grid-template-columns: 1fr; rotate: 0deg; }
  .postcard-msg { border-right: 0; border-bottom: 2px solid rgba(12,43,59,.25); font-size: 1.6rem; }
  .postcard-addr { padding-top: 150px; }
  .stamp-post { width: 88px; height: 106px; top: 22px; right: 20px; }
  .postmark { right: 104px; top: 30px; width: 112px; height: 112px; }
  .addr-lines dd { font-size: 1.55rem; }
  .contact-extra .actions, .contact-extra .actions .btn { width: 100%; }

  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,253,246,.95); border-top: var(--border);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .callbar.is-visible { transform: none; }
  .callbar .btn { padding: 12px 10px; box-shadow: 3px 3px 0 var(--ink); }
}
.section-steps .wrap { position: relative; }
.legal + .site-footer { padding-top: 28px; }
.legal + .site-footer .footer-row { border-top: 0; padding-top: 0; }
