/* ===========================================================
   volkshochschulen.info - Markenfarben & Design-Nachbau
   Primaer:  #008bbc (Blau)   |  Sekundaer/CTA: #95c11f (Gruen)
   Nachbau des bestehenden Warp-Designs auf YOOtheme-Basis.
   =========================================================== */

:root {
  --vhs-blau: #008bbc;
  --vhs-blau-dunkel: #00719a;
  --vhs-gruen: #95c11f;
  --vhs-gruen-dunkel: #7da619;
  --vhs-dunkelblau: #253559;   /* Panel-/Widget-Titel wie Original */
}

/* --- Logo auf Originalgroesse (Altdesign: 400 x 73) ---
   YOOtheme gibt beim SVG keine width/height mit -> es skalierte auf 582 x 106. */
.uk-logo img {
  width: 400px;
  max-width: 100%;
  height: auto;
}

/* Mobil-Header: Logo kleiner */
.tm-header-mobile .uk-logo img {
  width: 240px;
}

/* --- Links --- */
a,
.uk-link {
  color: var(--vhs-blau);
}
a:hover,
.uk-link:hover {
  color: var(--vhs-blau-dunkel);
}

/* --- Primaer-Buttons (CTA) --- */
.uk-button-primary {
  background-color: var(--vhs-blau);
  border-color: var(--vhs-blau);
  color: #fff;
}
.uk-button-primary:hover,
.uk-button-primary:focus {
  background-color: var(--vhs-blau-dunkel);
  border-color: var(--vhs-blau-dunkel);
  color: #fff;
}

/* --- Sekundaer-Buttons: Gruen als Signalfarbe --- */
.uk-button-secondary {
  background-color: var(--vhs-gruen);
  border-color: var(--vhs-gruen);
  color: #fff;
}
.uk-button-secondary:hover,
.uk-button-secondary:focus {
  background-color: var(--vhs-gruen-dunkel);
  border-color: var(--vhs-gruen-dunkel);
  color: #fff;
}

/* --- Navigation: aktiver/hover Zustand in Markenblau --- */
.uk-navbar-nav > li > a:hover,
.uk-navbar-nav > li.uk-active > a,
.uk-navbar-nav > li > a:focus {
  color: var(--vhs-blau);
}

/* --- Ueberschriften-Akzent wie im Altdesign --- */
.uk-heading-line > ::before,
.uk-heading-line > ::after {
  border-bottom-color: var(--vhs-blau);
}

/* --- Sidebar-Widgets: blaue Titel wie im Altdesign (Warp: uk-panel-title) --- */
.uk-card-primary.uk-card-body,
.tm-sidebar .uk-card-primary {
  background-color: var(--vhs-blau);
}
/* Von YOOtheme gerenderte Widget-Titel (Sidebar + Footer) exakt wie die
   Original-.uk-panel-title: #253559, 18px, weight 300, uppercase, kein Rahmen. */
.tm-sidebar .widget > h3,
.tm-sidebar .uk-panel > h3,
.tm-bottom .widget > h3,
.tm-bottom .uk-panel > h3,
.tm-top .widget > h3,
.widget-title {
  color: var(--vhs-dunkelblau);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: normal;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

/* ---------- Sidebar-Boxen wie Originalseite ----------
   Original: Verzeichnis- und Menue-Widgets sitzen in einer hellen Box
   (uk-panel-box: #f8f9fb, 20px Padding, kein Rahmen/Radius),
   Text-Widgets dagegen ohne Box. Abstand zwischen Widgets 25px.
   Listeneintraege 14px/24px mit 6.3px Padding und Trennlinie #ddd. */
body .tm-sidebar .toc_widget,
body .tm-sidebar .widget_nav_menu {
  background-color: #f8f9fb;
  padding: 20px;
  border: 0;
  border-radius: 0;
}

body .tm-sidebar .widget + .widget,
body .tm-sidebar .uk-panel + .uk-panel,
body .tm-sidebar .uk-grid > * + * {
  margin-top: 25px;
}

body .tm-sidebar li {
  font-size: 14px;
  line-height: 24px;
  list-style: none;
}

/* Nur das Inhaltsverzeichnis hat Trennlinien + Padding (wie Original) */
body .tm-sidebar .toc_widget li {
  padding: 6.3px 0;
  border-top: 1px solid #ddd;
}

/* Menue-Widgets: ohne Trennlinie/Padding, normale Schreibweise
   (YOOthemes .uk-nav setzt sonst uppercase + letter-spacing) */
body .tm-sidebar .widget_nav_menu li {
  padding: 0;
  border: 0;
}
body .tm-sidebar a,
body .tm-sidebar .uk-nav > li > a {
  text-transform: none;
  letter-spacing: normal;
}
body .tm-sidebar ul {
  padding-left: 0;
  margin: 0;
}
body .tm-sidebar .uk-nav > li > a {
  padding: 0;
}

/* --- Listen-Icons / Aufzaehlungen in Markenfarbe --- */
.uk-list-bullet > ::before {
  background-color: var(--vhs-blau);
}

/* --- Shortcodes-Ultimate-Boxen des Altbestands abfangen ---
   su_service: Icon absolut links, Titel und Inhalt eingerückt
   (am Original gemessen: Icon 32x32 auf left/top 0, Einzug 46px). */
.su-service {
  position: relative;
  margin: 0 0 24px;
}
.su-service-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
}
.su-service-title {
  color: #333;
  font-size: 17.6px;
  margin: 0 0 8.8px;
}

/* su_list — Liste mit farbigem Icon statt Aufzählungszeichen.
   Am Original gemessen: kein Bullet, ul ohne Innenabstand,
   Icon 16px auf 20.8px Breite, Zeilen 16px/20.8px. */
