/* =============================================================
   McCheck Nachhilfeteam Duisburg
   ============================================================= */

/* ---------- Schriften (lokal, keine Google-Server) ---------- */
@font-face {
  font-family: "Patrick Hand";
  src: url("../fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-display: swap;
}

/* ---------- Farben & Grundwerte ---------- */
:root {
  --tafel:   #262b31;
  --kreide:  #f1eee6;
  --kreide-2:#b9b8b2;
  --gelb:    #f5b734;
  --gelb-d:  #d99a12;
  --papier:  #fdf7e8;
  --weiss:   #fffdf8;
  --tinte:   #2f2c27;
  --tinte-2: #5e5a52;
  --linie:   #c9d6e6;
  --rand:    #d65a4a;
  --hand:    "Patrick Hand", "Comic Sans MS", cursive;
  --text:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --breite:  68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--weiss);
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--gelb); color: var(--tinte); padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 1rem; }

:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

/* ---------- Flächen ---------- */
.tafel {
  background: var(--tafel) url("../img/tafel.jpg") center / 900px repeat;
  color: var(--kreide);
}
.papier { background: var(--papier); }

.spalte { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; }
.spalte--schmal { max-width: 46rem; }
.abschnitt { padding: 4.5rem 0; }

/* Überschriften mit Textmarker-Strich */
.abschnitt h2 {
  font-family: var(--hand);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3rem);
  display: inline-block;
  position: relative;
  z-index: 0;
}
.abschnitt h2::after {
  content: "";
  position: absolute; z-index: -1;
  left: -.25em; right: -.35em; bottom: .08em; height: .38em;
  background: var(--gelb);
  opacity: .55;
  border-radius: 2px 6px 3px 8px;
  transform: rotate(-1.2deg);
}
.tafel h2::after { opacity: .35; }

.einleitung { font-size: 1.25rem; max-width: 42rem; color: var(--tinte-2); }
.klein { font-size: .95rem; color: var(--tinte-2); }
.tafel .klein { color: var(--kreide-2); }

