:root {
  --bulma-link-text: #FCC200;
  --bulma-link-h: 46deg;
  --bulma-link-s: 100%;
  --bulma-link-l: 49%;
  --bulma-link-invert-l: #000000;
}

/* Etiketten: Bulma setzt feste Höhe und kein Umbrechen – lange Texte liefen sonst aus Karten, Kacheln und Spalten heraus */
.tag {
  max-width: 100%;
  height: auto;
  min-height: 2em;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  white-space: normal;
}

.footer {
  background-color: #626256 !important;
  padding: 2.5rem 1rem 1rem;
  color: #e8e8e0;
  font-size: 0.9rem;
}
/* Fußzeile: Spalten mit goldenen Überschriften, Links hell (gold beim Darüberfahren), unten eine Trennlinie mit © */
.footer .fuss-titel {
  color: #FCC200;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.footer a {
  color: #ffffff;
}
.footer a:hover,
.footer a:focus-visible {
  color: #FCC200;
  text-decoration: underline;
}
.footer ul li {
  margin-bottom: 0.3rem;
}
.footer .icon {
  color: #c9c9bd;
}
.footer .fuss-hinweis {
  color: #c9c9bd;
  font-size: 0.8rem;
}
.footer .fuss-unten {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c9c9bd;
  font-size: 0.8rem;
}

/* Kopfleiste: aktueller Bereich mit goldener Linie (Desktop unten, Handy links) */
@media screen and (min-width: 1024px) {
  .navbar-item.is-aktiv,
  .navbar-link.is-aktiv {
    box-shadow: inset 0 -3px 0 #FCC200;
  }
}
@media screen and (max-width: 1023px) {
  .navbar-item.is-aktiv,
  .navbar-link.is-aktiv {
    box-shadow: inset 3px 0 0 #FCC200;
    font-weight: 600;
  }
  /* Warenkorb neben dem Menü-Knopf: rechts, der Knopf direkt daneben */
  .navbar-brand .navbar-warenkorb-mobil {
    margin-left: auto;
  }
  .navbar-brand .navbar-warenkorb-mobil + .navbar-burger {
    margin-left: 0;
  }
  .navbar-brand .navbar-warenkorb-mobil .icon {
    margin-right: 0;
  }
  .navbar-brand .navbar-warenkorb-mobil.is-aktiv {
    box-shadow: inset 0 -3px 0 #FCC200;
  }
}
body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}
.hero.is-custom {
    position: relative;
    overflow: hidden; /* Verhindert, dass Inhalte herausrutschen */
}
.hero .hero-text {
    position: relative;
    top: 8em
}
.hero .title {
    color: white;
    background-color: rgba(252, 194, 0, .8);
    padding: 10px 20px;
    clear: both;
    float: left;
    font-size: 31px;
}
.hero .subtitle {
    background-color: rgba(74, 74, 74, .8);
    color: #fff;
    margin: 0 0 0 20px;
    padding: 10px 20px;
    clear: both;
    float: left;
    font-size: 31px;
    font-weight: 300;
}

@media screen and (max-width: 768px) {
  .hero.is-custom {
    height: auto; /* Bei kleinen Bildschirmen dynamische Höhe */
  }

  .hero .title {
    font-size: 1.2rem; /* Schriftgröße für kleinere Bildschirme anpassen */
  }

  .hero .subtitle {
    font-size: 1rem; /* Schriftgröße für kleinere Bildschirme anpassen */
  }
}

.box {
    margin: 10px;
}
.no-wrap {
  white-space: nowrap;
}

.modal-card-body .column {
  flex-shrink: 0; /* Verhindert, dass das Bild skaliert wird */
  align-self: flex-start; /* Bild bleibt oben */
}


/* Seminarverwaltung: Monatsüberschriften und inaktive (auf der Website ausgeblendete) Seminare */
.seminartabelle td {
  vertical-align: top;
}
.seminare-werkzeuge {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1rem;
}
.seminartabelle .monat-zeile th {
  padding-top: 1.5rem;
  font-size: 1.1rem;
  border-bottom-width: 2px;
}
.seminartabelle .seminar-inaktiv td {
  color: var(--bulma-grey);
}
.seminartabelle .seminar-inaktiv .seminar-titel {
  color: var(--bulma-grey);
  text-decoration: line-through;
}
/* Aufgaben untereinander und einzeilig, damit die Seminarspalte die Spalte nicht zusammendrückt */
.seminartabelle .seminar-aufgaben .tag {
  white-space: nowrap;
}
/* Nicht zugestellte Kontaktformular-Nachricht: gespeicherte Kopie zum Aufklappen, Zeilenumbrüche wie geschrieben */
.mailfehler-nachricht summary {
  cursor: pointer;
  font-size: 0.875rem;
  padding-top: 0.35rem;
}
.mailfehler-nachricht-inhalt {
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: #fff8db;
  border-left: 4px solid #FCC200;
}
.mailfehler-nachricht-inhalt a {
  color: #6b5600;
  text-decoration: underline;
}
.mailfehler-nachricht-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Seminar-Formular: Schalter (Checkbox als Kippschalter), Vorschau der Beschreibung, mitlaufende Speicherleiste */
.schalter {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.schalter input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.schalter-regler {
  flex-shrink: 0;
  position: relative;
  width: 2.5rem;
  height: 1.4rem;
  margin-top: 0.15rem;
  border-radius: 1rem;
  background-color: #b5b5b5;
  transition: background-color 0.2s;
}
.schalter-regler::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s;
}
.schalter input:checked + .schalter-regler {
  background-color: #48c78e;
}
.schalter input:checked + .schalter-regler::before {
  transform: translateX(1.1rem);
}
.schalter input:focus-visible + .schalter-regler {
  box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.35);
}
/* Nicht verfügbar (z. B. E-Mail ohne Adresse): blass, ohne Hand-Zeiger */
.schalter:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.55;
}
/* Feste Felder (readonly, z. B. E-Mail des Kundenkontos): grau hinterlegt, damit niemand versucht hineinzuschreiben */
.input[readonly] {
  background-color: var(--bulma-scheme-main-bis);
  color: var(--bulma-text-weak);
  cursor: default;
}
.input[readonly]:focus {
  border-color: var(--bulma-border);
  box-shadow: none;
}
.beschreibung-vorschau {
  min-height: 20rem;
  max-height: 32rem;
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid #dbdbdb;
  border-radius: var(--bulma-radius);
}
.formular-aktionen {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 0.75rem 0;
  background-color: var(--bulma-scheme-main);
  border-top: 1px solid #ededed;
}

