/*
Theme Name: Grundschule Vielbrunn – Kastanienbaum
Theme URI: https://grundschulevielbrunn.de/
Author: Grundschule Vielbrunn
Description: Eigenständiges, schlankes Block-Theme für die Grundschule Vielbrunn.
Version: 0.5.35
Requires at least: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: gv-kastanienbaum
*/

@font-face {
  font-family: "Kumbh Sans";
  src: url("assets/fonts/KumbhSans-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --gv-ink: #173f35;
  --gv-forest: #276a4f;
  --gv-leaf: #6ea85f;
  --gv-sky: #55b8e8;
  --gv-sun: #f5c84c;
  --gv-coral: #ef765d;
  --gv-paper: #fffaf0;
  --gv-mint: #e6f1e2;
  --gv-line: #bed1be;
  --gv-shadow: 0 18px 48px rgba(23, 63, 53, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  color: var(--gv-ink);
  background: var(--gv-paper);
  font-family: "Kumbh Sans", ui-sans-serif, system-ui, sans-serif;
}
a { text-underline-offset: .18em; }
.wp-site-blocks { overflow: clip; padding-top: 87px; }

.gv-site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  right: 0;
  left: 0;
  box-sizing: border-box;
  width: 100%;
  border-bottom: 1px solid rgba(23, 63, 53, .12);
  background: rgba(255, 250, 240, .92);
  backdrop-filter: blur(14px);
}
/* The WordPress admin bar overlays the header for editors. Keeping the theme
   header at the viewport edge avoids an empty strip in responsive previews. */
body.admin-bar .gv-site-header { top: 0; }

.gv-back-to-top {
  position: fixed;
  z-index: 31;
  bottom: 24px;
  left: 24px;
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--gv-ink);
  border-radius: 50%;
  background: rgba(255,250,240,.94);
  box-shadow: 4px 4px 0 var(--gv-ink);
  color: var(--gv-ink);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.gv-back-to-top:hover { background: var(--gv-sun); transform: translateY(-3px); }

/* Detail pages */
.gs-subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: 38vh;
  display: grid;
  align-items: end;
}
.gs-subpage-hero::after {
  display: none;
}
.gs-subpage-kicker {
  color: var(--gv-leaf);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.gs-page-section { scroll-margin-top: 110px; }

/* Keep the school profile page on the same readable grid as the homepage and
   the news page. WordPress' full-width groups otherwise stretch their direct
   children across the complete viewport. */
.page-id-3593 .gs-subpage-hero > *,
.page-id-3593 .gs-page-section > * {
  box-sizing: border-box;
  width: min(100%, 1180px);
  max-width: 1180px;
  margin-right: auto !important;
  margin-left: auto !important;
}
.gs-info-card,
.gs-download-card,
.gs-schedule-row {
  box-sizing: border-box;
  border: 1px solid rgba(23,63,53,.14);
  border-radius: 24px;
  background: rgba(255,255,255,.86);
}
.gs-info-card,
.gs-download-card { height: 100%; padding: clamp(1.4rem, 3vw, 2.2rem); }
.gs-download-card { border-top: 7px solid var(--gv-sun); }
.gs-download-card:nth-child(2n) { border-top-color: var(--gv-sky); }
.gs-download-card:nth-child(3n) { border-top-color: var(--gv-coral); }
.gs-schedule { display: grid; gap: 12px; }
.gs-schedule-row {
  display: grid;
  grid-template-columns: minmax(115px, .55fr) 1.45fr;
  gap: 24px;
  align-items: center;
  padding: 18px 22px;
}
.gs-schedule-row strong { color: var(--gv-forest); font-size: 1.08rem; }
.gs-timetable-wrap {
  width: min(100%, 1080px);
  margin-inline: auto;
  overflow-x: auto;
  padding-bottom: 6px;
}
.gs-timetable {
  width: 100%;
  min-width: 860px;
  border-spacing: 8px;
  border-collapse: separate;
  table-layout: fixed;
}
.gs-timetable th,
.gs-timetable td {
  border: 1px solid rgba(23,63,53,.14);
  border-radius: 14px;
  padding: 11px 9px;
  background: rgba(255,255,255,.9);
  text-align: center;
  vertical-align: middle;
}
.gs-timetable thead th { background: var(--gv-forest); color: #fff; }
.gs-timetable thead th:first-child { background: var(--gv-sun); color: var(--gv-forest); }
.gs-timetable tbody th { width: 118px; background: var(--gv-mint); color: var(--gv-forest); }
.gs-timetable tbody td { color: var(--gv-forest); font-size: .92rem; line-height: 1.3; }
.gs-timetable .is-special { background: rgba(245,200,76,.22); font-weight: 700; }
.gs-timetable .is-care { background: rgba(85,184,232,.14); }
.gs-timetable .is-lesson { background: rgba(255,255,255,.94); font-weight: 700; }
.gs-timetable-mobile { display: none; }
.gs-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gs-details-grid details {
  border: 1px solid rgba(23,63,53,.14);
  border-radius: 20px;
  padding: 1.2rem 1.35rem;
  background: rgba(255,255,255,.88);
}
.gs-details-grid summary { cursor: pointer; color: var(--gv-forest); font-weight: 850; }
.gs-details-grid details[open] { border-color: rgba(23,63,53,.28); box-shadow: 0 12px 30px rgba(23,63,53,.08); }
.gs-details-grid summary::marker { color: var(--gv-coral); }

/* School portrait: the walkthrough stays on the school's own server and the
   project collage uses deliberately irregular cards instead of a stock grid. */
.gv-school-tour {
  overflow: hidden;
  margin-top: 2rem;
  border: 10px solid #fff;
  border-radius: 28px;
  background: var(--gv-ink);
  box-shadow: var(--gv-shadow);
  transform: rotate(-.35deg);
}
.gv-school-tour video {
  display: block;
  width: 100%;
  max-height: min(70vh, 720px);
  background: var(--gv-ink);
  object-fit: contain;
}

/* Temporary: keep the existing walkthrough in the page content so it can be
   replaced in place by the planned self-hosted 360° tour. Until then, hide the
   complete section and its now-inactive jump-link instead of deleting data. */
.page-id-3593 #rundgang,
.page-id-3593 .gs-topic-nav .wp-block-button:first-child {
  display: none !important;
}
.gv-project-collage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 82px;
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(2rem, 5vw, 3.5rem);
}
.gv-project-photo {
  position: relative;
  overflow: visible;
  margin: 0;
  border: 9px solid #fff;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--gv-shadow);
}
.gv-project-photo::before {
  position: absolute;
  z-index: 3;
  top: -22px;
  left: 50%;
  width: 32px;
  height: 24px;
  border: 4px solid var(--gv-forest);
  border-radius: 50%;
  background: var(--gv-coral);
  box-shadow: 0 5px 0 rgba(23,63,53,.18);
  content: "";
  transform: translateX(-50%);
}
.gv-project-photo::after {
  position: absolute;
  z-index: 2;
  top: 1px;
  left: 50%;
  width: 7px;
  height: 25px;
  border-radius: 0 0 6px 6px;
  background: var(--gv-forest);
  content: "";
  transform: translateX(-50%) rotate(8deg);
  transform-origin: top center;
}
.gv-project-photo img { display: block; width: 100%; height: 100%; border-radius: 3px; object-fit: cover; }
.gv-project-photo:nth-child(1) { grid-column: 1 / span 5; grid-row: 1 / span 4; transform: rotate(-2deg); }
.gv-project-photo:nth-child(2) { grid-column: 6 / span 3; grid-row: 1 / span 3; transform: rotate(1.8deg); }
.gv-project-photo:nth-child(3) { grid-column: 9 / span 4; grid-row: 1 / span 4; transform: rotate(-1deg); }
.gv-project-photo:nth-child(4) { grid-column: 2 / span 4; grid-row: 5 / span 4; transform: rotate(1.4deg); }
.gv-project-photo:nth-child(5) { grid-column: 6 / span 4; grid-row: 4 / span 5; transform: rotate(-1.6deg); }
.gv-project-photo:nth-child(6) { grid-column: 10 / span 3; grid-row: 5 / span 4; transform: rotate(2deg); }

/* With the tree staying in the hero, the two current-information cards can use
   the full content width instead of reserving an empty centre lane. */
.gv-home-current-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 42px) !important;
}
.gv-home-current-grid > .wp-block-column:first-child { grid-column: 1; }
.gv-home-current-grid > .wp-block-column:last-child { grid-column: 2; }
.gv-download-overview,
.gv-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.gv-forms-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gv-download-overview .gs-download-card,
.gv-news-grid .gs-info-card,
.gv-forms-grid .gs-download-card { box-sizing: border-box; }
.gv-form-links { display: flex; flex-wrap: wrap; gap: .6rem 1.15rem; }
.gv-form-links a { font-weight: 800; }
.gv-current-download { background: var(--gv-forest); color: #fff; }
.gv-current-download h3,
.gv-current-download .gs-card-kicker { color: #fff; }
.gv-current-download .wp-element-button { background: var(--gv-sun); color: var(--gv-forest); }
.gv-upcoming-mealplans {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.28);
  padding-top: 1.15rem;
}
.gv-upcoming-mealplans summary {
  width: fit-content;
  cursor: pointer;
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.gv-upcoming-mealplans summary::marker { color: var(--gv-sun); }
.gv-upcoming-mealplan-list {
  display: grid;
  gap: .65rem;
  margin-top: 1rem;
}
.gv-upcoming-mealplan-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: 14px;
  padding: .85rem 1rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.gv-upcoming-mealplan-list a:hover { background: rgba(255,255,255,.2); }
.gv-upcoming-mealplan-list span { white-space: nowrap; font-size: .9rem; }
.gv-upcoming-empty { margin: 1rem 0 0; color: rgba(255,255,255,.84); }
.gv-download-archive { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gv-download-archive a {
  border: 2px solid var(--gv-forest);
  border-radius: 999px;
  padding: .55rem .9rem;
  color: var(--gv-forest);
  font-weight: 750;
  text-decoration: none;
}
.gv-download-archive a:hover { background: var(--gv-sun); }
.gv-empty-news { border-left: 6px solid var(--gv-sun); padding: 1rem 1.25rem; background: rgba(245,200,76,.12); }
.gs-topic-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: flex-start;
  align-items: center;
  gap: 10px !important;
}
.gs-topic-nav .wp-block-button { width: auto !important; margin: 0 !important; }
.gs-topic-nav a { font-size: .9rem !important; }
.gs-note {
  border-left: 7px solid var(--gv-sun);
  border-radius: 0 20px 20px 0;
  padding: 1.25rem 1.5rem;
  background: rgba(245,200,76,.12);
}
.gs-legal-page { font-size: 1.02rem; line-height: 1.75; }
.gs-legal-page > * { max-width: 900px; }
.gs-legal-page h2 { margin-top: 2.4rem; font-size: clamp(1.45rem, 3vw, 2rem); }
.gs-legal-page h2:first-child { margin-top: 0; }
.gs-legal-grid { gap: clamp(1.5rem, 5vw, 4rem); }
.gs-legal-grid > .wp-block-column {
  border-top: 7px solid var(--gv-sun);
  border-radius: 22px;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: #fff;
}
.gs-legal-grid > .wp-block-column:nth-child(2) { border-top-color: var(--gv-sky); }
.gs-legal-todo {
  border-left: 6px solid var(--gv-coral);
  border-radius: 0 16px 16px 0;
  padding: 1rem 1.25rem;
  background: rgba(239,118,93,.1);
}
.gv-site-header .wp-block-site-title { line-height: 1.05; }
.gv-site-header .wp-block-site-title a { color: var(--gv-forest); text-decoration: none; }
.gv-site-header .wp-block-navigation-item__content {
  border-radius: 999px;
  padding: .6rem .9rem;
  font-weight: 750;
  text-decoration: none;
}
.gv-site-header .wp-block-navigation-item__content:hover,
.gv-site-header .current-menu-item > .wp-block-navigation-item__content {
  background: var(--gv-sun);
}

/* Give all full-width content sections a calm, consistent page gutter. */
.gs-page-section,
.gs-subpage-hero,
.gs-legal-hero,
.gs-aktuelles,
.gs-schule,
.gs-neu,
.gs-kontakt {
  padding-right: clamp(24px, 6vw, 96px) !important;
  padding-left: clamp(24px, 6vw, 96px) !important;
}

.gs-hero {
  position: relative;
  isolation: isolate;
  min-height: min(900px, 92vh);
  overflow: hidden;
  background: var(--gv-mint) !important;
}
.gs-hero::before { display: none; }
.gs-hero h1 {
  max-width: none;
  font-weight: 850 !important;
  letter-spacing: -.055em;
  overflow-wrap: normal;
  word-break: keep-all;
}
.gs-hero > .wp-block-columns { min-height: 700px; }
.gs-hero blockquote {
  position: relative;
  max-width: 620px;
  border: 0 !important;
  border-radius: 4px 30px 30px 26px;
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  background: rgba(255,255,255,.72);
  box-shadow: 8px 8px 0 rgba(23,63,53,.12);
  transform: rotate(-1deg);
}
.gs-hero blockquote::before {
  position: absolute; top: -1.4rem; left: -.5rem;
  color: var(--gv-coral); content: "“";
  font-size: 5rem; font-weight: 900; line-height: 1;
}
.gs-hero .wp-block-button__link,
.gs-kontakt .wp-block-button__link {
  border: 2px solid var(--gv-ink) !important;
  box-shadow: 4px 4px 0 var(--gv-ink);
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease;
}
.gs-hero .wp-block-button__link:hover,
.gs-kontakt .wp-block-button__link:hover {
  box-shadow: 1px 1px 0 var(--gv-ink);
  transform: translate(3px, 3px);
}

.gs-tree-stage { position: relative; perspective: 1100px; }
.gs-tree-stage > .wp-block-group {
  position: relative;
  min-height: 570px !important;
  overflow: visible;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none;
  transform: none;
}
.gs-tree-stage > .wp-block-group > p { display: none; }
.gv-tree {
  position: absolute;
  inset: -7% -9% -4%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform .25s ease-out, opacity .35s ease, visibility .35s ease;
  -webkit-tap-highlight-color: transparent;
}
.gv-tree:focus-visible {
  outline: 4px solid var(--gv-sun);
  outline-offset: 4px;
  border-radius: 36%;
}
.gv-tree-hint {
  position: absolute;
  z-index: 3;
  right: 50%;
  bottom: 18px;
  display: block;
  border: 1px solid rgba(23,63,53,.18);
  border-radius: 999px;
  padding: .52rem .8rem;
  background: rgba(255,250,240,.9);
  color: var(--gv-forest);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(50%);
  pointer-events: none;
}
.gv-tree__season {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 24px 26px rgba(23,63,53,.18));
  opacity: 0;
  transform: translateZ(12px) scale(.98);
  transition: opacity .7s ease, transform 1s cubic-bezier(.2,.8,.2,1);
}
.gv-tree__season.is-active { opacity: 1; transform: translateZ(34px) scale(1); }
.gv-tree__ground {
  display: none;
}
.gv-leaf {
  position: absolute; z-index: 4; width: 18px; height: 25px;
  border-radius: 80% 0 80% 0; background: var(--gv-coral);
  opacity: 0; pointer-events: none;
}
.gv-tree.is-autumn .gv-leaf { animation: gv-fall 4s linear infinite; opacity: 1; }
.gv-leaf:nth-of-type(1) { left: 25%; top: 26%; animation-delay: -.8s !important; }
.gv-leaf:nth-of-type(2) { left: 68%; top: 20%; animation-delay: -2.1s !important; background: var(--gv-sun); }
.gv-leaf:nth-of-type(3) { left: 79%; top: 38%; animation-delay: -3.2s !important; }
@keyframes gv-fall { to { translate: 55px 330px; rotate: 280deg; opacity: 0; } }

.gs-aktuelles,
.gs-schule,
.gs-kontakt { position: relative; }
.gs-aktuelles { background: var(--gv-paper) !important; }
.gs-aktuelles::before {
  position: absolute; top: 3.5rem; right: 8%;
  color: var(--gv-coral); content: "✦"; font-size: 3rem; transform: rotate(13deg);
}
.gs-aktuelles h2,
.gs-schule h2,
.gs-kontakt h2 { font-weight: 900 !important; letter-spacing: -.04em; }
.gs-aktuelles .wp-block-column > .wp-block-group {
  position: relative;
  border: 2px solid var(--gv-ink) !important;
  background: #fff;
  box-shadow: 7px 7px 0 var(--gv-line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.gs-aktuelles .wp-block-column > .wp-block-group:hover {
  box-shadow: 10px 10px 0 var(--gv-sun);
  transform: translateY(-4px) rotate(-.3deg);
}
.gs-aktuelles .wp-block-column:first-child > .wp-block-group::after {
  position: absolute; top: -15px; right: 30px;
  width: 76px; height: 28px; background: rgba(245,200,76,.78);
  content: ""; transform: rotate(4deg);
}

.gs-neu-card {
  border: 1px solid rgba(23,63,53,.12);
  border-radius: 24px;
  padding: clamp(1.35rem, 2.6vw, 2rem);
  background: rgba(255,255,255,.8);
}
.gs-neu-card { height: 100%; box-sizing: border-box; }
.gs-neu-card:first-child { border-top: 7px solid var(--gv-sky); }
.gs-neu > .wp-block-columns > .wp-block-column:first-child {
  position: relative;
  border-radius: 4px 30px 30px 26px;
  padding: clamp(1.6rem, 3vw, 2.35rem);
  background: rgba(255,255,255,.72);
  box-shadow: 8px 8px 0 rgba(23,63,53,.12);
  transform: rotate(-1deg);
}
.gs-neu > .wp-block-columns > .wp-block-column:first-child::before {
  position: absolute;
  top: -1.7rem;
  left: -.45rem;
  color: var(--gv-coral);
  content: "“";
  font-size: 6rem;
  font-weight: 900;
  line-height: 1;
}
.gs-neu > .wp-block-columns > .wp-block-column:first-child h2 {
  position: relative;
  z-index: 1;
  margin-top: 0;
}
.gs-neu-check { border-top: 7px solid var(--gv-coral) !important; }
.gs-card-kicker {
  margin-bottom: .5rem;
  color: var(--gv-forest);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.gs-neu-card h3 { margin-top: 0; font-size: 1.6rem; }
.gs-neu-card ul { padding-left: 1.15rem; }
.gs-neu-card li + li { margin-top: .5rem; }
.gs-schule {
  background:
    linear-gradient(135deg, rgba(255,255,255,.3) 25%, transparent 25%) 0 0 / 34px 34px,
    var(--gv-mint) !important;
}
.gs-schule .wp-block-column {
  min-height: 210px;
  border: 2px solid var(--gv-ink);
  border-radius: 28px 8px 30px 18px;
  padding: 1.7rem;
  background: #fff;
  box-shadow: 6px 6px 0 var(--gv-ink);
}
.gs-schule .wp-block-column:nth-child(1) { border-top: 12px solid var(--gv-sky); transform: rotate(-1deg); }
.gs-schule .wp-block-column:nth-child(2) { border-top: 12px solid var(--gv-sun); transform: translateY(14px) rotate(1deg); }
.gs-schule .wp-block-column:nth-child(3) { border-top: 12px solid var(--gv-coral); transform: rotate(-.6deg); }
.gs-kontakt { background: var(--gv-sun) !important; }
.gs-kontakt::before,
.gs-kontakt::after {
  display: none;
}

.gv-site-footer { background: var(--gv-ink); color: #fff; }
.gv-site-footer a { color: #fff; }

@media (max-width: 900px) {
  .gs-hero { padding-top: 3rem !important; }
  .gs-hero > .wp-block-columns { min-height: 0; }
  .gs-tree-stage > .wp-block-group { min-height: 430px !important; }
  .gs-schule .wp-block-column { transform: none !important; }
  .gv-download-overview,
  .gv-news-grid,
  .gv-forms-grid { grid-template-columns: 1fr; }
  .gv-upcoming-mealplan-list a { align-items: flex-start; flex-direction: column; gap: .2rem; }

  /* WordPress' navigation overlay must be anchored to the viewport, not to
     the flex header. Otherwise it can open outside the visible right edge. */
  .gv-site-header .wp-block-navigation__responsive-container.is-menu-open {
    position: fixed !important;
    z-index: 100000 !important;
    inset: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    overflow-y: auto !important;
    background: var(--gv-paper) !important;
    color: var(--gv-ink) !important;
  }
  .gv-site-header .wp-block-navigation__responsive-container-content {
    box-sizing: border-box;
    width: 100%;
    min-height: 100%;
    padding: 6rem clamp(24px, 8vw, 56px) 3rem !important;
    align-items: flex-start !important;
  }
  .gv-site-header .wp-block-navigation__container {
    width: 100%;
    align-items: stretch !important;
    gap: .65rem !important;
  }
  .gv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
  .gv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    width: 100%;
  }
  .gv-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    display: block;
    border-bottom: 1px solid rgba(23,63,53,.14);
    border-radius: 0;
    padding: 1rem 0;
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
  .gv-site-header .wp-block-navigation__responsive-container-close {
    top: 24px !important;
    right: clamp(24px, 6vw, 48px) !important;
  }
}

@media (max-width: 782px) {
  .gv-back-to-top {
    right: 18px;
    bottom: 18px;
    left: auto;
  }
}

/* The mobile navigation lives directly below body. This avoids Safari
   treating the filtered fixed header as the menu's containing block. */
.gv-mobile-menu {
  position: fixed;
  z-index: 1000000;
  inset: 0;
  display: none;
  box-sizing: border-box;
  width: 100%;
  height: 100dvh;
  overflow-y: auto;
  padding: max(5.75rem, env(safe-area-inset-top)) clamp(24px, 8vw, 48px) 3rem;
  background: var(--gv-paper);
  color: var(--gv-ink);
}
.gv-mobile-menu.is-open { display: block; }
.gv-mobile-menu__close {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: clamp(20px, 6vw, 38px);
  border: 0;
  padding: .55rem;
  background: transparent;
  color: var(--gv-ink);
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.gv-mobile-menu__links { display: grid; }
.gv-mobile-menu__links a {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(23,63,53,.16);
  padding: 1rem 0;
  color: var(--gv-ink);
  font-size: clamp(1.45rem, 7vw, 2rem);
  font-weight: 800;
  text-decoration: none;
}
body.gv-menu-open { overflow: hidden; }
@media (max-width: 900px) {
  .gv-site-header .wp-block-navigation__responsive-container { display: none !important; }
}
@media (min-width: 901px) { .gv-mobile-menu { display: none !important; } }
@media (max-width: 700px) {
  .wp-site-blocks { padding-top: 82px; }
  .gv-back-to-top { bottom: 18px; left: 18px; width: 42px; }
  .gs-schedule-row { grid-template-columns: 1fr; gap: 4px; }
  .gs-details-grid { grid-template-columns: 1fr; }
  .gs-hero h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 12.5vw, 4.5rem) !important;
    line-height: .94 !important;
  }
  .gs-page-section,
  .gs-subpage-hero,
  .gs-legal-hero,
  .gs-aktuelles,
  .gs-schule,
  .gs-neu,
  .gs-kontakt {
    padding-right: 22px !important;
    padding-left: 22px !important;
  }

  /* On phones the tree stays in the hero and changes season when tapped. */
  .gs-tree-stage { min-height: 0; }
  .gs-tree-stage > .wp-block-group {
    position: relative;
    top: auto;
    min-height: min(58svh, 430px) !important;
  }
  .gv-tree {
    inset: -3% -7%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .gv-tree:focus-visible {
    outline: 4px solid var(--gv-sun);
    outline-offset: 4px;
    border-radius: 36%;
  }
  .gv-tree-hint {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 14px;
    display: block;
    border: 1px solid rgba(23,63,53,.18);
    border-radius: 999px;
    padding: .52rem .8rem;
    background: rgba(255,250,240,.9);
    color: var(--gv-forest);
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    transform: translateX(50%);
    pointer-events: none;
  }

  /* The semantic desktop table is retained for larger screens. On phones a
     day-by-day view uses the same cells and needs no sideways scrolling. */
  .gs-timetable-wrap { display: none; }
  .gs-timetable-mobile {
    display: grid;
    gap: 14px;
    width: 100%;
    margin-top: 1.5rem;
  }
  .gs-timetable-day {
    overflow: hidden;
    border: 1px solid rgba(23,63,53,.14);
    border-radius: 20px;
    background: rgba(255,255,255,.9);
  }
  .gs-timetable-day h3 {
    margin: 0;
    padding: .9rem 1rem;
    background: var(--gv-forest);
    color: #fff;
    font-size: 1.1rem;
  }
  .gs-timetable-day dl { margin: 0; }
  .gs-timetable-slot {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding: .8rem 1rem;
    border-top: 1px solid rgba(23,63,53,.11);
  }
  .gs-timetable-slot dt {
    color: var(--gv-forest);
    font-size: .85rem;
    font-weight: 850;
  }
  .gs-timetable-slot dd { margin: 0; line-height: 1.35; }
  .gs-timetable-slot.is-care { background: rgba(85,184,232,.1); }
  .gs-timetable-slot.is-special { background: rgba(245,200,76,.18); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Wide-screen layout. The tree stays inside the hero and is clickable, just as
   it is on phones. */
@media (min-width: 901px) {
  .gs-hero {
    min-height: 105vh;
    background: var(--gv-mint) !important;
    isolation: auto;
  }

  .gs-hero::before,
  .gs-hero::after,
  .gs-aktuelles::before,
  .gs-kontakt::before,
  .gs-kontakt::after {
    display: none;
  }

  .gs-hero > .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(300px, 31%) 1fr;
    gap: 0;
    min-height: 92vh;
    position: relative;
    z-index: 5;
  }

  .gs-hero .wp-block-column:first-child {
    position: relative;
    z-index: 6;
  }

  .gs-hero h1 {
    font-size: clamp(3.6rem, 5.7vw, 6rem) !important;
    line-height: .98 !important;
  }

  .gs-hero blockquote {
    padding: 1rem 1.15rem 1rem 1.5rem;
    font-size: 1.12rem !important;
    box-shadow: none;
    background: rgba(255, 255, 255, .58);
  }

  .gs-tree-stage {
    min-height: 620px;
  }

  .gs-tree-stage > .wp-block-group {
    min-height: 620px !important;
    background: transparent !important;
    box-shadow: none;
  }

  .gs-aktuelles,
  .gs-schule,
  .gs-neu,
  .gs-kontakt {
    min-height: 110vh;
    padding-top: 15vh !important;
    padding-bottom: 15vh !important;
  }

  .gs-aktuelles > *,
  .gs-schule > *,
  .gs-neu > *,
  .gs-kontakt > * {
    position: relative;
    z-index: 6;
  }

  .gs-aktuelles > .wp-block-columns:first-child {
    display: grid;
    grid-template-columns: minmax(250px, 330px) 1fr minmax(240px, 300px);
    gap: 0;
    align-items: start;
  }

  .gs-aktuelles > .wp-block-columns:first-child > .wp-block-column:first-child {
    grid-column: 1;
    grid-row: 1;
  }

  .gs-aktuelles > .wp-block-columns:first-child > .wp-block-column:last-child {
    grid-column: 1;
    grid-row: 2;
    margin-top: 18px;
  }

  .gs-aktuelles > .wp-block-columns:nth-of-type(2) {
    display: grid;
    grid-template-columns: minmax(270px, 340px) 1fr minmax(270px, 330px);
    gap: 0;
    margin-top: 12vh !important;
  }

  .gs-aktuelles > .wp-block-columns:nth-of-type(2) > .wp-block-column:first-child {
    grid-column: 1;
  }

  .gs-aktuelles > .wp-block-columns:nth-of-type(2) > .wp-block-column:last-child {
    grid-column: 3;
  }

  .gs-aktuelles .wp-block-column > .wp-block-group {
    border: 0 !important;
    box-shadow: none;
    background: rgba(255, 255, 255, .8);
  }

  .gs-aktuelles .wp-block-column > .wp-block-group:hover {
    box-shadow: none;
    transform: translateY(-3px);
  }

  .gs-aktuelles .wp-block-column:first-child > .wp-block-group::after {
    display: none;
  }

  .gs-schule {
    background: #edf4e9 !important;
  }

  .gs-schule > h2 {
    max-width: 310px;
    margin-right: auto !important;
    margin-left: 0 !important;
  }

  .gs-schule .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(260px, 330px) 1fr minmax(260px, 330px);
    gap: 4.5rem 0;
    margin-top: 9vh !important;
  }

  .gs-schule .wp-block-column {
    min-height: 0;
    border: 0;
    border-radius: 22px;
    padding: 1.5rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: none;
    transform: none !important;
  }

  .gs-schule .wp-block-column:nth-child(1) {
    grid-column: 1;
    border-left: 7px solid var(--gv-sky);
  }

  .gs-schule .wp-block-column:nth-child(2) {
    grid-column: 3;
    border-left: 7px solid var(--gv-sun);
  }

  .gs-schule .wp-block-column:nth-child(3) {
    grid-column: 1;
    border-left: 7px solid var(--gv-coral);
  }

  .gs-neu {
    background: #f7e9dc !important;
  }

  .gs-neu > .wp-block-columns {
    display: grid;
    grid-template-columns: minmax(270px, 340px) 1fr minmax(300px, 360px);
    gap: 0;
    align-items: center;
  }

  .gs-neu > .wp-block-columns > .wp-block-column:first-child {
    grid-column: 1;
  }

  .gs-neu > .wp-block-columns > .wp-block-column:last-child {
    grid-column: 3;
  }

  .gs-neu > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }

  .gs-kontakt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-right: 66% !important;
    text-align: left;
  }

  .gs-kontakt h2,
  .gs-kontakt p {
    min-width: 300px;
    margin-right: 0 !important;
    margin-left: 0 !important;
    text-align: left !important;
  }

  .gs-kontakt .wp-block-buttons {
    min-width: 330px;
    justify-content: flex-start !important;
  }
}

/* 2026-09-29: Neu-hier-Bereich ohne freie Baumspalte */
.gs-neu > .wp-block-columns {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: clamp(2.25rem, 5vw, 4.5rem) !important;
  align-items: start !important;
  width: min(100%, 1180px);
  margin-inline: auto;
}

.gs-neu > .wp-block-columns > .wp-block-column {
  width: 100%;
}

.gs-neu > .wp-block-columns > .wp-block-column:first-child {
  grid-column: auto !important;
  max-width: 760px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.gs-neu > .wp-block-columns > .wp-block-column:first-child::before {
  display: none;
}

.gs-neu > .wp-block-columns > .wp-block-column:first-child h2 {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: .85rem 0 1.35rem;
  border-radius: 4px 30px 30px 26px;
  padding: 1.1rem 1.65rem 1rem 2.15rem;
  background: rgba(255, 255, 255, .76);
  box-shadow: 8px 8px 0 rgba(23, 63, 53, .12);
  transform: rotate(-1deg);
}

.gs-neu > .wp-block-columns > .wp-block-column:first-child h2::before {
  position: absolute;
  top: -1.55rem;
  left: -.35rem;
  color: var(--gv-coral);
  content: "“";
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1;
}

.gs-neu > .wp-block-columns > .wp-block-column:last-child {
  grid-column: auto !important;
}

.gs-neu > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(1rem, 2.5vw, 1.75rem) !important;
}

@media (max-width: 700px) {
  .gs-neu > .wp-block-columns > .wp-block-column:last-child > .wp-block-columns {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Farbflächen rund um „Neu hier?“ ohne weißen Blockabstand verbinden. */
.gs-schule + .gs-neu,
.gs-neu + .gs-kontakt {
  margin-block-start: 0 !important;
}

/* Den Footer ohne weißen Blockabstand an die letzte Farbfläche anschließen. */
.wp-site-blocks > footer.wp-block-template-part {
  margin-block-start: 0 !important;
}

/* 2026-09-30: kompakter, sauber gerasterter Aufbau der Startseite. */
.wp-site-blocks {
  padding-top: 50px;
}

.gv-site-header {
  min-height: 74px;
}

.gv-site-header.wp-block-group {
  padding-top: 23px !important;
  padding-right: max(clamp(24px, 4vw, 64px), calc((100vw - 1480px) / 2)) !important;
  padding-bottom: 23px !important;
  padding-left: max(clamp(24px, 4vw, 64px), calc((100vw - 1480px) / 2)) !important;
}

.wp-site-blocks > footer.wp-block-template-part {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: none !important;
  margin-top: 0 !important;
  margin-right: 0 !important;
  margin-left: -50vw !important;
  background: var(--gv-ink);
}

.gv-site-footer.wp-block-group {
  position: relative;
  left: 50%;
  width: 100vw !important;
  max-width: none !important;
  margin: -24px 0 0 -50vw !important;
  padding-top: 38px !important;
  padding-right: max(clamp(24px, 5vw, 80px), calc((100vw - 1180px) / 2)) !important;
  padding-bottom: 38px !important;
  padding-left: max(clamp(24px, 5vw, 80px), calc((100vw - 1180px) / 2)) !important;
  border-radius: 0 !important;
  background: var(--gv-ink) !important;
}

@media (min-width: 901px) {
  .gs-hero {
    min-height: 690px;
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .gs-hero > .wp-block-columns {
    min-height: 580px;
  }

  .gs-tree-stage,
  .gs-tree-stage > .wp-block-group {
    min-height: 560px !important;
  }

  .gv-photo-top {
    top: clamp(330px, 39vh, 440px) !important;
    right: clamp(70px, 9vw, 170px) !important;
    width: clamp(390px, 28vw, 520px) !important;
    transform: rotate(3deg) translateY(18px) !important;
  }

  .gv-photo-top img {
    height: clamp(270px, 21vw, 350px) !important;
  }

  .gs-aktuelles,
  .gs-schule,
  .gs-neu,
  .gs-kontakt {
    min-height: 0;
    padding-top: 88px !important;
    padding-bottom: 88px !important;
  }

  .gs-aktuelles > .wp-block-columns:nth-of-type(2) {
    margin-top: 56px !important;
  }

  .gs-schule > h2 {
    width: min(100%, 1180px);
    max-width: none;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .gs-schule .wp-block-columns {
    width: min(100%, 1180px);
    margin: 56px auto 0 !important;
  }

  .gs-schule .gv-photo-school-col {
    grid-column: 3 !important;
    grid-row: 2 !important;
    justify-self: end;
    align-self: start !important;
    width: 100%;
    padding: 0 !important;
    transform: translate(42px, 240px) !important;
  }

  .gs-schule .gv-photo-school {
    width: min(125%, 430px) !important;
    margin: 0 0 0 auto !important;
    transform: rotate(5.5deg) !important;
  }

  .gs-neu > .wp-block-columns {
    gap: 42px !important;
  }

  .gs-kontakt {
    display: block;
    padding-right: clamp(24px, 6vw, 96px) !important;
  }

  .gs-kontakt > h2,
  .gs-kontakt > p,
  .gs-kontakt > .wp-block-buttons,
  .gs-kontakt > .gv-photo-contact-row {
    width: min(100%, 1180px);
    min-width: 0;
    margin-right: auto !important;
    margin-left: auto !important;
  }

  .gs-kontakt h2,
  .gs-kontakt p {
    text-align: left !important;
  }

  .gs-kontakt .wp-block-buttons {
    min-width: 0;
    justify-content: flex-start !important;
  }

  .gv-photo-contact-row {
    align-items: center !important;
    margin-top: 44px !important;
    margin-bottom: 0 !important;
  }

  .gv-photo-contact {
    width: min(43%, 470px) !important;
  }

  .gv-photo-contact:first-child {
    margin-left: 2.5% !important;
  }

  .gv-photo-contact:last-child {
    margin-top: 46px !important;
    margin-right: 2.5% !important;
  }

  .gv-photo-contact img {
    height: clamp(245px, 22vw, 325px) !important;
  }
}

@media (max-width: 900px) {
  .wp-site-blocks { padding-top: 50px; }
  .gv-site-header.wp-block-group {
    min-height: 74px;
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
  .gs-aktuelles,
  .gs-schule,
  .gs-neu,
  .gs-kontakt {
    min-height: 0;
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }
  .gs-schule > h2,
  .gs-schule > .wp-block-columns {
    width: 100%;
    margin-right: auto !important;
    margin-left: auto !important;
  }
  .gv-site-footer.wp-block-group {
    gap: 20px;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }
  .gv-school-tour { border-width: 6px; border-radius: 20px; transform: none; }
  .gv-project-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(150px, 52vw, 240px);
  }
  .gv-project-photo:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }
  .gv-project-photo:nth-child(3n + 1) { transform: rotate(-1.25deg); }
  .gv-project-photo:nth-child(3n + 2) { transform: rotate(1.25deg); }
  .gv-project-photo:nth-child(3n) { transform: none; }
  .gv-home-current-grid { grid-template-columns: 1fr; }
  .gv-home-current-grid > .wp-block-column:first-child,
  .gv-home-current-grid > .wp-block-column:last-child { grid-column: 1; }
}

@media (max-width: 520px) {
  .gv-project-collage { grid-template-columns: 1fr; grid-auto-rows: 250px; }
}

/* The pinned photo is a sibling of the hero, not a child of the tree stage.
   Keep it in document flow so no viewport width can place it over the tree
   or its season-switch hint. Let it cross the hero/news colour boundary. */
.gs-hero::after {
  display: block;
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: 260px;
  z-index: 0;
  border: 0;
  border-radius: 0;
  background: var(--gv-mint);
  transform: none;
  pointer-events: none;
}

.gv-photo-top {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  width: min(440px, calc(100% - 48px)) !important;
  margin: 24px max(30px, calc((100vw - 1180px) / 2)) 0 auto !important;
  transform: rotate(3deg) !important;
}

body.home .gv-photo-top + .gs-aktuelles {
  margin-top: -170px !important;
}

.gv-photo-top img {
  height: clamp(240px, 24vw, 320px) !important;
}

/* A focused tree remains discoverable by keyboard without a giant oval
   around the illustration. The compact click hint gets the focus ring. */
.gv-tree:focus-visible {
  outline: none;
}
.gs-tree-stage:has(.gv-tree:focus-visible) .gv-tree-hint {
  outline: 3px solid var(--gv-sun);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .gs-hero::after { height: 160px; }
  .gv-photo-top {
    width: min(420px, calc(100% - 48px)) !important;
    margin: 36px auto 0 !important;
    transform: rotate(-2deg) !important;
  }
  .gv-photo-top img { height: 270px !important; }
  body.home .gv-photo-top + .gs-aktuelles {
    margin-top: -70px !important;
    padding-top: 128px !important;
  }
}
