/* ============================================================
   Subpage-Patterns — gemeinsam für alle Detail-Seiten.
   Lädt zusätzlich zu /styles.css.
   ============================================================ */

/* ---------- Subhero (kompakter Kopf statt Pin-Hero) ---------- */
.subhero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px);
  overflow: hidden;
}
.subhero--paper { background: var(--paper-deep); }
.subhero--cream { background: var(--background); }
.subhero__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: end;
}
@media (max-width: 880px) {
  .subhero__inner { grid-template-columns: 1fr; gap: 32px; }
}
.subhero h1 {
  font-size: clamp(48px, 7.5vw, 104px);
  margin: 6px 0 14px;
  line-height: 0.96;
}
.subhero__lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 32ch;
  margin: 0;
}
.subhero__visual {
  position: relative;
}
.subhero__visual .doodle-corner {
  position: absolute;
  top: -28px; right: -10px;
  width: 80px;
  pointer-events: none;
}

/* Breadcrumb — kleiner Pfad, handschriftlich */
.breadcrumb {
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.breadcrumb a {
  color: var(--ink-soft);
  border-bottom: 1.5px dotted var(--ink-muted);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.breadcrumb a:hover { color: var(--primary); border-color: var(--primary); }
.breadcrumb__sep {
  color: var(--bead-coral);
  font-family: var(--font-hand);
  font-weight: 700;
}
.breadcrumb__here { color: var(--ink); }

/* ---------- Pull-Quote (großes Zitat) ---------- */
.pull-quote {
  margin: clamp(32px, 4vw, 56px) auto;
  max-width: 880px;
  padding: clamp(48px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(28px, 3vw, 48px);
  position: relative;
  background: var(--paper-card);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 22px 16px 24px 14px / 16px 22px 14px 24px;
  box-shadow: var(--shadow-sketch-sm);
  transform: rotate(-0.4deg);
}
.pull-quote::before {
  content: '„';
  position: absolute;
  top: -34px; left: 28px;
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive;
  font-size: 84px;
  color: var(--ink);
  font-weight: 700;
  line-height: 0.5;
  box-shadow: 3px 3px 0 var(--ink);
}
.pull-quote blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.4;
  color: var(--ink);
}
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--font-hand);
  font-size: 18px;
  font-style: normal;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- Fact-Bar (Zahlen-Strip) ---------- */
.fact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: clamp(32px, 4vw, 56px) 0;
  border-top: 2px dashed hsl(25 25% 12% / 0.4);
  border-bottom: 2px dashed hsl(25 25% 12% / 0.4);
}
@media (max-width: 720px) {
  .fact-bar { grid-template-columns: repeat(2, 1fr); }
}
.fact-bar__item {
  padding: clamp(20px, 3vw, 36px) 16px;
  text-align: center;
  position: relative;
}
.fact-bar__item + .fact-bar__item::before {
  content: '';
  position: absolute;
  left: 0; top: 16%; bottom: 16%;
  width: 1.5px;
  background-image: linear-gradient(180deg, transparent 0, transparent 6px, hsl(25 25% 12% / 0.3) 6px, hsl(25 25% 12% / 0.3) 12px);
  background-size: 1.5px 12px;
}
@media (max-width: 720px) {
  .fact-bar__item:nth-child(odd)::before { display: none; }
}
.fact-bar__num {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  color: var(--primary);
  display: block;
  margin-bottom: 6px;
}
.fact-bar__label {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--ink-soft);
}

/* ---------- TLDR-Box (Kein-Schulgeld-Banner u.ä.) ---------- */
.tldr-box {
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px) clamp(24px, 3.5vw, 40px);
  background: hsl(45 92% 60% / 0.18);
  border: 2px solid var(--ink);
  border-radius: 22px 14px 24px 12px / 14px 22px 12px 24px;
  box-shadow: var(--shadow-sketch-sm);
  margin: clamp(24px, 3vw, 40px) 0;
  transform: rotate(-0.25deg);
}
.tldr-box__icon {
  flex-shrink: 0;
  width: clamp(48px, 6vw, 72px);
  color: var(--primary);
}
.tldr-box__text { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--ink); margin: 0; }
.tldr-box__text strong { color: var(--primary); }

