/* ==========================================================================
   www.gpb.de – Stylesheet im GPB Corporate Design (Theme Hell)
   Wird NACH den bestehenden Stylesheets (layout.css, afterload.css) geladen
   und überschreibt sie, ohne Änderungen am HTML.
   Quelle: Design System „GPB mbH“ (tokens.json / README).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Logofarben und Fließtext */
  --gelb: #efaa23;
  --grau: #7b7b7b;
  --hellgrau: #dad9d9;
  --schwarz-95: #000000;
  --weiss: #ffffff;

  /* Berufsfamilien und Signal */
  --rot: #ab2a51;        /* kaufmännischer Bereich */
  --lila: #822f86;       /* Medienbereich */
  --blau: #005c96;       /* IT-Bereich */
  --gruen: #005c63;      /* AVGS-Coaching, PC-Grundlagen */
  --orange: #de5439;     /* nur Störer und Signal */

  /* Rollen */
  --grund: var(--weiss);
  --flaeche: var(--hellgrau);
  --flaeche-zart: #f3f2f2;      /* sehr helle Fläche für große Bereiche */
  --linie: var(--hellgrau);
  --rahmen: var(--grau);        /* Rahmen von Bedienelementen */
  --text: var(--schwarz-95);
  --text-gedaempft: #6b6b6b;    /* grau, für kleine Schrift auf 4,5:1 abgedunkelt */
  --link: var(--text);
  --auf-gelb: var(--schwarz-95);
  --auf-farbe: var(--weiss);
  --fokus-ring: 0 0 0 2px #ffffff, 0 0 0 4px #000000;
  --link-stil: dotted;
  --link-staerke: 1px;

  /* Schrift (Helvetica Neue LT Pro braucht Webfont-Lizenz – bis dahin Fallback) */
  --sans: "Helvetica Neue LT Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --condensed: "Helvetica Neue LT Pro Cn", "Helvetica Neue Condensed", "Arial Narrow", sans-serif;

  /* Abstände (4px-Raster) */
  --a1: 4px;
  --a2: 8px;
  --a4: 16px;
  --a6: 24px;
  --a14: 56px;

  /* Bestehende Variablen der Webseite auf das Design-System abbilden */
  --color-rot-1: var(--gelb);          /* war Rot als Akzent/Primär-Button */
  --color-rot-4: var(--flaeche-zart);
  --color-yellow-1: var(--gelb);
  --color-yellow-2: var(--gelb);
  --color-yellow-3: var(--hellgrau);
  --color-yellow-4: var(--flaeche-zart);
  --color-orange-1: var(--orange);
  --color-orange-2: var(--orange);
  --color-orange-3: var(--hellgrau);
  --color-orange-4: var(--flaeche-zart);
  --color-grey-1: var(--grau);
  --color-grey-2: var(--grau);
  --color-grey-3: var(--hellgrau);
  --color-grey-4: var(--flaeche-zart);
  --color-link: var(--text);
  --color-consentbox-1: var(--gelb);
  --color-consentbox-2: var(--grau);
  --menu-itm-bg-dark: var(--weiss);
  --menu-itm-bg-light: var(--weiss);
  --menu-itm-border: var(--hellgrau);
}

/* ---------- 2. Grundlagen ---------- */
html {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.3125;              /* 16/21 */
  color: var(--text);
  background: var(--grund);
  -webkit-text-size-adjust: 100%;
}
html body {
  background: var(--grund);
  color: var(--text);
  overflow-x: hidden;
}
body, input, select, textarea, button {
  font-family: var(--sans);
}
p, li, td, th, dd, dt {
  line-height: 1.3125;
}
p { margin: 0 0 1.3125em; }

/* Eckig, keine Schatten, keine Verläufe, kein Kursiv */
html body *,
html body *::before,
html body *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html body em, html body i:not(:empty), html body cite {
  font-style: normal;
}
html body #pageheader .inside em, html body .hint em { font-style: normal; }

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

/* ---------- 3. Überschriften ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sans);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0;
}

/* Kapiteltitel: Marker-Quadrate grau / gelb / hellgrau + gelbe Linie */
#pagecontent h1 {
  position: relative;
  margin: var(--a6) 0 var(--a6);
  padding: 0 0 var(--a2) 52px;
  border-bottom: 3px solid var(--gelb);
  font-family: var(--condensed);
  font-size: 28px;
  line-height: 32px;
  text-align: left;
}
#pagecontent h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 38px;
  height: 10px;
  background:
    linear-gradient(to right,
      var(--grau) 0 10px, transparent 10px 14px,
      var(--gelb) 14px 24px, transparent 24px 28px,
      var(--hellgrau) 28px 38px);
}
#pagecontent .ce-headline-center h1,
#pagecontent h1.ce-headline-center {
  display: table;
  margin-left: auto;
  margin-right: auto;
}

