/* ============================================================
   Cantienica Karlsruhe – Redesign 2026 ("Hell & ruhig")
   Gehört zu includes/template_main_large_kv.inc.php
   Die Klassen aus content/*.php (infobox, sticky_header, …)
   werden weiter unten neu gestaltet, Inhalte bleiben unverändert.
   ============================================================ */

@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/fonts/redesign/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/fonts/redesign/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/fonts/redesign/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("/fonts/redesign/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600 700; font-style: normal; font-display: swap;
  src: url("/fonts/redesign/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600 700; font-style: italic; font-display: swap;
  src: url("/fonts/redesign/source-sans-3-latin-600-italic.woff2") format("woff2"); }

:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --ink: #2b2626;
  --ink-soft: #4a4342;
  --muted: #655c58;
  --line: #ebe3dd;
  --accent: #a1162b;
  --accent-dark: #7f1022;
  --accent-soft: #f7ebec;
  --sand: #f1ebe5;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(43, 38, 38, .04), 0 8px 30px rgba(43, 38, 38, .06);
  --wrap: 1180px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Droid Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.rd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.rd-skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 1000; border-radius: 8px; }
.rd-skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.rd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7em 1.35em; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .98rem; line-height: 1.2;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.rd-btn:hover { text-decoration: none; }
.rd-btn--primary { background: var(--accent); color: #fff; }
.rd-btn--primary:hover { background: var(--accent-dark); color: #fff; }
.rd-btn--ghost { background: rgba(255,255,255,.85); color: var(--ink); border-color: var(--line); }
.rd-btn--ghost:hover { background: #fff; color: var(--accent); border-color: var(--accent); }

/* ---------- Kopfzeile ---------- */
.rd-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.rd-header__inner { display: flex; align-items: center; gap: 40px; min-height: 104px; }

.rd-logo { flex: none; display: block; line-height: 0; }
.rd-logo img { height: 82px; width: auto; }
/* Das Logo-PNG hat einen weißen Hintergrund; multiply lässt ihn in der halbtransparenten Kopfzeile verschwinden */
.rd-logo img { mix-blend-mode: multiply; }

.rd-nav { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 18px; }
.rd-nav ul { list-style: none; margin: 0; padding: 0; }
.rd-nav__list { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.rd-nav__item { position: relative; }
.rd-nav__item > a {
  position: relative; display: block; padding: 12px 12px;
  color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: .005em; line-height: 1.3;
}
.rd-nav__item > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.rd-nav__item > a:hover { color: var(--accent); text-decoration: none; }
.rd-nav__item > a:hover::after, .rd-nav__item.is-current > a::after { transform: scaleX(1); }
.rd-nav__item.is-current > a { color: var(--accent); }

/* Unterseiten stehen am Desktop als Reiter unter dem Kopfbild, nur im Handy-Menü eingerückt */
.rd-nav__sub { display: none; }
/* Die Startseite erreicht man am Desktop über das Logo */
.rd-nav__item:first-child { display: none; }

.rd-burger { display: none; }

/* ---------- Kopfbild ---------- */
.rd-hero {
  position: relative; overflow: hidden;
  margin-top: 24px; height: 300px;
  border-radius: var(--radius);
  background: var(--sand) center 35% / cover no-repeat;
}
.rd-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(43,38,38,.20), rgba(43,38,38,0) 55%); pointer-events: none; }
.rd-hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 35%;
  opacity: 0; transition: opacity 1.4s ease;
}
.rd-hero__slides img.is-active { opacity: 1; }

.rd-hero__card {
  position: absolute; z-index: 2; left: 40px; bottom: 40px; max-width: 540px;
  padding: 26px 30px 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.92); backdrop-filter: blur(6px); box-shadow: var(--shadow);
}
/* Kräftiger Verlauf unten, damit weiße Schrift auch auf hellen Fotos mindestens 3 : 1 erreicht */
.rd-page .rd-hero::after { background: linear-gradient(0deg, rgba(43,38,38,.8) 0%, rgba(43,38,38,.5) 38%, rgba(43,38,38,0) 72%); }
.rd-page .rd-hero__card {
  left: 0; right: 0; bottom: 0; max-width: none; padding: 0 40px 26px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
  background: none; backdrop-filter: none; box-shadow: none; border-radius: 0; color: #fff;
}
.rd-hero__section { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; color: #fff; text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.rd-quick { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.rd-quick__link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; font-size: .98rem; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.rd-quick__link:hover, .rd-quick__link[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Hinweis-Notiz im Kopfbild (aus p.sticky_header der Inhalte) */
.rd-note {
  position: absolute; z-index: 3; top: 24px; right: 24px; max-width: 300px;
  padding: 14px 18px 15px; border-radius: 14px;
  background: rgba(255, 253, 248, .94); backdrop-filter: blur(6px);
  box-shadow: 0 6px 24px rgba(43, 38, 38, .14);
  color: var(--ink); font-size: .95rem; line-height: 1.45;
}
.rd-note__label {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.rd-note__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.rd-note p { margin: 0; }
.rd-note p + p { margin-top: 6px; }
.rd-note a { font-weight: 600; }

/* ---------- Unternavigation: Reiter oben am Inhaltskasten ---------- */
.rd-tabs {
  display: flex; flex-wrap: wrap; gap: 0 4px;
  background: var(--surface); border-radius: var(--radius) var(--radius) 0 0;
  padding: 6px clamp(12px, 6vw, 76px) 0; border-bottom: 1px solid var(--line);
  position: relative; z-index: 1;
}
.rd-tabs a {
  position: relative; padding: 16px 12px 14px; color: var(--muted); font-size: 1rem; font-weight: 600;
}
.rd-tabs a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0;
  background: var(--accent); transform: scaleY(0); transform-origin: bottom; transition: transform .15s;
}
.rd-tabs a:hover { color: var(--ink); text-decoration: none; }
.rd-tabs a[aria-current="page"] { color: var(--accent); }
.rd-tabs a[aria-current="page"]::after, .rd-tabs a:hover::after { transform: scaleY(1); }
.rd-tabs + .rd-content { border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 40px; }

/* ---------- Inhalt ---------- */
/* Kurze Seiten: der Inhaltskasten reicht bis zum unteren Bildschirmrand, die Fußzeile folgt erst beim Scrollen
   (452px = Kopfzeile 104 + Abstand 24 + Kopfbild 300 + Abstand 24) */
main.rd-wrap { flex: 1 0 auto; margin-top: 24px; margin-bottom: 64px; display: flex; flex-direction: column; min-height: calc(100svh - 452px); }
main.rd-wrap > .rd-content { flex: 1 0 auto; }

.rd-content {
  position: relative;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 48px clamp(20px, 6vw, 88px) 56px;
  overflow-wrap: break-word;
}
.rd-content::after { content: ""; display: block; clear: both; }

.rd-content h1, .rd-content h2 {
  font-family: var(--serif); font-weight: 600; color: var(--ink); letter-spacing: -.005em;
  font-variant-numeric: lining-nums;
}
.rd-content h1 { font-size: clamp(2.1rem, 4.2vw, 3rem); line-height: 1.1; margin: 0 0 .45em; }
.rd-content h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); line-height: 1.2; margin: 1.4em 0 .4em; }
.rd-content h3 { font-family: var(--sans); font-size: 1.12rem; font-weight: 600; color: var(--ink); margin: 1.4em 0 .35em; }
.rd-content h3.underline, .rd-content h2.small { border-bottom: 1px solid var(--line); padding-bottom: .3em; }
.rd-content h2.small { font-size: 1.35rem; }
.rd-content > :first-child { margin-top: 0; }
.rd-content sup { font-size: .55em; }