/* Buchungsbestätigung */
.erfolg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: #FCC200;
  color: #fff;
  font-size: 2.25rem;
  box-shadow: 0 0 0 0.6rem rgba(252, 194, 0, .2);
}
.erfolg-icon.is-warteliste {
  background-color: #626256;
  box-shadow: 0 0 0 0.6rem rgba(98, 98, 86, .18);
}
.schritte {
  list-style: none;
  margin: 0;
  padding: 0;
}
.schritte li {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 1.5rem;
}
.schritte li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(1rem - 1px);
  top: 2.25rem;
  bottom: 0.25rem;
  width: 2px;
  background-color: #e8e8e8;
}
.schritt-nummer {
  flex: 0 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid #FCC200;
  border-radius: 50%;
  background-color: #fff;
  color: #4a4a4a;
  font-weight: 600;
}
.schritte li.is-erledigt .schritt-nummer {
  background-color: #FCC200;
  color: #fff;
}
.schritte p + p {
  margin-top: 0.25rem;
  color: #6b6b6b;
}
.seminar-zusammenfassung .zeile {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.seminar-zusammenfassung .zeile:last-child {
  margin-bottom: 0;
}
.seminar-zusammenfassung .zeile .icon {
  flex: 0 0 auto;
  color: #FCC200;
}

/* Hinweis im Profil "dev" */
/* Leiste über der Verwaltung: Bereiche, angemeldete Person (zu „Mein Zugang“), Abmelden */
.verwaltung-leiste {
  background-color: #363630;
  color: #f1f1ec;
  font-size: 0.85rem;
  padding: 0.35rem 0;
}
.verwaltung-leiste .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.25rem;
  padding: 0 1rem;
}
.verwaltung-leiste-rolle {
  color: #FCC200;
  margin-left: 0.25rem;
}
.verwaltung-leiste-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: center;
}
.verwaltung-leiste a,
.verwaltung-leiste-knopf {
  color: #f1f1ec;
}
.verwaltung-leiste a:hover,
.verwaltung-leiste-knopf:hover,
.verwaltung-leiste a.ist-aktiv {
  color: #FCC200;
}
.verwaltung-leiste a.ist-aktiv {
  font-weight: 600;
}
/* Balken unter der Leiste, solange ein Technik-Zugang die Rechte-Vorschau nutzt */
.vorschau-balken {
  background-color: #fff8db;
  border-bottom: 2px solid #FCC200;
  color: #6b5600;
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.vorschau-balken .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0 1rem;
}
.vorschau-balken-hinweis {
  color: #8a6d00;
}
/* Pfadangabe über den Verwaltungsseiten (statt „zurück zur …“) */
.breadcrumb.verwaltung-pfad {
  margin-bottom: 1rem;
}
/* Startseite der Verwaltung: Kacheln */
.verwaltung-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}
.verwaltung-kachel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  margin-bottom: 0 !important;
  color: #363636;
  border: 1px solid #ececec;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.verwaltung-kachel:hover {
  border-color: #FCC200;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08);
  color: #363636;
}
.verwaltung-kachel-icon {
  font-size: 1.5rem;
  color: #FCC200;
}
.verwaltung-kachel-titel {
  font-size: 1.1rem;
  font-weight: 700;
}
.verwaltung-kachel-text {
  font-size: 0.875rem;
  color: #7a7a7a;
}
/* Auswertung „aufmerksam geworden durch“: Anteil als schmaler Balken unter der Zahl, Freitexte als Liste */
.auswertung-tabelle td:last-child {
  width: 30%;
}
.auswertung-tabelle .progress {
  height: 0.5rem;
  margin: 0.35rem 0 0;
}
.auswertung-tabelle tr.ist-leer td {
  color: var(--bulma-grey);
}
/* Fehlgeschlagene Anmeldungen (Technischer Betrieb) und Teamprotokoll: lange E-Mail- und IPv6-Adressen brechen um, statt die Handy-Karten zu sprengen */
.anmeldeversuche-tabelle td {
  overflow-wrap: anywhere;
}
.anmeldeversuche-tabelle td > span {
  min-width: 0;
}
/* Beschriftung der Handy-Karte („Was“) nicht mit umbrechen, sonst steht sie bei langen Werten Buchstabe für Buchstabe da */
.anmeldeversuche-tabelle td::before {
  flex-shrink: 0;
  overflow-wrap: normal;
}
/* Teamprotokoll: Zeitpunkt und Person schmal, die Meldung bekommt den Rest */
.teamprotokoll-tabelle td:first-child {
  white-space: nowrap;
}
/* Technischer Betrieb: Status der Brevo-Verbindung mit Knopf rechts (auf dem Handy darunter) */
.betrieb-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
}
/* Technischer Betrieb: Logzeilen untereinander, Zeit/Stufe/Quelle vorn, Meldung umbrechend; Filter in einer Reihe */
.protokoll-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 1rem;
}
.protokoll-filter .field {
  margin-bottom: 0;
}
.protokoll-suche {
  flex: 1 1 16rem;
}
.protokoll-zeile {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.875rem;
}
.protokoll-zeile:last-child {
  border-bottom: none;
}
.protokoll-zeit,
.protokoll-quelle {
  color: var(--bulma-grey);
  font-size: 0.8rem;
}
.protokoll-zeit {
  white-space: nowrap;
}
/* Lange Klassennamen (z. B. aus Spring) dürfen umbrechen, sonst wird die Seite auf dem Handy zu breit */
.protokoll-quelle {
  min-width: 0;
  overflow-wrap: anywhere;
}
.protokoll-text {
  flex: 1 1 20rem;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.protokoll-details {
  flex-basis: 100%;
}
/* Ab Tablet ein gemeinsames Raster für alle Zeilen, damit die Meldungen bündig untereinander beginnen */
@media screen and (min-width: 769px) {
  .protokoll-liste {
    display: grid;
    grid-template-columns: max-content max-content fit-content(14rem) minmax(0, 1fr);
  }
  .protokoll-zeile {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
  }
  .protokoll-zeile > .tag {
    justify-self: start;
  }
  .protokoll-details {
    grid-column: 4 / -1;
  }
}
.protokoll-details summary {
  cursor: pointer;
  color: var(--bulma-grey);
  font-size: 0.8rem;
}
.protokoll-details pre {
  margin-top: 0.35rem;
  padding: 0.75rem;
  font-size: 0.75rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.auswertung-texte li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #f0f0f0;
}
.auswertung-texte li:last-child {
  border-bottom: none;
}
.verwaltung-leiste-knopf {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}
/* Schmale Karte für Anmelden, Passwort ändern, keine Berechtigung */
.anmelde-karte {
  max-width: 28rem;
  margin: 2rem auto;
}
.testumgebung-hinweis {
  background-color: #c0392b;
  color: #fff;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.35rem 1rem;
}
/* Link im Testbalken: zur Verwaltung */
.testumgebung-hinweis a {
  margin-left: 1rem;
  color: #fff;
  text-decoration: underline;
  white-space: nowrap;
}
.testumgebung-hinweis a .icon {
  margin-right: 0.25rem;
}
/* Roter Rahmen um das ganze Fenster, bleibt beim Scrollen stehen; liegt über allem, fängt aber keine Klicks ab */
.testumgebung-rahmen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border: 4px solid #c0392b;
  pointer-events: none;
}

