/* Hundeschule Andrea Winkler – „Hope schreibt mit“
   Leitmotiv: ein Schulheft mit Korrekturrand. Andrea schreibt den Text,
   Hope korrigiert mit Rotstift am Rand. */

@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Hope";
  src: url("../assets/fonts/reenie.woff2") format("woff2");
  font-display: swap;
}

:root {
  --papier: #f5efe3;
  --papier-tief: #ebe2cf;
  --tinte: #1d1a16;
  --tinte-weich: #4a443b;
  --rot: #b42318;          /* Hopes Rotstift, AA-Kontrast auf Papier */
  --rot-logo: #e2412f;     /* nur dekorativ */
  --rand-linie: #e3a79c;
  --linie: rgba(29, 26, 22, .14);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --hand: "Hope", "Comic Sans MS", cursive;

  --rand: 17rem;           /* Breite des Korrekturrands */
  --luft: clamp(1rem, 4vw, 3.5rem);
  --max: 78rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background-color: var(--papier);
  /* leichte Papierfaser */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--tinte);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  font-optical-sizing: auto;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--rot); }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; border-radius: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--tinte); color: var(--papier); padding: .6rem 1rem;
}
.skip:focus { top: 1rem; }

/* ---------- Typografie ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 620;
  line-height: 1.02;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.7rem, 6.4vw + .5rem, 6rem); }
h2 { font-size: clamp(2rem, 3.6vw + .6rem, 3.6rem); }
h3 { font-size: clamp(1.3rem, 1vw + 1rem, 1.6rem); letter-spacing: -.01em; font-variation-settings: "opsz" 48, "SOFT" 50; }
p { margin: 0 0 1em; max-width: 38em; text-wrap: pretty; }

.kicker {
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 560;
  color: var(--tinte-weich);
  margin-bottom: 1.4rem;
}
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); line-height: 1.5; font-variation-settings: "opsz" 24; }

/* ---------- Kopf ---------- */

.kopf {
  position: sticky; top: 0; z-index: 20;
  background: var(--papier);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  max-width: var(--max); margin: 0 auto;
  padding: .55rem var(--luft);
  display: flex; align-items: center; gap: 1.5rem;
}
.logo { flex: none; display: block; width: 5.4rem; transform: rotate(-6deg); transition: transform .3s; }
.logo:hover { transform: rotate(0deg); }
.logo img { width: 100%; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; font-weight: 520; font-size: 1rem; position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.05rem; height: .35rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5 C 30 1, 60 7, 98 3' fill='none' stroke='%23b42318' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Der Schalter: Menschensicht ⇄ Hundesicht */
.sicht {
  flex: none;
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; background: none; padding: .4rem .2rem; cursor: pointer;
  font: inherit; color: var(--tinte);
}
.sicht-wort { position: relative; padding: .25rem .55rem; font-size: .95rem; font-weight: 540; transition: color .2s; }
.sicht-h { font-family: var(--hand); font-size: 2.1rem; -webkit-text-stroke: .02em currentColor; font-weight: 400; line-height: 1; color: var(--tinte-weich); }
.sicht-pfeil { color: var(--tinte-weich); font-size: .9rem; }
.sicht-kreis {
  position: absolute; inset: -.3rem -.35rem; width: calc(100% + .7rem); height: calc(100% + .6rem);
  overflow: visible; pointer-events: none;
}
.sicht-kreis path { fill: none; stroke: var(--rot); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease; }
[data-sicht="mensch"] .sicht-m .sicht-kreis path,
[data-sicht="hund"] .sicht-h .sicht-kreis path { stroke-dashoffset: 0; }
[data-sicht="hund"] .sicht-h { color: var(--rot); }
[data-sicht="hund"] .sicht-m { color: var(--tinte-weich); }

.menue-knopf { display: none; }

/* ---------- Heft & Korrekturrand ---------- */

.heft {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--luft);
}
/* die rote Randlinie, durchgehend */
.heft::before {
  content: ""; position: absolute; top: 0; bottom: 0;
  right: calc(var(--luft) + var(--rand) + 1.5rem);
  border-left: 1.5px solid var(--rand-linie);
  pointer-events: none;
}

