/* ================================================================
   EBHARDT – DER BILDUNGSEINRICHTER
   Haupt-Stylesheet
   ================================================================ */

/* ----------------------------------------------------------------
   CSS VARIABLEN – alle Farben & Schriften zentral definiert
   ---------------------------------------------------------------- */
:root {
  --color-beige: #f7ede1; /* Heller Hintergrund */
  --color-navy: #20404f; /* Dunkler Footer / Menü */
  --color-accent: #f1be9a; /* Goldener Akzent */
  --color-white: #ffffff;
  --color-dark: #1a1a1a; /* Dunkel für Fließtext */

  --font-headline: "Avenir Next", sans-serif; /* weight 700/900 */
  --font-body: "Montserrat", sans-serif; /* weight 500 */
  --font-menu: "Avenir Next", sans-serif; /* weight 500 */
  --font-menu-sub: "Avenir Next", sans-serif; /* weight 400 */
  --font-light: "Avenir Next", sans-serif; /* weight 200 */

  --transition-base: 0.4s ease;
}

/* ----------------------------------------------------------------
   FONTS – lokal eingebunden (DSGVO-konform, kein Google CDN)
   Dateien unter assets/fonts/ ablegen
   ---------------------------------------------------------------- */
/* Avenir Next UltraLight – weight 200 */
@font-face {
  font-family: "Avenir Next";
  src:
    url("../fonts/AvenirNext-UltraLight.woff2") format("woff2"),
    url("../fonts/AvenirNext-UltraLight.woff") format("woff");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next Regular – weight 400 */
@font-face {
  font-family: "Avenir Next";
  src:
    url("../fonts/AvenirNext-Regular.woff2") format("woff2"),
    url("../fonts/AvenirNext-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next Medium – weight 500 */
@font-face {
  font-family: "Avenir Next";
  src:
    url("../fonts/AvenirNext-Medium.woff2") format("woff2"),
    url("../fonts/AvenirNext-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next Bold – weight 700 */
@font-face {
  font-family: "Avenir Next";
  src:
    url("../fonts/AvenirNext-Bold.woff2") format("woff2"),
    url("../fonts/AvenirNext-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next Heavy – weight 900 */
@font-face {
  font-family: "Avenir Next";
  src:
    url("../fonts/AvenirNext-Heavy.woff2") format("woff2"),
    url("../fonts/AvenirNext-Heavy.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src:
    url("../fonts/Montserrat-Medium.woff2") format("woff2"),
    url("../fonts/Montserrat-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-beige);
  color: var(--color-dark);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

/* ----------------------------------------------------------------
   NAVIGATION (fixiert oben, transparent über Hero)
   ---------------------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__logo {
  display: block;
  line-height: 1;
}

/* Logo-Bild in der Nav (weiß auf dunklem Hero) */
.site-nav__logo-img {
  height: 48px;
  width: auto;
  transition: opacity 0.4s ease;
}

.site-nav__menu-btn {
  background: transparent;
  border: 1.5px solid var(--color-white);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background var(--transition-base),
    color 0.4s ease,
    border-color 0.4s ease;
}

.site-nav__menu-btn:hover {
  background: var(--color-white);
  color: var(--color-navy);
}

/* Wenn Nav dunkel ist (auf hellem Hintergrund) → Hover invertiert */
.site-nav__menu-btn.nav-theme-light:hover {
  background: #1a1a1a;
  color: #f7ede1;
}

/* ----------------------------------------------------------------
   FULLSCREEN MENÜ OVERLAY
   ---------------------------------------------------------------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-navy);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 2rem;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.menu-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
}

.menu-overlay__close-btn {
  background: transparent;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition:
    background var(--transition-base),
    color var(--transition-base);
}

.menu-overlay__close-btn:hover {
  background: var(--color-accent);
  color: var(--color-navy);
}

.menu-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 2rem;
  margin-top: 8rem;
  margin-left: 15rem;
}

.menu-overlay__nav-item {
  font-family: var(--font-body);
  font-size: clamp(2.5rem, 6vw, 7rem);
  font-weight: 500;
  color: var(--color-accent);
  letter-spacing: 0.02em;
  line-height: 1.2;
  display: inline-block;
  transition: opacity var(--transition-base);
}

.menu-overlay__nav-item:hover {
  opacity: 0.7;
}

/* Leistungsbereiche – nur Überschrift, nicht klickbar */
.menu-overlay__nav-item--heading {
  cursor: default;
  color: var(--color-accent);
}

.menu-overlay__nav-item--heading:hover {
  opacity: 1;
}

/* Unterseiten-Container: max-width passt sich dem Eltern-Link an */
.menu-overlay__sub-nav {
  display: flex;
  padding-left: 0.2rem;
  margin-top: 0.2rem;
  margin-bottom: 0.75rem;
  justify-content: space-between;
}

.menu-overlay__sub-item {
  font-family: var(--font-light);
  font-size: 2rem;
  color: var(--color-accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity var(--transition-base);
  font-weight: 100;
}

.menu-overlay__sub-item:hover {
  opacity: 1;
}

.wrapper_menu {
  display: inline-block;
  width: fit-content;
}

/* ----------------------------------------------------------------
   HERO-SECTION
   Aufbau: Text oben → Bild (schrumpft, gepinnt) → Text unten
   ---------------------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  background-color: var(--color-beige);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  overflow: hidden;
}

/* Bild-Wrapper – startet als Vollbild, schrumpft beim Scrollen */
.hero-section__image-wrapper {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform-origin: center center;
  overflow: hidden;
  border-radius: 0;
  z-index: 1;
}

.hero-section__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-section__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

/* Hero-Titel – unten links, blendet beim Scrollen aus */
/* Hero-Inhalt: linksbündig, unten im Bild */
.hero-section__hero-content {
  position: absolute;
  bottom: 8%;
  left: 4%;
  right: 4%;
  z-index: 2;
  will-change: opacity;
}

/* Trennlinien zwischen den Titelzeilen */
.hero-section__line {
  border: none;
  border-top: 2px solid var(--color-white);
  margin: 0.4rem 0;
  opacity: 0.85;
}

/* Titel als Block damit Zeilen untereinander stehen */
.hero-section__hero-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  color: var(--color-white);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  display: flex;
  flex-direction: column;
}

/* "BILDUNGS" – etwas größer, mehr zur Mitte */
.hero-section__line-bildungs {
  text-align: left;
  padding-left: 8%;
  font-size: 1.15em; /* etwas größer als die anderen Zeilen */
}

/* "AM PULS DER ZEIT" – linksbündig */
.hero-section__line-left {
  text-align: left;
}

/* "EINRICHTUNG" – Montserrat Medium, rechtsbündig */
.hero-section__line-right {
  text-align: right;
  font-family: var(--font-body);
  font-weight: 500;
}

/* "Wir Gestalten" – Montserrat Medium, über dem Bild */
.hero-section__text-top {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(4rem, 9vw, 8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  line-height: 1;
  text-align: center;
  padding: 4rem 2rem 0;
  opacity: 0;
  transform: translateY(-60px);
  will-change: opacity, transform;
}

/* "Und Richten Ein" – Avenir Next Heavy, unter dem Bild */
.hero-section__text-bottom {
  position: relative;
  z-index: 2;
  font-family: var(--font-headline);
  font-weight: 900;
  font-size: clamp(4rem, 9vw, 8rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  line-height: 1;
  text-align: center;
  padding: 0 2rem 3rem;
  opacity: 0;
  transform: translateY(60px);
  will-change: opacity, transform;
}

/* ----------------------------------------------------------------
   SECTION 2: WIR GESTALTEN / UND RICHTEN EIN
   ---------------------------------------------------------------- */
.section-wir-gestalten {
  background-color: var(--color-beige);
  padding: 6rem 2rem;
  text-align: center;
}

.section-wir-gestalten__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-dark);
  line-height: 1.1;
}

.section-wir-gestalten__image {
  width: min(480px, 90%);
  margin: 2.5rem auto;
  border-radius: 4px;
  overflow: hidden;
}

.section-wir-gestalten__image img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ----------------------------------------------------------------
   SECTION 3: VOLLBILD BILD MIT TEXT OVERLAY
   ---------------------------------------------------------------- */
.section-fullbild {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.section-fullbild img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Farbverlauf: dunkel unten, hell oben */
.section-fullbild::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

/* Text-Block unten, volle Breite für links/rechts Ausrichtung */
.section-fullbild__text {
  position: absolute;
  bottom: 8%;
  left: 4%;
  right: 4%;
  z-index: 1;
}

/* "INNOVATIVE EINRICHTUNGEN" – linksbündig, groß */
.section-fullbild__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: left;
}

/* "FÜR INSPIRIERENDE LERNWELTEN" – rechtsbündig, etwas kleiner */
.section-fullbild__subtitle {
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 4vw, 4rem);

  color: var(--color-white);
  text-transform: uppercase;
  margin-top: 0.4rem;
  text-align: right;
}

/* ----------------------------------------------------------------
   SECTION 4: RÜCKZUGSORTE FÜR LEHRENDE
   ---------------------------------------------------------------- */
.section-rueckzug {
  background-color: var(--color-beige);
  padding: 7rem 2rem 5rem; /* mehr Abstand oben */
}

/* Headline-Container: volle Breite für links/rechts Ausrichtung */
.section-rueckzug__headline {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

/* "RÜCKZUGSORTE" – linksbündig, Avenir Next Bold */
.section-rueckzug__title-left {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 6rem);
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.05;
  text-align: left;
  padding-left: 12%;
}

/* "FÜR LEHRENDE" – rechtsbündig, Montserrat Medium */
.section-rueckzug__title-right {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(3rem, 6vw, 6rem);
  text-transform: uppercase;
  color: var(--color-dark);
  line-height: 1.05;
  text-align: right;
  padding-right: 12%;
}

/* Bild – volle Breite mit etwas Abstand zu den Seiten */
.section-rueckzug__image {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 auto;
}

.section-rueckzug__image img {
  width: 100%;
  height: 70vh;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ----------------------------------------------------------------
   SECTION 5: CTA – NEUGIERIG GEWORDEN??
   ---------------------------------------------------------------- */
.section-cta {
  background-color: var(--color-navy);
  padding: 6rem 2rem;
  text-align: center;
}

.section-cta__headline {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 2.5rem;
}

.section-cta__link-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding-right: 4rem;
  gap: 0.3rem;
}

.section-cta__link-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.8;
}

.section-cta__link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-base);
}

.section-cta__link:hover {
  gap: 1rem;
}

.section-cta__arrow {
  font-size: 1.2rem;
}

/* ----------------------------------------------------------------
   FOOTER (inkl. CTA "Neugierig Geworden??")
   ---------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-navy);
  padding: 0;
}

/* ── CTA Bereich ── */
.site-footer__cta {
  padding: 5rem 0 3rem;
}

/* "NEUGIERIG" links, "GEWORDEN ??" rechts – je eigene Zeile */
.site-footer__cta-headline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(3rem, 7vw, 7rem);
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.site-footer__cta-headline .cta-line-left {
  display: block;
  text-align: left;
  padding-left: 8rem;
}

.site-footer__cta-headline .cta-line-right {
  display: block;
  text-align: right;
  padding-right: 8rem;
}

/* Trennlinie – rechtsbündig ausgerichtet */
.site-footer__divider {
  border: none;
  border-top: 1px solid rgba(241, 190, 154, 0.4);
  margin: 0 4rem 1.2rem;
}

/* Untere CTA-Zeile: Text + Pfeil, rechtsbündig */
.site-footer__cta-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2rem;
  padding: 0 7rem;
}

.site-footer__cta-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: right;
  position: relative;
}

.site-footer__divider_contact {
  border-top: 1px solid var(--color-accent);
  position: absolute;
  top: 18px;
  left: 0;
  height: 1px;
  width: 65%;
}

/* Avenir Next Ultra Light für CTA-Text */
.site-footer__cta-label {
  font-family: var(--font-light);
  font-weight: 100;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 1.7rem;
}

.site-footer__cta-sub {
  font-family: var(--font-light);
  font-weight: 100;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
  font-size: 1.7rem;
  margin-top: -0.6rem;
}

/* Pfeil rechts */
.arrow {
  display: inline-flex;
  align-items: center;
  position: absolute;
  bottom: 0px;
  right: 100px;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.arrow::before {
  content: "";
  display: block;
  width: 100px; /* Länge des Strichs – anpassen */
  height: 1px;
  background-color: var(--color-accent);
}

.arrow::after {
  content: "";
  display: block;
  width: 10px; /* Größe des Pfeilkopfs */
  height: 10px;
  border-top: 1px solid var(--color-accent);
  border-right: 1px solid var(--color-accent);
  transform: rotate(45deg);
  margin-left: -10px; /* Pfeilkopf am Strich andocken */
}

.arrow:hover {
  transform: translateX(8px);
}

/* ── Footer Navigation ── */
.site-footer__nav {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem 6rem;
  padding: 2.5rem 4rem;
  border-top: 1.5px solid #f1be9a;
}

.site-footer__nav-item {
  font-family: var(--font-menu-sub);
  font-size: clamp(2.2rem, 2vw, 1.3rem);
  color: var(--color-accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: opacity var(--transition-base);
}

.site-footer__nav-item:hover {
  opacity: 0.7;
}

.site-footer__nav-item--bold {
  font-family: var(--font-menu);
  font-weight: 500;
  display: block;
  margin-bottom: -0.6rem;
}

.site-footer__nav-group {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  /* Gruppe ist nur so breit wie ihr Inhalt */
  width: max-content;
}

/* Unterseiten – strikt nicht breiter als "Leistungsbereiche" oben */
.site-footer__nav-sub-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  justify-content: center;
  /* Breite wird durch den Parent (.nav-group) begrenzt */
  width: 100%;
  overflow: hidden;
}

.site-footer__nav-sub {
  font-size: 0.81rem;
  opacity: 0.65;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

/* ── Logo + Adresse + Social ── */
.site-footer__middle {
  color: #fff;
  padding: 2rem 4rem;
}

.site-footer__logo-img {
  height: 46px;
  width: auto;
}

.site-footer__address {
  font-family: var(--font-body);
  font-size: 0.7rem;
  color: var(--color-accent);
  letter-spacing: 0.08em;
  opacity: 0.8;
  line-height: 1.6;
  font-style: normal;
}

.site-footer__social {
  display: flex;
  gap: 0.3rem;
  pointer-events: none;
  margin-left: 15px;
}

.site-footer__social p {
  margin-top: 0.6rem;
  font-size: 0.7rem;
  border-left: 1px solid;
  height: 13px;
  margin-right: 4px;
  margin-left: 3px;
}

.site-footer__social-link {
  font-family: var(--font-light);
  font-weight: 100;
  font-size: 0.8rem;
  color: #fff;
  text-transform: uppercase;
  opacity: 0.8;
  transition: opacity var(--transition-base);
  margin-top: 0.5rem;
}

.site-footer__social-link:hover {
  opacity: 1;
}

/* ── Copyright ── */
.site-footer__bottom {
  padding: 1rem 4rem 2rem;
  flex-wrap: wrap;
  gap: 0;
  font-weight: 100 !important;
}

.site-footer__copyright {
  font-family: var(--font-light);
  font-size: 0.75rem;
  color: var(--color-accent);
  opacity: 0.6;
  letter-spacing: 0.08em;
  font-weight: 100 !important;
  margin-bottom: 0px;
}

.site-footer__legal {
  display: flex;
  gap: 0.5rem;
  margin-top: 39px;
  justify-content: end;
}

.site-footer__legal-link {
  font-family: var(--font-light);
  font-size: 0.85rem;
  color: var(--color-accent);
  opacity: 0.6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: opacity var(--transition-base);
}

.site-footer__legal-link:hover {
  opacity: 1;
}

/* ----------------------------------------------------------------
   PLATZHALTER-BILDER (werden später durch echte Fotos ersetzt)
   ---------------------------------------------------------------- */
.img-placeholder {
  background-color: #c8bfb5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a7e75;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------
   SCROLL-ANIMATIONEN – Startzustand
   Elemente beginnen unsichtbar, GSAP animiert sie ein.
   ---------------------------------------------------------------- */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

/* Media Querries */
@media (max-width: 1700px) {
  .site-footer__divider_contact {
    width: 50%;
  }
  .menu-overlay__sub-item {
    font-size: 1.5rem;
  }
}

@media (max-width: 1500px) {
  .menu-overlay__sub-item {
    font-size: 1.2rem;
  }
  .menu-overlay__nav {
    margin-top: 10rem;
    margin-left: 10rem;
  }
}

@media (max-width: 1200px) {
  .menu-overlay__sub-item {
    font-size: 1.2rem;
  }
  .menu-overlay__nav-item {
    font-size: 3.5rem;
  }
}

@media (max-width: 1100px) {
  .site-footer__divider_contact {
    width: 40%;
  }
}

@media (max-width: 900px) {
  .site-footer__divider_contact {
    width: 25%;
  }

  .hero-section__line-bildungs {
    text-align: center;
    padding-left: 0;
  }

  .hero-section__line-left {
    text-align: center;
  }

  .hero-section__line-right {
    text-align: center;
  }
  .menu-overlay__sub-item {
    font-size: 1rem;
  }
  .menu-overlay__nav {
    margin-top: 10rem;
    margin-left: 5rem;
  }
}

@media (max-width: 800px) {
  .menu-overlay__sub-item {
    font-size: 1rem;
  }
  .menu-overlay__nav {
    margin-top: 12rem;
    margin-left: 0;
  }
}

@media (max-width: 710px) {
  .site-footer__divider_contact {
    display: none;
  }
  .site-footer__cta-headline {
    font-size: 2rem;
  }
  .site-footer__cta-inner {
    gap: 0;
    font-size: 0.2rem;
    padding: 0 5rem;
  }
  .site-footer__nav-sub-group {
    display: block;
  }
}

@media (max-width: 600px) {
  .site-footer__nav-item {
    font-size: 1.2rem;
  }
  .site-footer__nav-sub-group {
    font-size: 0.8rem;
    margin-top: 1rem;
    text-align: center;
  }
  .site-footer__nav-sub {
    display: block;
  }
  .footer_bottom-wrap {
    display: block !important;
  }
  .footer_bottom-wrap img {
    margin: 0 auto;
  }
  .site-footer__social,
  .site-footer__bottom,
  .site-footer__legal {
    justify-content: center;
  }
  .site-footer__legal {
    margin-top: 0;
  }
  .hero-section__hero-title {
    font-size: 2.5rem;
  }
  .hero-section__text-top,
  .hero-section__text-bottom {
    font-size: 3rem;
  }
  .hero-section__hero-content {
    bottom: 19%;
  }
  .section-rueckzug__title-left,
  .section-rueckzug__title-right {
    font-size: 2rem;
    text-align: center;
  }
  .site-footer__copyright {
    text-align: center;
  }
  .menu-overlay__nav {
    text-align: center;
    padding-left: 0;
  }
  .menu-overlay__sub-item {
    display: block;
  }
  .wrapper_menu {
    width: 100%;
  }
  .menu-overlay__nav-item {
    font-size: 2rem;
  }
  .menu-overlay__sub-item {
    font-size: 1.5rem;
    margin-top: 0.4rem;
  }
  .menu-overlay__sub-nav {
    display: block;
  }
}

@media (max-width: 500px) {
  .site-footer__divider_contact {
    display: none;
  }

  .menu-overlay__nav-item {
    font-size: 1.8rem;
  }
  .menu-overlay__sub-item {
    font-size: 1.5rem;
    margin-top: 0.4rem;
  }
  .menu-overlay__sub-nav {
    display: block;
  }
  .menu-overlay__nav {
    margin-top: 7rem;
  }
}

/* ----------------------------------------------------------------
   LADESCREEN
   ---------------------------------------------------------------- */
#loadingScreen {
  position: fixed;
  inset: 0;
  background-color: #f7ede1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#loadingLogo {
  width: clamp(120px, 20vw, 240px);
  opacity: 0;
}

/* ----------------------------------------------------------------
   SEITEN-ÜBERGANG OVERLAY
   ---------------------------------------------------------------- */
#pageTransition {
  position: fixed;
  inset: 0;
  background-color: #f7ede1;
  z-index: 9998;
  opacity: 1; /* Startet sichtbar – blendet beim Laden aus */
  pointer-events: none;
}

/* Visuell versteckt aber für Screenreader/SEO sichtbar */
.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;
}

/* ----------------------------------------------------------------
   BARRIEREFREIHEIT – SKIP LINK
   ---------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-navy);
  color: var(--color-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 6px 6px;
  z-index: 10000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ----------------------------------------------------------------
   BARRIEREFREIHEIT – FOCUS STYLES
   ---------------------------------------------------------------- */

/* Globaler sichtbarer Fokus-Ring */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Buttons */
button:focus-visible,
.site-nav__menu-btn:focus-visible,
.menu-overlay__close-btn:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
}

/* Links */
a:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Galerie-Fotos */
.kiga-foto:focus-visible,
.schule-foto:focus-visible,
.tafel-foto:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Formular-Felder */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* Lightbox Buttons */
.kiga-lightbox__close:focus-visible,
.kiga-lightbox__prev:focus-visible,
.kiga-lightbox__next:focus-visible,
.schule-lightbox__close:focus-visible,
.schule-lightbox__prev:focus-visible,
.schule-lightbox__next:focus-visible,
.tafel-lightbox__close:focus-visible,
.tafel-lightbox__prev:focus-visible,
.tafel-lightbox__next:focus-visible {
  outline: 2.5px solid white;
  outline-offset: 3px;
}

/* ----------------------------------------------------------------
   COOKIE BANNER
   ---------------------------------------------------------------- */
#cookieBanner {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(860px, calc(100vw - 3rem));
  background-color: var(--color-navy);
  color: var(--color-beige);
  padding: 2rem 2.5rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

#cookieBanner.is-visible {
  opacity: 1;
  pointer-events: all;
}

.cookie-banner__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.75rem, 1vw, 0.9rem);
  line-height: 1.65;
  color: var(--color-beige);
  opacity: 0.85;
  flex: 1;
}

.cookie-banner__text a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.cookie-banner__text a:hover {
  opacity: 0.7;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.55rem 1.5rem;
  cursor: pointer;
  border-radius: 3px;
  transition:
    background 0.3s ease,
    color 0.3s ease;
  white-space: nowrap;
}

.cookie-banner__btn--accept {
  background: var(--color-accent);
  color: var(--color-navy);
  border: 1.5px solid var(--color-accent);
}

.cookie-banner__btn--accept:hover {
  background: transparent;
  color: var(--color-accent);
}

.cookie-banner__btn--decline {
  background: transparent;
  color: var(--color-beige);
  border: 1.5px solid rgba(247, 237, 225, 0.35);
}

.cookie-banner__btn--decline:hover {
  border-color: var(--color-beige);
}

@media (max-width: 650px) {
  #cookieBanner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 0;
    left: 0;
    transform: none;
    width: 100%;
    border-radius: 6px 6px 0 0;
  }

  .cookie-banner__actions {
    flex-direction: row;
    width: 100%;
  }

  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }
}