.su-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.su-list li {
  font-size: 16px;
  line-height: 20.8px;
}
.su-list-icon {
  display: inline-block;
  width: 20.8px;
  height: 16px;
  vertical-align: -3px;
}

/* Spoiler/Ausklapper — 1:1 von der Originalseite gemessen:
   Titel 13px/20px/w700/#676c73, Padding 7px 0 7px 27px,
   Icon absolut links (20x20, top 7px), Inhalt 27px eingerueckt.
   Standard ist ZU (Original liefert `su-spoiler-closed`). */
body .su-spoiler-title.uk-accordion-title {
  position: relative;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  color: #676c73;
  padding: 7px 0 7px 27px;
  margin: 0;
  text-transform: none;
  cursor: pointer;
}
body .su-spoiler-title.uk-accordion-title:hover {
  color: var(--vhs-blau);
}
/* UIkits Chevron rechts durch das Plus/Minus des Originals ersetzen */
body .su-spoiler-title.uk-accordion-title::before {
  content: "+";
  background-image: none;
  float: none;
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  margin: 0;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
}
body .uk-open > .su-spoiler-title.uk-accordion-title::before {
  content: "\2212";   /* Minuszeichen */
}
.su-spoiler-content {
  padding-left: 27px;
}
.su-spoiler-content > :first-child { margin-top: 0; }

/* ===========================================================
   UIkit-2 -> UIkit-3 Kompatibilitaet
   Der Alt-Bestand (Warp/UIkit 2) nutzt Grid-Klassen, die es in
   UIkit 3 (YOOtheme Pro 5) nicht mehr gibt. Ohne diese Regeln
   klappen betroffene Bereiche (v.a. der Footer, Widget text-13)
   auf eine einzige Spalte zusammen.
   UIkit-2-Breakpoints: small 480, medium 768, large 960, xlarge 1220.
   =========================================================== */

/* Footer-Grid: Gutter 25px wie Original */
.tm-bottom .uk-grid[class*="uk-grid-width"] { margin-left: -25px; }
.tm-bottom .uk-grid[class*="uk-grid-width"] > * { padding-left: 25px; }

/* Grid-Basis: Kinder als Flex-Items mit Abstand */
.uk-grid[class*="uk-grid-width"] {
  display: flex;
  flex-wrap: wrap;
  margin-left: -30px;
}
.uk-grid[class*="uk-grid-width"] > * {
  padding-left: 30px;
  box-sizing: border-box;
}

/* Spaltenbreiten (Mobile-First) */
.uk-grid-width-1-1 > * { width: 100%; }
.uk-grid-width-1-2 > * { width: 50%; }
.uk-grid-width-1-3 > * { width: 33.333%; }
.uk-grid-width-1-4 > * { width: 25%; }

@media (min-width: 480px) {
  .uk-grid-width-small-1-2 > * { width: 50%; }
  .uk-grid-width-small-1-3 > * { width: 33.333%; }
  .uk-grid-width-small-1-4 > * { width: 25%; }
}
@media (min-width: 768px) {
  .uk-grid-width-medium-1-2 > * { width: 50%; }
  .uk-grid-width-medium-1-3 > * { width: 33.333%; }
  .uk-grid-width-medium-1-4 > * { width: 25%; }
}
@media (min-width: 960px) {
  .uk-grid-width-large-1-2 > * { width: 50%; }
  .uk-grid-width-large-1-3 > * { width: 33.333%; }
  .uk-grid-width-large-1-4 > * { width: 25%; }
}

/* Weitere UIkit-2-Utilities */
.uk-panel-space        { padding: 25px; }
.uk-flex-space-between { justify-content: space-between; }
.uk-margin-top-remove  { margin-top: 0 !important; }
.uk-row-first          { /* UIkit 2 Zeilenmarker - in UIkit 3 ohne Funktion */ }

/* uk-panel-title (UIkit 2) - EXAKT wie Originalseite:
   #253559, 18px, font-weight 300, uppercase, 15px Abstand, KEIN Unterstrich */
.uk-panel-title {
  color: var(--vhs-dunkelblau);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: normal;
  margin: 0 0 15px;
  padding: 0;
  border: 0;
}

/* ---------------- Footer wie Originalseite ----------------
   Original: weisser Block, Container 1030px zentriert (Inhalt 1005px),
   Bloecke mit 20px vertikalem Padding. */
.tm-bottom {
  background: #fff;
  padding: 20px 0 0;
}
.tm-bottom > .uk-container {
  margin: 0 auto;   /* Breite/Padding kommen aus der globalen .uk-container-Regel */
}
.tm-bottom .uk-panel-space {
  padding: 20px 0;
}
/* Trennlinie unter dem Footer-Logo wie im Original */
.tm-bottom hr {
  border-top: 1px solid rgba(159, 165, 173, .2);
  margin: 15px 0;
}
/* Footer-Links: grau, 14px */
.tm-bottom .uk-panel a {
  color: #676c73;
  font-size: 14px;
}
.tm-bottom .uk-panel a:hover {
  color: var(--vhs-blau);
}
/* Copyright-Zeile (letztes Widget, ausserhalb des Containers) */
.tm-bottom > div:not(.uk-container) {
  max-width: 1030px;
  margin: 0 auto;
  padding: 20px 25px;
  box-sizing: border-box;
  color: #676c73;
  font-size: 16px;
}
.tm-bottom > div:not(.uk-container) a {
  color: var(--vhs-blau);
  font-size: 16px;
}

