:root {
	--font-main: 'Rubik', sans-serif;
	--standard-letter-spacing: .04em;

	--color-bg: #FAFAFA;
	--color-white: #FAFAFA;
	--color-grey: #F4F5F0;
	--color-black: #000000;
	--color-primary: #2A458E;
	--color-secondary: #E2E2F5;
	--color-weiss: #F1F3F4;
	--color-lightgreen: #E2E2F5;
	--color-buttonfarbe: #2A458E;
	--color-buttonfarbe-dunkler: rgb(42, 69, 142);

	--rounded: 10px;
	--medium-rounded: 12px;
	--fieldbuttonrounded: 100px;
	--border-width: 2px;
	--max-rounded: 99px;
	--font-scale: 5;
}



a.scroll-down {
display:none!important;
opacity:0;

}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-main);

	font-weight: 300;
  font-size: 18px;
	letter-spacing: var(--standard-letter-spacing);
	  background-color: var(--color-bg);
}

html.font-small, html.font-medium, html.font-big {
  font-size: 100%; /* Reset egal welche Klasse */
}

html.font-small {
  font-size: 90%;
}

html.font-medium {
  font-size: 100%;
}

html.font-big {
  font-size: 115%;
}

html.font-xbig {
  font-size: 130%;
}

html.contrast-mode {
  filter: grayscale(100%) contrast(1.5);
}
html.contrast-mode {
  --bg: #000;
  --fg: #fff;
  --primary: #fff;
  --secondary: #eee;
}

html.contrast-mode body {
  background: var(--bg);
  color: var(--fg);
}

html.contrast-mode a {
  color: var(--primary);
}

/* Logo nicht graustufen */
html.contrast-mode .logo-container img {
  filter: none !important;
}

/* Accessibility-Bar unverfälscht lassen */
html.contrast-mode .accessibility-bar {
  filter: none !important;
}

/* wenn du willst: Navigation auch farbig lassen */
html.contrast-mode body > header {
  filter: none !important;
}



main {
	background-color: var(--color-bg);
}

/* === Einheitliches Layout für main/section === */
main {
  max-width: 1600px;              /* zentriert und begrenzt */
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 4rem); /* dynamischer Seitenabstand */
}

/* Alle Sections im main erben denselben Innenabstand oben/unten */
main section {
  padding-top: clamp(1rem, 4vw, 2rem);    /* oberer Abstand */
  padding-bottom: 0; /* unterer Abstand */
  width: 100%;
  box-sizing: border-box;
}

/* Mehr Abstand unter dem Header (nur erstes Section) */
main section:first-child {
  padding-top: 0;
}

/* Mehr Abstand über dem Footer (nur letztes Section) */
main section:last-child {
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* Standard: große Bildschirme */
h1, h2, h3, p {
  word-break: keep-all;
  overflow-wrap: break-word;
  hyphens: none;
  -webkit-hyphens: none;
  -moz-hyphens: none;
}

@media (max-width: 400px) {
   .button {
    hyphens: auto;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: normal; /* wichtig für Buttons */
  }
}


/* ========================================================= */
/* --- Standard: alle Browser --- */
@media (max-width: 500px) {
  p,
  li,
  ul,
  ol,
  a {
    word-break: normal;          /* bricht nur, wenn nötig */
    overflow-wrap: break-word;   /* verhindert Überlaufen, aber trennt Wörter nicht unnötig */
    hyphens: manual;             /* keine automatische Trennung – nur wenn nötig */
    white-space: normal;         /* erlaubt Zeilenumbrüche */
  }
}

/* ========================================================= */
/* --- Nur Firefox: intelligente automatische Silbentrennung --- */
@-moz-document url-prefix() {
  @media (max-width: 500px) {
    p,
    li,
    ul,
    ol,
    a {
      hyphens: auto;             /* Silbentrennung nur bei Bedarf */
      -moz-hyphens: auto;
      overflow-wrap: break-word; /* bricht, falls Wort zu lang */
      word-break: normal;
    }
  }
}


h1 {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(2.0625rem, 5vw, 2.75rem);
  line-height: 1.2;
  color: #3C3C3C;
  margin: 0;
  padding-bottom: 0rem;
}

h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(2.0625rem, 5vw, 2.75rem);
  line-height: 1.2;
  color: #3C3C3C;
  margin: 0;
  padding-bottom: 0rem;
  padding-top: clamp(3.5rem, 5vw, 5rem); /* war schon in rem */
}

h3 {
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(1.4375rem, 5vw, 1.875rem);
  line-height: 1.2;
  color: #fff;
  margin: 0;
}


p {
  font-family: 'Rubik', sans-serif;
  font-size: clamp(0.875rem, 5vw, 1.25rem);
  line-height: 1.4;
  font-weight: 400;
  color: #3C3C3C;
  margin: 0;
  padding-bottom: 0.8rem;
}

ul,
ol {
  margin: 0;                  /* kein zusätzlicher Abstand oben/unten */
  padding-left: 0.8em;        /* leicht eingerückt, aber kontrolliert */
  list-style-position: outside; 
  color: #3C3C3C;
}

li {
  color: #000;
  font-size: clamp(0.875rem, 5vw, 1.25rem);
  line-height: clamp(1.25, 1.5vw, 1.4);
  margin: 0 0 0.5em 0;        /* leichter Abstand nach unten */
  color: #3C3C3C;
}

main a:not([class*="button"]) {
  color: #3C3C3C;
  text-decoration: underline;
  transition: color 0.2s ease;
}

main a:not([class*="button"]):hover {
  color: #2A458E;
  text-decoration: underline;
}

img {
  border-radius: 15px; /* Rundung anpassen nach Geschmack */
  display: block;        /* verhindert Lücken unter Bildern */
  max-width: 100%;       /* responsive Anpassung */
  height: auto;
}






/* === Grundlayout für Textrahmen mit 3 Spalten (Grid-Version) === */
/* === 3 Spalten, gleiche Höhen je Zeile === */
/* === 3 Spalten, gleiche Höhen je Zeile === */
.textRahmenVB3sp{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  /* WICHTIG: KEINE festen template-rows hier */
  grid-auto-rows:auto;              /* Zeilen automatisch erzeugen */
  column-gap:2.5rem;
  align-items:stretch;
  width:100%;
  box-sizing:border-box;
}


.textRahmenVB3sp .spalte{ display:grid; min-width:0; }

.text1,.text2{
  min-width:0;
  overflow-wrap:anywhere;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
}

/* Optik */
.text1{
  background:#2A458E;
  padding:clamp(0.8rem, 2vw, 1.5rem) clamp(1.6rem, 2vw, 2.3rem);
  border-top-left-radius:20px; border-top-right-radius:20px;
  color:#fff;
}
.text2{
  background:#E2E2F5;
  padding:clamp(1.6rem, 2vw, 2.3rem);
  padding-bottom:clamp(0.6rem, 1vw, 1.3rem);
  padding-top:clamp(1.3rem, 2vw, 2rem);
  border-bottom-left-radius:20px; border-bottom-right-radius:20px;
}

.text1 > *:last-child, .text2 > *:last-child{ margin-bottom:0; }

/* Subgrid (moderne Browser) */
@supports (grid-template-rows: subgrid){
  .textRahmenVB3sp .spalte{
    grid-template-rows: subgrid;
    grid-row: 1 / span 2;
  }
  .textRahmenVB3sp .spalte .text1{ grid-row:1; align-self:stretch; }
  .textRahmenVB3sp .spalte .text2{ grid-row:2; align-self:stretch; }
}

/* Fallback ohne Subgrid */
@supports not (grid-template-rows: subgrid){
  .textRahmenVB3sp .spalte{ display:contents; }
  .textRahmenVB3sp .text1{ grid-row:1; align-self:stretch; }
  .textRahmenVB3sp .text2{ grid-row:2; align-self:stretch; }
}


/* Responsive (unter 900px einkolumnig) */
@media (max-width:1100px){
  .textRahmenVB3sp{
    grid-template-columns:1fr;
    grid-template-rows:unset;
    grid-auto-rows:auto;
    row-gap: clamp(1rem, 3vw, 2rem);
  }

  /* Subgrid/Fallback-Platzierungen neutralisieren */
  .textRahmenVB3sp .spalte{
    display:grid !important;
    grid-template-rows:auto auto;
    grid-row:auto !important;
  }
  .textRahmenVB3sp .text1,
  .textRahmenVB3sp .text2{
    grid-row:auto !important;
    grid-column:1 / -1 !important; /* volle Breite */
    align-self:stretch;
  }
}
/* ==================================================== */