/* Meldungen als Toast oben in der Mitte über der Seite (siehe backbone.html, main.js) */
.meldungen {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 110;
  width: min(36rem, calc(100% - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.meldung-toast {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 8px;
  border-left: 5px solid;
  background-color: #fff;
  color: #363636;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.16);
  animation: meldung-rein 0.25s ease-out;
  transition: opacity 0.25s, transform 0.25s;
}
.meldung-toast.ist-weg {
  opacity: 0;
  transform: translateY(-0.5rem);
}
.meldung-toast.is-success {
  border-left-color: #48c78e;
}
.meldung-toast.is-warning {
  border-left-color: #FCC200;
}
.meldung-toast.is-danger {
  border-left-color: #f14668;
}
.meldung-toast.is-success .meldung-symbol {
  color: #48c78e;
}
.meldung-toast.is-warning .meldung-symbol {
  color: #c49700;
}
.meldung-toast.is-danger .meldung-symbol {
  color: #f14668;
}
.meldung-text {
  flex: 1;
  min-width: 0;
}
/* Kreis-Timer: Ring wird weniger (stroke-dashoffset, per main.js), in der Mitte die Sekunden; beim Darüberfahren ein Kreuz */
.meldung-timer {
  position: relative;
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-top: -0.2rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  color: #7a7a7a;
}
.meldung-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.meldung-timer circle {
  fill: none;
  stroke-width: 2.5;
}
.meldung-timer-spur {
  stroke: #ececec;
}
.meldung-toast.is-success .meldung-timer-ring {
  stroke: #48c78e;
}
.meldung-toast.is-warning .meldung-timer-ring {
  stroke: #FCC200;
}
.meldung-toast.is-danger .meldung-timer-ring {
  stroke: #f14668;
}
.meldung-timer-zahl,
.meldung-timer-kreuz {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.meldung-timer-kreuz {
  font-size: 1.1rem;
  font-weight: normal;
  opacity: 0;
}
.meldung-timer:hover .meldung-timer-zahl,
.meldung-timer:focus-visible .meldung-timer-zahl {
  opacity: 0;
}
.meldung-timer:hover .meldung-timer-kreuz,
.meldung-timer:focus-visible .meldung-timer-kreuz {
  opacity: 1;
  color: #363636;
}
@keyframes meldung-rein {
  from {
    opacity: 0;
    transform: translateY(-0.75rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .meldung-toast {
    animation: none;
    transition: none;
  }
}

/* Zahlungsübersicht */
/* Spaltenbreiten: Seminar/Person | … | Aktionen; Erstattungen haben eine breitere zweite und dritte Spalte */
.zahlungstabelle col:nth-child(1) { width: 33%; }
.zahlungstabelle col:nth-child(2) { width: 15%; }
.zahlungstabelle col:nth-child(3) { width: 11%; }
.zahlungstabelle col:nth-child(4) { width: 21%; }
.zahlungstabelle col:nth-child(5) { width: 20%; }
.zahlungstabelle.ist-erstattung col:nth-child(2) { width: 20%; }
.zahlungstabelle.ist-erstattung col:nth-child(3) { width: 14%; }
.zahlungstabelle.ist-erstattung col:nth-child(4) { width: 15%; }
.zahlungstabelle.ist-erstattung col:nth-child(5) { width: 18%; }
.zahlung-kachel {
  height: 100%;
  margin: 0;
}
.zahlungstabelle td {
  vertical-align: top;
}
.hat-tooltip {
  cursor: help;
}
/* Buchungen eines Seminars */
.buchungen-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.buchungen-eckdaten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.buchungstabelle td {
  vertical-align: top;
}
.buchungstabelle .spalte-aufklappen {
  width: 2.5rem;
  padding-right: 0;
}
.buchungstabelle tr.buchung-inaktiv > td {
  color: #8a8a8a;
}
.buchungstabelle tr.buchung-inaktiv strong {
  color: #8a8a8a;
}
.buchungstabelle tr.ist-aufgeklappt > td {
  border-bottom-color: transparent;
}
.buchungstabelle tr.buchung-details > td {
  background: #fafafa;
  padding: 1rem 1.25rem 1.25rem 3.25rem;
}
@media screen and (max-width: 768px) {
  /* Zwei Kacheln nebeneinander: Texte etwas kleiner */
  .zahlung-kachel .title.is-4 {
    font-size: 1.25rem;
  }
  .zahlung-kachel {
    padding: 1rem;
  }
  .zahlung-kachel p:last-child {
    font-size: 0.8rem;
  }
}
/* Seminarfilter der Zahlungsübersicht: lange Titel brechen um statt über den Rand zu laufen */
.tag.seminar-filter {
  height: auto;
  max-width: 100%;
  white-space: normal;
  padding-top: 0.35em;
  padding-bottom: 0.35em;
  line-height: 1.4;
}
/* Aufgeklappte Buchung: Karten Person | Belege und Zahlung | Zu tun, darunter Nachricht und Team-Notiz */
.buchungstabelle tr.buchung-zeile {
  cursor: pointer;
}
.buchungsakte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 1rem;
}
.buchungsakte-texte {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
@media screen and (max-width: 1023px) {
  .buchungsakte,
  .buchungsakte-texte {
    grid-template-columns: minmax(0, 1fr);
  }
}
.akte-karte {
  background: #ffffff;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 0.9rem 1.1rem 1rem;
}
.akte-titel {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 0.75rem;
}
.akte-titel .icon {
  color: #FCC200;
}
.akte-titel .akte-bearbeiten {
  margin-left: auto;
  font-weight: normal;
}
.akte-titel .akte-bearbeiten .icon {
  color: inherit;
}
/* Dialog "Buchung bearbeiten": abweichende Rechnungsanschrift als eigener Block */
.bearbeiten-rechnung {
  border: none;
  border-top: 1px solid #ededed;
  margin: 0.75rem 0;
  padding: 0.75rem 0 0 0;
}
.bearbeiten-rechnung legend {
  padding: 0 0.5rem 0 0;
}
/* Buchungsformular: Rechnungsanschrift */
.box.rechnungsanschrift {
  box-shadow: none;
  border: 1px solid #ededed;
}
.akte-liste li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.akte-liste li > .icon {
  color: #a0a0a0;
  flex: none;
  margin-top: 0.15rem;
}
.akte-posten {
  padding: 0.55rem 0;
  border-top: 1px solid #f1f1f1;
}
.akte-posten:first-of-type {
  border-top: none;
  padding-top: 0;
}
.akte-posten .icon.is-small,
.akte-meta .icon.is-small,
.akte-karte p > .icon {
  margin-right: 0.3rem;
}
.akte-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 0.15rem;
}
.akte-meta {
  font-size: 0.8rem;
  color: #7a7a7a;
  margin-top: 0.15rem;
}
.akte-pdf {
  margin-left: 0.4rem;
  font-size: 0.8rem;
  white-space: nowrap;
}
.notification.akte-hinweis {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  padding: 0.6rem 0.8rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
/* Verlauf: Zeit · Person · Text, eine Zeile je Eintrag (umbrechend) */
.verlauf-liste li {
  display: grid;
  grid-template-columns: 1.25rem 8.5rem 10rem minmax(0, 1fr);
  gap: 0.15rem 0.5rem;
  align-items: baseline;
  padding: 0.3rem 0;
  border-top: 1px solid #f1f1f1;
  font-size: 0.875rem;
}
.verlauf-liste li:first-child {
  border-top: none;
}
.verlauf-symbol {
  color: #a0a0a0;
}
.verlauf-zeit {
  color: #7a7a7a;
  font-size: 0.8rem;
  white-space: nowrap;
}
.verlauf-wer {
  font-weight: 600;
}
.verlauf-mehr summary {
  cursor: pointer;
  color: #7a7a7a;
  font-size: 0.8rem;
  padding: 0.3rem 0;
}
@media screen and (max-width: 768px) {
  .verlauf-liste li {
    grid-template-columns: 1.25rem minmax(0, 1fr);
  }
  .verlauf-zeit,
  .verlauf-wer,
  .verlauf-text {
    grid-column: 2;
  }
}
/* Zeilenumbrüche aus Freitext (Notiz, Nachricht) anzeigen */
.mehrzeilig {
  white-space: pre-line;
}

/* Ladeanzeige (siehe main.js) */
.ladeanzeige {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.75);
}
.ladeanzeige.is-aktiv {
  display: flex;
}
.ladeanzeige-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12);
}
.ladeanzeige-spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid rgba(252, 194, 0, 0.25);
  border-top-color: #FCC200;
  border-radius: 50%;
  animation: ladeanzeige-drehen 0.8s linear infinite;
}
.ladeanzeige-text {
  color: #4a4a4a;
  font-weight: 600;
}
@keyframes ladeanzeige-drehen {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ladeanzeige-spinner {
    animation-duration: 2.5s;
  }
}

/* Dialoge: Kopf mit dünner Linie statt Bulma-Schatten und knapperen Abständen (Kopf und Inhalt seitlich bündig) */
.modal {
  --bulma-modal-card-head-padding: 1.25rem 1.5rem;
  --bulma-modal-card-body-padding: 1.5rem;
}
.modal-card-head {
  box-shadow: none;
  border-bottom: 1px solid var(--bulma-border-weak);
}
/* Lange Dialogtitel (mit Namen) umbrechen statt unter den Schließen-Knopf zu laufen (Bulma: flex-shrink 0) */
.modal-card-title {
  flex-shrink: 1;
  min-width: 0;
  line-height: 1.25;
}
/* Dialogkopf mit Angaben unter dem Titel (Seminar, Termin, Status); Schließen-Knopf bleibt oben rechts */
.dialog-kopf {
  flex-grow: 1;
  min-width: 0;
}
.modal-card-head:has(.dialog-kopf) {
  align-items: flex-start;
  gap: 0.75rem;
}
.modal-card-head:has(.dialog-kopf) > .delete {
  margin-top: 0.3rem;
}

/* Dialoge ohne Fußleiste: unten genauso abrunden wie oben */
.modal-card-body:last-child {
  border-end-start-radius: var(--bulma-modal-card-head-radius);
  border-end-end-radius: var(--bulma-modal-card-head-radius);
}

/* Aktion, die für diesen Datensatz noch nicht eingerichtet ist: sichtbar, aber zurückgenommen (Hinweis im title, Klick führt zum Einrichten) */
.button.ist-ausgegraut {
  opacity: 0.5;
}
.button.ist-ausgegraut:hover {
  opacity: 0.8;
}

/* ---------------------------------------------------------------- Kundenkonto und Warenkorb */

/* Symbole rechts in der Kopfleiste (Konto, Warenkorb); auf dem Handy mit Text */
.navbar-symbol .icon {
  font-size: 1.15rem;
}
.warenkorb-symbol {
  position: relative;
}
.warenkorb-anzahl {
  position: absolute;
  top: -0.45rem;
  right: -0.6rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 0.6rem;
  background-color: #FCC200;
  color: #363630;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.15rem;
  text-align: center;
}
@media screen and (max-width: 1023px) {
  .navbar-symbol .icon {
    margin-right: 0.5rem;
  }
}

/* Reiter im Kundenkonto, rechts daneben Abmelden */
.konto-reiter {
  align-items: flex-end;
}
.konto-reiter ul {
  flex-grow: 1;
}
.konto-abmelden {
  border-bottom: var(--bulma-tabs-border-bottom-width, 1px) solid var(--bulma-border);
  padding-bottom: 0.3rem;
}

/* Eine Buchung in „Meine Buchungen“ (Abstand hier statt per Helfer: die Testskripte suchen class="box konto-buchung") */
.box.konto-buchung {
  margin: 0 0 1rem;
  border-top: 4px solid #FCC200;
}
/* Kästen „Passwort ändern“ und „Konto löschen“ nebeneinander gleich hoch */
.box.konto-kasten {
  height: 100%;
}
/* Seminartitel in dunkler Schrift wie im Warenkorb, Gold erst beim Darüberfahren */
.konto-buchung .title a {
  color: var(--bulma-text-strong);
}
.konto-buchung .title a:hover,
.konto-buchung .title a:focus-visible {
  color: #8a6d00;
}
/* Kopf wie die Seminarkarte (.seminar-karte-kopf), mit goldener Linie oben; vergangene Seminare im Datumsblock grau */
.box.konto-buchung.ist-vergangen {
  border-top-color: var(--bulma-border);
}
.ist-vergangen .seminar-karte-termin {
  background-color: var(--bulma-white-ter);
  color: var(--bulma-grey-dark);
}
.ist-vergangen .seminar-karte-termin .termin-jahr {
  color: var(--bulma-grey);
}
/* Tage bis zum Seminarbeginn, im hellen Gold des Datumsblocks */
.tag.konto-countdown {
  background-color: #fff8db;
  color: #6b5600;
  font-weight: 600;
}
.konto-buchung-zahlung {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bulma-border-weak);
}
.konto-storno summary {
  cursor: pointer;
  color: var(--bulma-grey);
}

/* Warenkorb: Seminare untereinander, Preis und Entfernen rechts */
.warenkorb-position {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--bulma-border-weak);
}
.warenkorb-position-text a {
  color: var(--bulma-text-strong);
}
.warenkorb-position-text a:hover {
  color: #8a6d00;
}
.warenkorb-position-preis {
  text-align: right;
  flex-shrink: 0;
}
/* Zusammenfassung rechts im Warenkorb: Zwischensumme, Ermäßigung, Summe */
.warenkorb-zeile {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.35rem 0;
}
.warenkorb-zeile.is-rabatt {
  color: #6b5600;
  font-size: 0.9rem;
}
.warenkorb-zeile.is-summe {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--bulma-border-weak);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bulma-text-strong);
}
/* Schritte der Buchung (Makro bestellschritte): Kreise wie .schritt-nummer, dazwischen eine Linie, Erledigtes in Gold */
.bestell-schritte {
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bestell-schritte li {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--bulma-grey);
  font-size: 0.9rem;
}
.bestell-schritte li:last-child {
  flex: 0 0 auto;
}
.bestell-schritte li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  margin-left: 0.25rem;
  background-color: var(--bulma-border-weak);
}
.bestell-schritte .schritt-nummer {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-color: var(--bulma-border);
  color: var(--bulma-grey);
  font-size: 0.8rem;
}
.bestell-schritte li.is-aktiv,
.bestell-schritte li.is-erledigt {
  color: var(--bulma-text-strong);
}
.bestell-schritte li.is-aktiv {
  font-weight: 600;
}
.bestell-schritte li.is-aktiv .schritt-nummer {
  border-color: #FCC200;
  color: #363630;
}
.bestell-schritte li.is-erledigt .schritt-nummer {
  background-color: #FCC200;
  border-color: #FCC200;
  color: #363630;
}
.bestell-schritte li.is-erledigt::after {
  background-color: #FCC200;
}
@media screen and (max-width: 768px) {
  /* Auf dem Handy reicht der Platz nicht für die Linien: Schritte nur gleichmäßig verteilt */
  .bestell-schritte {
    justify-content: space-between;
  }
  .bestell-schritte li,
  .bestell-schritte li:last-child {
    flex: 0 0 auto;
    gap: 0.35rem;
  }
  .bestell-schritte li:not(:last-child)::after {
    display: none;
  }
}
.bestell-schritte a {
  color: inherit;
}
.bestell-schritte a:hover,
.bestell-schritte a:focus-visible {
  color: #8a6d00;
  text-decoration: underline;
}
@media screen and (max-width: 768px) {
  .warenkorb-position {
    flex-direction: column;
    gap: 0.25rem;
  }
  .warenkorb-position-preis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }
}

