/* ==========================================================================
   Seitensystem – der verbindliche Bauteilsatz aller Seiten · 26.10.2026

   Abgeleitet aus der Schulanmeldung, die bis hierher eine Sonderlösung war.
   Ab jetzt gilt: jede Seite wird aus diesen Bausteinen zusammengesetzt,
   keine Seite bringt eigene Flächenfarben, Abstände oder Hero-Varianten mit.

   Flächen: Weiss ist der Normalfall, `warm` (#FFFEFB) und `kuehl` (#FAFCFD)
   sind die beiden einzigen Abweichungen. Gelb und Türkis sind Akzente –
   niemals grosse Flächen. Farbe kommt aus Bildern, Typografie und Kritzeleien.

   Diese Datei wird nach site.css geladen und hat deshalb bei gleicher
   Spezifität Vorrang vor den gewachsenen Regeln.
   ========================================================================== */

.seite { --hand: "Caveat", "Segoe Script", cursive; }
.seite .augenbraue { display: block; color: var(--tuerkis-text); font-size: .76rem; }

/* Gezeichnetes trägt keine Information und bleibt im Hintergrund. */
.page-deko { position: absolute; pointer-events: none; z-index: 0; line-height: 0; }
.seite .kritzel { display: block; width: 100%; height: auto; }


/* --------------------------------------------------------------------------
   1. Hero – der Einstieg jeder Unterseite
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(178deg, #E6F3FA 0%, #F5FBFD 56%, var(--surface) 100%);
  padding: clamp(1.8rem, 1.2rem + 2.4vw, 3.2rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
}
.page-hero-wolke  { top: 7%;  left: -1rem;   width: 150px; color: #9FD4ED; }
.page-hero-wolke2 { top: 62%; left: -1.8rem; width: 108px; color: #BCE2F2; }

.page-hero-raster {
  position: relative; z-index: 1;
  display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.4rem); align-items: center;
}
.page-hero-text .brotkrumen { margin-bottom: 1.2rem; }
.page-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.4vw, 4.1rem);
  line-height: 1.03; letter-spacing: -.035em; color: var(--navy);
  margin: .15rem 0 1rem;
}
.page-hero-zeile { position: relative; display: inline-block; }
.page-hero-sonne {
  position: absolute; top: -.2rem; right: -4.4rem;
  width: clamp(46px, 3.6vw, 66px); color: var(--gelb); line-height: 0;
}
.page-hero-vorspann {
  font-size: clamp(1.02rem, .96rem + .4vw, 1.18rem);
  line-height: 1.65; color: var(--text); max-width: 40ch; margin: 0 0 1.8rem;
}
.page-hero-vorspann:last-child { margin-bottom: 0; }

/* Eine hervorgehobene Angabe (Frist, Zeit, Ort) als ruhige Zeile, nicht als Karte. */
.page-hero-merk {
  display: inline-flex; align-items: flex-start; gap: .8rem; margin: 0;
  padding: .95rem 1.4rem; border-radius: 16px;
  background: #F2F9FC; border: 1px solid #DCEDF6;
  font-size: .98rem; line-height: 1.5; color: var(--text);
}
.page-hero-merk .symbol { color: var(--primaer); flex: none; margin-top: .1rem; }
.page-hero-merk b { font-family: var(--head); font-weight: 800; }

.page-hero-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 0; }
.page-hero-knoepfe .symbol { width: 20px; height: 20px; }

/* Das Bild bekommt eine weiche, unregelmässige Form und einen warmen Fleck. */
.page-hero-bild { position: relative; margin: 0; }
.page-hero-bild::before {
  content: ""; position: absolute; inset: -1.6rem -1.2rem -1rem -2.4rem;
  background: #FCF6E8;
  border-radius: 150px 96px 140px 86px;
  transform: rotate(-2deg);
}
.page-hero-bild img {
  position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 140px 88px 132px 80px;
  box-shadow: 0 18px 44px rgba(47, 74, 90, .14);
}
.page-hero-bild figcaption {
  /* Unter dem Bild statt darüber: oben würde die Handschrift am Rand des
     Einstiegs abgeschnitten, sobald das Foto hoch ist. */
  position: absolute; right: 1.2rem; bottom: -2.2rem; z-index: 1;
  font-family: var(--hand); font-weight: 500; font-size: 1.35rem;
  color: var(--primaer-text); transform: rotate(-4deg); white-space: nowrap;
}
.page-hero-bild figcaption .kritzel { display: inline-block; width: 26px; color: var(--gelb); vertical-align: -.3rem; }

/*
 | Zweiter und letzter Modus: ohne Bild. Flaeche, Abstaende, Brotkrumen,
 | Augenbraue und Schriftgroessen sind dieselben wie mit Bild – nur einspaltig.
 | Die Mindesthoehe gibt den funktionalen Seiten eine gemeinsame Kante, ohne
 | eine leere Bildflaeche zu erzwingen.
 */
.page-hero-schlicht .page-hero-raster { grid-template-columns: minmax(0, 1fr); min-height: 18rem; align-content: center; }
.page-hero-schlicht .page-hero-text { max-width: 54rem; }


/* --------------------------------------------------------------------------
   2. Statement – die grosse Zwischenaussage
   -------------------------------------------------------------------------- */