#pagecontent h2 {
  font-size: 23px;
  line-height: 28px;
  margin: var(--a6) 0 var(--a4);
}
#pagecontent h3 {
  font-size: 18px;
  line-height: 24px;
  margin: var(--a4) 0 var(--a2);
}
#pagecontent h4, #pagecontent h5, #pagecontent h6 {
  font-size: 16px;
  line-height: 21px;
}
/* Subheader (z. B. „Ihr Bildungsträger Berlin …“) */
#pagecontent .subheader,
#pagecontent header h2 + p,
#pagecontent header .subheader {
  color: var(--text);
  font-weight: 700;
}

/* ---------- 4. Links ---------- */
a, a:link, a:visited {
  color: var(--link);
  text-decoration: underline var(--link-stil);
  text-decoration-thickness: var(--link-staerke);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link);
  text-decoration: underline solid;
  text-decoration-thickness: var(--link-staerke);
}
a > b, b, strong { font-weight: 700; }

/* Tastaturfokus */
html body :focus { outline: none; }
html body :focus-visible,
html body a:focus-visible,
html body button:focus-visible,
html body input:focus-visible,
html body select:focus-visible,
html body textarea:focus-visible,
html body [tabindex]:focus-visible {
  outline: 2px solid var(--schwarz-95) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--weiss) !important;
}

/* Aufzählungen mit ▪ */
#pagecontent .ce-bodytext ul:not([class]),
#pagecontent .frame ul:not([class]):not(.slick-dots) {
  list-style: none;
  padding-left: 1.1em;
}
#pagecontent .ce-bodytext ul:not([class]) > li,
#pagecontent .frame ul:not([class]):not(.slick-dots) > li {
  position: relative;
}
#pagecontent .ce-bodytext ul:not([class]) > li::before,
#pagecontent .frame ul:not([class]):not(.slick-dots) > li::before {
  content: "\25AA";
  position: absolute;
  left: -1.1em;
  color: var(--text);
}

/* ---------- 5. Kopfbereich ---------- */
#pageheader {
  background: var(--grund);
  background-image: linear-gradient(to bottom, var(--grau) 2.5em, var(--grund) 0%) !important;
  padding-bottom: 3px;
}
#pageheader.is-sticky { border-bottom: 0; }
/* Fortschritts-/Akzentlinie unter dem Kopf in Gelb */
.sib { height: 3px; background: var(--gelb); }
.sib-progress { height: 3px; background: var(--schwarz-95); }

#claim {
  background: var(--grau);
  color: var(--weiss);
  font-weight: 700;
  font-size: 19px;                   /* Weiß auf Grau nur ab 19px fett */
  letter-spacing: 0;
}
#logo a, #logo a:link { text-decoration: none; }
#logo img { background: var(--weiss); }

/* Service-Navigation oben rechts */
#snavi, #snavi li.nav1-item {
  background: var(--grau);
}
#snavi li.nav1-item {
  border-left: 1px solid var(--weiss);
  font-weight: 700;
}
/* Gleiche Grundlinie wie „Suche“: Zeilenhöhe der Leiste (layout.css: 2.4),
   sonst greift die allgemeine li-Zeilenhöhe und der Text rutscht nach oben */
#snavi li.nav1-item,
#snavi li.nav1-item > a,
#snavi li.nav1-item > span { line-height: 2.4; }
#snavi li.pid348,
#pid_341 #snavi li.pid348 { background: var(--gelb) !important; }   /* Kontakt, auch auf Kursseiten */
#snavi li.pid348, #snavi li.pid348 > a, #snavi li.pid348 > span { color: var(--auf-gelb) !important; }
#snavi li.pid348 svg { fill: var(--auf-gelb); }
#snavi li.nav1-item:hover,
#snavi li.nav1-item:hover > a,
#snavi li.nav1-item:hover > span { background: var(--gelb) !important; color: var(--auf-gelb) !important; }
#snavi li.nav1-item:hover svg { fill: var(--auf-gelb); }
#snavi li li, #snavi li li.dark, #snavi li li.light { background: var(--weiss) !important; }
#snavi li.nav1-item li > a, #snavi li.nav1-item li > span { color: var(--text) !important; }
#snavi li.nav1-item ul { border: 1px solid var(--rahmen); border-top: 3px solid var(--gelb); }
#snavi li.nav1-item li > a:hover { background: var(--gelb) !important; color: var(--auf-gelb) !important; }