.bogen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--rand);
  column-gap: 3rem;
  padding: clamp(4rem, 9vw, 8rem) 0;
  border-top: 1px solid var(--linie);
}
.bogen:first-child { border-top: 0; }
.bogen > * { grid-column: 1; }
.bogen > .rand { grid-column: 2; grid-row: span 3; }
.bogen > .breit { grid-column: 1 / -1; }

/* Hopes Notizen */
.notiz {
  font-family: var(--hand);
  color: var(--rot);
  font-size: 2.2rem;
  line-height: 1;
  -webkit-text-stroke: .025em currentColor;
  margin: 0 0 2.5rem;
  transform: rotate(-1.8deg);
  position: relative;
  max-width: 16rem;
}
.notiz:nth-of-type(even) { transform: rotate(1.4deg); }
.notiz .sig { display: block; margin-top: .3rem; font-size: 1.7rem; }
.notiz svg.pfeil {
  position: absolute; left: -3.4rem; top: .2rem; width: 3rem; height: 1.6rem;
  fill: none; stroke: var(--rot); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.notiz.nur-hund { display: none; }
[data-sicht="hund"] .notiz.nur-hund { display: block; }

/* Rotstift-Animation: die Notiz wird „geschrieben“ */
@media (prefers-reduced-motion: no-preference) {
  .js .notiz { clip-path: inset(-10% 100% -10% 0); transition: clip-path 1.1s cubic-bezier(.6, .1, .3, 1); }
  .js .notiz.geschrieben { clip-path: inset(-10% -10% -10% 0); }
}

/* Austausch-Stellen: Menschentext wird durchgestrichen, Hope schreibt drüber */
.tausch { display: inline-flex; flex-direction: column-reverse; align-items: flex-start; }
.tausch .h {
  display: none;
  font-family: var(--hand); color: var(--rot);
  font-size: max(.6em, 1.9rem); font-weight: 400; letter-spacing: 0; line-height: .95;
  -webkit-text-stroke: .02em currentColor;
  transform: rotate(-2deg); margin: 0 0 .1em .2em;
}
.tausch .m {
  text-decoration: line-through;
  text-decoration-color: transparent;
  text-decoration-thickness: .07em;
  transition: text-decoration-color .35s ease, color .35s ease;
}
[data-sicht="hund"] .tausch .h { display: block; }
[data-sicht="hund"] .tausch .m { text-decoration-color: var(--rot); color: color-mix(in srgb, var(--tinte) 55%, var(--papier)); }
@media (prefers-reduced-motion: no-preference) {
  [data-sicht="hund"] .tausch .h { animation: schreiben .8s .15s cubic-bezier(.6, .1, .3, 1) both; }
}
@keyframes schreiben { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% -5% -20% 0); } }