.page-statement {
  background: #FFFEFB;
  padding: clamp(3.4rem, 2.2rem + 4vw, 5.8rem) 0 clamp(2.6rem, 2rem + 2.4vw, 4rem);
}
.page-statement-raster { display: grid; gap: 1.8rem clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.page-statement h2 {
  margin: 0; color: var(--navy);
  font-size: clamp(2.1rem, 1.1rem + 4.3vw, 4.2rem);
  line-height: 1.06; letter-spacing: -.04em;
}
.page-betont { position: relative; display: inline-block; color: var(--tuerkis-text); }
.page-strich { position: absolute; left: 0; right: .35em; bottom: -.2em; height: .2em; color: var(--gelb); }
.page-strich .kritzel { height: 100%; }

.page-notiz {
  margin: 0; font-family: var(--hand); font-weight: 500;
  font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); line-height: 1.3;
  color: var(--primaer-text); transform: rotate(-4deg);
  position: relative; padding-right: 2.8rem;
}
.page-notiz-herz { position: absolute; right: 0; bottom: 0; width: 30px; color: var(--gelb); line-height: 0; }


/* --------------------------------------------------------------------------
   3. Abschnitt – der Normalfall für Inhalt
   -------------------------------------------------------------------------- */

.page-section {
  background: var(--surface);
  padding: clamp(2.8rem, 2rem + 2.8vw, 4.4rem) 0;
}
.page-section-warm { background: #FFFEFB; }
.page-section-kuehl { background: #FAFCFD; }
.page-section + .page-section { padding-top: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.page-section-warm + .page-section-warm,
.page-section-kuehl + .page-section-kuehl { padding-top: 0; }

.page-section > .inhalt > h2,
.page-section-kopf h2 {
  margin: .3rem 0 0;
  font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: -.03em;
}
.page-section > .inhalt > h2 { margin-bottom: clamp(1.4rem, 1rem + 1.4vw, 2.2rem); }
.page-section h3 { font-size: 1.12rem; letter-spacing: -.02em; }

.page-section-kopf {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
}

/* Der gelbe Strich sitzt unter der Überschrift, nicht als Rahmen darum. */
.page-unterstrichen { position: relative; display: inline-block; padding-bottom: .3rem; }
.page-unterstrichen::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 4.5rem; height: 4px;
  border-radius: 3px; background: var(--gelb);
}
.page-unterstrichen-klein { position: relative; display: inline-block; }
.page-unterstrichen-klein::after {
  content: ""; position: absolute; left: 0; bottom: -.25rem; width: 3.6rem; height: 4px;
  border-radius: 3px; background: var(--gelb);
}

.page-weiterlink {
  font-family: var(--head); font-weight: 700; font-size: .95rem;
  color: var(--primaer-text); text-decoration: none;
  padding: .5rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--blue-line);
}
.page-weiterlink:hover { background: var(--blue-soft); color: var(--primaer-dunkel); }
/*
 | Traegt die Ueberschrift den gelben Strich, richtet sich der Weiterlink an
 | der Schriftkante aus und nicht am Strich: sonst sitzt er sichtbar tiefer
 | als bei einer Ueberschrift ohne Strich.
 */
@media (min-width: 620px) {
  .page-section-kopf:has(.page-unterstrichen) .page-weiterlink { margin-bottom: .3rem; }
}
.page-section-warm .page-weiterlink,
.page-section-kuehl .page-weiterlink { background: var(--surface); }

/* Zwei ruhige Spalten – der Normalfall für Fliesstext mit Nebenangaben. */
.page-spalten { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.4rem); align-items: start; }
.page-spalten > * > :last-child { margin-bottom: 0; }

/* Ein einzelner hervorgehobener Satz ersetzt den früheren Infokasten. */
.page-merksatz {
  margin: clamp(1.4rem, 1rem + 1.2vw, 2rem) 0;
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); line-height: 1.45;
  color: var(--navy); max-width: 46ch;
}
.page-merksatz a { color: var(--primaer-text); }


/* --------------------------------------------------------------------------
   4. Bild und Text
   -------------------------------------------------------------------------- */

.page-bildtext { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.page-bildtext figure { position: relative; margin: 0; }
.page-bildtext figure::before {
  content: ""; position: absolute; inset: 1rem -1rem -1rem 1rem;
  background: #E3F3EE; border-radius: 42px 24px 48px 28px;
}
.page-bildtext-warm figure::before { background: #FCF4E4; }
.page-bildtext figure img {
  position: relative; display: block; width: 100%;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 34px 24px 38px 22px;
}
.page-bildtext figcaption {
  position: relative; margin-top: .9rem;
  font-size: .88rem; color: var(--text-muted);
}
.page-bildtext-text > :last-child { margin-bottom: 0; }
/* Kein einzelnes Wort auf der letzten Zeile eines Absatzes. */
.page-bildtext-text p { text-wrap: pretty; }
.page-bildtext h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.2rem); letter-spacing: -.03em; margin: .3rem 0 .8rem; }

/* Kleine Handschrift als Schlusspunkt eines Textblocks. */
.page-handnotiz {
  margin: 1.4rem 0 0; font-family: var(--hand); font-weight: 500;
  font-size: 1.4rem; line-height: 1.25; color: var(--primaer-text);
  transform: rotate(-3deg); display: inline-block;
}
.page-handnotiz .kritzel { display: inline-block; width: 26px; color: var(--gelb); vertical-align: -.3rem; margin-left: .3rem; }


/* --------------------------------------------------------------------------
   5. Bildband mit organischer Kante
   -------------------------------------------------------------------------- */