/* Suche */
#searchbox input, #sf-q {
  border: 1px solid var(--rahmen) !important;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--sans);
}
#searchbox input::placeholder { color: var(--text-gedaempft); opacity: 1; }
#searchbox .btn-search {
  background: var(--gelb) !important;
  border: 1px solid var(--gelb) !important;
}
#searchbox .btn-search svg { fill: var(--auf-gelb); stroke: var(--auf-gelb); }

/* Hauptnavigation Desktop */
#mnavi li.nav1-item > a, #mnavi li.nav1-item > span {
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
}
#mnavi li.nav1-item::after { border-bottom: 3px solid var(--gelb); }
#mnavi li.nav1-item.current::after,
#mnavi li.nav1-item.active::after { transform: scaleX(1); }
#mnavi li.nav1-item ul {
  filter: none !important;
  background: var(--weiss) !important;
  border: 1px solid var(--rahmen);
}
#mnavi li.nav1-item > ul { border-top: 3px solid var(--gelb); }
#mnavi li li, #mnavi li li.dark, #mnavi li li.light { background: var(--weiss) !important; }
#mnavi li.nav1-item li > a, #mnavi li.nav1-item li > span {
  color: var(--text) !important;
  font-weight: 400;
  text-decoration: none;
}
#mnavi li.nav1-item li.hassub > a,
#mnavi li.nav1-item li.hassub > span { font-weight: 700; }
#mnavi li.nav1-item li > a:hover,
#mnavi li.nav1-item li > span:hover,
#mnavi li.nav1-item li:hover > a {
  background: var(--gelb) !important;
  color: var(--auf-gelb) !important;
}
#mnavi li.nav1-item li.current > span,
#mnavi li.nav1-item li.current > a { color: var(--text) !important; font-weight: 700; background: var(--flaeche-zart) !important; }
#mnavi li.nav2-item.hassub > span:after { color: var(--grau); }

/* Burger-Button (mobil) */
#btn-n { background: var(--grau); border-right: 1px solid var(--weiss); }
#btn-n span { background: var(--weiss) !important; }
#btn-n:hover, body.mm-ocd-opened #btn-n { background-color: var(--gelb); }
#btn-n:hover span, body.mm-ocd-opened #btn-n span { background: var(--schwarz-95) !important; }
#btn-s { background: var(--grau); color: var(--weiss); }

/* Mobiles Off-Canvas-Menü */
.mm-ocd--open { background: rgba(0, 0, 0, .45); }
.mm-ocd__content { background: var(--weiss); border-right: 3px solid var(--gelb); }
.mm-spn, .mm-spn ul { color: var(--text); background: var(--weiss); }
.mm-spn ul.mm-spn--open { background: var(--weiss); border-top: 3px solid var(--gelb); }
.mm-spn ul:after { background: var(--weiss); }
.mm-spn li, .mm-spn li.dark, .mm-spn li.light,
.mm-spn li.dark > a, .mm-spn li.light > a { background: var(--weiss); color: var(--text); }
.mm-spn li:after { border-top: 1px solid var(--hellgrau); }
.mm-spn li:before { border-color: var(--text); }
.mm-spn a, .mm-spn span { color: var(--text); font-weight: 700; text-decoration: none; }
.mm-spn ul ul a, .mm-spn ul ul span { font-weight: 400; }
.mm-spn a:hover, .mm-spn li.jhov { background: var(--gelb) !important; color: var(--auf-gelb) !important; }
.mm-spn li.current span,
.mm-spn li.current.light span { background: var(--flaeche-zart); color: var(--text); font-weight: 700; }
.mm-spn a:not(:last-child):after { border-right: 1px solid var(--hellgrau); }
.mm-spn.mm-spn--navbar:after { color: var(--text); opacity: 1; font-weight: 700; }
.mm-spn.mm-spn--navbar:before { border-color: var(--text); }
.mm-spn i svg { fill: var(--text); }