/* ---------- Spotlight-Card (Material/Konzept-Highlight) ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(32px, 4vw, 56px) 0;
}
@media (max-width: 820px) { .spotlight-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .spotlight-grid { grid-template-columns: 1fr; } }
.spotlight {
  background: var(--paper-card);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 18px 12px 20px 10px / 12px 18px 10px 20px;
  box-shadow: var(--shadow-sketch-sm);
  padding: clamp(20px, 2.5vw, 28px);
  position: relative;
  transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s var(--ease-out-expo);
}
.spotlight:nth-child(3n+1) { transform: rotate(-0.6deg); }
.spotlight:nth-child(3n+2) { transform: rotate(0.4deg); }
.spotlight:nth-child(3n+3) { transform: rotate(-0.3deg); }
.spotlight:hover { transform: translateY(-3px) rotate(0); box-shadow: 6px 9px 0 hsl(25 25% 12% / 0.12); }
.spotlight__bead {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  margin-bottom: 12px;
}
.spotlight h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.spotlight p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Download-Card (PDF-Block) ---------- */
.downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: clamp(24px, 3vw, 40px) 0;
}
@media (max-width: 720px) { .downloads { grid-template-columns: 1fr; } }
.download-card {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  background: var(--paper);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 16px 10px 18px 8px / 10px 16px 8px 18px;
  box-shadow: var(--shadow-sketch-sm);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s;
  text-decoration: none;
  color: var(--ink);
}
.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 4px 6px 0 hsl(25 25% 12% / 0.12);
}
.download-card__icon { flex-shrink: 0; width: 36px; height: 40px; color: var(--primary); }
.download-card__name {
  display: block;
  font-family: 'Patrick Hand', cursive;
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 2px;
  color: var(--ink);
}
.download-card__meta { font-size: 13px; color: var(--ink-muted); }

/* ---------- Vertical-Timeline (Chronik) ---------- */
.vt {
  position: relative;
  padding: 24px 0;
  margin: clamp(40px, 5vw, 80px) auto;
  max-width: 980px;
}
.vt::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2.5px;
  transform: translateX(-50%);
  background-image: linear-gradient(180deg, transparent 0 8px, hsl(25 25% 12% / 0.55) 8px 16px);
  background-size: 2.5px 16px;
}
@media (max-width: 760px) {
  .vt::before { left: 28px; }
}
.vt__year {
  position: relative;
  margin: 56px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 760px) {
  .vt__year { grid-template-columns: 56px 1fr; padding-left: 0; }
}
.vt__year:nth-child(odd) .vt__card { grid-column: 1; text-align: right; }
.vt__year:nth-child(odd) .vt__pad  { grid-column: 3; }
.vt__year:nth-child(even) .vt__card { grid-column: 3; text-align: left; }
.vt__year:nth-child(even) .vt__pad  { grid-column: 1; }
@media (max-width: 760px) {
  .vt__year:nth-child(odd) .vt__card,
  .vt__year:nth-child(even) .vt__card {
    grid-column: 2; text-align: left;
  }
  .vt__year:nth-child(odd) .vt__pad,
  .vt__year:nth-child(even) .vt__pad { display: none; }
}
.vt__node {
  grid-column: 2;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--paper-card);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  position: relative;
  z-index: 2;
}
@media (max-width: 760px) {
  .vt__node { grid-column: 1; }
}
.vt__node--big {
  background: var(--accent);
  width: 72px; height: 72px;
  font-size: 26px;
}
.vt__node--coral { background: var(--bead-coral); color: var(--ink); }
.vt__node--mint { background: var(--bead-mint); }
.vt__node--rose { background: var(--bead-rose); }
.vt__node--sky { background: var(--bead-sky); }