.page-bildbereich { position: relative; }
.page-band { position: relative; margin: 0; background: #DCE6EA; }
.page-band img {
  width: 100%; height: clamp(300px, 34vw, 480px);
  object-fit: cover; object-position: center 38%; display: block;
}
/*
 | Die Trenner sind geschlossene Flächen in der Farbe des Nachbarabschnitts:
 | oben setzt sich der Abschnitt darüber ins Bild fort, unten der darunter.
 | Dadurch gibt es keine Streifen und nichts scheint zwischen ihnen durch.
 */
.page-welle { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.page-welle-oben  { top: -1px;    height: clamp(42px, 5vw, 84px); }
.page-welle-unten { bottom: -1px; height: clamp(42px, 5vw, 84px); }
.page-welle-oben path  { fill: var(--surface); }
.page-welle-unten path { fill: var(--surface); }

/*
 | Zu kleine Bilder laufen nicht ueber die ganze Fensterbreite: dort wuerden
 | sie hochgerechnet und unscharf. Sie stehen dann in ihrer echten Groesse
 | mittig im Weiss, mit demselben Radius wie der Aufmacher.
 */
.page-bildbereich.ist-schmal { background: var(--surface); padding: clamp(1rem, 2vw, 2.2rem) 0; }
.page-bildbereich.ist-schmal .page-band {
  width: min(100% - 2.5rem, var(--bildbreite, 900px));
  margin-inline: auto; overflow: hidden;
  border-radius: 28px 52px 28px 52px; background: none;
}
.page-bildbereich.ist-schmal .page-band img { height: auto; }
.page-bildbereich.ist-schmal .page-welle { display: none; }
.page-bildbereich[data-oben="warm"]  .page-welle-oben path  { fill: #FFFEFB; }
.page-bildbereich[data-oben="kuehl"] .page-welle-oben path  { fill: #FAFCFD; }
.page-bildbereich[data-unten="warm"]  .page-welle-unten path { fill: #FFFEFB; }
.page-bildbereich[data-unten="kuehl"] .page-welle-unten path { fill: #FAFCFD; }

.page-band-notiz {
  position: absolute; left: clamp(1.5rem, 6vw, 7rem); bottom: clamp(3.5rem, 7vw, 6rem);
  transform: rotate(-4deg);
  font-family: var(--hand); font-weight: 500;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.2;
  color: #fff; text-shadow: 0 2px 16px rgba(36, 60, 73, .6);
}


/* --------------------------------------------------------------------------
   6. Notizzettel mit Eule – der einzige Hinweiskasten der Website
   -------------------------------------------------------------------------- */

.page-postit {
  position: relative; z-index: 2;
  width: min(100% - 2.5rem, 24rem);
  margin: 0 auto;
  padding: 1.6rem 1.6rem 1.5rem;
  background: linear-gradient(165deg, #FFFAE6 0%, #FDF2CC 100%);
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(47, 74, 90, .10),
              0 18px 36px rgba(47, 74, 90, .14);
  transform: rotate(-2.2deg);
}
.page-postit-eule { position: absolute; top: -2.9rem; right: 1.1rem; line-height: 0; }
.page-postit-eule .eule { width: 66px; height: auto; }
.page-postit > b {
  display: block; font-family: var(--head); font-weight: 800;
  font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem;
}
.page-postit p { margin: 0 0 .7rem; font-size: .95rem; line-height: 1.6; color: var(--text); }
.page-postit p:last-child { margin-bottom: 0; }
.page-postit a { color: var(--primaer-dunkel); }

/* Am Bildband hängt der Zettel über der Kante. */
.page-bildbereich > .page-postit { margin-top: -7rem; }
.page-postit-frei { margin: clamp(2rem, 1.4rem + 2vw, 3rem) auto; }


/* --------------------------------------------------------------------------
   7. Stationen – ein Ablauf in nummerierten Schritten
   -------------------------------------------------------------------------- */

.page-stationen { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.8rem, 1rem + 2.4vw, 2.8rem); }
.page-station { position: relative; }
.page-station-kopf { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; }
.page-nummer {
  display: grid; place-items: center; flex: none;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-family: var(--head); font-weight: 800; font-size: 1.7rem; letter-spacing: -.04em;
}
.page-sinnbild { display: grid; place-items: center; flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; }
.page-sinnbild .symbol { width: 22px; height: 22px; }

.ton-blau    .page-nummer { background: var(--primaer); color: #fff; }
.ton-blau    .page-sinnbild { background: #E4F2FA; color: var(--primaer-text); }
.ton-tuerkis .page-nummer { background: var(--tuerkis); color: var(--navy); }
.ton-tuerkis .page-sinnbild { background: #E0F4F0; color: var(--tuerkis-text); }
.ton-gelb    .page-nummer { background: var(--gelb); color: var(--navy); }
.ton-gelb    .page-sinnbild { background: #FFF4D8; color: #8A6100; }

.page-station h3 { font-size: 1.08rem; margin-bottom: .55rem; letter-spacing: -.02em; }
.page-station p { font-size: .95rem; line-height: 1.68; margin-bottom: .7rem; }
.page-station p:last-child, .page-station ul:last-child { margin-bottom: 0; }
.page-station .liste-haken { margin-bottom: 0; }
.page-station .liste-haken li { font-size: .95rem; line-height: 1.55; margin-bottom: .45rem; }

/* Die gestrichelte Linie verbindet die Stationen. */
@media (min-width: 1040px) {
  .page-stationen-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .page-stationen-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-stationen-4 .page-station:not(:last-child)::after,
  .page-stationen-3 .page-station:not(:last-child)::after {
    content: ""; position: absolute; top: 1.3rem; right: -2rem;
    width: 1.6rem; height: 1rem;
    background: no-repeat center / contain
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 14' fill='none' stroke='%235CC6B7' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M2 10c6-9 18-9 30 0' stroke-dasharray='1 5'/%3E%3C/svg%3E");
  }
}
@media (min-width: 620px) and (max-width: 1039px) {
  .page-stationen-4, .page-stationen-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* --------------------------------------------------------------------------
   8. Linklisten statt Kachelwänden
   -------------------------------------------------------------------------- */

.page-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.page-links li { border-top: 1px solid rgba(47, 74, 90, .09); }
.page-links li:last-child { border-bottom: 1px solid rgba(47, 74, 90, .09); }
.page-links a {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr);
  align-items: center; gap: .2rem .9rem;
  padding: .95rem .2rem; text-decoration: none; color: var(--text);
  transition: transform var(--uebergang), color var(--uebergang);
}
.page-links a:hover, .page-links a:focus-visible { color: var(--primaer-text); transform: translateX(.2rem); }
.page-links-zeichen {
  grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: #EEF6FB; color: var(--primaer-text);
}
.page-links-zeichen .symbol { width: 20px; height: 20px; }
.page-links b { grid-column: 2; grid-row: 1; font-family: var(--head); font-weight: 700; font-size: 1.02rem; color: var(--navy); align-self: end; }
.page-links span.page-links-text { grid-column: 2; grid-row: 2; font-size: .92rem; color: var(--text-muted); align-self: start; }
.page-links a:hover b { color: var(--primaer-text); }

.page-links .ist-wichtig { border-top-color: rgba(246, 198, 78, .7); }
.page-links .ist-wichtig + li { border-top-color: rgba(246, 198, 78, .7); }
.page-links .ist-wichtig .page-links-zeichen { background: #FFF2C7; color: #8A6100; }

/* Gruppierte Listen – für Hubs mit mehreren Themenbereichen. */
.page-linkgruppen { display: grid; gap: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); }
.page-linkgruppe > h3 {
  margin: 0 0 .6rem; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--navy);
}
.page-linkgruppe > .augenbraue { margin-bottom: .2rem; }

@media (min-width: 760px) {
  .page-links-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.6rem, 1rem + 2vw, 3rem); }
  .page-links-zwei li:nth-child(2) { border-top: 1px solid rgba(47, 74, 90, .09); }
  .page-linkgruppen-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* --------------------------------------------------------------------------
   9. Dokumente
   -------------------------------------------------------------------------- */

.page-dateien {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 28rem), 1fr));
}
.page-dateien a {
  display: flex; align-items: center; gap: .95rem; height: 100%;
  padding: .95rem 1.1rem; border-radius: 12px;
  background: var(--surface); border: 1px solid #E2EDF3;
  box-shadow: 0 1px 2px rgba(47, 74, 90, .04);
  text-decoration: none; color: var(--text);
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}
.page-dateien a:hover, .page-dateien a:focus-visible {
  border-color: var(--primaer); box-shadow: 0 8px 20px rgba(47, 74, 90, .07);
}
.page-datei-marke {
  flex: none; display: grid; place-items: center; position: relative;
  width: 2.5rem; height: 2.5rem; color: #D4574E;
}
.page-datei-marke b {
  position: absolute; font-family: var(--head); font-weight: 800;
  font-size: .5rem; letter-spacing: .06em; transform: translateY(.42rem);
}
.page-datei-text { flex: 1 1 auto; }
.page-datei-text > b { display: block; font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--navy); line-height: 1.3; }
.page-datei-hinweis { display: block; margin-top: .15rem; font-size: .88rem; color: var(--text-muted); }
.page-datei-meta { display: block; margin-top: .25rem; font-size: .8rem; color: var(--text-muted); }
.page-datei-pfeil { flex: none; color: var(--primaer); }
.page-dateien a:hover .page-datei-pfeil { color: var(--primaer-dunkel); }


/* --------------------------------------------------------------------------
   10. Abschluss mit Übergang in die Fusszeile
   -------------------------------------------------------------------------- */

.page-cta {
  position: relative; overflow: hidden;
  background: var(--surface);
  padding: clamp(3rem, 2rem + 3.4vw, 4.6rem) 0 clamp(7rem, 4.5rem + 7vw, 11rem);
  /* Der Inhalt sitzt mittig in der Flaeche ueber den Wellen, nicht oben. */
  display: flex; flex-direction: column; justify-content: center;
}
.page-cta-raster { position: relative; z-index: 1; display: grid; gap: 1.6rem clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.page-cta h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.3rem); letter-spacing: -.035em; line-height: 1.2; margin: 0; }
.page-cta-text p { max-width: 48ch; }
.page-cta-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0 0; }
.page-cta-knoepfe .symbol { width: 20px; height: 20px; }
.page-cta-weiter { margin: 1.4rem 0 0; font-size: .95rem; color: var(--text-muted); }
.page-cta-weiter a { color: var(--primaer-text); }
.page-deko-flieger { right: 2%; bottom: 14%; width: 108px; color: var(--primaer); }

.page-huegel { position: absolute; left: 0; bottom: -1px; width: 100%; height: clamp(72px, 9vw, 150px); display: block; }

/* Die Welle ist die Oberkante der Fusszeile – deshalb entfällt dort die Linie. */
body:has(.seite) .fuss { border-top: 0; padding-top: 3.6rem; }


/* --------------------------------------------------------------------------
   11. Breiten und schmale Bildschirme
   -------------------------------------------------------------------------- */

@media (min-width: 901px) {
  .page-hero-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
  .page-statement-raster { grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr); }
  .page-notiz { justify-self: end; }
  /* Gleiche Geometrie auf jeder Seite: gleiche Hoehe, Spalten und Abstaende,
     unabhaengig davon, wie lang der Text des Abschlusses ist. */
  .page-cta { min-height: 30.5rem; }
  .page-cta-raster { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr) 140px; }
  .page-cta-raster-schlank { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .page-spalten-zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-spalten-haupt { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); }

  .page-bildtext { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .page-bildtext-rechts figure { order: 2; }
  .page-bildtext-rechts figure::before { inset: 1rem 1rem -1rem -1rem; }

  /* Der Zettel hängt rechts am Bildband statt darunter. */
  .page-bildbereich > .page-postit {
    position: absolute; right: clamp(2rem, 5vw, 6rem); bottom: -2.5rem;
    margin: 0; width: 21rem;
  }
  .page-band-notiz { left: clamp(2rem, 7vw, 9rem); }
}

@media (max-width: 900px) {
  .page-hero-wolke2 { display: none; }
  .page-hero-wolke { width: 104px; top: 6%; left: -1.6rem; }
  .page-hero-sonne { right: -3.2rem; top: 0; width: 46px; }
  .page-hero-bild::before { inset: -1rem -.8rem -.8rem -1.2rem; }
  .page-notiz { transform: rotate(-3deg); }
  .page-deko-flieger { width: 84px; right: 4%; bottom: 8%; }
  .page-bildbereich > .page-postit { margin-top: -4.5rem; }
}

@media (max-width: 620px) {
  .page-hero-merk { width: 100%; }
  /* Auf dem Telefon bleibt nur die Sonne – eine Wolke hinter dem Text wäre Unruhe. */
  .page-hero-wolke { display: none; }
  .page-band-notiz { left: 1.2rem; bottom: 3.5rem; font-size: 1.3rem; }
  .page-cta-knoepfe .knopf { width: 100%; justify-content: center; }
  .page-hero-knoepfe .knopf { width: 100%; justify-content: center; }
}


/* --------------------------------------------------------------------------
   12. Klassenwahl, Stundenplan und Essenszeiten

   Funktionale Darstellungen, aber mit denselben Mitteln wie der Rest: weiss,
   helle Linien, Blau nur als Akzent. Keine Tabellenoptik aus dem Rechenblatt.
   -------------------------------------------------------------------------- */

.klassenwahl { margin: 0 0 1.8rem; }
.klassenwahl-schild {
  display: block; margin-bottom: .55rem;
  font-family: var(--head); font-weight: 700; font-size: .82rem;
  letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted);
}
.klassenwahl-liste {
  list-style: none; margin: 0; padding: 0 0 .3rem;
  display: flex; flex-wrap: wrap; gap: .45rem;
}
.klassenwahl-liste a {
  display: inline-block; min-width: 2.9rem; padding: .45rem .75rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--primaer-text);
  font-family: var(--head); font-weight: 700; font-size: .98rem;
  text-align: center; text-decoration: none;
  transition: background var(--uebergang), border-color var(--uebergang), color var(--uebergang);
}
.klassenwahl-liste a:hover { border-color: var(--primaer); background: #F2F9FD; }
.klassenwahl-liste a.ist-gewaehlt {
  background: var(--primaer-flaeche); border-color: var(--primaer-flaeche); color: #fff;
}
/* Als Auswahl bleibt die Leiste am Telefon in einer Zeile und scrollt. */
@media (max-width: 620px) {
  .klassenwahl.ist-auswahl .klassenwahl-liste {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .klassenwahl.ist-auswahl .klassenwahl-liste li { flex: none; }
}

.plan-titel {
  margin: 0 0 .9rem; font-size: 1.15rem; color: var(--navy);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem;
}
.plan-titel span { font-family: var(--body); font-weight: 400; font-size: .92rem; color: var(--text-muted); }
.plan-feld + .plan-feld { margin-top: 2.6rem; }
.plan-hinweis { margin: .8rem 0 0; font-size: .92rem; color: var(--text-muted); }

/* Wochenansicht – erst ab Tablet, darunter wäre sie zu eng. */
.plan-woche { display: none; }

@media (min-width: 760px) {
  .plan-woche { display: table; width: 100%; border-collapse: collapse; }
  .plan-tage { display: none; }

  .plan-woche th, .plan-woche td {
    border-bottom: 1px solid var(--border); padding: .6rem .7rem;
    text-align: left; vertical-align: top;
  }
  .plan-woche thead th {
    border-bottom: 2px solid var(--primaer); padding-bottom: .5rem;
    font-family: var(--head); font-weight: 700; font-size: .9rem;
    letter-spacing: .04em; color: var(--navy);
  }
  .plan-woche tbody th {
    width: 8.5rem; background: #FAFCFD; color: var(--text-muted);
    font-weight: 400;
  }
  .plan-woche tbody th b {
    display: block; font-family: var(--head); font-size: 1rem; color: var(--navy);
  }
  .plan-woche tbody th small { font-size: .78rem; letter-spacing: .01em; }
  .plan-woche td {
    font-family: var(--head); font-weight: 600; color: var(--navy); font-size: .98rem;
  }
  .plan-woche td small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--text-muted); }
  .plan-woche td.ist-leer::before { content: "·"; color: var(--border); }
  .plan-woche tbody tr:hover td { background: #F7FBFD; }
}

/* Tagesansicht für das Telefon. */
.plan-tag + .plan-tag { margin-top: 1.4rem; }
.plan-tag h4 {
  margin: 0 0 .5rem; padding-bottom: .35rem;
  border-bottom: 2px solid var(--primaer);
  font-size: 1rem; color: var(--navy);
}
.plan-stunden { list-style: none; margin: 0; padding: 0; }
.plan-stunden li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: .5rem 0; border-bottom: 1px solid var(--border);
}
.plan-stunde { font-size: .9rem; color: var(--text-muted); }
.plan-stunde small { display: block; font-size: .8rem; }
.plan-fach { font-family: var(--head); font-weight: 700; color: var(--navy); text-align: right; }
.plan-frei { margin: .4rem 0 0; font-size: .9rem; color: var(--text-muted); }