/* Verwaltung „Kundenkonten“: Suche rechts im Kopf, angesprungenes Konto hervorheben */
.kundenkonten-suche {
  min-width: 16rem;
}
.kundenkonto-zeile:target {
  background-color: #fff8db;
}
.kundenkonten-tabelle details ul {
  margin: 0;
}

/* Ermäßigung für alle vier Basiskurse in Warenkorb und Kasse */
.kasse-rabatt {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background-color: #fff8db;
  color: #6b5600;
  font-size: 0.9rem;
}

/* Dialog „Bestellung bestätigen“ in der Buchungsliste */
.bestellung-tabelle td {
  vertical-align: middle;
}
.bestellung-betrag {
  max-width: 9rem;
  margin-left: auto;
}
.akte-bestellung {
  padding-top: 0.75rem;
  border-top: 1px solid var(--bulma-border-weak);
}

/* Dialoge „Buchung bestätigen“ und „Umbuchen“: Aufstellung wie auf der Rechnung, Betrag je Zeile rechts */
.abrechnung-zeile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.3rem 0;
}
/* Betrag rechts nie umbrechen („− 45,00 €“), schmal wird der Text links */
.abrechnung-zeile > span:last-child {
  white-space: nowrap;
}
.abrechnung-zeile.ist-summe {
  margin-top: 0.4rem;
  padding-top: 0.6rem;
  border-top: 1px solid var(--bulma-border-weak);
  font-weight: 600;
}
.abrechnung-eingabe {
  flex: 0 0 9rem;
}
/* Ergebnis der Umbuchung (erstatten/nachzahlen), Farbe über Bulma-notification */
.notification.abrechnung-ergebnis {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
}
/* Dialog „Buchung bestätigen“: Folgen der Aktion als Ablauf (kompakte .schritte), Entfallendes grau */
.dialog-ablauf li {
  gap: 0.75rem;
  padding-bottom: 1.25rem;
}
.dialog-ablauf li:last-child {
  padding-bottom: 0;
}
.dialog-ablauf li:not(:last-child)::before {
  left: calc(0.875rem - 1px);
  top: 2rem;
}
.dialog-ablauf .schritt-nummer {
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.8rem;
}
.dialog-ablauf-inhalt {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 0.1rem;
}
.dialog-ablauf-titel {
  font-weight: 600;
  color: var(--bulma-text-strong);
}
.dialog-ablauf li.ist-entfallen .schritt-nummer {
  border-color: var(--bulma-border);
  color: var(--bulma-grey);
}
.dialog-ablauf li.ist-entfallen .dialog-ablauf-titel {
  color: var(--bulma-grey);
}
/* Abschnitte darunter (E-Mail, Seminarbetreuung) mit dünner Linie abgesetzt */
.abrechnung-abschnitt {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bulma-border-weak);
}
/* Umbuchen: bisheriges und neues Seminar untereinander (nebeneinander schnitt die Auswahl lange Titel ab) */
.umbuchen-seminare {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.umbuchen-seminar {
  padding: 0.75rem 1rem;
  border: 1px solid var(--bulma-border-weak);
  border-radius: var(--bulma-radius);
}
.umbuchen-seminar.ist-neu {
  border-color: #FCC200;
}
.umbuchen-pfeil {
  align-self: center;
  color: var(--bulma-grey);
}

/* Kasse: Zusammenfassung der Seminare, je Angabe eine Zeile mit Icon */
.kasse-seminar:not(:last-child) {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--bulma-border-weak);
}
.kasse-seminar .zeile {
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}
.kasse-seminar .zeile .icon {
  color: var(--bulma-grey);
}
/* Ab Tablet läuft die rechte Spalte beim Scrollen mit; ist sie höher als das Fenster, scrollt sie in sich */
@media screen and (min-width: 769px) {
  .kasse-zusammenfassung {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    /* Platz für den Schatten der Karte, sonst schneidet overflow ihn ab */
    padding: 0.25rem;
    margin: -0.25rem;
  }
}