.vt__card {
  background: var(--paper-card);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 18px 12px 20px 10px / 12px 18px 10px 20px;
  box-shadow: var(--shadow-sketch-sm);
  padding: 18px 22px;
  align-self: start;
}
.vt__year:nth-child(odd) .vt__card { transform: rotate(-0.6deg); }
.vt__year:nth-child(even) .vt__card { transform: rotate(0.4deg); }
.vt__card h3 {
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.15;
  margin-bottom: 6px;
}
.vt__card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0 0 8px;
}
.vt__card p:last-child { margin-bottom: 0; }
.vt__date {
  font-family: var(--font-hand);
  font-size: 16px;
  color: var(--bead-coral);
  display: block;
  margin-bottom: 4px;
}

/* Lücken-Marker (Chronik 2017–2024) */
.vt__gap {
  position: relative;
  margin: 40px 0;
  text-align: center;
}
.vt__gap span {
  display: inline-block;
  padding: 12px 24px;
  background: var(--paper-deep);
  border: 1.5px dashed hsl(25 25% 12% / 0.4);
  border-radius: 999px;
  font-family: var(--font-hand);
  font-size: 17px;
  color: var(--ink-muted);
  position: relative;
  z-index: 2;
}

/* ---------- Scene-Card (drei parallele Szenen, Freiarbeit) ---------- */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 32px);
  margin: clamp(32px, 4vw, 48px) 0;
}
@media (max-width: 820px) { .scene-grid { grid-template-columns: 1fr; } }
.scene {
  background: var(--paper-card);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 18px 12px 20px 10px / 12px 18px 10px 20px;
  box-shadow: var(--shadow-sketch);
  padding: 24px 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scene:nth-child(1) { transform: rotate(-1.2deg); }
.scene:nth-child(2) { transform: rotate(0.8deg); }
.scene:nth-child(3) { transform: rotate(-0.5deg); }
.scene__age {
  display: inline-block;
  font-family: var(--font-hand);
  font-size: 15px;
  color: var(--secondary);
  letter-spacing: 0.04em;
}
.scene h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  margin: 0;
}
.scene p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}
.scene__sketch {
  align-self: flex-end;
  font-family: var(--font-hand);
  font-size: 60px;
  line-height: 1;
  color: var(--bead-coral);
  opacity: 0.6;
}

/* ---------- CTA-Banner (Anmelde-CTA, Hospitations-Link) ---------- */
.cta-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 3vw, 36px) clamp(28px, 4vw, 48px);
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, hsl(45 92% 60% / 0.18), transparent 70%),
    var(--paper-card);
  border: 2px solid var(--ink);
  border-radius: 24px 16px 26px 14px / 16px 24px 14px 26px;
  box-shadow: var(--shadow-sketch-sm);
  margin: clamp(32px, 4vw, 48px) 0;
}
@media (max-width: 720px) { .cta-banner { grid-template-columns: 1fr; } }
.cta-banner h3 {
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
  margin-bottom: 6px;
}
.cta-banner p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; }
.cta-banner__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--primary);
  color: var(--paper);
  font-family: 'Patrick Hand', cursive;
  font-size: 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-banner__btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 var(--ink);
}
.cta-banner__btn svg { width: 20px; height: 14px; color: var(--paper); }

/* ---------- Card-Link mit Pfeil (für Hub-Karten zu Detail-Seiten) ---------- */
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Patrick Hand', cursive;
  font-size: 17px;
  color: var(--primary);
  margin-top: 12px;
  text-decoration: none;
  border-bottom: 1.5px dashed transparent;
  transition: border-color 0.2s, gap 0.2s;
}
.card-link svg { width: 24px; height: 14px; color: var(--primary); transition: transform 0.2s; }
.card-link:hover { border-color: var(--primary); gap: 14px; }
.card-link:hover svg { transform: translateX(3px); }

/* ---------- Long-form Body — saubere Lesebreite ---------- */
.longread {
  max-width: 720px;
  margin: 0 auto;
}
.longread > p,
.longread > ul,
.longread > ol {
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}
.longread > p strong { color: var(--ink); }
.longread h2, .longread h3 {
  margin-top: clamp(36px, 4vw, 56px);
  margin-bottom: 0.4em;
}
.longread ul li, .longread ol li { margin-bottom: 8px; }