/* ---------- 6. Bühne / Slider ---------- */
#pagehero { background: var(--flaeche-zart); }
.hero-infobox { color: var(--text); }
.hero-infobox .infobox-tag {
  background: var(--grau);
  color: var(--weiss);
  font-weight: 700;
  font-size: 19px;
  padding: 2px var(--a2);
}
.hero-infobox .infobox-head {
  display: inline;
  align-self: flex-start;
  max-width: none;
  white-space: nowrap;                    /* immer einzeilig, sonst verschiebt sich der Slider */
  padding: var(--a1) var(--a2);
  background: var(--gelb);
  color: var(--auf-gelb);
  font-family: var(--condensed);
  font-size: clamp(20px, 2.5vw, 32px);   /* wird auf schmaleren Bildschirmen kleiner */
  line-height: 1.15;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
/* Slider-Text: kein Kasten, weiße fette Schrift direkt auf dem Foto.
   Nur der Button bleibt weiß. Auf hellen Fotos ist der Text schwächer lesbar. */
.hero-infobox .infobox-text {
  align-self: flex-start;
  max-width: 34em;
  margin-top: 12px;
  padding: 0;
  background: transparent;
  color: var(--weiss);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
}
.hero-infobox .btn { margin-left: 0; }

/* Slider-Inhalt skaliert mit der Breite, damit Label, Titel, Text und Button
   immer in die Bühne passen (sie ist nur ca. 21 % der Breite hoch). */
.hero-infobox .infobox-tag { font-size: clamp(13px, 1.4vw, 19px); }
.hero-infobox .infobox-text {
  font-size: clamp(14px, 1.45vw, 19px);
  line-height: 1.3;
  margin-top: clamp(6px, 0.8vw, 12px);
}
.hero-infobox .infobox-text p { margin-bottom: 0; }
.hero-infobox .infobox-text p:last-child { margin-top: clamp(8px, 1vw, 16px); }
.hero-infobox .btn {
  font-size: clamp(13px, 1.3vw, 16px);
  padding: clamp(6px, 0.7vw, 10px) clamp(10px, 1.2vw, 18px);
}
/* Slider-Punkte unten rechts statt über dem Titel */
#pagehero .slick-dots {
  top: auto !important;
  bottom: 10px !important;
  left: auto !important;
  right: 64px !important;
  width: auto !important;
  display: flex !important;
  gap: 6px;
}
.slick-buttons button, .slick-prev, .slick-next {
  background-color: var(--grau) !important;
  opacity: 1;
}
.slick-dots button {
  width: 12px; height: 12px;
  background: var(--weiss);
  border: 1px solid var(--grau);
}
.slick-dots li.slick-active button,
.slick-dots li:hover button { background: var(--gelb); border-color: var(--schwarz-95); }

/* ---------- 7. Buttons ---------- */
.btn, a.btn, button.btn, input.btn {
  border-radius: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 21px;
  padding: 10px 18px;
  text-decoration: none !important;
  transition: background-color .15s, color .15s, border-color .15s;
  animation: none !important;
}
.btn:hover { opacity: 1; }

/* Primär: Gelb mit schwarzer Schrift */
.btn-rot, a.btn-rot, .btn-primary, .btn-yellow,
.frame-type-cta a.btn-rot,
.form-navigation .btn-primary, .form-navigation button[type=submit],
.cookie-consent-container .btn--primary {
  background: var(--gelb) !important;
  border: 1px solid var(--gelb) !important;
  color: var(--auf-gelb) !important;
}
.btn-rot:hover, .btn-primary:hover, .btn-yellow:hover,
.frame-type-cta a.btn-rot:hover,
.cookie-consent-container .btn--primary:hover {
  background: var(--schwarz-95) !important;
  border-color: var(--schwarz-95) !important;
  color: var(--gelb) !important;
}
/* Sekundär: Weiß mit grauem Rahmen, schwarze Schrift */
.btn-rot2, a.btn-rot2, .btn-grau2, a.btn-grau2,
.btn-grau, a.btn-grau, .btn-grey, .btn-secondary,
.cookie-consent-container .btn--secondary {
  background: var(--weiss) !important;
  border: 1px solid var(--rahmen) !important;
  color: var(--text) !important;
}
.btn-rot2:hover, .btn-grau2:hover, .btn-grau:hover, .btn-grey:hover, .btn-secondary:hover,
.cookie-consent-container .btn--secondary:hover {
  background: var(--gelb) !important;
  border-color: var(--gelb) !important;
  color: var(--auf-gelb) !important;
}
.btn svg, .btn i svg { fill: currentColor; }
/* Orange nur als Störer-/Signalbutton, Schrift ab 19px fett */
.btn-orange {
  background: var(--orange) !important;
  color: var(--weiss) !important;
  font-size: 19px;
}