/* ---------------------------------------------------------------- Seminare (Liste und Einzelseite) */

/* Filter als Pillen, auf dem Handy waagerecht scrollbar */
.seminar-filter {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}
.seminar-filter .button {
  flex-shrink: 0;
  border: 1px solid var(--bulma-border);
}
.seminar-filter .button.is-link {
  border-color: transparent;
  font-weight: 600;
}

/* Hinweis (z. B. Ermäßigung) im Gold der Website */
.seminar-hinweis {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #fff8db;
  border-left: 4px solid #FCC200;
  color: #4a4a40;
}
.seminar-hinweis a {
  color: #6b5600;
  text-decoration: underline;
}

/* Seminar als Karte: gleich hoch in einer Reihe, Preis und Knopf unten, goldene Linie oben */
.seminar-karte {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.25rem 1.25rem 1rem;
  background-color: var(--bulma-scheme-main);
  border: 1px solid var(--bulma-border-weak);
  border-top: 4px solid #FCC200;
  border-radius: var(--bulma-radius-large, 0.75rem);
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  /* Nach „In den Warenkorb“ springt die Liste zur Karte zurück: etwas Abstand nach oben (Toast) */
  scroll-margin-top: 6rem;
}
.seminar-karte:hover {
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1);
  transform: translateY(-2px);
}
.seminar-karte-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}
.seminar-karte-tags .tag .icon {
  margin-right: 0.15rem;
}
/* Kartenkopf: Datumsblock links, Etiketten und Dozent*in in der Mitte, rundes Foto rechts */
.seminar-karte-kopf {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.seminar-karte-kopftext {
  flex: 1;
  min-width: 0;
}
.seminar-karte-kopf .seminar-karte-tags {
  margin-bottom: 0.25rem;
}
.seminar-karte-dozent {
  font-size: 0.85rem;
  color: var(--bulma-text);
}
.seminar-karte-dozent strong {
  font-weight: 600;
}
.seminar-karte-foto {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
}
@media screen and (max-width: 768px) {
  .seminar-karte-foto {
    width: 56px;
    height: 56px;
  }
}
/* Datumsblock: erster Termin groß, ein zweiter Termin klein darunter („2 Tage“ bzw. „+ 28. Nov“) */
.seminar-karte-termin {
  flex-shrink: 0;
  min-width: 64px;
  padding: 0.4rem 0.4rem 0.45rem;
  border-radius: 0.5rem;
  background-color: #fff8db;
  color: #6b5600;
  text-align: center;
  line-height: 1.1;
}
.seminar-karte-termin span {
  display: block;
  white-space: nowrap;
}
.seminar-karte-termin .termin-tag {
  font-size: 1.5rem;
  font-weight: 700;
}
.seminar-karte-termin .termin-monat {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.seminar-karte-termin .termin-jahr {
  font-size: 0.7rem;
  color: #8a6d00;
}
.seminar-karte-termin .termin-weiter {
  margin-top: 0.3rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(138, 109, 0, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
}
.seminar-karte-datum {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #8a6d00;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.seminar-karte-titel {
  margin-bottom: 0.85rem !important;
}
/* Seminartitel etwas leichter als die übrigen Überschriften (Bulma: 800), Wunsch der Leitung */
.seminar-karte-titel,
.seminar-seitentitel {
  font-weight: 600;
}
/* Dunkelgrau statt fast Schwarz, wirkt ruhiger (Wunsch der Leitung) */
.seminar-karte-titel,
.seminar-karte-titel a,
.seminar-seitentitel {
  color: #363630;
}
/* Ausgebuchte Seminare treten zurück: graue Linie und grauer Datumsblock wie bei vergangenen, Foto blasser */
.seminar-karte.ist-ausgebucht {
  border-top-color: var(--bulma-grey-lighter);
  background-color: var(--bulma-white-bis);
}
.ist-ausgebucht .seminar-karte-termin {
  background-color: var(--bulma-white-ter);
  color: var(--bulma-grey-dark);
}
.ist-ausgebucht .seminar-karte-termin .termin-jahr {
  color: var(--bulma-grey);
}
.ist-ausgebucht .seminar-karte-foto {
  opacity: 0.6;
}
.ist-ausgebucht .seminar-karte-titel a,
.ist-ausgebucht .seminar-preis {
  color: var(--bulma-grey-dark);
}
.seminar-karte-titel a:hover {
  color: #8a6d00;
}
.seminar-angaben {
  list-style: none;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--bulma-text);
}
.seminar-angaben li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.seminar-angaben .icon {
  color: var(--bulma-grey);
  flex-shrink: 0;
}
.seminar-karte-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bulma-border-weak);
}
/* Knöpfe „Details“ und „In den Warenkorb“ ohne den unteren Abstand, den Bulma in .buttons setzt */
.seminar-karte-fuss .buttons,
.seminar-karte-fuss .buttons .button {
  margin-bottom: 0;
}
.seminar-preis {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bulma-text-strong);
}
.seminar-preis.is-gross {
  font-size: 1.6rem;
  line-height: 1.2;
}

