/*
Theme Name: Rodentelgenschule Arnsberg
Theme URI: https://rodentelgengrundschule-arnsberg.de
Author: Proficus®
Description: Theme erstellt durch Proficus®. Version 3.3.4 verlinkt „Über uns“ dynamisch mit der WordPress-Startseite und kennzeichnet das Startdatum mehrtägiger Termine eindeutig.
Version: 3.3.4
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.1
Text Domain: rodentelgen
*/

:root {
  --color-green-950: #0c2e23;
  --color-green-900: #123b2d;
  --color-green-800: #1c5742;
  --color-green-700: #2d7459;
  --color-green-100: #e8f1ec;
  --color-cream: #f8f5ee;
  --color-sand: #e5d7b5;
  --color-clay: #c87d55;
  --color-white: #ffffff;
  --color-text: #22342d;
  --color-muted: #5e6f68;
  --shadow-soft: 0 20px 60px rgba(12, 46, 35, 0.12);
  --radius-lg: 24px;
  --radius-md: 18px;
  --container: 1180px;
}

/* V3 editorial additions: precise navigation drops, news and optional fields. */
.rd-nav-editing .rd-nav-managed-item.is-drop-before { box-shadow: inset 0 3px 0 var(--color-clay); }
.rd-nav-editing .rd-nav-managed-item.is-drop-after { box-shadow: inset 0 -3px 0 var(--color-clay); }
.rd-nav-editing .rd-nav-managed-item.is-drop-child { outline: 2px solid var(--color-clay); outline-offset: -2px; }
.rd-contact-field-toggle { margin-inline-start: auto; border: 0; background: transparent; color: var(--color-muted); cursor: pointer; border-radius: 50%; }
.rd-contact-field-toggle:hover, .rd-contact-field-toggle:focus-visible { color: #8b2f28; outline: 2px solid currentColor; }
.rd-contact-field-add { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem; }
.rd-contact-field-add button, .rd-news-add { border: 1px dashed var(--color-green-700); border-radius: 999px; background: var(--color-white); color: var(--color-green-800); padding: .45rem .75rem; cursor: pointer; font: inherit; }
.person-contact-list > div { position: relative; }
.rd-menu-choice { display: flex; align-items: center; gap: .5rem; margin-block: .5rem; }
.rd-download-modes { display: flex; gap: 1rem; border: 0; padding: 0; margin: 0 0 1rem; }
.rd-download-modes legend { font-weight: 700; margin-bottom: .5rem; }
.rd-download-modal .rd-confirm-modal__panel { width: min(42rem, calc(100vw - 2rem)); max-height: min(90vh, 90dvh); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rd-download-modal__header { flex: 0 0 auto; padding: 1.4rem 1.5rem .5rem; }
.rd-download-modal__header h2 { margin: 0; }
.rd-download-modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: .8rem 1.5rem 1.25rem; }
.rd-download-modal__footer { position: sticky; bottom: 0; flex: 0 0 auto; margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--color-green-100); background: var(--color-white); }
.rd-download-modal__footer .button { display: inline-flex; min-width: 8.5rem; min-height: 2.75rem; align-items: center; justify-content: center; border-radius: 999px; white-space: nowrap; }
.rd-download-modal__footer .button:hover { transform: translateY(-1px); }
.rd-download-modal__footer .button:focus-visible { outline: 3px solid var(--color-clay); outline-offset: 2px; }
.rd-section-control { display: flex; justify-content: flex-end; margin: 0 0 .65rem; }
.rd-section-control button, .rd-hidden-sections button { border: 1px solid rgb(45 116 89 / .35); border-radius: 999px; background: var(--color-white); color: var(--color-green-800); padding: .4rem .7rem; cursor: pointer; font: inherit; font-size: .82rem; }
.rd-section-control button:hover, .rd-section-control button:focus-visible { color: #8b2f28; border-color: currentColor; }
.rd-section-control button:focus-visible, .rd-hidden-sections button:focus-visible { outline: 3px solid var(--color-clay); outline-offset: 2px; }
.section--news .rd-section-control button { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .5); color: var(--color-white); }
.rd-hidden-sections { width: min(100% - 2rem, var(--container)); margin: 1.5rem auto; padding: 1rem 1.25rem; border: 1px dashed var(--color-green-700); border-radius: var(--radius-md); background: var(--color-green-100); color: var(--color-text); }
.rd-hidden-sections h2 { margin: 0 0 .75rem; font-size: 1rem; }
.rd-hidden-sections ul { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.rd-hidden-sections li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.section--news { background: linear-gradient(145deg, var(--color-green-950), var(--color-green-800)); color: var(--color-white); }
.section--news .eyebrow, .section--news .section-heading h2 { color: var(--color-white); }
.news-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.news-slider__viewport, .article-gallery__viewport { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
.news-slider__viewport::-webkit-scrollbar, .article-gallery__viewport::-webkit-scrollbar { display: none; }
.news-slider__track { display: flex; gap: 1.25rem; }
.news-card { flex: 0 0 calc((100% - 3.75rem) / 4); min-width: 0; scroll-snap-align: start; background: var(--color-white); color: var(--color-text); border-radius: 1rem; overflow: hidden; box-shadow: 0 12px 32px rgb(0 0 0 / .15); }
.news-card__image { display: block; aspect-ratio: 16 / 10; background: var(--color-green-100); overflow: hidden; }
.news-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-card:hover .news-card__image img { transform: scale(1.025); }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--color-green-700); font-size: 2rem; }
.news-card__body { padding: 1.1rem; }
.news-card time, .news-article__date { color: var(--color-muted); font-size: .9rem; }
.news-card h3 { margin: .35rem 0 .65rem; font-size: clamp(1.15rem, 1.5vw, 1.4rem); }
.news-card h3 a { color: var(--color-green-900); text-decoration: none; }
.news-card__excerpt { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; min-height: 4.5em; }
.news-card__excerpt p { margin: 0; }
.news-slider__controls, .article-gallery__controls { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.news-slider__controls button, .article-gallery__controls button { width: 2.75rem; height: 2.75rem; border: 1px solid currentColor; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.news-slider__controls button:disabled, .article-gallery__controls button:disabled { opacity: .35; cursor: default; }
.news-slider__controls button:focus-visible, .article-gallery__controls button:focus-visible { outline: 3px solid var(--color-clay); outline-offset: 3px; }
.news-all { margin-top: 1rem; text-align: center; }
.section--news .news-all .button { color: var(--color-white); border-color: rgb(255 255 255 / .65); }
.news-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.news-archive-grid .news-card { width: auto; }
.news-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.news-pagination a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-green-100); color: var(--color-green-900); }
.news-pagination a[aria-current="page"] { background: var(--color-green-800); color: var(--color-white); }
.news-article__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.article-gallery__track { display: flex; }
.article-gallery figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--color-green-100); }
.article-gallery img { width: 100%; height: 100%; object-fit: contain; }
.news-article__content { max-width: 78ch; margin-inline: auto; }
.rd-news-modal .rd-confirm-modal__panel { width: min(760px, calc(100vw - 2rem)); max-height: min(90vh, 90dvh); display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.rd-news-modal__header { flex: 0 0 auto; padding: 1.35rem 1.5rem .5rem; }
.rd-news-modal__header h2 { margin: 0; }
.rd-news-modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: .75rem 1.5rem 1.25rem; }
.rd-news-modal__footer { position: sticky; bottom: 0; flex: 0 0 auto; margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--color-green-100); background: var(--color-white); box-shadow: 0 -8px 24px rgb(12 46 35 / .08); }
.rd-news-modal textarea { resize: vertical; }
.rd-news-images__heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.rd-news-image-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: .75rem; padding: .5rem 0; border-top: 1px solid var(--color-green-100); }
.rd-news-image-row img { width: 80px; height: 60px; object-fit: cover; border-radius: .4rem; }
.rd-news-image-row > div { display: flex; gap: .25rem; }