.rd-content p { margin: 0 0 1em; }
.rd-content ul { padding-left: 1.2em; margin: 0 0 1em; }
.rd-content li { margin: .2em 0; }
.rd-content li.auf { list-style: none; }
.rd-content hr, .rd-content hr.soft { border: 0; height: 1px; background: var(--line); margin: 1.5em 0; }
.rd-content table { max-width: 100%; border-collapse: collapse; }
.rd-content td { vertical-align: top; }
.rd-content center { display: block; }

.rd-content .fliess { font-size: 1rem; }
.rd-content .tiny { font-size: .8rem; }
.rd-content b.subhead { color: var(--ink); font-size: 1.1rem; }

/* Fotos im Inhalt */
.rd-content .bild_border, .rd-content #image_startpage, .rd-content #slideshow {
  border: 0; border-radius: var(--radius-sm); box-shadow: var(--shadow); overflow: hidden;
}
.rd-content #image_startpage { width: 100%; max-width: 820px; margin: 1.5em auto; }
/* Vor/Zurück-Pfeile der Slideshow (jqFancyTransitions) auf heller Fläche, damit sie auf jedem Foto lesbar sind */
.rd-content .ft-prev, .rd-content .ft-next {
  width: 34px; height: 34px; margin: 0 10px; border-radius: 50%; text-align: center; line-height: 32px !important;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 600; opacity: 1 !important; text-decoration: none;
}
.rd-content .ft-prev:hover, .rd-content .ft-next:hover { color: var(--accent); text-decoration: none; }
.rd-content #image_startpage img { display: block; width: 100%; }
.rd-content .avatar { border: 0; border-radius: 50%; }