/* Einzelseite: Angaben rechts, beim Scrollen sichtbar */
.seminar-info {
  position: sticky;
  top: 1.5rem;
}
.seminar-angaben.is-gross {
  font-size: 1rem;
  margin-bottom: 0;
}
.seminar-angaben.is-gross li {
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.seminar-angaben-titel {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--bulma-grey);
}
.seminar-info-preis {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-top: 1px solid var(--bulma-border-weak);
  border-bottom: 1px solid var(--bulma-border-weak);
}
.seminar-seite .breadcrumb a {
  color: var(--bulma-grey);
}
.seminar-seite .breadcrumb a:hover {
  color: #8a6d00;
}
.seminar-seite .breadcrumb li.is-active a {
  color: var(--bulma-text-strong);
}
.seminar-beschreibung {
  font-size: 1.05rem;
  line-height: 1.7;
}
@media screen and (max-width: 768px) {
  .seminar-info {
    position: static;
  }
}

/* ---------------------------------------------------------------- Fehlerseiten (404, 500) */
.fehlerseite {
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.fehlerseite-code {
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: #FCC200;
  margin-bottom: 1rem;
}
.fehlerseite-text {
  max-width: 34rem;
  margin: 0 auto;
  color: #4a4a4a;
}
.fehlerseite-hinweis {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

/* ---------------------------------------------------------------- Startseite */
/* Knöpfe im Titelbild unter den (schwebenden) Titelzeilen */
.hero .hero-aktionen {
  clear: both;
  float: left;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0 0 0 40px;
  padding: 10px 20px;
  background-color: rgba(54, 54, 48, .8);
}
.hero .hero-aktionen a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #FCC200;
  padding-bottom: 1px;
  transition: color 0.15s ease;
}
.hero .hero-aktionen a:hover,
.hero .hero-aktionen a:focus-visible {
  color: #FCC200;
}
.hero .hero-aktionen .icon {
  font-size: 0.8em;
  transition: transform 0.15s ease;
}
.hero .hero-aktionen a:hover .icon {
  transform: translateX(3px);
}
@media screen and (max-width: 768px) {
  .hero .hero-aktionen {
    margin-left: 20px;
    font-size: 0.9rem;
  }
}
/* Text nicht per top verschieben (dann ragten die Knöpfe unten aus dem Bild), sondern mit Abstand oben: das Bild wächst mit */
.hero.is-custom .hero-text {
  top: 0;
  padding-top: 6rem;
}
/* Titelbild über die Klasse statt Inline-Style; ab Tablet unten Platz für die hineinragende Vorteile-Karte.
   Gezeigt wird nur die linke Bildhälfte (Brandenburger Tor): Das Bild ist so groß, dass die Personen rechts
   außerhalb liegen – auf dem Handy über die Höhe, ab Tablet über die Breite. */
.hero.start-hero {
  background: url('/img/hero-eeb02054eff052ea9f257b4f058cd3bd.jpg') 0% 35% / auto 130% no-repeat;
}
@media screen and (min-width: 769px) {
  .hero.start-hero {
    background-size: 220% auto;
    background-position: 0% 60%; /* Quadriga über der hineinragenden Karte */
  }
  .hero.start-hero .hero-body {
    padding-bottom: 6rem;
  }
}
/* Vier Vorteile als Karte, ab Tablet ins Titelbild hineingeschoben */
.start-vorteile {
  padding-top: 1.5rem;
  padding-bottom: 0;
}
.box.start-vorteile-karte {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  box-shadow: 0 0.5rem 1.5rem rgba(10, 10, 10, 0.1);
}
@media screen and (min-width: 769px) {
  .start-vorteile {
    padding-top: 0;
  }
  .box.start-vorteile-karte {
    margin-top: -3.5rem;
  }
}
/* Angabe mit goldenem Icon: Vorteile und Begriffe der Schematherapie */
.start-vorteil {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.start-vorteil .icon {
  flex: 0 0 auto;
  color: #FCC200;
}
/* Abschnittskopf: Überschrift links, Link „Alle …“ rechts */
.start-kopf {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.start-kopf .title {
  margin-bottom: 0;
}
.start-einleitung {
  max-width: 44rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}
/* Textlink mit Pfeil in dunklem Gold (auf Weiß und Grau lesbar) */
.start-mehr {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #8a6d00;
  font-weight: 600;
}
.start-mehr:hover,
.start-mehr:focus-visible {
  color: #6b5600;
  text-decoration: underline;
}
.start-mehr .icon {
  font-size: 0.8em;
  transition: transform 0.15s ease;
}
.start-mehr:hover .icon {
  transform: translateX(3px);
}
.start-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}
/* Bausteine der Ausbildung und weitere Angebote: gleich hohe Kästen, Links unten */
.box.start-baustein,
.box.start-angebot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  margin: 0;
}
.start-baustein p,
.start-angebot p:not(.title) {
  font-size: 0.95rem;
}
.start-baustein .start-links,
.start-angebot .start-mehr {
  margin-top: auto;
  padding-top: 1rem;
}
.start-baustein-kopf {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.start-baustein-kopf .title {
  margin-bottom: 0;
}
.start-angebot .title .icon,
.start-seitenspalte .title .icon {
  color: #FCC200;
}
/* Illustration neben „Was ist Schematherapie?“, auf dem Handy kleiner */
.start-bild {
  max-width: 16rem;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .start-bild {
    max-width: 11rem;
  }
}
/* Rechte Spalte „Über das IST-B“: Leitung, Dozent*innen, Logos */
.start-seitenspalte .box {
  margin: 0 0 1.5rem;
}
.start-seitenspalte .box:last-child {
  margin-bottom: 0;
}
.start-seitenspalte .start-mehr {
  display: flex;
  width: fit-content;
}
.start-person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.start-person .image {
  flex: 0 0 auto;
}
/* Links, zwischen und rechts der Logos gleich viel Platz (Innenabstand seitlich zählt sonst doppelt) */
.start-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding-left: 0;
  padding-right: 0;
}
/* Logos sind nicht quadratisch: Höhe nach dem Bild, sonst bleibt unten Leerraum */
.start-logos .image {
  height: auto;
}

/* ---------------------------------------------------------------- Dozent*innen */
/* Karte als Knopf (Tastatur): ohne Knopf-Optik, Fokus als goldener Rahmen */
.dozent-karte {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* Quadratisches Foto in Spaltenbreite; zwei Bilder übereinander zum Überblenden */
.dozent-foto {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06);
  transition: box-shadow 0.15s ease;
}
.dozent-foto img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.dozent-foto img.hover {
  opacity: 0;
}
/* Kinderfoto auch bei Tastaturfokus, nicht nur mit der Maus */
.dozent-karte:hover .dozent-foto img.hover,
.dozent-karte:focus-visible .dozent-foto img.hover {
  opacity: 1;
}
.dozent-karte:hover .dozent-foto img.default,
.dozent-karte:focus-visible .dozent-foto img.default {
  opacity: 0;
}
.dozent-karte:hover .dozent-foto,
.dozent-karte:focus-visible .dozent-foto {
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.1);
}
.dozent-karte:focus-visible {
  outline: none;
}
.dozent-karte:focus-visible .dozent-foto {
  outline: 3px solid #FCC200;
  outline-offset: 2px;
}
.dozent-name {
  display: block;
  margin-top: 0.6rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--bulma-text-strong);
  transition: color 0.15s ease;
}
.dozent-karte:hover .dozent-name,
.dozent-karte:focus-visible .dozent-name {
  color: #8a6d00;
}
/* Grad und Anzahl der Seminare: klein und grau unter dem Namen (Karte und Profil) */
.dozent-zusatz {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--bulma-grey);
}
.dozent-termine {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.3rem;
}
@media (prefers-reduced-motion: reduce) {
  .dozent-foto,
  .dozent-foto img,
  .dozent-name {
    transition: none;
  }
}
/* Ohne Porträt: neutrale graue Fläche mit Personen-Symbol (Karte, Profil, Formular der Verwaltung);
   bewusst keine Bilddatei (kein zusätzlicher Download, Symbol wächst mit der Kachel) */