@media (max-width: 1000px) {
  .news-card { flex-basis: calc((100% - 1.25rem) / 2); }
  .news-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .news-heading { align-items: start; flex-direction: column; }
  .news-card { flex-basis: 100%; }
  .news-archive-grid { grid-template-columns: 1fr; }
  .rd-news-image-row { grid-template-columns: 64px 1fr; }
  .rd-news-image-row > div { grid-column: 2; }
  .article-gallery figure { aspect-ratio: 4 / 3; }
  .rd-news-modal .rd-confirm-modal__panel { width: calc(100vw - 1rem); max-height: min(96vh, 96dvh); }
  .rd-news-modal__header { padding: 1rem 1rem .35rem; }
  .rd-news-modal__body { padding: .65rem 1rem 1rem; }
  .rd-news-modal__footer { padding: .75rem 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .news-card__image img { transition: none; }
  .news-slider__viewport, .article-gallery__viewport { scroll-behavior: auto; }
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  color: var(--color-text);
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(circle at top left, rgba(229, 215, 181, 0.2), transparent 28%),
    linear-gradient(180deg, #f4f7f3 0%, #ffffff 36%);
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

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

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--color-clay);
  outline-offset: 3px;
}

p {
  margin: 0 0 1rem;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  max-width: 100%;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.1;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  color: var(--color-green-950);
}

.text-word-intact {
  white-space: nowrap;
}

h1 {
  font-size: clamp(2.15rem, 7.5vw, 5.2rem);
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(1.8rem, 5.5vw, 3.4rem);
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.45rem;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2rem);
  padding-inline: 1rem;
  margin: 0 auto;
}

.container--narrow {
  max-width: calc(860px + 2rem);
}

.container--page {
  max-width: calc(980px + 3rem);
  padding-inline: 1.5rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(42px) scale(0.985);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 0s;
  will-change: opacity, transform;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.animate-on-scroll--delay-1 {
  transition-delay: 0.08s;
}

.animate-on-scroll--delay-2 {
  transition-delay: 0.16s;
}

.animate-on-scroll--delay-3 {
  transition-delay: 0.24s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 46, 35, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
  min-height: 86px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  color: var(--color-white);
}

.site-branding__logo,
.site-branding__leaf {
  width: 58px;
  min-width: 58px;
  max-width: 58px;
  height: 58px;
  min-height: 58px;
  max-height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e7d29d, #d7b66b);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  flex: 0 0 58px;
  padding: 0.35rem;
}

.site-branding__logo .custom-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.site-branding__logo .custom-logo {
  width: 86% !important;
  height: 86% !important;
  max-width: 86%;
  max-height: 86%;
  object-fit: contain;
}

.site-branding__leaf svg {
  width: 30px;
  height: 30px;
  color: var(--color-green-900);
}

.site-branding__text {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
}

.site-title,
.site-tagline {
  display: block;
  max-width: 100%;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.site-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
}

.site-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.nav-toggle {
  display: none;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span:not(.screen-reader-text) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--color-white);
}

.site-navigation .menu {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.35vw, 1.35rem);
}

.site-navigation > .menu > li > a,
.site-navigation > .menu > .menu-item-has-children > .submenu-trigger > a {
  white-space: nowrap;
  font-size: 0.94rem;
}

.menu-item-has-children {
  position: relative;
}

.submenu-trigger {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.submenu-toggle span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.82);
  border-bottom: 2px solid rgba(255, 255, 255, 0.82);
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s ease;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 0;
  min-width: 280px;
  padding: 0.8rem;
  border-radius: 18px;
  background: rgba(12, 46, 35, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.sub-menu li + li {
  margin-top: 0.35rem;
}

.sub-menu a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.96rem;
}

