/* Lernpunkt – Nachhilfe in Offenbach
   Idee: das Schulheft. Grüner Umschlag, linierte Seite, das Etikett vorne drauf. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ground: #F3F5EF;
  --paper: #FFFFFF;
  --ink: #112E26;
  --muted: #3E504A;
  --sage: #617A5E;
  --sage-press: #4E654B;
  --mist: #DCE5D5;
  --cover: #9FC4A3;          /* der grüne Heftumschlag */
  --deep: #112E26;
  --on-deep: #EEF2EA;
  --leaf: #B5CFA6;

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --t-display: clamp(3.4rem, 8vw, 8.6rem);
  --t-h2: clamp(2.3rem, 4.6vw, 4.6rem);
  --t-h3: clamp(1.4rem, 2vw, 1.9rem);
  --t-body: clamp(1.05rem, 1.1vw, 1.2rem);
  --t-small: 0.95rem;

  --m: clamp(18px, 4vw, 64px);
  --gap: clamp(112px, 13vw, 200px);
  --r: 22px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--leaf); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: var(--m); top: -60px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 20; }
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nowrap { white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  background: var(--sage); color: #fff;
  border: 0; border-radius: 999px;
  font: 600 1.02rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .16s var(--ease-out);
}
.btn:hover { background: var(--sage-press); }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); }
.btn-ink:hover { background: #0A1F19; }
.btn-light { background: var(--on-deep); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-small { min-height: 44px; padding: 0 20px; font-size: .95rem; }

.link {
  font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 5px; text-decoration-color: var(--sage);
  transition: text-decoration-color .2s, color .2s;
}
.link:hover { text-decoration-color: currentColor; }

/* ---------- Bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--m);
  background: var(--ground);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 38px; height: auto; }
.wordmark { font-size: 1.3rem; letter-spacing: .01em; line-height: 1; }
.wordmark .l { font-weight: 400; }
.wordmark .p { font-weight: 700; color: var(--sage); }
.bar nav ul { display: flex; gap: 28px; }
.bar nav a { text-decoration: none; font-weight: 500; padding: 8px 0; position: relative; }
.bar nav a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--sage); transform: scale(0); transition: transform .25s var(--ease-out);
}
.bar nav a:hover::after { transform: scale(1); }
@media (max-width: 860px) { .bar nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: clamp(32px, 5vw, 72px) var(--m) clamp(56px, 6vw, 96px);
}
.hero h1 {
  font-size: var(--t-display); font-weight: 650; letter-spacing: -.045em; line-height: .92;
}
.hero h1 .dot {
  display: inline-block; width: .2em; height: .2em; margin-left: .04em;
  border-radius: 50%; background: var(--sage); vertical-align: baseline;
}
.hero .lead { margin-top: 40px; max-width: 34ch; font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.45; }
.hero .actions { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 640px; width: 100%; justify-self: end; }
.hero-art .blob {
  position: absolute; inset: 4%; background: var(--mist);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
}
.hero-art .art-tools { position: absolute; width: 58%; left: 18%; top: 10%; animation: bob 6s ease-in-out infinite; }
.hero-art .art-bulb { position: absolute; width: 30%; right: 2%; bottom: 4%; animation: bob 7s ease-in-out -2s infinite; }
.hero-art .pt { position: absolute; border-radius: 50%; background: var(--sage); }
.hero-art .pt-a { width: 7%; aspect-ratio: 1; left: 6%; bottom: 18%; }
.hero-art .pt-b { width: 3.5%; aspect-ratio: 1; left: 14%; top: 8%; background: var(--ink); }
.hero-art .pt-c { width: 5%; aspect-ratio: 1; right: 10%; top: 14%; background: var(--leaf); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3%) rotate(-2deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; justify-self: center; margin-top: 8px; }
}

/* ---------- Fakten-Band (Stundenplan-Zeile) ---------- */
.facts {
  background: var(--deep); color: var(--on-deep);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin: 0 var(--m); border-radius: var(--r); overflow: hidden;
}
.facts li { padding: clamp(22px, 2.6vw, 40px) clamp(20px, 2.2vw, 36px); background: var(--deep); }
.facts li + li { background: #163A30; }
.facts li:nth-child(3) { background: #1B4337; }
.facts li:nth-child(4) { background: #204C3F; }
.facts strong { display: block; font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.facts span { display: block; margin-top: 8px; color: var(--leaf); font-size: var(--t-small); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Angebot ---------- */
.offer {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px);
  padding: var(--gap) var(--m) 0;
}
.offer-head { position: sticky; top: 110px; align-self: start; }
.offer h2, .steps-sec h2, .costs h2, .trial h2, .place h2 {
  font-size: var(--t-h2); font-weight: 650; letter-spacing: -.04em; line-height: 1;
}
.offer-head p { margin-top: 28px; max-width: 36ch; }
.offer-head figure { margin-top: 48px; border-radius: var(--r); overflow: hidden; background: var(--mist); }
.offer-head figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.offer-list li {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 8px 40px;
  padding: clamp(26px, 3vw, 40px) clamp(22px, 2.6vw, 40px);
  background: var(--paper); border-radius: var(--r);
  transition: background-color .25s;
}
.offer-list li + li { margin-top: 12px; }
.offer-list li:hover { background: var(--mist); }
.offer-list h3 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.025em; line-height: 1.12; }
.offer-list .for { display: block; margin-top: 8px; color: var(--sage-press); font-weight: 600; font-size: var(--t-small); }
@media (max-width: 960px) {
  .offer { grid-template-columns: 1fr; }
  .offer-head { position: static; }
  .offer-list li { grid-template-columns: 1fr; }
}

/* ---------- Ablauf ---------- */
.steps-sec { margin-top: var(--gap); padding: clamp(64px, 8vw, 128px) var(--m); background: var(--mist); }
.steps-head { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.steps-head p { margin-top: 24px; max-width: 46ch; }
.steps-head img { width: clamp(80px, 9vw, 130px); }
.steps { margin-top: clamp(48px, 6vw, 88px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--ground); border-radius: var(--r); padding: clamp(28px, 3vw, 44px); position: relative; }
.steps li:nth-child(2) { background: var(--paper); }
.steps li:nth-child(3) { background: var(--deep); color: var(--on-deep); }
.steps .when { display: block; font-size: var(--t-small); font-weight: 600; color: var(--sage-press); }
.steps li:nth-child(3) .when { color: var(--leaf); }
.steps h3 { margin-top: 10px; font-size: clamp(1.7rem, 2.6vw, 2.5rem); font-weight: 650; letter-spacing: -.035em; line-height: 1.05; }
.steps p { margin-top: 18px; }
.steps .pt { position: absolute; top: clamp(28px, 3vw, 44px); right: clamp(28px, 3vw, 44px); width: 14px; height: 14px; border-radius: 50%; background: var(--sage); }
.steps li:nth-child(3) .pt { background: var(--leaf); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps-head { grid-template-columns: 1fr; } .steps-head img { display: none; } }

/* ---------- Kosten ---------- */
.costs {
  background: var(--deep); color: var(--on-deep);
  display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 112px);
  padding: clamp(72px, 9vw, 140px) var(--m);
}
.costs p.intro { margin-top: 28px; max-width: 44ch; }
.costs ol { margin-top: 48px; display: grid; gap: 12px; counter-reset: none; }
.costs ol li { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 22px 26px; background: #183D33; border-radius: 16px; }
.costs ol li strong { color: var(--leaf); font-weight: 650; }
.costs-big { align-self: center; justify-self: center; text-align: center; }
.costs-big .zero {
  width: clamp(220px, 26vw, 380px); aspect-ratio: 1; border-radius: 50%;
  background: var(--leaf); color: var(--ink);
  display: grid; place-content: center; gap: 4px;
}
.costs-big .zero b { font-size: clamp(4.5rem, 8vw, 7.5rem); font-weight: 700; letter-spacing: -.05em; line-height: .9; }
.costs-big .zero span { font-weight: 600; font-size: clamp(1rem, 1.3vw, 1.25rem); }
.costs-big p { margin-top: 24px; max-width: 26ch; margin-inline: auto; color: var(--leaf); }
@media (max-width: 960px) {
  .costs { grid-template-columns: 1fr; }
  .costs ol li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Probestunde: das Heft-Etikett ---------- */
.trial {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px);
  padding: var(--gap) var(--m) 0;
}
.trial-intro p { margin-top: 28px; max-width: 38ch; }
.trial-intro .alt { margin-top: 36px; display: grid; gap: 10px; }
.trial-intro .alt a { font-size: clamp(1.2rem, 1.6vw, 1.5rem); font-weight: 600; text-decoration: none; }
.trial-intro .alt a:hover { color: var(--sage); }

/* der Umschlag, auf dem das Etikett klebt */
.cover { background: var(--cover); border-radius: var(--r); padding: clamp(20px, 4vw, 64px); }
.label {
  background: var(--paper); border-radius: 26px;
  padding: clamp(24px, 3.2vw, 48px);
  box-shadow: 0 1px 0 rgba(17, 46, 38, .08);
}
.label-title { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.label-title p { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 700; letter-spacing: -.03em; }
.label-title img { width: 34px; }

.row { display: grid; grid-template-columns: 120px 1fr; align-items: end; gap: 16px; margin-top: 22px; }
.row > label, .row > .lbl { font-weight: 600; padding-bottom: 10px; }
.row input, .row select {
  width: 100%; min-height: 46px; padding: 8px 2px;
  border: 0; border-bottom: 2px solid var(--mist); border-radius: 0;
  background: transparent; color: var(--ink);
  font: 500 1.15rem var(--font);
  transition: border-color .2s;
  -webkit-appearance: none; appearance: none;
}
.row select { background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23617A5E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 6px center; padding-right: 28px; cursor: pointer; }
.row input:focus, .row select:focus { outline: none; border-bottom-color: var(--sage); }
.row input::placeholder { color: #8A988F; }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }

fieldset { border: 0; margin: 28px 0 0; padding: 0; }
legend { font-weight: 600; padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: 999px; background: var(--ground); font-weight: 500;
  transition: background-color .2s, color .2s, transform .16s var(--ease-out);
}
.chips label:hover span { background: var(--mist); }
.chips input:checked + span { background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 3px solid var(--sage); outline-offset: 2px; }
.chips label:active span { transform: scale(.96); }

.note { margin-top: 32px; padding: 24px 26px; background: var(--ground); border-radius: 18px; }
.note-label { font-weight: 600; color: var(--sage-press); font-size: var(--t-small); }
.note p + p { margin-top: 8px; }
.label .actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
@media (max-width: 960px) { .trial { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; gap: 0; } .row > label, .row > .lbl { padding-bottom: 0; } }

/* ---------- Kontakt ---------- */
.place {
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px);
  padding: var(--gap) var(--m) var(--gap);
}
.place address { font-style: normal; margin-top: 36px; }
.place .addr { font-size: clamp(1.5rem, 2.4vw, 2.2rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.place .contact { margin-top: 28px; display: grid; gap: 6px; font-size: 1.15rem; }
.place .contact a { text-decoration: none; font-weight: 500; }
.place .contact a:hover { color: var(--sage); }
.place .hours { margin-top: 28px; color: var(--muted); }
.place .btn { margin-top: 32px; }
.flyer { justify-self: center; max-width: 460px; width: 100%; }
.flyer a:first-child { display: block; border-radius: 10px; overflow: hidden; background: var(--paper);
  transform: rotate(2.5deg); transition: transform .5s var(--ease-out); box-shadow: 0 2px 0 rgba(17, 46, 38, .06); }
.flyer a:first-child:hover { transform: rotate(0) scale(1.02); }
.flyer figcaption { margin-top: 28px; text-align: center; }
@media (max-width: 960px) { .place { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: var(--on-deep); padding: clamp(56px, 7vw, 104px) var(--m) 36px; }
.foot-name { font-size: clamp(3.6rem, 15.5vw, 17rem); line-height: .85; letter-spacing: -.055em; white-space: nowrap; }
.foot-name .l { font-weight: 400; }
.foot-name .p { font-weight: 700; color: var(--leaf); }
.foot-row { margin-top: clamp(40px, 5vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
.foot-row ul { display: flex; gap: 28px; }
.foot-row a { text-decoration-color: var(--leaf); text-underline-offset: 4px; }
.foot-row a:hover { color: var(--leaf); }
.credits { margin-top: 32px; font-size: .85rem; color: var(--leaf); }
.credits summary { cursor: pointer; }
.credits ul { margin-top: 12px; display: grid; gap: 6px; max-width: 90ch; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: clamp(40px, 6vw, 96px) var(--m) var(--gap); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(32px, 6vw, 112px); }
.legal h1 { font-size: var(--t-h2); font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.legal-side p { margin-top: 24px; color: var(--muted); max-width: 30ch; }
.legal-side .link { display: inline-block; margin-top: 28px; }
.legal-body { max-width: 72ch; }
.legal-body section { background: var(--paper); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); }
.legal-body section + section { margin-top: 12px; }
.legal-body h2 { font-size: var(--t-h3); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.legal-body h3 { margin-top: 22px; font-size: 1.1rem; font-weight: 650; }
.legal-body p, .legal-body ul { margin-top: 12px; }
.legal-body ul { list-style: disc; padding-left: 1.2em; }
.legal-body address { font-style: normal; }
.todo { background: #FFE9A8; color: var(--ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
@media (max-width: 860px) { .legal { grid-template-columns: 1fr; } }

/* ---------- Bewegung ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0ms); }
.js .hero h1 .dot { transform: translateY(-1.4em) scale(.4); opacity: 0; }
.js .hero h1.in .dot { animation: drop .9s .55s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes drop {
  0% { transform: translateY(-1.4em) scale(.4); opacity: 0; }
  60% { transform: translateY(0) scale(1.1, .85); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.note.flash { animation: flash .5s var(--ease-out); }
@keyframes flash { 0% { background: var(--mist); } 100% { background: var(--ground); } }

@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.in { opacity: 1; transform: none; transition: none; }
  .js .hero h1 .dot, .js .hero h1.in .dot { animation: none; transform: none; opacity: 1; }
  .note.flash { animation: none; }
  * { transition-duration: 0s !important; }
}