.dozent-foto-platzhalter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
  border-radius: 6px;
  background-color: var(--bulma-white-ter);
  color: var(--bulma-grey-lighter);
}
.dozent-foto-platzhalter .fa-user {
  font-size: 45cqmin;
}

/* Profil (Bulma-Modal ohne Kopf- und Fußbalken): weiße Karte, oben Foto und Name, darunter Text und Seminare */
.dozent-modal .modal-content.dozent-profil {
  position: relative;
  width: min(44rem, calc(100vw - 2rem));
  padding: 2rem;
  border-radius: 12px;
  background-color: var(--bulma-scheme-main);
  box-shadow: 0 12px 40px rgba(10, 10, 10, 0.18);
}
.dozent-modal.is-active .dozent-profil {
  animation: dozent-profil-ein 0.15s ease-out;
}
@keyframes dozent-profil-ein {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.dozent-profil-schliessen {
  position: absolute;
  top: 1rem;
  right: 1rem;
}
.dozent-profil-kopf {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 2rem; /* Platz für das Schließen-Kreuz */
}
.dozent-profil-foto {
  flex: 0 0 auto;
  width: 120px;
}
.dozent-profil-name {
  margin-bottom: 0 !important;
  font-weight: 600;
}
.dozent-profil-text {
  margin-top: 1.5rem;
  line-height: 1.65;
}
.dozent-profil-seminare {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--bulma-border-weak);
}
/* Ein Seminar: kleiner Datumsblock wie auf den Seminarkarten, Titel, Angaben grau, Pfeil rechts */
.dozent-profil-termin {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0 -0.6rem;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--bulma-text);
  transition: background-color 0.15s ease;
}
.dozent-profil-termin:hover,
.dozent-profil-termin:focus-visible {
  background-color: var(--bulma-white-ter);
  color: var(--bulma-text);
}
.dozent-profil-termin .seminar-karte-termin {
  min-width: 52px;
  padding: 0.3rem 0.3rem 0.35rem;
}
.dozent-profil-termin .termin-tag {
  font-size: 1.15rem;
}
.dozent-profil-termin-text {
  flex: 1 1 auto;
  min-width: 0;
}
.dozent-profil-termin-titel {
  display: block;
  font-weight: 600;
  color: var(--bulma-text-strong);
}
.dozent-profil-termin:hover .dozent-profil-termin-titel,
.dozent-profil-termin:focus-visible .dozent-profil-termin-titel {
  color: #8a6d00;
}
/* Handy: Profil als Blatt von unten über die ganze Breite */
@media screen and (max-width: 768px) {
  .dozent-modal {
    justify-content: flex-end;
  }
  .dozent-modal .modal-content.dozent-profil {
    width: 100%;
    max-height: 90vh;
    margin: 0;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 16px 16px 0 0;
  }
  .dozent-profil-foto {
    width: 88px;
  }
  .dozent-profil-kopf {
    gap: 1rem;
  }
  .dozent-profil-name {
    font-size: 1.25rem !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dozent-modal.is-active .dozent-profil {
    animation: none;
  }
  .dozent-profil-termin {
    transition: none;
  }
}

/* ---------------------------------------------------------------- Schematherapie */
/* Unternavigation (Makro schematherapieNavigation): nur drei Knöpfe, daher umbrechen statt waagerecht scrollen */
.seminar-filter.ist-umbrechend {
  flex-wrap: wrap;
  overflow-x: visible;
}

/* ---------------------------------------------------------------- Materialien */
/* Dateien je Gruppe als Liste im Kasten: PDF-Symbol, Titel mit Angaben, rechts Herunterladen */
.material-gruppe {
  margin-bottom: 2.5rem;
  scroll-margin-top: 1rem;
}
.material-gruppe:last-child {
  margin-bottom: 0;
}
.material-gruppe-titel .icon {
  color: #FCC200;
}
.material-eintrag {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--bulma-border-weak);
}
.material-eintrag:last-child {
  border-bottom: none;
}
.material-eintrag > .icon {
  flex: 0 0 auto;
  color: var(--bulma-grey);
}
.material-text {
  flex: 1 1 auto;
  min-width: 0;
}
.material-text a {
  color: var(--bulma-text-strong);
  font-weight: 600;
}
.material-text a:hover,
.material-text a:focus-visible {
  color: #8a6d00;
  text-decoration: underline;
}
.material-eintrag .button {
  flex: 0 0 auto;
}
.material-video {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}
/* Zwei-Klick-Video: YouTube lädt erst nach dem Klick (Datenschutz, kein Cookie-Banner nötig) */
.video-platzhalter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem;
  border: none;
  background: #363630;
  color: #e8e8e0;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s;
}
.video-platzhalter:hover {
  background: #2b2b26;
}
.video-platzhalter:focus-visible {
  outline: 3px solid #FCC200;
  outline-offset: -3px;
}
.video-platzhalter-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #FCC200;
  color: #363630;
  font-size: 1.4rem;
}
.video-platzhalter-hinweis {
  max-width: 22rem;
  color: #c9c9bd;
  font-size: 0.75rem;
  line-height: 1.4;
}
/* Sprungmarken rechts mit Anzahl, ab Tablet beim Scrollen sichtbar */
.material-inhalt li + li {
  border-top: 1px solid var(--bulma-border-weak);
}
.material-inhalt li a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--bulma-text-strong);
}
.material-inhalt li a:hover,
.material-inhalt li a:focus-visible {
  color: #8a6d00;
}
@media screen and (min-width: 769px) {
  .material-inhalt {
    position: sticky;
    top: 1.5rem;
  }
}