/* Eingeklebte Fotos */
.foto { margin: 0; position: relative; background: #fffdf8; padding: .55rem .55rem 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 24px -14px rgba(60,40,10,.35); }
.foto img { width: 100%; aspect-ratio: var(--ar, auto); object-fit: cover; }
.foto figcaption { font-family: var(--hand); font-size: 1.85rem; line-height: 1; -webkit-text-stroke: .02em currentColor; padding: .5rem .2rem .7rem; color: var(--tinte); }
.foto::before {
  content: ""; position: absolute; z-index: 1; top: -.8rem; left: 50%;
  width: 6.5rem; height: 1.7rem; translate: -50% 0; rotate: -3deg;
  background: rgba(226, 214, 180, .72);
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  clip-path: polygon(2% 0, 98% 4%, 100% 50%, 97% 100%, 1% 96%, 0 45%);
}

/* Knöpfe / Links */
.knopf {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.4rem; border: 1.5px solid var(--tinte);
  background: var(--tinte); color: var(--papier);
  text-decoration: none; font-weight: 560; font-size: 1.05rem;
  border-radius: 2px; transition: background .2s, color .2s;
}
.knopf:hover { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.leise { background: transparent; color: var(--tinte); }
.knopf.leise:hover { background: var(--tinte); border-color: var(--tinte); color: var(--papier); }
.mehr { font-weight: 560; text-decoration: none; border-bottom: 1.5px solid var(--rot); padding-bottom: .1rem; }
.mehr:hover { color: var(--rot); }

/* ---------- 1  Auftakt ---------- */

.auftakt { padding-top: clamp(3rem, 7vw, 6rem); }
.auftakt h1 { margin-bottom: 2rem; }
.auftakt .lead { margin-bottom: 2.2rem; }
.auftakt-reihe { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.auftakt h1 { font-size: clamp(2.9rem, 7.4vw + .3rem, 7.2rem); max-width: 9.5em; }
.auftakt .foto { rotate: 2deg; margin-top: .5rem; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; }
.willkommen { font-family: var(--hand); font-size: 2.2rem; -webkit-text-stroke: .02em currentColor; color: var(--tinte-weich); margin: 2.5rem 0 0; transform: rotate(-1deg); }

/* ---------- 2  Inhaltsverzeichnis ---------- */

.inhalt-liste { list-style: none; margin: 3rem 0 0; padding: 0; counter-reset: k; }
.inhalt-liste li { counter-increment: k; border-top: 1px solid var(--linie); }
.inhalt-liste li:last-child { border-bottom: 1px solid var(--linie); }
.inhalt-liste a {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; column-gap: 1rem;
  padding: 1.6rem 0; text-decoration: none; align-items: baseline;
}
.inhalt-liste a::before {
  content: counter(k, decimal-leading-zero);
  font-size: .9rem; font-weight: 560; color: var(--tinte-weich); font-variant-numeric: tabular-nums;
}
.inhalt-liste h3 { grid-column: 2; }
.inhalt-liste p { grid-column: 2; margin: .5rem 0 0; color: var(--tinte-weich); font-size: 1rem; }
.inhalt-liste .preis { grid-column: 3; grid-row: 1; font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inhalt-liste .preis::before { content: ""; display: inline-block; width: 2.5rem; border-bottom: 1.5px dotted var(--tinte-weich); margin-right: .6rem; vertical-align: .25em; }
.inhalt-liste a:hover h3 .m { text-decoration: underline; text-decoration-color: var(--rot); text-decoration-thickness: 2px; text-underline-offset: .15em; }
[data-sicht="hund"] .inhalt-liste a:hover h3 .m { text-decoration: line-through; }

/* ---------- 3  Haltung ---------- */

.haltung h2 { max-width: 15em; margin-bottom: 2.5rem; }
.haltung-text { columns: 2 18rem; column-gap: 3rem; }
.haltung-text p { break-inside: avoid; }
.lernweg { list-style: none; margin: 2.5rem 0 0; padding: 1.5rem 0 0; border-top: 1px solid var(--linie); display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1.2rem 2rem; font-size: .95rem; }
.lernweg b { display: block; font-variant-numeric: tabular-nums; font-weight: 640; color: var(--rot); }

/* ---------- 4  Wochenplan ---------- */

.plan-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.legende { display: flex; gap: 1.4rem; font-size: .9rem; color: var(--tinte-weich); margin: 0; flex-wrap: wrap; }
.legende span { display: inline-flex; align-items: center; gap: .4rem; }
.hinweis {
  border: 1.5px solid var(--rot); padding: 1rem 1.25rem; margin: 0 0 2rem;
  display: flex; gap: 1rem; align-items: baseline; max-width: 46rem; background: color-mix(in srgb, var(--papier) 70%, #fff);
}
.hinweis strong { color: var(--rot); white-space: nowrap; }
.hinweis p { margin: 0; }

.woche { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--linie); }
.tag { border-right: 1px solid var(--linie); padding: 0 .75rem 1rem; min-width: 0; position: relative; }
.tag h3 { font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; font-variation-settings: "opsz" 14; font-weight: 640; padding: .6rem 0; border-bottom: 1.5px solid var(--tinte); margin-bottom: .8rem; }
.tag ul { list-style: none; margin: 0; padding: 0; }
.tag li { padding: .45rem 0; border-bottom: 1px dashed var(--linie); font-size: .92rem; line-height: 1.3; }
.tag li:last-child { border-bottom: 0; }
.tag time, .tag .zeit { display: block; font-weight: 640; font-variant-numeric: tabular-nums; font-size: .85rem; }
.tag .status { display: block; font-family: var(--hand); color: var(--rot); font-size: 1.6rem; -webkit-text-stroke: .02em currentColor; line-height: 1; margin-top: .15rem; }
.tag .voll .titel { text-decoration: line-through; text-decoration-color: var(--rot); text-decoration-thickness: 2px; color: var(--tinte-weich); }
.tag .frei .status { position: relative; display: inline-block; padding: .1rem .3rem; }
.tag .frei .status svg { position: absolute; inset: -.2rem -.3rem; width: calc(100% + .6rem); height: calc(100% + .4rem); overflow: visible; }
.tag .frei .status path { fill: none; stroke: var(--rot); stroke-width: 1.6; }
.tag.heute { background: color-mix(in srgb, var(--papier-tief) 70%, transparent); }
.tag.heute h3::after { content: "heute"; position: absolute; top: -1.7rem; left: .6rem; font-family: var(--hand); text-transform: none; letter-spacing: 0; color: var(--rot); font-size: 1.8rem; font-weight: 400; rotate: -4deg; }
.plan-fuss { margin-top: 2rem; color: var(--tinte-weich); font-size: .98rem; }

/* ---------- 5  Hopes Kolumne ---------- */

.kolumne-reihe { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.zettel {
  background:
    linear-gradient(transparent calc(2.2rem - 1px), rgba(64, 110, 170, .2) calc(2.2rem - 1px)) 0 1.1rem / 100% 2.2rem,
    #fffdf7;
  padding: 2.2rem 2rem 1.6rem 2.6rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.07), 0 18px 30px -18px rgba(60,40,10,.4);
  rotate: -1.2deg;
  position: relative;
  /* gerissene Unterkante */
  clip-path: polygon(0 0, 100% 0, 100% 97%, 96% 100%, 91% 97.5%, 85% 99.5%, 78% 97%, 70% 99.6%, 62% 97.4%, 55% 99.8%, 47% 97.2%, 39% 99.4%, 31% 97.6%, 23% 99.7%, 15% 97.3%, 8% 99.5%, 0 97.5%);
}
.zettel::before { content: ""; position: absolute; top: 0; bottom: 0; left: 1.8rem; border-left: 1.5px solid var(--rand-linie); }
.zettel h2 { font-size: clamp(1.7rem, 2.4vw + .6rem, 2.6rem); margin-bottom: 1rem; }
.zettel blockquote { margin: 0 0 1.1rem; font-family: var(--hand); font-size: clamp(1.7rem, 1.2vw + 1.3rem, 2.15rem); line-height: 2.2rem; color: var(--tinte); }
.zettel blockquote p { max-width: none; margin: 0 0 2.2rem; }
.zettel blockquote footer { color: var(--rot); }
.zettel .unter { font-size: 1rem; line-height: 2.2rem; margin: 0; }

/* ---------- 6  Klasse ---------- */

.klasse { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.6rem 1.8rem; }
.klasse .foto { --ar: 4 / 5; }
.klasse li:nth-child(4n+1) .foto { rotate: -2.5deg; }
.klasse li:nth-child(4n+2) .foto { rotate: 1.5deg; margin-top: 1.5rem; }
.klasse li:nth-child(4n+3) .foto { rotate: -1deg; }
.klasse li:nth-child(4n+4) .foto { rotate: 2.8deg; margin-top: .8rem; }
.klasse .foto::before { width: 4.5rem; height: 1.3rem; }
.klasse figcaption small { display: block; font-family: var(--serif); font-size: .78rem; color: var(--tinte-weich); margin-top: .15rem; }

/* ---------- Kontakt / Fuß ---------- */

.kontakt h2 { margin-bottom: 1.5rem; }
.telefon {
  display: inline-block; font-size: clamp(2.4rem, 7vw, 6.2rem); font-weight: 640; line-height: 1;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; letter-spacing: -.02em;
  text-decoration: none; font-variant-numeric: lining-nums; margin: .5rem 0 2.5rem; position: relative;
}
.telefon::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: .22em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9 C 60 3, 150 12, 297 5' fill='none' stroke='%23b42318' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
.telefon:hover { color: var(--rot); }
.kontaktdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 3rem; margin: 0; }
.kontaktdaten dt { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-weich); font-weight: 560; }
.kontaktdaten dd { margin: .3rem 0 0; font-size: 1.15rem; }

.fuss { border-top: 1px solid var(--linie); }
.fuss-innen { max-width: var(--max); margin: 0 auto; padding: 1.6rem var(--luft) 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .92rem; color: var(--tinte-weich); }
.fuss ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; margin: 0; padding: 0; }

/* ---------- Tablet ---------- */

@media (max-width: 68rem) {
  :root { --rand: 13rem; }
  .bogen { column-gap: 2.2rem; }
  .woche { grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 0; gap: 0; }
  .tag { border-left: 1px solid var(--linie); border-right: 0; margin-bottom: 1.5rem; }
  .klasse { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav ul { gap: 1.1rem; }
}

/* ---------- Handy: der Rand wandert nach links, Hope schreibt zwischen die Zeilen ---------- */

@media (max-width: 52rem) {
  :root { --luft: 1rem; }
  h1, h2 { hyphens: auto; overflow-wrap: break-word; }
  html { scroll-padding-top: 5rem; }

  .kopf-innen { gap: .6rem; padding-top: .4rem; padding-bottom: .4rem; }
  .logo { width: 3.3rem; }
  .sicht { margin-left: auto; }
  .sicht-wort { padding: .2rem .4rem; font-size: .82rem; }
  .sicht-h { font-size: 1.75rem; }
  .menue-knopf {
    display: inline-flex; align-items: center; gap: .4rem; border: 1.5px solid var(--tinte); background: none;
    font: inherit; font-weight: 560; font-size: .9rem; padding: .45rem .7rem; border-radius: 2px; color: var(--tinte); cursor: pointer;
  }
  .menue-knopf .striche { width: 1rem; height: .7rem; position: relative; border-top: 1.5px solid; border-bottom: 1.5px solid; }
  .menue-knopf .striche::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid; translate: 0 -50%; }
  .nav {
    position: fixed; inset: 0; top: var(--kopf-h, 4rem); background: var(--papier);
    padding: 2rem 1.25rem; display: none; overflow-y: auto; margin: 0;
  }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--linie); }
  .nav a { display: block; padding: 1rem 0; font-size: 1.6rem; font-variation-settings: "opsz" 72, "SOFT" 100; }
  .nav a::after { display: none; }

  .heft { padding-left: 2.2rem; padding-right: 1rem; }
  .heft::before { right: auto; left: 1.15rem; }

  .bogen { grid-template-columns: minmax(0, 1fr); padding: 3.5rem 0; }
  .bogen > .rand { grid-column: 1; grid-row: auto; margin-left: -1.6rem; }
  .notiz { font-size: 2rem; max-width: 20rem; margin: 1.6rem 0; }
  .notiz[style] { margin-top: 1.6rem !important; }
  .rand .foto[style] { margin-top: 2rem !important; max-width: 20rem; } /* Desktop-Abstände im Rand gelten hier nicht */
  .notiz svg.pfeil { display: none; }

  .auftakt-reihe, .kolumne-reihe { grid-template-columns: minmax(0, 1fr); }
  .auftakt .foto { max-width: 22rem; margin-top: 1rem; }

  .inhalt-liste a { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .inhalt-liste .preis { grid-column: 2; grid-row: auto; margin-top: .6rem; }
  .inhalt-liste .preis::before { display: none; }

  .haltung-text { columns: 1; }

  .woche { grid-template-columns: minmax(0, 1fr); }
  .tag { border-left: 0; padding: 0; margin-bottom: 1.2rem; }
  .tag.heute { background: none; }
  .tag.heute h3::after { position: static; margin-left: .5rem; }
  .tag ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0 1rem; }
  .tag li { border-bottom: 1px dashed var(--linie); }
  .hinweis { flex-direction: column; gap: .3rem; }

  .zettel { padding: 2.2rem 1.2rem 1.6rem 2.4rem; rotate: 0deg; margin-left: -1.2rem; }
  .klasse { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   Unterseiten
   ========================================================= */

.menue-notiz { display: none; }

/* Fuß mit allen Seiten */
.fuss-oben {
  max-width: var(--max); margin: 0 auto; padding: 3rem var(--luft) 2rem;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 2rem 3rem; font-size: .98rem;
}
.fuss-oben p { margin: 0 0 .4rem; }
.fuss-name { font-weight: 640; font-size: 1.15rem; font-variation-settings: "opsz" 48, "SOFT" 100; }
.fuss .fuss-seiten { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .35rem 1.5rem; }
.fuss-innen p { margin: 0; }
.fuss-innen { border-top: 1px solid var(--linie); }

/* Seitenkopf */
.seitenkopf h1 { font-size: clamp(2.6rem, 5.4vw + .4rem, 5.6rem); margin-bottom: 1.8rem; max-width: 12em; }
.seitenkopf .lead { margin-bottom: 0; }

/* Sprungmarken als Inhaltsverzeichnis */
.sprung { list-style: none; margin: 2.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; counter-reset: s; }
.sprung li { counter-increment: s; }
.sprung a { text-decoration: none; font-weight: 540; border-bottom: 1.5px solid var(--rand-linie); padding-bottom: .1rem; }
.sprung a::before { content: counter(s, decimal-leading-zero) " "; color: var(--tinte-weich); font-size: .8rem; font-variant-numeric: tabular-nums; }
.sprung a:hover { border-color: var(--rot); color: var(--rot); }

.abschnitt h2 { margin-bottom: 1.6rem; }
.abschnitt .lead { margin-bottom: 1.6rem; }
.zwei { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.zwei:has(> .foto:first-child) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.zwei .foto { rotate: 1.8deg; margin-top: .5rem; }
.zwei .foto.links { rotate: -2deg; }

/* Aufzählung mit Rotstift-Haken */
.haken { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.haken li { position: relative; padding-left: 2rem; margin-bottom: .45rem; }
.haken li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 1.2rem; height: .9rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'%3E%3Cpath d='M2 10 C 5 12, 7 14, 9 16 C 13 9, 17 5, 22 2' fill='none' stroke='%23b42318' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Kurse als Heftseiten-Einträge */
.kurse { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; }
.kurs { border-top: 1.5px solid var(--tinte); padding: 1.3rem 0 2.2rem; }
.kurs h3 { margin-bottom: .3rem; }
.kurs .meta { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-weich); font-weight: 560; margin-bottom: .8rem; }
.kurs p { font-size: 1rem; }
.kurs p:last-child { margin-bottom: 0; }

/* FAQ */
.fragen { margin: 2rem 0 0; }
.fragen div { border-top: 1px solid var(--linie); padding: 1.2rem 0; display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .4rem 2rem; }
.fragen dt { font-weight: 640; font-variation-settings: "opsz" 24; }
.fragen dd { margin: 0; }
.fragen dd p:last-child { margin-bottom: 0; }

/* Preisliste mit Punktlinie */
.preisliste { margin: 2.5rem 0 0; padding: 0; }
.preisliste .gruppe { margin-bottom: 2.8rem; }
.preisliste h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); margin-bottom: 1rem; }
.posten { display: flex; align-items: baseline; gap: .6rem; padding: .7rem 0; border-bottom: 1px solid var(--linie); }
.posten .was { flex: 0 1 auto; }
.posten .was small { display: block; color: var(--tinte-weich); font-size: .9rem; }
.posten .punkte { flex: 1 1 2rem; border-bottom: 2px dotted color-mix(in srgb, var(--tinte) 35%, transparent); transform: translateY(-.3em); min-width: 1.5rem; }
.posten .betrag { flex: none; font-weight: 640; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }

/* Schritte (Kontakt) */
.schritte { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: st; }
.schritte li { counter-increment: st; border-top: 1.5px solid var(--tinte); padding-top: 1rem; }
.schritte li::before { content: counter(st); display: block; font-family: var(--hand); color: var(--rot); font-size: 3.4rem; line-height: .9; -webkit-text-stroke: .02em currentColor; }
.schritte h3 { margin: .3rem 0 .5rem; }
.schritte p { font-size: 1rem; margin: 0; }

/* Zeitleiste / Fortbildungen */
.zeitleiste { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.zeitleiste li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--linie); font-size: 1rem; }
.zeitleiste b { color: var(--rot); font-weight: 640; font-variant-numeric: tabular-nums; }
details.mehr-lesen { margin-top: 2rem; border-top: 1.5px solid var(--tinte); }
details.mehr-lesen summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.mehr-lesen summary::-webkit-details-marker { display: none; }
details.mehr-lesen summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--rot); }
details.mehr-lesen[open] summary::after { content: "–"; }

/* Kolumnenseite */
.kolumne-text { font-size: clamp(1.1rem, .4vw + 1rem, 1.25rem); }
.kolumne-text p { max-width: 34em; }
.kolumne-text h2 { font-family: var(--hand); font-weight: 400; color: var(--rot); font-size: clamp(2.2rem, 2vw + 1.6rem, 3rem); letter-spacing: 0; margin: 2.8rem 0 .8rem; -webkit-text-stroke: .02em currentColor; transform: rotate(-1deg); }
.kolumne-text .gross { font-family: var(--hand); font-size: clamp(1.9rem, 1.5vw + 1.4rem, 2.6rem); line-height: 1.1; margin: 2rem 0; padding-left: 1.2rem; border-left: 3px solid var(--rot); -webkit-text-stroke: .02em currentColor; }