/* --- Essenszeiten --------------------------------------------------------- */

.essen-titel { margin: 0 0 .8rem; font-size: 1.15rem; color: var(--navy); }
.essen-feld + .essen-feld { margin-top: 2.2rem; }
.essen-tage { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.essen-tage li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem;
  padding: .7rem .2rem; border-bottom: 1px solid var(--border);
}
.essen-tage li:first-child { border-top: 1px solid var(--border); }
.essen-tage b {
  min-width: 7.5rem; font-family: var(--head); font-weight: 700; color: var(--navy);
}
.essen-zeit { font-family: var(--head); font-weight: 600; color: var(--primaer-text); }
.essen-tage small { font-size: .85rem; color: var(--text-muted); }
.essen-tage .ist-ohne .essen-zeit { color: var(--text-muted); font-weight: 400; }

.essen-gesamt { margin-top: 1.8rem; }
.essen-gesamt summary {
  display: inline-block; padding: .55rem .95rem; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px;
  font-family: var(--head); font-weight: 700; font-size: .95rem; color: var(--primaer-text);
}
.essen-gesamt summary:hover { border-color: var(--primaer); background: #F2F9FD; }
.essen-gesamt[open] summary { margin-bottom: 1.2rem; }
.essen-matrix-rahmen { overflow-x: auto; }
.essen-matrix { width: 100%; min-width: 40rem; border-collapse: collapse; }
.essen-matrix th, .essen-matrix td {
  border-bottom: 1px solid var(--border); padding: .6rem .7rem;
  text-align: left; vertical-align: top;
}
.essen-matrix thead th {
  border-bottom: 2px solid var(--primaer);
  font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--navy);
}
.essen-matrix tbody th {
  width: 7.5rem; background: #FAFCFD; font-family: var(--head); color: var(--navy);
}
.essen-matrix tbody th small { display: block; font-family: var(--body); font-weight: 400; font-size: .78rem; color: var(--text-muted); }
.essen-marke {
  display: inline-block; margin: 0 .3rem .3rem 0; padding: .2rem .55rem;
  border-radius: 999px; background: #EAF4FA;
  font-family: var(--head); font-weight: 700; font-size: .88rem; color: var(--primaer-text);
}
.essen-marke small { font-family: var(--body); font-weight: 400; color: var(--text-muted); margin-left: .25rem; }