/* Footer-Widgets untereinander statt nebeneinander.
   YOOtheme legt die Widgets der Position "bottom" per uk-child-width-expand@m
   in eine Zeile -> das 4-Spalten-Altgrid wurde in die halbe Breite gequetscht.
   Im Altdesign (Warp) lagen sie in getrennten Positionen (bottom-c/-d/footer-left)
   jeweils ueber die volle Breite untereinander. */
.tm-bottom > .uk-container > .uk-grid > * {
  flex: 0 0 100%;
  max-width: 100%;
}

/* ===========================================================
   TYPOGRAFIE — 1:1 von der Originalseite gemessen (getComputedStyle)
   Alle Regeln mit `body`-Praefix, weil YOOthemes theme.1.css NACH
   dieser Datei ausgegeben wird (kein wp_enqueue-Handle, daher keine
   Dependency moeglich). `body h1` (0,0,2) schlaegt `h1` (0,0,1),
   `body .uk-h1` (0,1,1) schlaegt `.uk-h1` (0,1,0) — ohne !important.

   Referenz Originalseite:
     body      16px / 24px   / w300 / #676c73 / Verdana
     h1        22px / 28px   / w300 / #253559
     h2        18px / 25px   / w300 / #253559
     h3        18px / 26px   / w300 / #253559
     p         16px / 24px   / w300 / #676c73
     li        16px / 20.8px / w300 / #333333
     a         16px / 20.8px / w300 / #008bbc
     navbar    13px          / w300 / #676c73
     button    13px
     small   12.8px          / w100 / #878787
   =========================================================== */

body,
body input, body select, body textarea, body button,
body .uk-navbar-nav > li > a,
body .uk-nav, body .uk-panel, body .uk-article {
  font-family: Verdana, Arial, sans-serif;
}

body {
  font-size: 16px;
  line-height: 24px;
  font-weight: 300;
  color: #676c73;
}

/* Ueberschriften */
body h1, body .uk-h1, body .uk-article-title,
body h2, body .uk-h2,
body h3, body .uk-h3,
body h4, body .uk-h4,
body h5, body .uk-h5,
body h6, body .uk-h6 {
  font-family: Verdana, Arial, sans-serif;
  font-weight: 300;
  color: var(--vhs-dunkelblau);
  margin-top: 25px;
  margin-bottom: 15px;
  /* Original setzt alle Überschriften in Grossbuchstaben (gemessen:
     text-transform: uppercase auf h1/h2/h3). */
  text-transform: uppercase;
}

body h1, body .uk-h1, body .uk-article-title { font-size: 22px; line-height: 28px; }
body h2, body .uk-h2 { font-size: 18px; line-height: 25px; }
body h3, body .uk-h3 { font-size: 18px; line-height: 26px; }
body h4, body .uk-h4 { font-size: 16px; line-height: 24px; }
body h5, body .uk-h5 { font-size: 15px; line-height: 22px; }
body h6, body .uk-h6 { font-size: 14px; line-height: 21px; }