/* === Kontaktliste allgemein ===================================== */
.kliste {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

/* Einzelner Eintrag */
.kitem {
  display: inline-flex;
  gap: 0.6em;
  text-decoration: none;
  font-style: normal;   /* falls <em> genutzt wird */
}

/* E-Mail Icon */
.kitem--mail::before {
  font-family: "Font Awesome 6 Free";
  content: "\f2b6";        /* envelope */
  font-weight: 900;
  font-size: 1em;
}

/* Telefon Icon */
.kitem--phone::before {
  font-family: "Font Awesome 6 Free";
  content: "\f095";        /* phone */
  font-weight: 900;
  font-size: 1em;
}
.kitem--phone,
.kitem--mail {
  text-decoration: none; /* Unterstreichung komplett entfernen */
}

.kitem--phone span,
.kitem--mail span {
  text-decoration: underline; /* nur den Text unterstreichen */
}


.kitem--location::before {
  font-family: "Font Awesome 6 Free";
  content: "\f3c5";
  font-weight: 900;
  font-size: 1.05em;
  transform: translateY(2px);   /* ⬅️ Icon etwas nach unten */
}
/* =========================================================== */



/* === Zwei Spalten mit Überschrift === */
.textRahmen2Spalten {
  width: 100%;
  box-sizing: border-box;
}

/* Überschrift */
.textRahmen2Spalten .textHeadline {
  background-color: #2A458E;
  color: #fff;
  padding: clamp(0.8rem, 2vw, 1.5rem) clamp(1.6rem, 2vw, 2.3rem);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Grid: erste Spalte 2/3, zweite 1/3 */
.textRahmen2Spalten .textGrid {
  display: grid;
  grid-template-columns: 1.75fr 1.25fr;     /* Verhältnis 2:1 */
  gap: clamp(1.5rem, 3vw, 3.5rem);
  background-color: #E2E2F5;
  padding: clamp(1.6rem, 2vw, 2.3rem);
  padding-bottom: clamp(0.6rem, 1vw, 1.3rem);
  padding-top: clamp(1.2rem, 2vw, 2rem);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Inhaltsspalten */
.textRahmen2Spalten .textSpalte {
  min-width: 0;
}

/* Responsiv: bei kleinen Bildschirmen untereinander */
@media (max-width: 1100px) {
  .textRahmen2Spalten .textGrid {
    grid-template-columns: 1fr;
  }
}
/* ==================================================== */


/* === Buttons === */
.button {
	display: inline-block;
	background-color: #2A458E;
	color: white;
	font-weight: 500;
	padding: 0.6em 0.8em;
	border: none;
	border-radius: 10px;
	transition: background-color 0.2s ease;
	text-decoration: none;
	cursor: pointer;
	font-size: clamp(1.21875rem, 2vw, 1.375rem);
}

.button.white{
	background-color: #FAFAFA;
	color: #2A458E;
}
.button.white:hover {
    background-color: #EDEDED;   /* feiner Hoverton zu #FAFAFA */
}

/* Pfeil-Erweiterung */
.button.pfeil {
	display: inline-flex;
	align-items: center;
	gap: clamp(1rem, 2vw, 1.5rem); /* etwas mehr Abstand zum Pfeil */
	padding: 0.4em 0.8em;
}

/* Pfeil selbst */
.button.pfeil::after {
	content: "›";                /* typografischer Pfeil */
	font-size: 1.6em;            /* größerer Pfeil */
	line-height: 1;
	transition: transform 0.2s ease;
	font-weight: 300;
}

/* Hover-Effekt */
.button.pfeil:hover::after {
	transform: translateX(4px);  /* sanft nach rechts verschieben */
}

.button:hover {
  background-color: #243C7A; /* etwas dunkler als #2A458E, aber nicht zu stark */
}

.button + .button {
  margin-top: 10rem; /* Abstand zum vorherigen Button */
}

/* Abstand nur zwischen Absätzen, die jeweils direkt einen Button enthalten */
p:has(> .button) + p:has(> .button) {
  margin-top: 0.7rem; /* oder clamp(0.6rem, 1.5vw, 1.2rem) */
}
/* ==================================================== */


/* === Footer Basis === */
footer.footer {
  background-color: #2A458E;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: clamp(200px, 30vh, 320px);
  padding-bottom: 5rem;
  padding-top: 9rem;
  position:relative;
}

.footer-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-inline: clamp(1.5rem, 4vw, 4rem); /* dynamischer Seitenabstand */
}

/* Farben im Footer */
footer.footer,
footer.footer p,
footer.footer a { 
color: #FAFAFA; 
text-decoration: none;
}

/* Links im Footer: Hover NICHT für Buttons */
footer.footer a:not(.button):hover { 
color: #E2E2F5; 
}

/* === 3-Spalten-Layout (Desktop) === */
footer.footer .inhalt3spaltenInner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
}

footer.footer .inhalt3spaltenInner .spalte:nth-child(1) { justify-self: start; text-align: left; }
footer.footer .inhalt3spaltenInner .spalte:nth-child(2) { justify-self: center; text-align: left; }
footer.footer .inhalt3spaltenInner .spalte:nth-child(3) { justify-self: end;   text-align: right; }

footer.footer img {
  max-width: 90%;
  height: auto;
  display: block;
}

/* === Kontaktliste & -items === */
footer.footer .kontaktliste {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

footer.footer .kontakt-item {
  color: inherit;
  text-decoration: none;
  display: inline-flex;         /* Icon + Text in einer Linie */
  align-items: center;          /* vertikal zentriert */
  justify-content: flex-start;  /* linksbündig */
  gap: 0.2em;
  font-style: normal;           /* <em> ent-kursivieren */
  line-height: 1.5;
}

/* Icons vor den Texten */
footer.footer .kontakt-item--mail::before {
  font-family: "Font Awesome 6 Free";
  content: "\f2b6";            /* envelope – FA6 solid */
  font-size: 1.3em;
  font-style: normal;
  margin: 0 0.2em 0 0.05em;    /* links/rechts Abstand */
  vertical-align: middle;
}

footer.footer .kontakt-item--instagram::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f16d";            /* instagram – FA6 brands */
  font-size: 1.55em;
  font-style: normal;
  margin-right: 0.2em;
  vertical-align: middle;
}

footer.footer .kontakt-item--facebook::before {
  font-family: "Font Awesome 6 Brands";
  content: "\f39e";            /* facebook-f – FA6 brands */
  font-size: 1.4em;
  font-style: normal;
  margin: 0 0.35em 0 0.1em;
  vertical-align: middle;
}

footer.footer .kontakt-item--phone::before {
  font-family: "Font Awesome 6 Free";
  content: "\f095";            /* phone */
  font-weight: 900;
  font-size: 1.25em;
  font-style: normal;
  margin: 0 0.35em 0 0.1em;
  vertical-align: middle;
}

/* === Responsive (<1000px) === */
@media (max-width: 1000px) {
  footer.footer {
    align-items: flex-start;
    overflow:hidden;
  }

  footer.footer .kontaktliste { gap: 0.6em; }

  /* 1 Spalte, standardmäßig links */
  footer.footer .inhalt3spaltenInner {
    grid-template-columns: 1fr;
    justify-items: start !important;
    text-align: left !important;
  }

  footer.footer .inhalt3spaltenInner > .spalte {
    justify-self: start !important;
    text-align: left !important;
    width: 100%;
  }

  footer.footer .inhalt3spaltenInner > .spalte > * {
    text-align: left !important;
  }

  footer.footer .inhalt3spaltenInner > .spalte:not(:last-child) {
    margin-bottom: 2rem;
  }

  /* Dritte Spalte rechtsbündig */
  footer.footer .inhalt3spaltenInner > .spalte:nth-child(3),
  footer.footer .inhalt3spaltenInner > .spalte:last-child {
    justify-self: end !important;
    text-align: right !important;
  }
  footer.footer .inhalt3spaltenInner > .spalte:nth-child(3) > *,
  footer.footer .inhalt3spaltenInner > .spalte:last-child > * {
    text-align: right !important;
    margin-left: auto !important;
  }

  /* Bild kleiner */
  footer.footer img { max-width: 40%; }
}
/* ==================================================== */


/* === Grundlayout: Zwei Spalten (Bilder + Text) === */
.inhalt2spalten {
  display: grid;
  grid-template-columns: 1fr 1fr; /* links Bilder, rechts Text */
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
  box-sizing: border-box;
  padding: clamp(1rem, 3vw, 2rem) 0;
  margin-bottom: 27rem;
}

@media (max-width: 1600px) {
  .inhalt2spalten {
    margin-bottom: 20rem; /* oder was du brauchst */
  }
}

@media (max-width: 1200px) {
  .inhalt2spalten {
    margin-bottom: 17rem; /* oder was du brauchst */
  }
}

/* --- Spaltenstruktur --- */
.inhalt2spalten .spalte1 {
  position: relative;
}
.inhalt2spalten .spalte2 {
  position: relative;
}

/* --- Bildcontainer --- */
.inhalt2spalten .innerspalte1 {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Allgemeine Bildstile --- */
.inhalt2spalten .innerspalte1 img {
  width: 90%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

/* --- Überlappung (Desktop) --- */
.inhalt2spalten .innerspalte1 p:first-child img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  transform: translate(60%, 95%);
}
.inhalt2spalten .innerspalte1 p:last-child img {
  position: relative;
  z-index: 0;
  transform: translate(0%, 25%);
}

/* ========================================================= */
@media (max-width: 1100px) {
  .inhalt2spalten {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    margin-bottom: -2rem;
  }

  /* Text oben, Bilder unten */
  .inhalt2spalten .spalte2 {
    order: 1;
    width: 100%;
  }

  .inhalt2spalten .spalte1 {
    order: 2;
    width: 100%;
  }

  /* Bilderbereich */
  .inhalt2spalten .innerspalte1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0rem, 3vw, 0.5rem);
  }

  /* Bilder füllen Containerbreite */
  .inhalt2spalten .innerspalte1 p {
    width: 100%;
    margin: 0;
  }

  .inhalt2spalten .innerspalte1 img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    max-width: none;
  }

  /* Kein Überlappen */
  .inhalt2spalten .innerspalte1 p:first-child img,
  .inhalt2spalten .innerspalte1 p:last-child img {
    position: static;
    z-index: auto;
    transform: none;
  }
}
/* ==================================================== */


/* === Layout (3 + 1) ====================================================== */
.text2spalten-3plus1 .inner {
  display: grid;
  grid-template-columns: 1fr 1fr;        /* gleich breite Spalten */
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: center;
}

/* --- Linke Spalte (3 Textblöcke) --- */
.text2spalten-3plus1 .spalte-links {
  display: grid;
  gap: clamp(0.9rem, 2.2vw, 1.4rem);
  position: relative;
  z-index: 2;                                  /* liegt über dem Bild */
  margin-right: clamp(-22px, -3vw, -48px);     /* überlappt leicht ins Bild */
}

/* --- Rechte Spalte (Bild) --- */
.text2spalten-3plus1 .spalte-rechts {
  position: relative;
  z-index: 1;
}

.text2spalten-3plus1 .spalte-rechts img {
  display: block;
  width: 115%;          /* etwas größer für Überlappungseffekt */
  max-width: none;
  height: auto;
  object-fit: cover;
  transform: translateX(-15%); /* leicht nach links verschoben */
}

/* === Textboxen innerhalb der linken Spalte =========================== */
.text2spalten-3plus1 .textblock {
  display: grid;
  grid-template-columns: auto 1fr;   /* h3 (Nummer) + p (Text) nebeneinander */
  align-items: stretch;
}

