/* ============================
   TSDGS School Website
   Custom Theme by Rosi 🐝
   ============================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-dark: #1e3a5f;
  --blue-mid: #2c5f8a;
  --blue-light: #e8f0f8;
  --gold: #d4a437;
  --gold-light: #f0e6c8;
  --green: #4a8c5c;
  --green-light: #e6f2e9;
  --cream: #faf8f3;
  --white: #ffffff;
  --gray-100: #f5f4f2;
  --gray-200: #e8e6e1;
  --gray-400: #9a9790;
  --gray-600: #5c5952;
  --gray-800: #2d2a24;
  --text: #2d3436;
  --text-light: #636e72;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue-mid); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ----- Typography ----- */
h1 { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 1.5rem; }
h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
h4 { font-size: 1rem; font-weight: 700; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--blue-dark) !important;
  text-decoration: none !important;
  flex-shrink: 0;
}
.logo-badge {
  background: var(--white);
  border-radius: 8px;
  padding: 4px 8px;
  display: flex; align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.logo-img { height: 28px; width: auto; display: block; }
.logo-text strong { display: block; font-size: 1rem; line-height: 1.2; }
.logo-text .logo-fullname { display: block; font-size: 0.85rem; font-weight: 600; line-height: 1.2; }
.logo-text small { font-size: 0.6rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.05em; }
@media (max-width: 600px) {
  .logo-img { height: 22px; }
  .logo-text strong { font-size: 0.8rem; }
  .logo-text .logo-fullname { font-size: 0.65rem; }
  .logo-text small { font-size: 0.55rem; }
}

.nav-list { display: flex; list-style: none; gap: 1.5rem; }
.nav-list a {
  color: var(--gray-600); font-size: 0.9rem; font-weight: 500;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.nav-list a:hover, .nav-list a.active {
  color: var(--blue-dark);
  border-bottom-color: var(--gold);
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--blue-dark); border-radius: 2px; transition: var(--transition); }

/* ----- Auszeichnungen-Strip (Desktop Overlay links neben Hero) ----- */
.hero-wrapper {
  position: relative;
}
.auszeichnungen-strip {
  display: none;
}
@media (min-width: 1100px) {
  .auszeichnungen-strip {
    display: block;
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
    z-index: 10;
    width: 280px;
  }
  .auszeichnungen-strip-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .aus-strip-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border, #e0e4e8);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
  }
  .aus-strip-badge:hover,
  .aus-strip-badge:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    border-color: var(--gold, #c9a227);
  }
  .aus-strip-badge:focus-visible {
    outline: 2px solid var(--blue-dark, #1a3a5c);
    outline-offset: 2px;
  }
  .aus-strip-badge img {
    width: 100%;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
  }
}
@media (min-width: 1400px) {
  .auszeichnungen-strip { left: 3rem; width: 294px; }
  .aus-strip-badge img { height: 68px; }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 460px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, #2c5f8a 40%, #3a7db5 100%);
  background-size: 400% 400%;
  animation: heroGradient 15s ease infinite;
  overflow: hidden;
}
@keyframes heroGradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ----- Hero Slideshow (Startseite) ----- */
.hero-slideshow {
  background: none !important;
  animation: none !important;
}
.hero-slideshow::before {
  z-index: 1;
}
.hero-slideshow::after {
  z-index: 1;
}
.hero-slideshow .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 40%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slideshow .slide.aktiv {
  opacity: 1;
}
/* Lesbarkeit des Titels: Abdunklung hinter dem Text, Foto bleibt sichtbar */
.hero-slideshow .hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(18,16,14,.45) 0%, rgba(18,16,14,.12) 40%,
    rgba(18,16,14,.15) 70%, rgba(18,16,14,.50) 100%);
}
@media (min-width: 1100px) {
  .hero-slideshow .hero-overlay {
    background:
      linear-gradient(90deg,
        rgba(18,16,14,.78) 0%, rgba(18,16,14,.58) 32%,
        rgba(18,16,14,.18) 58%, rgba(18,16,14,0) 82%),
      linear-gradient(180deg,
        rgba(18,16,14,.28) 0%, rgba(18,16,14,0) 32%,
        rgba(18,16,14,0) 68%, rgba(18,16,14,.42) 100%);
  }
}

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(212,164,55,0.12) 0%, transparent 40%);
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60px;
  background: linear-gradient(to top, var(--cream), transparent);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  padding: 2rem;
  animation: fadeInUp 0.8s ease;
  padding-left: 2rem;
}
@media (min-width: 1100px) {
  .hero-content { padding-left: 308px; text-align: left; }
}
@media (min-width: 1400px) {
  .hero-content { padding-left: 336px; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.5rem;
}

/* Hero Titel (Startseite) */
.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
  margin-bottom: 0.3rem;
  color: #fff;
}
.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 400; opacity: 0.95;
  margin-bottom: 0.3rem;
}
.hero-org {
  font-size: 1rem; opacity: 0.75; font-style: italic;
  margin-bottom: 1.2rem;
}
/* ----- Schulform-Kästchen unter Hero ----- */
.intro-features-section {
  padding: 3rem 0 5rem;
}
.intro-features-section .intro-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; max-width: 900px; margin: 0 auto;
}

/* ----- Intro ----- */
.intro {
  padding: 5rem 0;
  text-align: center;
}
.intro h2 { color: var(--blue-dark); position: relative; display: inline-block; }
.intro h2::after {
  content: '';
  display: block; width: 60px; height: 3px;
  background: var(--gold); margin: 0.8rem auto 0;
  border-radius: 2px;
}
.intro-text {
  max-width: 700px; margin: 0 auto 3rem;
  font-size: 1.1rem; color: var(--text-light); line-height: 1.8;
}

.intro-features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem; max-width: 900px; margin: 0 auto;
}
.feature {
  background: var(--white); padding: 2rem 1.5rem; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { font-size: 2.5rem; margin-bottom: 0.8rem; }
.feature h3 { color: var(--blue-dark); font-size: 1.15rem; }
.feature p { color: var(--text-light); font-size: 0.95rem; }

/* ----- Logo Card (Partner / Siegel) ----- */
.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 1.5rem auto 2.5rem;
  padding: 1.5rem 2rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}