.page-weiterlink-zeile { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; }


/* ==========================================================================
   Startseite – die einzige bewusste Ausnahme

   Der Einstieg darf anders sein: das Schulgebäude gross, der Text darauf.
   Alles darunter benutzt dieselben Bausteine und dieselbe Flächenregel
   wie jede Unterseite (weiss, warm, kuehl – sonst nichts).
   ========================================================================== */

.start-hero {
  position: relative; overflow: hidden;
  /*
   | Der Einstieg fuellt den ersten Bildschirm: Sichthoehe minus Kopfzeile.
   | --kopfhoehe wird in navigation.js gemessen (Kopf plus Mitteilungsband),
   | der Ersatzwert traegt die Seite, bis das Skript gelaufen ist. Das max()
   | verhindert ein Quetschen auf sehr flachen Fenstern.
   */
  min-height: max(26rem, calc(100svh - var(--kopfhoehe, 5.6rem)));
  display: flex; align-items: center;
  background: #FAFCFD;   /* liegt hinter dem Foto, ist nur beim Laden sichtbar */
}
.start-hero-bild { position: absolute; inset: 0; margin: 0; }
.start-hero-bild img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
  display: block;
}
/*
 | Ein heller Schleier statt eines dunklen Kastens: links trägt er den Text,
 | nach rechts läuft er vollständig aus, damit das Gebäude sichtbar bleibt.
 */