/* Linke Box (h3) */
.text2spalten-3plus1 .textblock h3 {
  background: #2A458E;     /* Dunkelblau */
  color: #fff;
  margin: 0;
  padding: clamp(0.6rem, 1.6vw, 0.9rem) clamp(0.9rem, 2vw, 1.1rem);
  min-width: clamp(46px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  /* kein border-radius, kein shadow */
}

/* Rechte Box (p) */
.text2spalten-3plus1 .textblock p {
  background: #E2E2F5;     /* helles Blau/Lavendel */
  margin: 0;
  padding: clamp(0.9rem, 2.3vw, 1.2rem) clamp(1.1rem, 2.6vw, 1.6rem);
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* Links im Text */
.text2spalten-3plus1 .textblock p a {
  text-decoration: underline;
}

/* === Responsive ====================================================== */
@media (max-width: 1100px) {
  .text2spalten-3plus1 .inner {
    grid-template-columns: 1fr;        /* untereinander */
    align-items: start;
  }

  .text2spalten-3plus1 .spalte-links {
    margin-right: 0;                   /* keine Überlappung mehr */
  }

  .text2spalten-3plus1 .spalte-rechts {
    aspect-ratio: auto;
  }

  .text2spalten-3plus1 .spalte-rechts img {
    width: 100%;
    transform: none;
  }
}
/* ==================================================== */



/* === Blog Auflistung ====================================================== */
/* Standard: 2 Spalten */
.auflistung {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* immer max. 2 Spalten */
  gap: clamp(1rem, 2vw, 2rem);
  margin: auto;
}

/* Unterstreichung in Blog-Karten abschalten */
.listelement a {
  text-decoration: none !important;
  color: inherit;
}

/* === Einzelnes Element === */
.listelement {
  background-color: var(--color-secondary);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

/* === Bild oben, randlos === */
.listelement .vorschaubild {
  width: 100%;
  height: clamp(250px, 25vw, 380px);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

/* === Allgemeines Padding für Textbereiche === */
.listelement h3,
.listelement p,
.listelement .datum {
  padding-left: clamp(1.5rem, 3vw, 2rem);
  padding-right: clamp(1.5rem, 3vw, 2rem);
}

/* === Datum oben === */
.listelement .datum {
  order: 0;
  align-self: flex-start;
  padding-top: clamp(1.5rem, 2vw, 1.5rem);
  padding-bottom: clamp(0.5rem, 1vw, 1rem);
  font-size: clamp(0.875rem, 5vw, 1.25rem);
  font-weight: 500;
  color: #3C3C3C;
}

/* === Überschrift === */
.listelement h3 {
  order: 1;
  margin-top: 0;
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  color: #3C3C3C;
}

/* === Fließtext === */
.listelement p {
  order: 2;
  color: #3C3C3C;
  flex-grow: 1; /* schiebt Footer nach unten */
  padding-bottom: 1.3rem;
  font-size: clamp(0.875rem, 5vw, 1.25rem);
}

/* === Button unten === */
.listelement p.derbutton {
  order: 3;
  align-self: flex-end;
  text-align: right;
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2rem);
  padding-top: 0;
  color: #FAFAFA;
}

/* === Responsive: unter 1100px alles untereinander === */
@media (max-width: 1000px) {
  .auflistung {
    grid-template-columns: 1fr;      /* exakt 1 Spalte */
    gap: clamp(2rem, 3vw, 3rem);     /* etwas luftiger */
  }

  .listelement .vorschaubild {
    height: clamp(220px, 40vw, 340px); /* etwas flacher auf kleineren Screens */
  }
}
/* ==================================================== */


/* === Blog-Artikel ================================================== */
.inhalt2spalten.beitrag-kachel {
  position: relative;
  display: flex;
  flex-direction: row;
  border-radius: var(--medium-rounded);
  overflow: hidden;
  margin-bottom: 2rem;
  gap: clamp(1.5rem, 5vw, 2.5rem);
  /* Platz schaffen für die oben rausgezogene Überschrift */
  --headline-h: clamp(52px, 7vw, 72px);
  --headline-gap: 10px;
  padding-top: calc(var(--headline-h) + var(--headline-gap));
}


.inhalt2spalten.beitrag-kachel .beitrags-ueberschrift {
  position: absolute;
  inset: 0 0 auto 0; /* top:0; left:0; right:0 */
  z-index: 3;
  display: flex;
  margin: 0;
  box-sizing: border-box;
}

.inhalt2spalten.beitrag-kachel > .spalte.text-spalte {
  flex: 1 1 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--color-secondary);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
}

.inhalt2spalten.beitrag-kachel .beitrags-datum {
  display: block;
  background-color: var(--color-primary);
  color: #fff;

  /* H3 style */
  font-family: 'Rubik', sans-serif;
  font-weight: 500;
  font-size: clamp(1.4375rem, 5vw, 1.875rem);
  line-height: 1.2;
  margin: 0;

  /* ⬆️ ⬇️ mehr Luft */
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;

  /* ⬅️ ➡️ exakt wie Textspalte */
  padding-left: clamp(1.5rem, 3vw, 2rem);
  padding-right: clamp(1.5rem, 3vw, 2rem);

  /* Balken wieder bis ganz an den Rand ziehen */
  margin-left: calc(-1 * clamp(1.5rem, 3vw, 2rem));
  margin-right: calc(-1 * clamp(1.5rem, 3vw, 2rem));
  margin-top: calc(-1 * clamp(1.5rem, 3vw, 2rem));
  margin-bottom: 1.5rem;

  border-radius: 20px 20px 0 0;
}


.inhalt2spalten.beitrag-kachel .anlesetext p {
  margin-bottom: 1rem;
  color: var(--color-dark);
  line-height: 1.6;
}

.inhalt2spalten.beitrag-kachel .spalte.bild-spalte {
  flex: 1 1 30%;
  min-width: 0;              /* wichtig: Flex-Item darf schrumpfen */
  background-size: cover;
  background-position: center;
  min-height: 500px;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
}

/* gleiche Höhe für beide Spalten erzwingen */
.inhalt2spalten.beitrag-kachel {
  align-items: stretch;              /* beide Flex-Items auf gleiche Höhe */
}

/* falls irgendein Style das überschreibt: hart strecken */
.inhalt2spalten.beitrag-kachel > .spalte {
  align-self: stretch;               /* Sicherheitsnetz */
}

/* Textbereich über volle Höhe spannen, Inhalt sauber verteilen */
.inhalt2spalten.beitrag-kachel > .spalte.text-spalte {
  display: flex;                     /* hast du schon – hier nochmal explizit */
  flex-direction: column;
}

/* (optional) Innenabstände: Datum + Text nicht kleben lassen */
.inhalt2spalten.beitrag-kachel .anlesetext {
  margin-top: 1rem;
}

/* === Responsive: untereinander ==================================== */
@media (max-width: 1000px) {
  .inhalt2spalten.beitrag-kachel {
    flex-direction: column;
    gap: 0; /* WICHTIG: entfernt JEDE Lücke zwischen Text & Bild */
  }

  .inhalt2spalten.beitrag-kachel > .spalte.text-spalte {
    border-radius: var(--medium-rounded) var(--medium-rounded) 0 0;
  }

  .inhalt2spalten.beitrag-kachel .spalte.bild-spalte {
    border-radius: 0 0 var(--medium-rounded) var(--medium-rounded);
    min-height: 300px;
  }
}
/* ======================================= */

/* === Galerie-Container ========================================= */
.publishnews a[rel="lightbox"] {
	flex: 0 0 auto;
}

a[rel="lightbox"] {
	display: inline-block;
	vertical-align: top;
	text-align: center;
}

a[rel="lightbox"] img {
	display: block;
	max-width: 100%;
	height: auto;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: clamp(1.5rem, 2vw, 2.5rem);
  max-width: 1600px;          /* maximale Breite */
  margin: 0 auto;             /* zentriert die Galerie */
  box-sizing: border-box;
}

section:has(.galerie) {
  padding: 0;
}

.galerie-heading {
  background-color: var(--color-primary);  /* dein Blau */
  color: var(--color-white);               /* weiße Schrift */
  padding: clamp(.8rem, 1.8vw, 1.2rem) clamp(1.5rem, 3vw, 2rem);
  border-radius: 20px;
  margin: 0 auto clamp(1.5rem, 3vw, 2rem);
  max-width: 1600px;                       /* begrenzt auf Galeriebreite */
  box-sizing: border-box;
  margin-top: clamp(3.5rem, 4vw, 4.5rem);
}

/* Fix: immer genau 3 Spalten ab Desktop-Breite */
@media (min-width: 1100px) {
  .galerie {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Galerie-Elemente ========================================== */
.galerieBilder {
  display: block;
  aspect-ratio: 3 / 2;        /* gleichmäßige Kacheln */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease;
}


/* === Mobile Anpassung ========================================== */
@media (max-width: 1100px) {
  .galerie {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .galerie {
    grid-template-columns: 1fr;
  }
}

/* ==================================================== */

/* === Veranstaltung ====================================================== */
/* === Veranstaltung ====================================================== */
.veranstaltung-wrapper {
  width: 100%;
}

/* Hauptbox */
.veranstaltung-inner {
  border-radius: 20px;
  overflow: hidden;
}

.veranstaltung-text h5 {
    font-family: 'Rubik', sans-serif;
    font-weight: 800; /* deine Vorgabe */
    color: #3C3C3C;
    line-height: 1.3;
    /* etwas größer als p, aber nicht zu massiv */
    font-size: clamp(1rem, 5vw, 1.375rem);
    margin: 0 0 .3rem 0; /* leichter Abstand nach unten */
    padding: 0;
    
}

/* ===============================
   BILDER VON 2-SPALTEN AUSNEHMEN
   =============================== */

/* Direktes <img> im Textbereich */
.veranstaltung-text > img {
    grid-column: 1 / -1;   /* über volle Breite */
    margin: 1rem 0;
    justify-self: start;
}

/* Wenn das Bild in einem <p> steckt */
.veranstaltung-text > p:has(img) {
    grid-column: 1 / -1;
    margin: 0;
}


/* === Kopfbereich ======================================================== */
.veranstaltung-head {
  background: #2A458E; /* Dunkelblau */
  margin: 0;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: .7rem;
  position: relative;
}

/* H3 bekommt Platz für den Pfeil */
.vh-title {
  margin: 0;
  padding-right: 3rem;
}

/* Pfeil rechts */
.veranstaltung-head::after {
  content: "›";
  position: absolute;
  right: clamp(1.5rem, 3vw, 2rem);
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  font-size: clamp(2.3rem, 4vw, 2.6rem);
  font-weight: 300;
  line-height: 1;
  transition: transform .25s ease;
  color: #fff;
}

/* Pfeil drehen, wenn geöffnet */
.veranstaltung-inner.is-open .veranstaltung-head::after {
  transform: translateY(-50%) rotate(-90deg);
}

/* Unsichtbarer Toggle-Button */
.vh-toggle {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  border: none;
  background: none;
}


/* === Textbereich (einklappbar) ========================================= */
.veranstaltung-text {
  background: #E2E2F5; /* Hellblau */
  padding: clamp(1.5rem, 3vw, 2rem);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;

  display: grid;
  grid-template-columns: 250px 1fr;
  column-gap: 1.5rem;
  row-gap: .2rem; /* WENIGER Abstand */
}

/* Wenn geschlossen → Padding oben/unten entfernen */
.veranstaltung-inner:not(.is-open) .veranstaltung-text {
  padding-top: 0;
  padding-bottom: 0;
}

/* === Layout der Zeilen ============================================= */

/* H5 linke Spalte */
.veranstaltung-text > h5 {
  grid-column: 1;
  margin: 0;
  font-weight: 800;
  padding-bottom: 0;
  margin-bottom: 0rem;
}

/* Standard Absätze rechte Spalte */
.veranstaltung-text > p {
  grid-column: 2;
  margin: 0;
  padding-bottom: 0.2rem; /* enger Abstand */
}

/* Letzter Absatz ohne Extra-Abstand */
.veranstaltung-text > p:last-child {
  padding-bottom: 0;
}

/* Abstand p → nächstes h5 reduzieren */
.veranstaltung-text > p:has(+ h5) {
    padding-bottom: 0;
}

.veranstaltung-text > p {
  transform: translateY(-30px);
}

/* === Mobile Optimierung =============================================== */
@media (max-width: 900px) {
  .veranstaltung-text {
    grid-template-columns: 1fr;  /* alles untereinander */
    row-gap: 0;             /* kompaktere Zeilenabstände */
  }

  .veranstaltung-text > h5,
  .veranstaltung-text > p {
    grid-column: 1;
    margin: 0;
    padding: 0;
  }

  /* Fließtext Abstand mobil passend klein */
  .veranstaltung-text > p + p {
    margin-top: .5rem;  /* normaler Flow-Abstand wie Desktop */
  }

  /* Abstand p -> h5 */
  .veranstaltung-text > p:has(+ h5) {
    margin-bottom: 0;
  }

  /* das frühere -30px → jetzt -20px */
  .veranstaltung-text > p {
    transform: translateY(-20px); /* NUR mobil */
  }

  .veranstaltung-text img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    display: block;
  }
}




/* ==================================================== */



/* === Kontaktformular ====================================================== */
/* === Zwei-Spalten-Layout NUR für die ersten 4 Felder ================ */

/* YForm: innerer Wrapper volle Breite */
/* 1. YForm-Formular im Kontaktbereich über die GANZE Box laufen lassen */
.kontaktformular-rechts form.yform {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;      /* zentrierung von YForm raus */
}

/* 2. Grid nur für das Formular */
@media (min-width: 768px) {
  .kontaktformular-rechts form.yform {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem 2rem; /* vertikal / horizontal */
  }

  /* Standard: alles über volle Breite */
  .kontaktformular-rechts form.yform > div {
    grid-column: 1 / -1;
    margin: 0;
  }

  /* Nur die ersten 4 Felder zweispaltig */
  .kontaktformular-rechts form.yform > div:nth-of-type(-n+4) {
    grid-column: auto;
  }

 .kontaktformular-rechts form.yform .form-group.submitbutton {
    grid-column: 2 / 3;      /* Button nur in rechter Spalte platzieren */
    justify-self: end;       /* rechtsbündig innerhalb der Spalte */
    text-align: right;
}
}


.kontaktformular-wrapper {
	display: flex;
	justify-content: center;
	margin: 0 auto;
}

.kontaktformular-inhalt {
	display: flex;
	gap: 2rem;
	width: 100%;
	margin: auto;
	flex-wrap: nowrap;
}

/* === Box-Container ====================================================== */
.kontaktformular-links,
.kontaktformular-rechts {
	background-color: #E9E9F6;
	border-radius: 1rem;
	overflow: hidden;
	display: block;
    padding: clamp(1.5rem, 3vw, 2rem);
}

/* === Dunkelblauer Balken für die erste Überschrift ====================== */
.kontaktformular-links :is(h1,h2,h3):first-of-type,
.kontaktformular-rechts :is(h1,h2,h3):first-of-type {
	background: #2A458E;
	color: #fff;

	/* exakt passend zum Container-Padding, aber negativ */
	margin: clamp(-2rem, -3vw, -1.5rem) 
	        clamp(-2rem, -3vw, -1.5rem)
	        clamp(1rem, 2vw, 2rem);

	padding: clamp(1rem, 2.5vw, 1.5rem) clamp(1.5rem, 3vw, 2rem);

	display: block;
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
}

/* === Spaltenverhältnis: 35% : 65% === */
.kontaktformular-links {
	flex: 1 1 35%;
}


.kontaktformular-rechts {
	flex: 1 1 65%;
}

/* === Typografie & Abstände rechts === */
.kontaktformular-rechts p,
.kontaktformular-rechts h2 {
	padding-bottom: 0.2rem;
	margin-bottom: 0;
	margin-top: 0;
}

/* === Text links === */
.kontaktformular-links .wysiwyg {
	font-size: 1rem;
	line-height: 1.6;
}

/* === Formularfelder === */
.kontaktformular-rechts .yform label {
	margin-bottom: 0.3rem;
	font-size: clamp(0.875rem, 5vw, 1.25rem);
	display: block;
}

.kontaktformular-rechts .yform input[type="text"],
.kontaktformular-rechts .yform textarea {
	border-radius: 10px;
	border: 3px solid #2A458E;
	width: 100%;
	padding: 0.75rem;
	margin-bottom: 1rem;
	font-size: 1em;
	box-sizing: border-box;
	background-color: #2A458E;  /* dunkelblauer Hintergrund */
	color: #FAFAFA;              /* weiße Schrift */
}

/* === Checkbox === */
.kontaktformular-rechts .yform input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid #2A458E;
	border-radius: 4px;
	background-color: transparent;
	cursor: pointer;
	position: relative;
	display: inline-block;
	vertical-align: middle;
	margin-bottom: 0.5rem;
	margin-right: 0.6rem;   /* ⬅️ Abstand zwischen Checkbox und Text */
}

/* Aktivierte Checkbox */
.kontaktformular-rechts .yform input[type="checkbox"]:checked {
	background-color: #2A458E;
	border-color: #2A458E;
}

/* Weißer Haken */
.kontaktformular-rechts .yform input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

/* Fokus */
.kontaktformular-rechts .yform input[type="checkbox"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(42, 69, 142, 0.25);
}

/* === Submit-Button-Gruppe === */
.form-group.submitbutton {
	justify-self: end;
	text-align: right;
}

.form-group.submitbutton button {
	display: inline-block;
}

/* Label-Styling */
.kontaktformular-rechts .yform label {
  color: #3C3C3C;
}

.kontaktformular-rechts .pflichtfelder-hinweis {
  display: block;        /* damit Padding wirkt */
  padding-top: 0.7rem;     /* Abstand nach oben */
  color: #3C3C3C;        /* dezentes Grau */
}

/* === Responsive: ab 1100px untereinander =============================== */
@media (max-width: 1100px) {
  .kontaktformular-inhalt {
    flex-direction: column;   /* stapeln */
    flex-wrap: nowrap;        /* sauber übereinander */
    gap: clamp(1.5rem, 3vw, 2.5rem); 
  }

 
 

  /* Typografie-Abstände etwas lockerer auf Mobile */
  .kontaktformular-rechts p,
  .kontaktformular-rechts h2 {
    padding-bottom: 0.4rem;
  }

  /* Submit rechts macht mobil selten Sinn → linksbündig */
  .form-group.submitbutton {
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* Optional: sehr kleine Screens (≤ 480px) – Button über volle Breite */
@media (max-width: 480px) {
  .form-group.submitbutton button {
    width: 100%;
  }
}
/* ==================================================== */




/* === ACCESSIBILITY BAR – POSITION OBEN RECHTS =========================== */

.accessibility-bar {
    position: absolute;
    top: 0;
    right: clamp(1.5rem, 4vw, 4rem);
    background: #E2E2F5;
    padding: .4rem 0.8rem;
    padding-top: 0.6rem;
    border-radius: 0 0 8px 8px;
    z-index: 10000;
    font-family: 'Rubik', sans-serif;
    font-size: clamp(13px, 5vw, 17px);
    line-height: 1.4;
}

/* Innenlayout */
.accessibility-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3rem; /* extra Abstand zwischen den Gruppen */
}

/* === GRUPPEN ============================================================ */

.accessibility-group {
    display: flex;
    align-items: center;
    gap: .3em;
}

.accessibility-group span {
    font-weight: 700;
    color: #263F87; /* dunkelblau wie im Screenshot */
}

/* Innenlayout */
.accessibility-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

/* Gruppen */
.accessibility-group {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.accessibility-group span {
    font-weight: 600;
    color: #263F87;
}

/* Buttons */
.accessibility-group button {
    background: #263F87;
    border: none;
    border-radius: 10px;
    padding: .45rem .75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    color: #ffffff;
    font: inherit;           /* <<< Schrift komplett von .accessibility-bar erben */
     font-weight: 500;    /* überschreibt danach gezielt */
    white-space: nowrap;
}
.accessibility-group a button {
text-decoration:none;
color:#fff;
}
/* Hover */
.accessibility-group button:hover {
    background: #1b2f6a;
}

/* Icons */
.accessibility-group button i {
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1;
  
}

/* Minus/Plus quadratisch */
.schriftgroesse button {
    width: 39px;
    height: 39px;
    padding: 0;
    border-radius: 10px;
}
.accessibility-group button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

/* === MOBILE / TABLET VERSION ==================================== */
@media (max-width: 1000px) {

    .accessibility-bar {
        /* NICHT über gesamte Breite, nur Inhalt */
        left: auto; /* oder einfach weglassen */
        right: clamp(1.5rem, 4vw, 4rem);  /* wie im Desktop, dynamischer Abstand */

        border-radius: 0 0 10px 10px;       /* wie oben */
        padding: .6rem 1rem;              /* Innenabstand hellblaues Kästchen */
        /* kein text-align nötig */
    }

    .accessibility-inner {
        justify-content: flex-end;    /* Buttons rechtsbündig */
        gap: 0.5rem;                  /* etwas kompakter */
        flex-wrap: wrap;              /* falls zu breit → umbrechen */
    }

    .accessibility-group {
        gap: .4rem;
    }

    .schriftgroesse button {
        width: 38px;                  /* etwas kleiner */
        height: 38px;
    }
}

/* === EXTRA SMALL: Nur Icons unter 725px ============================ */
@media (max-width: 855px) {

    .accessibility-group button {
        padding: .35rem .5rem;
        gap: .2rem;
    }

    .schriftgroesse button {
        width: 40px;
        height: 40px;
    }

    /* Nur Icons bei Kontrast & Einfache Sprache */
    .kontrast button,
    .einfache-sprache button {
        font-size: 0;      /* blendet Text aus */
        padding: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
    }

    .kontrast button i,
    .einfache-sprache button i {
        font-size: 1.4rem;
        margin: 0;
    }
}


/* === EXTRA SMALL: Schriftgröße-Text ausblenden ================== */
@media (max-width: 590px) {
    .schriftgroesse span {
        display: none;   /* Wort "Schriftgröße" verschwindet */
    }
}


/* === ULTRA SMALL: Noch kleiner ab 480px =========================== */
@media (max-width: 430px) {

    /* Abstand zwischen den Gruppen noch enger */
    .accessibility-inner {
        gap: 0.4rem;
    }

    /* Buttons noch etwas kleiner */
    .accessibility-group button {
        padding: .2rem .4rem;
        gap: .1rem;
    }

    /* Plus/Minus nochmals kleiner */
    .schriftgroesse button {
        width: 37px;
        height: 37px;
    }

    /* Kontrast + Einfache Sprache Icons kleiner */
    .kontrast button,
    .einfache-sprache button {
        width: 37px;
        height: 37px;
    }

    .kontrast button i,
    .einfache-sprache button i {
        font-size: 1.2rem;
    }
}


/* ======================================================== */



/* === Header außen ===================================================== */

.rex-navi1 > li > a {
    font-size: 21px;  /* größere Schrift */
    font-weight: 600;
}

/* === Navigation kleiner ab 720px ================================== */
@media (max-width: 1400px) {

    .rex-navi1 > li > a {
        font-size: 18px;
    }
}



body > header {
  background-color: var(--color-primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: clamp(100px, 15vw, 150px);
  z-index: 4005;
  padding-inline: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/* === Innerer Bereich (max. 1600px, keine zusätzliche Luft) ============= */
.header-inner {
  flex: 1 1 auto;
  max-width: 1600px;       /* Inhalt bleibt auf 1600 px begrenzt */
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  background: transparent;
  box-sizing: border-box;
  padding: 0;              /* wichtig: kein eigenes Padding mehr */
}

.headerinner-right {
    padding-top: 2.7rem;   /* nur Navi & Burger nach unten */
}

/* === Logo: größer + leicht überstehend unten ============================ */
.logo-container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  height: 100%;
}

.logo-container a img {
  height: clamp(174px, 15vw, 215px); /* skaliert leicht mit, max. 215px */
  width: auto;
  position: relative;
  top: clamp(0px, 2.5vw, 35px);
  right: 7.5px;
  z-index: 10;
  background-color: #fff;
  border: 15px solid #2A458E;
  border-radius: 50%;
  box-sizing: border-box;
}

/* === Navigation ======================================================== */
.headerinner-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  height: 100%;
}

.headerinner-right a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.headerinner-right a:hover {
  opacity: 0.8;
}

/* =========================
   BASIS (ohne Breakpoint)
   ========================= */

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  margin-top: .5em;
  z-index: 1000;
}

.burger span {
  display: block;
  height: 4px;
  width: 30px;
  background-color: #FAFAFA;
  border-radius: 0;
  margin-top: 4px;
  margin-bottom: 6px;
  transition: 0.3s;
}

/* =========================
   DESKTOP (min-width: 1101px)
   ========================= */

@media (min-width: 1101px) {

  /* Hauptnav rechtsbündig */
  header nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-grow: 1;
    z-index: 1200;
    position: relative;
  }

  /* Pagination-Nav (falls vorhanden) linksbündig */
  header nav.pagination {
    display: flex;
    justify-content: flex-start;
    flex-grow: 1;
    z-index: 1200;
    position: relative;
  }

  /* Top-Level-Liste horizontal */
  nav > ul,
  header nav.pagination > ul {
    display: flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  header nav > ul > li {
    position: relative;
    z-index: 1201;
  }

  /* Top-Level-Links */
  header nav ul > li > a {
    display: inline-block;
    position: relative;
    text-align: center;
    height: auto;
    text-decoration: none;
    color: var(--color-white);
    background-color: var(--color-primary);
    padding: .4rem 0 .2rem 0;
    border-radius: 0;
    font-size: .9em;
    border-bottom: 0 solid transparent;
  }

  /* Active/Hover ohne Unterstreichung */
  header nav > ul > li > a:hover,
  header nav > ul > li > a.rex-active,
  header nav > ul > li > a.rex-current {
    color: var(--color-white);
    border-bottom: 0 solid var(--color-white);
    border-radius: 0;
  }

/* Basis: Marker unter Menüpunkt */
header nav > ul > li > a::after {
  content: "";
  position: absolute;
  bottom: -20px; /*⬅️ deutlich mehr Abstand zum Text */
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-white);
  transition: opacity .3s ease, transform .3s ease;
  opacity: 0;

}

/* Sichtbar bei Hover/aktiv */
header nav > ul > li > a:hover::after,
header nav > ul > li > a.rex-active::after,
header nav > ul > li > a.rex-current::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 1. Quadrat – größer */
header nav > ul > li:nth-child(1) > a::after {
  width: 16px;
  height: 16px;
  background-color:#0ed145;
}

/* 1. Quadrat – größer */
header nav > ul > li:nth-child(7) > a::after {
  width: 16px;
  height: 16px;
  background-color:#0ed145;
}

/* 2. Kreis – größer */
header nav > ul > li:nth-child(2) > a::after {
  width: 18px;
  height: 18px;
  border-radius: 999px;
    background-color:#fff200;
}

/* 3. Menüpunkt: Rechteck (gleich hoch wie das Quadrat, nur breiter) */
header nav > ul > li:nth-child(3) > a::after {
  width: 28px;   /* breiter */
  height: 15px;  /* exakt gleiche Höhe wie Quadrat */
  border-radius: 0;
      background-color:#ff0000;
}

/* 4. Menüpunkt: leicht gestauchtes Sechseck */
header nav > ul > li:nth-child(4) > a::after {
  width: 20px;
  height: 16px;  /* nur leicht gestaucht */
  background-color: var(--color-white);
  border-radius: 0;
  clip-path: polygon(
    22% 0%,
    78% 0%,
    100% 50%,
    78% 100%,
    22% 100%,
    0% 50%
  );
        background-color:#b83dba;
}

/* 5. Menüpunkt: Oval (exakt ein Kreis, der in die Länge gezogen wurde) */
header nav > ul > li:nth-child(5) > a::after {
  width: 25px;         /* breiter → gestreckter Kreis */
  height: 16px;        /* gleiche Höhe wie der normale Kreis */
  background-color: var(--color-white);
  border-radius: 50%;  /* ⬅️ das macht es zu einem echten Oval */
          background-color:#ffa500;
}

/* 6. Dreieck – größer + extra Abstand */
header nav > ul > li:nth-child(6) > a::after {
  width: 0;
  height: 0;
  background: none;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 15px solid #00b0f0;
  bottom: -18px; /*⬅️ mehr Abstand wegen Dreiecks-Höhe */
            background-color:transparent;
}

  

  /* Dropdown (2. Ebene) */
  header nav li ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    flex-direction: column;
    background: transparent;
    padding: 0;
    box-shadow: 0 0 0 rgba(0,0,0,0.1);
    z-index: 1500;
    gap: 0;
    border-radius: var(--medium-rounded);
  }

  header nav li:hover > ul {
    display: flex;
    z-index: 1500;
    gap: 0;
    background-color: var(--color-bg);
  }

  header nav li ul li {
    padding: 0;
    margin: 0;
    min-width: 180px;
  }

  header nav ul li ul li a {
    display: block;
    position: relative;
    text-align: left;
    height: auto;
    text-decoration: none;
    color: var(--color-weiss);
    background-color: var(--color-lightgreen);
    padding: .5rem 1rem;
    border-radius: var(--medium-rounded);
  }

  header nav ul li ul li a:hover,
  header nav > ul > li > ul > li > a.rex-active,
  header nav > ul > li > ul > li > a.rex-current {
    color: var(--color-bg);
    background-color: var(--color-weiss);
    padding: .5rem 1rem;
    border-radius: var(--medium-rounded);
  }

  header nav ul li ul li:first-child a {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  header nav ul li ul li:last-child a {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  /* Burger bei Desktop (falls sichtbar) nach rechts schieben */
  .burger {
    margin-left: auto;
    margin-right: 0;
  }

  /* Mobile-Back-Button ausblenden auf Desktop */
  .mobile-back-button {
    display: none;
  }
}


/* =========================
   MOBILE (max-width: 1100px)
   ========================= */
@media (max-width: 1200px) {
 
 
 .logo-container {
    align-items: center;
    position: absolute;
    z-index: 5;
    width: 200px;
  }

.logo-container a img {
height: 180px;
width: auto;
position: relative;
right: 20px;
z-index: 10;
background-color: #fff;
border-radius: 50%;
box-sizing: border-box;
}

  /* Body beim offenen Menü nicht scrollen lassen */
  body.open { overflow: hidden; }

  /* Header + blauer Hintergrund */
  body > header {
    position: relative;
    z-index: 4000;
  }
  body > header::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 120px;
    background: var(--color-primary);
    z-index: 0;
    transition: height .35s ease;
  }
  /* Menü geöffnet → Blau füllt Viewporthöhe */
  body.open > header::after { height: 100vh; }

  /* Header-Inhalt über dem Blau */
  .header-inner,
  header nav {
    position: relative;
    z-index: 1;
  }

  /* Rechte Headerseite + Burger rechts */
  .headerinner-right {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    align-items: center;
    gap: .3rem;
    width: 100%;
    text-align: right;
  }
  .burger {
    display: block;
    margin-left: auto;
    align-self: center;
    order: 2;
  }

  /* Header-Z-Index, wenn geöffnet */
  body.open > header {
    z-index: 4005;
    background: var(--color-bg);
  }

  /* --- Mobile Menü-Container (geschlossen) --- */
  header nav {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease;
  }

  /* --- Geöffnet: Vollbild-Overlay, garantiert zentriert --- */
  header nav.open {
    position: fixed;
    inset: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) 0;
    z-index: 4006;                      /* über dem blauen Header::after */
    display: flex;
    flex-direction: column;
    justify-content: center;            /* vertikal zentriert */
    align-items: center;                /* horizontal zentriert */
    min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;                     /* falls zu viele Punkte */
    overscroll-behavior: contain;
    margin: 0;
    padding: clamp(1.5rem, 4vh, 5rem) 0;
    background: transparent;            /* Blau kommt vom Header::after */
  }

  /* Listenstruktur */
  header nav.open > ul {
    width: min(90%, 900px);
    margin: 0 auto;
  }
  nav ul {
    display: block;
    width: 90%;
    padding: 0;
    list-style: none;
    margin-top: 0;                      /* echte Mitte beibehalten */
  }
  nav ul li {
    display: block;
    margin-bottom: 1rem;
    text-align: right;
  }

  /* Menülinks */
  nav li a {
    display: block;
    padding-top: clamp(0.6rem, 1.8vh, 1rem);
  padding-bottom: clamp(0.2rem, 1.8vh, 0.5rem);
    border-bottom: 2px solid var(--color-white);
    color: #FAFAFA;
    cursor: pointer;
    
    padding-right:10px;
  }
  
  nav a:last-child { border-bottom: 1px solid #E2E2F5; }
  nav a.rex-current,
  nav a:hover { border-bottom: 1px solid #FAFAFA; }

  /* Pfeil für Submenu */
  nav li:has(ul) > a::after {
    content: " >";
    padding-left: 0.5em;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    color: #fff;
  }

header nav > ul > li > a::after {
  content: "";
  position: relative;

  background-color: var(--color-white);
  transition: opacity .3s ease, transform .3s ease;
  opacity: 0;
  display:inline-block;
  width:30px;
  margin-left:30px;
}

/* Sichtbar bei Hover/aktiv */
header nav > ul > li > a:hover::after,
header nav > ul > li > a.rex-active::after,
header nav > ul > li > a.rex-current::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* 1. Quadrat – größer */
header nav > ul > li:nth-child(1) > a::after {
  width: 16px;
  height: 16px;
    background-color:#0ed145;
}

/* 1. Quadrat – größer */
header nav > ul > li:nth-child(7) > a::after {
  width: 16px;
  height: 16px;
    background-color:#0ed145;
}

/* 2. Kreis – größer */
header nav > ul > li:nth-child(2) > a::after {
  width: 18px;
  height: 18px;
  border-radius: 999px;
      background-color:#fff200;
}

/* 3. Menüpunkt: Rechteck (gleich hoch wie das Quadrat, nur breiter) */
header nav > ul > li:nth-child(3) > a::after {
  width: 18px;   /* breiter */
  height: 15px;  /* exakt gleiche Höhe wie Quadrat */
  border-radius: 0;
  background-color:#ff0000;
}

/* 4. Menüpunkt: leicht gestauchtes Sechseck */
header nav > ul > li:nth-child(4) > a::after {
  width: 20px;
  height: 16px;  /* nur leicht gestaucht */
  background-color: var(--color-white);
  border-radius: 0;
  clip-path: polygon(
    22% 0%,
    78% 0%,
    100% 50%,
    78% 100%,
    22% 100%,
    0% 50%
  );
  background-color:#b83dba;
}

/* 5. Menüpunkt: Oval (exakt ein Kreis, der in die Länge gezogen wurde) */
header nav > ul > li:nth-child(5) > a::after {
  width: 25px;         /* breiter → gestreckter Kreis */
  height: 16px;        /* gleiche Höhe wie der normale Kreis */
  background-color: var(--color-white);
  border-radius: 50%;  /* ⬅️ das macht es zu einem echten Oval */
	background-color:#ffa500;
}

/* 6. Dreieck – größer + extra Abstand */
header nav > ul > li:nth-child(6) > a::after {
  width: 0;
  height: 0;
  background: none;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-bottom: 15px solid #00b0f0;
  bottom: 0px; /*⬅️ mehr Abstand wegen Dreiecks-Höhe */
  background-color:transparent;
}


  /* Backbutton + Submenu-Logik */
  nav .mobile-back-button {
    display: none;
    position: absolute;
    top: 0;
    left: 1rem;
    width: 80%;
    padding: 1rem;
    font-size: 1rem;
    background: transparent;
    border: 0;
    border-radius: 10px;
    z-index: 1600;
    cursor: pointer;
    text-align: left;
  }
  nav.submenu-active .mobile-back-button { display: block; }

  /* Haupt-Ebene wegschieben, wenn Submenu aktiv */
  nav.submenu-active ul.rex-navi1 {
    transform: translateX(-120%);
    opacity: 1;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  /* Submenu-Grundzustand */
  nav ul.rex-navi2 {
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 2000;
    padding-left: 1rem;
  }

  /* Submenu sichtbar */
  nav.submenu-active ul.rex-navi2.nav-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(103%);
    z-index: 2000;
    background: transparent;
    border-radius: 10px;
    padding-top: 1rem;
    padding-right: 1rem;
  }

  /* Submenu aktiv: keine Zentrierung */
  nav.submenu-active.open {
    justify-content: flex-start;
    align-items: stretch;
    padding-top: clamp(1rem, 3vh, 2rem);
  }

}

/* =========================
   A11Y – Fokus NUR für Nav
   ========================= */
body.altpressed nav a:focus {
  border-radius: 0px;
}



section {
	z-index: 1;
}

section.hero {
	position: relative;
	margin-top: 0px;
	height: 55vw;
	z-index: 999;
}

.hero-wave{
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	/* -1px gegen Haarlinien */
  width: 100%;
	height: 240px;
	/* Höhe der Abrundung */
  z-index: 200;
	fill: var(--color-bg);
}

.hero-wave path{
	fill: var(--color-bg);
}

#inhalt16 {
	padding: 30px 0 50px 0;
	background-color: #fff;
}

@media screen and (min-width:1500px) {
	section.hero {
	position: relative;
	margin-top: 0px;
	height: 50vw;
	z-index: 999;
}
}

@media screen and (min-width:2000px) {
	section.hero {
	position: relative;
	margin-top: 0px;
	height: 50vw;
	z-index: 999;
}
}

section.hero .textrahmen {
	background-color: transparent;
	border-radius: var(--rounded);
	padding: 1rem 1.5rem 1rem 1.5rem;
	width: 60%;
	position: absolute;
	bottom: 8rem;
	left: 15%;
	z-index: 1000;
	color: #fff;
}

section.hero .textrahmen h2,
section.hero .textrahmen h1 {
	color: #fff;
	font-size: 5.5rem;
	letter-spacing: -0.1rem;
	line-height: 110%;
	margin-bottom: 0rem;
}

.slide-overlay p:not(.headerButtons) {
	font-weight: 500;
	font-size: 1.3rem;
	margin-top: 0.7rem;
	margin-bottom: 2.8rem;
}



main section.zahlenModulWrapper {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

main section.slideshowundtext {
	padding: 7rem 0 7rem 0;
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

main {
	z-index: 1000;
}


main section:first-child .innerspalte1 {
	padding-top: 0rem;
	margin-top: -200px;
	z-index: 2000;
}


main section.kalender {
	height: auto;
	display: flex;
	background-color: var(--color-lightgreen);
	padding-top: 7rem;
	padding-bottom: 2rem;
	margin-right: auto;
	margin-left: auto;
	width: 100%;
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

main section.kalender.inhalt2spalten{
	padding-top: 12rem;
	padding-bottom: 0rem;

	background-size: 110%;
	background-position: center -2px;
	background-repeat: no-repeat;
}


@media (max-width: 800px) {

 #kalender .spalte2 .innerspalte2 h2 {
   margin-top: 0rem;
}

 #kalender .spalte2 .innerspalte2 h1 {
   margin-bottom: 0rem;
}
}


main section.inhalt2spalten.anfragen { 
		background-color: var(--color-lightgreen);
	

		display:flex;
		position:relative;
		margin-right: 0;
		margin-left: 0;
		padding: 1.5rem 7rem 1.5rem 7rem;

		max-width:2900px;
	}
main section.inhalt2spalten.anfragen > .spalte { 
	width:40%;
	max-width:770px;
	}
main section.inhalt2spalten.anfragen > .spalte .innerspalte {
width:100%;

} 
main section.kalender.inhalt2spalten.unten{
	padding-top: 7.5rem;
	padding-bottom: 6rem;

	background-size: 100%;
	background-position: center -2px;
	background-repeat: no-repeat;
	background-color: var(--color-bg);
}



@media screen and (max-width:800px) {
main section.kalender.inhalt2spalten .spalte1 {
display:none;
}

main section.kalender {
	padding-top: 0rem !important;
	flex-direction:column;

}
main section.kalender.inhalt2spalten{
	padding-top: 6rem !important;
	padding-bottom: 0rem !important;
}
main section.inhalt2spalten.anfragen {
padding: 1.5rem 1.5rem 1.5rem 1.5rem;
}
main section.inhalt2spalten.anfragen > .spalte { 
	width:100%;
	max-width:770px;
	
	}
section.inhalt2spalten.anfragen .spalte1 {
display:none;
}
}



.slideshow {
	position: relative;
	width: 100%;
	height: 100%;
	z-index: 5;
}

.slide {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 2s ease-in-out;
	z-index: 0;
}

.slide.active {
	opacity: 1;
	z-index: 1;
}

.herobuttons {
	flex: 2;
	max-width: 400px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.herobuttons a {
	padding: 0.5rem 1rem;
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: var(--rounded);
}

.herosocial {
	flex: 0.4;
	max-width: 350px;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.herosocial a {
	padding: 0.3rem 0.4rem;
	background-color: rgba(255, 255, 255, 0.9);
	aspect-ratio: 1 / 1;
	width: 1.5rem;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--rounded);
}




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

.info-list li {
	position: relative;
	padding-left: 1.6rem;
	/* Platz für Icon */
  margin-bottom: .5rem;
}

.info-list li::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	/* solid icons */
  position: absolute;
	left: 0;
	top: 0.2rem;
	color: var(--color-black);
}

/* Unterschiedliche Symbole pro Typ */
.info-list li.adresse::before {
	content: "\f3c5";
} /* fa-location-dot */
.info-list li.mail::before    {
	content: "\f0e0";
} /* fa-envelope */
.info-list li.phone::before   {
	content: "\f095";
} /* fa-phone */
.info-list li.phonemobile::before {
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	content: "\f3cd";
	/* fa-mobile-screen-button */
  color: var(--color-black);
}
.info-list li.person::before  {
	content: "\f500";
}


nav ul {
	gap: 1.55rem;
}

@media (min-width: 1500px) {
    nav ul {
        gap: 2.5rem;
    }
}

.school-name {
	padding-top: 0.5rem;
}

.footer-logo {
	height: 120px;
}

footer svg {
	fill: var(--color-bg);
}

.headerButtons a.instagram,
.headerButtons a.mail {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 46px;
	height: 46px;
	background-color: var(--color-weiss);
	text-decoration: none;
	margin-right: 0.4rem;
	border-radius: var(--fieldbuttonrounded);
	padding: 0;
	color: white;
	transition: background-color 0.3s ease;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.headerButtons a.instagram:hover,
.headerButtons a.mail:hover {
	background-color: var(--color-darkblue);
}

.headerButtons a.instagram i {
	font-size: 1.9rem;
}

.headerButtons a.mail i {
	font-size: 1.8rem;
}

body > header header.scrolled .nurm {
	display: none;
}

.news-block {
	margin-bottom: 40px;
}

.news-title {
	font-size: 1.8em;
	margin-bottom: 10px;
	margin-top: 10px;
	font-weight: bold;
}

h3.news-title {
	hyphens: auto;
	-webkit-hyphens: auto;
	-ms-hyphens: auto;
	overflow-wrap: break-word;
	word-break: break-word;
	position: relative;
	padding-right: 3rem;
}

h3.news-title::after {
	content: "\f061";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--color-bg);
	color: var(--color-weiss);
	text-align: center;
	line-height: 2.5rem;
	font-size: 1.5rem;
	text-shadow: none;
}

.news-card:hover h3.news-title::after {
	content: "\f061";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	position: absolute;
	top: 50%;
	right: 0;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--color-weiss);
	color: var(--color-bg);
	text-align: center;
	line-height: 2.5rem;
	font-size: 1.5rem;
	text-shadow: none;
}

.news-meta {
	font-size: 1em;
	color: #666;
	margin-bottom: 15px;
}

.news-image-wrapper {
	margin-bottom: 15px;
}

.news-image {
	max-width: 100%;
	height: auto;
}

.news-intro {
	margin-bottom: 10px;
}

.news-card .news-content {
	line-height: 1.8rem;
	height: 100%;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.news-card:hover .news-content {
	line-height: 1.8rem;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 1);
}

.publishnews,

.news-article img {
	max-width: 100%;
	height: auto;
}



@media (max-width: 1200px) {
body > header {
	height: 150px;
}

	section.hero {
	position: relative;
	margin-top: 0px;
	height: 55vw;
	z-index: 999;
}


nav ul {
gap: 2rem;
}


	section.hero .textrahmen {
	width: 50%;
	position: absolute;
	bottom: 3.5rem;
	left: 3rem;
	z-index: 1000;
}

	section.hero .textrahmen h2 {
	color: #fff;
	font-size: 3rem;
}

.hero-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	width: 100%;
	height: 180px;
	z-index: 200;
	fill: var(--color-bg);
}

	.logo-container svg {
	height: 90px;
}

	body > header.scrolled .logo-container svg {
	height: 80px;
}

	.news-wrapper {
	background-color: var(--color-grey);
	padding: 6rem 3rem 7rem 3rem;
	z-index: 5;
	position: relative;
}

	body:not(#article1) .news-wrapper {
	padding: 3rem 3rem 3rem 3rem;
}

	.headerinner-right {
	gap: 1rem;
}

	.shortcuts-wrapper {
	padding: 4rem 3rem;
}

	.news-title {
	font-size: 1.2em;
	margin-bottom: 0px;
	font-weight: bold;
}

	.news-card img {
	width: 100%;
	aspect-ratio: 4 / 3.2;
	object-fit: cover;
	display: block;
	transition: filter 0.3s;
}

.nurm {
	display: none;
}

.nurd,
.mnicht {
	display: block;
}

.search-toggle {
	position: relative;
	display: flex;
	align-items: center;
}

.search-icon {
	background: #eee;
	border: none;
	border-radius: var(--fieldbuttonrounded);
	width: 2.2rem;
	height: 2.2rem;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: background 0.3s ease;
	background-color: var(--color-lightgreen);
}

.search-icon:hover {
	background: #ccc;
}

.search-field {
	width: 0;
	opacity: 0;
	transition: all 0.3s ease;
	padding: 0.4rem;
	border: 1px solid #ccc;
	border-radius: var(--fieldbuttonrounded);
	font-size: 1.0rem;
	outline: 0;
	height: 1.8rem;
	padding-right: 0rem;
	padding-left: 0rem;
	margin-right: 0rem;
}

.search-field.visible {
	width: 200px;
	opacity: 1;
	margin-left: 0.5rem;
	padding-right: 1rem;
	padding-left: 1rem;
	margin-right: 1rem;
}

.news-filter {
	display: flex;
	gap: 1rem;
	margin-bottom: 1.5rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.news-filter button {
	background: #eee;
	border: none;
	border-radius: var(--fieldbuttonrounded);
	width: auto;
	height: 2.6rem;
	font-size: 1rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #333;
	transition: background 0.3s ease;
	background-color: var(--color-lightgreen);
	padding-right: 1rem;
	padding-left: 1rem;
}

.news-filter button:hover {
	background-color: var(--color-weiss);
	color: var(--color-grey);
}

.custom-select {
	position: relative;
	width: 160px;
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}

.custom-select .selected {
	padding: 10px 12px;
	border: 1px solid #ccc;
	background-color: #fff;
	border-radius: 5px;
}

.custom-select .options {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 10;
	background: #fff;
	border: 1px solid #ccc;
	border-top: none;
	display: none;
	max-height: 200px;
	overflow-y: auto;
}

.custom-select .options div {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
}

.custom-select .options div:hover,
.custom-select .options .active {
	background-color: #f0f0f0;
}

.custom-select.open .options {
	display: block;
}

.shortcuts-wrapper {
  padding: 2rem;

}

.shortcuts-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 100%; /* Container darf volle Breite haben */
}

@media (min-width: 1200px) {
  .shortcuts-section {
    grid-template-columns: repeat(3, 1fr); /* ab Desktop immer max. 3 */
  }
}

.shortcuts-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--medium-rounded);
  overflow: hidden;
  background: #fff;
}



.shortcuts-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.shortcuts-content {
  padding: 1.2rem;
  background: #fff;
}

.shortcuts-title h3 {
  margin: 0 0 1rem 0;
  font-size: 1.3rem;
  line-height: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.shortcuts-title p {
  margin: 0;
  line-height: 1.5;
  color: #333;
}

.scroll-down {
	display: none;
	position: absolute;
	bottom: 0rem;
	left: 90%;
	padding: .5rem .7rem .8rem .7rem;
	transform: translateX(-50%);
	font-size: 1.3rem;
	width: 24px;
	height: 24px;
	text-align: center;
	color: #fff;
	background-color: var(--color-primary);
	z-index: 210;
	text-decoration: none;
	border-radius: var(--max-rounded);
}

.slider-pagination {
	position: absolute;
	bottom: 9rem;
	left: 70.5%;
	transform: translateX(-50%);
	display: flex;
	gap: 0.5rem;
	z-index: 2000;
}

.slider-pagination .dot {
	width: 15px;
	height: 15px;
	background-color: #fff;
	border-radius: 50%;
	transition: 0.3s ease;
	cursor: pointer;
}

.slider-pagination .dot.active {
	opacity: 1;
	background-color: var(--color-secondary);
}


main section.pillen-links:first-child {
	padding-top: 0rem !important;
}
main section.pillen-links:last-child {
	padding-bottom: 0rem !important;
}

.pill-link {
	display: inline-flex;
	/* Flexbox für bessere Zentrierung */
  align-items: center;
	/* vertikal mittig */
  justify-content: center;
	/* horizontal mittig */
  padding: 0.8rem 1.3rem;
	border: var(--border-width) solid var(--color-primary);
	background-color: var(--color-bg);
	color: var(--color-primary);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s ease;
	margin: 0;
	width: 130px;
	/* feste Höhe für gleichmäßige Buttons */
  box-sizing: border-box;
}

/* Nur äußere Ecken abrunden */
.pill-link:first-child {
	border-radius: var(--fieldbuttonrounded) 0 0 var(--fieldbuttonrounded);
}

.pill-link:last-child {
	border-radius: 0 var(--fieldbuttonrounded) var(--fieldbuttonrounded) 0;
}

/* Optional: Trennlinie dazwischen entfernen, damit sie "zusammenkleben" */
.pill-link + .pill-link {
	border-left: none;
}

/* Hover- und Active-State */
.pill-link:hover,
.pill-link.active {
	background-color: var(--color-weiss);
	color: #fff;
	font-weight: 500;
}

@media (max-width:1200px) {
	.footer {

	}
}

/* =========================
   ALLE ÜBRIGEN STYLES (max-width: 825px)
   ========================= */
@media (max-width: 825px) {

  .nurm { display: block; }



  .nurd, .mnicht { display: none; }

  section.hero .textrahmen p br { display: none; }
  .news-article-content p br { display: block; }

  main section:first-child { padding-top: 0rem; }

  .open body > header {
    height: 100vh;
    background-color: var(--color-bg);
  }

  body > header .curved-header { height: 150px; }

  .slide-overlay p:not(.headerButtons) {
    font-weight: 500;
    font-size: 1.0rem;
    margin-top: 0.7rem;
    margin-bottom: 0.7rem;
  }


  body > header.scrolled .curved-header { height: 120px; }
  body.open header .curved-header { height: 100vh; }
  body.open > header.scrolled .curved-header { height: 100vh; }

  .service-search input[type="text"] {
    font-size: 16px;
    padding: 0;
  }

  .service-search input[type="text"].active {
    opacity: 1;
    width: 180px;
    padding: 8px;
  }

  body.searchopen div.servicelinks .service-inner > a { display: none; }
  body.searchopen div.servicelinks .service-inner > a.telefon { display: block; }

  main section.kalender { padding-top: 0rem; padding-bottom: 3rem; }

  main section.kalender.inhalt2spalten {
    padding-top: 6rem;
    padding-bottom: 0rem;
    background-size: 110%;
    background-position: center -2px;
    background-repeat: no-repeat;
  }

  main section.kalender.inhalt2spalten.unten {
    padding-top: 2.0rem;
    padding-bottom: 2rem;
    margin-bottom: -2rem;
    background-size: 100%;
    background-position: center -2px;
    background-repeat: no-repeat;
    background-color: var(--color-bg);
  }

  footer div br { display: block; }
  div.news-article-content br { display: block; }
  section.hero div br { display: block; }

  span.strich { display: none; }

  #article9 div br,
  #article10 div br,
  #article8 div br { display: block; }

  /* Hero / Slideshow */
  section.hero {
    color: var(--color-primary);
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 0rem 0rem 0rem 0em;
    background-color: var(--color-bg);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.0);
    position: relative;
    z-index: 999;
    height: 550px;
  }

  .hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 100px;
    z-index: 200;
    fill: var(--color-bg);
  }

  .slideshow { width: 100vw; }

  .slide {
    width: 100vw;
    height: 550px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  .slide.active { display: block; }
  .slide { min-width: 100%; display: none; }

  section.hero .textrahmen {
    width: 94%;
    left: 1rem;
    bottom: 2rem;
    padding: 1rem 3% 1rem 3%;
    font-size: 0.95rem;
    text-align: left;
    position: absolute;
    box-sizing: border-box;
  }

  body:not(#article1) section.hero .textrahmen {
    border-radius: var(--rounded);
    padding: 1rem 1.5rem 1rem 1.5rem;
    width: 80%;
    position: absolute;
    bottom: 2rem;
    left: 1rem;
    z-index: 1000;
  }

  section.hero .textrahmen h1,
  section.hero .textrahmen h2 {
    color: #fff;
    font-size: 2.5rem;
  }

  .news-wrapper { padding: 2rem 1rem 6rem 1rem; }

  .slider-pagination {
    position: absolute;
    bottom: 5rem;
    left: 70.5%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 2000;
  }

  .news-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
  }

  section.news-wrapper-before {
    content: "";
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 35px;
    background-size: 102% 35px;
    display: block;
    z-index: 14;
    margin-top: -35px;
  }

  .gridinfo {
    max-width: 1800px;
    width: 100%;
    padding: 0rem 0 1rem 0;
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .news-card { width: 100%; }

  .news-card:first-child .news-title { font-size: 1.5rem; }

  .shortcut-tile:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  }
}