/* ---------- Side-by-Side (Grundschule/Gesamtschule auf Anmeldung) ---------- */
.side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin: clamp(32px, 4vw, 56px) 0;
}
@media (max-width: 820px) { .side-by-side { grid-template-columns: 1fr; } }
.sbs-card {
  background: var(--paper-card);
  border: 1.5px solid hsl(25 25% 12% / 0.85);
  border-radius: 22px 16px 24px 14px / 16px 22px 14px 24px;
  box-shadow: var(--shadow-sketch-sm);
  padding: clamp(24px, 3vw, 36px);
  position: relative;
}
.sbs-card:nth-child(1) { transform: rotate(-0.5deg); }
.sbs-card:nth-child(2) { transform: rotate(0.5deg); }
.sbs-card__bead {
  position: absolute;
  top: -14px; left: 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}
.sbs-card h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  margin-bottom: 4px;
}
.sbs-card .meta {
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: var(--secondary);
  margin-bottom: 16px;
  display: block;
}
.sbs-card ul { list-style: none; padding: 0; margin: 16px 0; }
.sbs-card ul li {
  padding: 6px 0 6px 22px;
  position: relative;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.sbs-card ul li::before {
  content: '→';
  position: absolute;
  left: 0; top: 6px;
  color: var(--primary);
  font-weight: 700;
}
.sbs-card .deadline {
  display: inline-block;
  padding: 6px 14px;
  background: hsl(12 75% 55% / 0.12);
  border: 1.5px solid var(--primary);
  border-radius: 999px;
  font-family: 'Patrick Hand', cursive;
  font-size: 15px;
  color: var(--primary);
  margin-top: 8px;
}

/* Termin-Liste (Anmeldung-Subpage) */
.termine-list {
  list-style: none;
  padding: 0;
  margin: clamp(24px, 3vw, 40px) 0;
}
.termine-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px dashed hsl(25 25% 12% / 0.2);
  align-items: start;
}
@media (max-width: 600px) {
  .termine-list li { grid-template-columns: 1fr; gap: 6px; }
}
.termine-list .when {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.05;
  color: var(--ink);
}
.termine-list .when small { display: block; font-size: 14px; color: var(--ink-muted); font-family: 'Patrick Hand', cursive; font-weight: 400; margin-top: 2px; }
.termine-list .what { font-size: 16px; color: var(--ink-soft); }
.termine-list .what strong { color: var(--ink); }
.termine-list .what .note { display: block; font-family: 'Patrick Hand', cursive; font-size: 14px; color: var(--ink-muted); margin-top: 4px; }
.termine-list li.is-past .when,
.termine-list li.is-past .what { color: var(--ink-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.termine-list li.is-past .what::after {
  content: ' — abgelaufen';
  font-family: 'Patrick Hand', cursive;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 13px;
}

/* ---------- Sticky Sub-Nav (für Long-Hub-Seiten wie /paedagogik/) ---------- */
.section-nav {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: hsl(40 45% 94% / 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px dashed hsl(25 25% 12% / 0.15);
  padding: 12px 0;
  margin: 0 0 clamp(32px, 4vw, 56px);
}
.section-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.section-nav a {
  display: inline-block;
  padding: 6px 14px;
  font-family: 'Patrick Hand', cursive;
  font-size: 16px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.section-nav a:hover, .section-nav a.is-active {
  background: hsl(45 92% 60% / 0.4);
  color: var(--ink);
}

/* ---------- Inline-Quote (klein, im Fließtext) ---------- */
.inline-q {
  margin: 24px 0;
  padding: 14px 20px;
  border-left: 3px solid var(--bead-coral);
  background: hsl(12 80% 68% / 0.08);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  border-radius: 0 8px 8px 0;
}
.inline-q cite {
  display: block;
  font-family: 'Patrick Hand', cursive;
  font-size: 14px;
  font-style: normal;
  color: var(--ink-soft);
  margin-top: 6px;
}