/* Fliesstext */
body p { font-size: 16px; line-height: 24px; font-weight: 300; color: #676c73; }
body li, body td, body th { font-size: 16px; line-height: 20.8px; font-weight: 300; }
body .uk-article li, body .uk-article td { color: #333; }
body strong, body b { font-weight: 700; }
body small { font-size: 12.8px; font-weight: 100; color: #878787; }

/* Links im Inhalt */
body .uk-article a,
body .tm-main a {
  font-size: inherit;
  line-height: 20.8px;
  font-weight: 300;
  color: var(--vhs-blau);
}

/* Navigation kleiner (Original 13px) */
body .uk-navbar-nav > li > a {
  font-size: 13px;
  font-weight: 300;
  color: #676c73;
  text-transform: none;
}
body .uk-navbar-nav > li > a:hover,
body .uk-navbar-nav > li.uk-active > a {
  color: var(--vhs-blau);
}

/* Sidebar-Links wie Original: 14px/24px, Markenblau */
body .tm-sidebar a {
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
  color: var(--vhs-blau);
}

/* Buttons (Original 13px) */
body .uk-button {
  font-size: 13px;
  font-weight: 300;
  text-transform: none;
}

/* Abstaende wie Originalseite (gemessen):
   Ueberschriften mt 25 / mb 15, erste Ueberschrift ohne oberen Abstand,
   Absaetze 15/15, Listen 0/0. */
body h1:first-child, body h2:first-child, body h3:first-child,
body h4:first-child, body h5:first-child, body h6:first-child,
body .uk-article > *:first-child {
  margin-top: 0;
}
body .uk-article p,
body .tm-main p {
  margin-top: 15px;
  margin-bottom: 15px;
}
body .uk-article ul, body .uk-article ol {
  margin-top: 0;
  margin-bottom: 0;
}

/* ===========================================================
   SEITENRASTER wie Originalseite
   Original:  Container 1030px (border-box, Padding 0 25px -> Inhalt 980)
              Haupt-Grid margin-left -25px  -> sichtbare Breite 1005
              Main 70% (703px)  +  Sidebar 30% (302px, davon 25px Padding
              -> Widget-Box 277px)
   YOOtheme-Default war: Container 1200, Gutter 40px, Sidebar 25%
              -> Sidebar nur 286px und Boxen nur 246px (zu schmal).
   =========================================================== */
/* Container wie UIkit 2 im Original: content-box + zwei Stufen
     < 1220px Viewport : Inhalt  980px + 2x25px Padding = 1030px gesamt
     >= 1220px Viewport: Inhalt 1200px + 2x35px Padding = 1270px gesamt
   (YOOtheme-Default war fix 1200px border-box mit 40px Padding.) */
body .uk-container {
  max-width: 980px;
  box-sizing: content-box;
  padding-left: 25px;
  padding-right: 25px;
}

/* Haupt-Grid: Gutter 25px statt 40px */
body .tm-main > .uk-container > .uk-grid {
  margin-left: -25px;
}
body .tm-main > .uk-container > .uk-grid > * {
  padding-left: 25px;
}

/* Grosse Bildschirme: Container + Gutter wachsen mit (wie Original) */
@media (min-width: 1220px) {
  body .uk-container {
    max-width: 1200px;
    padding-left: 35px;
    padding-right: 35px;
  }
  body .tm-main > .uk-container > .uk-grid {
    margin-left: -35px;
  }
  body .tm-main > .uk-container > .uk-grid > * {
    padding-left: 35px;
  }
}

/* Sidebar 30% statt 25% (nur ab Desktop-Breakpoint @m = 960px) */
@media (min-width: 960px) {
  body .tm-sidebar {
    width: 30%;
  }
}

/* ===========================================================
   Font-Smoothing wie Originalseite
   YOOtheme setzt auf html/body `-webkit-font-smoothing: antialiased`.
   Das rendert Text spuerbar duenner/blasser als das Subpixel-Rendering
   der Originalseite (dort: `auto`). Zurueckstellen -> Schrift wirkt
   wieder kraeftiger und ist besser lesbar.
   =========================================================== */
html,
body,
body * {
  -webkit-font-smoothing: auto;
  -moz-osx-font-smoothing: auto;
}

/* Ausnahme: Icon-Fonts brauchen antialiased, sonst wirken sie ausgefranst */
body .uk-icon,
body [class*="uk-icon-"],
body .dashicons,
body .dashicons-before::before,
body [class^="fa-"], body [class*=" fa-"] {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===========================================================
   DISCLAIMER-ZEILE ("Modus C")
   Das Widget custom_html-3 steht im Quelltext ganz am ENDE
   (Position `bottom`), damit Crawler/AI-Systeme den Hinweis
   "keine offizielle Website ..." NICHT vor dem H1 lesen.
   Optisch sitzt es per CSS trotzdem ganz oben - ohne JavaScript.
   Werte 1:1 von der Originalseite: weisser Grund, 12px,
   Text #676c73, Link #008bbc, ~35px hoch (Padding 5px 0).
   =========================================================== */
body .tm-page {
  position: relative;
  padding-top: 58px;   /* Platz fuer die absolut positionierte Zeile (2 Zeilen) */
}
/* Der Hinweistext bricht auf schmalen Schirmen um -> Platz nachziehen
   (gemessen: >=700px 2 Zeilen / 500-699px 3 Zeilen / <500px 4 Zeilen) */
@media (max-width: 699px) { body .tm-page { padding-top: 82px; } }
@media (max-width: 499px) { body .tm-page { padding-top: 106px; } }
/* Ab hier passt der Hinweis in EINE Zeile wie im Original.
   Gemessen: der Text braucht 1167px, der Container gibt (Viewport - 70px)
   frei -> ab ~1237px einzeilig; 1260px als Sicherheitspuffer fuer
   abweichendes Schriftrendering. */
@media (min-width: 1260px) { body .tm-page { padding-top: 34px; } }

body #custom_html-3 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  background: #fff;
  padding: 5px 0;
  margin: 0;
  /* Das Widget ist ein direktes Kind von .tm-bottom und erbt von dort
     `max-width:1030px` — das wuerde die absolut positionierte Zeile auf
     1030px stauchen (linksbuendig + Umbruch auf 2 Zeilen). Im Original
     laeuft der Hinweis EINZEILIG ueber die volle Containerbreite. */
  max-width: none;
}

/* Innenbreite an den Seiten-Container angleichen */
body #custom_html-3 .textwidget {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 25px;
  box-sizing: content-box;
  font-size: 12px;
  line-height: 24px;
  color: #676c73;
  text-align: center;   /* Vorgabe MASTER 2026-08-04: Hinweis mittig statt linksbuendig */
}
body #custom_html-3 .textwidget > div {
  font-size: 12px;
  line-height: 24px;
  text-align: center;
}
body #custom_html-3 a {
  font-size: 12px;
  color: var(--vhs-blau);
}

@media (min-width: 1220px) {
  body #custom_html-3 .textwidget {
    max-width: 1200px;
    padding: 0 35px;
  }
}

/* Leere Toolbar ausblenden (Position ist jetzt unbelegt) */
body .tm-toolbar:empty,
body .tm-toolbar:not(:has(.widget)) {
  display: none;
}

/* ===========================================================
   NEUBAU: Karten-Platzhalter, Werbeplätze
   Kein eigener Cookie-Banner — die Einwilligung für die Werbung holt
   Google Funding Choices ein (s. includes/consent.php).
   =========================================================== */

/* Karten-Platzhalter (vor der Freigabe durch Klick) */
.vhs-karte-platzhalter {
  background: #f8f9fb;
  border: 1px dashed #cfd4da;
  padding: 20px;
}
.vhs-karte iframe { display: block; width: 100%; border: 0; }

/* ===========================================================
   Bausteine der aufgewerteten Kursseiten
   Bewusst schlicht gehalten: dieselben Farben und Abstände wie der
   Rest der Seite, keine zusätzliche Schrift, kein JavaScript.
   =========================================================== */

/* Kennzahlen auf einen Blick — Kacheln direkt unter der Einleitung */
/* Grid statt Flex: bricht eine Kachel in die nächste Zeile, behält sie
   ihre Spaltenbreite — bei Flex würde sie sich über die volle Breite ziehen. */
.vhs-fakten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  clear: both;
}
.vhs-fakten li {
  background: #f5f8fa;
  border-top: 3px solid var(--vhs-blau);
  padding: 12px 15px;
}
.vhs-fakten .zahl {
  display: block;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--vhs-dunkelblau);
}
.vhs-fakten .was {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: #676c73;
  margin-top: 2px;
}