/* =========================
   A11Y – übrige Fokus-Styles
   ========================= */
body.altpressed a:focus,
body.altpressed button:focus,
body.altpressed input:focus,
body.altpressed select:focus,
body.altpressed i:focus,
body.altpressed .klappgruppe h3.klapp:focus,
.zumachen:focus,
.grid .elem a:focus {
  outline: 2px solid #ff0000 !important;
  outline-offset: 2px !important;
}

body.altpressed .grid .elem a:focus,
body.altpressed .slideshow a:focus {
  border: 2px solid #ff0000 !important;
  outline-offset: 2px !important;
}

iframe select:focus {
  outline: 2px solid #000 !important;
  outline-offset: 2px !important;
}



@media screen and (max-width: 768px) {
	.inhalt2spalten.beitrag-kachel {
	flex-direction: column;
}

	.inhalt2spalten.beitrag-kachel .bild-spalte {
	min-height: 200px;
}
}

.slideshowundtext {
	margin-bottom: 0rem;
	margin-top: -4.5rem;
}

.modul-bereich {
	display: flex;
	flex-direction: row;
	gap: 5rem;
}

.modul-bereich.modul-position-rechts {
	flex-direction: row;
}

/* Text rechts, Slider links */
.modul-bereich.modul-position-links {
	flex-direction: row;
}

