/*
Theme Name: Bard Pro – STS Finkenwerder
Description: Child-Theme von Bard Pro für die Stadtteilschule Finkenwerder. Logo in der Menüleiste, Vertretungsplan-Button, Störer für Anmelderunden.
Template: bard-pro-premium
Version: 1.16.3
Text Domain: bard-pro-stsf
*/

/* ==========================================================
   Schrift Open Sans – lokal im Theme (keine Verbindung zu Google).
   Lizenz: SIL Open Font License, siehe assets/fonts/OFL.txt
   ========================================================== */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/open-sans-regular.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 400; font-display: swap; src: url('assets/fonts/open-sans-italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/open-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 600; font-display: swap; src: url('assets/fonts/open-sans-600italic.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700 800; font-display: swap; src: url('assets/fonts/open-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: italic; font-weight: 700 800; font-display: swap; src: url('assets/fonts/open-sans-700italic.woff2') format('woff2'); }

/* ==========================================================
   0. Sprungmarken (z. B. /seite/#anmeldung-...)
   Die feste Menüleiste soll das Sprungziel nicht verdecken.
   ========================================================== */

html { scroll-behavior: smooth; }

[id]:target,
.page-content h2[id],
.page-content h3[id] {
  scroll-margin-top: 110px;
}

.admin-bar [id]:target,
.admin-bar .page-content h2[id],
.admin-bar .page-content h3[id] {
  scroll-margin-top: 142px; /* + WordPress-Adminleiste */
}

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

/* ==========================================================
   1. Logo in der Menüleiste
   ========================================================== */

.stsf-nav-logo {
  display: inline-block;
  vertical-align: middle;
  margin-right: 18px;
  line-height: 0;
}

.stsf-nav-logo img {
  display: block;
  width: auto;
  max-height: 46px;
  padding: 6px 0;
}

/* Helles Feld hinter dem Logo, damit es sich von der Menüleiste abhebt */
.stsf-nav-logo.has-bg {
  background-color: var(--stsf-logo-bg, #ffffff);
  border-radius: 6px;
  padding: 4px 10px;
  margin-top: 5px;
  margin-bottom: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
}

.stsf-nav-logo.has-bg img {
  padding: 0;
  max-height: 38px;
}

/* Logo + Alt-Sidebar-Button nebeneinander */
.main-nav-buttons {
  display: flex;
  align-items: center;
  height: 100%;
}

/* ==========================================================
   2. Vertretungsplan-Button
   Nur in der Handy-/Tablet-Ansicht (bis 979px). Am Desktop
   steht der Link wie bisher in der Sidebar.
   ========================================================== */

#main-nav .stsf-vp-btn,
.stsf-qa-panel {
  display: none;
}

/* Schnellzugriff-Panel (Handy/Tablet): klappt unter der Menüleiste auf */
#main-nav button.stsf-vp-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

@media screen and (max-width: 979px) {
  .stsf-qa-panel:not([hidden]) {
    display: block;
    position: fixed;
    left: 12px;
    right: 12px;
    top: var(--stsf-qa-top, 64px);
    z-index: 1300;
    max-height: calc(100vh - var(--stsf-qa-top, 64px) - 16px);
    overflow-y: auto;
    padding: 12px;
    background: #f3ede7;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .3);
  }
  .stsf-qa-panel .stsf-sb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stsf-qa-panel a.stsf-sb-tile { min-height: 70px; }

  /* Menü-Linkstile (weiß, Großbuchstaben) im Panel aufheben */
  #main-nav .stsf-qa-panel a.stsf-sb-tile {
    color: #005086 !important;
    background: #ffffff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    padding: 10px 6px;
    height: auto;
  }
  #main-nav .stsf-qa-panel a.stsf-sb-tile:hover,
  #main-nav .stsf-qa-panel a.stsf-sb-tile:focus-visible {
    color: #ffffff !important;
    background: #005086;
  }
  #main-nav .stsf-qa-panel .stsf-sb-tiles { list-style: none; margin: 0; padding: 0; }
  #main-nav .stsf-qa-panel .stsf-sb-tiles li { float: none; display: block; height: auto; line-height: normal; }
}

/* Desktop: Schnellzugriff steht in der Sidebar, kein Button */
@media screen and (min-width: 980px) {
  #main-nav .stsf-qa,
  #main-nav .stsf-vp-btn,
  .stsf-qa-panel { display: none !important; }
}

.stsf-vp-short { display: none; }

/* ==========================================================
   3. Störer (Anmelderunde) – schmaler Balken
   ========================================================== */

.stsf-stoerer {
  position: relative;
  background-color: var(--stsf-st-bg, #f4b400);
  color: var(--stsf-st-text, #111111);
  padding: 9px 48px 9px 20px;
  font-size: 14px;
  line-height: 1.4;
  /* über dem Hauptmenü (Bard: #main-nav z-index 1100) */
  z-index: 1200;
}

.stsf-stoerer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  text-align: center;
}

.stsf-stoerer-title {
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stsf-stoerer-next .stsf-next-label {
  opacity: .8;
  margin-right: 4px;
}

/* "Alle Termine" zum Aufklappen */
.stsf-stoerer-more summary {
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  list-style: none;
}

.stsf-stoerer-more summary::-webkit-details-marker { display: none; }

.stsf-stoerer-more summary::after {
  content: " ▾";
  text-decoration: none;
  display: inline-block;
  margin-left: 2px;
}

.stsf-stoerer-more[open] summary::after { content: " ▴"; }

/* Aufgeklappte Liste legt sich ÜBER die Seite, statt sie nach unten zu schieben */
.stsf-stoerer-panel {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px));
  background-color: var(--stsf-st-bg, #f4b400);
  color: var(--stsf-st-text, #111111);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  padding: 14px 20px 18px;
  text-align: left;
}


/* Terminliste (Störer-Panel und Terminbox) */
.stsf-date-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stsf-date-list li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,.12);
  display: flex;
  flex-wrap: wrap;
  gap: 2px 10px;
}

.stsf-date-list li:last-child { border-bottom: 0; }

.stsf-date {
  white-space: nowrap;
  min-width: 96px;
}

/* Anklickbare Termine */
.stsf-stoerer a.stsf-date-link,
.stsf-termine-box a.stsf-date-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.stsf-date-link .stsf-date-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.stsf-date-arrow {
  margin-left: auto;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease;
}

.stsf-date-link:hover .stsf-date-arrow,
.stsf-date-link:focus .stsf-date-arrow {
  transform: translateX(3px);
}

.stsf-date-link:hover .stsf-date-text { text-decoration-thickness: 2px; }

/* Nächster Termin im Balken: Pfeil weglassen, nur unterstreichen */
.stsf-stoerer-next a.stsf-date-link {
  display: inline;
  width: auto;
}

.stsf-stoerer-next .stsf-date-arrow { display: none; }

/* Buttons */
.stsf-stoerer a.stsf-stoerer-btn,
.stsf-termine-box a.stsf-stoerer-btn {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 4px;
  background: var(--stsf-st-text, #111111);
  color: var(--stsf-st-bg, #f4b400);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.stsf-stoerer a.stsf-stoerer-btn:hover,
.stsf-termine-box a.stsf-stoerer-btn:hover { filter: brightness(1.15); }

.stsf-stoerer-close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  color: inherit;
  font-size: 19px;
  line-height: 28px;
  cursor: pointer;
  padding: 0;
}

.stsf-stoerer-close:hover { background: rgba(0,0,0,.22); }

.stsf-stoerer.is-hidden { display: none; }

/* ==========================================================
   4. Terminbox (Shortcode [stsf_termine]) – z. B. auf der Startseite
   ========================================================== */

.stsf-termine-box {
  background-color: var(--stsf-st-bg, #f4b400);
  color: var(--stsf-st-text, #111111);
  border-radius: 8px;
  padding: 22px 24px;
  margin: 0 0 30px;
}

.page-content .stsf-termine-box .stsf-termine-title {
  color: inherit;
  margin: 0 0 6px;
  font-size: 20px;
}

.stsf-termine-text { margin: 0 0 10px; }

.stsf-termine-box .stsf-date-list { margin-bottom: 0; }

/* Ziehharmonika: Termine mit Infotext */
.stsf-termine-box li.has-info { display: block; padding: 0; }

.stsf-date-acc summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 7px 0;
  cursor: pointer;
  list-style: none;
}

.stsf-date-acc summary::-webkit-details-marker { display: none; }

.stsf-date-acc summary:hover .stsf-date-text { text-decoration: underline; }

/* Plus/Minus-Symbol rechts */
.stsf-acc-icon {
  margin-left: auto;
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  align-self: center;
}

.stsf-acc-icon::before,
.stsf-acc-icon::after {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: transform .2s ease;
}

.stsf-acc-icon::after { transform: rotate(90deg); }
.stsf-date-acc[open] .stsf-acc-icon::after { transform: rotate(0deg); }

.stsf-date-info {
  padding: 2px 0 12px;
  font-size: .95em;
}

.stsf-date-info p { margin: 0 0 6px; }
.stsf-date-info a { color: inherit; text-decoration: underline; }

.stsf-termine-box a.stsf-date-more {
  display: inline-block;
  margin-top: 4px;
  font-weight: 700;
}

/* ----------------------------------------------------------
   4a. Terminliste als zwei Spalten: Datum rechtsbündig | Titel linksbündig
   (Störer-Panel und Terminbox)
   ---------------------------------------------------------- */
.stsf-date-list {
  --stsf-dw: 8.6em;   /* Breite der Datumsspalte */
  --stsf-gap: 14px;
}

.stsf-date-list li:not(.has-info),
.stsf-date-list a.stsf-date-link,
.stsf-date-acc summary {
  display: grid;
  grid-template-columns: var(--stsf-dw) minmax(0, 1fr) auto;
  column-gap: var(--stsf-gap);
  row-gap: 0;
  align-items: baseline;
}

.stsf-date-list li > a.stsf-date-link { grid-column: 1 / -1; }

.stsf-date-list .stsf-date {
  grid-column: 1;
  min-width: 0;
  text-align: right;
}

.stsf-date-list .stsf-date-text { grid-column: 2; }

.stsf-date-list .stsf-date-arrow,
.stsf-date-list .stsf-acc-icon {
  grid-column: 3;
  margin-left: 0;
}

/* Infotext unter dem Titel ausrichten (Info hat .95em Schriftgröße) */
.stsf-date-list .stsf-date-info {
  padding-left: calc(var(--stsf-dw) / .95 + var(--stsf-gap));
}

@media (max-width: 480px) {
  .stsf-date-list { --stsf-dw: 7.2em; --stsf-gap: 10px; }
  .stsf-date-list .stsf-date { white-space: normal; font-size: .88em; }
  /* Infotext auf dem Handy über die volle Breite */
  .stsf-date-list .stsf-date-info { padding-left: 0; }
  .stsf-termine-box .stsf-date-list li,
  .stsf-termine-box .stsf-date-list li.has-info { padding-left: 12px; padding-right: 14px; }
}

/* ----------------------------------------------------------
   4a2. Terminbox aufgelockert: farbige Kopfzeile, helle Liste mit Streifen
   ---------------------------------------------------------- */
.stsf-termine-box {
  --stsf-tint: #e7f7fc;
  --stsf-tint: color-mix(in srgb, var(--stsf-st-bg, #13bae6) 11%, #ffffff);
  --stsf-tint-2: #d3f0f9;
  --stsf-tint-2: color-mix(in srgb, var(--stsf-st-bg, #13bae6) 20%, #ffffff);
  background: #ffffff;
  color: #1d1d1b;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--stsf-st-bg, #13bae6);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 40, 70, .07);
}

.page-content .stsf-termine-box .stsf-termine-title,
.stsf-termine-box .stsf-termine-title {
  margin: 0;
  padding: 12px 20px;
  background: var(--stsf-st-bg, #13bae6);
  color: var(--stsf-st-text, #111111);
}

.stsf-termine-box .stsf-termine-text { padding: 12px 20px 0; margin: 0; }

.stsf-termine-box .stsf-date-list { padding: 6px 0 8px; }

.stsf-termine-box .stsf-date-list li {
  border-bottom: 0;
  padding: 9px 20px;
}

.stsf-termine-box .stsf-date-list li.has-info { padding: 0 20px; }
.stsf-termine-box .stsf-date-acc summary { padding: 9px 0; }

.stsf-termine-box .stsf-date-list li:nth-child(odd) { background: var(--stsf-tint); }

.stsf-termine-box .stsf-date-list li.has-info:hover,
.stsf-termine-box .stsf-date-list li:has(> a):hover { background: var(--stsf-tint-2); }

.stsf-termine-box .stsf-date { color: #005086; }

.stsf-termine-box .stsf-acc-icon { color: #005086; }

.stsf-termine-box a.stsf-date-more { color: #005086; }

/* ==========================================================
   4b. Formulare mit html_class="stsf-form" (z. B. Schnupperunterricht)
   ========================================================== */

.stsf-form {
  max-width: 560px;
}

/* Karte um Überschrift + Formular (Gruppen-Block mit Klasse stsf-form-card) */
.stsf-form-card {
  max-width: 720px;
  margin: 44px auto 16px;
  padding: 30px 40px 34px;
  background: #ffffff;
  border-radius: 12px;
  border-top: 5px solid var(--stsf-st-bg, #13bae6);
  box-shadow: 0 6px 24px rgba(0, 40, 70, .08);
}

.page-content .stsf-form-card h2 { margin-top: 0; margin-bottom: 10px; }

.stsf-form-card .stsf-form { max-width: none; }

.stsf-form-card .stsf-form input[type="text"],
.stsf-form-card .stsf-form input[type="email"],
.stsf-form-card .stsf-form input[type="tel"],
.stsf-form-card .stsf-form select {
  background: #fbfaf8;
  border: 1px solid rgba(0, 80, 134, .25);
}

.stsf-form-card .stsf-form input:focus,
.stsf-form-card .stsf-form select:focus {
  outline: 2px solid var(--stsf-st-bg, #13bae6);
  outline-offset: 1px;
  background: #ffffff;
}

.stsf-form-card .stsf-form fieldset.stsf-form-group {
  background: #e7f7fc;
  background: color-mix(in srgb, var(--stsf-st-bg, #13bae6) 9%, #ffffff);
  border-color: transparent;
  padding: 14px 18px 12px;
}

.stsf-form-card .stsf-form fieldset.stsf-form-group legend {
  float: left;
  width: 100%;
  padding: 0;
  margin: 0 0 6px;
}

.stsf-form-card .stsf-form fieldset.stsf-form-group legend + * { clear: both; }
.stsf-form-card .stsf-form fieldset.stsf-form-group p { margin-bottom: 0; }
.stsf-form-card .stsf-form fieldset.stsf-form-group br { display: none; }

.stsf-form-card .stsf-form input[type="submit"] {
  background: #005086;
  border-color: #005086;
  color: #ffffff;
  border-radius: 6px;
}

@media (max-width: 640px) {
  .stsf-form-card { padding: 22px 18px 24px; margin-top: 32px; border-radius: 10px; }
}

.stsf-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.stsf-form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 4px;
}

.stsf-form input[type="text"],
.stsf-form input[type="email"],
.stsf-form input[type="tel"],
.stsf-form select {
  display: block;
  width: 100% !important;
  max-width: 100%;
  height: 44px;
  padding: 8px 12px;
  font-size: 16px; /* verhindert Auto-Zoom auf dem iPhone */
  border-radius: 4px !important;
}

.stsf-form .stsf-form-hint {
  margin: 18px 0 6px;
  font-style: italic;
}

/* Wunschtermin: Optionen untereinander, große Klickflächen */
.stsf-form fieldset.stsf-form-group {
  border: 1px solid rgba(0,0,0,.18);
  border-radius: 6px;
  padding: 10px 16px 12px;
  margin: 18px 0;
}

.stsf-form fieldset.stsf-form-group legend {
  font-weight: 600;
  padding: 0 6px;
}

.stsf-form .wpcf7-radio .wpcf7-list-item {
  display: block;
  margin: 0;
}

.stsf-form .wpcf7-radio .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-weight: 400;
  cursor: pointer;
}

.stsf-form input[type="radio"],
.stsf-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

/* Datenschutz-Häkchen */
.stsf-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 18px 0 0;
}

.stsf-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  cursor: pointer;
}

.stsf-form .wpcf7-acceptance input { margin-top: 3px; }

.stsf-form input[type="submit"] {
  margin-top: 20px;
  padding: 12px 28px;
  font-size: 15px;
  cursor: pointer;
}

.stsf-form input[type="submit"]:disabled {
  opacity: .5;
  cursor: not-allowed;
}

/* ==========================================================
   4c. "Leinen los!" – Lernräume Hafen / Elbe / Meer / Ozean
   ========================================================== */

/* Startseiten-Bereich */
.stsf-home-ll {
  padding: 48px 40px 40px;
  background: #fff;
}

.stsf-home-ll-head {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

.stsf-home-ll-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #04709a;
}

.stsf-home-ll h2 {
  margin: 0 0 12px;
  font-size: 34px;
}

.stsf-home-ll-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}

.stsf-home-ll-more {
  text-align: center;
  margin: 28px 0 0;
}

.stsf-preview-hinweis {
  margin: 0 auto 20px;
  max-width: 760px;
  padding: 8px 14px;
  border: 2px dashed #c4161c;
  border-radius: 6px;
  color: #c4161c;
  font-size: 13px;
  text-align: center;
}

a.stsf-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 4px;
  background: #04709a;
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
}

a.stsf-btn:hover { filter: brightness(1.1); }

/* Kacheln */
.stsf-lr-kacheln {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stsf-lr-kachel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 18px 24px;
  border-radius: 12px;
  background: #fff;
  border: 2px solid var(--lr-farbe);
  border-top-width: 10px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

a.stsf-lr-kachel,
a.stsf-lr-kachel:hover,
a.stsf-lr-kachel:focus {
  color: #1d1d1b !important;
}

a.stsf-lr-kachel:hover,
a.stsf-lr-kachel:focus {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

.stsf-lr-stufe {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--lr-farbe);
  color: var(--lr-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 26px;
}

.stsf-lr-icon {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: contain;
  margin: 0 auto 10px;
}

/* Die SVGs haben viel weißen Rand – Motiv etwas vergrößern */
img.stsf-lr-icon { transform: scale(1.45); }

.stsf-lr-icon--placeholder {
  border-radius: 50%;
  background: var(--lr-farbe);
  color: var(--lr-text);
  font-size: 44px;
  font-weight: 800;
  line-height: 96px;
  text-align: center;
}

.stsf-lr-name {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  color: #1d1d1b;
}

.stsf-lr-kachel .stsf-lr-ort {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--lr-farbe);
  color: var(--lr-text);
  font-size: 13px;
  font-weight: 700;
}

/* Hafen-Blau ist für kleine weiße Schrift zu hell – dort das dunklere Blau (--lr-badge) */
.stsf-lr-kachel .stsf-lr-ort,
.stsf-lr-detail-title .stsf-lr-ort,
.stsf-lr-stufe {
  background: var(--lr-badge, var(--lr-farbe));
}

.stsf-lr-kurz {
  display: block;
  font-size: 15px;
  line-height: 1.5;
}

/* Skala unter den Kacheln */
.stsf-lr-skala {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #555;
}

.stsf-lr-skala-pfeil {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  position: relative;
  background: linear-gradient(90deg, #0591c4, #ffcd02, #38c55c, #a19acd);
}

.stsf-lr-skala-pfeil::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 12px solid #a19acd;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}

/* Detailabschnitte */
.stsf-lr-details { margin: 10px 0 30px; }

.stsf-lr-detail {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: 12px;
  border-left: 10px solid var(--lr-farbe);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.stsf-lr-detail-icon { flex: 0 0 110px; }
.stsf-lr-detail-icon .stsf-lr-icon { width: 110px; height: 110px; margin: 0; }
.stsf-lr-detail-icon .stsf-lr-icon--placeholder { line-height: 110px; }

.page-content .stsf-lr-detail-title {
  margin: 0 0 8px;
  font-size: 26px;
}

.stsf-lr-detail-title .stsf-lr-ort {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--lr-farbe);
  color: var(--lr-text);
  font-size: 13px;
  vertical-align: middle;
  text-transform: none;
  letter-spacing: 0;
}

.stsf-lr-detail p { margin: 0 0 10px; }

.stsf-lr-schueler {
  padding: 10px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--lr-farbe) 14%, #fff);
}

/* Ablauf einer Lernzeit */
ol.stsf-lernzeit {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  gap: 8px;
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 30px !important;
}

.stsf-lernzeit-phase {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 10px;
}

.stsf-lernzeit-phase.is-hafen {
  background: var(--lr-badge, var(--lr-farbe));
  color: var(--lr-text);
}

.stsf-lernzeit-phase.is-frei {
  background:
    linear-gradient(90deg, #0591c4 0 25%, #ffcd02 25% 50%, #38c55c 50% 75%, #a19acd 75%) top / 100% 8px no-repeat,
    #fff;
  border: 1px solid rgba(0,0,0,.1);
  padding-top: 22px;
  color: #1d1d1b;
}

.stsf-lernzeit-zeit { font-size: 13px; font-weight: 700; opacity: .9; }
.stsf-lernzeit-titel { font-size: 19px; }
.stsf-lernzeit-text { font-size: 14px; line-height: 1.45; }

@media screen and (max-width: 979px) {
  .stsf-home-ll { padding: 36px 30px 30px; }
  .stsf-lr-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 640px) {
  .stsf-home-ll { padding: 30px 20px 24px; }
  .stsf-home-ll h2 { font-size: 28px; }
  .stsf-lr-kacheln { grid-template-columns: 1fr; }
  .stsf-lr-kachel {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
    align-items: center;
    gap: 0 14px;
    padding: 16px;
  }
  .stsf-lr-kachel .stsf-lr-icon { width: 64px; height: 64px; margin: 0; }
  .stsf-lr-kachel .stsf-lr-icon--placeholder { line-height: 64px; font-size: 30px; }
  .stsf-lr-kachel .stsf-lr-stufe { display: none; }
  .stsf-lr-kachel .stsf-lr-name { flex: 1; }
  .stsf-lr-kachel .stsf-lr-ort { margin: 0; }
  .stsf-lr-kachel .stsf-lr-kurz { flex-basis: 100%; margin-top: 10px; }
  .stsf-lr-skala { font-size: 11px; }
  .stsf-lr-detail { flex-direction: column; gap: 12px; padding: 18px; }
  .stsf-lr-detail-icon { flex: none; }
  .stsf-lr-detail-icon .stsf-lr-icon { width: 72px; height: 72px; }
  .stsf-lr-detail-icon .stsf-lr-icon--placeholder { line-height: 72px; }
  ol.stsf-lernzeit { grid-template-columns: 1fr; }
}

/* ==========================================================
   4d. Startseite: Slider-Folie "Leinen los!" + kompakte Meldungen
   ========================================================== */

.stsf-slide-ll-bg {
  background:
    radial-gradient(ellipse at 20% 110%, rgba(56,197,92,.35), transparent 55%),
    radial-gradient(ellipse at 85% -10%, rgba(161,154,205,.45), transparent 55%),
    linear-gradient(135deg, #0591c4 0%, #04709a 45%, #063f63 100%);
}

.stsf-slide-ll .slider-info { max-width: 760px; margin: 0 auto; }

.stsf-slide-ll .slider-categories span {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  background: #ffcd02;
  color: #1d1d1b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stsf-slide-ll .slider-title a { color: #fff !important; }

.stsf-slide-ll-icons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin: 6px 0 18px;
}

.stsf-slide-ll-icon {
  display: block;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}

.stsf-slide-ll .stsf-lr-icon {
  width: 78px;
  height: 78px;
  margin: 0;
  transform: scale(1.12);
}

.stsf-slide-ll-text {
  color: #fff;
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.stsf-slide-ll .slider-read-more a {
  background: #ffcd02 !important;
  color: #1d1d1b !important;
  border-color: #ffcd02 !important;
}

/* Kompakte Liste "Aktuelles" */
.stsf-news-title {
  margin: 0 0 18px;
  font-size: 28px;
}

.stsf-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stsf-news-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.stsf-news-item:first-child { padding-top: 0; }

.stsf-news-thumb {
  flex: 0 0 180px;
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #e9e4dc;
}

.stsf-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.stsf-news-item:hover .stsf-news-thumb img { transform: scale(1.04); }

.stsf-news-thumb-empty {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0591c4, #063f63);
}

.stsf-news-body { flex: 1; min-width: 0; }

.stsf-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 13px;
  margin-bottom: 4px;
  opacity: .85;
}

.stsf-news-cat {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.page-content .stsf-news-headline {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: 0;
}

.stsf-news-headline a { text-decoration: none; }
.stsf-news-headline a:hover { text-decoration: underline; }

.stsf-news-excerpt {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.5;
}

.page-content a.stsf-news-more {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.page-content a.stsf-news-more:hover { text-decoration: underline; }

.stsf-news-all { margin: 24px 0 0; }

@media screen and (max-width: 640px) {
  .stsf-slide-ll-icons { gap: 10px; margin-bottom: 10px; }
  .stsf-slide-ll-icon,
  .stsf-slide-ll .stsf-lr-icon { width: 46px; height: 46px; }
  .stsf-slide-ll-text { display: none; }

  .stsf-news-item { gap: 14px; }
  .stsf-news-thumb { flex-basis: 96px; aspect-ratio: 1 / 1; }
  .stsf-news-excerpt { display: none; }
  .page-content .stsf-news-headline { font-size: 17px; }
}


/* Detailseite: Abstand nach der Lernraum-Skala */
.page-content .stsf-lr-skala { margin-bottom: 40px; }

/* Teaser "Leinen los!" über "Aktuelles" (gleiches Design wie die Meldungen) */
.stsf-news-teaser {
  margin: 0 0 34px;
  padding: 18px;
  border-radius: 10px;
  background: #ffffff;
  border-left: 5px solid #0591c4;
  box-shadow: 0 3px 14px rgba(0, 40, 70, .07);
}

.stsf-news-teaser .stsf-news-item { padding: 0; border-bottom: 0; }

.stsf-news-teaser .stsf-news-cat { color: #04709a; }

.stsf-ll-thumb {
  position: relative;
  background:
    radial-gradient(ellipse at 15% 115%, rgba(56,197,92,.45), transparent 60%),
    radial-gradient(ellipse at 90% -15%, rgba(161,154,205,.55), transparent 60%),
    linear-gradient(135deg, #0591c4 0%, #04709a 45%, #063f63 100%);
}

.stsf-ll-thumb-icons {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  place-items: center;
  padding: 8px;
  gap: 4px;
}

.stsf-ll-thumb-icon {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  transition: transform .3s ease;
}

.stsf-ll-thumb-icon .stsf-lr-icon {
  width: 52px;
  height: 52px;
  margin: 0;
  transform: scale(1.12);
}

.stsf-news-teaser .stsf-news-item:hover .stsf-ll-thumb-icon { transform: scale(1.06); }

@media screen and (max-width: 640px) {
  .stsf-news-teaser { padding: 14px; }
  .stsf-ll-thumb-icons { padding: 6px; gap: 2px; }
  .stsf-ll-thumb-icon,
  .stsf-ll-thumb-icon .stsf-lr-icon { width: 36px; height: 36px; }
}


/* ==========================================================
   4e. Sidebar: Schnellzugriff-Kacheln, Seitenlinks, Kontakt
   ========================================================== */
.stsf-sb-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.stsf-sb-tiles li { margin: 0; padding: 0; border: 0; }

.sidebar-right a.stsf-sb-tile,
a.stsf-sb-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  min-height: 74px;
  padding: 10px 6px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(0, 80, 134, .15);
  color: #005086;
  text-align: center;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}

a.stsf-sb-tile:hover,
a.stsf-sb-tile:focus-visible,
.sidebar-right a.stsf-sb-tile:hover,
.sidebar-right a.stsf-sb-tile:focus-visible {
  background: #005086;
  color: #ffffff !important; /* gegen die Theme-Regel .page-content a:hover */
  transform: translateY(-1px);
}

.stsf-sb-icon { width: 24px; height: 24px; flex: 0 0 auto; }

.stsf-sb-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stsf-sb-links li {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.stsf-sb-links li:last-child { border-bottom: 0; }

.sidebar-right .stsf-sb-links a,
.stsf-sb-links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 2px;
  color: #005086;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
}

.stsf-sb-links a:hover span:first-child { text-decoration: underline; }

.stsf-sb-arrow {
  font-size: 18px;
  line-height: 1;
  transition: transform .15s ease;
}

.stsf-sb-links a:hover .stsf-sb-arrow { transform: translateX(3px); }

.stsf-kontakt p { margin: 0 0 10px; line-height: 1.45; }
.stsf-kontakt p:last-child { margin-bottom: 0; }

.stsf-kontakt a {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #005086;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.stsf-kontakt a:hover { text-decoration: underline; }
.stsf-kontakt .stsf-sb-icon { width: 18px; height: 18px; margin-top: 2px; }
.stsf-kontakt-klein { font-size: 13px; opacity: .85; }


/* Block-Buttons im Inhalt: gut lesbar in Schulblau */
.post-content .wp-block-button__link,
.page-content .wp-block-button__link,
.wp-block-button .wp-block-button__link,
.wp-block-file .wp-block-file__button {
  background-color: #005086;
  color: #ffffff !important;
  border-radius: 6px;
  padding: 10px 22px;
  font-weight: 700;
  text-decoration: none;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible,
.wp-block-file .wp-block-file__button:hover,
.wp-block-file .wp-block-file__button:focus-visible {
  background-color: #04709a;
  color: #ffffff !important;
}

.wp-block-buttons { margin: 6px 0 18px; }


/* 2-Klick-Videos */
.stsf-embed-consent {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 110%, rgba(56,197,92,.30), transparent 55%),
    linear-gradient(135deg, #0591c4 0%, #04709a 45%, #063f63 100%);
  color: #ffffff;
}

.stsf-embed-consent.is-loaded { background: #000; }
.stsf-embed-consent.is-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

.stsf-embed-box {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px 28px;
  text-align: center;
}

.stsf-embed-play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}

.stsf-embed-play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 19px;
  border-left: 18px solid #005086;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}

.stsf-embed-text { margin: 0; max-width: 520px; font-size: 14px; line-height: 1.5; }
.stsf-embed-text a, .stsf-embed-alt a { color: #ffffff !important; text-decoration: underline; }
.stsf-embed-alt { margin: 0; font-size: 13px; opacity: .9; }

button.stsf-embed-load {
  background: #ffcd02;
  color: #1d1d1b;
  border: 0;
  border-radius: 6px;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

button.stsf-embed-load:hover { filter: brightness(1.05); }

@media (max-width: 480px) {
  .stsf-embed-consent { aspect-ratio: 4 / 3; }
  .stsf-embed-text { font-size: 13px; }
  .stsf-embed-play { width: 48px; height: 48px; }
  .stsf-embed-play::after { left: 19px; top: 13px; border-left-width: 14px; border-top-width: 11px; border-bottom-width: 11px; }
}


/* Redaktionshinweis in Entwürfen (vor dem Veröffentlichen löschen) */
.stsf-redaktion {
  background: #fff4c2;
  border-left: 5px solid #e0a800;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 15px;
  color: #3a3000;
}

/* Block "Neueste Beiträge" auf Infoseiten */
.wp-block-latest-posts.wp-block-latest-posts__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}
.wp-block-latest-posts.wp-block-latest-posts__list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .1);
}
.wp-block-latest-posts.wp-block-latest-posts__list li a { color: #005086; font-weight: 600; text-decoration: none; }
.wp-block-latest-posts.wp-block-latest-posts__list li a:hover { text-decoration: underline; }
.wp-block-latest-posts__post-date { font-size: 13px; opacity: .75; white-space: nowrap; }


/* Slider "Leinen los!": zweiter Button für Schüler*innen */
.stsf-slide-ll .stsf-slide-ll-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.stsf-slide-ll .slider-read-more a.stsf-btn-kids {
  background: transparent !important;
  color: #ffffff !important;
  border: 2px solid #ffffff !important;
}
.stsf-slide-ll .slider-read-more a.stsf-btn-kids:hover {
  background: #ffffff !important;
  color: #04709a !important;
}

/* Bereich "Für dich" (Schüler*innen) auf der Leinen-los-Seite */
.stsf-kids {
  margin: 40px 0;
  padding: 30px 32px 32px;
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(161,154,205,.25), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(56,197,92,.18), transparent 55%),
    #eaf7fc;
  border: 2px solid #0591c4;
  font-size: 17px;
  line-height: 1.6;
}
.page-content .stsf-kids h2 { margin-top: 0; color: #04709a; font-size: 30px; }
.page-content .stsf-kids h3 { margin: 26px 0 8px; color: #04709a; font-size: 21px; }
.stsf-kids ol, .stsf-kids ul { margin-bottom: 8px; }
.stsf-kids li { margin-bottom: 6px; }
.stsf-kids-hinweis {
  background: #ffffff;
  border-radius: 10px;
  padding: 12px 16px;
  border-left: 5px solid #ffcd02;
}

.stsf-lr-kids {
  list-style: none !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.stsf-lr-kids li.stsf-lr-kid {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #ffffff;
  border-top: 6px solid var(--lr-farbe);
}
.stsf-lr-kid-icon { flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff; }
.stsf-lr-kid-icon .stsf-lr-icon { width: 56px; height: 56px; margin: 0; transform: scale(1.15); }
.stsf-lr-kid-body { display: flex; flex-direction: column; gap: 2px; }
.stsf-lr-kid-name { font-size: 18px; color: #1d1d1b; }
.stsf-lr-kid-name span { font-weight: 400; font-size: 14px; color: #555; }
.stsf-lr-kid-text { font-size: 15px; line-height: 1.5; }

@media (max-width: 640px) {
  .stsf-kids { padding: 22px 16px; font-size: 16px; }
  .page-content .stsf-kids h2 { font-size: 24px; }
  .stsf-lr-kids { grid-template-columns: 1fr; }
}


/* Detailseite: große Kacheln mit ausführlichem Text */
.stsf-lr-kacheln.is-gross .stsf-lr-kurz {
  text-align: left;
  font-size: 15px;
  line-height: 1.55;
  hyphens: auto;
}
.stsf-lr-kacheln.is-gross .stsf-lr-kachel { scroll-margin-top: 120px; }
.page-content .stsf-lr-kacheln.is-gross { margin-top: 18px; }


/* Kategorie-Seiten: Überschrift wie "Aktuelles" auf der Startseite */
.main-container .category-description {
  text-align: left;
  padding: 0;
  margin: 0 0 22px;
  border: 0;
  background: none;
}
.main-container .category-description h3 {
  text-align: left;
  margin: 0 0 6px;
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: #005086;
  text-transform: none;
  letter-spacing: normal;
}
.main-container .category-description h3::after,
.main-container .category-description h3::before { display: none; }
.main-container .category-description p {
  margin: 0;
  font-size: 16px;
  color: #555;
}


/* Seite "Service" */
.stsf-service-intro { font-size: 18px; margin-bottom: 8px; }
.page-content .stsf-service h2 { margin: 34px 0 14px; font-size: 26px; }
.stsf-service .stsf-sb-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.page-content .stsf-sb-tiles { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.page-content .stsf-sb-tiles li { list-style: none !important; display: block; margin: 0; padding: 0; }
.page-content .stsf-sb-tiles li::before, .page-content .stsf-sb-tiles li::marker { content: none; }
.stsf-service a.stsf-sb-tile { min-height: 92px; font-size: 14px; }
.stsf-service-cols { gap: 20px; }
.stsf-service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 24px;
  border-top: 5px solid #0591c4;
  box-shadow: 0 3px 14px rgba(0, 40, 70, .06);
}
.page-content .stsf-service-card h3 { margin-top: 0; color: #005086; font-size: 20px; }
.stsf-service-card p { margin-bottom: 12px; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .stsf-service .stsf-sb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* Barrierefreiheit: aktiver Menüpunkt weiß + hellblauer Unterstrich (statt hellblauer Schrift, Kontrast 8,4:1) */
#main-nav #main-menu li[class*="current-menu-"] > a,
#main-nav #main-menu li[class*="current_page_"] > a,
#main-nav #main-menu li[class*="current-post-"] > a {
  color: #ffffff !important;
}
#main-nav #main-menu > li.current-menu-item > a,
#main-nav #main-menu > li.current-menu-ancestor > a,
#main-nav #main-menu > li.current-menu-parent > a,
#main-nav #main-menu > li.current_page_item > a,
#main-nav #main-menu > li.current_page_ancestor > a,
#main-nav #main-menu > li.current-post-ancestor > a {
  box-shadow: inset 0 -4px 0 #13bae6;
}

/* Barrierefreiheit: Kategorie im Teaser ohne Transparenz (Kontrast 5,5:1) */
.stsf-news-teaser .stsf-news-meta { opacity: 1; }

/* ==========================================================
   5. Handy / Tablet (hier wandert die Sidebar nach unten)
   ========================================================== */

@media screen and (max-width: 979px) {

  #main-nav .main-nav-buttons,
  #main-nav .main-nav-icons {
    height: 100%;
  }

  #main-nav .main-nav-icons {
    display: flex;
    align-items: center;
    z-index: 20;
  }

  .stsf-nav-logo { margin-right: 10px; }

  .stsf-nav-logo img { max-height: 40px; }
  .stsf-nav-logo.has-bg img { max-height: 32px; }
  .stsf-nav-logo.has-bg { padding: 3px 8px; }

  /* Schnellzugriff-Button einblenden */
  #main-nav .stsf-vp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--stsf-vp-bg, #c4161c);
    color: var(--stsf-vp-text, #ffffff);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .3px;
    text-transform: none;
    white-space: nowrap;
    position: relative;
    z-index: 30;
    pointer-events: auto;
  }

  #main-nav .stsf-vp-btn:hover,
  #main-nav .stsf-vp-btn:focus,
  #main-nav .stsf-vp-btn[aria-expanded="true"] {
    color: var(--stsf-vp-text, #ffffff);
    filter: brightness(1.12);
  }

  .stsf-vp-btn svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    fill: currentColor;
  }
}

@media screen and (max-width: 640px) {

  /* Kurzer Button-Text, damit er nicht ans Menü-Symbol stößt */
  .stsf-vp-long  { display: none; }
  .stsf-vp-short { display: inline; }

  .stsf-stoerer {
    padding: 8px 42px 8px 12px;
    font-size: 13px;
  }

  .stsf-stoerer-inner { gap: 3px 12px; }

  .stsf-stoerer-title { font-size: 14px; }

  /* Kurzer Zusatztext auf dem Handy weglassen */
  .stsf-stoerer-inner > .stsf-stoerer-text { display: none; }

  .stsf-stoerer-next .stsf-next-label { display: none; }

  .stsf-stoerer-next { width: 100%; }
}

@media screen and (max-width: 480px) {

  /* Suche auf ganz kleinen Displays ausblenden, damit der Button Platz hat */
  .stsf-has-vp .main-nav-search { display: none; }

  #main-nav .stsf-vp-btn { margin-right: 0; }

  .stsf-nav-logo.has-bg img { max-height: 28px; }
}

/* ==========================================================================
   4x Lesespalte auf festen Seiten (Desktop)
   Alle normalen Inhalte (Text, Listen, Bilder, Tabellen, Audio, Video)
   stehen in einer gemeinsamen, mittigen Spalte mit einheitlichen Kanten.
   Gestaltete Bausteine (stsf-*, Gruppen, Spalten, alignwide/full) dürfen
   weiter die volle Breite nutzen.
   ========================================================================== */
body.page:not(.home) {
	--stsf-lese: 800px;
}
body.page:not(.home) .post-content > :not(
	[class*="stsf-"], .wp-block-group, .wp-block-columns, .wp-block-cover,
	.wp-block-media-text, .alignwide, .alignfull, script, style
),
body.page:not(.home) .post-content > :is(.stsf-redaktion, .stsf-logo-klein) {
	max-width: var(--stsf-lese);
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
}
/* Bilder und Tabellen innerhalb der Spalte nicht überstehen lassen */
body.page:not(.home) .post-content > .wp-block-image img,
body.page:not(.home) .post-content > figure img {
	max-width: 100%;
	height: auto;
}
body.page:not(.home) .post-content > .wp-block-table {
	overflow-x: auto;
}
body.page:not(.home) .post-content > .wp-block-table table {
	width: 100%;
}
body.page:not(.home) .post-content > .wp-block-image {
	margin-bottom: 1.4em;
}

/* Info-Kasten rechts neben dem Text (z. B. Spendenkonto Schulverein) */
.stsf-infokasten {
	background: #fff;
	border: 1px solid #d6e3ec;
	border-top: 4px solid #005086;
	border-radius: 8px;
	padding: 18px 20px 16px;
	margin: 0 0 1.5em;
	box-shadow: 0 2px 8px rgba(0, 40, 70, .06);
}
.stsf-infokasten > * { margin-left: 0 !important; margin-right: 0 !important; }
.post-content .stsf-infokasten h3,
.post-content .stsf-infokasten h4 {
	margin: 0 0 .6em;
	font-size: 18px;
	color: #005086;
}
.stsf-infokasten p { margin: 0 0 .5em; line-height: 1.55; text-align: left !important; }
.stsf-infokasten p:last-child { margin-bottom: 0; }
.stsf-infokasten .stsf-iban { font-size: 17px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.stsf-infokasten .stsf-klein { font-size: 13px; color: #4a5a66; }
@media (min-width: 980px) {
	body.page:not(.home) .post-content > .stsf-infokasten {
		float: right;
		width: 290px;
		box-sizing: border-box;
		margin: .3em max(0px, calc((100% - var(--stsf-lese, 800px)) / 2)) 1.2em 28px;
	}
}
/* Überschriften dürfen neben einem Info-Kasten stehen (Bard setzt clear: both) */
body.page:not(.home) .post-content > :is(h2, h3, h4, h5, h6) {
	clear: none;
}
/* Flattersatz statt Blocksatz auf festen Seiten: keine Lücken neben Kästen und Bildern, besser lesbar */
body.page:not(.home) .post-content p,
body.page:not(.home) .post-content li {
	text-align: left;
}

/* Zugangsdaten-Kasten (MensaMax) auf der Service-Seite */
.stsf-zugangsdaten {
	max-width: 360px;
	margin: .4em 0 1.4em 1.6em !important;
	padding: 12px 18px !important;
}
.stsf-zugangsdaten .wp-block-table { margin: 0; }
.stsf-zugangsdaten table { width: 100%; border-collapse: collapse; border: 0; }
.stsf-zugangsdaten th,
.stsf-zugangsdaten td { border: 0; border-bottom: 1px solid #e3ebf1; padding: 8px 4px; text-align: left; font-size: 15px; }
.stsf-zugangsdaten tr:last-child th,
.stsf-zugangsdaten tr:last-child td { border-bottom: 0; }
.stsf-zugangsdaten th { font-weight: 600; color: #4a5a66; width: 45%; }
.stsf-zugangsdaten code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 18px; font-weight: 700; color: #005086;
	background: #eef5fa; padding: 2px 8px; border-radius: 4px; letter-spacing: .04em;
}
/* Umriss-Button (zweiter Button) */
.post-content .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent !important;
	color: #005086 !important;
	border: 2px solid #005086 !important;
}
.post-content .wp-block-button.is-style-outline > .wp-block-button__link:hover,
.post-content .wp-block-button.is-style-outline > .wp-block-button__link:focus {
	background: #005086 !important;
	color: #fff !important;
}
.stsf-zugangsdaten tr { border: 0 !important; }
.stsf-zugangsdaten tr + tr th, .stsf-zugangsdaten tr + tr td { border-top: 1px solid #e3ebf1 !important; }
.stsf-zugangsdaten th, .stsf-zugangsdaten td { border-bottom: 0 !important; }

/* Übersichtsseiten (Team, Angebote …): Kacheln aus dem Menü */
.post-content ul.stsf-uebersicht {
	list-style: none;
	margin: 1.2em 0 2em;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
}
.post-content .stsf-uebersicht-item { margin: 0; padding: 0; }
.post-content .stsf-uebersicht-item::before { content: none; }
.post-content .stsf-uebersicht-item > a {
	display: flex; flex-direction: column; height: 100%;
	background: #fff; border-radius: 10px; overflow: hidden;
	border-top: 4px solid #005086;
	box-shadow: 0 2px 10px rgba(0, 40, 70, .08);
	color: inherit !important; text-decoration: none !important;
	transition: transform .15s ease, box-shadow .15s ease;
}
.post-content .stsf-uebersicht-item > a:hover,
.post-content .stsf-uebersicht-item > a:focus-visible {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(0, 40, 70, .16);
}
.stsf-uebersicht-bild { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #e7eef3; }
.stsf-uebersicht-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stsf-uebersicht-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.stsf-uebersicht-titel { font-size: 19px; font-weight: 700; color: #005086; line-height: 1.3; }
.stsf-uebersicht-text { font-size: 14.5px; line-height: 1.55; color: #33434f; text-align: left; }
.stsf-uebersicht-mehr { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: #005086; }
.post-content .stsf-uebersicht-item > a:hover .stsf-uebersicht-titel { text-decoration: underline; }
/* Lernraum-Grafik als Kachelbild */
.stsf-uebersicht-bild.is-lernraeume {
	display: flex; align-items: center; justify-content: space-around;
	padding: 0 10px;
	background: linear-gradient(90deg, #e4f3fa 0%, #fff7d6 35%, #e3f6e7 65%, #efeaf8 100%);
}
.stsf-ub-lr { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.stsf-uebersicht-bild.is-lernraeume img { width: 46px; height: 46px; object-fit: contain; }
.stsf-ub-hafen { color: #0e7fb5; } .stsf-ub-elbe { color: #b88a00; } .stsf-ub-meer { color: #1f9a4a; } .stsf-ub-ozean { color: #7c68b8; }
.stsf-uebersicht-bild.is-lernraeume img { width: 74px; height: 74px; }
.stsf-ub-lr > span { display: none; }
/* Galerien, große Bilder und Beitragslisten beginnen immer unterhalb eines Info-Kastens */
body.page:not(.home) .post-content > :is(.wp-block-gallery, .wp-block-image:not(:has(.alignleft, .alignright)), .wp-block-video, .wp-block-embed, .wp-block-table, .stsf-beitraege) {
	clear: both;
}
/* Abstand nach Galerien auf festen Seiten */
body.page:not(.home) .post-content > .wp-block-gallery { margin-bottom: 1.6em; }
/* Galeriebilder in der Höhe begrenzen, damit Restreihen (z. B. 2 von 5 Bildern) nicht riesig werden */
body.page:not(.home) .post-content > .wp-block-gallery.is-cropped .wp-block-image img {
	max-height: 260px;
	object-fit: cover;
}
/* Neben links freigestellten Bildern: Listenpunkte nicht über das Bild legen, neue Abschnitte beginnen darunter */
body.page:not(.home) .post-content > :is(ul, ol) { overflow: hidden; }
body.page:not(.home) .post-content > :is(h2, h3) { clear: left; }