/* Ablauf in Schritten — nummerierte Kacheln statt Aufzählung */
.vhs-schritte {
  counter-reset: schritt;
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.vhs-schritte li {
  counter-increment: schritt;
  position: relative;
  padding: 0 0 0 52px;
  margin-bottom: 18px;
  min-height: 36px;
}
.vhs-schritte li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--vhs-blau);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 36px;
  text-align: center;
}
.vhs-schritte strong { color: var(--vhs-dunkelblau); }

/* Hinweisbox für den einen Punkt, den man nicht überlesen sollte */
.vhs-hinweis {
  background: #fdf6e8;
  border-left: 4px solid #e8a33d;
  padding: 15px 20px;
  margin: 0 0 25px;
  clear: both;
}
.vhs-hinweis p { margin: 0; }
.vhs-hinweis p + p { margin-top: 10px; }
.vhs-hinweis strong { color: var(--vhs-dunkelblau); }

/* Redaktions-Byline am Artikelende */
.vhs-byline {
  margin: 30px 0 0;
  padding-top: 12px;
  border-top: 1px solid #e6eaee;
  font-size: 13px;
  line-height: 20px;
  color: #878787;
  clear: both;
}
.vhs-byline-trenner { padding: 0 4px; }

/* Trennlinien des Altbestands (su_divider). Stil, Farbe und Stärke
   kommen als Inline-Style aus dem Shortcode, hier nur die Grundform. */
.su-divider {
  border-top-style: solid;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  height: 0;
  clear: both;
}
.su-divider-style-dashed { border-top-style: dashed; }
.su-divider-style-dotted { border-top-style: dotted; }
.su-divider-style-double { border-top-style: double; }

/* Werte-Paare statt Tabelle: „Was" links, Erläuterung rechts */
.vhs-werte {
  list-style: none;
  padding: 0;
  margin: 0 0 25px;
}
.vhs-werte li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e6eaee;
}
.vhs-werte li:first-child { border-top: 1px solid #e6eaee; }
.vhs-werte .wert {
  flex: 0 0 210px;
  font-weight: 700;
  color: var(--vhs-dunkelblau);
}
.vhs-werte .text { flex: 1 1 240px; }
@media (max-width: 639px) {
  .vhs-werte .wert { flex-basis: 100%; }
}

/* Tabellen der Kursseiten etwas ruhiger */
.uk-article table.uk-table { margin-bottom: 25px; }
.uk-article table.uk-table th {
  color: var(--vhs-dunkelblau);
  font-size: 14px;
  text-transform: none;
}
.uk-article table.uk-table td { font-size: 15px; line-height: 22px; }

/* Bundesländer-Liste auf /staedte/ — zweispaltig ab Tablet */
.vhs-bundeslaender { column-count: 2; column-gap: 30px; }
.vhs-bundeslaender li { break-inside: avoid; margin-bottom: 4px; }
.vhs-bl-anzahl { color: #878787; font-size: 14px; }
@media (max-width: 639px) { .vhs-bundeslaender { column-count: 1; } }

/* Themenbild der Hub-Seiten. Nutzt die WordPress-Ausrichtungsklassen
   (alignright), damit es sich wie die Bestandsbilder verhält — inklusive
   der Mobil-Regel, die Floats unter 640px aufhebt. */
.vhs-hub-bild {
  max-width: 380px;
  margin: 5px 0 15px 25px;
}
.vhs-hub-bild img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 639px) {
  .vhs-hub-bild { max-width: 100%; margin: 20px auto; }
}

/* FAQ der Themenseiten — sofort sichtbar, kein Akkordeon (Vorgabe MASTER).
   Die Frage steht als h3 da, deshalb hier text-transform zurücksetzen:
   die globale Überschriften-Regel setzt alles in Grossbuchstaben, was bei
   ganzen Fragesätzen unleserlich wäre. */
.vhs-faq {
  margin: 0 0 20px;
  padding-left: 15px;
  border-left: 3px solid var(--vhs-blau);
}
body .vhs-faq .vhs-faq-frage {
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: var(--vhs-dunkelblau);
  text-transform: none;
  margin: 0 0 6px;
}
.vhs-faq-antwort > :first-child { margin-top: 0; }
.vhs-faq-antwort > :last-child { margin-bottom: 0; }

/* Themenwelten-Untermenü unter „Kurse“ */
.vhs-themen-dropdown {
  min-width: 260px;
  padding: 15px 20px;
}
.vhs-themen-dropdown .uk-nav > li > a {
  font-size: 14px;
  line-height: 20px;
  padding: 5px 0;
  color: var(--vhs-dunkelblau);
  text-transform: none;
}
.vhs-themen-dropdown .uk-nav > li > a:hover,
.vhs-themen-dropdown .uk-nav > li.uk-active > a {
  color: var(--vhs-blau);
}
/* Off-Canvas: Untermenü einrücken */
#vhs-menue .uk-nav-sub a {
  font-size: 14px;
  color: var(--vhs-dunkelblau);
}

/* Zweites Widget in einer Footer-Spalte braucht Abstand nach oben */
.tm-bottom .uk-panel + .uk-panel {
  margin-top: 25px;
}
/* Footer-Formular kompakter als im Inhalt */
.tm-bottom .vhs-formular .uk-margin { margin-top: 10px; }
.tm-bottom .vhs-formular .uk-form-label { font-size: 14px; }

/* Werbeplätze — Hinweis „Anzeige“ 1:1 vom Original gemessen:
   <small class="gad-hinweis">, display:block, float:right,
   12.8px / 24px / #878787, ohne Margin/Padding. */
