body { background: white; color: black; font-family: sans-serif; } .logo { font-weight: bold; } .bg-violet { background: rgba(161,112,185,1); } .bg-blue { background: rgba(98,195,208,1); } .bg-yellow { background: rgba(255,204,4,1); } .bg-orange { background: rgba(240,129,98,1); }

/* === Seitentyp-Farbschema (Accent Colors via CSS Variables) === */
.page-news {
  --accent-color: rgba(240, 129, 98, 1); /* orange */
}
.page-events {
  --accent-color: rgba(98, 195, 208, 1); /* türkis */
}
.page-standard {
  --accent-color: rgba(161, 112, 185, 1); /* violett */
}

a {
  color: black;
  text-decoration: underline; /* falls du den Unterstrich standardmäßig willst */
}

/* Hover-Effekt: Unterstreichung verschwindet */
a:hover {
  text-decoration: none;
}

/* Utility-Klasse für farbliche Highlights */
.highlight {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 0.5rem;
  font-weight: bold;
}
.kalender-button {
  position: fixed;
  top: 286px; /* wie gewünscht */
  right: 0px;
  z-index: 1000;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.kalender-button:hover .kalender-button-bg {
  fill: black; /* dunkleres Türkis beim Hover */
}

.kalender-button svg {
  width: 68px;
  height: 68px;
}

.kalender-button-bg {
  width: 68px;
  height: 68px;
  fill: #62C3D0;
  transform: translate(4 2)
} 

.page-title-wrapper {
  display: flex;
  flex-direction: column;
}

.page-title {
  padding: 16px 14px;
  font-size: 48px;
  line-height: 36px;
  font-weight: bold;
  background-color: var(--accent-color);
  color: white;
  display: inline-block;
  margin-top: 100px;
  margin-bottom: 64px;
  max-width: 100%;
  word-break: break-word;
    text-align: center;
  margin-left: auto;
  margin-right: auto;
}


/* === Allgemeine wiederverwendbare Komponenten === */
.section-title {
  background-color: var(--accent-color);
  color: white;
  padding: 14px 16px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-top: 100px;
  display: inline-block;
}

.highlight {
  background-color: var(--accent-color);
  color: white;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 0.5rem;
  font-weight: bold;
}


h1 {
  font-size: 32px;
  font-weight: bold;
  color: black;
  display: inline-block;
}


@font-face {
  font-family: 'Buenos Aires';
  src: url('/static/fonts/buenos-aires-regular.woff2') format('woff2'),
       url('/static/fonts/buenos-aires-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Buenos Aires';
  src: url('/static/fonts/buenos-aires-bold.woff2') format('woff2'),
       url('/static/fonts/buenos-aires-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Buenos Aires', sans-serif;
  line-height: 1.6;
  color: #000;
  max-width: 1440px;
  margin: 0 auto;
}

html, body {
  height: 100%;
  margin: 0 auto;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* mind. volle Höhe des Bildschirms */
}

.site-main {
  flex: 1; /* Hauptinhalt wächst, um den Rest zu füllen */
}

h2 {
      margin-block-start: 0;
      margin-block-end: 0;

}
.site-header {
  background-color: white;
  padding: 32px 60px 20px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  position: relative;
  width: 280px;
  height: 80px;
  display: block;
  text-decoration: none;
}

.site-logo .logo-part {
  font-family: 'Buenos Aires', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 30px;
  letter-spacing: 0%;
  color: white;
  padding: 5px 7px;
  position: absolute;
  display: inline-block;
  white-space: nowrap;
}

.site-logo .schule {
  background-color: rgba(98, 195, 208, 1);
  mix-blend-mode: multiply;
  top: 0;
  left: 37px;
}

.site-logo .am {
  background-color: rgba(255, 204, 4, 1);
  mix-blend-mode: multiply;
  top: 33px;
  left: 0;
}

.site-logo .senefelderplatz {
  background-color: rgba(240, 129, 98, 1);
  mix-blend-mode: multiply;
  top: 43px;
  left: 55px;
}
.search-container {
  position: relative;
  /* display: flex;
  align-items: center;
  margin-left: auto;
  float:right; */
}

.search-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.search-form {
  display: none;
  position: absolute;
    top: -10px;
    right: 50px;
  background: white;
  padding: 0.5rem;
  z-index: 10;
}

.search-form input {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.search-container.open .search-form {
  display: block;
}

.search-toggle svg {
  width: 28px;
  height: 28px;
  stroke: black;
  transition: stroke 0.3s;
}

.search-toggle:hover svg {
  stroke: var(--accent-color, #62C3D0);
}
/* 
.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-form input[type="search"] {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
  max-width: 160px;
}

.search-form button {
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
} */


.overnav-element {
  display: inline-block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}



/* .site-nav .overnav .nav-element-wrapper {
  padding: 10px 16px;
} */

.site-nav .undernav .nav-element-wrapper {
  padding: 5px 16px;
}


.site-nav a {
  font-family: 'Buenos Aires', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0%;
  color: #000;
  text-decoration: none;
  transition: color .1s ease, background-color .5s ease;

}

/* .site-nav .undernav {
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s ease;
  position: fixed;
  list-style: none;
  background:#fff;
  z-index: 1000;
} */


.nav-element {
  font-size: 16px!important;
}

.site-nav li:hover > .undernav {
  opacity: 1;
  visibility: visible;
}
.site-nav .nav-element-wrapper:hover,
.site-nav .nav-element-wrapper:hover *,
.site-nav .nav-element-wrapper:focus,
.site-nav .nav-element-wrapper:focus * {
  color: #fff;
  background-color: rgba(161, 112, 185, 1);
}

.site-nav a:focus {
  outline: none;
}

.site-nav .nav-element-wrapper:focus,
.site-nav .nav-element-wrapper:focus * {
  background-color: inherit !important;
}


/* Hero Image */
.hero-image {
  width: 100%;
  /* height: auto; */
  max-height: 480px;
  overflow: hidden;
  margin-bottom: 100px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;          /* skaliert das Bild und schneidet Überflüssiges ab */
  object-position: center center;  /* zeigt die Mitte (auch vertikal) */
}

.hero-slideshow img.active {
  opacity: 1;
  z-index: 1;
}

.hero-slideshow {
  position: relative;
  width: 100%;
  height: 480px; /* explizite Höhe nötig, sonst ist der Container 0px hoch */
  overflow: hidden;
    margin-bottom: 100px;

}

.hero-slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;  /* damit das Bild die Containerhöhe ausfüllt */
  object-fit: cover;
    object-position: center center;  /* zeigt die Mitte (auch vertikal) */

  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.hero-slideshow img.active {
  opacity: 1;
  z-index: 1;
}

.hero-video {
  height: 480px; /* fixed height */
  margin-bottom: 100px;
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}


/* Claim Section */
.claim-section {
  text-align: center;
  background-color: #fff;
    margin-bottom: 100px;

}

.claim-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.claim-word {
    position: relative;
  font-family: 'Buenos Aires', sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 32px;
  color: white;
  padding: 10px 16px;
  margin-left: -24px
}

/* Farben für jedes Wort */
.word-vielfalt {
  background-color: rgba(161, 112, 185, 1);
  mix-blend-mode: multiply;
  margin-left: 0;
  top: 14px
}

.word-ist {
  background-color: rgba(98, 195, 208, 1);
  mix-blend-mode: multiply;
}

.word-unsere {
  background-color: rgba(255, 204, 4, 1);
  mix-blend-mode: multiply;
  top: 14px;
}

.word-staerke {
  background-color: rgba(240, 129, 98, 1);
  mix-blend-mode: multiply;
}

.tagline {
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  max-width: 1320px;
  margin: 0 auto;
  margin-top: 32px;
  color: #000;
}

.info-section {
  margin-bottom: 100px;
}
.info-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-title {
  background-color: rgba(255, 204, 4, 1);
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  gap: 25px;
/* padding-top: 14px;*/
padding-right: 16px;
/* padding-bottom: 14px; */
padding-left: 16px; 
}
.info-box-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.info-box {
  background-color: rgba(255, 204, 4, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 32px;
  padding: 30px 30px;
  width:500px;
  text-align: center;

}
.info-box-title {
font-weight: bold;
    color: white;
    font-size: 24px;
}
.info-box a{
  font-weight:bold;
  margin-top: 8px;
  font-size: 16px;
}
/* News Section */
.news {
  margin-bottom: 100px;
}
.news-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-title {
  background-color: rgba(240, 129, 98, 1);
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  gap: 25px;
/* padding-top: 14px;*/
padding-right: 16px;
/* padding-bottom: 14px; */
padding-left: 16px; 
}


.news-section {
  display: flex;
  /* flex-wrap: wrap; */
  padding: 0 60px;
  margin: 32px 0;
}

.news-card {
  flex: 1 1 calc(33.333% - 16px);
  background: #fff;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
    text-decoration: none;
  color: inherit;
}

/* .news-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
} */


.news-card img {
  width: 100%;
  height: 278px;
  object-fit: cover;
}

.news-card h3 {
    font-size: 26px;
    margin: 16px 0 0;
    font-weight: bold;
    line-height: 32px;
}

.news-card p {
  font-size: 20 px;
line-height: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 4;      /* Begrenze auf 4 Zeilen */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.more-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.more-wrapper a {
  color: #000;
  font-size: 16px;
  font-weight: bold;

  /* margin-top: 16 px */
}

.more-wrapper a:hover {
  text-decoration: none;
}

/* Termine-Sektion */
.termine-section {
  margin-bottom: 100px;
    padding: 0 60px ;

}
.termine-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.termine-title {
    background-color: rgba(98, 195, 208, 1);
  color: white;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  gap: 25px;
/* padding-top: 14px;*/
padding-right: 16px;
/* padding-bottom: 14px; */
padding-left: 16px; 
}

.termine-grid {
  margin-top: 32px;
  padding-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: space-between;
}

.termine-grid a{
  text-decoration: none;
}

.termin-box {
  background-color: rgba(98, 195, 208, 1);
  flex: 1 1 calc(25% - 35px);
  min-width: 200px;
  padding: 16px 0;
    text-align: center;
    display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 160px;
}

.termin-datum {
  font-size: 32px;
  font-weight: 700;
  color: black;
}


.termin-titel {
     font-size: 24px;
    font-weight: 700;
    color: white;
    line-height: 32px;
    padding: 0 5px;

}

/* Angebote-Sektion */

.angebote-section {
  margin-bottom: 100px;
  color: white;
  text-align: center;
}

.angebote-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.angebote-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 30px;
    background: rgba(161, 112, 185, 1);
    padding: 0 16px
}

.angebote-grid {
  display: flex;
  justify-content: center;
  gap: 220px;
    background: rgba(161, 112, 185, 1);
    padding: 40px 60px;

}

.angebot {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 160px;
}

.angebot .icon {
  margin-bottom: 10px;
    fill: white;
      height: 100px;

}

.icon-bib {
  width: 83px;
}
.icon-italy {
  width: 115px;
}

.angebot p {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
}
.angebot a {
  color: white;
  text-decoration: none;
}

.standardpage-header {
  text-align: center;    /* Zentriert das H1 inline */
}

.standardpage-title {
  display: inline-block; /* Hintergrund nur um den Text */
  background-color: rgba(161, 112, 185, 1);
  color: white;
  font-size: 32px;
  line-height: 32px;
  padding: 14px 16px;    /* Vertikal/horizontal etwas Luft */
  margin: 100px 0 0 0;        /* Abstand über und unter */
}

.standardpage-body {
  padding: 32px 286px;
}

.standardpage-body h2 {
  font-size: 32px;
  line-height: 32px;
  font-weight: bold;
  margin-top: 32px;
  margin-bottom: 16px;
}

.standardpage-body .text {
  font-size:20px;
  line-height: 28px;
}

.standardpage-body .text p {
  margin-bottom: 0.75em; /* ca. halbe Zeile Abstand */
}

.document-link a{
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: underline;
}
.document-link a:hover{
  text-decoration: none;
}

.page-standard a{
  color: black!important;;
}

.page-standard a:hover{
  text-decoration: none;
}

.standardpage-body ul,
.standardpage-body ol {
  list-style-position: inside;   
  margin-left: 0;                
   padding-left: 1.5em;          
}

/* 1. Bild links floaten, 50 % Breite */
.standardpage-body img {
  float: left;
  width: 50%;
  margin: 0 2rem 1rem 0;   
}

.standardpage-body .image-clear {
  clear: both;
}

.suchergebnisse{
  margin-top:-150px;
}
.suchergebnisse li{
  list-style: none;
}
.suchergebnisse a{
  text-decoration: none;
}
/* News Index*/
.news-header-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.news-header h1 {
    background-color: rgba(98, 195, 208, 1);
  color: white;
  font-size: 32;
  font-weight: bold;
  padding: 0 16px;
  margin-top: 100px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 0 286px;
}

.news-item {
  display: flex;
  gap: 32px;
}

.news-index-image img {
  width: 100%;
  height: 277px;
  object-fit: cover;
}

.news-index-image {
  flex: 0 0 40%;
}

.news-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
}

.news-date {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 8px;
}

.news-index-title {
  font-weight: bold;
  font-size: 32px;
    line-height: 34px;
  margin-bottom: 8px;
}

.news-index-title a{
  text-decoration: none;
  color: black;
}

.news-intro {
  font-size: 16px;
  line-height: 1.4;
  max-height: 277px;
  overflow: hidden;
}

/* News Seite */
.news-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  text-decoration: none;
}

.news-date {
  font-size: 16px;
  margin-bottom: 16px;
}

.news-page-title {
  line-height: 36px;
  margin-bottom: 16px;
}

.news-image img {
  width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.news-body h2,
.news-body h3 {
  margin-top: 2rem;
}

.news-body ul,
.news-body ol {
  padding-left: 2rem;
  margin: 1rem 0;
}

.news-body li {
  margin-bottom: 0.5rem;
}

/* Kalender */

.kalender-header-title-wrapper {
  display: flex;
  justify-content: center;
}

.kalender-header h1 {
  background-color: rgba(98, 195, 208, 1);
  color: white;
  font-size: 32px;
  font-weight: bold;
  padding: 0 16px;
  margin-top: 100px;
}

.kalender-wrapper {
  padding: 0 173px;
}

.kalender-filter-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 16px;
  color: rgba(98, 195, 208, 1);
  cursor: pointer;
  padding: 0 12px;
}

.arrow-down {
  margin-left: 4px;
}

.dropdown-options {
  position: absolute;
  background-color: white;
  border: 1px solid rgba(98, 195, 208, 0.5);
  margin-top: 8px;
  padding: 0;
  list-style: none;
  z-index: 100;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dropdown-options[hidden] {
  display: none;
}

.dropdown-options li {
  padding: 10px 16px;
}

.dropdown-options li a {
  color: black;
  text-decoration: none;
  display: block;
  font-weight: normal;
}

.dropdown-options li:hover {
  background-color: rgba(98, 195, 208, 0.1);
}

.kalender-dropdown-button {
  background: none;
  border: none;
  font-weight: bold;
  font-size: 16px;
  color: rgba(98, 195, 208, 1);
  cursor: pointer;
  padding: 8px 12px;
}

.kalender-dropdown-options {
  position: absolute;
  background-color: white;
  border: 1px solid rgba(98, 195, 208, 0.5);
  margin-top: 8px;
  padding: 0;
  list-style: none;
  z-index: 100;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.kalender-dropdown-options[hidden] {
  display: none !important;
}

.kalender-dropdown-options li a.kalender-dropdown-link {
  color: black;
  text-decoration: none;
  display: block;
  font-weight: normal;
  padding: 10px 16px;
}

.kalender-dropdown-options li a.kalender-dropdown-link:hover {
      background-color: rgba(98, 195, 208, 1);
      color: white;
    }

.monat-box {
  margin: 14px 16px;
}

.monat-label {
  display: inline-block;              /* ← Nur so breit wie der Text */

  font-size: 32px;
  font-weight: bold;
  margin: 14px 0;
  background-color: rgba(98, 195, 208, 1);
  color: white;
  padding: 0 16px;
  
}

.kalender-eintrag {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 2px solid rgba(98, 195, 208, 1);
}

.kalender-datum {
  font-weight: bold;
  color: rgba(98, 195, 208, 1);
}

.kalender-titel {
  font-weight: bold;
}

.kalender-titel a{
text-decoration: none;
color: black;
}

.kalender-details {
  font-size: 14px;
  color: #333;
}

.kalender-link a {
  font-size: 12px;
  font-weight: bold;
  color: black;
  text-decoration: none;
}


/* footer */
.site-footer {
  padding: 2rem;
  background-color: rgba(226, 226, 226, 1);
}


.footer-spacer {
  width: 48px; /* exakt gleiche Breite wie Button (inkl. Padding etc.) */
  height: 1px; /* unsichtbar */
  flex-shrink: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.footer-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.footer-nav li a {
  text-decoration: none;
  color: #000;
  font-size: 1rem;
  font-weight: bold;
}

.back-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.back-to-top:hover {
  transform: translateY(-4px);
    fill: rgba(161, 112, 185, 1);

}

.back-to-top:hover circle{
  fill: rgba(161, 112, 185, 1);
}

.footer-nav a:hover {
  color: #fff; /* optional hover color */
}

.menu-toggle { display: none; }

/* Responsive Anpassung */

@media (min-width: 1145px) {
   .menu-toggle { display: none; }

  .site-nav {
    display: flex;
    margin-left: 286px;
    margin-top: 40px;
    position: static;
    transform: none;
    padding: 0;
    overflow: visible;
    z-index: auto;
  }

  .site-nav .overnav {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
  }

  /* wichtig: Anker für absolut positioniertes Dropdown */
  .site-nav .overnav > li { position: relative; }

  /* Dropdown standardmäßig zu – per opacity/visibility, NICHT per max-height */
  .site-nav .undernav {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    z-index: 1000;

    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(.98);
    transform-origin: top left;
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
  }

  /* Öffnen nur hier (Desktop) – keine globalen Hover-Regeln mehr */
  .site-nav .overnav > li:hover > .undernav,
  .site-nav .overnav > li:focus-within > .undernav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
  }

  /* Submenu-Buttons auf Desktop aus */
  .submenu-toggle { display: none !important; }

  /* Suche rechts ausrichten wie gehabt */
  .search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    float: right;
  }
}
@media (min-width: 1440px) {
.kalender-button {
  right:calc((100vw - 1440px) / 2); /* zentriert bei max. Breite 1440px */}
}




/* Sub-Desktop Navigation */
@media (max-width: 1144px) {
  
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: .5rem;
    cursor: pointer;
    z-index: 1200;
  }

   /* Sidebar von rechts */
  .site-nav {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 80%;
    max-width: 320px;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    padding: 120px 20px 24px;
    overflow-y: auto;
    z-index: 1100;
    margin: 0 !important;
  }
  .site-nav.open { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  /* Hauptliste klar als Block-Liste, nicht Flex */
  .site-nav.open .overnav {
    display: block !important;   /* ← wichtig: kein Flex */
    margin: 0;
    padding: 0;
  }
  .site-nav.open .overnav > li {
    display: block;
    list-style: none;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    margin: 0;
    overflow: visible;           /* falls woanders gesetzt */
  }

  /* Top-Link + Caret nebeneinander */
  .site-nav.open .nav-element-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  /* Untermenü im Dokumentfluss, niemals absolute */
  .site-nav.open .undernav {
    position: static !important; /* überschreibt evtl. alte Regeln */
    display: block !important;   /* sichert Block-Flow */
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0 0 0 14px;
    background: transparent;
    visibility: visible;
    opacity: 1;
    overflow: hidden;            /* für Animation */
    max-height: 0;               /* Start: zu – JS setzt scrollHeight */
    transition: max-height .3s ease;
  }
  .site-nav.open .undernav > li { padding: 6px 0; }

  /* Caret sichtbar + Rotation */
  .submenu-toggle {
    display: inline-flex;
    background: none;
    border: 0;
    padding: 6px;
    cursor: pointer;
    transform: rotate(0deg);
    transition: transform .2s ease;
  }
  .has-children[aria-expanded="true"] > .nav-element-wrapper .submenu-toggle {
    transform: rotate(180deg);
  }

  .undernav {
    position: static;
    list-style: none;
    margin: 6px 0 0 0;
    padding: 0 0 0 14px;
    background: transparent;
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
  }
  .undernav > li { padding: 6px 0; }

    .site-header {
    /* flex-direction: column; */
    /* align-items: flex-start; */
    padding: 1.5rem;
  }

  .header-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  
  }

  .search-container{
    margin-left: 5px;
  }

  .site-logo {
    margin-bottom: 1rem;
  }

  .site-nav {
    margin-left: 0;
  }

  .news-section {
    /* flex-direction: column; */
    padding: 1rem;
    /* gap: 1.5rem; */
  }

  .news-card {
    flex: 1 1 100%;
  }

  .angebote-grid {
    gap: 2rem;
  }

  .termine-grid {
    gap: 2rem;
  }

  .claim-wrapper {
    /* flex-direction: column;
    gap: 0.5rem; */
  }

  .standardpage-body {
    padding: 2rem 1.5rem;
  }

  .news-list {
    padding: 1.5rem;
  }

  .kalender-wrapper {
    padding: 0 1rem;
  }

  .page-title {
    font-size: 36px;
    line-height: 32px;
    margin-top: 64px;
    padding: 12px;
  }

  .monat-box {
    margin: 1rem;
  }
}

@media (max-width: 1014px) {
.termin-box {
    min-width: 300px;}}

@media (max-width: 768px) {
  .page-title {
    font-size: 36px;
    line-height: 32px;
    margin-top: 64px;
    padding: 12px 12px;
  }
    .news-section {
    flex-direction: column;
    gap: 1.5rem;
  }
}


/* --- Responsive Anpassungen für Tablets & Smartphones --- */



@media (max-width: 640px) {

  .hero-video {
  height: 300px; 
  }

  .search-form input[type="search"] {
    max-width: 100px;
  }

  .site-header {
    padding: 1rem;
  }

  .page-title {
    font-size: 28px;
    line-height: 30px;
  }

  .claim-word {
    font-size: 24px;
    padding: 8px 12px;
  }

  .tagline {
    font-size: 18px;
  }

  .news-section {
    padding: 1rem 0.5rem;
  }

  .angebote-grid {
    padding: 2rem 1rem;
  }

  /* .angebote-heading {
    font-size: 24px;
    margin-bottom: 16px;
  } */
  .angebot p {
    font-size: 16px;
   }

  .kalender-datum {
    font-size: 16px;
  }

  .kalender-details {
    font-size: 12px;
  }

  .kalender-dropdown-button {
    font-size: 14px;
  }

  .kalender-eintrag {
    grid-template-columns: 90px 1fr auto;
   }
  
  .footer-nav li a {
    font-size: 12px;
  }

  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
  }

  .back-to-top svg {
    width: 40px;
    height: 40px;
  }

  .info-box {
   width: 100%;
  }
}
