/* assets/css/index.css (Finale Version) */

/* --- 1. GRUNDLAGEN & TYPOGRAFIE --- */
html { scroll-behavior: smooth; }

/* Fließtext = Roboto */
body {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  margin: 0;
  background-color: #f4f7f9;
  color: #333;
}

/* Überschriften = Oswald */
h1, h2, h3, h4, h5, h6,
.headline, .title, .contact-info h2,
.footer-column h4 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.6rem;
}


/* --- 2. HEADER-STYLING (FINAL - Desktop First, mit mobilem Override) --- */

/* Standard-Stile für Desktop (Ihre bevorzugte Ansicht) */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 2rem;
  position: relative;
  color: white;
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/header-hintergrund.webp');
  background-size: cover;
  background-position: center center;
}

header .logo {
  font-weight: bold;
  font-size: 2.2rem;
  text-decoration: none;
  color: white;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  flex-shrink: 0;
}


.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: white;
  border-radius: 5px;
}

nav a.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.header-search { display: flex; align-items: center; }
.header-search input { border: 1px solid rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.1); color: white; padding: 0.5rem; border-radius: 5px 0 0 5px; border-right: none; }
.header-search input::placeholder { color: rgba(255, 255, 255, 0.7); }
.header-search button { background-color: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.5); color: white; padding: 0.5rem; border-radius: 0 5px 5px 0; cursor: pointer; }


/* --- 3. LAYOUT FÜR SEITENINHALTE --- */
.page-wrapper { max-width: 960px; margin: 2rem auto; padding: 2rem; background-color: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
img { max-width: 100%; height: auto; }
.two-column-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 2rem; }