.vhs-werbung { margin-bottom: 15px; }
.vhs-werbung::after { content: ""; display: block; clear: both; }
.vhs-werbung .adsbygoogle { background: transparent; }
/* Liefert AdSense keine Anzeige aus, den Platz einklappen statt
   ein Loch zu hinterlassen (Google setzt data-ad-status selbst). */
.vhs-werbung ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
.vhs-werbung:has(ins[data-ad-status="unfilled"]) .gad-hinweis { display: none; }
.gad-hinweis {
  display: block;
  float: right;
  font-size: 12.8px;
  line-height: 24px;
  color: #878787;
  margin: 0;
  padding: 0;
}

/* Werbeblock ganz oben (Position „top-a“): eigener Streifen über dem Inhalt */
.tm-block-top-a { background: #fff; }
.tm-block-top-a > .uk-container { padding-top: 10px; }

/* Bild-Ausrichtung im Artikel (WordPress-Bestandsklassen).
   Der Altbestand liefert aligncenter/alignleft/alignright mit; ohne diese
   Regeln stehen die Bilder unausgerichtet und ohne Abstand im Textfluss. */
.uk-article img { max-width: 100%; height: auto; }

.uk-article .aligncenter,
.uk-article img.aligncenter {
  display: block;
  margin: 20px auto;
  clear: both;
}
.uk-article .alignleft  { float: left;  margin: 5px 25px 15px 0; }
.uk-article .alignright { float: right; margin: 5px 0 15px 25px; }
.uk-article .alignnone  { display: block; margin: 20px 0; }

/* Umflossene Bilder nicht in den nächsten Abschnitt laufen lassen */
.uk-article h2,
.uk-article h3 { clear: both; }

/* Bildunterschriften */
.uk-article .wp-caption { max-width: 100%; }
.uk-article .wp-caption img { display: block; margin: 0 auto; }
.uk-article .wp-caption-text {
  font-size: 13px;
  line-height: 20px;
  color: #6b7280;
  margin: 6px 0 0;
  text-align: center;
}

/* Mobil: kein Umfließen mehr, alles zentriert */
@media (max-width: 639px) {
  .uk-article .alignleft,
  .uk-article .alignright {
    float: none;
    display: block;
    margin: 20px auto;
  }
}

/* Mobil-Header: Logo kleiner, Off-Canvas-Menü */
.tm-header-mobile .uk-logo img { width: 240px; max-width: 70vw; height: auto; }
.tm-header-mobile .uk-navbar-container { background: #fff; }
#vhs-menue .uk-nav > li > a {
  font-size: 15px;
  color: var(--vhs-dunkelblau);
  text-transform: none;
}

/* ------------------------------------------------------------------ Karte
   Deutschlandkarte (includes/karte.php). Das SVG skaliert über die
   Breite; die Kürzel bleiben lesbar, weil sie in SVG-Einheiten wachsen. */
.vhs-laenderkarte { margin: 25px 0; }
.vhs-laenderkarte svg { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.vhs-laenderkarte-land {
    fill: #d7e5ec;
    stroke: #ffffff;
    stroke-width: 1.6;
    transition: fill .12s linear;
}
.vhs-laenderkarte a:hover .vhs-laenderkarte-land,
.vhs-laenderkarte a:focus .vhs-laenderkarte-land { fill: var(--vhs-blau, #008bbc); }
.vhs-laenderkarte-land.ist-aktiv { fill: #e8a33d; }
.vhs-laenderkarte a { cursor: pointer; }
.vhs-laenderkarte a:focus { outline: none; }
.vhs-laenderkarte a:focus-visible .vhs-laenderkarte-land { stroke: #333; stroke-width: 2.5; }
.vhs-laenderkarte-kuerzel {
    font-size: 21px;
    font-weight: 700;
    fill: #3d5361;
    pointer-events: none;   /* sonst blockiert der Text den Klick auf die Fläche */
    dominant-baseline: middle;
    /* Weisse Kontur hinter der Schrift: hält das Kürzel auch auf der
       eingefärbten Hover-Fläche lesbar. paint-order zeichnet erst die
       Kontur, dann die Füllung — ohne das läge die Kontur obenauf. */
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3.5px;
    stroke-linejoin: round;
}
.vhs-laenderkarte-kuerzel.ist-klein { font-size: 16px; fill: #6b7d89; }
.vhs-laenderkarte-kuerzel.ist-aktiv { fill: #7a4a00; }
.vhs-laenderkarte figcaption {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.5;
    color: #878787;
    text-align: center;
}
@media (max-width: 639px) { .vhs-laenderkarte-kuerzel { font-size: 24px; } }

/* Ortsliste unter der Karte: mehrspaltig statt einer langen Kolonne.
   Trifft `su-subpages` (Baustein aus dem Altbestand) ebenso wie eigene
   Listen mit `vhs-orte`. */
.vhs-orte,
.su-spoiler-content ul.su-subpages {
    columns: 2;
    column-gap: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.vhs-orte li,
.su-spoiler-content ul.su-subpages li {
    break-inside: avoid;
    padding: 2px 0;
    font-size: 15px;
    line-height: 1.45;
}
@media (min-width: 640px) { .vhs-orte, .su-spoiler-content ul.su-subpages { columns: 3; } }
@media (min-width: 960px) { .vhs-orte, .su-spoiler-content ul.su-subpages { columns: 4; } }

/* ------------------------------------------------------- Kurssuche-Balken
   Orangefarbener Suchbalken wie auf vhs.info. Das Formular geht an die
   eigene Suche (index.php wertet ?s= aus), kein fremder Dienst. */
.vhs-suchbalken {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 0 0 25px;
    padding: 18px 20px;
    background: #e36b2a;
    border-radius: 6px;
}
.vhs-suchbalken input[type="search"],
.vhs-suchbalken input[type="text"] {
    flex: 1 1 240px;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    font-size: 15px;
    color: #333;
    background: #fff;
    border: 0;
    border-radius: 4px;
}
.vhs-suchbalken button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    border-radius: 4px;
    cursor: pointer;
}
.vhs-suchbalken button:hover { background: #fff; color: #e36b2a; }


/* ------------------------------------------------------------ Fernschulen
   Empfehlungsblock (includes/fernschulen.php). Aufbau wie auf abitur-abi.de,
   damit beide Portfolio-Seiten gleich aussehen. Grün als Signalfarbe für den
   Handlungsaufruf — das VHS-Blau bleibt der Navigation vorbehalten. */
.fs-block {
    --fs-gruen: #89bc1f;
    --fs-gruen-dunkel: #5d8316;
    --fs-gruen-tief: #3d6919;
    --fs-linie: #e3e8ec;
    --fs-text-leise: #6b7d89;
    margin: 30px 0;
}
.fs-label {
    margin: 0 0 4px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a7715;
}
body .fs-block .fs-ueberschrift {
    margin: 0 0 6px;
    font-size: 20px;
    text-transform: none;
}
.fs-intro { margin: 0 0 24px; font-size: 15px; color: var(--fs-text-leise); max-width: 680px; }

.fs-karten {
    display: grid;
    /* Vier Anbieter: bis 1259 px zwei nebeneinander (2x2), darüber alle vier
       in einer Reihe. Vier Spalten in der schmalen Inhaltsspalte wären zu
       eng für Logo und Untertitel. */
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    align-items: stretch;
    margin: 0 0 18px;
}
@media (min-width: 1260px) { .fs-karten { grid-template-columns: repeat(4, 1fr); } }
.fs-karte {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 18px 24px;
    background: #fff;
    border: 1px solid var(--fs-linie);
    border-radius: 18px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.fs-karte:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); border-color: #d8e8b6; }
.fs-karte.ist-top {
    border-color: var(--fs-gruen);
    background: linear-gradient(180deg, #fbfff4 0%, #fff 38%);
    box-shadow: 0 12px 32px rgba(137,188,31,.18);
}
.fs-karte.ist-top:hover { border-color: var(--fs-gruen-dunkel); box-shadow: 0 22px 48px rgba(137,188,31,.25); }

.fs-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    white-space: nowrap;
    color: #fff;
    background: var(--fs-gruen);
    border-radius: 99px;
    box-shadow: 0 6px 14px rgba(137,188,31,.4);
}

.fs-logo { display: flex; align-items: center; justify-content: center; height: 80px; margin: 6px 0 14px; }
.fs-logo img { width: 120px; max-height: 70px; height: auto; object-fit: contain; }

body .fs-karte .fs-name {
    margin: 0 0 12px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: none;
}
body .fs-karte .fs-name span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 500;
    color: var(--fs-text-leise);
}

.fs-fakt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin: 0 0 18px;
    padding: 11px 10px;
    border-top: 1px dashed var(--fs-linie);
    border-bottom: 1px dashed var(--fs-linie);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}
.fs-haken {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: var(--fs-gruen);
    border-radius: 50%;
}

.fs-merkmale { width: 100%; margin: 0 0 22px; padding: 0; list-style: none; text-align: left; }
.fs-merkmale li { position: relative; padding: 6px 0 6px 26px; font-size: 14px; line-height: 1.4; }
.fs-merkmale li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 14px;
    height: 8px;
    border-left: 2.5px solid var(--fs-gruen);
    border-bottom: 2.5px solid var(--fs-gruen);
    transform: rotate(-45deg);
}

.fs-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: auto;
    padding: 14px 22px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-decoration: none;
    background: var(--fs-gruen);
    border-radius: 99px;
    box-shadow: 0 6px 16px rgba(137,188,31,.32);
    transition: background .15s, transform .15s, box-shadow .15s;
}
.fs-cta::after { content: "›"; font-size: 18px; font-weight: 700; transition: transform .15s; }
.fs-cta:hover { background: var(--fs-gruen-dunkel); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 22px rgba(137,188,31,.42); }
.fs-cta:hover::after { transform: translateX(3px); }
.fs-karte.ist-top .fs-cta { background: var(--fs-gruen-tief); }
.fs-karte.ist-top .fs-cta:hover { background: #2c4e12; }

.fs-meta { margin: 10px 0 0; font-size: 12px; color: var(--fs-text-leise); }
.fs-hinweis { max-width: 680px; margin: 18px 0 0; font-size: 12px; line-height: 1.5; color: var(--fs-text-leise); }

@media (max-width: 639px) {
    .fs-karten { grid-template-columns: 1fr; gap: 26px; max-width: 460px; margin-left: auto; margin-right: auto; }
}

/* Fünfteilige Schrittgrafik über dem Fernschul-Block.
   Eigener Name, weil `.vhs-schritte` bereits die nummerierte Schrittliste
   in Ratgebertexten stylt. */
.fs-schritte { margin: 22px 0; }
.fs-schritte img { display: block; width: 100%; max-width: 750px; height: auto; margin: 0 auto; }

/* Sprungziel des Infomaterial-Bildes aus der Sidebar: etwas Luft nach oben,
   damit die Karten nicht bündig am Fensterrand kleben. */
.fs-block[id] { scroll-margin-top: 24px; }

/* Infomaterial-Bild und Anzeigenplatz sitzen in einem Sticky-Block. Das Bild
   bekommt Abstand nach unten, der Hinweis „Anzeige“ bleibt der des
   Werbeplatzes (rechts unten) und deckt beides ab. */
.vhs-infomaterial .textwidget { margin-bottom: 12px; }
.vhs-infomaterial .textwidget a { display: block; }
.vhs-infomaterial .vhs-werbung { margin-bottom: 0; }

/* Aktiver Eintrag im Sidebar-Cluster-Menü: Der Kurs, auf dem man gerade
   ist, wird hervorgehoben — sonst sucht man sich in einer Liste mit
   zwanzig Einträgen selbst. */
.widget_nav_menu .uk-nav > li.uk-active > a {
    color: var(--vhs-dunkelblau, #1c3d5a);
    font-weight: 700;
}

/* Kursverteiler auf den Themenseiten: mehrspaltig, damit auch 19 Kurse
   nicht als endlose Kolonne dastehen. */
.vhs-clusterkurse {
    columns: 2;
    column-gap: 26px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}
.vhs-clusterkurse li {
    break-inside: avoid;
    padding: 4px 0 4px 18px;
    position: relative;
    font-size: 15px;
}
.vhs-clusterkurse li::before {
    content: "";
    position: absolute;
    left: 2px; top: 11px;
    width: 6px; height: 6px;
    border-right: 2px solid var(--vhs-blau, #008bbc);
    border-bottom: 2px solid var(--vhs-blau, #008bbc);
    transform: rotate(-45deg);
}
@media (min-width: 640px) { .vhs-clusterkurse { columns: 3; } }

/* ============================================================ STADTSEITEN
   Neuer Aufbau (includes/stadtseite.php). Die Klassen tragen bewusst eigene
   Namen und ueberschreiben nichts aus dem Bestand — der alte Generator laeuft
   parallel weiter, bis der Pilot freigegeben ist.
   ------------------------------------------------------------------------ */

/* Direktantwort: der erste Absatz, etwas groesser als Fliesstext */
.vhs-direktantwort {
  font-size: 1.08rem;
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

/* --- Faktenblock: Adressen + Karte nebeneinander ----------------------- */
.vhs-fakten-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
  margin: 0 0 2rem;
  padding: 1.25rem 1.25rem 1rem;
  background: #f8f9fb;
  border: 1px solid #e6eaee;
  border-radius: 6px;
  /* Akzentstreifen laeuft gerade aus, biegt nicht in die Rundung */
  border-left: 4px solid var(--vhs-blau);
  border-radius: 0 6px 6px 0;
}

.vhs-fakten-titel {
  margin: 0 0 .75rem;
  font-size: 1.15rem;
  color: var(--vhs-dunkelblau);
}

.vhs-standorte { list-style: none; margin: 0; padding: 0; }

.vhs-standort {
  display: flex;
  flex-direction: column;
  padding: .6rem 0;
  border-bottom: 1px solid #e6eaee;
}
.vhs-standort:last-child { border-bottom: 0; }

.vhs-standort-name    { font-weight: 600; color: var(--vhs-dunkelblau); }
.vhs-standort-adresse,
.vhs-standort-ort     { color: #676c73; font-size: .95rem; }
.vhs-standort-art {
  align-self: flex-start;
  margin-top: .3rem;
  padding: .1rem .5rem;
  font-size: .78rem;
  color: #fff;
  background: var(--vhs-blau);
  border-radius: 3px;
}

.vhs-fakten-hinweis {
  margin: .9rem 0 0;
  font-size: .85rem;
  line-height: 1.5;
  color: #878787;
}

.vhs-fakten-karte .vhs-karte { margin: 0; }

/* --- Kursbereiche als Kacheln ----------------------------------------- */
.vhs-bereiche {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin: 1.25rem 0 2rem;
}

.vhs-bereich {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 4.5rem;
  padding: .8rem .9rem;
  background: #fff;
  border: 1px solid #e6eaee;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.vhs-bereich:hover {
  border-color: var(--vhs-blau);
  box-shadow: 0 2px 8px rgba(0, 139, 188, .12);
  text-decoration: none;
}

.vhs-bereich-titel { font-weight: 600; color: var(--vhs-dunkelblau); line-height: 1.3; }
.vhs-bereich-zahl  { margin-top: .25rem; font-size: .82rem; color: #878787; }

/* --- Nachbarorte mit Entfernung --------------------------------------- */
.vhs-umkreis {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .4rem 1.5rem;
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
}

.vhs-umkreis li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .45rem .2rem;
  border-bottom: 1px solid #eef1f4;
}

.vhs-umkreis-km {
  flex: none;
  font-size: .85rem;
  color: #878787;
  font-variant-numeric: tabular-nums;
}

/* --- FAQ (aufgeklappt, kein Accordion) -------------------------------- */
.vhs-faq { margin: 1rem 0 2rem; }

.vhs-faq-item {
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
  background: #f8f9fb;
  border: 1px solid #e6eaee;
  border-left: 4px solid var(--vhs-gruen);
  border-radius: 0 6px 6px 0;
}

.vhs-faq-frage {
  margin: 0 0 .4rem;
  font-size: 1.02rem;
  color: var(--vhs-dunkelblau);
}
.vhs-faq-antwort p { margin: 0; }

/* --- Schmale Viewports ------------------------------------------------- */
@media (max-width: 959px) {
  .vhs-fakten-block { grid-template-columns: 1fr; }
  .vhs-bereiche     { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 639px) {
  .vhs-bereiche { grid-template-columns: 1fr; }
  .vhs-umkreis  { grid-template-columns: 1fr; }
}

/* Bilder im Stadtseiten-Fliesstext */
.vhs-bild { margin: 1.5rem 0 2rem; }
.vhs-bild img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}