/* Standard (falls kein Wert) */
.modul-bereich {
	display: flex;
	gap: 2rem;
}

/* Rechtes Textfeld */
.bereich {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bereich.modul-text-bereich {
	flex: 1 1 35%;
}

.bereich.modul-text-bereich .innerspalte {
	width: 70%;
}

.modul-bereich.modul-position-rechts .bereich.modul-text-bereich {
	padding-left: 7rem;
}

.modul-bereich.modul-position-links .bereich.modul-text-bereich {
	padding-left: 4rem;
}

.modul-bereich.modul-position-rechts .bereich.modul-text-bereich .innerspalte {
	width: 70%;
}

.bereich.modul-slideshow-bereich {
	flex: 1 1 45%;
	overflow: hidden;
	/* verhinder Überlauf der Slides */
  max-height: 800px;
}

/* Slideshow-Wrapper – Scroll-Container */
.modul-slideshow-wrapper {
	display: flex;
	flex-direction: row;
	/* aktives Slide rechts */
  gap: 0rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 1rem;
	scroll-padding-inline-end: 0rem;
	scrollbar-width: none;
	/* Firefox */
  -ms-overflow-style: none;
	/* IE/Edge */
  flex-direction: row;
}

.modul-slideshow-wrapper::-webkit-scrollbar {
	display: none;
}

/* Slides */
.modul-slide {
	flex: 0 0 78%;
	/* 80% Breite, 20% Vorschau möglich */
  scroll-snap-align: end;
	/* rechts ausrichten */
  border-radius: 12px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 0 0px rgba(0, 0, 0, 0.1);
	position: relative;
	margin-left: 2em;
	margin-right: 0rem;
	transition: 1s ease;
}

.modul-slide-image img {
	width: 100%;
	height: auto;
	display: block;
}

.modul-slide-text {
	position: absolute;
	bottom: 0;
	width: 100%;
	padding: 2rem 4rem 2rem 2rem;
	background-color: var(--color-primary);
	color: #fff;
	z-index: 2;
	box-sizing: border-box;
}

.modul-slide-text h2 {
	color: var(--color-bg);
	margin-bottom: 1rem;
	font-weight: 600;
	font-size: 2rem;
	margin-top: 0;
}

.modul-slide-text p {
	color: var(--color-bg);
	margin-bottom: 0.1rem;
}

/* Steuerung */
.slide-controls {
	margin-top: 2rem;
	display: flex;
	gap: 1rem;
}

.slide-controls button {
	background: var(--color-buttonfarbe);
	border: none;
	color: #fff;
	font-size: 1.4rem;
	padding: 1rem 1.3rem 0.8rem 1.3rem;
	border-radius: 8px;
	cursor: pointer;
	transition: .5s ease;
}

.slide-controls button:hover {
	background: var(--color-buttonfarbe-dunkler);
}

/* Mobile Optimierung */
@media (max-width: 800px) {
  .modul-bereich {
	flex-direction: column;
}

  .bereich {
	flex: 1 1 100%;
}

  .modul-slide {
	flex: 0 0 100%;
	scroll-snap-align: start;
}

  .modul-slideshow-wrapper {
	flex-direction: row;
	scroll-snap-type: x mandatory;
	scroll-padding-inline-start: 1rem;
}
}
/* Mobile Optimierung */
@media (max-width: 800px) {
  .modul-bereich {
	flex-direction: column;
	/* untereinander statt nebeneinander */
    gap: 2rem;
}
.modul-bereich.modul-position-links {
	flex-direction: column;
}

.modul-bereich.modul-position-rechts {
	flex-direction: column;
}

  .bereich {
	flex: 0 0 100%;
	/* volle Breite */
    width: 100%;
	padding-left: 0 !important;
	/* linke Abstände entfernen */
    padding-right: 0 !important;
}

  .bereich.modul-text-bereich .innerspalte {
	width: 100%;
	/* volle Breite für Textinhalt */
    padding-left: 1.5rem;
	padding-right: 1.5rem;
	box-sizing: border-box;
}

  .bereich.modul-slideshow-bereich {
	max-height: none;
}

  .modul-slide {
	flex: 0 0 100%;
	margin-left: 0;
	margin-right: 0;
	scroll-snap-align: start;
}

  .modul-slide-text {
	padding: 1rem 1.5rem;
}

  .modul-slideshow-wrapper {
	flex-direction: row;
	gap: 1rem;
	scroll-snap-type: x mandatory;
	scroll-padding-inline-start: 1rem;
}
	.modul-position-links > .modul-slideshow-bereich {
	order: 2;
}

}

input, textarea, button {
	font-family: var(--font-main);
	font-weight: 200;
	font-size: 18px;
}

#yform-anmeldung_formular-slice_id {
	display: none;
}


.divimg a {
display:block;
cursor:pointer;
width:100%;
height:auto;
}

.divimg a img {
display:block;
width:100%;
height:auto;
}



footer {
position:relative;

}

footer .hero-wave {
position: absolute;
left: 0;
right: 0;
top: -50px;
width: 100%;
height: 240px;
z-index: 200;
fill: var(--color-bg);
}

.burger {

z-index:4008;
}

@media (max-width:1000px) {



footer .hero-wave {
position: absolute;
left: 0;
right: 0;
top: -50px;
width: 200%;
height: 240px;
z-index: 200;
fill: var(--color-bg);
}

}

