/* ========================================
   Montessori-Grundschule FKS - Stylesheet
   Farben beibehalten, modern & responsiv
   ======================================== */

/* --- Self-hosted Fonts (DSGVO-konform) --- */
@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin-ext-400.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/bebas-neue-latin-400.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #639ac9;
  --color-primary-dark: #4a80b0;
  --color-primary-darker: #3a7ab5;
  --color-primary-darkest: #1e5a8a;
  --color-primary-light: #afcbe3;
  --color-primary-bg: #f0f5fa;
  --color-primary-bg-light: #f6fafd;
  --color-primary-bg-lighter: #f8fbfe;
  --color-dark: #2a2a2c;
  --color-dark-alt: #323335;
  --color-dark-blue: #1a3a5c;
  --color-text: #323335;
  --color-text-muted: #555;
  --color-text-light: #888;
  --color-text-footer: #b0b0b0;
  --color-text-footer-link: #cfcfcf;
  --color-text-footer-copy: #777;
  --color-white: #fff;
  --color-bg: #fff;
  --color-card-bg: #f5f5f5;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-dropdown: 0 4px 16px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
}

a {
  color: var(--color-primary-darker);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary-darkest);
  text-decoration: underline;
}

/* --- Focus Styles (Accessibility) --- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* --- Skip-to-Content Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1.25rem;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 9999;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-primary-darkest);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

ul, ol {
  padding-left: 1.5em;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Navigation --- */
.site-header {
  background: var(--color-bg);
  box-shadow: var(--shadow-header);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}

.logo-link img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  color: var(--color-text);
  line-height: 1.2;
  white-space: nowrap;
}

.logo-text span {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  color: var(--color-primary);
}

/* Desktop nav */
.main-nav {
  display: flex;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--color-text);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-primary-light);
  color: var(--color-dark-blue);
  text-decoration: none;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " \25BE";
  font-size: 0.7em;
}

.nav-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--color-bg);
  box-shadow: var(--shadow-dropdown);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: 0.5rem 0;
  z-index: 200;
  list-style: none;
}

.dropdown-menu li a {
  padding: 0.5rem 1.2rem;
  border-radius: 0;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

@media (min-width: 1051px) {
  .nav-dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 1050px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    box-shadow: var(--shadow-dropdown);
    padding: 1rem 0;
    z-index: 150;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav a {
    padding: 0.75rem 1.5rem;
    border-radius: 0;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    background: var(--color-primary-bg-light);
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }
}

/* --- Hero Section (Startseite) --- */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99,154,201,0.75) 0%, rgba(42,42,44,0.7) 50%, rgba(99,154,201,0.6) 100%);
  background-size: 200% 200%;
  animation: heroGradient 8s ease infinite;
  z-index: 1;
}

@keyframes heroGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 1.5rem;
}

.hero h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .hero {
    min-height: 300px;
  }
  .hero h1 {
    font-size: 2rem;
  }
}

/* --- Page Header (Unterseiten) --- */
.page-header {
  background: linear-gradient(135deg, #639ac9 0%, #afcbe3 100%);
  color: #fff;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 0.3rem;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.05rem;
}

/* --- Content Sections --- */
.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--color-primary-bg);
}

.section--blue {
  background: var(--color-primary-light);
  color: var(--color-dark-blue);
}

.section--blue h2,
.section--blue h3 {
  color: var(--color-dark-blue);
}

.section--dark {
  background: var(--color-primary);
  color: #fff;
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--dark a {
  color: #fff;
  text-decoration: underline;
}

/* --- Kontakt-Karte (Startseite) --- */
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 4px solid var(--color-primary);
}

.contact-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.contact-card p {
  margin-bottom: 0.4rem;
}

.contact-card .label {
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (max-width: 700px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* --- Grundsaetze Cards --- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.principle-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.principle-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  background: var(--color-card-bg);
}

.principle-card .card-body {
  padding: 1.5rem;
}

.principle-card h3 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.principle-card .quote-source {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.3rem;
}

/* --- Download-Liste --- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--color-white);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--color-text);
  border-left: 4px solid var(--color-primary);
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--color-text);
}

.download-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--color-primary-bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-primary);
}

.download-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.download-card .file-info {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.download-grid--single {
  max-width: 500px;
  margin: 2rem auto;
}

.download-icon svg,
.quick-link-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Galerie (Schulhaus) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
}

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

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Lightbox --- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-overlay.active {
  display: flex;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 1.1rem;
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

/* --- Schulanmeldung --- */
.info-block {
  margin-bottom: 2rem;
}

.info-block h3 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid var(--color-primary-light);
}

.info-block ul {
  margin-top: 0.5rem;
}

.info-block li {
  margin-bottom: 0.4rem;
}

.dates-highlight {
  background: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}

.dates-highlight h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.dates-highlight .date-item {
  font-size: 1.2rem;
  margin: 0.3rem 0;
  font-weight: 500;
}

/* --- Foerderverein --- */
.highlight-box {
  background: var(--color-primary-bg);
  border-radius: 12px;
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
  margin: 1.5rem 0;
}

.iban-box {
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 500;
  margin: 1rem 0;
  letter-spacing: 0.05em;
}