/* Klassenfotos + Klassenliste */
.klasse.gross { grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.klassenliste { columns: 4 12rem; column-gap: 2rem; list-style: none; padding: 0; margin: 2rem 0 0; font-size: .95rem; }
.klassenliste li { break-inside: avoid; padding: .3rem 0; border-bottom: 1px dashed var(--linie); }
.klassenliste b { font-weight: 640; }
.klassenliste span { color: var(--tinte-weich); }
.zaehler { font-family: var(--hand); color: var(--rot); font-size: 2.3rem; line-height: 1; -webkit-text-stroke: .02em currentColor; }

/* Rechtstexte */
.textseite { max-width: 46rem; }
.textseite h2 { font-size: clamp(1.4rem, 1vw + 1.1rem, 1.8rem); margin: 2.4rem 0 .8rem; }
.textseite ol { padding-left: 1.3rem; }
.textseite li { margin-bottom: .6rem; }
.platzhalter { border: 1.5px dashed var(--rot); padding: 1.2rem 1.4rem; background: color-mix(in srgb, var(--papier) 70%, #fff); }

@media (max-width: 68rem) {
  .kurse { grid-template-columns: minmax(0, 1fr); }
  .fuss-oben { grid-template-columns: 1fr 1fr; }
  .fuss-oben nav { grid-column: 1 / -1; }
}

@media (max-width: 52rem) {
  .nav .menue-notiz { display: block; clip-path: none; margin: 2rem 0 0; transform: rotate(-1.5deg); }
  .zwei { grid-template-columns: minmax(0, 1fr); }
  .zwei .foto { max-width: 24rem; }
  .fragen div { grid-template-columns: minmax(0, 1fr); }
  .schritte { grid-template-columns: minmax(0, 1fr); }
  .zeitleiste li { grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .klasse.gross { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fuss-oben { grid-template-columns: minmax(0, 1fr); }
  .posten { gap: 1rem; }
  .posten .was { flex: 1 1 auto; }
  .posten .punkte { display: none; }
}
