/* ============================================================
   OS82DD – ZENTRALES CSS (sicher für Sachsen-Schul-CMS/Bootstrap)
   Ziel:
   - Theme nicht zerstören
   - nur gezielte Überschreibungen
   - eigene Komponenten klar kapseln
   ============================================================ */


/* ============================================================
   1) GLOBAL: Grundlook
   ============================================================ */

html, body{
  background: #f8fafc !important;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

/* Optional: Standard-Textfarbe (Theme lässt i.d.R. ok) */
/* body{ color:#111; } */


/* ============================================================
   2) THEME-BEREINIGUNG (gezielt, ohne Layout zu zerstören)
   ============================================================ */

.page-heading .breadcrumbs,
.breadcrumb,
#breadcrumb,
.breadcrumbs{
  display: none !important;
}

.page-heading .heading-title{
  display: none !important;
}

ul.menu-top,
.menu-top{
  display: none !important;
}

footer,
#footer,
.site-footer,
.page-footer{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

footer, #footer{
  padding: 8px 0 !important;
  margin: 0 !important;
}


/* ============================================================
   2a) HEADER-TITEL (OS82DD) – Desktop Overlay, Mobile Flow
   ============================================================ */

:root{
  --os-header-top: 72px;      /* statt 100px: besserer Default */
  --os-header-left: 600px;    /* wird per Script überschrieben */
  --os-header-right: 24px;
}

/* Bezug */
header#pageTop,
#pageTop.header.main-header{
  position: relative;
}

/* DESKTOP: Overlay im Verlauf */
.os-header{
  position: absolute;
  top: var(--os-header-top);
  left: var(--os-header-left);
  right: var(--os-header-right);
  z-index: 1000;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;

  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;

  max-width: 900px;
}

/* Typo */
.os-header__title{
  margin: 0;
  color: #fff !important;
  font-size: 2.1rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: .2px;
}

.os-header__subtitle{
  margin: .45rem 0 0 0;
  color: rgba(255,255,255,.92) !important;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.35;
}

/* MOBILE: unter Logo, im Layoutfluss (nicht overlay!) */
@media (max-width: 800px){

  /* genug Platz im Verlauf */
  header#pageTop,
  #pageTop.header.main-header{
    min-height: 0; /* wir gehen in Flow, daher kein künstlicher Platz nötig */
  }

  .os-header{
    position: static !important;  /* WICHTIG: raus aus absolute */
    left: auto !important;
    right: auto !important;
    top: auto !important;

    width: 100%;
    max-width: none;

    padding: 10px 12px 14px !important;

    align-items: center;
    text-align: center;
  }

  .os-header__title{
    font-size: 1.55rem;
    font-weight: 600;
  }

  .os-header__subtitle{
    font-size: 1.05rem;
  }
}

/* Standard: kein Umbruch */
.os-header__br-mobile{
  display: none;
}

/* Nur mobil: Zeilenumbruch aktivieren */
@media (max-width: 800px){
  .os-header__br-mobile{
    display: block;
    height: 0;
  }
}


/* ============================================================
   3) OS82DD BUTTONS (eigene Klasse, KEIN .btn überschreiben!)
   Verwendung:
   <a class="os-btn" ...>Text</a>
   Varianten: os-btn--sm, os-btn--lg, os-btn--block, os-btn--hero
   ============================================================ */

.os-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 35px;
  min-width: 90px;
  padding: 0 14px;

  background: rgb(87,168,154);
  color: #fff !important;

  border: none;
  border-radius: 6px;

  font-size: 16px;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  text-decoration: none !important;

  transition: background .2s ease, transform .08s ease;
}

.os-btn:hover,
.os-btn:focus{
  background: rgb(70,145,133);
}

.os-btn:active{
  transform: translateY(1px);
}

.os-btn--sm{
  height: 30px;
  min-width: 80px;
  padding: 0 12px;
  font-size: 14px;
}

.os-btn--lg{
  height: 42px;
  min-width: 120px;
  padding: 0 18px;
  font-size: 17px;
}

.os-btn--block{ width: 100%; }


/* ============================================================
   HERO-BUTTON (Call-to-Action)
   - wie alte Version: Hover hebt leicht an
   - focus-visible für Barrierefreiheit
   - optional über --btn/--btn-hover steuerbar
   ============================================================ */