/* --- 4. FOOTER-STYLING --- */
footer { background-color: #2c3e50; color: #ecf0f1; padding: 3rem 2rem; margin-top: 3rem; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 0; box-shadow: none; background-color: transparent; }
.footer-column h4 { font-size: 1.1rem; color: white; margin-top: 0; margin-bottom: 1rem; border-bottom: 2px solid #3498db; padding-bottom: 0.5rem; display: inline-block; }
.footer-column p { color: #bdc3c7; margin: 0; }
.footer-nav { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.5rem; }
.footer-nav a { color: #ecf0f1; text-decoration: none; transition: color 0.2s ease-in-out; }
/*.footer-nav a:hover { color: #3498db; text-decoration: underline; }*/
.footer-nav a:hover { color: #3498db; text-decoration: none; }
.footer-bottom { text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #34495e; font-size: 0.9em; color: #95a5a6; }
.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { text-decoration: none; }
.powered-by-link { display: inline-flex; align-items: center; gap: 0.3em; background-color: rgba(255, 255, 255, 0.1); padding: 0.2rem 0.5rem; border-radius: 5px; }
.kirby-logo { height: 1.2em; width: auto; filter: invert(1) }

/* --- 5. ARTIKEL-LISTEN & BEITRÄGE --- */
.latest-articles { max-width: 960px; margin: 2rem auto; padding: 2rem; background-color: white; border-radius: 8px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); }
.article-list .article-item { background-color: #f9f9f9; border: 1px solid #eef2f7; padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; }
.article-list .article-item:last-child { margin-bottom: 0; }
.article-item h2, .article-item h3 { margin-top: 0; margin-bottom: 0; line-height: 1.3; display: flex; align-items: center; gap: 0.5rem; }
.article-date { font-size: 0.9em; color: #777; margin-top: 0; margin-bottom: 1rem; }
.article-list .article-item::after { content: ""; display: table; clear: both; }
.article-image { float: left; max-width: 250px; margin-right: 1.5rem; margin-bottom: 0.5rem; }
.article-image img { border-radius: 8px; display: block; }
.all-articles-link { display: inline-block; background-color: #2c3e50; color: white; padding: 0.75rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 1.5rem; transition: background-color 0.2s ease, transform 0.2s ease; }
.all-articles-link:hover { background-color: #34495e; transform: translateY(-2px); }
.latest-articles .article-item h3 a { text-decoration: none; color: #333; transition: color 0.2s ease; }
/*.latest-articles .article-item h3 a:hover { color: #3498db; text-decoration: underline; }*/
.latest-articles .article-item h3 a:hover { color: #3498db; text-decoration: none; }
.pinned-icon { color: #c0392b; font-size: 1.2rem; }
.tags-filter { margin: 2rem 0; padding: 1rem; background-color: #eef2f7; border-radius: 5px; display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.tags-filter span { font-weight: bold; margin-right: 0.5rem; }
.tags-filter a { display: inline-block; background-color: white; color: #333; padding: 0.25rem 0.75rem; border-radius: 20px; text-decoration: none; font-size: 0.9em; border: 1px solid #ddd; transition: all 0.2s ease; }
.tags-filter a:hover, .tags-filter a.active { background-color: #3498db; color: white; border-color: #3498db; }
.article-tags { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.article-tags .tag { background-color: #eee; color: #555; padding: 0.25rem 0.75rem; border-radius: 20px; text-decoration: none; font-size: 0.8em; }
.article-tags .tag:hover { background-color: #ddd; }

/* --- 6. DOWNLOAD-BEREICH --- */
.download-list { list-style: none; padding: 0; margin-top: 2rem; }
.download-item { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border: 1px solid #eee; border-radius: 5px; margin-bottom: 1rem; }
.download-title { font-weight: bold; display: block; }
.download-meta { font-size: 0.9em; color: #777; }
.download-description { font-size: 0.9em; margin: 0.5rem 0 0 0; }
.site-button { background-color: #2c3e50; color: white; padding: 0.5rem 1rem; border-radius: 5px; text-decoration: none; font-weight: bold; white-space: nowrap; }
.site-button:hover { background-color: #34495e; }

/* --- 7. KONTAKTSEITE & KARTE --- */
.contact-info h2 { margin-top: 0; font-size: 1.2rem; border-bottom: 2px solid #eef2f7; padding-bottom: 0.5rem; }
.contact-info ul { list-style: none; padding: 0; margin: 0; }
.contact-info li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }
.contact-info li i { font-size: 1.5rem; color: #0054a6; line-height: 1; }
#map { height: 400px; width: 100%; border-radius: 8px; z-index: 0; }

/* --- 8. WETTER-STYLING --- */
.weather-forecast-owm,
.hourly-forecast-owm {
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    background-color: white;
}
.weather-forecast-owm h4,
.hourly-forecast-owm h4 {
    margin-top: 0;
    text-align: center;
    margin-bottom: 1.5rem;
}
.weather-days-container,
.hourly-scroll-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap; /* Bricht um, wenn der Platz nicht reicht */
    justify-content: space-between;
}
.hourly-scroll-container {
    overflow-x: auto; /* Erlaubt horizontales Scrollen, falls es doch zu eng wird */
    padding-bottom: 1rem;
}
.weather-day-owm,
.hour-item {
    flex: 1;
    min-width: 110px; /* Mindestbreite für Tages- und Stundenkärtchen */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
}
.weather-date,
.hour-item .hour-time {
    font-weight: bold;
    font-size: 1rem;
}
.weather-day-owm .weather-google-icon {
    font-size: 40px;
    width: 50px;
    height: 50px;
    line-height: 50px;
}
.weather-temp,
.hour-item .hour-temp {
    font-weight: bold;
    font-size: 1.5rem;
}
.weather-desc,
.hour-item .hour-desc {
    color: #555;
    font-size: 0.9em;
}

/* --- 9. SUCHE --- */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.search-form input { flex-grow: 1; padding: 0.75rem; font-size: 1rem; }
/*.search-form button { background-color: #2c3e50; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 5px; font-weight: bold; cursor: pointer; }*/
.results-headline { margin-top: 3rem; border-bottom: 1px solid #eee; padding-bottom: 1rem; }
.search-results { list-style: none; padding: 0; margin-top: 1rem; }
.search-results li { border-bottom: 1px solid #eee; }
.search-results li a { display: block; padding: 1rem 0.5rem; text-decoration: none; color: #333; transition: background-color 0.2s ease; }
.search-results li a:hover { background-color: #f4f7f9; }
.search-results li a strong { font-size: 1.1em; display: block; color: #0054a6; margin-bottom: 0.25rem; }
.search-results li a:hover strong { text-decoration: underline; }
.search-results li a small { display: block; color: #777; font-size: 0.9em; }

/* --- 10. RESPONSIVE ANPASSUNGEN (Zusammengefasst) --- */
@media (max-width: 768px) {
  .two-column-layout { grid-template-columns: 1fr; }
}
@media (min-width: 600px) {
  .footer-content { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .footer-content { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr 2fr; }
}

/* --- STYLING FÜR ZWEISPALTIGES LAYOUT --- */

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Zwei Spalten mit gleicher Breite */
  gap: 2rem; /* Abstand zwischen den Spalten */
  margin-top: 2rem;
}

/* Auf schmalen Bildschirmen (unter 768px) */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr; /* Nur noch eine Spalte */
  }
}

/* --- STYLING FÜR BILDERGALERIE --- */

.gallery-grid {
  display: grid;
  /* Passt die Spaltenbreite an, um Platz für Text zu schaffen */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem; /* Etwas mehr Abstand */
  margin-top: 2rem;
}

/* Der neue Container für jedes Bild mit Text */
.gallery-item {
  background-color: white; /* Weißer Hintergrund für die "Karte" */
  border-radius: 8px;
  overflow: hidden; /* Stellt sicher, dass die Ecken des Bildes rund sind */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column; /* Ordnet Bild und Text untereinander an */
}

.gallery-item a {
  display: block;
  aspect-ratio: 16 / 10; /* Ändert das Seitenverhältnis auf ein Rechteck */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.gallery-item a:hover img {
  transform: scale(1.05); /* Leichter Zoom-Effekt beim Hovern */
}

.gallery-item-description {
  padding: 1rem 1rem 0.5rem 1rem; /* Innenabstand für den Text */
  font-size: 0.9em;
  color: #333;
}

.gallery-item-tags {
  padding: 0 1rem 1rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto; /* Schiebt die Tags an den unteren Rand der Karte */
}

/* Wir können die bestehende .tag-Klasse vom Blog wiederverwenden */
.gallery-item-tags .tag {
  background-color: #eee;
  color: #555;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8em;
}

/* ========== Burger-Menü ========== */
.burger-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  position: relative;
  margin-left: auto;
}

.burger-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

body.menu-open .burger-menu-toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open .burger-menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger-menu-toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Navigation Styles ========== */
.main-nav ul {
  list-style: none;
}

.main-nav a {
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
}

.main-nav a:hover {
  text-decoration: underline;
}

/* ========== Mobile Navigation ========== */
@media (max-width: 992px) {
  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 4rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease;
    display: flex;
    z-index: 1000;
  }
  .main-nav a {
    font-size: 1.5rem;
  }

  body.menu-open .main-nav ul {
    right: 0 !important;
  }

  .burger-menu-toggle {
    display: flex;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }
}

/* ========== Desktop Navigation ========== */
@media (min-width: 993px) {
  .main-nav a {
    font-size: 0.95rem;
  }

  .burger-menu-toggle {
    display: none;
  }
}

/* ========== Overlay ========== */
.menu-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: all;
}
/* Anpassungen für Tablets und Handys (unter 992px) */
@media (max-width: 992px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  nav ul {
    flex-direction: column;
    align-items: flex-start;
  }
}

.personnel-traffic-light {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: sans-serif;
}
 
.personnel-traffic-light .light {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: grey;
  border: 2px solid #333;
  display: inline-block
}

/* === Vertikales Artikel-Layout für Startseite und Aktuelles === */





@media (max-width: 767px) {
  .article-list .article-item {
    display: flex;
    flex-direction: column;
  }

  .article-image {
    float: none !important;
    margin: 0 0 1rem 0;
    max-width: 100%;
  }
}

/* Zentrale Layout-Container-Klasse */
.container {
  max-width:850px; /* oder z. B. 800px */
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
/* Float-Bild neben Text nur auf Desktop */
@media (min-width: 1024px) {
  .article-image-left {
    float: left;
    max-width: 40%;
    margin: 0 1.5rem 1rem 0;
    border-radius: 0.5rem;
  }
  .article-text {
    overflow: hidden;
  }
  .all-articles-link {
    display: inline-block;
    clear: both;
    margin-top: 1.5rem;
  }
}
/* Galerie-Bilder innerhalb der Article-Card */
.article-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.article-gallery-item {
  flex: 1 1 45%;       /* Zwei nebeneinander auf Desktop */
  max-width: 45%;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f9f9f9;
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* Mobil-Ansicht: volle Breite */
@media (max-width: 768px) {
  .article-gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* Galerie-Container für weitere Bilder */
.article-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  clear: both; /* startet unterhalb des gefloateten Bildes */
  margin-top: 2rem;
}

  margin-top: 2rem;
}

/* einzelne Bilder in der Galerie */
.article-gallery-item {
  flex: 1 1 calc(33.333% - 1rem); /* drei Spalten auf Desktop */
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* für Tablets: zwei Spalten */
@media (max-width: 1024px) {
  .article-gallery-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

/* für Smartphones: eine Spalte */
@media (max-width: 600px) {
  .article-gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* Standard: auf mobilen Geräten ganz normal blockweise */
.article-image-left {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

/* Ab Desktop: Bild links floaten und Text daneben fließen lassen */
@media (min-width: 1024px) {
  .article-image-left {
    float: left;
    max-width: 40%;       /* Größe anpassen */
    margin: 0 1.5rem 1rem 0; /* rechts Abstand, unten Abstand */
  }
}



/* ===================== */
/* Anpassung für Textumfluss beim Artikel-Cover-Bild */
@media (min-width: 1024px) {
  .article-image-left {
    float: left;
    max-width: 40%;
    margin: 0 1.5rem 1rem 0;
    border-radius: 0.5rem;
  }
  .article-text {
    overflow: visible;
    display: block;
  }
}

/* ===================== */
/* Galerie unterhalb des Cover-Bildes in Spalten */
.article-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  clear: both;
}

.article-gallery-item {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

@media (max-width: 1024px) {
  .article-gallery-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .article-gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
.article-image-left {
  float: left;
  max-width: 40%;
  margin: 0 1.5rem 1rem 0;
  border-radius: 0.5rem;
}

/* Galerie nach dem Bild wieder umbrechen */
.article-gallery {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.article-gallery-item {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  box-sizing: border-box;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.5rem;
}

@media (max-width: 1024px) {
  .article-image-left {
    float: none;
    max-width: 100%;
    margin: 0 0 1rem 0;
  }
  .article-gallery-item {
    flex: 1 1 calc(50% - 1rem);
    max-width: calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .article-gallery-item {
    flex: 1 1 100%;
    max-width: 100%;
  }
}
/* ==== Bilder mit Textumfluss ==== */

/* Standard: auf mobilen Geräten einfach normal blockweise */
.article-image-left,
.article-image-right {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1rem 0;
  border-radius: 0.5rem;
}

/* Desktop: links oder rechts floaten */
@media (min-width: 1024px) {
  .article-image-left {
    float: left;
    max-width: 33%;
    margin: 1rem 2rem 1rem 0; /* oben 1rem, rechts 2rem, unten 1rem, links 0 */
  }
  .article-image-right {
    float: right;
    max-width: 33%;
    margin: 1rem 0 1rem 2rem; /* oben 1rem, rechts 0, unten 1rem, links 2rem */
  }
}

  /* Container nach floats aufräumen */
  .article-text::after {
    content: "";
    display: table;
    clear: both;
  }

/* Bild links floaten, Text fließt daneben */
.article-list .article-item {
  overflow: hidden;         /* verhindert, dass der Container kollabiert */
}

.article-list .article-item img {
  float: left;              /* Bild nach links floaten */
  max-width: 250px;         /* hier die gewünschte Bildbreite einstellen */
  margin: 0 1.5rem 1rem 0;  /* Abstand rechts/unten */
  border-radius: 8px;       /* Ecken abrunden */
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .article-list .article-item img {
    float: none;
    display: block;
    margin: 0 0 1rem 0; /* Abstand unten */
    max-width: 100%;    /* volle Breite */
  }
}

/* ========== Desktop-Burger-Menü modernisiert ========== */
@media (min-width: 993px) {
  .header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-left: auto;
  }

  .header-search {
    order: 1;
    margin-right: 0.75rem;
  }

  .burger-menu-toggle {
    order: 2;
    display: flex;
    position: static;
    margin-left: 0;
  }

  .main-nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 4rem 1.5rem;
    flex-direction: column;
    gap: 1.5rem;
    transition: right 0.3s ease;
    display: flex;
    z-index: 1000;
  }

  body.menu-open .main-nav ul {
    right: 0 !important;
  }

  .main-nav a {
    font-size: 1.4rem;
  }

  .menu-overlay {
    display: block;
  }
}



@media (min-width: 993px) {
  .header-search input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-width: 220px;
  }

  .header-search button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}
.opening-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.opening-hours-entry {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 16px;
  border-bottom: 1px solid #eee;
}

.opening-hours-entry .day {
  flex: 1;
  font-weight: 500;
}

.opening-hours-entry .time {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.blogcount-block {
  background: #f0f0f0;
  padding: 1rem;
  margin: 1.5rem 0;
  border-left: 4px solid #999;
}
/* Menü & Buttons = ebenfalls Oswald */
nav a,
.button,
button,
.header-search button,
.site-button,
.all-articles-link {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase; /* optional für modernes Feeling */
}
/* Site-Titel / Logo = Oswald */
header .logo {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase; /* optional für mehr Präsenz */
}
search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.search-form input[type="search"] {
  flex: 1 1 250px;
  min-width: 0;
}

.search-form button {
  flex-shrink: 0;
}


/* Container platzieren – nach Wunsch anpassen */
.darkmode-toggle {
  margin-right: 1rem;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #666;
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* Textlink-Normalizer – wirkt nur im Fließtext, nicht auf Tags/Filter/Galerien/Buttons/Bild-Links */
.page-wrapper p a:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.page-wrapper li a:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.text-content a:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.article-text a:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox) {
  text-decoration: none;
  color: inherit;
  font-weight: 500;           /* statt knallfett */
  background: transparent;
  padding: 0.15rem 0.3rem;
  border-radius: 3px;
}

/* dezenter Hover nur für diese Textlinks */
.page-wrapper p a:hover:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.page-wrapper li a:hover:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.text-content a:hover:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox),
.article-text a:hover:not(.button):not(.all-articles-link):not(.site-button):not(.glightbox) {
  color: #3498db;
  background-color: #eef2f7;
}
/* Blog: Überschrift-Links wieder wie Überschrift (nicht lila/unterstrichen) */
/* Blog & Aktuelles: Überschrift-Links wie Überschriften */
.article-content h3 a,
.article-content h3 a:link,
.article-content h3 a:visited {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  line-height: 26px;
  color: #333 !important;          /* normal dunkel */
  text-decoration: none !important; /* kein Underline */
}

/* Hover: (blau, ohne Underline) */
.article-content h3 a:hover,
.article-content h3 a:focus-visible {
  color: #53A7DF !important;        /* exakter Blauton */
  text-decoration: none !important; /* kein Underline beim Hover */
}
/* Mobile: Absatz-Text in Karten (Blog + Aktuelles) angleichen */
@media (max-width: 768px) {
  .article-list .article-item .article-content > p:not(.article-date),
  .article-list .article-item .article-content p:not(.article-date) {
    font-size: 18px !important;   /* = 1.125rem */
    line-height: 1.6 !important;
  }
}

html {
  -webkit-text-size-adjust: 100% !important; /* verhindert automatische Verkleinerung */
}

@media (max-width: 768px) {
  .article-list .article-item .article-excerpt {
    font-size: 18px !important; 
    line-height: 1.6 !important;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 18px; /* Standard war vermutlich 16px */
  }
}

/* --- Downloads: Liste zurücksetzen --- */
ul.download-list {
  list-style: none; /* keine Bullets */
  margin: 0;
  padding: 0;
}

ul.download-list > li.download-item {
  list-style: none;
}

/* --- Card-Layout: Desktop nebeneinander --- */
li.download-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  overflow: visible;
}

li.download-item .download-info {
  flex: 1 1 auto;
  min-width: 0;
}

li.download-item .site-button {
  position: static !important;
  margin-left: auto;
  white-space: nowrap;
  max-width: 100%;
}

/* --- Mobile: untereinander + Button 100% in der Card --- */
@media (max-width: 768px) {
  li.download-item {
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
  }

  li.download-item .site-button {
    width: 100%;
    box-sizing: border-box; /* Padding/Borders eingerechnet */
    margin: 0;              /* kein Außenabstand */
    text-align: center;
    align-self: stretch;
  }
}

@media (max-width: 768px) {
  .site-button {
    display: block;
    width: 100%;
    box-sizing: border-box; /* Padding/Borders in Breite einrechnen */
    text-align: center;
  }
}

/* Basis-Look für ALLE Site-Buttons (hell & dunkel via Variablen/Theming steuern) */
.site-button,
button.site-button,
input[type="submit"].site-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: .5rem;
  border: none;
  cursor: pointer;
  font: 600 1rem/1.2 "Oswald", sans-serif;
  letter-spacing: .4px;
  text-decoration: none;
  transition: transform .06s ease, background-color .2s ease, color .2s ease;
  /* Dark-Mode-Farben – ggf. anpassen */
  background: #2f4252;
  color: #e9f5ee;
}

.site-button:hover { transform: translateY(-1px); }
.site-button:active { transform: translateY(0); }

/* Mobile: Buttons dürfen volle Breite bekommen */
@media (max-width: 768px) {
  .site-button { width: 100%; }
}


/* Suche: Standard (Desktop) – bereits vorhanden, hier zur Vollständigkeit */
.search-form {
  display: flex;
  gap: .5rem;
  margin-bottom: 2rem;
}
.search-form input[type="search"] {
  flex: 1 1 250px;
  min-width: 0;
}

/* Suche: Mobile – Button unter dem Feld, volle Breite */
@media (max-width: 768px) {
  .search-form { flex-direction: column; }
  .search-form .site-button { width: 100%; }
}

.search-form { display: flex; gap: .5rem; margin-bottom: 2rem; }
.search-form input[type="search"] { flex: 1 1 auto; padding: .75rem 1rem; font-size: 1rem; }
.search-form .site-button { padding: .75rem 1.5rem; } /* nur Abstand/Größe */

/* Footer links: no underline, subtle hover */
footer .footer-bottom a {
  text-decoration: none !important;
}

footer .footer-bottom a:hover {
  text-decoration: none !important;
  opacity: .85;                /* subtle highlight on hover */
}

/* (optional) keep the pill look without underlines */
footer .footer-bottom a.powered-by-link {
  text-decoration: none !important;
}

/* Basiszustand */
footer .footer-bottom a.powered-by-link {
  background-color: rgba(129, 199, 132, 0.15); /* dein aktuelles Grün mit Transparenz */
  text-decoration: none;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #3498db;
  transition: background-color 0.2s ease;
}

/* Hoverzustand: Box wird heller */
footer .footer-bottom a.powered-by-link:hover {
  background-color: rgba(129, 199, 132, 0.35);
}






.download-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.download-card {
  background: #f9f9f9;
  border: 1px solid #eef2f7;
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card-content {
  flex: 1;
}

.download-title {
  margin: 0 0 .35rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.download-title a {
  text-decoration: none;
  color: inherit;
}

.download-title a:hover {
  text-decoration: none;
  color: #53A7DF;
}


.download-meta {
  font-size: .9rem;
  color: #777;
  margin-bottom: .5rem;
}

.download-card-footer {
  margin-top: 1rem;
}






.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background: var(--card-bg, #f9f9f9);
  border: 1px solid var(--card-border, #eef2f7);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content {
  flex: 1;
}

.card-title {
  margin: 0 0 .35rem;
  font-weight: 600;
  font-size: 1.25rem;
}

.card-title a {
  text-decoration: none;
  color: inherit;
}

.card-title a:hover {
 color: #53A7DF; /*blau wie bei blog */
}

.card-meta {
  font-size: .9rem;
  color: #777;
  margin-bottom: .5rem;
}

.card-footer {
  margin-top: 1rem;
}

/* Tabs im Seitenstil */
.sp-tabs { display:flex; gap:.5rem; margin-bottom:.75rem; flex-wrap:wrap; }
.sp-tab{
  border:none; border-radius:.5rem; padding:.45rem .8rem; cursor:pointer;
  font:600 .95rem/1.2 "Oswald",sans-serif; letter-spacing:.3px;
  background:#2f4252; color:#e9f5ee; transition:transform .06s ease, filter .2s ease;
}
.sp-tab:hover{ transform: translateY(-1px); }
.sp-tab.is-active{ filter: brightness(1.05); }

.sp-pane{ display:none; }
.sp-pane.is-active{ display:block; }

/* DESKTOP: Tabelle */
.sp-table--desktop { display:block; }
.stundenplan-table { width:100%; border-collapse: collapse; }
.stundenplan-table th, .stundenplan-table td{
  padding:.8rem .7rem; border:1px solid rgba(0,0,0,.08); vertical-align: middle; text-align:center;
}
.stundenplan-table th.period-col, .stundenplan-table td.period-col{
  width:56px; white-space:nowrap; text-align:center;
}
/* leere Zellen behalten Höhe */
.stundenplan-table td:empty::after{ content:""; }

/* MOBIL: Karten je Stunde */
.sp-cards--mobile { display:none; }

@media (max-width: 768px){
  .sp-table--desktop { display:none; }
  .sp-cards--mobile { display:block; }

  .sp-hour-card{
    border:1px solid rgba(0,0,0,.08);
    border-radius:.5rem;
    padding:.75rem .75rem .5rem;
    margin-bottom:.75rem;
    background: inherit; /* Card-Background übernehmen */
  }
  .sp-hour-head{
    font-weight:700;
    margin-bottom:.5rem;
  }
  .sp-hour-grid{
    display:grid;
    grid-template-columns: 1fr 2fr; /* Tag | Fach */
    gap:.4rem .75rem;
  }
  .sp-hour-item{ display: contents; } /* dt/dd im Grid platzieren */
  .sp-hour-grid dt{
    font-weight:600;
    opacity:.85;
  }
  .sp-hour-grid dd{
    margin:0;
  }
}

/* Gleichmäßiges Grid für die Klassen-Tabs */
.sp-tabs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 gleich breite Spalten */
  gap: .5rem;
}

/* Optional: bei größeren Screens enger/mehr Spalten 
@media (min-width: 560px){
  .sp-tabs{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 900px){
  .sp-tabs{ grid-template-columns: repeat(8, minmax(0, 1fr)); }
} */

/* Tabs selbst vollflächig im Grid-Feld darstellen */
.sp-tab{
  display: block;          /* füllt das Grid-Feld */
  width: 100%;
  text-align: center;
  white-space: nowrap;     /* kein Umbrechen der Labels */
  padding: .55rem 0;       /* vertikal etwas Luft, horizontal aus Grid */
  border-radius: .55rem;
}

/* Inaktive Tabs */
.sp-tab {
  background: #2f4252;
  color: #e9f5ee;
}

/* Aktiver Tab */
.sp-tab.is-active {
  background: #53A7DF;   /* Grün passend zu Buttons */
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

.sp-tab { text-transform: none; }

/* ========== Mobile: Darstellung pro Tag ========== */
.sp-days--mobile { display: none; }

@media (max-width: 768px){
  /* Desktop-Tabellen ausblenden, Tag-Karten einblenden */
  .sp-table--desktop { display: none; }
  .sp-days--mobile  { display: block; }

  .sp-day-card{
    border: 1px solid rgba(0,0,0,.08);
    border-radius: .5rem;
    padding: .75rem .75rem .5rem;
    margin-bottom: .75rem;
    background: inherit; /* Card-Background übernehmen (Dark/Light) */
  }

  .sp-day-head{
    font-weight: 700;
    margin-bottom: .5rem;
  }

  .sp-day-table{
    width: 100%;
    border-collapse: collapse;
  }
  .sp-day-table th,
  .sp-day-table td{
    padding: .6rem .5rem;
    border-top: 1px solid rgba(0,0,0,.08);
    vertical-align: middle;
  }
  .sp-day-table th.period-col{
    width: 56px;
    text-align: center;
    white-space: nowrap;
  }

  /* Leere Zeilen behalten Höhe, aber wirken dezenter */
  .sp-day-table tr.is-empty td{
    opacity: .65;
  }
  .sp-day-table td:empty::after{
    content: ""; /* Höhe halten */
  }
}

/* Punkt nach Stunden-Nummer (Desktop-Tabelle) */
.stundenplan-table .period-col::after {
  content: ".";
}

/* Punkt nach Stunden-Nummer (Mobile-Tag-Tabellen) */
.sp-day-table .period-col::after {
  content: ".";
}

/* ===== Stundenplan – Mobile Polish (add-only) ===== */


/* 2) Day cards: make the day label “stick” while you scroll the periods */
@media (max-width: 768px){
  .sp-day-card{ position: relative; }
  .sp-day-head{
    position: sticky;
    top: 0;                     /* sticks to top of the card */
    z-index: 1;
    background: inherit;        /* works in light & dark */
    padding: .35rem .25rem .4rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-radius: .5rem .5rem 0 0;
  }
}

/* 3) Compact, clearer rows on mobile */
@media (max-width: 768px){
  .sp-day-table th,
  .sp-day-table td{
    padding: .5rem .55rem;
    line-height: 1.25;
    border-top-color: rgba(0,0,0,.06);
  }
  .sp-day-table th.period-col,
  .sp-day-table td.period-col{
    width: 48px;
    font-variant-numeric: tabular-nums;
  }
}

/* 4) Hide truly empty rows (progressive enhancement)
@supports selector(tr:has(td:empty)){
  @media (max-width: 768px){
    .sp-day-table tr:has(td:empty){ display: none; }
  }
}*/

/* 5) Subtle tag look for subjects (works with short labels) */
@media (max-width: 768px){
  .sp-day-table td:not(.period-col){
    border-radius: .35rem;
    background: rgba(0,0,0,.03);
  }
  body.darkmode .sp-day-table td:not(.period-col){
    background: rgba(255,255,255,.04);
  }
}






/* Zwei Spalten NUR auf kleinen Screens */
@media (max-width: 560px) {
  .sp-days {                /* Wrapper um die einzelnen Tages-Karten */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    grid-auto-flow: row dense;
  }
  .sp-day {                 /* einzelne Tages-Karte */
    padding: 10px;
  }
  .sp-day .sp-head {        /* "Mo.", "Di." usw. – optional etwas kompakter */
    font-size: 1rem;
    margin-bottom: 6px;
  }
  .sp-day .sp-row {         /* Zeilen (1., 2., 3. …) – optional schlanker */
    padding: .45rem .6rem;
  }
  /* Falls der letzte Tag alleine ist (z. B. nur Fr.), in voller Breite */
  .sp-day:last-child { grid-column: 1 / -1; }
}