/* Tag-Links */
a.tag-style, a.tag-style:link {
  border: 1px solid var(--rahmen);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
a.tag-style:hover { background: var(--gelb); border-color: var(--gelb); color: var(--auf-gelb); }

/* ---------- 8. Inhaltsflächen ---------- */
.frame-bg-grey { background-color: var(--flaeche-zart); border: 0 !important; }
.frame-bg-yellow { background-color: var(--flaeche-zart); border-top: 3px solid var(--gelb) !important; }
.frame-bg-orange { background-color: var(--flaeche-zart); border-top: 3px solid var(--gelb) !important; }
.ce-border, .ce-border img { border-color: var(--hellgrau) !important; }

/* Akkordeons */
.frame-header-5 > header,
.frame-header-6 > header {
  background: var(--flaeche-zart) !important;
  border-left: 6px solid var(--grau) !important;
  color: var(--text) !important;
}
.frame-header-6 > header { border-left-color: var(--gelb) !important; }
.frame-header-5 > header:hover,
.frame-header-6 > header:hover { background: var(--hellgrau) !important; color: var(--text) !important; }
.frame-header-5 > div, .frame-header-6 > div { background: var(--weiss) !important; border: 1px solid var(--hellgrau); border-top: 0; }
.frame-header-5 header span.plusminus,
.frame-header-6 header span.plusminus { background: var(--schwarz-95) !important; }

/* ---------- 9. Kacheln (Cards) ---------- */
.card {
  border: 0 !important;
  background: var(--flaeche-zart);
}
.card-1, .card-4, .card-5 { background: var(--flaeche-zart); }
.card-2 { background: var(--hellgrau); }
.card-3 { background: var(--flaeche-zart); border-top: 3px solid var(--gelb) !important; }

/* Keine Verlaufs-Overlays auf Bildern */
.card .card-img::after,
.card-1 .card-img::after, .card-2 .card-img::after, .card-3 .card-img::after,
.card-4 .card-img::after, .card-2.size-2x2 .card-img::after, .card-2.size-1x1 .card-img::after {
  background: none !important;
}
/* Foto-Kacheln mit Text auf dem Bild: gleichmäßige dunkle Tönung (flach, kein Verlauf).
   42 % Schwarz ist das Minimum, bei dem weiße Schrift selbst über reinem Weiß im Foto
   3:1 erreicht – WCAG AA für große Schrift. Deshalb ist aller Text auf den Fotos
   mindestens 19 px fett (Label, Titel, Teaser). */
.card-1 .card-img::after,
.card-2:not(.size-1x1) .card-img::after,
.card-1:hover .card-img::after,
.card-2:not(.size-1x1):hover .card-img::after { background: rgba(0, 0, 0, .42) !important; }
.card-4 .card-teaser-more,
.card .card-teaser-more { background: var(--flaeche-zart) !important; }
/* Foto-Kacheln (z. B. /branchen): kein Kasten neben „Weiterlesen“ */
.card-1 .card-teaser-more,
.card-2 .card-teaser-more { background: transparent !important; }

/* Kategorie-Label */
.card-tag, .card-rank,
.card .card-teaser .card-tag,
.ccard .card-tag {
  background: var(--grau) !important;
  color: var(--weiss) !important;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
}
.card-title, .card-title a, .card-title a:link {
  color: var(--text) !important;
  font-weight: 700;
  text-decoration: none;
}
.card-title a:hover { text-decoration: underline var(--link-stil); }

/* Text auf Bildern: ohne Boxen, weiß auf dem abgedunkelten Foto */
.card-1 .card-title, .card-2:not(.size-1x1) .card-title {
  display: block;
  background: transparent;
  padding: 0;
  font-size: 20px;
  line-height: 1.25;
}
.card-1 .card-title a, .card-2:not(.size-1x1) .card-title a { font-size: inherit; }
.card-1 .card-title, .card-1 .card-title a,
.card-2:not(.size-1x1) .card-title, .card-2:not(.size-1x1) .card-title a { color: var(--weiss) !important; }
.card-1 .card-teaser, .card-2:not(.size-1x1) .card-teaser {
  color: var(--weiss);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
}
/* Blog-Kacheln mit Bild oben und grauem Feld: Teaser dunkel (nicht Weiß auf Grau) */
.card-2.size-1x1 .card-teaser,
.card-2.size-1x1 .card-teaser-text { color: var(--text) !important; }

/* Kategorie-Label der Kacheln ohne Box: weiß auf Fotos (groß), sonst Textfarbe */
.card-1 .card-tag, .card-2:not(.size-1x1) .card-tag,
.card-1 .card-teaser .card-tag, .card-2:not(.size-1x1) .card-teaser .card-tag {
  background: transparent !important;
  color: var(--weiss) !important;
  border: 0 !important;
  padding: 0 !important;
  font-family: var(--condensed);   /* Versalien nur in Bold Condensed */
  font-size: 19px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-2.size-1x1 .card-tag, .card-3 .card-tag, .card-4 .card-tag, .card-5 .card-tag {
  background: transparent !important;
  color: var(--text) !important;
  border: 0 !important;
  padding: 0 !important;
  font-family: var(--condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Kategorie-Kacheln mit gelbem Bild (card-7, z. B. unter Blog-Artikeln):
   keine Kästen, Schrift auf Gelb schwarz, Button schwarz mit gelber Schrift */
.card-7 .card-tag {
  background: transparent !important;
  color: var(--auf-gelb) !important;
  border: 0 !important;
  padding: 0 !important;
  font-family: var(--condensed);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}
.card-7 .card-teaser-more { background: transparent !important; }
.card-7 .card-title, .card-7 .card-title a { color: var(--auf-gelb) !important; }
.card.card-7 a.more {
  background: var(--schwarz-95) !important;
  border-color: var(--schwarz-95) !important;
  color: var(--gelb) !important;
}
.card.card-7 a.more:hover {
  background: var(--weiss) !important;
  border-color: var(--weiss) !important;
  color: var(--schwarz-95) !important;
}

/* Button-Zeilen (mehrere Buttons in einem zentrierten Absatz): gleich breit,
   Leerzeichen zwischen den Buttons ausblenden, damit sie bündig stehen */
#pagecontent .ce-bodytext p.text-center > .btn {
  box-sizing: border-box;
  min-width: 240px;
  text-align: center;
}
#pagecontent .ce-bodytext p.text-center:has(> a.btn + a.btn) { font-size: 0; }
#pagecontent .ce-bodytext p.text-center:has(> a.btn + a.btn) > .btn { font-size: 16px; margin: 6px 4px; }
.card-1 a.more, .card-2 a.more,
.card a.more {
  background: var(--gelb);
  color: var(--auf-gelb) !important;
  border: 1px solid var(--gelb) !important;
  font-weight: 700;
  text-decoration: none;
}
.card-1 a.more:hover, .card-2 a.more:hover, .card a.more:hover {
  background: var(--schwarz-95);
  border-color: var(--schwarz-95) !important;
  color: var(--gelb) !important;
}

/* Kontakt-Karten */
.ccard .card-front, .ccard .card-back, .ccard-3 .card-front { background-color: var(--flaeche-zart); }
.ccard .card-back { border-top: 3px solid var(--gelb); }
.ccard .card-front .name { font-weight: 700; font-size: 18px; }
.ccard .flip { color: var(--text); text-decoration: underline var(--link-stil); }
.frame-header-2 .ccard .card-front { background-color: var(--weiss); }

/* Icon-Kacheln der Startseite (gelbe Kreise → eckig) */
.ce-gallery img, .image img { border-radius: 0 !important; }

/* ---------- 10. Kurs-/Terminlisten ---------- */
.course-list .course,
.courses .course {
  border-color: var(--hellgrau) !important;
}
.course .ba-titel, .course .ba-titel a { color: var(--text); font-weight: 700; }
.course .ba-typ, .ba-sg, .ba-em {
  color: var(--text);
}
.events .event { border-color: var(--hellgrau) !important; }
.ba-qk svg { background: var(--grau); }

/* ---------- 11. Formulare ---------- */
#pagecontent input[type=text],
#pagecontent input[type=email],
#pagecontent input[type=tel],
#pagecontent input[type=number],
#pagecontent input[type=date],
#pagecontent input[type=search],
#pagecontent select,
#pagecontent textarea,
.input input, .input textarea {
  max-width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--rahmen) !important;
  border-radius: 0 !important;
  background: var(--weiss);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
}
#pagecontent textarea, .input textarea { min-height: 120px; }
#pagecontent label, .control-label { font-weight: 700; color: var(--text); }
#pagecontent input[type=checkbox],
#pagecontent input[type=radio] { accent-color: var(--gelb); }
.form-group { margin-bottom: var(--a4); }
.btn-group label, .inputs-list label { font-weight: 400; }
.required { color: var(--text); }

/* ---------- 12. Tabellen ---------- */
#pagecontent table {
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
}
#pagecontent th, #pagecontent thead td {
  background: var(--flaeche-zart);
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  border-bottom: 3px solid var(--gelb);
}
#pagecontent th, #pagecontent td {
  padding: var(--a2) 12px;
  border-bottom: 1px solid var(--hellgrau);
  vertical-align: top;
}