/* ---------------------------------------------------------------- Zertifizierung */
/* Reiter der drei Stufen: Nummer im Kreis wie bei den Schritten, aktive Stufe in dunklem Gold */
.zert-reiter .schritt-nummer {
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.5rem;
  font-size: 0.8rem;
}
.zert-reiter li.is-active a {
  color: #8a6d00;
  border-bottom-color: #FCC200;
  font-weight: 600;
}
.zert-reiter li.is-active .schritt-nummer {
  background-color: #FCC200;
  color: #363630;
}
@media screen and (max-width: 768px) {
  /* Auf dem Handy drei gleich breite Reiter: Nummer über dem Namen, Namen umbrechend (sonst wäre der dritte abgeschnitten) */
  .zert-reiter {
    white-space: normal;
  }
  .zert-reiter ul {
    align-items: stretch;
  }
  .zert-reiter li {
    flex: 1 1 0;
    min-width: 0;
  }
  .zert-reiter a {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    height: 100%;
    padding: 0.5em 0.25em;
    text-align: center;
    line-height: 1.25;
  }
  .zert-reiter .schritt-nummer {
    margin-right: 0;
  }
}
.zert-stufe .seminar-angaben strong {
  color: var(--bulma-text-strong);
}
/* Stufen in Gruppen gegliedert (Unterrichtseinheiten, Behandlung, Supervision): Abstand vor jeder weiteren Gruppe */
.zert-stufe .seminar-angaben + .seminar-angaben-titel {
  margin-top: 1.75rem;
}
/* Unterpunkte (z. B. Behandlungsfälle unter den Behandlungsstunden) als schlichte Aufzählung statt Icon-Zeilen */
.zert-unterpunkte {
  list-style: disc;
  margin: 0.4rem 0 0 1.25rem;
}
.seminar-angaben .zert-unterpunkte li {
  display: list-item;
  margin-bottom: 0.25rem;
}
/* Vergleichstabelle: erste Spalte als Zeilenüberschrift, Text oben bündig */
.zert-tabelle th[scope="row"] {
  width: 30%;
}
.zert-tabelle th,
.zert-tabelle td {
  vertical-align: top;
}
/* Auf dem Handy (Zeilen als Karten) die Zeilenüberschrift über die volle Kartenbreite */
@media screen and (max-width: 768px) {
  .zert-tabelle th[scope="row"] {
    display: block;
    width: auto;
  }
}

/* ---------------------------------------------------------------- Therapeut*innen */
.therapeuten-suche {
  max-width: 32rem;
}
/* Liste wie ein Adressbuch: je Person eine Zeile mit dünner Trennlinie, keine Kästen (Kacheln wirkten erschlagend).
   Spalten: Name mit Zulassung | Praxis mit Telefon | E-Mail und Website */
.therapeuten-liste {
  border-bottom: 1px solid var(--bulma-border-weak);
}
.therapeut-zeile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr);
  gap: 0.75rem 2rem;
  padding: 1.25rem 0.75rem;
  border-top: 1px solid var(--bulma-border-weak);
}
/* Jede zweite Zeile hellgrau (Wunsch der Leitung, für die Übersicht); Klasse aus Template bzw. Suchskript */
.therapeut-zeile.ist-hinterlegt {
  background-color: var(--bulma-white-ter);
}
/* Tablet: Name über die volle Breite, darunter Praxis und Kontakt nebeneinander */
@media screen and (max-width: 1023px) {
  .therapeut-zeile {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .therapeut-zeile > :first-child {
    grid-column: 1 / -1;
  }
}
/* Handy: alles untereinander */
@media screen and (max-width: 768px) {
  .therapeut-zeile {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }
}
/* Kasse oder privat ist für Patient*innen wichtig: grau, aber nicht zu klein */
.therapeut-zulassungen {
  font-size: 0.85rem;
  color: var(--bulma-grey-dark);
}
/* Kontaktangaben in Textfarbe statt Gold (bei vielen Einträgen sonst eine Wand aus Gelb); lange Adressen dürfen umbrechen */
.therapeut-zeile a {
  color: var(--bulma-text);
  overflow-wrap: anywhere;
}
.therapeut-zeile a:hover,
.therapeut-zeile a:focus-visible {
  color: #8a6d00;
  text-decoration: underline;
}
.seminar-angaben address {
  font-style: normal;
}
.therapeut-sonstiges {
  margin-top: 0.35rem;
  color: var(--bulma-text);
}

/* ---------------------------------------------------------------- Newsletter */
/* Schmaler Hinweis unter den Seminarlisten */
.newsletter-hinweis {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1rem 1.25rem;
  border: 1px solid var(--bulma-border-weak);
  border-radius: 6px;
  background-color: #fafaf7;
}
.newsletter-hinweis .icon {
  color: #FCC200;
  flex: 0 0 auto;
}
.newsletter-hinweis p {
  flex: 1 1 18rem;
}

/* Verwaltung: zweite Praxis im Formular der Therapeut*innen-Liste (aufklappbar) */
.zweite-praxis summary {
  cursor: pointer;
}
/* Verwaltung: Foto der Dozent*innen-Seite mit quadratischer Vorschau (Ausschnitt wie beim Zuschneiden auf dem Server) */
.foto-feld {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.foto-vorschau {
  position: relative;
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 6px;
}
.foto-vorschau img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
/* Sonst schiebt ein langer Dateiname das Feld aus dem Kasten */
.foto-feld-auswahl {
  min-width: 0;
}

/* Hinweis „Wir vermitteln keine Therapieplätze“ (Kontakt, Therapeut*innen) und Klarstellung auf der Startseite */
.therapieplatz-hinweis ul {
  list-style: disc;
  margin-left: 1.25rem;
}
.start-klarstellung {
  padding: 0.75rem 1rem;
  border-left: 4px solid #FCC200;
  background-color: #fffaeb;
}
.start-klarstellung a {
  color: #6b5600;
  text-decoration: underline;
}
