:root {
  --color-ink: #2b2117;
  --color-text: #3f3529;
  --color-muted: #756a5d;
  --color-paper: #fffdf7;
  --color-cream: #fbf3df;
  --color-mist: #f1f7e4;
  --color-leaf: #527b28;
  --color-apple: #98c91d;
  --color-forest: #2f5c2c;
  --color-bark: #9b5a18;
  --color-clay: #d89247;
  --color-sun: #ffd71b;
  --color-orange: #ef6a1a;
  --color-line: #e2d4bd;
  --page-welcome: #fff5c7;
  --page-welcome-accent: #ffd71b;
  --page-welcome-nav: #856800;
  --page-facility: #e6f5d1;
  --page-facility-accent: #98c91d;
  --page-facility-nav: #527b28;
  --page-pedagogy: #fff0e7;
  --page-pedagogy-accent: #ef6a1a;
  --page-pedagogy-nav: #c84f13;
  --page-info: #f4eadb;
  --page-info-accent: #9b5a18;
  --page-info-nav: #7b4311;
  --page-contact: #e8f6f4;
  --page-contact-accent: #2d8581;
  --page-contact-nav: #1f6f6b;
  --section-fade: #fffdf7;
  --button-bg: #98c91d;
  --button-hover: #2f5c2c;
  --button-text: #2b2117;
  --button-hover-text: #fffdf7;
  --shadow-soft: 0 22px 55px rgba(77, 59, 35, 0.14);
  --radius-sm: 6px;
  --radius-md: 8px;
  --max-wide: 1180px;
  --max-text: 680px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-xxl: 5.5rem;
  --font-body: "Nunito Sans", "Trebuchet MS", system-ui, sans-serif;
  --font-display: "Trebuchet MS", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.greenfield-main {
  overflow-x: clip;
}

html {
  /* Platz für den fixierten Header samt Seitennavigation beim Sprung zu Ankern */
  scroll-padding-top: 9rem;
  scroll-behavior: smooth;
  hyphens: manual;
  -webkit-hyphens: manual;
}

body {
  margin: 0;
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

main,
section,
div,
figure {
  min-width: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 4px solid rgba(255, 215, 27, 0.95);
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 20;
  transform: translateY(-160%);
  background: var(--color-ink);
  color: #fff;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-lg);
  width: 100%;
  min-height: 88px;
  padding: 0.55rem max(2rem, calc((100vw - var(--max-wide)) / 2)) 0.55rem
    max(10.5rem, calc((100vw - var(--max-wide)) / 2 + 10.5rem));
  border-bottom: 1px solid rgba(82, 123, 40, 0.14);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(14px);
  transition: min-height 180ms ease, padding 180ms ease, box-shadow 180ms ease;
}

.site-header.is-compact {
  min-height: 64px;
  justify-content: space-between;
  padding-left: max(2rem, calc((100vw - var(--max-wide)) / 2));
  padding-top: 0.32rem;
  padding-bottom: 0.32rem;
  box-shadow: 0 12px 34px rgba(77, 59, 35, 0.12);
}

.site-header.is-past-hero {
  justify-content: space-between;
  padding-left: max(2rem, calc((100vw - var(--max-wide)) / 2));
}

.header-plaque {
  position: absolute;
  top: 0;
  left: max(2rem, calc((100vw - var(--max-wide)) / 2));
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(7.8rem, 9.6vw, 10.2rem);
  min-height: clamp(10.8rem, 13.3vw, 14.2rem);
  border: 1px solid rgba(82, 123, 40, 0.22);
  border-radius: 0;
  padding: clamp(0.75rem, 0.95vw, 1rem);
  background: rgba(255, 253, 247, 0.98);
  box-shadow: none;
  text-decoration: none;
  transform-origin: top left;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.header-plaque::after {
  display: none;
}

.header-plaque img {
  width: 100%;
  height: auto;
  filter: none;
}

.site-header.is-compact .header-plaque,
.site-header.is-past-hero .header-plaque {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.brand {
  position: absolute;
  left: max(2rem, calc((100vw - var(--max-wide)) / 2));
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 76px;
  opacity: 0;
  pointer-events: none;
  text-decoration: none;
  visibility: hidden;
  transition: min-height 180ms ease, gap 180ms ease;
}

.site-header.is-past-hero .brand {
  position: static;
  margin-right: auto;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.brand img {
  width: auto;
  height: 72px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 14px rgba(77, 59, 35, 0.12));
  transition: height 180ms ease, width 180ms ease;
}

.brand .brand-wordmark {
  width: clamp(9.25rem, 18vw, 14.5rem);
  height: auto;
  filter: none;
}

.site-header.is-compact .brand {
  position: static;
  margin-right: auto;
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  min-height: 52px;
  gap: 0.62rem;
}

.site-header.is-compact .brand img {
  height: 50px;
}

.site-header.is-compact .brand .brand-wordmark {
  width: clamp(7.8rem, 14vw, 11rem);
}

.nav-toggle {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  font-size: clamp(0.92rem, 1.1vw, 1.05rem);
  font-weight: 900;
  text-transform: uppercase;
}

.nav-link,
.nav-parent-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
  padding: 0.45rem 0;
  color: var(--nav-text, var(--color-ink));
  cursor: pointer;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-item:hover .nav-parent-link,
.nav-item.is-open .nav-parent-link {
  border-bottom-color: var(--nav-accent, var(--color-apple));
  color: var(--nav-text, var(--color-ink));
}

.nav-welcome {
  --nav-accent: var(--page-welcome-accent);
  --nav-text: var(--page-welcome-nav);
}

.nav-facility {
  --nav-accent: var(--page-facility-accent);
  --nav-text: var(--page-facility-nav);
}

.nav-pedagogy {
  --nav-accent: var(--page-pedagogy-accent);
  --nav-text: var(--page-pedagogy-nav);
}

.nav-info {
  --nav-accent: var(--page-info-accent);
  --nav-text: var(--page-info-nav);
}

.nav-contact {
  --nav-accent: var(--page-contact-accent);
  --nav-text: var(--page-contact-nav);
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: -0.8rem;
  right: -0.8rem;
  top: 100%;
  height: 1rem;
}

.nav-submenu-toggle {
  width: 1.65rem;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--nav-text, var(--color-ink));
  cursor: pointer;
}

.nav-submenu-toggle svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  transition: transform 180ms ease;
}

.nav-item.is-open .nav-submenu-toggle svg {
  transform: rotate(180deg);
}

.flyout {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  min-width: 320px;
  display: grid;
  gap: 0.3rem;
  border: 1px solid rgba(82, 123, 40, 0.18);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--color-paper);
  box-shadow: 0 22px 60px rgba(77, 59, 35, 0.18);
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  transform: translate(-50%, -0.35rem);
  visibility: hidden;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-item:hover .flyout,
.nav-item:focus-within .flyout,
.nav-item.is-open .flyout {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-info .flyout {
  right: 0;
  left: auto;
  transform: translateY(-0.35rem);
}

.nav-info:hover .flyout,
.nav-info:focus-within .flyout,
.nav-info.is-open .flyout {
  transform: translateY(0);
}

.flyout::before {
  content: "";
  width: 3rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--nav-accent, var(--color-sun));
}

.flyout a {
  border-radius: var(--radius-sm);
  padding: 0.68rem 0.75rem;
  color: var(--color-text);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
}

.flyout a:hover {
  background: var(--color-mist);
  color: var(--color-forest);
}

.quick-actions {
  position: fixed;
  right: 0.75rem;
  top: 38vh;
  z-index: 25;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  width: 16.25rem;
  pointer-events: none;
}

.quick-actions a {
  width: 4.35rem;
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(82, 123, 40, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  overflow: hidden;
  background: var(--color-sun);
  color: var(--color-ink);
  box-shadow: 0 12px 30px rgba(77, 59, 35, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: width 180ms ease, background-color 180ms ease;
  pointer-events: auto;
}

.quick-actions a:hover,
.quick-actions a:focus-visible {
  width: 16.25rem;
  background: var(--color-paper);
}

.quick-actions svg,
.to-top svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.quick-actions span {
  min-width: 10.5rem;
  display: grid;
  line-height: 1.12;
  opacity: 0;
  transition: opacity 120ms ease;
}

.quick-actions a:hover span,
.quick-actions a:focus-visible span {
  opacity: 1;
}

.quick-actions small {
  color: var(--color-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 25;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 2px solid rgba(82, 123, 40, 0.24);
  border-radius: 999px;
  background: var(--color-paper);
  color: var(--color-forest);
  box-shadow: 0 14px 36px rgba(77, 59, 35, 0.18);
}

.hero {
  position: relative;
  display: grid;
  min-height: clamp(640px, 82vh, 860px);
  isolation: isolate;
}

.hero-media {
  grid-area: 1 / 1;
  min-height: inherit;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(21, 18, 14, 0.38);
}

.hero-copy {
  grid-area: 1 / 1;
  z-index: 1;
  align-self: center;
  justify-self: center;
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  color: #fff;
  padding: var(--space-xl) 0;
  text-align: center;
}

.hero-logo {
  width: clamp(165px, 16vw, 225px);
  margin: 0 auto var(--space-md);
  filter:
    drop-shadow(0 2px 8px rgba(255, 253, 247, 0.9))
    drop-shadow(0 16px 30px rgba(21, 18, 14, 0.35));
}

.eyebrow,
.section-label {
  margin: 0 0 0.9rem;
  color: var(--color-leaf);
  font-size: clamp(0.9rem, 1.15vw, 1.02rem);
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--color-sun);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(2.9rem, 6vw, 5.25rem);
}

h1 span {
  display: inline;
}

h2 {
  font-size: clamp(2.1rem, 4.8vw, 4.5rem);
}

.hero-copy p:not(.eyebrow) {
  max-width: 44rem;
  margin: var(--space-md) auto 0;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: var(--space-lg);
}

.hero-alt,
.page-hero {
  position: relative;
  display: grid;
  height: clamp(680px, 78vh, 820px);
  min-height: 0;
  margin: 0;
  isolation: isolate;
  overflow: hidden;
}

.hero-alt-media,
.page-hero-media {
  grid-area: 1 / 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.hero-alt-media img,
.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-alt-media img {
  object-position: 58% 50%;
}

.hero-alt::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* links dunkler, wo der Text steht, damit er auch auf hellen Bildstellen lesbar bleibt */
  background:
    linear-gradient(90deg, rgba(30, 23, 16, 0.78), rgba(30, 23, 16, 0.42) 58%, rgba(30, 23, 16, 0.22)),
    rgba(30, 23, 16, 0.12);
}

.hero-alt-copy,
.page-hero-copy {
  text-shadow: 0 1px 14px rgba(20, 15, 10, 0.45);
}

.hero-alt-copy .button,
.page-hero-copy .button {
  text-shadow: none;
}

.hero-alt-copy,
.page-hero-copy {
  grid-area: 1 / 1;
  position: relative;
  z-index: 1;
  align-self: start;
  width: min(720px, calc(100% - 4rem));
  padding-top: clamp(8.5rem, 18vh, 11rem);
  margin-left: max(2rem, calc((100vw - var(--max-wide)) / 2));
  color: #fff;
}

.hero-seal {
  position: absolute;
  top: 1rem;
  right: 0;
  isolation: isolate;
  width: clamp(126px, 11vw, 176px);
  display: block;
  margin: 0;
}

.hero-seal::before {
  content: "";
  position: absolute;
  inset: -24% -28% -22%;
  z-index: -1;
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.58);
  filter: blur(34px);
}

.hero-seal-logo {
  width: 100%;
  height: auto;
  margin: 0;
  filter:
    drop-shadow(0 0 120px rgba(255, 253, 247, 0.98))
    drop-shadow(0 0 54px rgba(255, 253, 247, 0.9))
    drop-shadow(0 0 18px rgba(255, 253, 247, 0.82))
    drop-shadow(0 34px 38px rgba(21, 18, 14, 0.4));
}

.hero-alt .eyebrow {
  color: var(--page-welcome-accent);
}

.hero-alt h1,
.page-hero h1 {
  max-width: 12ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 5rem);
}

.hero-alt h1 span {
  display: block;
}

.hero-alt .button {
  margin-top: clamp(1.25rem, 3vh, 2.1rem);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.12rem;
  font-weight: 900;
  text-decoration: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

h1,
h2,
p,
a {
  overflow-wrap: normal;
}

h1,
h2 {
  text-wrap: balance;
  hyphens: manual;
}

.button-primary {
  background: var(--page-welcome-accent);
  color: var(--color-ink);
  box-shadow: 0 5px 0 rgba(47, 92, 44, 0.24), 0 16px 34px rgba(43, 33, 23, 0.18);
}

.button-primary:hover {
  background: var(--page-welcome-nav);
  color: var(--color-paper);
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(47, 92, 44, 0.2), 0 20px 42px rgba(43, 33, 23, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-ink);
}

.button-secondary:hover {
  background: var(--color-cream);
}

.section-cta {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-lg);
  border-radius: var(--radius-sm);
  padding: 0.82rem 1.15rem;
  background: var(--button-bg, var(--section-accent, var(--color-apple)));
  color: var(--button-text, var(--color-ink));
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 5px 0 rgba(47, 92, 44, 0.24), 0 15px 30px rgba(77, 59, 35, 0.13);
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.section-cta:hover {
  background: var(--button-hover, color-mix(in srgb, var(--section-accent, var(--color-forest)) 82%, var(--color-ink)));
  color: var(--button-hover-text, var(--color-paper));
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(47, 92, 44, 0.2), 0 20px 42px rgba(77, 59, 35, 0.16);
}

.intro-section,
.home-section,
.gallery-section,
.closing-cta {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: var(--space-xxl) 2rem;
}

.intro-section,
.home-section,
.gallery-section {
  position: relative;
  isolation: isolate;
  z-index: 0;
}

.intro-section::before,
.home-section::before,
.gallery-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(8rem, 30vw);
  height: 1px;
  background: rgba(82, 123, 40, 0.22);
  transform: translateX(-50%);
}

.intro-section::after,
.home-section-facility::after,
.home-section-pedagogy::after,
.home-section-info::after,
.closing-cta::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  background: var(--section-background);
  transform: translateX(-50%);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.intro-copy {
  max-width: var(--max-text);
  font-size: clamp(1.08rem, 1.6vw, 1.24rem);
}

.intro-copy p {
  margin: 0 0 1rem;
}

.intro-section {
  --section-background: linear-gradient(180deg, var(--page-welcome) 0%, #fff9e4 62%, var(--section-fade) 100%);
  --section-accent: var(--page-welcome-nav);
  --button-bg: var(--page-welcome-accent);
  --button-hover: var(--page-welcome-nav);
  --button-text: var(--color-ink);
  --button-hover-text: var(--color-paper);
  padding-top: clamp(6.5rem, 10vw, 9rem);
  padding-bottom: clamp(5.5rem, 8vw, 7.25rem);
  background: transparent;
}

.intro-section .section-label {
  margin-bottom: 0.45rem;
  color: var(--page-welcome-nav);
}

.home-section {
  position: relative;
}

.home-section-facility {
  --section-background: linear-gradient(180deg, var(--page-facility) 0%, #f0fae3 62%, var(--section-fade) 100%);
  --section-accent: var(--page-facility-nav);
  --button-bg: var(--page-facility-accent);
  --button-hover: var(--page-facility-nav);
  --button-text: var(--color-ink);
  --button-hover-text: var(--color-paper);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-top: clamp(4rem, 7vw, 6rem);
  background: transparent;
}

.home-section-facility .eyebrow {
  color: var(--page-facility-accent);
}

.section-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 8px solid rgba(255, 253, 247, 0.92);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--color-cream);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.section-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-photo:focus-visible,
.photo-card:focus-visible,
.closing-photos button:focus-visible {
  outline: 3px solid var(--color-sun);
  outline-offset: 4px;
}

.section-panel {
  padding: clamp(0rem, 2vw, 1.25rem) 0;
}

.facility-photo-stack {
  position: relative;
  min-height: 520px;
}

.facility-photo-stack .section-photo {
  position: absolute;
}

.facility-photo-main {
  left: 0;
  top: 1.4rem;
  width: 76%;
  height: 370px;
  transform: rotate(-1.2deg);
}

.facility-photo-small {
  right: 2%;
  top: 0;
  width: 36%;
  height: 255px;
  transform: rotate(2deg);
}

.facility-photo-wide {
  right: 8%;
  bottom: 0;
  width: 56%;
  height: 230px;
  transform: rotate(1.4deg);
}

.section-panel p,
.pedagogy-copy p,
.info-band p {
  margin: var(--space-md) 0 0;
}

.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: var(--space-lg);
}

.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 2px solid var(--color-line);
  border-radius: 999px;
  padding: 0.42rem 0.78rem;
  background: #fff;
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  white-space: normal;
  transition: border-color 180ms ease, transform 180ms ease;
}

.section-links a:hover {
  border-color: var(--color-leaf);
  transform: translateY(-1px);
}

.home-section-pedagogy {
  --section-background: linear-gradient(180deg, var(--page-pedagogy) 0%, #fff6ef 62%, var(--section-fade) 100%);
  --section-accent: var(--page-pedagogy-nav);
  --button-bg: var(--page-pedagogy-accent);
  --button-hover: var(--page-pedagogy-nav);
  --button-text: var(--color-paper);
  --button-hover-text: var(--color-paper);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(360px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-inline: max(2rem, calc((100vw - var(--max-wide)) / 2));
  background: transparent;
}

.pedagogy-copy {
  max-width: 36rem;
}

.pedagogy-copy .eyebrow {
  color: var(--page-pedagogy-nav);
}

.section-routes {
  display: grid;
  gap: 0.72rem;
  margin-top: clamp(1.15rem, 2vw, 1.65rem);
}

.section-routes a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.62rem;
  align-items: baseline;
  border-bottom: 1px solid color-mix(in srgb, var(--section-accent, var(--color-leaf)) 28%, transparent);
  padding: 0 0 0.7rem;
  color: var(--color-ink);
  text-decoration: none;
}

.section-routes span {
  color: var(--section-accent, var(--color-leaf));
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.section-routes strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
  line-height: 1.12;
}

.section-routes a:hover span {
  transform: translateX(0.16rem);
}

.section-routes a:hover strong {
  color: var(--section-accent, var(--color-forest));
}

.pedagogy-photo-stack {
  position: relative;
  min-height: 520px;
}

.pedagogy-photo-stack .section-photo {
  position: absolute;
}

.pedagogy-photo-main {
  right: 0;
  top: 0.7rem;
  width: 56%;
  height: 410px;
  transform: rotate(1.4deg);
}

.pedagogy-photo-wide {
  left: 0;
  top: 4.2rem;
  width: 58%;
  height: 285px;
  transform: rotate(-2deg);
}

.pedagogy-photo-small {
  left: 22%;
  bottom: 0;
  width: 42%;
  height: 210px;
  transform: rotate(2.6deg);
}

.home-section-info {
  --section-background: linear-gradient(180deg, var(--page-info) 0%, #faf1e4 62%, var(--section-fade) 100%);
  --section-accent: var(--page-info-nav);
  --button-bg: var(--page-info-accent);
  --button-hover: var(--page-info-nav);
  --button-text: var(--color-paper);
  --button-hover-text: var(--color-paper);
  max-width: none;
  display: grid;
  grid-template-columns: minmax(300px, 0.54fr) minmax(0, 0.82fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-inline: max(2rem, calc((100vw - var(--max-wide)) / 2));
  background: transparent;
}

.info-band {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  background: transparent;
  color: var(--color-text);
}

.info-band .eyebrow,
.info-band h2 {
  color: var(--color-ink);
}

.info-band .eyebrow {
  color: var(--page-info-nav);
}

.info-band .section-cta {
  align-self: flex-start;
  min-width: 14rem;
}

.doorway-photo {
  aspect-ratio: 0.82;
}

.info-photo-stack {
  position: relative;
  min-height: 470px;
}

.info-photo-stack .doorway-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 78%;
  height: 420px;
  transform: rotate(1.5deg);
}

.info-small-photo {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 46%;
  height: 210px;
  transform: rotate(-3deg);
}

.section-photo:hover,
.section-photo:focus-visible {
  z-index: 8;
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
}

.gallery-section {
  padding-top: var(--space-lg);
  background: var(--color-paper);
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: var(--space-lg);
  align-items: end;
  margin-bottom: var(--space-md);
}

.gallery-heading h2 {
  max-width: 12ch;
}

.text-link {
  color: var(--color-leaf);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.photo-scatter {
  position: relative;
  min-height: 620px;
  margin-top: var(--space-lg);
}

.photo-card {
  position: absolute;
  display: block;
  border: 0;
  padding: 0.55rem;
  background: var(--color-paper);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(77, 59, 35, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.photo-card:hover {
  z-index: 5;
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
}

.photo-card img {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-md) - 2px);
  object-fit: cover;
}

.photo-card-large {
  left: 0;
  top: 2rem;
  width: 43%;
  height: 360px;
  transform: rotate(-2.5deg);
}

.photo-card-tall {
  left: 36%;
  top: 0;
  width: 26%;
  height: 470px;
  transform: rotate(1.8deg);
}

.photo-card-wide {
  right: 4%;
  top: 12rem;
  width: 38%;
  height: 270px;
  transform: rotate(-1deg);
}

.photo-card:not(.photo-card-large, .photo-card-tall, .photo-card-wide, .photo-card-small) {
  right: 0;
  top: 1.3rem;
  width: 33%;
  height: 260px;
  transform: rotate(2.4deg);
}

.photo-card:nth-child(5) {
  left: 18%;
  top: 25rem;
  width: 32%;
  height: 230px;
  transform: rotate(1.5deg);
}

.photo-card-small {
  right: 19%;
  top: 29rem;
  width: 25%;
  height: 210px;
  transform: rotate(-2.2deg);
}

.closing-cta {
  --section-background: linear-gradient(180deg, var(--page-contact) 0%, #f4fbfa 58%, var(--section-fade) 100%);
  --section-accent: var(--page-contact-nav);
  --button-bg: var(--page-contact-accent);
  --button-hover: var(--page-contact-nav);
  --button-text: var(--color-paper);
  --button-hover-text: var(--color-paper);
  position: relative;
  isolation: isolate;
  z-index: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.55fr);
  align-items: center;
  gap: var(--space-lg);
  overflow: visible;
  border-top: 1px solid rgba(82, 123, 40, 0.12);
  background: transparent;
  margin-top: clamp(3.5rem, 8vw, 7rem);
  margin-bottom: 0;
}

.closing-copy {
  max-width: 700px;
}

.closing-copy .eyebrow {
  color: var(--page-contact-nav);
}

.closing-cta h2 {
  max-width: 18ch;
}

.closing-cta p:not(.eyebrow) {
  max-width: 40rem;
  margin: 1rem 0 0;
}

.closing-cta .button {
  margin-top: var(--space-lg);
}

.closing-cta .button-primary {
  background: var(--button-bg);
  color: var(--button-text);
}

.closing-cta .button-primary:hover {
  background: var(--button-hover);
  color: var(--button-hover-text);
}

.closing-photos {
  position: relative;
  min-height: 360px;
}

.closing-photos button {
  position: absolute;
  overflow: hidden;
  border: 8px solid var(--color-paper);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--color-paper);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.closing-photos img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-photos button:first-child {
  left: 0;
  top: 2rem;
  width: 72%;
  height: 220px;
  transform: rotate(-2deg);
}

.closing-photos button:last-child {
  right: 0;
  bottom: 1.5rem;
  width: 58%;
  height: 250px;
  transform: rotate(2.5deg);
}

.closing-photos button:hover,
.closing-photos button:focus-visible {
  z-index: 8;
  transform: rotate(0deg) translateY(-4px);
  box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(420px, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(3rem, 6vw, 5rem) max(2rem, calc((100vw - var(--max-wide)) / 2)) 1.35rem;
  border-top: 1px solid rgba(155, 90, 24, 0.16);
  background: var(--color-cream);
  color: var(--color-ink);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.footer-main p {
  max-width: 28rem;
  margin-top: var(--space-md);
  color: var(--color-text);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  font-weight: 900;
  line-height: 1.25;
}

.footer-mark {
  width: auto;
  height: 58px;
}

.footer-wordmark {
  width: min(18rem, 48vw);
  height: auto;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 4vw, 3rem);
}

.footer-nav div {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.footer-nav strong {
  margin-bottom: 0.4rem;
  color: var(--color-bark);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--color-forest);
  font-weight: 900;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.22em;
}

.footer-note {
  color: var(--color-muted);
  text-align: right;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  border-top: 1px solid rgba(155, 90, 24, 0.16);
  padding-top: 1.25rem;
  color: var(--color-muted);
}

/* Großbild der Galerie: dunkle Vollfläche, runde Pfeile, mobil per Wischen. */
.gallery-modal {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 4.5rem max(6rem, 8vw) 2rem;
  overflow: hidden;
  background: transparent;
  color: var(--color-paper);
}

.gallery-modal[open] {
  display: grid;
  place-items: center;
  animation: gallery-fade-in 220ms ease-out;
}

.gallery-modal::backdrop {
  background: rgba(24, 18, 12, 0.93);
  backdrop-filter: blur(6px);
}

/* Die Seite dahinter scrollt nicht mit. Am body, damit die Scrollposition erhalten bleibt. */
body:has(.gallery-modal[open]) {
  overflow: hidden;
}

.gallery-modal figure {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 100%;
  margin: 0;
  /* Waagerechtes Wischen übernimmt die Galerie, senkrecht bleibt beim Browser. */
  touch-action: pan-y pinch-zoom;
}

.gallery-modal img {
  width: auto;
  max-width: 100%;
  max-height: calc(100dvh - 10rem);
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-modal img.is-from-next {
  animation: gallery-from-next 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-modal img.is-from-prev {
  animation: gallery-from-prev 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-modal figcaption {
  max-width: 62ch;
  color: rgba(255, 253, 247, 0.92);
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.gallery-modal button {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 253, 247, 0.14);
  color: var(--color-paper);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.gallery-modal button svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.gallery-modal .modal-prev,
.gallery-modal .modal-next {
  position: absolute;
  top: 50%;
  width: 3.75rem;
  height: 3.75rem;
  background: var(--color-sun);
  color: var(--color-ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  translate: 0 -50%;
}

.gallery-modal button:hover,
.gallery-modal button:focus-visible {
  background: var(--color-paper);
  color: var(--color-ink);
}

.gallery-modal button:active {
  transform: scale(0.92);
}

.gallery-modal :focus-visible {
  outline: 3px solid var(--color-paper);
  outline-offset: 4px;
}

.modal-prev {
  left: clamp(0.75rem, 2.5vw, 2rem);
}

.modal-next {
  right: clamp(0.75rem, 2.5vw, 2rem);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.modal-controls {
  display: contents;
}

.modal-count {
  position: absolute;
  top: 1.85rem;
  left: 1.5rem;
  margin: 0;
  color: rgba(255, 253, 247, 0.78);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  line-height: 1;
}

.modal-count-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes gallery-fade-in {
  from { opacity: 0; }
}

@keyframes gallery-from-next {
  from { opacity: 0; transform: translateX(3rem) scale(0.98); }
}

@keyframes gallery-from-prev {
  from { opacity: 0; transform: translateX(-3rem) scale(0.98); }
}

@media (max-width: 640px) {
  .gallery-modal {
    padding: 4.5rem 0.75rem calc(6.5rem + env(safe-area-inset-bottom));
  }

  .gallery-modal img {
    max-height: calc(100dvh - 15rem);
  }

  .gallery-modal figcaption {
    font-size: 0.95rem;
  }

  /* Pfeile mobil unten in Daumenreichweite, der Zähler dazwischen. */
  .modal-controls {
    position: absolute;
    right: 0;
    bottom: calc(1.25rem + env(safe-area-inset-bottom));
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.75rem;
  }

  .gallery-modal .modal-prev,
  .gallery-modal .modal-next {
    position: static;
    translate: none;
  }

  .modal-count {
    position: static;
    min-width: 4.5rem;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-modal[open],
  .gallery-modal img.is-from-next,
  .gallery-modal img.is-from-prev {
    animation: none;
  }
}

.nav-item.is-active .nav-parent-link {
  border-bottom-color: var(--nav-accent, var(--color-apple));
  color: var(--nav-text, var(--color-ink));
}

.facility-page {
  --section-accent: var(--page-facility-nav);
  --button-bg: var(--page-facility-accent);
  --button-hover: var(--page-facility-nav);
  --button-text: var(--color-ink);
  --button-hover-text: var(--color-paper);
}

.page-hero-media,
.page-hero-copy {
  grid-area: 1 / 1;
}

.page-hero-media img {
  object-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(30, 23, 16, 0.88), rgba(30, 23, 16, 0.6) 58%, rgba(30, 23, 16, 0.18)),
    rgba(30, 23, 16, 0.12);
}

.page-hero-copy {
  color: var(--color-paper);
}

.page-hero-copy .eyebrow,
.page-hero-copy h1 {
  color: var(--color-paper);
}

.page-hero-copy .eyebrow {
  /* helleres Grün als der Akzent, damit die Dachzeile auf dem Foto genug Kontrast hat */
  color: #b4e04a;
}

.page-hero-copy p:not(.eyebrow) {
  max-width: 44rem;
  margin: var(--space-md) 0 0;
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
}

.page-anchor-nav {
  position: sticky;
  top: 64px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(82, 123, 40, 0.14);
  background: rgba(255, 253, 247, 0.96);
  backdrop-filter: blur(12px);
}

.page-anchor-nav a {
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.72rem;
  color: var(--page-facility-nav);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
}

.page-anchor-nav a:hover,
.page-anchor-nav a:focus-visible {
  background: var(--page-facility);
}

.facility-overview,
.facility-detail-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 2rem;
}

.facility-overview {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  background: var(--color-paper);
}

.facility-overview p:not(.eyebrow) {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.08rem, 1.7vw, 1.28rem);
}

.section-kicker {
  margin-bottom: 1rem;
  color: var(--page-facility-nav);
}

.group-section {
  position: relative;
  isolation: isolate;
}

.group-section::before,
.day-section::before,
.garden-section::before,
.team-carrier-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
}

.group-section::before {
  background: linear-gradient(180deg, var(--page-facility) 0%, #f3fae7 100%);
}

.group-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(440px, 1.18fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.group-copy {
  max-width: 42rem;
}

.group-copy p {
  margin: var(--space-md) 0 0;
}

.group-places {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  width: min(112%, 56rem);
  min-height: 0;
  margin-left: -6%;
  padding: 2rem 0;
}

.group-places::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 4.35rem;
  height: 0.3rem;
  border-radius: 999px;
  background: var(--page-facility-accent);
}

.group-place {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-width: 0;
  border: 8px solid var(--color-paper);
  padding: 0;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.group-place img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.group-place span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  padding: 0.48rem 0.72rem;
  background: rgba(255, 253, 247, 0.94);
  color: var(--page-facility-nav);
  font-weight: 950;
  line-height: 1;
}

.group-place-oasis span {
  left: 50%;
  color: var(--color-paper);
  background: var(--page-facility-nav);
  transform: translateX(-50%);
  white-space: nowrap;
}

.group-place-left,
.group-place-right {
  height: auto;
  aspect-ratio: 3 / 4;
}

.group-place-left {
  margin-right: -2.2rem;
  transform: rotate(-1.2deg);
}

.group-place-right {
  margin-left: -2.2rem;
  transform: rotate(1.2deg);
}

/* Die Oase liegt bewusst kleiner hinter den beiden Gruppenräumen. */
.group-place-oasis {
  z-index: 0;
  height: auto;
  aspect-ratio: 3 / 4;
  margin: 0 0 2.4rem;
  transform: scale(0.82);
}

.group-place:hover,
.group-place:focus-visible {
  z-index: 4;
  transform: translateY(-0.45rem) rotate(0deg);
  box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
}

.group-place:focus-visible,
.oasis-strip button:focus-visible {
  outline: 3px solid var(--page-facility-nav);
  outline-offset: 4px;
}

.group-gallery-heading {
  max-width: 42rem;
  margin-top: clamp(3.5rem, 7vw, 6rem);
}

.group-gallery-heading h3 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

.oasis-strip {
  position: relative;
  min-height: 31rem;
  margin-top: clamp(1.5rem, 4vw, 2.8rem);
}

.oasis-strip button,
.room-path button,
.garden-gallery button,
.carrier-image button {
  overflow: hidden;
  border: 8px solid rgba(255, 253, 247, 0.92);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--color-paper);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.oasis-strip button:hover,
.room-path button:hover,
.garden-gallery button:hover,
.carrier-image button:hover {
  z-index: 8;
  transform: translateY(-4px) rotate(0deg);
  box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
}

.oasis-strip img,
.room-path img,
.garden-gallery img,
.carrier-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oasis-strip button:first-child {
  position: absolute;
  left: 2%;
  top: 2rem;
  z-index: 1;
  width: 40%;
  height: 21rem;
  transform: rotate(-2.4deg);
}

.oasis-strip button:nth-child(2) {
  position: absolute;
  left: 29%;
  top: 0;
  z-index: 3;
  width: 39%;
  height: 25rem;
  transform: rotate(1.5deg);
}

.oasis-strip button:nth-child(3) {
  position: absolute;
  right: 2%;
  top: 3rem;
  z-index: 2;
  width: 29%;
  height: 26rem;
  transform: rotate(2.6deg);
}

.oasis-strip button:last-child {
  position: absolute;
  left: 16%;
  bottom: 0;
  z-index: 4;
  width: 47%;
  height: 13rem;
  transform: rotate(-1deg);
}

.day-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.day-section::before {
  background: linear-gradient(180deg, var(--color-paper) 0%, #f7fbef 100%);
}

.day-heading {
  position: sticky;
  top: 138px;
}

.day-heading p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

/* Gemeinsame Spalten für alle Zeilen: Die Titelspalte richtet sich nach dem längsten Titel. */
.day-rhythm {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.3fr) max-content minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.day-rhythm li {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  align-items: baseline;
  border-top: 1px solid rgba(82, 123, 40, 0.2);
  padding: 1.05rem 0;
}

.day-rhythm time {
  color: var(--page-facility-nav);
  font-weight: 950;
}

.day-rhythm strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.1;
}

.day-rhythm span {
  color: var(--color-text);
}

.content-note {
  grid-column: 2;
  margin: -0.3rem 0 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.rooms-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.8rem);
}

.rooms-heading {
  max-width: 760px;
}

.rooms-heading p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

.room-path {
  display: grid;
  gap: 1rem;
}

.room-path article {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  border-top: 1px solid rgba(82, 123, 40, 0.16);
  padding-top: 1rem;
}

.room-path button {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

.room-path h3 {
  color: var(--page-facility-nav);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.room-path p {
  max-width: 28rem;
  margin: 0.45rem 0 0;
}

.garden-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.garden-section::before {
  background: linear-gradient(180deg, var(--page-facility) 0%, #f0fae3 62%, var(--color-paper) 100%);
}

.garden-copy p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

.garden-gallery {
  position: relative;
  min-height: 520px;
}

.garden-gallery button {
  position: absolute;
}

.garden-gallery button:first-child {
  left: 0;
  top: 2rem;
  width: 66%;
  height: 330px;
  transform: rotate(-1.8deg);
}

.garden-gallery button:nth-child(2) {
  right: 0;
  top: 0;
  width: 44%;
  height: 260px;
  transform: rotate(2deg);
}

.garden-gallery button:last-child {
  right: 10%;
  bottom: 0;
  width: 55%;
  height: 245px;
  transform: rotate(-0.8deg);
}

.team-carrier-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(280px, 0.82fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.team-carrier-section::before {
  background: linear-gradient(180deg, var(--color-paper) 0%, #f6fbec 100%);
}

.team-panel p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

.carrier-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.52fr) minmax(300px, 0.9fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.carrier-image button {
  height: clamp(250px, 34vw, 450px);
  transform: rotate(-1.4deg);
}

.carrier-copy p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

/* Pädagogische Arbeit */
.pedagogy-page {
  --section-accent: var(--page-pedagogy-nav);
  --button-bg: var(--page-pedagogy-accent);
  --button-hover: var(--page-pedagogy-nav);
  --button-text: var(--color-paper);
  --button-hover-text: var(--color-paper);
}

.page-hero-pedagogy::after {
  background: linear-gradient(90deg, rgba(48, 27, 16, 0.86) 0%, rgba(48, 27, 16, 0.6) 48%, rgba(48, 27, 16, 0.16) 100%);
}

.page-hero-pedagogy .page-hero-media img {
  object-position: center 45%;
}

.page-hero-pedagogy .eyebrow,
.pedagogy-page .eyebrow {
  color: var(--page-pedagogy-nav);
}

.page-hero-pedagogy .eyebrow {
  color: #ffd6b9;
}

.pedagogy-anchor-nav a {
  color: var(--page-pedagogy-nav);
}

.pedagogy-section {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: clamp(4.5rem, 8vw, 7rem) 2rem;
}

.pedagogy-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--page-pedagogy) 0%, #fff8f3 100%);
}

.pedagogy-intro-heading p:not(.eyebrow),
.faith-copy p:not(.eyebrow),
.inclusion-heading p:not(.eyebrow),
.settling-heading p:not(.eyebrow),
.school-copy > p:not(.eyebrow),
.music-heading p:not(.eyebrow),
.parents-heading p:not(.eyebrow) {
  margin: var(--space-md) 0 0;
}

.principle-path {
  display: grid;
  gap: 0;
  align-self: center;
}

.principle-path article {
  display: grid;
  grid-template-columns: minmax(8rem, 0.45fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(189, 76, 28, 0.24);
  padding: 1.2rem 0;
}

.principle-path span {
  color: var(--page-pedagogy-nav);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 900;
}

.principle-path p {
  margin: 0;
}

.faith-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.78fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.faith-media {
  position: relative;
  min-height: 31rem;
}

.faith-media button,
.inclusion-visual > button,
.school-media > button {
  overflow: hidden;
  border: 7px solid var(--color-paper);
  border-radius: var(--radius-md);
  padding: 0;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.faith-media img,
.inclusion-visual img,
.school-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faith-media button:first-child {
  position: absolute;
  left: 0;
  top: 0;
  width: 76%;
  height: 25rem;
  transform: rotate(-1.4deg);
}

.faith-media button:last-child {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 48%;
  height: 17rem;
  transform: rotate(1.6deg);
}

/* Schmalere Textspalte: kleinere Überschrift, damit „Kindergartenalltag.“ nicht überläuft. */
:where(.faith-copy) h2 {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
}

.faith-welcome {
  border-left: 0.35rem solid var(--page-pedagogy-accent);
  padding-left: 1rem;
  color: var(--color-ink);
  font-weight: 900;
}

.inclusion-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.inclusion-section::before,
.school-section::before,
.pedagogy-closing::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: 100vw;
  transform: translateX(-50%);
}

.inclusion-section::before {
  background: #fff1e7;
}

.inclusion-visual {
  display: grid;
}

.inclusion-visual > button {
  height: 25rem;
}

.settling-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(340px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
}

.settling-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: settling;
}

.settling-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(0, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(189, 76, 28, 0.24);
  padding: 1.25rem 0 1.25rem 3.2rem;
  counter-increment: settling;
}

.settling-steps li::before {
  content: counter(settling);
  position: absolute;
  left: 0;
  top: 1rem;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--page-pedagogy-accent);
  color: var(--color-paper);
  font-weight: 950;
}

.settling-steps strong {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.content-placeholder,
.image-placeholder {
  border: 2px dashed rgba(189, 76, 28, 0.42);
  padding: 1rem;
  background: rgba(255, 244, 235, 0.68);
  color: var(--color-muted);
}

.content-placeholder {
  grid-column: 2;
  display: grid;
  gap: 0.25rem;
}

.content-placeholder strong,
.image-placeholder strong {
  color: var(--page-pedagogy-nav);
}

.school-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.68fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.school-copy h2 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 4.6vw, 5rem);
  line-height: 0.98;
}

.school-copy > p:not(.eyebrow) {
  max-width: 39rem;
}

.school-section::before {
  background: #fff4ec;
}

.fox-time {
  display: grid;
  grid-template-columns: minmax(10rem, 0.42fr) minmax(0, 1fr);
  column-gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  border-top: 2px solid var(--page-pedagogy-accent);
  padding-top: 1.25rem;
}

.fox-time > span {
  grid-row: 1 / span 2;
  color: var(--page-pedagogy-nav);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fox-time h3 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.fox-time p {
  margin: 0.75rem 0 0;
  max-width: 34rem;
}

.school-media {
  width: min(100%, 32rem);
  justify-self: end;
}

.school-media > button {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  transform: rotate(-0.7deg);
}

/* Musikalische Früherziehung: kurzer Hinweis mit zwei Eckdaten als Karten */
.music-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(340px, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

/* Kurzer Hinweis: kleinere Überschrift als bei den großen Abschnitten. */
:where(.music-heading) h2 {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
}

.music-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.music-facts div {
  border-top: 3px solid var(--page-pedagogy-accent);
  padding: 1.5rem 1.6rem;
  background: var(--page-pedagogy);
}

.music-facts dt {
  /* etwas dunkler als die Navigationsfarbe, damit der Kontrast auf dem Pfirsich-Ton reicht */
  color: #b3460f;
  font-weight: 800;
}

.music-facts dd {
  margin: 0.3rem 0 0;
  color: var(--color-ink);
  font: 700 clamp(1.6rem, 2.8vw, 2.4rem) / 1.1 var(--font-display);
}

.image-placeholder {
  min-height: 15rem;
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.image-placeholder svg {
  width: 2rem;
  fill: none;
  stroke: var(--page-pedagogy-nav);
  stroke-width: 1.6;
}

.parents-section {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.parents-heading {
  max-width: 50rem;
}

.parent-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(189, 76, 28, 0.24);
  border-bottom: 1px solid rgba(189, 76, 28, 0.24);
}

.parent-links article {
  min-height: 10rem;
  display: grid;
  align-content: center;
  gap: 0.4rem;
  border-right: 1px solid rgba(189, 76, 28, 0.24);
  padding: 1.3rem;
}

.parent-links article:last-child {
  border-right: 0;
}

.parent-links strong {
  color: var(--page-pedagogy-nav);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.parents-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 2rem;
}

.parents-footer p {
  max-width: 48rem;
  margin: 0;
}

.parents-footer .content-placeholder {
  grid-column: auto;
}

.pedagogy-closing {
  position: relative;
  isolation: isolate;
}

.pedagogy-closing::before {
  background: var(--page-contact);
}

.home-current {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(4.5rem, 8vw, 7rem) max(2rem, calc((100vw - var(--max-wide)) / 2));
  background: var(--page-info);
}

.home-current-heading .eyebrow {
  /* dunkleres Grün für ausreichenden Kontrast auf dem Sandton */
  color: #466b22;
}

.home-current-heading h2,
.info-section h2 {
  margin: 0.35rem 0 1rem;
  color: var(--color-ink);
  font: 700 clamp(2.2rem, 4.4vw, 4.6rem) / 1.04 var(--font-display);
}

.home-current-heading p:last-child {
  max-width: 34rem;
}

.home-current-list {
  align-self: center;
  border-top: 1px solid rgba(123, 67, 17, 0.28);
}

.home-current-list a {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(123, 67, 17, 0.28);
  text-decoration: none;
}

.home-current-list span,
.home-current-list i {
  color: var(--page-info-nav);
  font-style: normal;
  font-weight: 800;
}

.home-current > .section-cta {
  grid-column: 2;
  justify-self: start;
}

.page-hero-info::after {
  background: linear-gradient(90deg, rgba(43, 28, 14, 0.8), rgba(43, 28, 14, 0.24));
}

.page-hero-info .page-hero-media img {
  object-position: center 42%;
}

.page-hero-info .eyebrow,
.info-page .eyebrow {
  color: var(--page-info-nav);
}

.page-hero-info .eyebrow {
  color: #f3d2a5;
}

.info-section {
  padding: clamp(4.5rem, 8vw, 7rem) max(2rem, calc((100vw - var(--max-wide)) / 2));
}

.editorial-note {
  max-width: 56rem;
  margin: 2rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--page-info-accent);
  color: var(--color-muted);
}

.faq-list { max-width: 58rem; }
.faq-list details { border-top: 1px solid rgba(123, 67, 17, 0.28); }
.faq-list details:last-child { border-bottom: 1px solid rgba(123, 67, 17, 0.28); }
.faq-list summary { cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font-size: 1.12rem; font-weight: 800; }
.faq-list details p { max-width: 48rem; margin: 0 0 1.5rem; }
.info-closing { margin-top: clamp(3rem, 7vw, 6rem); }
.info-page .button-primary { background: var(--page-info-accent); color: #fff; }
.info-page .button-primary:hover { background: var(--page-info-nav); }

/* Infos: ruhige Service-Architektur statt gleichförmiger Inhaltsblöcke. */
.info-page {
  --info-rule: rgba(80, 47, 20, 0.2);
  --info-soft: #fbf5ea;
  --info-warm: #efe0c8;
}

.info-page .info-section h2 {
  max-width: 13ch;
}
.info-page .registration-portal { margin: 2rem 0 0; }
.info-page .faq-list { max-width: none; }
.info-page .faq-list details:first-child { border-top: 2px solid var(--page-info-accent); }
.info-page .faq-list summary { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

/* Verdichtete zweite Fassung: aktuelle Aufgaben vor Dokumentstruktur. */
.info-page .info-section { padding-block: clamp(3.5rem, 6vw, 5.5rem); }

@media (max-width: 640px) {
  .info-page .info-section { padding-block: 3.25rem; }
}

.contact-page {
  --button-bg: var(--page-contact-accent);
  --button-hover: var(--page-contact-nav);
  --button-text: #fff;
  --button-hover-text: #fff;
}

.page-hero-contact::after {
  background: linear-gradient(90deg, rgba(18, 56, 54, 0.88), rgba(18, 56, 54, 0.45) 66%, rgba(18, 56, 54, 0.2));
}

.page-hero-contact .page-hero-media img {
  object-position: center 48%;
}

.page-hero-contact .eyebrow,
.contact-page .eyebrow {
  color: var(--page-contact-nav);
}

.page-hero-contact .eyebrow {
  color: #a8e2dd;
}

.contact-section {
  padding: clamp(4.5rem, 8vw, 7rem) max(2rem, calc((100vw - var(--max-wide)) / 2));
}

.contact-heading,
.contact-form-intro,
.directions-copy {
  max-width: 45rem;
}

.contact-section h2 {
  margin: 0.35rem 0 1rem;
  color: var(--color-ink);
  font: 700 clamp(2.2rem, 4.4vw, 4.6rem) / 1.04 var(--font-display);
}

.contact-details {
  background: linear-gradient(110deg, var(--page-contact), var(--color-paper));
}

.contact-methods {
  display: grid;
  grid-template-columns: 0.8fr 1.35fr 1fr;
  margin-top: clamp(2.5rem, 6vw, 5rem);
  border-block: 1px solid rgba(31, 111, 107, 0.28);
  font-style: normal;
}

.contact-methods a {
  min-width: 0;
  padding: 1.6rem clamp(1rem, 2.4vw, 2rem);
  border-right: 1px solid rgba(31, 111, 107, 0.28);
  text-decoration: none;
}

.contact-methods a:first-child { padding-left: 0; }
.contact-methods a:last-child { border-right: 0; }
.contact-methods span,
.contact-methods small { display: block; }
.contact-methods span { color: var(--page-contact-nav); font-size: 0.85rem; font-weight: 900; text-transform: uppercase; }
.contact-methods strong { display: block; margin: 0.35rem 0; overflow-wrap: anywhere; color: var(--color-ink); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.35; }
.contact-methods small { color: var(--color-muted); }
.contact-methods a:hover strong { color: var(--page-contact-nav); }

.contact-form-section {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(3rem, 7vw, 7rem);
  background: var(--color-paper);
}

.contact-form-intro {
  align-self: start;
  position: sticky;
  top: 8rem;
}

.form-required {
  margin-top: 2rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: var(--color-ink); font-size: 0.95rem; font-weight: 800; }
.form-field label span { color: var(--color-muted); font-size: 0.82rem; font-weight: 600; }

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(31, 111, 107, 0.38);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  background: #fff;
  color: var(--color-text);
  font: inherit;
}

.form-field textarea { min-height: 11rem; resize: vertical; }
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--page-contact-nav); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--page-contact-nav); outline: 3px solid rgba(45, 133, 129, 0.2); }

.form-consent {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.75rem;
  align-items: start;
  margin-top: 0.5rem;
}

.form-consent input { width: 1.2rem; height: 1.2rem; margin: 0.25rem 0 0; accent-color: var(--page-contact-nav); }
.form-consent label { font-size: 0.9rem; }
.form-submit { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }
.form-submit p { margin: 0; max-width: 22rem; color: var(--color-muted); font-size: 0.85rem; }

.directions-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(24rem, 1.2fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
  background: linear-gradient(110deg, var(--page-contact), #f7fcfb);
}

.directions-copy .button { margin-top: 1.5rem; }
.directions-image { margin: 0; }
.directions-image-media { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.directions-image-media img { display: block; }
.directions-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.directions-image figcaption { margin-top: 0.55rem; color: var(--color-muted); font-size: 0.85rem; }

@media (max-width: 920px) {
  .contact-form-section,
  .directions-section { grid-template-columns: 1fr; }
  .contact-form-intro { position: static; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-methods a,
  .contact-methods a:first-child { padding: 1.25rem 0; border-right: 0; border-bottom: 1px solid rgba(31, 111, 107, 0.28); }
  .contact-methods a:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .contact-section { padding: 3.75rem 1rem; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .form-submit { align-items: stretch; }
  .form-submit .button { width: 100%; }
  .directions-section { gap: 2.5rem; }
}

@media (max-width: 920px) {
  .home-current { grid-template-columns: 1fr; }
  .home-current > .section-cta { grid-column: 1; }
}

@media (max-width: 640px) {
  .home-current,
  .info-section { padding: 3.75rem 1rem; }
  .home-current-list a { grid-template-columns: 1fr auto; gap: 0.25rem 1rem; }
  .home-current-list a span { grid-column: 1 / -1; }
}

@media (max-width: 920px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 1rem;
    min-height: 88px;
    padding-left: 9.6rem;
    padding-right: 5.25rem;
    position: sticky;
  }

  .site-header.is-compact {
    min-height: 74px;
    padding-left: 1.25rem;
  }

  .header-plaque {
    left: 1.25rem;
    width: 6.8rem;
    min-height: 9.25rem;
    padding: 0.62rem;
  }

  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0.75rem;
    right: 1.1rem;
    z-index: 80;
    width: 3.35rem;
    height: 3.35rem;
    border: 2px solid rgba(82, 123, 40, 0.2);
    border-radius: var(--radius-sm);
    padding: 0;
    background: var(--color-paper);
    color: var(--color-ink);
    cursor: pointer;
    font-weight: 900;
  }

  .nav-toggle strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .nav-toggle span {
    width: 1.35rem;
    height: 2px;
    display: block;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

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

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

  .main-nav {
    position: fixed;
    inset: 88px 0 auto auto;
    z-index: 29;
    width: min(88vw, 420px);
    height: calc(100vh - 88px);
    display: none;
    align-content: start;
    justify-content: stretch;
    gap: 0.15rem;
    padding: 1rem;
    overflow-y: auto;
    background: var(--color-paper);
    box-shadow: -18px 30px 70px rgba(77, 59, 35, 0.2);
  }

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

  .nav-link,
  .nav-parent-link {
    width: 100%;
    border-bottom: 1px solid rgba(82, 123, 40, 0.18);
    padding: 0.9rem 0.35rem;
  }

  .nav-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 3rem;
  }

  .nav-submenu-toggle {
    width: 3rem;
    height: 100%;
    min-height: 44px;
    border-bottom: 1px solid rgba(82, 123, 40, 0.18);
  }

  .flyout {
    grid-column: 1 / -1;
    position: static;
    min-width: 0;
    display: none;
    border: 0;
    border-radius: 0;
    padding: 0.25rem 0 0.8rem 0.75rem;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-info .flyout {
    right: auto;
    transform: none;
  }

  .nav-item.is-open .flyout,
  .nav-info.is-open .flyout {
    display: grid;
    transform: none;
  }

  .flyout::before {
    display: none;
  }

  .hero {
    min-height: 740px;
  }

  .hero::after {
    background: rgba(21, 18, 14, 0.48);
  }

  .hero-copy {
    align-self: center;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: var(--space-xl) 1.25rem;
  }

  .intro-grid,
  .home-section-facility,
  .home-section-pedagogy,
  .home-section-info,
  .facility-overview,
  .group-layout,
  .day-section,
  .garden-section,
  .team-carrier-section,
  .carrier-section {
    grid-template-columns: 1fr;
  }

  .pedagogy-intro,
  .faith-section,
  .inclusion-section,
  .settling-section,
  .school-section,
  .music-section {
    grid-template-columns: 1fr;
  }

  .faith-copy {
    order: -1;
  }

  .content-placeholder {
    grid-column: auto;
  }

  .parent-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .parent-links article:nth-child(2) {
    border-right: 0;
  }

  .parent-links article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(189, 76, 28, 0.24);
  }

  .page-hero,
  .hero-alt {
    height: 700px;
  }

  .page-hero-copy,
  .hero-alt-copy {
    width: min(620px, calc(100% - 4rem));
    padding-top: 7.5rem;
  }

  .page-hero h1,
  .hero-alt h1 {
    max-width: 11ch;
  }

  .page-anchor-nav {
    top: 74px;
  }

  .facility-overview,
  .facility-detail-section {
    padding-inline: 2rem;
  }

  .group-places {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .day-heading {
    position: static;
  }

  .content-note {
    grid-column: auto;
  }

  .garden-gallery {
    min-height: 430px;
  }

  .garden-gallery button:first-child {
    width: 62%;
    height: 300px;
  }

  .garden-gallery button:nth-child(2) {
    width: 42%;
    height: 225px;
  }

  .garden-gallery button:last-child {
    width: 52%;
    height: 200px;
  }

  .carrier-copy {
    order: -1;
  }

  .home-section-pedagogy {
    padding-inline: 2rem;
  }

  .facility-photo-stack {
    min-height: 430px;
  }

  .facility-photo-main {
    width: 66%;
    height: 330px;
  }

  .facility-photo-small {
    width: 34%;
    height: 210px;
  }

  .facility-photo-wide {
    right: 10%;
    width: 48%;
    height: 195px;
  }

  .home-section-info {
    padding-inline: 2rem;
  }

  .pedagogy-photo-stack {
    min-height: 430px;
  }

  .pedagogy-photo-main {
    right: 6%;
    width: 45%;
    height: 360px;
  }

  .pedagogy-photo-wide {
    width: 54%;
    height: 245px;
  }

  .pedagogy-photo-small {
    left: 34%;
    width: 34%;
    height: 180px;
  }

  .info-photo-stack {
    min-height: 430px;
  }

  .quick-actions {
    top: auto;
    right: 0.75rem;
    bottom: 5rem;
    width: 14rem;
  }

  .quick-actions a {
    width: 3.6rem;
    min-height: 3.6rem;
    padding: 0.8rem;
    border-radius: 999px;
    border-right: 1px solid rgba(82, 123, 40, 0.2);
  }

  .quick-actions a:hover,
  .quick-actions a:focus-visible {
    width: 14rem;
    border-radius: var(--radius-sm);
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-brand,
  .footer-bottom {
    justify-content: flex-start;
    text-align: left;
  }

  .footer-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .site-header {
    padding: 0.75rem 1rem;
    align-items: center;
    gap: 0.8rem;
    justify-content: flex-start;
    min-height: 74px;
  }

  /* Schild-Logo anfangs groß; beim Scrollen übernimmt die kompakte Bildmarke. */
  .header-plaque {
    top: 0;
    left: 1rem;
    width: min(10.3rem, 42vw, 32vh);
    min-height: min(14.2rem, 58vw, 44vh);
    padding: 0.85rem;
    box-shadow: none;
  }

  .site-header.is-compact {
    padding-left: 1rem;
  }

  .brand {
    min-height: 58px;
    max-width: calc(100vw - 6.4rem);
  }

  .brand img {
    height: 54px;
  }

  .brand .brand-wordmark {
    width: min(9.8rem, calc(100vw - 9.25rem));
    height: auto;
  }

  .site-header {
    padding-left: 7.5rem;
    padding-right: 4.85rem;
  }

  .nav-toggle {
    top: 0.62rem;
    right: 0.85rem;
    width: 3.15rem;
    height: 3.15rem;
  }

  .main-nav {
    top: 74px;
    height: calc(100vh - 74px);
  }

  /* Hero füllt den sichtbaren Bereich zwischen Kopfzeile und Schnellzugriffen. */
  .page-hero,
  .hero-alt {
    height: auto;
    min-height: calc(100vh - 74px - 4.4rem);
    min-height: calc(100svh - 74px - 4.4rem - env(safe-area-inset-bottom));
  }

  .page-hero-media img {
    object-position: 44% 50%;
  }

  /* Verlauf von unten, wo der Text steht; auf der Startseite kürzer, damit die Gesichter hell bleiben */
  .hero-alt::after {
    background: linear-gradient(0deg, rgba(30, 23, 16, 0.9), rgba(30, 23, 16, 0.78) 42%, rgba(30, 23, 16, 0.5) 58%, rgba(30, 23, 16, 0.14) 82%, rgba(30, 23, 16, 0.08));
  }

  .page-hero::after {
    background: linear-gradient(0deg, rgba(30, 23, 16, 0.9), rgba(30, 23, 16, 0.8) 45%, rgba(30, 23, 16, 0.5) 72%, rgba(30, 23, 16, 0.18));
  }

  /* Text unten, damit Logo-Schild und Gesichter im Foto frei bleiben. */
  .page-hero-copy,
  .hero-alt-copy {
    align-self: end;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    /* Abstand unter dem Logo-Schild, falls der Text höher als der Bildschirm ist */
    padding-top: calc(min(14.2rem, 58vw, 44vh) - 74px + 1.5rem);
    padding-bottom: 2rem;
  }

  .page-hero h1,
  .hero-alt h1 {
    max-width: none;
    font-size: clamp(2.25rem, 9.4vw, 3.35rem);
  }

  .hero-alt h1 br {
    display: none;
  }

  .page-hero-copy p:not(.eyebrow) {
    max-width: none;
    font-size: 1rem;
  }

  .page-anchor-nav {
    top: 74px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-inline: 1rem;
  }

  .page-anchor-nav a {
    flex: 0 0 auto;
  }

  .hero {
    min-height: 690px;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    padding-inline: 1rem;
    overflow: hidden;
  }

  h1 {
    max-width: none;
    font-size: clamp(2.05rem, 8.6vw, 2.85rem);
  }

  h1,
  h2 {
    text-wrap: pretty;
  }

  h1 span {
    display: block;
  }

  .hero-logo {
    width: min(165px, 46vw);
  }

  .hero-copy p:not(.eyebrow) {
    max-width: 32ch;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .intro-copy {
    width: 100%;
    max-width: none;
  }

  h2 {
    font-size: clamp(1.75rem, 7.6vw, 2.45rem);
  }

  h2,
  .intro-section h2,
  .gallery-heading h2,
  .school-copy h2,
  .info-page .info-section h2 {
    max-width: none;
  }

  .hero-alt-media img {
    object-position: 58% 50%;
  }

  .hero-seal {
    top: 0.5rem;
    width: min(96px, 26vw);
  }

  .section-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .section-links a {
    justify-content: center;
    width: 100%;
  }

  .pedagogy-copy,
  .section-panel,
  .info-band,
  .closing-copy {
    width: 100%;
    max-width: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .closing-cta {
    grid-template-columns: 1fr;
  }

  .closing-photos {
    min-height: 300px;
    order: 1;
  }

  .closing-photos button:first-child {
    width: 72%;
    height: 190px;
  }

  .closing-photos button:last-child {
    width: 58%;
    height: 210px;
  }

  .intro-section,
  .home-section,
  .gallery-section,
  .closing-cta,
  .facility-overview,
  .facility-detail-section {
    padding: 3.75rem 1rem;
  }

  .facility-overview p:not(.eyebrow),
  .group-copy,
  .day-heading p:not(.eyebrow),
  .rooms-heading,
  .garden-copy,
  .team-panel,
  .carrier-copy {
    width: 100%;
    max-width: none;
  }

  .group-places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: calc(100% + 1.5rem);
    min-height: 0;
    margin-left: -0.75rem;
    padding-block: 0;
  }

  .group-places::before {
    bottom: 3.3rem;
  }

  .group-place-left,
  .group-place-right {
    height: auto;
    aspect-ratio: 3 / 4;
  }

  .group-place-left {
    margin-right: -1rem;
  }

  .group-place-right {
    margin-left: -1rem;
  }

  .group-place-oasis {
    height: auto;
    aspect-ratio: 3 / 4;
    margin: 0 0 1.2rem;
  }

  .group-place span {
    left: 0.45rem;
    bottom: 0.45rem;
    padding: 0.38rem 0.5rem;
    font-size: 0.78rem;
  }

  .group-place-oasis span {
    left: 50%;
  }

  .group-gallery-heading {
    max-width: calc(100% - 3.75rem);
  }

  .oasis-strip {
    min-height: 25rem;
  }

  .oasis-strip button:first-child {
    left: 0;
    width: 52%;
    height: 15rem;
  }

  .oasis-strip button:nth-child(2) {
    left: auto;
    right: 0;
    width: 54%;
    height: 16rem;
  }

  .oasis-strip button:nth-child(3) {
    right: 4%;
    top: auto;
    bottom: 0;
    width: 38%;
    height: 13rem;
  }

  .oasis-strip button:last-child {
    left: 8%;
    width: 50%;
    height: 11rem;
  }

  .day-rhythm {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
  }

  .day-rhythm li {
    grid-template-columns: 1fr;
    gap: 0.3rem;
    padding-right: 3.75rem;
  }

  .content-note {
    padding-left: 0;
  }

  .room-path article {
    grid-template-columns: 1fr;
  }

  .room-path button {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .garden-gallery {
    min-height: 380px;
  }

  .garden-gallery button:first-child {
    left: 0;
    top: 0.5rem;
    width: 78%;
    height: 245px;
    transform: rotate(-1deg);
  }

  .garden-gallery button:nth-child(2) {
    right: 0;
    top: 8.5rem;
    width: 47%;
    height: 150px;
    transform: rotate(2deg);
  }

  .garden-gallery button:last-child {
    left: 5%;
    bottom: 0;
    width: 68%;
    height: 150px;
    transform: rotate(-1.5deg);
  }

  .carrier-image {
    order: 1;
  }

  .intro-section {
    padding-top: 4.75rem;
    padding-bottom: 4.75rem;
  }

  .home-section-pedagogy {
    padding-inline: 1rem;
  }

  .home-section-facility {
    padding-inline: 1rem;
  }

  .home-section-facility .section-panel {
    order: -1;
  }

  .home-section-facility .facility-photo-stack {
    order: 1;
  }

  .home-section-info {
    padding-inline: 1rem;
  }

  .home-section-info .info-band {
    order: -1;
  }

  .home-section-info .info-photo-stack {
    order: 1;
  }

  .doorway-photo {
    aspect-ratio: 1;
  }

  .facility-photo-stack {
    position: relative;
    min-height: 380px;
  }

  .facility-photo-stack .section-photo {
    position: absolute;
  }

  .facility-photo-main {
    left: 0;
    top: 0.5rem;
    width: 78%;
    height: 245px;
    transform: rotate(-1deg);
  }

  .facility-photo-small {
    right: 0;
    top: 8.5rem;
    width: 47%;
    height: 150px;
    transform: rotate(2deg);
  }

  .facility-photo-wide {
    left: 5%;
    bottom: 0;
    width: 68%;
    height: 150px;
    transform: rotate(-1.5deg);
  }

  .pedagogy-photo-stack {
    position: relative;
    min-height: 390px;
  }

  .pedagogy-photo-stack .section-photo {
    position: absolute;
  }

  .pedagogy-photo-main {
    right: 0;
    top: 0.5rem;
    width: 72%;
    height: 250px;
    transform: rotate(1deg);
  }

  .pedagogy-photo-wide {
    left: 0;
    top: 5.8rem;
    width: 68%;
    height: 170px;
    transform: rotate(-2deg);
  }

  .pedagogy-photo-small {
    left: 24%;
    bottom: 0;
    width: 50%;
    height: 155px;
    transform: rotate(2.4deg);
  }

  .section-routes {
    gap: 0.85rem;
  }

  .closing-cta h2 {
    max-width: none;
  }

  .photo-scatter {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .photo-card,
  .photo-card-large,
  .photo-card-tall,
  .photo-card-wide,
  .photo-card-small,
  .photo-card:nth-child(5),
  .photo-card:not(.photo-card-large, .photo-card-tall, .photo-card-wide, .photo-card-small) {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    transform: none;
  }

  .photo-card-large,
  .photo-scatter .photo-card-large ~ .photo-card:last-child:nth-child(even) {
    grid-column: 1 / -1;
    aspect-ratio: 1.4;
  }

  .info-photo-stack {
    position: relative;
    min-height: 330px;
  }

  .info-photo-stack .doorway-photo {
    position: absolute;
    right: 0;
    top: 0;
    width: 76%;
    height: 290px;
    aspect-ratio: auto;
    transform: rotate(1.5deg);
  }

  .info-small-photo {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50%;
    height: 150px;
    aspect-ratio: auto;
    transform: rotate(-3deg);
  }

  .site-footer {
    padding: 1.25rem 1rem;
  }

  .pedagogy-section {
    padding: 3.75rem 1rem;
  }

  .principle-path article,
  .settling-steps li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .faith-media {
    min-height: 24rem;
  }

  .faith-media button:first-child {
    width: 82%;
    height: 18rem;
  }

  .faith-media button:last-child {
    width: 52%;
    height: 12rem;
  }

  .inclusion-visual > button {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .school-media {
    grid-template-columns: 1fr;
  }

  .school-media > button {
    height: auto;
    aspect-ratio: 4 / 5;
  }

  .parent-links,
  .parents-footer {
    grid-template-columns: 1fr;
  }

  .parent-links article,
  .parent-links article:nth-child(2),
  .parent-links article:last-child {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(189, 76, 28, 0.24);
  }

  .parent-links article:last-child {
    border-bottom: 0;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .footer-wordmark {
    width: min(15rem, calc(100vw - 6rem));
  }
}

.content-gallery-heading {
  max-width: 44rem;
  margin-top: clamp(4rem, 8vw, 7rem);
}

.content-gallery-heading h3 {
  margin-top: 0.25rem;
  font-size: clamp(1.9rem, 3.8vw, 3.25rem);
}

.content-gallery-heading p:not(.eyebrow) { margin: 0.8rem 0 0; }

.content-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 12vw, 11rem);
  gap: clamp(0.75rem, 1.8vw, 1.35rem);
  margin-top: clamp(1.75rem, 4vw, 3rem);
}

.content-gallery button,
.team-photos button {
  overflow: hidden;
  border: 8px solid var(--color-paper);
  border-radius: var(--radius-md);
  padding: 0;
  background: transparent;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(77, 59, 35, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-gallery button:hover,
.content-gallery button:focus-visible,
.team-photos button:hover,
.team-photos button:focus-visible {
  z-index: 3;
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(77, 59, 35, 0.2);
}

.content-gallery img,
.team-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Einheitliche fotografische Bildsprache; Logos und Hero-Bühnen bleiben randlos. */
:where(
  .section-photo,
  .photo-card,
  .closing-photos button,
  .content-gallery button,
  .team-photos button,
  .garden-gallery button,
  .group-place,
  .school-media > button,
  .directions-image
) {
  border: 8px solid var(--color-paper);
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .school-copy h2 {
    max-width: none;
    font-size: clamp(1.75rem, 7.6vw, 2.45rem);
    line-height: 1.05;
  }
  .fox-time { grid-template-columns: 1fr; }
  .fox-time > span { grid-row: auto; }
  .school-media { width: 100%; justify-self: stretch; }
  .music-facts { grid-template-columns: 1fr; }
}

.content-gallery button:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.content-gallery button:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.content-gallery button:nth-child(3) { grid-column: span 5; grid-row: span 2; }
.content-gallery button:nth-child(4) { grid-column: span 3; grid-row: span 2; }
.content-gallery button:nth-child(5) { grid-column: span 4; grid-row: span 2; }
.content-gallery button:nth-child(6) { grid-column: span 12; grid-row: span 2; }
.content-gallery-rooms button:nth-child(n + 3) { grid-column: span 4; }

.content-gallery-garden button:nth-child(1),
.content-gallery-garden button:nth-child(5) { grid-column: span 4; }
.content-gallery-garden button:nth-child(2),
.content-gallery-garden button:nth-child(4) { grid-column: span 5; }
.content-gallery-garden button:nth-child(3) { grid-column: span 3; }
.content-gallery-garden button:nth-child(6) { grid-column: span 12; }

/* Garten als eine zusammenhängende Bildgeschichte statt zweier Teilbereiche. */
.garden-gallery-heading {
  display: none;
}

.garden-section {
  align-items: start;
  row-gap: clamp(2rem, 4vw, 3.5rem);
}

.garden-section > .content-gallery-garden {
  grid-column: 1 / -1;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(8rem, 11vw, 10.5rem);
  gap: clamp(.8rem, 1.5vw, 1.2rem);
  margin-top: 0;
}

.content-gallery-garden button:nth-child(1) { grid-column: span 3; grid-row: span 3; }
.content-gallery-garden button:nth-child(2) { grid-column: span 5; grid-row: span 2; }
.content-gallery-garden button:nth-child(3) { grid-column: span 4; grid-row: span 2; }
.content-gallery-garden button:nth-child(4) { grid-column: span 5; grid-row: span 2; }
.content-gallery-garden button:nth-child(5) { grid-column: span 4; grid-row: span 3; }
.content-gallery-garden button:nth-child(6) { grid-column: span 3; grid-row: span 2; }

.content-gallery-garden button:nth-child(2),
.content-gallery-garden button:nth-child(5) { transform: rotate(.45deg); }
.content-gallery-garden button:nth-child(3),
.content-gallery-garden button:nth-child(4) { transform: rotate(-.45deg); }

@media (max-width: 920px) {
  .garden-section > .content-gallery-garden {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 15rem;
  }
  .content-gallery-garden button:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
    transform: none;
  }
  .content-gallery-garden button:nth-child(1),
  .content-gallery-garden button:nth-child(6) { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  /* Mobil zweispaltig, damit die Gartenbilder die Seite nicht übermäßig verlängern */
  .garden-section > .content-gallery-garden {
    grid-auto-rows: 9.5rem;
  }
  .content-gallery-garden button:nth-child(1) { grid-row: span 2; }
}

.team-photos {
  position: relative;
  min-height: clamp(24rem, 38vw, 31rem);
}

.team-photos button { position: absolute; }

.team-photo-main {
  left: 0;
  top: 0;
  width: 88%;
  height: 72%;
  transform: rotate(-1.2deg);
}

.team-photo-portrait {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 46%;
  height: 48%;
  transform: rotate(1.8deg);
}

.team-photo-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 253, 247, 0.96);
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: left;
}

.team-photo-caption small {
  display: block;
  margin-top: 0.18rem;
  color: var(--page-facility-nav);
  font-size: 0.76rem;
  font-weight: 800;
}

.team-photos .team-photo-main:hover,
.team-photos .team-photo-portrait:hover { transform: translateY(-4px) rotate(0deg); }

@media (max-width: 920px) {
  .content-gallery { grid-auto-rows: clamp(7rem, 18vw, 10rem); }
  .team-photos { min-height: 25rem; }
}

@media (max-width: 640px) {
  .content-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 9rem;
  }
  .content-gallery button:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .content-gallery button:nth-child(1),
  .content-gallery button:nth-child(6) { grid-column: 1 / -1; grid-row: span 2; }
  .team-photos { min-height: 21rem; }
  .team-photo-main { width: 92%; height: 70%; }
  .team-photo-portrait { width: 48%; height: 46%; }
}

@media (hover: hover) {
  .section-photo:hover,
  .closing-photos button:hover {
    z-index: 8;
    transform: rotate(0deg) translateY(-4px);
    box-shadow: 0 24px 60px rgba(77, 59, 35, 0.24);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Rechtliche Seiten (Impressum, Datenschutz) und Rechtslinks im Footer */
.legal-page {
  width: min(100% - 2rem, var(--max-text));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0 var(--space-xxl);
}

.legal-page h1 {
  max-width: none;
  margin: 0 0 var(--space-md);
  color: var(--color-ink);
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  hyphens: auto;
  -webkit-hyphens: auto;
}

.legal-page h2 {
  max-width: none;
  margin: var(--space-lg) 0 var(--space-xs);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.2;
}

.legal-page p,
.legal-page li {
  margin: 0 0 var(--space-sm);
  overflow-wrap: anywhere;
}

.legal-page ul {
  margin: 0 0 var(--space-sm);
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--color-forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal-page .legal-review {
  background: #fff1a8;
  color: var(--color-ink);
  padding: 0 0.2em;
}

.legal-page .legal-date {
  margin-top: var(--space-lg);
  color: var(--color-muted);
  font-size: 0.92rem;
}

.footer-bottom {
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  justify-content: space-between;
  align-items: baseline;
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: var(--space-md);
}

.footer-legal a {
  color: var(--color-forest);
  font-weight: 800;
  text-decoration: none;
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.closures-contact {
  margin: 0;
  align-self: center;
  font-weight: 800;
}

/* Kontaktformular: Einleitung oben bündig zum Formular */
.contact-form-section {
  align-items: start;
}

@media (max-width: 760px) {
  /* Schnellzugriffe als feste Leiste am unteren Rand statt schwebender Buttons */
  body {
    padding-bottom: calc(4.4rem + env(safe-area-inset-bottom));
  }

  .quick-actions {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    justify-items: stretch;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(82, 123, 40, 0.18);
    background: rgba(255, 253, 247, 0.97);
    box-shadow: 0 -10px 26px rgba(77, 59, 35, 0.1);
    pointer-events: auto;
  }

  .quick-actions a,
  .quick-actions a:hover,
  .quick-actions a:focus-visible {
    width: auto;
    min-height: 4.4rem;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.25rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .quick-actions a:focus-visible {
    outline: 3px solid var(--color-forest);
    outline-offset: -3px;
  }

  .quick-actions svg {
    box-sizing: border-box;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: var(--color-sun);
  }

  .quick-actions span {
    min-width: 0;
    opacity: 1;
    text-align: center;
  }

  .quick-actions strong {
    font-size: 0.78rem;
  }

  .quick-actions small {
    display: none;
  }

  .to-top {
    bottom: calc(5.4rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  /* Startseiten-Galerie: Überschrift volle Breite, Link darunter */
  .gallery-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }
}

@media (max-width: 480px) {
  /* Überschriften nutzen die volle Breite; nur extrem lange Wörter notfalls umbrechen */
  h1,
  h2,
  h3 {
    overflow-wrap: break-word;
  }
}

/* Links auf fremde Websites kennzeichnen (Hinweis der Datenschutzabteilung des Bistums) */
.greenfield-main a[target="_blank"]:not(.contact-methods a)::after {
  content: "\00a0↗" / " (externe Website, öffnet in neuem Fenster)";
  font-weight: inherit;
  text-decoration: none;
}

/* Einzelner Hinweis (Aktuelles): ruhige Textseite wie Impressum und Datenschutz */
.notice-single {
  width: min(100% - 2rem, var(--max-text));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) 0 var(--space-xxl);
}

.notice-single .eyebrow {
  color: var(--page-info-nav);
}

.notice-single h1 {
  max-width: none;
  margin: 0 0 var(--space-lg);
  color: var(--color-ink);
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  hyphens: auto;
  -webkit-hyphens: auto;
}

.notice-single-content > * {
  margin: 0 0 var(--space-sm);
}

.notice-single-content p {
  font-size: 1.08rem;
}

.notice-single-content .notice-facts {
  margin: var(--space-md) 0;
  padding: 1.25rem 1.5rem;
  border-left: 5px solid var(--page-info-accent);
  border-radius: var(--radius-sm);
  background: var(--page-info);
  list-style: none;
}

.notice-single-content .notice-facts li {
  padding: 0.3rem 0;
}

.notice-single-content .notice-facts strong {
  display: inline-block;
  min-width: 4.5rem;
  color: var(--page-info-nav);
}

.notice-single-back {
  margin: var(--space-lg) 0 0;
}

@media (max-width: 480px) {
  .notice-single-content .notice-facts strong {
    display: block;
  }
}