.os-btn--hero{
  height: auto;
  min-width: 190px;
  padding: .95rem 1.15rem;
  border-radius: 10px;

  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .2px;

  background: var(--btn, rgb(87,168,154));
  backdrop-filter: blur(6px);

  transition: background .15s ease, transform .08s ease;
}

.os-btn--hero:hover{
  background: var(--btn-hover, rgb(70,145,133));
  transform: translateY(-1px);
}

.os-btn--hero:active{
  transform: translateY(1px);
}

.os-btn--hero,
.os-btn--hero:hover,
.os-btn--hero:visited,
.os-btn--hero:focus,
.os-btn--hero:active{
  color: #fff !important;
  text-decoration: none !important;
}

.os-btn--hero:focus-visible{
  outline: 3px solid rgba(0,0,0,.25);
  outline-offset: 3px;
}

@media (max-width: 800px){
  .os-btn--hero{
    min-width: 100%;
    padding: .9rem 1rem;
    font-size: 0.95rem;
  }
}


/* ============================================================
   3a) OS82DD INFOBOX (Hero-Infokarten)
   Verwendung:
   <div class="os-btn os-btn--infobox">...</div>
   optional breit:
   <div class="os-btn os-btn--infobox os-btn--infobox--wide">...</div>
   ============================================================ */

.os-btn--infobox{
  flex-direction: column;
  align-items: center;
  justify-content: center;

  height: auto;
  min-width: 190px;
  padding: 0.45rem 0.85rem;

  border-radius: 10px;

  background: rgba(87,168,154, 0.75);
  backdrop-filter: blur(6px);

  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;

  pointer-events: none;
  cursor: default;

  transform: none;
}

.os-btn--infobox:hover,
.os-btn--infobox:focus{
  background: rgba(87,168,154, 0.75);
}

.os-btn--infobox--wide{
  min-width: 300px;
}