/* ---------- 13. Fußbereich ---------- */
#pagefooter { border-top: 3px solid var(--gelb); }
.f-1 { background: var(--flaeche-zart); color: var(--text); }
#footnav li > span { color: var(--text); font-weight: 700; }
#footnav li > span:hover { color: var(--text); text-decoration: underline var(--link-stil); }
#footnav a, #footnav a:link { color: var(--text); text-decoration: none; }
#footnav a:hover { color: var(--text); text-decoration: underline var(--link-stil); }
#footnav > ul > li { border-bottom: 1px solid var(--hellgrau); }
#footnav svg { fill: var(--text); }
/* Fußleiste: Hellgrau mit schwarzer Schrift (Weiß auf Grau erst ab 19px fett) */
.f-2 { background: var(--hellgrau); color: var(--text); }
.f-2 a, .f-2 a:link {
  color: var(--text);
  font-weight: 700;
  text-decoration: underline var(--link-stil);
  text-decoration-thickness: var(--link-staerke);
}
.f-2 a:hover { color: var(--text); text-decoration-style: solid; }
.f-2 .copyright { font-weight: 700; }
.f-2 svg { fill: var(--text); }
#footnav li > span {
  font-family: var(--condensed);
  font-size: 18px;
}
#footnav a { padding: 2px 0; }