.logo-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 380px;
}
.logo-card figcaption {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* ----- Figure / Figcaption Layout (Tansania etc.) -----
   Trennt Bild+Unterschrift sauber vom nachfolgenden Fließtext. */
main figure {
  margin: 0 0 2.2rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid rgba(99, 110, 114, 0.18);
}
main figure:last-child {
  margin-bottom: 1.5rem;
}
main figcaption {
  display: block;
  margin-top: 0.7rem;
  padding-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ----- Footer Badge (Logo verlinkt) ----- */
.footer-badge-link {
  display: inline-block;
  margin-top: 1.25rem;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border, #e0e4e8);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-badge-link:hover,
.footer-badge-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.footer-badge-link:focus-visible {
  outline: 2px solid var(--blue-dark, #1a3a5c);
  outline-offset: 2px;
}
.footer-badge {
  display: block;
  width: 215px;
  height: auto;
  max-width: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .footer-badge-link { transition: none; }
  .footer-badge-link:hover { transform: none; }
}

/* ----- News ----- */
.news-section {
  padding: 4rem 0;
  background: var(--gray-100);
}
.news-section h2 { text-align: center; color: var(--blue-dark); }

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.news-card-image {
  height: 180px; background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  background-size: cover; background-position: center;
  position: relative;
}

.news-card-body { padding: 1.3rem; }
.news-card-body time {
  display: block; font-size: 0.8rem; color: var(--text-light);
  margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.news-card-body h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.news-card-body h3 a { color: var(--text); }
.news-card-body h3 a:hover { color: var(--blue-dark); }
.news-card-body p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }

.news-more-wrap { text-align: center; margin-top: 2rem; }
.news-more-link {
  display: inline-block;
  padding: 0.7rem 2rem;
  background: var(--blue-dark);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.news-more-link:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
}

/* ----- Quicklinks ----- */
.quicklinks { padding: 4rem 0; }

.quicklink-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.quicklink-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2rem 1.5rem; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-decoration: none !important;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.quicklink-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: var(--gold-light); background: var(--cream);
}
.ql-icon { font-size: 2.2rem; margin-bottom: 0.8rem; }
.ql-title { font-weight: 700; color: var(--blue-dark); font-size: 1rem; margin-bottom: 0.3rem; }
.ql-desc { color: var(--text-light); font-size: 0.85rem; }

/* ----- Page Header & Content ----- */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white; padding: 4rem 0; text-align: center;
}
.page-header h1 { margin-bottom: 0; }

/* ----- Hero Image Banner (full-bleed) ----- */
.hero-image-banner {
  position: relative;
  width: 100%;
  min-height: 75vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-image-banner .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.hero-image-banner .hero-bg img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 30%;
}
.hero-image-banner .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.25) 40%,
    rgba(0,0,0,0.05) 70%,
    transparent 100%
  );
}
.hero-image-banner .hero-text {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 3rem 1.5rem 4rem;
  color: white;
}
.hero-image-banner .hero-text h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 800;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  margin-bottom: 0.5rem;
  animation: heroFadeUp 0.8s ease;
}
.hero-image-banner .hero-text p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  opacity: 0.92;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
  animation: heroFadeUp 0.8s ease 0.15s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Seiten mit hero-image kriegen keinen separaten page-header */
.page-hero .page-header { display: none; }

@media (max-width: 768px) {
  .hero-image-banner { min-height: 55vh; }
  .hero-image-banner .hero-text { padding: 2rem 1.2rem 3rem; }
}

.page-content { padding: 3rem 0; }

.content-body {
  max-width: 750px; margin: 0 auto;
  font-size: 1.05rem; line-height: 1.8;
}
/* Organigramm soll volle Breite haben */
.content-body:has(.org-page) {
  max-width: 100%;
}
.content-body h2 { color: var(--blue-dark); margin-top: 2.5rem; }
.content-body h3 { color: var(--blue-dark); margin-top: 1.5rem; }
.content-body p { margin-bottom: 1.2rem; color: var(--text-light); }
.content-body ul, .content-body ol { margin: 0 0 1.5rem 1.5rem; color: var(--text-light); }
.content-body li { margin-bottom: 0.4rem; }
.content-body blockquote {
  border-left: 4px solid var(--gold); padding: 1rem 1.5rem;
  margin: 1.5rem 0; background: var(--gold-light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--gray-800);
}

.news-meta { text-align: center; margin-bottom: 2rem; }
.news-meta time { color: var(--text-light); font-size: 0.9rem; }

/* ----- Gallery ----- */
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem; margin-top: 2rem;
}
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ----- Team Grid (for team page) ----- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 2rem; margin-top: 2rem;
}
.team-card {
  text-align: center; padding: 2rem 1rem;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark));
  margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: white;
}
.team-name { font-weight: 700; color: var(--blue-dark); }
.team-role { font-size: 0.85rem; color: var(--text-light); margin-top: 0.2rem; }