.os-btn--infobox .btn-role{
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.os-btn--infobox .btn-name{
  font-size: .95rem;
  font-weight: 400;
  margin-top: 0.15rem;
  line-height: 1.25;
}

.os-btn--infobox .btn-mail{
  font-size: .8rem;
  margin-top: 0.35rem;
  opacity: 0.95;
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 800px){
  .os-btn--infobox{
    min-width: 100%;
  }
}


/* ============================================================
   BUTTON-VARIANTE: ZURÜCK
   - Optik wie alter back-button
   - Radius an neuen Style angepasst
   - etwas mehr vertikaler Abstand
   ============================================================ */

.os-btn--back{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* Größe wie früher */
  height: 35px;
  min-width: 90px;
  padding: 0 14px;

  /* Farbe exakt wie alter Stil */
  background: rgb(87,168,154);
  color: #fff !important;

  /* neue Abrundung */
  border-radius: 6px;

  /* Typo wie früher */
  font-size: 16px;
  font-weight: 400;
  line-height: 1;

  border: none;
  cursor: pointer;
  text-decoration: none !important;

  /* etwas mehr Luft nach oben/unten */
  margin-block: 18px;

  transition: background .25s ease;
}

/* Hover exakt wie früher */
.os-btn--back:hover,
.os-btn--back:focus{
  background: rgb(67,148,134);
}

/* kein Bewegungseffekt */
.os-btn--back:active{
  transform: none;
}


/* ============================================================
   3b) KOMPONENTE: HERO (global – Startseite + Impressum)
   Ziel:
   - ein gemeinsamer Hero-Layout-Block
   - Startseite kann CTA-Buttons als volle Breite auf Mobile nutzen
   - Impressum kann Infobox-Kacheln ohne erzwungene 100%-Breite nutzen
   Nutzung:
   - Startseite:  <section class="hero hero--cta">...</section>
   - Impressum:   <section class="hero">...</section>
   ============================================================ */

/* Außenrahmen / Container */
.hero-wrap{
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

/* Optionaler Header über dem Bild (falls später genutzt) */
.hero-header{
  text-align: center;
  margin-bottom: 0.9rem;
}

.hero-title{
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 .35rem 0;
  line-height: 1.15;
}

.hero-subtitle{
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  margin: 0;
  opacity: .85;
}

/* Haupt-Hero */
.hero{
  /* Startseite nutzt diese Variablen für .os-btn--hero (transparent) */
  --btn: rgba(87,168,154, 0.75);
  --btn-hover: rgba(70,145,133, 0.78);

  position: relative;
  height: clamp(420px, 55vh, 500px);
  overflow: hidden;
  border-radius: 12px;
  background: #ddd;
}

/* Bild (Desktop: absolut) */
.hero__media{
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Aktionen (Buttons/Infoboxen) im Bild (Desktop) */
.hero-actions{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;

  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;

  padding: 0 1rem;
  z-index: 2;
}

/* Mobile */
@media (max-width: 600px){

  .hero-wrap{
    margin: 0;
    padding: 0;
  }

  .hero{
    border-radius: 0;
    height: auto;
    overflow: visible;
    background: none;
  }

  /* Bild im Flow (nicht mehr absolut) */
  .hero__media{
    position: static;
  }

  .hero__media img{
    position: static;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center bottom;
  }

  /* Aktionen unter dem Bild */
  .hero-actions{
    position: static;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    margin-top: 0.75rem;
  }

  /* NUR Startseite: CTA-Buttons auf Mobile voll breit */
  .hero--cta .os-btn--hero{
    min-width: 100%;
  }
}


/* ============================================================
   4) KOMPONENTE: TEXT (OS82DD)
   Zweck:
   - neutrale Textbasis für Layouts, Boxen, Teaser
   - steuert AUSSCHLIESSLICH Typografie
   - keine Farben, keine Margins, kein Layout
   ============================================================ */

.os-text{
  font-size: 1rem;
  line-height: 1.5;
  color: inherit;
}

/* ============================================================
   TEXT-GRÖSSEN (explizit & kontrolliert)
   ============================================================ */

.os-text--sm{
  font-size: 0.9rem;
  line-height: 1.45;
}

.os-text--md{
  font-size: 1rem;
  line-height: 1.5;
}

.os-text--lg{
  font-size: 1.1rem;
  line-height: 1.55;
}

.os-text--xl{
  font-size: 1.25rem;
  line-height: 1.6;
}

/* ============================================================
   OPTIONALE TEXT-MODIFIER
   (ruhig, CMS-sicher)
   ============================================================ */

.os-text--muted{
  color: rgba(0,0,0,.7);
}

.os-text--strong{
  font-weight: 600;
}

.os-text--compact{
  line-height: 1.35;
}


/* ============================================================
   5) KOMPONENTE: DOWNLOADS (gekapselt)
   ============================================================ */

.os-downloads{
  --border: rgba(0,0,0,.12);
  --border-hover: rgba(0,0,0,.22);

  max-width: 900px;
  margin: 0 auto;
  color: #111;
}

.os-downloads__list{
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: 10px;
}

.os-downloads__item{
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  transition: background .2s ease, border-color .2s ease;
}

.os-downloads__item:hover{
  background: #f7f7f7;
  border-color: var(--border-hover);
}

.os-downloads__link{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: .8rem .9rem;
  color: inherit !important;
  text-decoration: none !important;
}

.os-downloads__title{
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
}

.os-downloads__icon{
  width: 2.5em;
  height: 2.5em;
  flex-shrink: 0;
}


/* ============================================================
   6) KOMPONENTE: TERMINE (Terminseite: Kartenoptik)
   ============================================================ */

.os-termine{
  --accent: rgb(87,168,154);
  --border: rgba(0,0,0,.12);
  --muted: rgba(0,0,0,.70);

  max-width: 720px;
  margin: 0 auto;
  color: #111;
}

.os-termine__list{
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: 10px;
}

.os-termine__item{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: .8rem .9rem;
  background: #fff;
  display: grid;
  gap: 4px;
}

.os-termine__date{
  font-weight: 400;
  font-size: .95rem;
}

.os-termine__text{
  color: var(--muted);
  line-height: 1.4;
  font-size: 1rem;
}

.os-termine__text a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.os-termine__text a:hover{
  text-decoration: underline;
}

/* ============================================================
   OPTIONAL (final): Termine in Infobox – Pfeilmarker statt Linien
   Zweck:
   - ruhig & gut lesbar
   - klare Scanbarkeit (Marker)
   - keine Theme-Artefakte
   ============================================================ */

.infobox .os-termine__list--infobox{
  list-style: none;
  margin: 0;
  padding: 0;
}

.infobox .os-termine__list--infobox .os-termine__item{
  position: relative;
  padding-left: 1.2em;
  margin: 0 0 6px 0;

  background: none;
  border: 0;
  box-shadow: none;

  line-height: 1.45;
}

/* Pfeil als Marker (typografisch ruhig) */
.infobox .os-termine__list--infobox .os-termine__item::before{
  content: "›";
  position: absolute;
  left: 0;
  top: 0;

  color: rgb(87,168,154);
  font-weight: 700;
}


/* ============================================================
   7) KOMPONENTE: INFOBOX (Basis)
   ============================================================ */

.infobox{
  --accent: rgb(87,168,154);
  --border: rgba(0,0,0,.12);
  --muted: rgba(0,0,0,.70);

  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px 12px;
  color: #111;
}

.infobox *{
  box-sizing: border-box;
}

/* ---------- optional: “als Link” (ganze Box klickbar) ---------- */
.infobox.is-link{
  display: block;
  text-decoration: none;
  color: inherit;
}

/* kein Hover auf normalen Infoboxen */
.infobox.is-link:hover{
  /* bewusst leer */
}

/* Fokus sichtbar (Barrierefreiheit) */
.infobox.is-link:focus-visible{
  outline: 3px solid rgba(87,168,154,.35);
  outline-offset: 3px;
}


/* ============================================================
   VARIANTE: INFOBOX -- ALLGEMEIN
   ============================================================ */

.infobox--allgemein{
  max-width: 100%;
}

.infobox--allgemein .infobox__title{
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}

.infobox--allgemein .infobox__divider{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 8px 0 12px;
  height: 0;
}

.infobox--allgemein .infobox__content{
  font-size: 0.98rem;
  line-height: 1.5;
}

.infobox--allgemein .infobox__content a{
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.infobox--allgemein .infobox__content a:hover{
  text-decoration: underline;
}


/* ============================================================
   LAYOUT: INFOBOX-GRID
   ============================================================ */

.infobox-grid{
  --tile: 260px;
  display: grid;
  gap: 1rem;

  justify-content: center;
  justify-items: center;
  align-items: stretch;

  grid-template-columns: repeat(
    auto-fit,
    minmax(min(100%, var(--tile)), var(--tile))
  );
}

@media (min-width: 1200px){
  .infobox-grid{ --tile: 280px; }
}

.infobox--full{
  grid-column: 1 / -1;
  justify-self: stretch;
}


/* ============================================================
   VARIANTE: INFOBOX -- PINNWAND
   - Bild 8:5
   - Hover NUR Lift + Shadow
   ============================================================ */

.infobox--pinnwand{
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

/* Bildcontainer */
.infobox--pinnwand .infobox__media{
  width: 100%;
  aspect-ratio: 8 / 5;
  overflow: hidden;

  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

/* Bild */
.infobox--pinnwand .infobox__image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Text */
.infobox--pinnwand .infobox__title{
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
}

.infobox--pinnwand .infobox__meta{
  margin-top: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- HOVER: NUR BEWEGUNG + TIEFE ---------- */
.infobox--pinnwand.is-link{
  transition: transform .12s ease, box-shadow .12s ease;
}

.infobox--pinnwand.is-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0,0,0,.08);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce){
  .infobox--pinnwand.is-link{
    transition: none;
  }
  .infobox--pinnwand.is-link:hover{
    transform: none;
  }
}

/* ============================================================
   7b) INFOBOX – MAP (Google Maps Einbettung)
   Zweck:
   - saubere Einbettung von iframes (Maps) in Infoboxen
   - responsive, ohne Inline-Styles
   ============================================================ */

.infobox__map{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* angenehmes Kartenformat */
  overflow: hidden;

  border-radius: 10px; /* etwas kleiner als Box-Radius */
  border: 1px solid rgba(0,0,0,.12);
}

/* iframe füllt den Container */
.infobox__map iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   INFOBOX – MAP (2-Klick / DSGVO-freundlich)
   ============================================================ */

.infobox__map{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;

  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.12);
  background: #f3f4f6;
}

.os-map-consent{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  text-align: center;
}

.os-map-consent__inner{
  max-width: 520px;
  display: grid;
  gap: 10px;
}

.os-map-consent__title{
  font-weight: 800;
  font-size: 1.05rem;
  margin: 0;
}

.os-map-consent__text{
  margin: 0;
  color: rgba(0,0,0,.75);
  line-height: 1.45;
}

.os-map-consent__text a{
  color: rgb(87,168,154);
  font-weight: 700;
  text-decoration: none;
}
.os-map-consent__text a:hover{
  text-decoration: underline;
}

.os-map-consent__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.infobox__map iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ============================================================
   8) KOMPONENTE: LEFT–RIGHT LAYOUT (robust, TYPO3-sicher)
   FIX: verhindert Kollaps + verhindert "max-width/margin:auto"
        Boxen innerhalb LR-Layout nutzen immer Spaltenbreite.
   + Subklassen: prozentuale Spaltenbreiten (70/30 usw.)
   ============================================================ */

.lr-layout{
  display: grid;

  /* Default: 2 gleich breite Spalten */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  gap: 2rem;
  align-items: start;

  /* etwas mehr Luft, damit 1920/1200 nicht zu "eng" wirkt */
  max-width: 1200px;
  margin: 0 auto;
}

/* beide Spalten dürfen schrumpfen ohne Layout zu zerstören */
.lr-layout__left,
.lr-layout__right{
  min-width: 0;
  width: 100%;
}

/* ============================================================
   Subklassen: prozentuale Spaltenbreiten
   Nutzung:
   <div class="lr-layout lr-layout--70-30">...</div>
   ============================================================ */

.lr-layout--70-30{
  grid-template-columns: minmax(0, 70%) minmax(0, 30%);
}

.lr-layout--60-40{
  grid-template-columns: minmax(0, 60%) minmax(0, 40%);
}

.lr-layout--75-25{
  grid-template-columns: minmax(0, 75%) minmax(0, 25%);
}

.lr-layout--66-33{
  grid-template-columns: minmax(0, 66.66%) minmax(0, 33.34%);
}

/* ============================================================
   Optional: rechte Spalte fix schmal – NUR wenn aktiv genutzt
   <div class="lr-layout lr-layout--right-narrow">...</div>
   ============================================================ */

.lr-layout--right-narrow{
  grid-template-columns: minmax(0, 1fr) 520px;
}

/* Ganz wichtig für eure Boxen:
   Wenn eine Box max-width + margin:auto hat, wirkt sie in Spalten "zentriert"
   und sieht aus wie falsches Layout. Im LR-Layout wollen wir Spaltenbreite! */
.lr-layout .termine-box,
.lr-layout .kontakt-box,
.lr-layout .anmeldung-box,
.lr-layout .infobox{
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

/* Vertikaler Abstand innerhalb linker Spalte */
.lr-layout__left > * + *{
  margin-top: 1rem;
}

/* Mobile: untereinander */
@media (max-width: 900px){
  .lr-layout{
    grid-template-columns: 1fr;
  }

  /* egal welche Subklasse: mobil immer 1 Spalte */
  .lr-layout--70-30,
  .lr-layout--60-40,
  .lr-layout--75-25,
  .lr-layout--66-33,
  .lr-layout--right-narrow{
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   9) KOMPONENTE: KONTAKT-BOX
   ============================================================ */

.kontakt-box{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 14px;
  background: #fff;
  padding: 1rem 1.1rem;
  font-size: .95rem;
}

.kontakt-box__title{
  margin: 0 0 .5rem 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.kontakt-box__divider{
  border: none;
  height: 1px;
  background: rgba(0,0,0,.12);
  margin: .6rem 0;
}

.kontakt-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.kontakt-list li{
  margin-bottom: .4rem;
}

/* ============================================================
   9a) KONTAKT in INFOBOX – Startseite (minimaler Modifier)
   Ziel:
   - Besucheradresse/Kontakt als ruhige Infobox (kein Kachel-Grün)
   - nutzt bestehende Typo + Linienlogik
   - Grid nur für diese Box
   ============================================================ */

.kontakt-grid{
  display: grid;
  gap: 12px;
}

@media (min-width: 640px){
  .kontakt-grid{
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

/* Adresse */
.kontakt-address{
  line-height: 1.45;
}

.kontakt-address__name{
  font-weight: 800;
  margin: 0 0 4px 0;
}

.kontakt-address__muted{
  color: rgba(0,0,0,.70);
  margin-top: 6px;
}

/* Kontaktliste (ruhige Zeilen statt Kacheln) */
.kontakt-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}

/* Zeilenoptik */
.kontakt-item{
  border-top: 1px solid rgba(0,0,0,.12);
  padding: 10px 2px;
  display: grid;
  gap: 3px;
}

.kontakt-item:first-child{
  border-top: 0;
  padding-top: 2px;
}

.kontakt-label{
  font-size: 0.85rem;
  color: rgba(0,0,0,.70);
}

.kontakt-value{
  font-weight: 700;
  line-height: 1.35;
  color: #111;
}

.kontakt-value a{
  color: inherit;
  font-weight: 800;
  text-decoration: none;
  word-break: break-word;
}

.kontakt-value a:hover{
  text-decoration: underline;
}


/* ============================================================
   10) KOMPONENTE: BILDGALERIE
   ============================================================ */

.os-gallery-wrap {
  --gap: 14px;
  --thumb-radius: 8px;
  --thumb-shadow: 0 6px 18px rgba(0,0,0,.15);
}

.os-gallery {
  column-gap: var(--gap);
  columns: 1;
}

@media (min-width: 560px){ .os-gallery{ columns: 2; } }
@media (min-width: 900px){ .os-gallery{ columns: 3; } }
@media (min-width: 1200px){ .os-gallery{ columns: 4; } }

.os-gallery .item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  border-radius: var(--thumb-radius);
  overflow: hidden;
  box-shadow: var(--thumb-shadow);
}

.os-gallery .item a {
  display: block;
  line-height: 0;
}

.os-gallery .item img {
  display: block;
  width: 100%;
  height: auto;
  background: #e9eef3;
  transition: transform .25s ease, filter .25s ease;
}

.os-gallery .item:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.os-gallery .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: opacity .2s ease;
}

.os-gallery .item:hover .caption {
  opacity: 1;
}


/* ============================================================
   ERWEITERUNG: STARTSEITE – TERMINBOX
   Zweck:
   - kompakte Box für Startseite
   - nutzt die gleichen Klassen wie Terminseite (os-termine__*)
   - Darstellung IN der Box: Linien statt Karten
   ============================================================ */

.termine-box{
  --accent: rgb(87,168,154);
  --border: rgba(0,0,0,.12);
  --muted: rgba(0,0,0,.70);

  max-width: 500px;
  margin: 0 auto;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px 12px;
  color: #111;
}

.termine-box__title{
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.termine-box__divider{
  border: none;
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.termine-box__state{
  margin: 0 0 8px 0;
  font-size: .95rem;
  color: var(--muted);
}

/* Liste innerhalb der Box */
.termine-box .os-termine__list{
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  display: grid;
  gap: 0;
}

/* Override: Linien statt Karten NUR in der Box */
.termine-box .os-termine__item{
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  padding: 10px 2px;
  display: grid;
  gap: 3px;
}

.termine-box .os-termine__item:first-child{
  border-top: none;
  padding-top: 2px;
}

.termine-box .os-termine__date{
  font-weight: 400;
  font-size: .95rem;
}

.termine-box .os-termine__text{
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
}

.termine-box .os-termine__text a{
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.termine-box .os-termine__text a:hover{
  text-decoration: underline;
}

.termine-box__divider--before-btn{
  margin: 12px 0 10px 0;
}

.termine-box__footer{
  display: flex;
  justify-content: center;
}

@media (max-width: 520px){
  .termine-box{
    border-radius: 14px;
  }

  .termine-box__footer .os-btn{
    width: 100%;
  }
}


/* ============================================================
   OPTIONAL: Header-Verlauf
   ============================================================ */

header#pageTop,
#pageTop.header.main-header{
  background: linear-gradient(
    to bottom,
    #2C544D 0%,
    #2C544D 22%,
    #315F57 40%,
    #3C7369 58%,
    #4C8E82 78%,
    #57A89A 100%
  ) !important;
}