/* --- Textseiten (Impressum, Datenschutz) --- */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content h2 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.text-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.text-content p {
  margin-bottom: 0.8rem;
}

.text-content ul,
.text-content ol {
  margin-bottom: 1rem;
}

.text-content li {
  margin-bottom: 0.3rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  color: var(--color-text-footer);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.footer-contact p {
  margin-bottom: 0.25rem;
}

.footer-contact strong {
  color: var(--color-white);
}

.footer-contact a {
  color: var(--color-text-footer-link);
}

.footer-contact a:hover {
  color: var(--color-white);
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-nav a,
.footer-legal a {
  color: var(--color-text-footer-link);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover,
.footer-legal a:hover {
  color: #fff;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-footer-copy);
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-nav,
  .footer-legal {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
}

/* --- Quick Links (Startseite) --- */
.quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid var(--color-primary);
}

.quick-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--color-text);
}

.quick-link-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.quick-link h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.quick-link p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Intro (Startseite) --- */
.intro-text {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Scroll-Down Indicator --- */
.scroll-indicator {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  z-index: 50;
}

.scroll-indicator.visible {
  opacity: 0.5;
  transform: translateX(-50%) translateY(0);
  animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-indicator { display: none; }
}

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--color-primary-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  text-align: left;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
  color: var(--color-primary);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 0;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 0 1.25rem;
}

.faq-answer p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Search --- */
.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.search-toggle:hover {
  color: var(--color-primary);
}

.search-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  backdrop-filter: blur(4px);
}

.search-overlay.active {
  display: flex;
}

.search-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  box-shadow: var(--shadow-lg);
}

.search-input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 2px solid var(--color-primary-light);
  border-radius: var(--radius-md);
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--color-primary);
}

.search-results {
  margin-top: 1rem;
  max-height: 50vh;
  overflow-y: auto;
}

.search-result-item {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s;
}

.search-result-item:hover {
  background: var(--color-primary-bg);
  text-decoration: none;
  color: var(--color-text);
}

.search-result-item h4 {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.search-result-item p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.search-no-results {
  padding: 1rem;
  text-align: center;
  color: var(--color-text-light);
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* --- Schulhaus Zitat --- */
.quote-block {
  font-style: italic;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  border-left: 4px solid var(--color-primary-light);
  padding: 1rem 1.5rem;
  background: #f8fbfe;
  border-radius: 0 8px 8px 0;
}

.quote-block cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-primary);
}

/* --- Openinghours --- */
.opening-hours {
  background: var(--color-primary-bg);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
}

/* Two-column layout for Schulanmeldung */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Print styles */
@media print {
  .site-header, .site-footer, .nav-toggle {
    display: none;
  }
  body {
    font-size: 12pt;
    color: #000;
  }
  .hero {
    min-height: auto;
    padding: 1rem;
    background: none !important;
    color: #000;
  }
  .hero::before {
    display: none;
  }
  .hero h1 {
    color: #000;
    text-shadow: none;
  }
  .page-header {
    background: none;
    color: #000;
  }
  .page-header h1 {
    color: #000;
  }
  .skip-link {
    display: none;
  }
}

/* --- Timeline (Termine) --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 52px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: 3px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 45px;
  top: 18px;
  width: 17px;
  height: 17px;
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item--ferien::after {
  background: var(--color-primary);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(99, 154, 201, 0.2);
}

.timeline-date {
  flex-shrink: 0;
  width: 44px;
  text-align: center;
  padding-top: 0.5rem;
}

.timeline-day {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--color-primary);
}

.timeline-day svg {
  stroke: var(--color-primary);
  display: inline-block;
  vertical-align: middle;
}

.timeline-month {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-top: 0.15rem;
}

.timeline-content {
  flex: 1;
  background: var(--color-white);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-left: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.timeline-item--ferien .timeline-content {
  border-left: 4px solid var(--color-primary);
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(99, 154, 201, 0.06) 100%);
}

.timeline-content h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
  color: var(--color-dark-blue);
}

.timeline-item--ferien .timeline-content h3 {
  color: var(--color-primary);
}

.timeline-content p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.badge--open {
  background: #e8f5e9;
  color: #2e7d32;
}

.badge--closed {
  background: #fce4ec;
  color: #c62828;
}

@media (max-width: 600px) {
  .timeline::before {
    left: 37px;
  }
  .timeline-item::after {
    left: 30px;
    top: 14px;
    width: 15px;
    height: 15px;
  }
  .timeline-date {
    width: 28px;
  }
  .timeline-day {
    font-size: 1.1rem;
  }
  .timeline-month {
    font-size: 0.58rem;
  }
  .timeline-content {
    padding: 0.75rem 1rem;
  }
  .timeline-item {
    gap: 1rem;
    padding-left: 0;
  }
}

/* --- Stats Grid (Startseite Neubau) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
}

.stat-number {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3.5rem;
  line-height: 1;
  color: #fff;
}

.stat-unit {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.9);
}

.stat-label {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  opacity: 0.75;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .stat-number {
    font-size: 2.5rem;
  }
}

/* --- Feature Grid (Schulhaus) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-primary);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- History / Text Content --- */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