/* ----- Partner-Laufband ----- */
.partner-section {
  background: var(--white);
  padding: 2.5rem 0;
  margin-bottom: 15px;
  overflow: hidden;
}
.partner-inner {
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.partner-heading {
  text-align: center;
  color: var(--blue-dark);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.partner-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: var(--gold, #d4a437);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.partner-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}
.partner-track {
  display: flex;
  gap: 3rem;
  align-items: center;
  width: max-content;
  animation: partnerScroll 40s linear infinite;
}
.partner-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.2s;
}
.partner-logo:hover {
  opacity: 1;
}
/* Fotografen-Nachweis im Laufband */
.partner-credit {
  flex-shrink: 0;
  display: inline-flex; flex-direction: column; justify-content: center;
  height: 50px; padding: .3rem .95rem;
  border: 1px solid var(--gray-200); border-radius: 999px;
  text-decoration: none; color: var(--blue-dark);
  line-height: 1.2; white-space: nowrap; opacity: .9;
  transition: opacity .2s, border-color .2s;
}
.partner-credit:hover { opacity: 1; border-color: var(--gold); }
.partner-credit-klein {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gray-500, #6d6a64);
}
.partner-credit-name { font-size: .82rem; font-weight: 600; }
@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .partner-section { padding: 1.5rem 0; }
  .partner-logo { height: 36px; }
  .partner-credit { height: 36px; padding: .15rem .7rem; }
  .partner-credit-name { font-size: .72rem; }
  .partner-credit-klein { font-size: .52rem; }
  .partner-track { gap: 2rem; animation-duration: 30s; }
}

/* ----- Footer ----- */
.site-footer {
  background: var(--blue-dark); color: rgba(255,255,255,0.85);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}
.footer-col h3 { color: white; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 0.3rem; }

.footer-locations { margin: 0; padding: 0; }
.footer-location {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name  phone"
    "addr  addr";
  column-gap: 0.6rem;
  row-gap: 0.15rem;
  align-items: baseline;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-location:last-child { margin-bottom: 0; }
.footer-loc-name {
  grid-area: name;
  color: white; font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.footer-loc-name:hover { color: var(--gold); }
.footer-phone {
  grid-area: phone;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.footer-phone:hover { color: var(--gold); }
.footer-loc-addr {
  grid-area: addr;
  color: rgba(255,255,255,0.7);
  font-size: 0.85rem;
  text-decoration: none;
}
.footer-loc-addr:hover { color: var(--gold); }
.footer-location-mail .footer-mail-link {
  grid-area: addr;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  text-decoration: underline;
  word-break: break-all;
}
.footer-location-mail .footer-mail-link:hover { color: var(--gold); }

@media (max-width: 480px) {
  .footer-location {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "phone"
      "addr";
  }
  .footer-phone { padding-left: 0; }
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  margin-top: 3rem; padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center; font-size: 0.85rem; opacity: 0.7;
}

/* ----- Map Lightbox ----- */
.map-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.map-lightbox.open {
  display: flex;
}
.map-lightbox-content {
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  width: 90%;
  max-width: 680px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  position: relative;
  animation: mapFadeIn 0.25s ease;
}
@keyframes mapFadeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.map-lightbox-close {
  position: absolute;
  top: 8px;
  right: 14px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
  line-height: 1;
  z-index: 10;
}
.map-lightbox-close:hover {
  color: #333;
}
.map-lightbox-labels {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #555;
  flex-wrap: wrap;
}
#mapContainer {
  width: 100%;
  height: 380px;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .map-lightbox-content {
    width: 95%;
    padding: 1rem;
  }
  #mapContainer {
    height: 280px;
  }
  .map-lightbox-labels {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
}

/* ----- Mobile ----- */
@media (max-width: 768px) {
  .header-inner { height: auto; padding: 0.5rem 0.8rem; flex-wrap: wrap; min-height: 56px; gap: 0.4rem; }
  .logo-img { height: 22px; }
  .logo-badge { display: none; }
  .logo { flex: 1; min-width: 0; }
  .logo-text .logo-fullname { font-size: 0.85rem; line-height: 1.3; }
  .logo-text small { font-size: 0.55rem; line-height: 1.3; white-space: normal; }
  .radial-trigger { width: 36px; height: 36px; }
  .radial-trigger svg { width: 20px; height: 20px; }

  .nav-toggle { display: flex; }
  .nav-list {
    display: none; flex-direction: column;
    width: 100%; padding: 0.5rem 0 1rem;
    gap: 0;
  }
  .nav-list.open { display: flex; }
  .nav-list a {
    display: block; padding: 0.6rem 0;
    border-bottom: 1px solid var(--gray-200);
    font-size: 1rem;
  }

  .hero { min-height: 350px; }
  .hero-content { padding: 1.5rem; }
  .hero-content h1 { font-size: 1.6rem; }

  .intro { padding: 3rem 0; }
  .intro-features { grid-template-columns: 1fr; gap: 1rem; }

  .news-grid { grid-template-columns: 1fr; }
  .quicklink-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { gap: 1.5rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .quicklink-grid { grid-template-columns: 1fr; }
}

/* ----- Animations for cards on scroll ----- */
.fade-in {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ----- Service page: table styles ----- */
.service-table {
  width: 100%; border-collapse: collapse; margin: 1.5rem 0;
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-table th, .service-table td {
  padding: 0.8rem 1rem; text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.service-table th { background: var(--blue-dark); color: white; font-weight: 600; }
.service-table tr:last-child td { border-bottom: none; }
.service-table tr:hover td { background: var(--blue-light); }

/* ----- Call-to-action buttons ----- */
.btn {
  display: inline-block; padding: 0.75rem 1.8rem;
  border-radius: 50px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--blue-dark); color: white !important;
  box-shadow: 0 4px 14px rgba(30,58,95,0.3);
}
.btn-primary:hover { background: var(--blue-mid); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(30,58,95,0.4); }
.btn-gold {
  background: var(--gold); color: var(--blue-dark) !important;
  box-shadow: 0 4px 14px rgba(212,164,55,0.3);
}
.btn-gold:hover { background: #c0912f; transform: translateY(-2px); }

/* ----- Service Info Box ----- */
.info-box {
  background: var(--blue-light); border-left: 4px solid var(--blue-mid);
  padding: 1.5rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box.warning {
  background: #fff3cd; border-color: var(--gold);
}/* ----- Kontaktseite: Standort-Karten ----- */
.kontakt-intro {
  text-align: center;
  margin: 0 0 2rem;
  font-size: 1.1rem;
  color: var(--gray-600);
}

.standort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ----- Termine-Seite: 2-Spalten-Layout (HH + TB) ----- */
.termine-grid {
  display: grid;
  /* Fix 2 Spalten, mobile bricht auf 1 (siehe media query unten) */
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0 3rem;
  /* Break-Out: wächst aus dem normalen Container heraus */
  width: min(1500px, 95vw);
  max-width: min(1500px, 95vw);
  margin-left: calc(50% - min(1500px, 95vw) / 2);
}
@media (max-width: 768px) {
  .termine-grid {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
}
.termine-col {
  background: var(--white, #fff);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  padding: 1.5rem 1.75rem 2rem;
  border-top: 4px solid var(--blue-dark, #1e3a5f);
}
.termine-col h3 {
  margin: 0 0 1rem;
  color: var(--blue-dark, #1e3a5f);
  font-size: 1.3rem;
  border-bottom: 1px solid var(--border, #e0e4e8);
  padding-bottom: 0.6rem;
}
.termine-col table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  background: var(--white, #fff);
  table-layout: fixed;  /* Spaltenbreiten strikt einhalten */
}
.termine-col th,
.termine-col td {
  padding: 0.7rem 0.9rem;
  text-align: left;
  border-bottom: 1px solid var(--border, #e0e4e8);
  word-wrap: break-word;
  overflow-wrap: anywhere; /* lange Daten brechen sauber um */
}
.termine-col th {
  background: var(--blue-dark, #1e3a5f);
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.termine-col tr:last-child td { border-bottom: none; }
.termine-col tr:hover td { background: rgba(30, 58, 95, 0.04); }
/* Datums-Spalte schmaler, Veranstaltung bekommt mehr Platz.
   Datum darf umbrechen (white-space: normal), damit lange Zeiträume
   wie "23. Dezember - 6. Januar 2027" nicht die ganze Tabelle sprengen. */
.termine-col th:first-child,
.termine-col td:first-child {
  width: 32%;
  white-space: normal;
  line-height: 1.3;
}
.termine-col th:last-child,
.termine-col td:last-child {
  width: 68%;
}

/* ================================================================ */
/* Mobile (<= 768px): Tabelle wird zur Card-Liste                   */
/* ================================================================ */
@media (max-width: 768px) {
  .termine-col table,
  .termine-col thead,
  .termine-col tbody,
  .termine-col tr,
  .termine-col th,
  .termine-col td {
    display: block;
    width: 100% !important;
  }
  .termine-col thead { display: none; } /* Spalten-Header ausblenden */
  .termine-col tr {
    background: var(--white, #fff);
    border: 1px solid var(--border, #e0e4e8);
    border-left: 3px solid var(--blue-dark, #1e3a5f);
    border-radius: 6px;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
  .termine-col td {
    border: none;
    padding: 0.25rem 0;
  }
  .termine-col td:first-child {
    /* Datum prominent oben, mit kleinem Label */
    color: var(--blue-dark, #1e3a5f);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    white-space: normal; /* darf umbrechen wenn noetig */
  }
  .termine-col td:last-child {
    color: var(--text, #333);
    font-size: 0.95rem;
  }
}

/* Download-Box (für PDFs etc. im Fließtext) */
.download-box {
  margin: 1.5rem 0 2rem;
}
.download-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #fff8e7 0%, #fce8c8 100%);
  border: 1px solid var(--gold, #d4af37);
  border-left: 4px solid var(--gold, #d4af37);
  border-radius: 8px;
  text-decoration: none !important;
  color: var(--blue-dark, #1e3a5f) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.download-button:hover,
.download-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
  background: linear-gradient(135deg, #fce8c8 0%, #f7d99b 100%);
  outline: none;
}
.download-button span[aria-hidden] {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
}
.download-button strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
  color: var(--blue-dark, #1e3a5f);
}
.download-button small {
  display: block;
  font-size: 0.85rem;
  color: var(--text-light, #555);
  font-weight: 400;
  line-height: 1.4;
}

.standort-card {
  display: flex;
  background: var(--white, #fff);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  transition: box-shadow 0.25s ease, transform 0.2s ease;
}
.standort-card:hover {
  box-shadow: 0 10px 32px rgba(30,58,95,0.14);
  transform: translateY(-3px);
}

.standort-bar {
  width: 6px;
  flex-shrink: 0;
}
.standort-hh .standort-bar { background: var(--gold, #d4a437); }
.standort-tb .standort-bar { background: var(--blue-mid, #2a5080); }

.standort-body {
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  flex: 1;
}

.standort-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--blue-dark, #1e3a5f);
  font-weight: 700;
}

.standort-adresse {
  margin: 0 0 1rem;
  color: var(--gray-600, #666);
  font-size: 0.9rem;
  line-height: 1.5;
}

.standort-daten {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
}
.standort-daten-row {
  display: flex;
  align-items: flex-start;
  padding: 0.2rem 0;
}
.standort-daten-row dt {
  flex: 0 0 1.8rem;
  text-align: left;
  font-size: 1rem;
  margin: 0;
}
.standort-daten-row dd {
  flex: 1;
  margin: 0;
  min-width: 0;
  word-break: break-word;
}
.standort-daten a {
  color: var(--blue-dark, #1e3a5f);
  text-decoration: none;
  border-bottom: 1px dotted var(--blue-mid, #2a5080);
}
.standort-daten a:hover {
  color: var(--gold, #d4a437);
  border-bottom-color: var(--gold, #d4a437);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  background: var(--blue-light, #eef3f9);
  color: var(--blue-dark, #1e3a5f) !important;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover {
  background: var(--blue-mid, #2a5080);
  color: white !important;
  transform: translateY(-1px);
}

/* ----- Öffnungszeiten ----- */
.oeffnungszeiten-card {
  background: var(--white, #fff);
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  margin: 1.5rem 0;
  max-width: 500px;
}
.oeffnungszeiten-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-200, #eee);
}
.oeffnungszeiten-row:last-of-type { border-bottom: none; }
.oe-label { font-weight: 600; color: var(--blue-dark, #1e3a5f); }
.oe-value { font-weight: 500; color: var(--gray-700, #444); }
.oe-hinweis {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--gray-500, #888);
  font-style: italic;
}

/* ----- Kontaktformular ----- */
.kontakt-form {
  background: var(--white, #fff);
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  margin: 1.5rem 0;
  border: 1px solid var(--gray-200, #ececec);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-full {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-dark, #1e3a5f);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group textarea {
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200, #e0e0e0);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--gray-100, #f8f8f8);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold, #d4a437);
  box-shadow: 0 0 0 3px rgba(212,164,55,0.15);
  background: var(--white, #fff);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400, #aaa);
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}
.form-hinweis {
  font-size: 0.8rem;
  color: var(--gray-500, #888);
  margin: 0;
}

.form-fallback {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500, #888);
  margin-top: -0.5rem;
}
.form-fallback a { color: var(--blue-mid, #2a5080); }

/* ----- Postanschrift ----- */
.anschrift-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white, #fff);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  box-shadow: 0 3px 12px rgba(30,58,95,0.08);
  margin: 1.5rem 0;
}
.anschrift-item { flex: 1; }
.anschrift-item h4 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--blue-dark, #1e3a5f);
}
.anschrift-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-600, #666);
  line-height: 1.6;
}
.anschrift-divider {
  width: 1px;
  background: var(--gray-200, #e0e0e0);
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .anschrift-card { flex-direction: column; }
  .anschrift-divider { width: 100%; height: 1px; }
}

/* ===== Krankmeldung-Seite: Intro ===== */
.krankmeldung-intro {
  margin: 0 0 1.5rem;
}
.krankmeldung-intro h2 {
  color: var(--blue-dark, #1e3a5f);
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}
.krankmeldung-intro p {
  color: var(--gray-600, #666);
  font-size: 0.95rem;
}

/* ===== Krankmeldung-Karten auf Service-Übersicht ===== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
}
.card-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white, #fff);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,58,95,0.08);
  text-decoration: none;
  color: var(--blue-dark, #1e3a5f);
  transition: box-shadow 0.25s, transform 0.2s;
}
.card-link:hover {
  box-shadow: 0 6px 20px rgba(30,58,95,0.12);
  transform: translateY(-2px);
}
.card-icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
}
.card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.card-text strong {
  font-size: 1rem;
  font-weight: 700;
}
.card-text span {
  font-size: 0.8rem;
  color: var(--gray-500, #888);
}
.card-arrow {
  font-size: 1.2rem;
  color: var(--gold, #d4a437);
  transition: transform 0.2s;
}
.card-link:hover .card-arrow {
  transform: translateX(4px);
}

/* ===== Modernes Formular (Input-Wrap mit Icons, Gold-Bar, Premium-Button) ===== */
.kontakt-form {
  position: relative;
  background: var(--white, #fff);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 8px 30px rgba(30,58,95,0.07), 0 1px 4px rgba(30,58,95,0.03);
  border: 1px solid var(--gray-200, #e8e6e1);
  margin: 1.5rem 0;
  overflow: hidden;
}
.kontakt-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold, #d4a437), var(--blue-mid, #2c5f8a), var(--gold, #d4a437));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .kontakt-form { padding: 1.5rem; }
}

.form-group {
  display: flex;
  flex-direction: column;
}
.form-group-full {
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-dark, #1e3a5f);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}
.required-star {
  color: var(--gold, #d4a437);
  font-weight: 700;
}

/* Input-Icon-Wrapper */
.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  line-height: 1;
  opacity: 0.55;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.25s;
}
.input-icon-top {
  align-self: flex-start;
  top: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 3rem;
  border: 2px solid var(--gray-200, #e8e6e1);
  border-radius: 12px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text, #2d3436);
  background: var(--white, #fff);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.form-group textarea {
  padding-left: 3rem;
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--gray-400, #9a9790);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold, #d4a437);
  box-shadow: 0 0 0 4px rgba(212,164,55,0.12);
  background: var(--white, #fff);
}
.input-wrap:focus-within .input-icon {
  opacity: 0.9;
  color: var(--gold, #d4a437);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400, #9a9790);
  font-weight: 400;
  font-size: 0.9rem;
}

/* Form Footer mit Trennlinie */
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200, #e8e6e1);
}
.form-hinweis {
  font-size: 0.8rem;
  color: var(--gray-400, #9a9790);
  margin: 0;
}

/* Premium Send-Button mit Pfeil-Animation */
.btn-form-send {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.8rem 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--gold, #d4a437), #c0912f);
  color: var(--blue-dark, #1e3a5f) !important;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(212,164,55,0.35);
  transition: transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
  line-height: 1;
}
.btn-form-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,164,55,0.4);
}
.btn-form-send:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(212,164,55,0.3);
}
.btn-icon { font-size: 1.15rem; line-height: 1; }
.btn-arrow {
  font-size: 1.2rem;
  transition: transform 0.2s;
  line-height: 1;
}
.btn-form-send:hover .btn-arrow {
  transform: translateX(4px);
}

/* ===== DSGVO-Datenschutz-Checkbox ===== */
.form-privacy {
  margin: 1.25rem 0 0.5rem;
}
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gray-600, #5c5952);
  position: relative;
  padding-left: 0;
}
.privacy-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-400, #9a9790);
  border-radius: 6px;
  background: var(--white, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  margin-top: 1px;
}
.privacy-label:hover .check-box {
  border-color: var(--blue-mid, #2c5f8a);
}
.privacy-label input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid var(--gold, #d4a437);
  outline-offset: 2px;
}
.privacy-label input[type="checkbox"]:checked + .check-box {
  background: var(--blue-dark, #1e3a5f);
  border-color: var(--blue-dark, #1e3a5f);
  box-shadow: 0 2px 6px rgba(30,58,95,0.2);
}
.privacy-label input[type="checkbox"]:checked + .check-box::after {
  content: '✓';
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.check-text {
  flex: 1;
}
.check-text a {
  color: var(--blue-mid, #2c5f8a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check-text a:hover {
  color: var(--blue-dark, #1e3a5f);
}

.form-fallback {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500, #888);
  margin-top: -0.5rem;
}
.form-fallback a { color: var(--blue-mid, #2a5080); }/* ===== Archiv-Seite ===== */
.archiv-hinweis {
  background: var(--blue-light, #e8f0f7);
  border-left: 4px solid var(--gold, #d4a437);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  margin: 1.5rem 0 2.5rem;
  font-size: 0.95rem;
  color: var(--blue-dark, #1e3a5f);
  line-height: 1.5;
}
.archiv-hinweis strong { color: var(--blue-dark, #1e3a5f); }

.archiv-jahr {
  margin: 0 0 1.5rem 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(30,58,95,0.07);
  overflow: hidden;
  border: 1px solid rgba(30,58,95,0.06);
}

.archiv-jahr-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  background: linear-gradient(135deg, var(--blue-dark, #1e3a5f) 0%, var(--blue-mid, #2a5080) 100%);
  color: #fff;
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s, transform 0.15s;
  position: relative;
}
.archiv-jahr-header:hover {
  background: linear-gradient(135deg, var(--blue-mid, #2a5080) 0%, var(--blue-dark, #1e3a5f) 100%);
}
.archiv-jahr-header:focus-visible {
  outline: 3px solid var(--gold, #d4a437);
  outline-offset: -3px;
}
.archiv-jahr-titel { flex: 1; font-size: 1.15rem; }
.archiv-jahr-count {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.85;
  background: rgba(255,255,255,0.15);
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
}
.archiv-jahr-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, background 0.2s;
  flex-shrink: 0;
  position: relative;
}
.archiv-jahr-toggle::before,
.archiv-jahr-toggle::after {
  content: '';
  position: absolute;
  background: #fff;
  border-radius: 1px;
  transition: opacity 0.2s;
}
.archiv-jahr-toggle::before {
  width: 12px; height: 2px;
  /* horizontaler Strich (Plus horizontal) */
}
.archiv-jahr-toggle::after {
  width: 2px; height: 12px;
  /* vertikaler Strich (Plus vertikal) */
}
.archiv-jahr[data-open="true"] .archiv-jahr-toggle {
  background: var(--gold, #d4a437);
  transform: rotate(45deg);
}

.archiv-jahr-body {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  padding: 0 1.4rem;
  background: #fff;
}
.archiv-jahr-body > *:last-child { padding-bottom: 1.4rem; }

.archiv-gruppe {
  padding: 1.2rem 0 0.6rem 0;
  border-top: 1px solid rgba(30,58,95,0.08);
}
.archiv-gruppe:first-child { border-top: none; padding-top: 1.4rem; }

.archiv-gruppe-titel {
  margin: 0 0 0.7rem 0;
  font-size: 1rem;
  color: var(--blue-dark, #1e3a5f);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.archiv-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}
.archiv-liste li {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: background 0.15s;
  flex-wrap: wrap;
}
.archiv-liste li:hover {
  background: var(--blue-light, #e8f0f7);
}
.archiv-datum {
  font-size: 0.78rem;
  color: #777;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  flex-shrink: 0;
  font-weight: 500;
}
.archiv-liste a {
  color: var(--blue-dark, #1e3a5f);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
  min-width: 0;
}
.archiv-liste a:hover {
  color: var(--gold, #d4a437);
  text-decoration: underline;
}
.archiv-pdf-badge {
  display: inline-block;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 50px;
  margin-left: 0.4rem;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ----- Brief-Karten (Schulbriefe, kurze Übersicht) ----- */
.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0 2rem;
}
.brief-grid > .brief-card:first-child {
  grid-column: 1;
  grid-row: 1;
}
.brief-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.1rem 1.1rem;
  background: #fff;
  border: 1px solid #e0dcd0;
  border-left: 4px solid var(--blue-dark, #1e3a5f);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.brief-card:hover,
.brief-card:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  border-left-color: var(--gold, #d4a437);
}
.brief-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.brief-date {
  font-size: 0.85rem;
  color: #555;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brief-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brief-badge-hh { background: #1e3a5f; color: #fff; }
.brief-badge-tb { background: #2d6a3e; color: #fff; }
.brief-badge-all { background: #d4a437; color: #1e3a5f; }
.brief-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--blue-dark, #1e3a5f);
}
.brief-download {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
}
@media (max-width: 480px) {
  .brief-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .brief-card { padding: 0.85rem 1rem 0.95rem; }
}

@media (max-width: 600px) {
  .archiv-jahr-header {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    gap: 0.6rem;
  }
  .archiv-jahr-titel { font-size: 1rem; }
  .archiv-jahr-count { font-size: 0.72rem; padding: 0.15rem 0.5rem; }
  .archiv-jahr-body { padding: 0 1rem; }
  .archiv-datum { min-width: 70px; font-size: 0.72rem; }
  .archiv-liste a { font-size: 0.9rem; }
  .archiv-liste li { padding: 0.45rem 0.5rem; gap: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .archiv-jahr-body,
  .archiv-jahr-toggle,
  .archiv-jahr-header {
    transition: none !important;
  }
}
/* ===== Hero-Variante: klein links unten =====
   Für Hero-Bilder, die eingebauten Text enthalten — Hugo's H1+Subtitle
   sitzen klein in der Ecke, das Bild dominiert.
*/
.hero-image-banner.hero-klein-links {
  min-height: 380px;
  max-height: 460px;
}
.hero-image-banner.hero-klein-links .hero-bg img {
  object-position: center 30%;
}
.hero-image-banner.hero-klein-links .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.0) 0%,
    rgba(0,0,0,0.0) 45%,
    rgba(30,58,95,0.85) 100%
  );
}
.hero-image-banner.hero-klein-links .hero-text {
  text-align: left;
  top: auto;
  bottom: 1.5rem;
  left: 0;
  right: auto;
  transform: none;
  max-width: 560px;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 0 14px 14px 0;
  border-left: 4px solid var(--gold, #d4a437);
}
.hero-image-banner.hero-klein-links .hero-text h1 {
  font-size: 1.6rem;
  margin: 0 0 0.2rem 0;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}
.hero-image-banner.hero-klein-links .hero-text p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

@media (max-width: 600px) {
  .hero-image-banner.hero-klein-links {
    min-height: 280px;
    max-height: 360px;
  }
  .hero-image-banner.hero-klein-links .hero-text h1 {
    font-size: 1.3rem;
  }
  .hero-image-banner.hero-klein-links .hero-text p {
    font-size: 0.8rem;
  }
  .hero-image-banner.hero-klein-links .hero-text {
    bottom: 1rem;
    padding: 0.6rem 0.9rem;
  }
}
/* ===== News-Archiv-Hinweis (ältere als 12 Monate) ===== */
.news-archive-hinweis {
  background: var(--blue-light, #e8f0f7);
  border-left: 4px solid var(--blue-mid, #2a5080);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  margin: 0 0 1.5rem 0;
  font-size: 0.95rem;
  color: var(--blue-dark, #1e3a5f);
  line-height: 1.5;
}
.news-archive-hinweis a {
  color: var(--gold, #d4a437);
  text-decoration: underline;
  font-weight: 600;
}
.news-archive-hinweis a:hover { color: var(--blue-dark, #1e3a5f); }

.news-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: #666;
  font-size: 1rem;
}
.news-empty a {
  color: var(--gold, #d4a437);
  text-decoration: underline;
  font-weight: 600;
}

/* ==========================================================================
   Auszeichnungen / Programme – MINT, Lütt Ing, Zukunftsschule SH
   ========================================================================== */

/* Gradient-Hero für die 3 Programm-Seiten (Fallback wenn kein Foto vorhanden) */
.hero-image-banner.hero-gradient-mint,
.hero-image-banner.hero-gradient-luett,
.hero-image-banner.hero-gradient-zukunft,
.hero-image-banner.hero-gradient-tansania {
  background-size: cover;
  background-position: center;
  min-height: 320px;
  max-height: 480px;
}
.hero-image-banner.hero-gradient-mint {
  background: linear-gradient(135deg, #1e3a5f 0%, #2d7a3a 60%, #4caf50 100%);
}
.hero-image-banner.hero-gradient-luett {
  background: linear-gradient(135deg, #d4a437 0%, #e07b1f 50%, #c0392b 100%);
}
.hero-image-banner.hero-gradient-zukunft {
  background: linear-gradient(135deg, #2d7a3a 0%, #4caf50 40%, #00acc1 100%);
}
.hero-image-banner.hero-gradient-tansania {
  /* Tansania: afrikanischer Sonnenuntergang – warmes Orange/Rot/Erde */
  background: linear-gradient(135deg, #c0392b 0%, #d4691a 45%, #e8a23a 100%);
}
.hero-image-banner.hero-gradient-mint[data-icon]::before,
.hero-image-banner.hero-gradient-luett[data-icon]::before,
.hero-image-banner.hero-gradient-zukunft[data-icon]::before,
.hero-image-banner.hero-gradient-tansania[data-icon]::before {
  content: attr(data-icon);
  position: absolute;
  right: 6vw;
  top: 50%;
  transform: translateY(-50%);
  font-size: clamp(6rem, 14vw, 12rem);
  opacity: 0.22;
  z-index: 1;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
  pointer-events: none;
}

/* 3-Karten-Block auf der Startseite */
.auszeichnungen-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
  padding: 4rem 0 5rem;
}
.auszeichnungen-section h2 {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--blue-dark, #1e3a5f);
  margin-bottom: 0.5rem;
}
.auszeichnungen-section .section-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: #555;
  font-size: 1.05rem;
  line-height: 1.55;
}
.auszeichnungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  max-width: var(--max-width, 1200px);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.auszeichnungen-card {
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(30, 58, 95, 0.06);
}
.auszeichnungen-card:hover,
.auszeichnungen-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(30, 58, 95, 0.18);
  outline: 3px solid var(--gold, #d4a437);
  outline-offset: 2px;
}
.auszeichnungen-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  padding: 2rem 1rem 1.25rem;
  min-height: 120px;
  position: relative;
}
.auszeichnungen-card-icon.aus-icon-mint {
  background: linear-gradient(135deg, #1e3a5f 0%, #4caf50 100%);
  color: white;
}
.auszeichnungen-card-icon.aus-icon-luett {
  background: linear-gradient(135deg, #d4a437 0%, #c0392b 100%);
  color: white;
}
.auszeichnungen-card-icon.aus-icon-zukunft {
  background: linear-gradient(135deg, #2d7a3a 0%, #00acc1 100%);
  color: white;
}
.auszeichnungen-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.auszeichnungen-card-body h3 {
  margin: 0 0 0.6rem;
  font-size: 1.3rem;
  color: var(--blue-dark, #1e3a5f);
  font-weight: 700;
}
.auszeichnungen-card-body p {
  margin: 0 0 1.25rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
}
.auszeichnungen-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-dark, #1e3a5f);
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: auto;
}
.auszeichnungen-card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.auszeichnungen-card:hover .auszeichnungen-card-link::after,
.auszeichnungen-card:focus-visible .auszeichnungen-card-link::after {
  transform: translateX(4px);
}
.auszeichnungen-card-logo {
  display: block;
  width: 140px;
  height: 48px;
  object-fit: contain;
  margin: 0 0 0.85rem;
  padding: 0.4rem 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border, #e0e4e8);
  border-radius: 6px;
}

/* Responsive */
@media (max-width: 880px) {
  .auszeichnungen-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .auszeichnungen-card-icon { font-size: 3rem; min-height: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  .auszeichnungen-card,
  .auszeichnungen-card-link::after {
    transition: none;
  }
  .auszeichnungen-card:hover,
  .auszeichnungen-card:focus-visible {
    transform: none;
  }
}
/* ===== Skip-Link (A11y / BITV 2.0) ===== */
.skip-link {
  position: fixed;
  top: -100px;
  left: 0.5rem;
  z-index: 9999;
  background: var(--blue-dark, #1e3a5f);
  color: #fff;
  padding: 0.85rem 1.25rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: top 0.15s ease-out;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--gold, #d4a437);
  outline-offset: 2px;
  color: #fff;
}
/* <main> mit tabindex=-1 muss einen sichtbaren Fokus-Ring zeigen koennen, */
.main-has-focus,
main:focus,
main:focus-visible {
  outline: 3px solid var(--gold, #d4a437);
  outline-offset: -3px;
}

/* ===== A11y: visually-hidden (Screenreader-only) ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== A11y: Map-Lightbox Close-Button (jetzt <button>) ===== */
.map-lightbox-close {
  /* Vorher: position:absolute; font-size etc. bleibt drin, jetzt <button> statt <span> */
  cursor: pointer;
  font-family: inherit;
  /* Falls noch keine position: hat (alter Code), wird sie per alter Regel gesetzt */
}
button.map-lightbox-close:focus-visible {
  outline: 3px solid var(--gold, #d4a437);
  outline-offset: 2px;
}

/* ===== A11y: Touch-Targets (WCAG 2.5.8 / 2.5.5) =====
   Mindest-Hoehe 44x44 px fuer mobile Bedienung.
   Tab-Links in der Hauptnavigation, Tel/Mailto-Links im Kontakt. */
.nav-list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
a[href^="tel:"],
a[href^="mailto:"] {
  display: inline-block;
  padding: 0.5rem 0;
  min-height: 44px;
  line-height: 1.5;
  /* Bei table-cell-Inhalt: line-height auf 1.5 hebt den Klick-Bereich */
}
/* Tel/Mailto-Links in Tabellen: td enthaelt nur den Link,
   der soll auf 44px Hoehe klickbar sein. */
.standort-daten a,
.footer-col a[href^="tel:"],
.footer-col a[href^="mailto:"] {
  display: inline-block;
  padding: 0.55rem 0;
  min-height: 44px;
}

/* Mobile Nav-Toggle: schon 44x44 in radial-menu, aber mobile Burger braucht explizit min */
.nav-toggle {
  min-width: 44px;
  min-height: 44px;
}

/* ===== A11y: Globale prefers-reduced-motion-Regel =====
   Schaltet ALLE transitions/animations site-weit ab, wenn der Nutzer
   "Bewegung reduzieren" in den Systemeinstellungen aktiviert hat.
   WCAG 2.3.3 (AAA, aber gute Praxis). */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Hover-Translate-Effekte komplett abschalten */
  .feature:hover,
  .news-card:hover,
  .quicklink-card:hover,
  .team-card:hover,
  .brief-card:hover,
  .auszeichnungen-card:hover,
  .feature:focus-visible,
  .news-card:focus-visible,
  .quicklink-card:focus-visible,
  .team-card:focus-visible {
    transform: none !important;
  }
}

/* ----- Frei-Day Hub: Projekt-Cards (Schulleben/Frei-Day) ----- */
.freiday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
}

.freiday-card {
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.freiday-card:hover,
.freiday-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  border-color: var(--blue-dark, #1e3a5f);
  outline: none;
}

.freiday-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #e8f0e8 0%, #f4f1e8 100%);
}

.freiday-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.freiday-card:hover .freiday-card-image img {
  transform: scale(1.04);
}

.freiday-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
}

.freiday-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--blue-dark, #1e3a5f);
}

.freiday-card-title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  color: var(--blue-dark, #1e3a5f);
}

.freiday-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text, #444);
  flex: 1;
}

.freiday-card-cta {
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-dark, #1e3a5f);
  padding-top: 0.4rem;
}

.freiday-card:hover .freiday-card-cta,
.freiday-card:focus-visible .freiday-card-cta {
  color: var(--gold, #d4a437);
}

/* Mobile: Cards bleiben responsive */
@media (max-width: 480px) {
  .freiday-grid { gap: 1rem; }
  .freiday-card-body { padding: 0.9rem 1rem 1.1rem; }
  .freiday-card-title { font-size: 1.05rem; }
}

/* Reduced Motion: deaktiviere Hover-Lift */
@media (prefers-reduced-motion: reduce) {
  .freiday-card,
  .freiday-card-image img {
    transition: none !important;
  }
  .freiday-card:hover,
  .freiday-card:focus-visible {
    transform: none !important;
  }
}

/* ----- Hühnerhof-Bilder: Karussell (Schulhühner-Seite) ----- */
.huhn-carousel {
  position: relative;
  margin: 1.5rem 0 2.5rem;
  background: var(--white, #fff);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.huhn-carousel-track-wrapper {
  position: relative;
  width: 100%;
  background: #f4f1e8;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.huhn-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.huhn-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.huhn-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.huhn-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 95, 0.78);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.huhn-carousel-btn:hover,
.huhn-carousel-btn:focus-visible {
  background: var(--blue-dark, #1e3a5f);
  transform: translateY(-50%) scale(1.05);
  outline: 2px solid var(--gold, #d4a437);
  outline-offset: 2px;
}

.huhn-carousel-btn-prev { left: 0.6rem; }
.huhn-carousel-btn-next { right: 0.6rem; }

.huhn-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
}

.huhn-carousel-caption {
  padding: 0.85rem 1.2rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text, #444);
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.huhn-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 0 0.9rem;
}

.huhn-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--blue-dark, #1e3a5f);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.huhn-carousel-dot:hover,
.huhn-carousel-dot:focus-visible {
  background: rgba(30, 58, 95, 0.4);
  outline: none;
}

.huhn-carousel-dot[aria-current="true"] {
  background: var(--blue-dark, #1e3a5f);
  transform: scale(1.2);
}

/* Mobile: kleinerer Pfeil-Button, dichter */
@media (max-width: 600px) {
  .huhn-carousel-btn { width: 38px; height: 38px; font-size: 1.3rem; }
  .huhn-carousel-btn-prev { left: 0.35rem; }
  .huhn-carousel-btn-next { right: 0.35rem; }
  .huhn-carousel-caption { font-size: 0.9rem; padding: 0.7rem 1rem 0.85rem; }
}

/* Reduced Motion: keine Slide-Animation */
@media (prefers-reduced-motion: reduce) {
  .huhn-carousel-track { transition: none; }
  .huhn-carousel-btn { transition: none; }
  .huhn-carousel-btn:hover,
  .huhn-carousel-btn:focus-visible { transform: translateY(-50%); }
  .huhn-carousel-dot { transition: none; }
}

/* ----- THEO Audio-Player (DSGVO Click-Facade) ----- */
.theo-audio {
  margin: 1.5rem 0 2rem;
  padding: 0;
  background: var(--white, #fff);
  border: 1px solid rgba(30, 58, 95, 0.15);
  border-left: 4px solid var(--gold, #d4a437);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.theo-audio figcaption {
  padding: 0.65rem 1.1rem 0.85rem;
  margin-top: 0;
  font-size: 0.82rem;
  color: var(--text-light, #555);
  background: #faf7ef;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  line-height: 1.5;
}
.theo-audio figcaption::before { display: none; }

.theo-play {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.2rem;
  background: var(--white, #fff);
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: background 0.15s ease;
}
.theo-play:hover,
.theo-play:focus-visible {
  background: #f4f1e8;
  outline: none;
}
.theo-play:focus-visible {
  outline: 2px solid var(--blue-dark, #1e3a5f);
  outline-offset: -2px;
}

.theo-play-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-dark, #1e3a5f);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: background 0.15s ease, transform 0.15s ease;
}
.theo-play:hover .theo-play-icon,
.theo-play:focus-visible .theo-play-icon {
  background: var(--gold, #d4a437);
  color: var(--blue-dark, #1e3a5f);
  transform: scale(1.05);
}

.theo-play-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.theo-play-text strong {
  font-size: 1.05rem;
  color: var(--blue-dark, #1e3a5f);
  font-weight: 600;
}
.theo-play-text small {
  font-size: 0.82rem;
  color: var(--text-light, #666);
  font-weight: 400;
}

@media (prefers-reduced-motion: reduce) {
  .theo-play,
  .theo-play-icon { transition: none; }
  .theo-play:hover .theo-play-icon,
  .theo-play:focus-visible .theo-play-icon { transform: none; }
}

/* ----- Logo-Banner (Body, nicht Hero) – generisch für THEO, Schimmelfirma u.ä. ----- */
.theo-logo-banner,
.firma-logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 2rem;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 10px;
  max-width: 360px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.theo-logo-banner img,
.firma-logo-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 280px;
}
.firma-logo-banner figcaption {
  padding: 0.6rem 1rem 0.2rem;
  margin-top: 0;
  font-size: 0.9rem;
  color: var(--text-light, #555);
  text-align: center;
  background: #ffffff;
}
.firma-logo-banner figcaption::before { display: none; }

/* ----- WPU-Event-Banner (Messe-/Veranstaltungsfotos) ----- */
.wpu-event-banner {
  margin: 1.5rem 0 2rem;
  background: var(--white, #fff);
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.wpu-event-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.wpu-event-banner figcaption {
  padding: 0.7rem 1.1rem 0.85rem;
  margin-top: 0;
  font-size: 0.88rem;
  color: var(--text-light, #555);
  background: #faf7ef;
  border-top: 1px solid rgba(30, 58, 95, 0.08);
  line-height: 1.5;
}
.wpu-event-banner figcaption::before { display: none; }

/* ----- Pressezitat-Card (Inline-Zitat aus PDF/Bericht) ----- */
.press-quote {
  margin: 1.5rem 0 2.5rem;
  padding: 1.4rem 1.5rem 1.1rem;
  background: #faf7ef;
  border-left: 4px solid var(--blue-dark, #1e3a5f);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.press-quote-body {
  margin: 0 0 0.9rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text, #333);
  font-style: italic;
}

.press-quote-body::before {
  content: "“";
  display: inline-block;
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: -0.2em;
  color: var(--gold, #d4a437);
  margin-right: 0.1em;
  font-style: normal;
}
.press-quote-body::after {
  content: "”";
  display: inline-block;
  font-size: 1.6rem;
  line-height: 0;
  vertical-align: -0.2em;
  color: var(--gold, #d4a437);
  margin-left: 0.05em;
  font-style: normal;
}

.press-quote-source {
  padding-top: 0.7rem;
  border-top: 1px solid rgba(30, 58, 95, 0.12);
  font-size: 0.82rem;
  color: var(--text-light, #555);
  line-height: 1.5;
}
.press-quote-source cite {
  font-style: normal;
  font-weight: 600;
  color: var(--blue-dark, #1e3a5f);
}
.press-quote-source a {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.88rem;
  color: var(--blue-dark, #1e3a5f);
  text-decoration: underline;
}
.press-quote-source a:hover,
.press-quote-source a:focus-visible {
  color: var(--gold, #d4a437);
}

@media (max-width: 600px) {
  .press-quote { padding: 1.1rem 1.1rem 0.95rem; }
  .press-quote-body { font-size: 0.95rem; }
}

/* ----- News Inline-Bild (Detailseite) ----- */
.news-inline-image {
  margin: 1.5rem 0 2rem;
  text-align: center;
}
.news-inline-image img {
  display: inline-block;
  max-width: 100%;
  max-height: 85vh;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.news-inline-image figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-light, #555);
  font-style: normal;
}
.news-inline-image figcaption::before { display: none; }

/* Video-Container für responsive YouTube-Einbettungen (16:9) */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
}
.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ===== Schulleitung (Team-Seite) ===== */
.leitung-grid {
  display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap;
  margin: 1.5rem 0 2.5rem;
}
.leitung-card { text-align: center; }
.leitung-card img {
  width: 220px; height: 320px; object-fit: cover;
  border-radius: 12px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  cursor: zoom-in;
}
.leitung-card h4 { margin: 0.9rem 0 0.15rem; }
.leitung-card p { margin: 0; color: var(--text-light, #666); }

/* ===== Foto-Lightbox (photo-zoom.js) ===== */
.photo-zoom-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  display: none; align-items: center; justify-content: center;
}
.photo-zoom-overlay.open { display: flex; }
.photo-zoom-img {
  max-width: 92vw; max-height: 88vh;
  border-radius: 10px; box-shadow: 0 16px 64px rgba(0, 0, 0, 0.55);
}
.photo-zoom-close {
  position: absolute; top: 14px; right: 22px;
  font-size: 2.2rem; line-height: 1;
  color: #fff; background: transparent; border: 0; cursor: pointer;
}
.photo-zoom-close:hover { color: #d4a437; }