/* Nach-oben-Link */
a.totoplink, a.totoplink:link {
  background-color: var(--gelb) !important;
  color: var(--auf-gelb);
  opacity: 1;
}

/* Cookie-Hinweis */
.cookie-consent-container .consent-modal {
  border-top: 6px solid var(--gelb);
  font-family: var(--sans);
}
.cookie-consent-container .buttons .btn { font-weight: 700; text-transform: none; }

/* Lade-Animation */
#loadoverlay.active #loader {
  border-color: var(--hellgrau);
  border-top-color: var(--gelb);
  border-radius: 50% !important;
}

/* ---------- 13b. Korrekturen nach Live-Test ---------- */
/* Kurslisten: Kopfzeile auf Hellgrau, Angebotstyp als gelbes Label */
.course .ba-titel { background: var(--hellgrau) !important; color: var(--text) !important; }
.course .ba-typ { background: var(--gelb) !important; color: var(--auf-gelb) !important; font-weight: 700; }
.course .ba-moreevents { color: var(--text) !important; font-weight: 700; }
.course .event:hover { background: var(--flaeche-zart); }

/* Boxen mit Hintergrundbild: keine Flächen hinter dem Text. Die Schriftfarbe
   kommt von der Seite selbst (dunkel auf hellen Boxen, weiß auf Foto-Boxen). */
#pagecontent .cebackground h2,
#pagecontent .cebackground h3 {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
  line-height: 1.25;
}
#pagecontent .cebackground header { margin-bottom: var(--a4); }
#pagecontent .cebackground .ce-bodytext > p:not(:has(.btn)) {
  display: block;
  padding: 0;
  background: transparent;
  color: inherit;
}
#pagecontent .cebackground .ce-bodytext a:not(.btn) { color: inherit; }

/* Nach-oben-Pfeil schwarz auf Gelb */
a.totoplink::before, a.totoplink::after { filter: brightness(0); }

/* Auswahlfelder: Beschriftung normal, Felder größer (Touch) */
#pagecontent .inputs-list label,
#pagecontent .btn-group label,
#pagecontent .radio label,
#pagecontent .checkbox label { font-weight: 400; }
#pagecontent input[type=checkbox],
#pagecontent input[type=radio] {
  width: 20px;
  height: 20px;
  margin-right: var(--a2);
  vertical-align: -4px;
}
/* Radiobuttons und Checkboxen mittig neben ihrem Text; nicht von der
   Feld-Regel (.input input: 44 px Höhe, Innenabstand) vergrößern lassen */
#pagecontent .radio label,
#pagecontent .checkbox label,
#pagecontent .form-check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;                 /* Luft zwischen den Optionen, größere Klickfläche */
}
#pagecontent input[type=radio],
#pagecontent input[type=checkbox],
.input input[type=radio],
.input input[type=checkbox] {
  flex: none;
  width: 20px !important;
  height: 20px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  vertical-align: middle;
}
.course .ba-titel b { font-weight: 700; }