.link { color: #1f5fa8; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-block;
  font: 600 1.05rem/1 var(--text);
  background: var(--gelb);
  color: var(--tinte);
  border: 2px solid var(--gelb);
  padding: .9rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.knopf:hover { background: #ffc94f; transform: translateY(-1px); }
.knopf--rand { background: transparent; color: var(--kreide); border-color: var(--kreide-2); }
.knopf--rand:hover { background: rgba(255,255,255,.08); }
.knopf--klein { padding: .55rem .9rem; font-size: .95rem; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.kopf__innen {
  max-width: var(--breite); margin: 0 auto;
  padding: .75rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.kopf__marke { display: flex; align-items: center; gap: .9rem; }
.kopf__logo img { width: 230px; }
.kopf__ort {
  font-family: var(--hand); font-size: 1.35rem; line-height: 1;
  color: var(--tafel); background: var(--gelb);
  padding: .3rem .6rem .25rem; border-radius: 3px;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.kopf__nav { display: flex; align-items: center; gap: 1.5rem; font-size: 1rem; }
.kopf__nav a:not(.knopf) { color: var(--kreide-2); text-decoration: none; }
.kopf__nav a:not(.knopf):hover { color: var(--kreide); }

/* ---------- Start ---------- */
.start { padding: 3.5rem 0 4.5rem; }
.start__innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center;
}
.start__ort {
  font-family: var(--hand); font-size: 1.6rem; color: var(--gelb);
  margin-bottom: .4rem;
}
.start h1 {
  font-family: var(--hand); font-weight: 400;
  font-size: clamp(2.7rem, 6vw, 4.2rem);
  line-height: 1.05;
}
.start__lead { font-size: 1.2rem; color: var(--kreide); max-width: 34rem; }
.start__knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.start__gehirn { margin: 0; }
.start__gehirn img { width: 100%; max-width: 560px; margin-left: auto; opacity: .95; }

.haken { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.haken li { position: relative; padding-left: 1.6rem; font-weight: 600; }
.haken li::before {
  content: "✓";
  position: absolute; left: 0; top: -.15rem;
  font-family: var(--hand); font-size: 1.5rem; color: var(--gelb);
}

/* ---------- Angebot ---------- */
.raster {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem; margin-top: 2.5rem;
}
.punkt h3 { font-size: 1.3rem; }
.punkt p { color: var(--tinte-2); margin: 0; }
.punkt { border-left: 3px solid var(--gelb); padding-left: 1.2rem; }

/* ---------- Preise: Karteikarten ---------- */
.preise {
  display: grid; grid-template-columns: repeat(2, minmax(0, 24rem));
  gap: 2.5rem; margin: 2.5rem 0 1.5rem;
}
.zettel {
  position: relative;
  background:
    linear-gradient(to right, transparent 2.6rem, var(--rand) 2.6rem, var(--rand) calc(2.6rem + 1px), transparent calc(2.6rem + 1px)),
    repeating-linear-gradient(to bottom, var(--weiss) 0, var(--weiss) calc(1.75rem - 1px), var(--linie) calc(1.75rem - 1px), var(--linie) 1.75rem);
  background-position: 0 0, 0 .6rem;
  padding: 1.6rem 1.6rem 1.4rem 3.6rem;
  line-height: 1.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 22px rgba(60,45,20,.12);
  transform: rotate(-.8deg);
}
.zettel:nth-child(2) { transform: rotate(.7deg); }
.zettel h3 { font-family: var(--hand); font-weight: 400; font-size: 2rem; margin: 0 0 .2rem; line-height: 1.75rem; }
.zettel__preis { font-size: 2rem; font-weight: 700; margin: .3rem 0 .6rem; line-height: 3.5rem; }
.zettel__preis span { font-size: 1rem; font-weight: 400; color: var(--tinte-2); }
.zettel p:last-child { margin: 0; color: var(--tinte-2); }

/* ---------- Ablauf ---------- */
.schritte {
  list-style: none; padding: 0; margin: 2.5rem 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
  counter-reset: schritt;
}
.schritte li { counter-increment: schritt; position: relative; padding-top: 3.6rem; }
.schritte li::before {
  content: counter(schritt);
  position: absolute; top: 0; left: 0;
  font-family: var(--hand); font-size: 3.4rem; line-height: 1;
  color: var(--gelb-d);
}
.schritte h3 { font-size: 1.25rem; }
.schritte p { color: var(--tinte-2); margin: 0; }

/* ---------- BuT ---------- */
.but p { max-width: 44rem; font-size: 1.15rem; }

/* ---------- Karte (Zwei-Klick-Lösung) ---------- */
.karte {
  margin-top: 1.6rem;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(60,45,20,.10);
}
.karte iframe { width: 100%; height: 100%; border: 0; display: block; }
.karte__platzhalter {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; gap: .9rem; padding: 1.5rem;
}
.karte__fahne { font-size: 2.4rem; line-height: 1; }
.karte__platzhalter p { margin: 0; max-width: 26rem; font-size: .95rem; color: var(--kreide-2); }
.karte__platzhalter .knopf { font-size: 1rem; }

/* ---------- Kontakt ---------- */
.kontakt { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.kontakt address { font-style: normal; margin: 0 0 1rem; }
.kontakt__tel a {
  font: 700 1.9rem/1.2 var(--text); text-decoration: none; color: var(--tinte); letter-spacing: .01em;
}
.kontakt__info h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.zeiten { border-collapse: collapse; margin-bottom: 1rem; }
.zeiten th { text-align: left; font-weight: 400; padding: .2rem 1.5rem .2rem 0; color: var(--tinte-2); }
.zeiten td { font-weight: 600; padding: .2rem 0; }

.formular {
  background: var(--weiss);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 10px 30px rgba(60,45,20,.10);
}
.formular h3 { font-family: var(--hand); font-weight: 400; font-size: 2rem; }
.formular label { display: block; font-weight: 600; font-size: 1rem; margin-bottom: 1.1rem; }
.formular .optional { font-weight: 400; color: var(--tinte-2); }
.formular input, .formular textarea {
  display: block; width: 100%;
  margin-top: .35rem;
  font: 400 1.05rem/1.4 var(--text);
  color: var(--tinte);
  background: #fff;
  border: 1.5px solid #d8d2c4;
  border-radius: 6px;
  padding: .7rem .8rem;
}
.formular input:focus, .formular textarea:focus { border-color: var(--gelb-d); outline: none; box-shadow: 0 0 0 3px rgba(245,183,52,.3); }
.formular textarea { resize: vertical; }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.meldung { padding: 1rem 1.2rem; border-radius: 6px; margin-bottom: 1.2rem; }
.meldung--ok { background: #e3f1dc; border-left: 4px solid #4c8a2f; }
.meldung--fehler { background: #f9e1dc; border-left: 4px solid var(--rand); }

/* ---------- Rechtliches ---------- */
.recht h1 { font-family: var(--hand); font-weight: 400; font-size: 3rem; }
.recht h2 { font-family: var(--text); font-size: 1.2rem; font-weight: 700; display: block; margin-top: 2rem; }
.recht h2::after { display: none; }

/* ---------- Fuß ---------- */
.fuss { padding: 3rem 0 2.5rem; font-size: 1rem; }
.fuss__innen {
  max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem;
  display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 2rem 3.5rem;
}
.fuss p { margin: 0; color: var(--kreide-2); }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; }
.fuss__name { font-family: var(--hand); font-size: 1.5rem; color: var(--kreide) !important; }
.fuss__nav { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; }
.fuss__nav a { color: var(--kreide-2); }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .kopf__nav a:not(.knopf) { display: none; }
  .kopf__logo img { width: 150px; }
  .kopf__ort { font-size: 1.1rem; }
  .kopf__marke { gap: .6rem; }
  .start__innen, .kontakt { grid-template-columns: 1fr; gap: 2rem; }
  .start__gehirn { order: -1; }
  .start__gehirn img { max-width: 380px; margin: 0 auto; }
  .raster, .schritte { grid-template-columns: 1fr; gap: 2rem; }
  .preise { grid-template-columns: 1fr; }
  .abschnitt { padding: 3.5rem 0; }
  .fuss__innen { grid-template-columns: 1fr; gap: 1.2rem; }
  .fuss__nav { align-items: flex-start; }
  .formular { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .knopf { transition: none; }
}