.sub-menu a:hover,
.sub-menu a:focus {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

.sub-menu .menu-item-has-children {
  position: relative;
}

.sub-menu .submenu-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.sub-menu .submenu-trigger > a {
  flex: 1;
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.sub-menu--nested {
  top: -0.8rem;
  right: calc(100% + 0.55rem);
  left: auto;
}

.sub-menu--nested-left {
  right: calc(100% + 0.55rem);
  left: auto;
}

.site-navigation > .menu > .menu-item-has-children:nth-last-child(2) > .sub-menu {
  right: 0;
  left: auto;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-item-has-children.is-submenu-open > .submenu-trigger .submenu-toggle span,
.menu-item-has-children:hover > .submenu-trigger .submenu-toggle span,
.menu-item-has-children:focus-within > .submenu-trigger .submenu-toggle span {
  transform: rotate(225deg) translateY(-1px);
}

.site-navigation a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.site-navigation a:hover,
.site-navigation a:focus {
  color: var(--color-sand);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 4.5rem 0 3rem;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(229, 215, 181, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(12, 46, 35, 0.78), rgba(28, 87, 66, 0.72));
  z-index: 1;
}

.hero__grid::after {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(200, 125, 85, 0.18), transparent 62%);
  z-index: 1;
  pointer-events: none;
}

.hero__grid {
  --hero-events-width: clamp(25rem, 28vw, 31.25rem);
  --hero-events-edge: clamp(0rem, calc((100vw - 90rem) / 20), 2rem);
  --hero-composition-gap: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  min-width: 0;
  min-height: calc(100vh - 140px);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: calc(100% - var(--hero-events-width) - var(--hero-events-edge) - var(--hero-composition-gap));
  max-width: 50rem;
  min-width: 0;
  padding: clamp(2.5rem, 7vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
  color: var(--color-white);
}

.hero__content h1,
.hero__content p {
  max-width: 100%;
  color: var(--color-white);
}

.hero__content h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.2rem);
  line-height: clamp(1.02, 1.08, 1.1);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  color: var(--color-sand);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 40rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  min-width: 0;
  margin-top: 2rem;
}

.hero-events {
  position: absolute;
  right: var(--hero-events-edge);
  bottom: clamp(3rem, 4vw, 6.5rem);
  z-index: 2;
  width: var(--hero-events-width);
  min-width: 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--color-text);
  box-shadow: 0 18px 46px rgba(12, 46, 35, 0.2);
  backdrop-filter: blur(10px);
}

.hero-events .eyebrow {
  margin-bottom: 0.45rem;
  color: var(--color-green-700);
}

.hero-events h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  color: var(--color-green-950);
}

.hero-events__list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero-event {
  display: grid;
  grid-template-columns: minmax(8rem, 0.48fr) minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  min-width: 0;
  padding: 0.65rem 0;
  border-top: 1px solid rgba(18, 59, 45, 0.12);
}

.hero-event:first-child {
  padding-top: 0;
  border-top: 0;
}

.hero-event__date {
  display: block;
  min-width: 0;
  color: var(--color-green-800);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-event__content {
  min-width: 0;
}

.hero-event__status {
  display: inline-block;
  margin-bottom: 0.22rem;
  padding: 0.12rem 0.42rem;
  border-radius: 6px;
  background: rgba(36, 105, 76, 0.11);
  color: var(--color-green-800);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-event__content h3 {
  margin-bottom: 0.25rem;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.hero-event__content p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero-events__empty {
  margin-bottom: 0.65rem;
  color: var(--color-muted);
}

.hero-events__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--color-green-800);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  white-space: nowrap;
}

.hero-events__link:hover {
  color: var(--color-green-950);
}

.hero-event__content a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button__icon {
  display: inline-flex;
  flex: 0 0 auto;
  margin-right: 0.55rem;
  font-size: 1rem;
  line-height: 1;
}

.button:hover,
.button:focus {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--color-green-900);
  color: var(--color-white);
}

.button--primary:hover,
.button--primary:focus {
  background: var(--color-green-700);
}

.hero .button--primary,
.detail-hero .button--primary {
  background: var(--color-white);
  color: var(--color-green-950);
}

.hero .button--primary:hover,
.hero .button--primary:focus,
.detail-hero .button--primary:hover,
.detail-hero .button--primary:focus {
  background: var(--color-sand);
}

.button--disabled {
  opacity: 0.75;
  pointer-events: none;
}

.button--ghost {
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.button--ghost:hover,
.button--ghost:focus {
  border-color: var(--color-sand);
  color: var(--color-sand);
}

.hero__leaf {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.12);
}

.hero__leaf svg {
  width: 44px;
  height: 44px;
  color: var(--color-sand);
}

.section {
  padding: 6rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(232, 241, 236, 0.65), rgba(255, 255, 255, 0));
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 2.5rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
}

.card-grid--three {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

.card-grid--four {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.card-grid--four > .card,
.card-grid--home-parent > .rd-repeatable-item--card {
  flex: 0 1 calc((100% - 4.5rem) / 4);
  max-width: 280px;
}

/* The V3.3 editor wrapper is the home grid's flex item, not the inner card. */
.card-grid--home-parent > .rd-repeatable-item--card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.card-grid--home-parent > .rd-repeatable-item--card > .card {
  flex: 1;
}

@media (min-width: 1181px) {
  .container--page .card-grid--four > .card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

.card {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 2rem;
  border: 1px solid rgba(18, 59, 45, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.24s ease,
    background-color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease;
}

.card p {
  color: var(--color-muted);
}

.card h3 {
  font-size: 1.28rem;
  line-height: 1.2;
}

.card-grid--four .card h3 {
  font-size: 1.2rem;
}

.card--link {
  cursor: pointer;
}

.card--link:hover,
.card--link:focus-visible {
  transform: translateY(-8px) scale(1.025);
  background: linear-gradient(180deg, #f4faf6, #ffffff);
  border-color: rgba(28, 87, 66, 0.24);
  box-shadow: 0 24px 64px rgba(12, 46, 35, 0.18);
}

.card--link:hover h3,
.card--link:focus-visible h3 {
  color: var(--color-green-800);
}

.card__cta {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--color-green-800);
}

.section--detail-hero {
  padding-bottom: 2rem;
}

.detail-hero {
  min-width: 0;
  max-width: 100%;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(229, 215, 181, 0.35), transparent 26%),
    linear-gradient(135deg, rgba(12, 46, 35, 0.98), rgba(28, 87, 66, 0.9));
  box-shadow: var(--shadow-soft);
}

.detail-hero h1,
.detail-hero p {
  color: var(--color-white);
}

.detail-hero__lead {
  margin-bottom: 1.75rem;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.84);
}

.detail-image-wrap {
  margin: 0 auto 2rem;
  width: 100%;
  margin-bottom: 1.5rem;
}

.detail-image-wrap--feature {
  max-width: none;
}

.detail-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.detail-image-wrap--feature .detail-image {
  aspect-ratio: auto;
  object-fit: initial;
}

.entry-content--detail p {
  margin-bottom: 1.25rem;
}

.staff-list {
  display: grid;
  gap: 1.75rem;
}

.staff-list--contacts {
  max-width: 56rem;
}

.staff-card {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.staff-card > *,
.about > *,
.contact-panel > *,
.footer-grid > *,
.calendar-event > *,
.event-card > * {
  min-width: 0;
}

.staff-card--reverse {
  grid-template-columns: 1.18fr 0.82fr;
}

.staff-card--reverse .staff-card__image-wrap {
  order: 2;
}

.staff-card--reverse .staff-card__content {
  order: 1;
}

.staff-card__image {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.person-card .staff-card__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.staff-card--no-image {
  grid-template-columns: minmax(0, 1fr);
}

.person-contact-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 59, 45, 0.12);
}

.person-contact-list > div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 0.32fr) minmax(0, 1fr);
  gap: 0.75rem;
}