/* Fotogalerie (fotos.php) */
.rd-content .rd-galerie { list-style: none; margin: 1.4em 0 1.2em; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.rd-galerie a { display: block; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); }
.rd-galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.rd-galerie a:hover img { transform: scale(1.03); }
.rd-content .rd-lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #1c1818; }
.rd-lightbox::backdrop { background: transparent; }
.rd-lightbox img { position: absolute; inset: 56px 72px; width: calc(100% - 144px); height: calc(100% - 112px); object-fit: contain; }
.rd-content .rd-lightbox button {
  position: absolute; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--ink); font: 600 1.9rem/1 var(--sans);
}
.rd-content .rd-lightbox button:hover { background: #fff; color: var(--accent); }
.rd-lightbox__zu { top: 16px; right: 16px; }
.rd-lightbox__zurueck { left: 14px; top: 50%; translate: 0 -50%; }
.rd-lightbox__weiter { right: 14px; top: 50%; translate: 0 -50%; }
.rd-lightbox__zahl { position: absolute; left: 0; right: 0; bottom: 14px; margin: 0; text-align: center; color: #fff; font-size: .95rem; }
@media (max-width: 640px) {
  .rd-content .rd-galerie { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .rd-content .rd-lightbox img { inset: 64px 8px; width: calc(100% - 16px); height: calc(100% - 128px); }
  .rd-content .rd-lightbox__zurueck, .rd-content .rd-lightbox__weiter { top: auto; bottom: 8px; translate: none; }
}

/* Kontakt & Anfahrt: oben die Ansprechpartnerinnen, unten beide Studios mit einer gemeinsamen Karte */
.rd-content [id] { scroll-margin-top: 130px; }
.rd-kontakt { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 1.6em 0 2.6em; }
.rd-kontakt__person { padding: 22px 26px; border-radius: var(--radius-sm); background: var(--sand); }
.rd-content .rd-kontakt__person h2 { margin: 0 0 .1em; font-size: 1.5rem; }
.rd-content .rd-kontakt__rolle { margin: 0 0 .7em; color: var(--muted); }
.rd-kontakt__person p:last-child { margin-bottom: 0; }
.rd-anfahrt { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 560px); gap: 24px 48px; align-items: start; }
.rd-standorte > p:first-child { margin-top: 0; }
.rd-standort { margin-top: 1.4em; }
.rd-content .rd-standort h3 { margin: 0 0 .4em; display: flex; align-items: center; gap: 10px; }
.rd-standort__nr {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .95rem; font-weight: 600;
}
.rd-standort p { margin: 0 0 .4em; }
.rd-karte { display: block; border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); line-height: 0; }
.rd-karte img { width: 100%; height: auto; }
.rd-content .rd-karte__quelle { margin-top: .6em; color: var(--muted); font-size: .85rem; }
.rd-content .rd-karte__quelle a { color: var(--muted); text-decoration: underline; }
@media (max-width: 760px) {
  .rd-anfahrt { grid-template-columns: 1fr; }
}
.rd-content #subtil { color: var(--muted); font-size: .85rem; margin-top: .6em; }
.rd-content #subtil a { color: var(--muted); text-decoration: underline; }

.rd-home .rd-content a.div h2 { font-size: 1.35rem; color: var(--ink); }
.rd-home .rd-content a.div:hover h2 { color: var(--accent); }

/* Hinweis-Zettel (sticky_header) als ruhiger Hinweis */
.rd-content .sticky_header {
  position: static; transform: none; opacity: 1;
  width: auto; max-width: 100%; margin: 0 0 1.8em; padding: 16px 22px;
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  box-shadow: none; text-align: left;
  font-family: var(--sans); font-size: 1.02rem; color: var(--ink);
}
.rd-content .sticky_header::after { display: none !important; }
.rd-content .sticky_header b { font-weight: 600; }

/* Infokästen */
.rd-content #infobox, .rd-content #infobox_medium, .rd-content #infobox_small, .rd-content #info_box {
  width: auto; max-width: 100%;
  background: var(--sand); border: 0; border-radius: var(--radius-sm); box-shadow: none;
  padding: 20px 24px; margin: 0 0 1.2em;
}
.rd-content #infobox_medium { float: left; width: 320px; margin-right: 20px; }
.rd-content #infobox_small { width: 220px; }
.rd-content #infobox h2, .rd-content #infobox_medium h2, .rd-content #infobox_small h2 { margin-top: 0; }
.rd-content #error_box, .rd-content #success_box {
  border-radius: var(--radius-sm); padding: 14px 20px; margin: 0 0 1.2em; border: 1px solid;
}
.rd-content #error_box { background: var(--accent-soft); border-color: var(--accent); }
.rd-content #success_box { background: #eef6ec; border-color: #9cc59a; }