/* Akkordeons der Kursdetailseite */
.frame-header-1 > header {
  background: var(--flaeche-zart) !important;
  border-left: 6px solid var(--grau) !important;
  color: var(--text) !important;
}
.frame-header-1 > header:hover,
.frame-header-1 > header.open { background: var(--hellgrau) !important; border-left-color: var(--gelb) !important; }
.frame-header-1 > div { background: var(--weiss) !important; border: 1px solid var(--hellgrau); border-top: 0; }
.frame-header-1 header span.plusminus { background: var(--schwarz-95) !important; }

/* Weitere Akkordeon-Varianten der Seite (2 grau, 3/4 gelb) wie 1/5/6 */
.frame-header-2 > header {
  background: var(--flaeche-zart) !important;
  border-left: 6px solid var(--grau) !important;
  color: var(--text) !important;
}
.frame-header-3 > header,
.frame-header-4 > header {
  background: var(--flaeche-zart) !important;
  border-left: 6px solid var(--gelb) !important;
  color: var(--text) !important;
}
.frame-header-2 > header:hover, .frame-header-3 > header:hover, .frame-header-4 > header:hover {
  background: var(--hellgrau) !important;
}
.frame-header-1 > header:hover, .frame-header-2 > header:hover, .frame-header-3 > header:hover,
.frame-header-4 > header:hover, .frame-header-5 > header:hover, .frame-header-6 > header:hover {
  color: var(--text) !important;            /* layout.css setzt hier Weiß */
}
.frame-header-2 > div, .frame-header-3 > div, .frame-header-4 > div {
  background: var(--weiss) !important;
  border: 1px solid var(--hellgrau);
  border-top: 0;
}
.frame-header-2 header span.plusminus,
.frame-header-3 header span.plusminus,
.frame-header-4 header span.plusminus { background: var(--schwarz-95) !important; }

/* Karten (Leaflet) brauchen unbegrenzte Kachelbilder */
.leaflet-container img,
.leaflet-container .leaflet-tile { max-width: none !important; }

/* Formulare: Platzhalter lesbar, Gruppentitel fett */
#pagecontent ::placeholder { color: var(--text-gedaempft); opacity: 1; }
#pagecontent legend {
  font-weight: 700;
  border-left: 6px solid var(--gelb);
}

/* Eckdaten der Kursdetailseite */
.eckdaten .moreevents { color: var(--text); text-decoration: underline var(--link-stil); }

/* ---------- 14. Mobil (bis 600px) ---------- */
@media only screen and (max-width: 600px) {
  html body { overflow-x: hidden; }
  .wrapall, #pagecontent, #pagecontent .inside { max-width: 100vw; }
  #pagecontent > .inside { padding-left: var(--a4); padding-right: var(--a4); }

  #pagecontent h1 {
    font-size: 24px;
    line-height: 28px;
    padding-left: 48px;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
  #pagecontent h1::before { top: 9px; }
  #pagecontent h2 { font-size: 20px; line-height: 25px; hyphens: auto; -webkit-hyphens: auto; }
  #pagecontent h3 { font-size: 18px; line-height: 24px; }

  .hero-infobox { left: var(--a4); right: var(--a4); }
  .hero-infobox .infobox-head { font-size: 22px; line-height: 1.2; }
  .hero-infobox .infobox-text { font-size: 15px; }
  .hero-infobox .infobox-tag { font-size: 14px; }

  .btn, a.btn { font-size: 16px; padding: 10px 14px; white-space: normal; max-width: 100%; }

  /* Lange Wörter und Tabellen dürfen nicht aus dem Bild laufen */
  #pagecontent p, #pagecontent li, #pagecontent td, #pagecontent a { overflow-wrap: anywhere; }
  #pagecontent table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  #pagecontent input, #pagecontent select, #pagecontent textarea { width: 100%; }
  #pagecontent input[type=checkbox], #pagecontent input[type=radio] { width: 20px; min-height: 0; }

  .f-2 .inside { padding-left: var(--a4); padding-right: var(--a4); }

  /* Fußnavigation: größere Touch-Flächen */
  #footnav > ul > li { padding: 10px var(--a4); }
  #footnav li.open .hc a { padding: 8px 0; }
  .f-2 a, .f-2 a:link { display: inline-block; padding: 6px 2px; }
}