.person-contact-list dt {
  color: var(--color-green-800);
  font-weight: 700;
}

.person-contact-list dd {
  min-width: 0;
  margin: 0;
}

.person-contact-list a {
  color: var(--color-green-800);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.shared-contact-section + .section--soft {
  padding-top: 0;
}

.staff-card__content p:last-child {
  margin-bottom: 0;
}

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2rem;
  align-items: center;
}

.about__media img,
.about__placeholder {
  min-height: 420px;
  border-radius: 28px;
}

.about__media img {
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.about__placeholder {
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  background: linear-gradient(145deg, var(--color-green-100), var(--color-cream));
  color: var(--color-green-900);
}

.about__content p {
  color: var(--color-muted);
}

.feature-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.75rem;
  color: var(--color-text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-green-700);
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 32px;
  background: var(--color-green-900);
  color: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.contact-panel h2,
.contact-panel p,
.contact-panel a {
  color: var(--color-white);
}

.contact-panel__details {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.contact-item {
  min-width: 0;
  max-width: 100%;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
}

.contact-item p {
  margin-bottom: 0;
}

.office-hours {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.office-hours li {
  color: var(--color-white);
}

.contact-label {
  display: inline-block;
  margin-bottom: 0.4rem;
  color: var(--color-sand);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.content-card {
  min-width: 0;
  max-width: 100%;
  padding: 2.25rem;
  border-radius: 28px;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.content-card--schulleitung p {
  overflow-wrap: break-word;
}

.content-card--embed {
  width: min(980px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.content-card--embed iframe,
.content-card--embed .h5p-iframe,
.content-card--embed .h5p-container {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 640px;
  border: 0;
  border-radius: 18px;
}

.section--downloads {
  width: 100%;
  max-width: 100%;
}

.enrollment-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.enrollment-timeline__item {
  min-width: 0;
  align-self: start;
}

.timeline-step {
  height: auto;
  min-width: 0;
  border: 1px solid rgba(18, 59, 45, 0.1);
  border-radius: 18px;
  background: var(--color-white);
  box-shadow: 0 14px 36px rgba(12, 46, 35, 0.1);
  overflow: hidden;
}

.timeline-step__summary {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 1rem;
  gap: 0.8rem;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 1rem;
  color: var(--color-green-950);
  cursor: pointer;
  list-style: none;
}

.timeline-step__summary::-webkit-details-marker {
  display: none;
}

.timeline-step__summary:hover {
  background: rgba(232, 241, 236, 0.58);
}

.timeline-step__number {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-green-900);
  color: var(--color-white);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.timeline-step__title {
  min-width: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.timeline-step__toggle {
  position: relative;
  width: 1rem;
  height: 1rem;
}

.timeline-step__toggle::before,
.timeline-step__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--color-green-700);
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.timeline-step__toggle::after {
  transform: translateY(-50%) rotate(90deg);
}

.timeline-step[open] .timeline-step__summary {
  background: var(--color-green-100);
}

.timeline-step[open] .timeline-step__toggle::after {
  transform: translateY(-50%) rotate(0);
}

.timeline-step__content {
  padding: 0 1rem 1.1rem 4.55rem;
  border-top: 1px solid rgba(18, 59, 45, 0.08);
  background: var(--color-green-100);
}

.timeline-step__content p {
  margin: 0;
  padding-top: 1rem;
  color: var(--color-text);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  align-items: stretch;
}

.section-heading--downloads {
  margin-bottom: 1rem;
}

.download-item {
  display: block;
  width: 100%;
  min-width: 0;
}

.button--download {
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  text-align: center;
  white-space: normal;
  line-height: 1.3;
  min-height: 72px;
}

.button--download .button__icon {
  margin-right: 0;
}

.button__content {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  max-width: 100%;
}

.button__hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 600;
}

.download-grid .rd-editable,
.download-grid .rd-editable--file,
.download-grid .button--download {
  width: 100%;
  max-width: none;
}

.button--download .button__label,
.button--download .rd-editable__value {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.month-calendar {
  width: 100%;
  max-width: 100%;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  border: 1px solid rgba(18, 59, 45, 0.1);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.month-calendar-region {
  position: relative;
  min-width: 0;
}

.month-calendar-region.is-loading .month-calendar {
  opacity: 0.68;
  pointer-events: none;
}

.month-calendar-region.is-loading::after {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid rgba(18, 59, 45, 0.2);
  border-top-color: var(--color-green-800);
  border-radius: 50%;
  animation: rodentelgen-calendar-spin 0.8s linear infinite;
}

.calendar-nav__button[aria-disabled="true"] {
  cursor: wait;
  opacity: 0.62;
}

.calendar-ajax-message {
  margin: 0 0 1rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(200, 125, 85, 0.4);
  border-radius: 12px;
  background: rgba(248, 245, 238, 0.96);
  color: var(--color-green-950);
}

@keyframes rodentelgen-calendar-spin {
  to {
    transform: rotate(360deg);
  }
}

.month-calendar__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: center;
  margin-bottom: 1.2rem;
}

.month-calendar__header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  text-align: center;
  white-space: nowrap;
}

.calendar-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 46px;
  padding: 0.7rem 1rem;
  border: 2px solid var(--color-green-800);
  border-radius: 14px;
  background: var(--color-green-900);
  color: var(--color-white);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.calendar-nav__button:last-child {
  justify-self: end;
}

.calendar-nav__button:hover,
.calendar-nav__button:focus-visible {
  border-color: var(--color-clay);
  background: var(--color-green-700);
  color: var(--color-white);
}

.month-calendar__desktop-grid,
.month-calendar__mobile-overview {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(18, 59, 45, 0.14);
  border-radius: 16px;
  background: rgba(18, 59, 45, 0.13);
}

.month-calendar__weekday-row,
.month-calendar__week {
  display: contents;
}

.month-calendar__weekday {
  min-width: 0;
  padding: 0.7rem 0.35rem;
  background: var(--color-green-900);
  color: var(--color-white);
  font-size: clamp(0.72rem, 1.2vw, 0.86rem);
  font-weight: 700;
  text-align: center;
}

.month-calendar__day {
  min-width: 0;
  min-height: clamp(9rem, 14vw, 12rem);
  padding: clamp(0.5rem, 1vw, 0.7rem);
  background: var(--color-white);
}

.month-calendar__day.is-outside-month {
  background: rgba(244, 241, 232, 0.72);
  color: rgba(31, 45, 39, 0.42);
}

.month-calendar__day.is-today {
  box-shadow: inset 0 0 0 3px var(--color-clay);
}

.month-calendar__day.has-events {
  background: rgba(229, 215, 181, 0.2);
}

.month-calendar__day-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.month-calendar__day-heading time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: var(--color-green-950);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
}

.month-calendar__today-label {
  color: var(--color-green-800);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.month-calendar__events {
  display: grid;
  gap: 0.4rem;
  min-width: 0;
}

.calendar-chip {
  min-width: 0;
  border: 1px solid rgba(18, 59, 45, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.calendar-chip summary {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 0.45rem 0.5rem;
  color: var(--color-green-950);
  cursor: pointer;
  list-style: none;
}

.calendar-chip summary::-webkit-details-marker,
.calendar-list-event summary::-webkit-details-marker {
  display: none;
}

.calendar-chip__time {
  color: var(--color-green-700);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.calendar-chip__title {
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.calendar-chip__details {
  padding: 0 0.5rem 0.55rem;
  border-top: 1px solid rgba(18, 59, 45, 0.1);
  color: var(--color-text);
  font-size: 0.75rem;
  line-height: 1.4;
}

.calendar-chip__details p {
  margin: 0.45rem 0 0;
}

.calendar-chip__details a,
.calendar-list-event__details a {
  color: var(--color-green-800);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.month-calendar__mobile {
  display: none;
}

.month-calendar__empty {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: rgba(229, 215, 181, 0.28);
  color: var(--color-green-900);
  text-align: center;
}

.month-calendar__mobile-events {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.calendar-day-list {
  padding: 1rem;
  border: 1px solid rgba(18, 59, 45, 0.12);
  border-radius: 16px;
  background: var(--color-white);
}

.calendar-day-list h4 {
  margin-bottom: 0.75rem;
  font-size: 1.08rem;
}

.calendar-list-event {
  border-top: 1px solid rgba(18, 59, 45, 0.12);
}

.calendar-list-event:first-of-type {
  border-top: 0;
}

.calendar-list-event summary {
  display: grid;
  grid-template-columns: minmax(4.7rem, auto) minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding: 0.8rem 0;
  color: var(--color-green-950);
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

.calendar-list-event__time {
  color: var(--color-green-700);
  font-size: 0.82rem;
  white-space: nowrap;
}

.calendar-list-event__details {
  padding: 0 0 0.8rem;
  font-size: 0.92rem;
}

.calendar-list-event__details p:last-child {
  margin-bottom: 0;
}

.rd-editable {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
}

.rd-editable--text {
  padding-right: 2.1rem;
}

.rd-editable--image {
  display: block;
}

.rd-editable--file {
  display: block;
  width: 100%;
  padding-right: 2.2rem;
}

.button__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.button__label .rd-editable--text {
  display: inline-flex;
  align-items: center;
  padding-right: 1.85rem;
}

.button__label .rd-editable__value {
  display: inline;
}

.button__label .rd-editable__button {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.button__label .rd-editable:hover > .rd-editable__button,
.button__label .rd-editable:focus-within > .rd-editable__button {
  transform: translateY(-50%);
}

.rd-editable__value {
  display: inline;
  max-width: 100%;
  overflow-wrap: inherit;
  word-break: inherit;
}

:is(h1, h2, h3, h4) .rd-editable {
  display: inline;
}

.rd-font-size-small {
  font-size: 0.9em;
}

.rd-font-size-large {
  font-size: 1.14em;
}

.rd-editable__button {
  position: absolute;
  top: -0.55rem;
  right: 0;
  z-index: 3;
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--color-clay);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(12, 46, 35, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.rd-editable:hover > .rd-editable__button,
.rd-editable:focus-within > .rd-editable__button {
  opacity: 1;
  transform: translateY(0);
}

.rd-editable__button:hover,
.rd-editable__button:focus {
  background: #b86b41;
}

.rd-editable--image > .rd-editable__button {
  top: 1rem;
  right: 1rem;
}

.rd-editable__image-placeholder {
  width: 100%;
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(28, 87, 66, 0.28);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(232, 241, 236, 0.88), rgba(255, 255, 255, 0.96));
  color: var(--color-green-800);
  font-weight: 700;
}

.staff-card__image-wrap .rd-editable,
.detail-image-wrap .rd-editable {
  display: block;
}

.rd-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
}

.rd-editor-modal.is-open {
  display: block;
}

.rd-editor-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 46, 35, 0.48);
  backdrop-filter: blur(4px);
}

.rd-editor-modal__panel {
  position: relative;
  width: min(680px, calc(100% - 2rem));
  margin: 8vh auto 0;
  padding: 1.5rem;
  border-radius: 24px;
  background: var(--color-white);
  box-shadow: 0 28px 70px rgba(12, 46, 35, 0.22);
}

.rd-editor-modal__title {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.rd-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
}

.rd-editor-toolbar__button {
  min-height: 40px;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(18, 59, 45, 0.12);
  border-radius: 999px;
  background: rgba(232, 241, 236, 0.8);
  color: var(--color-green-950);
  font: inherit;
  cursor: pointer;
}

.rd-editor-toolbar__button:hover,
.rd-editor-toolbar__button:focus {
  border-color: rgba(28, 87, 66, 0.32);
  background: rgba(232, 241, 236, 1);
}

.rd-editor-modal__editor {
  width: 100%;
  min-height: 220px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(18, 59, 45, 0.14);
  border-radius: 18px;
  font: inherit;
  color: var(--color-text);
  overflow: auto;
  line-height: 1.6;
  outline: none;
  white-space: pre-wrap;
}

.rd-editor-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.85rem;
  margin-top: 1rem;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a {
  color: var(--color-green-800);
  text-decoration: underline;
  text-underline-offset: 0.16em;
  overflow-wrap: break-word;
  word-break: normal;
}

.footer-contact a,
.contact-panel a {
  overflow-wrap: anywhere;
  word-break: normal;
}

@media (min-width: 768px) {
  .card-grid--four .card h3 {
    font-size: 1.1rem;
  }
}

.entry-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.entry-content a:hover,
.entry-content a:focus {
  color: var(--color-green-950);
}

.post-list,
.event-list {
  display: grid;
  gap: 1.5rem;
}

.post-card__title a:hover,
.post-card__title a:focus {
  color: var(--color-green-700);
}

.event-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.event-card__date {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--color-green-900);
  color: var(--color-white);
}

.event-card__date-value {
  margin-top: 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.2;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(28, 87, 66, 0.3);
  border-radius: var(--radius-lg);
  background: var(--color-green-100);
  color: var(--color-green-900);
}

.site-footer {
  margin-top: 4rem;
  background: var(--color-green-950);
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.9fr;
  gap: 2rem;
  padding: 4rem 0 3rem;
}

.footer-title,
.footer-heading {
  margin-bottom: 1rem;
  color: var(--color-white);
  font-family: "Fraunces", Georgia, serif;
}

.footer-title {
  font-size: 1.6rem;
}

.menu-footer {
  display: grid;
  gap: 0.7rem;
}

.footer-contact {
  display: grid;
  gap: 0.7rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  font-size: 0.9rem;
}

@media (min-width: 1600px) {
  .hero__content {
    width: min(100%, clamp(54rem, 52vw, 62rem));
    max-width: 62rem;
  }
}

@media (max-width: 900px) {
  .month-calendar__header {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-calendar__header h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
  }

  .calendar-nav__button {
    width: 100%;
    min-height: 48px;
    padding-inline: 0.65rem;
    font-size: 0.86rem;
  }

  .calendar-nav__button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-nav__button:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .month-calendar__desktop-grid {
    display: none;
  }

  .month-calendar__mobile {
    display: block;
  }

  .month-calendar__mobile-overview {
    border-radius: 13px;
  }

  .month-calendar__weekday {
    padding: 0.55rem 0.1rem;
    font-size: 0.72rem;
  }

  .month-calendar__mobile-day {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 2.6rem;
    background: var(--color-white);
    color: var(--color-green-950);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .month-calendar__mobile-day.is-outside-month {
    background: rgba(244, 241, 232, 0.72);
    color: rgba(31, 45, 39, 0.38);
  }

  .month-calendar__mobile-day.is-today {
    box-shadow: inset 0 0 0 2px var(--color-clay);
  }

  .month-calendar__mobile-day.has-events {
    background: rgba(229, 215, 181, 0.38);
  }

  .month-calendar__event-dot {
    position: absolute;
    bottom: 0.22rem;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--color-green-700);
  }
}

@media (max-width: 1180px) {
  .rd-editable--text {
    padding-right: 1.8rem;
  }

  .rd-editable__button {
    opacity: 1;
    transform: translateY(0);
  }

  .rd-editor-modal__panel {
    margin-top: 4vh;
    padding: 1.2rem;
  }

  .rd-editor-modal__actions {
    flex-direction: column-reverse;
  }

  .rd-editor-modal__actions .button {
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .site-navigation {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    padding: 1rem;
    background: var(--color-green-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .site-navigation.is-open {
    display: block;
  }

  .site-navigation .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
  }

  .site-navigation a {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .menu-item-has-children {
    width: 100%;
  }

  .submenu-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .submenu-toggle {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .sub-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
  }

  .sub-menu--nested {
    margin-top: 0.5rem;
    margin-left: 0;
    right: auto;
    border-left: 2px solid rgba(229, 215, 181, 0.28);
  }

  .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
  }

  .hero__grid,
  .about,
  .contact-panel,
  .footer-grid,
  .staff-card,
  .staff-card--reverse,
  .event-card {
    grid-template-columns: 1fr;
  }

  .hero-events {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    justify-self: start;
    max-width: 46rem;
    margin-bottom: clamp(2rem, 6vw, 4rem);
  }

  .hero__content {
    width: 100%;
    max-width: 50rem;
  }

  .staff-card--reverse .staff-card__image-wrap,
  .staff-card--reverse .staff-card__content {
    order: initial;
  }

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

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

  .card-grid--four > .card,
  .card-grid--home-parent > .rd-repeatable-item--card {
    flex-basis: calc((100% - 1.5rem) / 2);
    max-width: none;
  }

  .section--downloads {
    width: 100%;
  }

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

}

@media (max-width: 767px) {
  .header-inner {
    min-height: 78px;
    gap: 0.75rem;
  }

  .site-title {
    font-size: clamp(0.9rem, 3.8vw, 1.05rem);
  }

  .site-tagline {
    font-size: clamp(0.72rem, 3vw, 0.85rem);
  }

  .section {
    padding: clamp(3.25rem, 10vw, 4.5rem) 0;
  }

  .container--page {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero-events {
    max-width: 100%;
    padding: 1.25rem;
    border-radius: 18px;
  }

  .contact-panel,
  .content-card,
  .card {
    padding: clamp(1.2rem, 5vw, 1.5rem);
  }

  .person-contact-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.15rem;
  }

  .month-calendar {
    padding: 0.85rem;
    border-radius: 18px;
  }

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

  .month-calendar__header h3 {
    grid-column: 1 / -1;
    grid-row: 1;
    white-space: normal;
  }

  .calendar-nav__button {
    width: 100%;
    min-height: 48px;
    padding-inline: 0.65rem;
    font-size: 0.86rem;
  }

  .calendar-nav__button:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .calendar-nav__button:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .month-calendar__desktop-grid {
    display: none;
  }

  .month-calendar__mobile {
    display: block;
  }

  .month-calendar__mobile-overview {
    border-radius: 13px;
  }

  .month-calendar__weekday {
    padding: 0.55rem 0.1rem;
    font-size: 0.72rem;
  }

  .month-calendar__mobile-day {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 2.6rem;
    background: var(--color-white);
    color: var(--color-green-950);
    font-size: 0.82rem;
    font-weight: 700;
  }

  .month-calendar__mobile-day.is-outside-month {
    background: rgba(244, 241, 232, 0.72);
    color: rgba(31, 45, 39, 0.38);
  }

  .month-calendar__mobile-day.is-today {
    box-shadow: inset 0 0 0 2px var(--color-clay);
  }

  .month-calendar__mobile-day.has-events {
    background: rgba(229, 215, 181, 0.38);
  }

  .month-calendar__event-dot {
    position: absolute;
    bottom: 0.22rem;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--color-green-700);
  }

  .card-grid--four {
    grid-template-columns: 1fr;
  }

  .card-grid--three,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .card-grid--four > .card,
  .card-grid--home-parent > .rd-repeatable-item--card {
    flex-basis: 100%;
  }

  .footer-bottom__inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .month-calendar-region.is-loading::after {
    animation: none;
  }
}

/* Version 3.0: frontend structure management */
.rd-repeatable-item,
.rd-custom-block-list,
.download-item {
  position: relative;
}

.rd-structure-controls {
  position: absolute;
  z-index: 8;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  gap: 0.35rem;
}

/* Custom-page items can expose both editorial and structural controls. Keep
 * the structural group in normal flow so it never covers the edit button. */
.rd-structure-controls--custom {
  position: relative;
  top: auto;
  right: auto;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: .65rem;
}

.rd-structure-button,
.rd-structure-add,
.rd-nav-item-actions button,
.rd-nav-add-item button,
.rd-nav-edit-toggle {
  border: 1px solid rgba(12, 46, 35, 0.2);
  color: var(--color-green-900);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 16px rgba(12, 46, 35, 0.12);
  cursor: pointer;
}

.rd-structure-button,
.rd-nav-item-actions button {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  font: inherit;
  line-height: 1;
}

.rd-structure-button--delete,
.rd-nav-item-actions [data-rd-delete-page] {
  color: #8f2f2f;
}

.rd-structure-button:hover,
.rd-structure-button:focus-visible,
.rd-nav-item-actions button:hover,
.rd-nav-item-actions button:focus-visible {
  border-color: var(--color-clay);
  transform: translateY(-1px);
}

.rd-empty-collection {
  display: flex;
  justify-content: center;
  padding: 1rem;
  border: 1px dashed rgba(45, 116, 89, 0.4);
  border-radius: var(--radius-md);
}

.rd-structure-add,
.rd-nav-add-item button,
.rd-nav-edit-toggle {
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
}

.rd-nav-link-row {
  display: flex;
  align-items: center;
}

.rd-nav-item-actions {
  display: none;
  align-items: center;
  gap: 0.2rem;
  margin-left: auto;
  padding-left: 0.35rem;
}

.rd-nav-editing .rd-nav-item-actions {
  display: inline-flex;
}

.rd-nav-editing .rd-nav-managed-item:not([data-rd-locked="1"]) > .submenu-trigger,
.rd-nav-editing .rd-nav-managed-item:not([data-rd-locked="1"]) > .rd-nav-link-row {
  cursor: grab;
}

.rd-nav-managed-item.is-dragging {
  opacity: 0.45;
}

.rd-nav-managed-item.is-drop-target > .submenu-trigger,
.rd-nav-managed-item.is-drop-target > .rd-nav-link-row,
.rd-nav-trash.is-drop-target {
  outline: 3px solid var(--color-clay);
  outline-offset: 2px;
  background: var(--color-green-100);
}

.rd-nav-add-item {
  list-style: none;
  padding: 0.45rem 0.65rem 0.65rem;
}

.rd-nav-add-item button {
  width: 100%;
  box-shadow: none;
}

.rd-nav-admin-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.rd-nav-trash {
  display: none;
  min-height: 3rem;
  padding: 0.55rem 0.85rem;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(143, 47, 47, 0.55);
  border-radius: 12px;
  color: #8f2f2f;
  background: rgba(255, 255, 255, 0.94);
}

.rd-nav-editing .rd-nav-trash {
  display: flex;
}

.rd-confirm-modal {
  position: fixed;
  z-index: 100001;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.rd-confirm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(32rem, 100%);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.rd-confirm-modal__panel h2 {
  margin-top: 0;
}

.rd-confirm-modal__panel [data-rd-message] {
  white-space: pre-line;
}

.rd-dialog-field {
  display: grid;
  gap: 0.35rem;
  margin: 0.85rem 0;
  font-weight: 700;
}

.rd-dialog-field input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(12, 46, 35, 0.3);
  border-radius: 10px;
  font: inherit;
}

.rd-dialog-field select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(12, 46, 35, 0.3);
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-text);
  font: inherit;
}

.rd-standard-add { margin-top: 1rem; }
.rd-page-gallery figure { position: relative; }
.rd-page-gallery__image { width: 100%; height: 100%; object-fit: contain; }
.rd-page-gallery figcaption { padding: .5rem 1rem; background: var(--color-white); }
.rd-standard-staff > .rd-repeatable-item { position: relative; }

@media (max-width: 640px) {
  .rd-download-modal { padding: .5rem; }
  .rd-download-modal .rd-confirm-modal__panel { width: 100%; max-height: min(96vh, 96dvh); }
  .rd-download-modal__header, .rd-download-modal__body, .rd-download-modal__footer { padding-inline: 1rem; }
  .rd-download-modal__footer { flex-direction: column-reverse; }
  .rd-download-modal__footer .button { width: 100%; }
  .rd-download-modes { flex-direction: column; gap: .5rem; }
}

.button--danger {
  color: #fff;
  background: #8f2f2f;
  border-color: #8f2f2f;
}

.rd-editor-modal__status {
  min-height: 1.5rem;
  margin-top: 0.5rem;
  color: #8f2f2f;
}

@media (max-width: 900px) {
  .rd-nav-admin-bar {
    flex-wrap: wrap;
    padding: 0 1rem 1rem;
  }

  .rd-nav-item-actions {
    flex-wrap: wrap;
  }

  .rd-nav-item-actions button,
  .rd-structure-button {
    width: 2.75rem;
    height: 2.75rem;
  }
}

@media (max-width: 480px) {
  .container,
  .container--page {
    padding-inline: clamp(0.75rem, 4vw, 1rem);
  }

  .header-inner {
    gap: 0.5rem;
    padding-block: 0.5rem;
  }

  .site-branding {
    gap: 0.55rem;
  }

  .site-branding__logo,
  .site-branding__leaf {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
    flex-basis: 44px;
  }

  .site-title {
    font-size: clamp(0.82rem, 4vw, 0.95rem);
    line-height: 1.15;
  }

  .site-tagline {
    font-size: clamp(0.66rem, 3vw, 0.75rem);
    line-height: 1.2;
  }

  .footer-title {
    font-size: clamp(1.3rem, 7vw, 1.5rem);
  }

  .nav-toggle {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 2rem;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.08;
  }

  .hero__content h1 {
    font-size: clamp(1.28rem, 6.4vw, 2.15rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    hyphens: none;
  }

  .detail-hero h1 {
    hyphens: none;
  }

  .hero__actions {
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  .button--download {
    min-height: 68px;
    padding: 0.9rem 1rem;
  }

  .hero-event {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hero-event__date {
    font-size: 0.8rem;
  }

  .timeline-step__summary {
    grid-template-columns: 2.5rem minmax(0, 1fr) 0.9rem;
    gap: 0.65rem;
    padding: 0.9rem;
  }

  .timeline-step__number {
    width: 2.5rem;
    height: 2.5rem;
  }

  .timeline-step__title {
    font-size: 0.92rem;
  }

  .timeline-step__content {
    padding: 0 0.9rem 1rem;
  }

  .detail-hero,
  .staff-card {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-on-scroll--delay-1,
  .animate-on-scroll--delay-2,
  .animate-on-scroll--delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* V3.3: one shared control row in document flow, including touch targets. */
.rd-element-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  position: static;
  margin: .75rem 0 0;
  padding: .4rem;
  max-width: 100%;
  grid-column: 1 / -1;
  border-radius: .7rem;
  background: #f4f6f3;
  color: var(--color-green-900);
  line-height: 1;
}
.rd-element-controls > button,
.rd-element-controls > .rd-editable__button {
  position: static;
  inset: auto;
  transform: none;
  opacity: 1;
  visibility: visible;
  flex: 0 0 auto;
  min-width: 44px;
  width: auto;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: .5rem;
  border: 1px solid #bbcabd;
  border-radius: .5rem;
  box-shadow: none;
  font-size: 1rem;
  cursor: pointer;
}
.rd-element-controls > .rd-editable__button { background: #d96922; color: #fff; }
.rd-element-controls > button:focus-visible { outline: 3px solid #174f3b; outline-offset: 2px; }
.rd-editable:has(> .rd-element-controls) { display: block; padding-right: 0; }
.rd-editable { padding-right: 0; }
.rd-custom-block-list { display: block; }
.rd-text-block + .rd-text-block { margin-top: 2rem; }
.rd-text-block { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.rd-text-block .entry-content p { margin: 0; }
.rd-link-warning { display: block; color: #85420c; font-size: .85rem; margin-top: .5rem; }
.rd-repeatable-item--card > .card { height: auto; }
.logged-in .animate-on-scroll:has(.rd-element-controls) { transform: none; opacity: 1; }
.logged-in .animate-on-scroll:has(.rd-element-controls) { transition: none; }
.rd-structure-controls { position: static; flex-wrap: wrap; margin-top: .75rem; }
.rd-page-gallery figure:has(.rd-element-controls) { aspect-ratio: auto; display: flex; flex-direction: column; }
.rd-page-gallery figure > .rd-editable--image { display: block; width: 100%; aspect-ratio: 16 / 9; flex: 0 0 auto; }
.rd-page-gallery figure > .rd-element-controls { flex-shrink: 0; margin: .5rem; }

/* V3.3.2: equal-width automatic cards; flex centers each incomplete row. */
.card-grid--automatic {
  --rd-card-columns: 4;
  --rd-card-gap: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--rd-card-gap);
}
.card-grid--automatic > .rd-repeatable-item--card {
  flex: 0 0 calc((100% - (var(--rd-card-columns) - 1) * var(--rd-card-gap)) / var(--rd-card-columns));
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.card-grid--automatic > .rd-repeatable-item--card > .card {
  flex: 1;
}
.card-grid--automatic .card,
.card-grid--automatic .card h3,
.card-grid--automatic .card p {
  overflow-wrap: anywhere;
  hyphens: auto;
}
@media (max-width: 1180px) {
  .card-grid--automatic { --rd-card-columns: 2; }
}
@media (max-width: 767px) {
  .card-grid--automatic { --rd-card-columns: 1; }
}