.start-hero-schleier {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(96deg, rgba(255,255,255,.96) 0%, rgba(255,255,255,.90) 28%,
                    rgba(255,255,255,.62) 46%, rgba(255,255,255,.12) 62%, rgba(255,255,255,0) 74%),
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,0) 30%);
}
.start-hero .inhalt { position: relative; z-index: 2; }
.start-hero-text { max-width: 41rem; padding: clamp(3.5rem, 2rem + 6vw, 6rem) 0 clamp(5rem, 3rem + 7vw, 8rem); }
.start-hero h1 {
  margin: .3rem 0 1rem;
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 3.9rem);
  line-height: 1.04; letter-spacing: -.04em; color: var(--navy);
}
.start-hero-zeile { position: relative; display: inline-block; }
.start-hero-sonne {
  position: absolute; top: -.3rem; right: -4rem;
  width: clamp(44px, 3.4vw, 62px); color: var(--gelb-dunkel); line-height: 0;
}
/*
 | Der Vorspann darf die ganze Textspalte benutzen: auf dem Desktop steht er
 | dadurch in einer Zeile. Der gesetzte Umbruch im Quelltext gilt nur auf
 | schmalen Geräten und trennt dort nach dem Gedankenstrich.
 */
.start-hero-vorspann {
  margin: 0 0 1.8rem; max-width: 42rem;
  font-size: clamp(1.05rem, .98rem + .45vw, 1.22rem); line-height: 1.6; color: var(--text);
  text-wrap: pretty;
}
.start-hero-vorspann span { display: inline; }
.start-hero-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.start-hero-wolke { top: 8%; left: -1.5rem; width: 132px; color: rgba(255,255,255,.85); }
.start-hero-notiz {
  position: absolute; right: clamp(1.5rem, 5vw, 5rem); bottom: clamp(4.5rem, 6vw, 7rem); z-index: 2;
  font-family: var(--hand); font-weight: 500;
  font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.2;
  color: #fff; text-shadow: 0 2px 14px rgba(36, 60, 73, .55);
  transform: rotate(-4deg);
}
.start-hero-notiz .kritzel { display: inline-block; width: 26px; color: #FFE08A; vertical-align: -.25rem; margin-left: .3rem; }
.start-hero-welle {
  position: absolute; left: 0; bottom: -1px; width: 100%; z-index: 2;
  height: clamp(44px, 5.5vw, 92px); display: block; pointer-events: none;
}
.start-hero-welle path { fill: var(--surface); }

@media (max-width: 760px) {
  .start-hero { min-height: 0; display: block; }
  .start-hero-bild { position: relative; height: clamp(14rem, 44vw, 20rem); }
  .start-hero-schleier { display: none; }
  .start-hero-text { padding: 2rem 0 3.5rem; max-width: none; }
  .start-hero-vorspann span { display: block; }
  .start-hero .inhalt { background: var(--surface); }
  .start-hero-notiz { right: 1.2rem; bottom: auto; top: clamp(9rem, 32vw, 14rem); }
  .start-hero-sonne { right: -3rem; width: 42px; }
  .start-hero-knoepfe .knopf { width: 100%; justify-content: center; }
}

/* --- Kennzahlen: Zahl, Bezeichnung, kleines Sinnbild – exakt ausgerichtet -- */
.start-stats { background: var(--surface); padding: clamp(2.2rem, 1.6rem + 2vw, 3.4rem) 0 clamp(2.6rem, 1.8rem + 2.4vw, 3.8rem); }
.start-stats-raster {
  display: grid; gap: clamp(1.4rem, 1rem + 2vw, 3rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}
.start-stat { display: flex; flex-direction: column; align-items: center; gap: .45rem; }
.start-stat-zeichen {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem;
  border-radius: 50%; background: #EAF4FA; color: var(--primaer-text);
}
.start-stat-zeichen .symbol, .start-stat-zeichen .kritzel { width: 22px; height: 22px; }
.start-stat b {
  font-family: var(--head); font-weight: 800; letter-spacing: -.04em; color: var(--navy);
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); line-height: 1;
}
.start-stat span:last-child { font-size: .95rem; color: var(--text-muted); }
@media (max-width: 560px) {
  .start-stats-raster { grid-template-columns: 1fr; gap: 1.4rem; }
  .start-stat { flex-direction: row; justify-content: flex-start; gap: .9rem; text-align: left; }
}

/* --- Schnell gefunden: Liste mit Eulen-Zettel ----------------------------- */
.start-guide-raster { display: grid; gap: clamp(2rem, 1.2rem + 3vw, 3.6rem); align-items: start; }
/* Zwei etwa gleich lange Zeilen statt eines einzelnen Wortes am Zeilenende. */
.start-guide-text > p { max-width: 30rem; color: var(--text-muted); text-wrap: balance; }
/*
 | Eule und Satz sind eine Einheit: die Eule sitzt unten links auf dem Zettel,
 | der Satz steht einzeilig in der Mitte der restlichen Fläche – minimal über
 | der rechnerischen Mitte, weil die Eule unten Gewicht hat.
 */
.start-eulenzettel {
  position: relative; width: min(100%, 23rem); margin: clamp(2rem, 1.2rem + 2vw, 3.2rem) 0 0;
  min-height: 9.5rem; padding: 1.5rem 1.5rem 1.5rem 7.9rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(165deg, #FFFAE6 0%, #FDF2CC 100%);
  border-radius: 3px; transform: rotate(-2deg);
  box-shadow: 0 2px 4px rgba(47,74,90,.10), 0 16px 32px rgba(47,74,90,.13);
}
.start-eulenzettel .eule { position: absolute; left: .5rem; bottom: .2rem; width: 6.8rem; height: auto; transform: rotate(2deg); }
.start-eulenzettel p {
  margin: -.25rem 0 0; font-family: var(--hand); font-weight: 500;
  font-size: 1.3rem; line-height: 1.25; color: var(--primaer-text);
  text-align: center; text-wrap: balance;
}

/* Neun Schnellzugriffe als ruhiges Raster: gleiche Höhe, Sinnbilder zentriert. */
.start-dienste { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.start-dienste a {
  display: grid; justify-items: center; align-content: center; gap: .35rem;
  height: 100%; min-height: 8.2rem; padding: 1.1rem .9rem;
  text-align: center; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.start-dienste a:hover, .start-dienste a:focus-visible {
  border-color: var(--primaer); transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(47,74,90,.08);
}
.start-dienste-zeichen {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: #EAF4FA; color: var(--primaer-text);
}
.start-dienste-zeichen .symbol { width: 20px; height: 20px; }
.start-dienste b { font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--navy); }
.start-dienste small { font-size: .86rem; color: var(--text-muted); }
.start-dienste .ist-wichtig a { background: #FFF4D2; border-color: #F3D88A; }
.start-dienste .ist-wichtig .start-dienste-zeichen { background: #FFE9A8; color: #8A6100; }
/* Alle neun Kacheln sind gleich hoch – auch wenn eine Unterzeile umbricht. */
@media (min-width: 620px) { .start-dienste { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; } }
@media (min-width: 980px) { .start-guide-raster { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); } }

/* --- Aktuelles auf der Startseite ---------------------------------------- */
.start-news { display: grid; gap: clamp(1.8rem, 1rem + 3vw, 3.2rem); align-items: start; }
.start-news a { text-decoration: none; color: var(--text); }
.start-news-lead figure { position: relative; margin: 0 0 1.1rem; }
.start-news-lead img, .start-news-lead .bildplatz {
  display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 28px 52px 28px 52px; background: var(--blue-tint);
}
/* Reicht die Auflösung nicht fuer die grosse Flaeche, bleibt das Bild klein. */
.start-news-lead.ist-klein figure { width: min(100%, var(--bildbreite, 100%)); }

.start-news-lead b {
  display: block; margin: .35rem 0 .45rem;
  font-family: var(--head); font-size: clamp(1.3rem, 1rem + 1.1vw, 1.85rem);
  line-height: 1.2; letter-spacing: -.025em; color: var(--navy);
}
.start-news-lead p { color: var(--text-muted); line-height: 1.6; margin: 0 0 .7rem; max-width: 52ch; }
.start-news-liste { display: grid; gap: 0; }
.start-news-liste article { border-top: 1px solid rgba(47,74,90,.09); }
.start-news-liste article:last-child { border-bottom: 1px solid rgba(47,74,90,.09); }
/* Bildkante und Datumszeile beginnen in jeder Zeile auf derselben Achse. */
.start-news-liste a { display: grid; grid-template-columns: 7.2rem minmax(0,1fr); gap: .95rem; align-items: start; padding: 1rem 0; }
.start-news-liste img, .start-news-liste .bildplatz {
  width: 7.2rem; height: 5rem; object-fit: cover; border-radius: 14px; background: var(--blue-tint);
}
.start-news-liste b { display: block; margin: .2rem 0; font-family: var(--head); font-weight: 700; color: var(--navy); line-height: 1.25; }
.start-news-liste span.auszug { display: block; font-size: .9rem; color: var(--text-muted); }
.start-news a:hover b { color: var(--primaer-text); }
@media (min-width: 900px) { .start-news { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
@media (max-width: 700px) {
  .start-news-liste a { grid-template-columns: 5.6rem minmax(0,1fr); }
  .start-news-liste img, .start-news-liste .bildplatz { width: 5.6rem; height: 4.2rem; }
}

/* --- Termine als drei kompakte Blöcke ------------------------------------- */
.start-termine { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.start-termine li {
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: .9rem; align-items: center;
  padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
}
.start-termin-tag { display: grid; place-items: center; padding: .35rem 0; border-radius: 10px; background: #EAF4FA; }
.start-termin-tag b { font-family: var(--head); font-weight: 800; font-size: 1.25rem; color: var(--primaer-text); line-height: 1; }
.start-termin-tag small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.start-termine b.start-termin-titel { display: block; font-family: var(--head); font-weight: 700; color: var(--navy); }
.start-termine small { color: var(--text-muted); }
@media (min-width: 760px) { .start-termine { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- Kontakt: feine farbige Linien statt schwerer Karten ------------------ */
.start-kontakt-raster { display: grid; gap: clamp(1.6rem, 1rem + 2vw, 2.6rem); }
.start-kontakt-block { position: relative; padding-top: 1.1rem; border-top: 3px solid #7FD8C7; }
.start-kontakt-block:nth-child(2) { border-top-color: #59B5D4; }
.start-kontakt-block:nth-child(3) { border-top-color: var(--gelb); }
.start-kontakt-block h3 { margin: 0 0 .6rem; font-size: 1.08rem; }
.start-kontakt-block p { color: var(--text-muted); line-height: 1.6; }
/* Der Hinweis gehört zur Tabelle darüber und steht deshalb mittig darunter. */
.start-kontakt-weiter { margin: 1.1rem 0 0; text-align: center; }
@media (min-width: 820px) { .start-kontakt-raster { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.page-cta-raster-breit { grid-template-columns: minmax(0, 1fr) !important; }
.page-cta-raster-breit .page-cta-text p { max-width: none; }


/* --- Nachbesserungen aus dem Screenshot-Lauf ------------------------------ */

/* Die Wochentagsreiter brechen um, statt die Seite zu sprengen. */
.tagewahl { flex-wrap: wrap; }

/* Der warme Unterleger des Aufmachers bleibt auf schmalen Geräten im Raster. */
@media (max-width: 760px) {
  .aktuelles-redaktion .aufmacher-bild::before { inset: .6rem 0 -.6rem .6rem; }
  .page-bildtext figure::before,
  .page-bildtext-rechts figure::before { inset: .6rem 0 -.6rem .6rem; }
}

/* Ein zu kleines Aufmacherbild wird nicht hochgerechnet, sondern klein gezeigt. */
.aufmacher-feld.ist-klein .aufmacher-bild img { max-width: min(100%, var(--bildbreite, 19rem)); }
.aufmacher-feld.ist-klein .aufmacher-bild::before { display: none; }

/* Die Kategorienleiste darf scrollen, aber die Seite nicht breiter machen. */
.kategoriefilter-raster > nav { min-width: 0; }
.kategoriefilter ul { max-width: 100%; }

/* In der schmalen Hauptspalte bleibt die Angabenliste einspaltig. */
.page-spalten-haupt .angaben-breit { columns: 1; }