#small_content-container { float: right; width: 280px; margin: 0 0 1.5em 2em; }
#small_content-container #infobox_small { width: auto; }
#small_content-text { float: left; max-width: calc(100% - 320px); }

/* Lehrerinnen-Foto (Über mich) */
.rd-content #teacher_image {
  width: 170px; height: 200px; border: 0; border-radius: var(--radius-sm);
  background-size: cover !important; background-position: center !important; box-shadow: var(--shadow);
}
.rd-content .teacher_karin { background: #fff url('../images/bild_karin-altpeter-weiss_2021.png'); }
.rd-content .teacher_hebamme { background: #fff url('../images/bild_karin-hebamme.png'); }
.rd-content .teacher_franzi { background: #fff url('../images/bild_franziska-fery.jpg'); }
.rd-content .teacher_heike { background: #fff url('../images/bild_heike-joachim.jpg'); }
.rd-content td.ueber_content { padding-left: 28px; }

/* Wochenplan-Tabellen */
.rd-content #content-text table.format { background: var(--bg); border-color: var(--line); }
.rd-content #content-text tr.head { background: var(--accent-soft); }
.rd-content p.green, .rd-content p.red { display: inline-block; padding: 2px 10px; border-radius: 999px; color: #fff; margin: 0; }
.rd-content p.green { background: #6f9e4c; }
.rd-content p.red { background: #c9545c; }

/* Eingebettete Karten, Galerie, Buchung */
.rd-content #map_frame { width: 100%; height: 440px; border: 0; border-radius: var(--radius-sm); background: var(--sand); }
.rd-content #gallery_frame { width: 100%; height: 800px; border: 0; }
.rd-content #sportnow_frame { width: 100%; height: 4000px; border: 0; }
.rd-content iframe { max-width: 100%; }

/* Formulare (Kontakt, Anmeldung, Video-Login) */
.rd-content input, .rd-content select, .rd-content textarea {
  font: inherit; color: var(--ink);
  width: 100%; max-width: 420px; padding: 10px 14px;
  background: var(--surface); border: 1px solid #d9cfc8; border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
}
.rd-content textarea { min-height: 180px; }
.rd-content input:focus, .rd-content select:focus, .rd-content textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.rd-content input[type=checkbox], .rd-content input[type=radio] { width: auto; accent-color: var(--accent); }
.rd-content input[type=submit], .rd-content input[type=button], .rd-content button {
  width: auto; cursor: pointer; padding: 10px 26px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem;
}
.rd-content input[type=submit]:hover, .rd-content button:hover { background: var(--accent-dark); }
.rd-content td.formlabel, .rd-content td.formlabel_left, .rd-content td.formlabel_np { padding: 8px 16px 8px 0; color: var(--ink); }

/* "Nach oben"-Pfeile aus den Inhalten dezent */
.rd-content a[href="#top"] img { opacity: .35; transition: opacity .2s; }
.rd-content a[href="#top"]:hover img { opacity: .8; }

/* ---------- Fußzeile ---------- */
.rd-footer { background: #2b2626; color: #cfc6c1; font-size: .95rem; padding-top: 52px; }
.rd-footer a { color: #fff; }
.rd-footer p { margin: 0 0 .7em; }
.rd-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.rd-footer__brand { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #fff; }
.rd-footer__brand sup { font-size: .5em; }
.rd-footer__bottom::before { content: ""; flex-basis: 100%; height: 1px; background: rgba(255,255,255,.12); margin-bottom: 10px; }
.rd-footer__head { color: #fff; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.rd-footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding-top: 0; padding-bottom: 22px; font-size: .85rem; color: #a99f9a;
}

/* Cookie-Hinweis an das Design anpassen */
.cc-window { font-family: var(--sans) !important; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cc-btn { border-radius: 999px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) {
  .rd-header__inner { gap: 24px; }
  .rd-nav__item > a { padding: 12px 8px; font-size: 1.02rem; }
  .rd-nav__item > a::after { left: 8px; right: 8px; }
}

/* ---------- Mobil: Menü als Klapp-Panel ---------- */
@media (max-width: 960px) {
  .rd-wrap { padding: 0 16px; }

  .rd-header__inner { min-height: 68px; gap: 12px; justify-content: space-between; }
  .rd-logo img { height: 54px; }

  .rd-burger {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
    font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer;
  }
  .rd-burger__bars, .rd-burger__bars::before, .rd-burger__bars::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s;
  }
  .rd-burger__bars::before, .rd-burger__bars::after { content: ""; position: absolute; left: 0; }
  .rd-burger__bars::before { top: -6px; }
  .rd-burger__bars::after { top: 6px; }
  .rd-burger[aria-expanded="true"] .rd-burger__bars { background: transparent; }
  .rd-burger[aria-expanded="true"] .rd-burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .rd-burger[aria-expanded="true"] .rd-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .rd-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    max-height: calc(100vh - 68px); overflow-y: auto;
    padding: 12px 16px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .rd-nav.is-open { display: flex; }
  .rd-nav__list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .rd-nav__item:first-child { display: block; }
  .rd-nav__item { border-bottom: 1px solid var(--line); }
  .rd-nav__item > a { padding: 14px 4px; font-size: 1.1rem; }
  .rd-nav__item > a::after { display: none; }
  .rd-nav__sub { display: block; list-style: none; margin: 0; padding: 0 0 12px 14px !important; }
  .rd-nav__sub a { display: block; padding: 6px 8px; color: var(--ink-soft); }
  .rd-nav__sub a[aria-current="page"] { color: var(--accent); font-weight: 600; }

  .rd-hero { height: 180px; margin-top: 16px; border-radius: 14px; }
  .rd-hero__card { left: 14px; right: 14px; bottom: 14px; padding: 18px 20px 20px; max-width: none; }
  .rd-page .rd-hero { height: 160px; }
  .rd-note { top: 12px; left: 12px; right: 12px; max-width: none; padding: 10px 14px; font-size: .88rem; }
  .rd-note__label { margin: 0 6px 0 0; }
  .rd-note p { display: inline; }
  .rd-page .rd-hero:has(.rd-note) { height: 230px; }
  .rd-page .rd-hero__card { padding: 0 18px 16px; gap: 10px; }
  .rd-quick { gap: 4px 16px; flex-wrap: nowrap; }
  .rd-quick__link { font-size: .9rem; }
  .rd-quick__link svg { width: 16px; height: 16px; }

  .rd-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 4px 8px 0; border-radius: 14px 14px 0 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .rd-tabs::-webkit-scrollbar { display: none; }
  .rd-tabs a { flex: none; padding: 14px 10px 12px; font-size: .95rem; }
  .rd-tabs a::after { left: 10px; right: 10px; }
  .rd-tabs + .rd-content { padding-top: 28px; }

  main.rd-wrap { margin-top: 16px; margin-bottom: 40px; min-height: calc(100svh - 280px); }
  .rd-content { padding: 30px 20px 36px; border-radius: 14px; }

  .rd-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .rd-hide-s { display: none; }
  .rd-content #infobox_medium, .rd-content #infobox_small, #small_content-container { float: none; width: auto; margin: 0 0 1.2em; }
  #small_content-text { float: none; max-width: none; }
  .rd-content #map_frame { height: 340px; }
  /* Tabellen-Layouts (z. B. Über mich) untereinander statt nebeneinander */
  .rd-content table, .rd-content tbody, .rd-content tr, .rd-content td { display: block; width: 100% !important; }
  .rd-content td.ueber_content { padding-left: 0; padding-top: 16px; }
  .rd-content #teacher_image { width: 140px; height: 165px; }
}

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