:root {
  --cream: #fff8ea;
  --paper: #ffffff;
  --ink: #17261f;
  --muted: #5f6c64;
  --yellow: #f7c600;
  --yellow-soft: #fff0a8;
  --green: #82bf24;
  --green-soft: #eaf6d7;
  --blue: #8fc9e8;
  --blue-soft: #e7f6fc;
  --coral: #e9824f;
  --coral-soft: #ffe4d5;
  --brick: #b85f39;
  --brick-soft: #f8dfcf;
  --line: #eadfca;
  --shadow: 0 22px 55px rgba(49, 38, 22, .14);
  --radius: 8px;
  --radius-lg: 28px;
  --shell: min(1120px, calc(100% - 32px));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(247, 198, 0, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(130, 191, 36, .10) 1px, transparent 1px),
    var(--cream);
  background-size: 46px 46px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code { background: var(--green-soft); border-radius: 6px; padding: .1rem .35rem; }

.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--ink);
  color: white;
  padding: .75rem 1rem;
  border-radius: var(--radius);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 234, .93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 223, 202, .72);
  box-shadow: 0 8px 30px rgba(58, 45, 25, .06);
}
.nav {
  width: var(--shell);
  margin-inline: auto;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 3vw, 44px);
}
.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
}
.brand span { display: none; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); line-height: 1.1; }
.brand img {
  width: auto;
  height: 130px;
  max-width: 260px;
  object-fit: initial;
  border-radius: 0;
  box-shadow: none;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-menu a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: .55rem .85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.nav-cta { background: var(--ink); color: white; }
.nav-menu .nav-cta:hover { background: #314139; }
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-head {
  display: flex;
  align-items: center;
}
.nav-submenu-toggle,
.nav-drawer-header,
.nav-overlay {
  display: none;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  display: grid;
  gap: 4px;
  padding: 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .98);
  box-shadow: 0 18px 38px rgba(58,45,25,.14);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: var(--radius);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow-soft);
}
.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
body.nav-open { overflow: hidden; }

.section { padding: 84px 0; }
.section-soft {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 22%, rgba(246, 200, 79, .48), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(143, 201, 232, .56), transparent 32%),
    radial-gradient(circle at 62% 94%, rgba(127, 189, 114, .30), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, var(--cream) 100%);
}
.section-soft::before {
  content: "";
  position: absolute;
  inset: auto -8% -62px -8%;
  height: 120px;
  background:
    radial-gradient(42px 36px at 5% 50%, var(--yellow-soft) 98%, transparent 100%),
    radial-gradient(52px 38px at 18% 46%, var(--blue-soft) 98%, transparent 100%),
    radial-gradient(48px 36px at 32% 52%, var(--green-soft) 98%, transparent 100%),
    radial-gradient(44px 34px at 47% 48%, var(--coral-soft) 98%, transparent 100%),
    radial-gradient(50px 36px at 63% 50%, var(--yellow-soft) 98%, transparent 100%),
    radial-gradient(46px 34px at 79% 46%, var(--blue-soft) 98%, transparent 100%),
    radial-gradient(52px 38px at 94% 52%, var(--green-soft) 98%, transparent 100%);
  opacity: .9;
}
.section-tint {
  background:
    linear-gradient(135deg, rgba(231, 245, 223, .85), rgba(231, 246, 252, .82)),
    var(--paper);
}
.hero { padding: 88px 0 88px; }
.hero-dortmund {
  position: relative;
  min-height: min(820px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 248, 234, .96) 0%, rgba(255, 248, 234, .88) 34%, rgba(255, 248, 234, .18) 63%, rgba(255, 248, 234, .02) 100%),
    linear-gradient(180deg, rgba(255, 248, 234, .1), rgba(255, 248, 234, .86)),
    url("../img/hero-langeloh-originalstil.jpg") center / cover no-repeat;
}
.hero-dortmund::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background:
    radial-gradient(60px 44px at 6% 64%, var(--yellow-soft) 98%, transparent 100%),
    radial-gradient(74px 48px at 19% 70%, var(--green-soft) 98%, transparent 100%),
    radial-gradient(68px 44px at 35% 66%, var(--blue-soft) 98%, transparent 100%),
    radial-gradient(70px 46px at 52% 72%, var(--brick-soft) 98%, transparent 100%),
    radial-gradient(74px 48px at 70% 66%, var(--green-soft) 98%, transparent 100%),
    radial-gradient(70px 46px at 88% 70%, var(--yellow-soft) 98%, transparent 100%);
  opacity: .96;
}
.hero-grid,
.split,
.gallery-preview,
.contact-panel,
.contact-grid,
.image-text-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 44px;
}
.hero-dortmund .hero-grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 760px);
}
.hero-dortmund .hero-media { display: none; }
.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5rem);
  line-height: .98;
  max-width: 780px;
  text-wrap: balance;
}
.hero-dortmund h1 {
  font-size: clamp(2.55rem, 5.35vw, 4.85rem);
  max-width: 690px;
}
.lead {
  color: #405049;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 670px;
}
.hero-dortmund .lead {
  max-width: 650px;
  font-weight: 650;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .9rem;
  padding: .35rem .65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(234, 223, 202, .7);
  color: #7b442f;
  font-size: .83rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  flex: 0 0 2.55rem;
  width: 2.55rem;
  height: .65rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at .35rem 50%, var(--coral) 0 .33rem, transparent .35rem),
    radial-gradient(circle at 1.28rem 50%, var(--yellow) 0 .33rem, transparent .35rem),
    radial-gradient(circle at 2.2rem 50%, var(--green) 0 .33rem, transparent .35rem);
}
.hero-actions,
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.05rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}
.button.primary { background: var(--coral); color: #241914; box-shadow: 0 10px 24px rgba(242, 139, 107, .28); }
.button.secondary { background: rgba(255,255,255,.9); border-color: var(--line); color: var(--ink); }
.button:hover { transform: translateY(-1px); }
.hero-local-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-local-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: .45rem .72rem;
  border-radius: 999px;
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(234,223,202,.9);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(58,45,25,.08);
}
.hero-local-points span:nth-child(1) { border-left: 8px solid var(--yellow); }
.hero-local-points span:nth-child(2) { border-left: 8px solid var(--green); }
.hero-local-points span:nth-child(3) { border-left: 8px solid var(--brick); }
.hero-media {
  position: relative;
  padding: 24px;
  border-radius: 40px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.35)),
    radial-gradient(circle at 18% 16%, rgba(246, 200, 79, .55), transparent 28%),
    radial-gradient(circle at 92% 86%, rgba(242, 139, 107, .36), transparent 26%);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}
.hero-media img,
.rounded-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.image-text-grid > .rounded-image { width: 100%; }
.hero-media img {
  width: min(100%, 620px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-inline: auto;
}
.hero-media::before,
.hero-media::after {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  font-weight: 950;
  box-shadow: 0 14px 26px rgba(58, 45, 25, .14);
}
.hero-media::before {
  content: "Neu";
  left: -16px;
  top: 24px;
  background: var(--yellow);
}
.hero-media::after {
  content: "Lernen";
  right: -10px;
  bottom: 34px;
  background: var(--green);
  color: white;
}

.restart-band { padding: 0 0 38px; }
.restart-card {
  margin-top: -18px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,234,.94)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.restart-card .eyebrow,
.section-heading .eyebrow,
.section-copy .eyebrow {
  background: rgba(255,255,255,.82);
}
.restart-card::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 120px;
  height: 22px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--coral) 0 18px, var(--yellow) 18px 36px, var(--green) 36px 54px, var(--blue) 54px 72px);
  transform: rotate(8deg);
  opacity: .8;
}
.restart-card h2,
.section-heading h2,
.section-copy h2,
.contact-panel h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, var(--home-heading-size, 3.2rem));
  line-height: 1.05;
}
.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}
section[data-home-section] .section-heading {
  width: 100%;
  max-width: 1040px;
}
section[data-home-section] .section-heading.with-action {
  max-width: none;
}
.section-heading.with-action {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  max-width: none;
}
.section-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.external-link-note {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .92rem;
}
.feature-list {
  display: grid;
  gap: 14px;
}
.feature-list article,
.card,
.contact-box,
.contact-form,
.privacy-note,
.event-item,
.news-card,
.social-card,
.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(58, 45, 25, .08);
}
.card,
.news-card,
.social-card,
.gallery-card,
.link-card,
.feature-list article {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover,
.news-card:hover,
.social-card:hover,
.gallery-card:hover,
.feature-list article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px rgba(58, 45, 25, .13);
  border-color: rgba(242, 139, 107, .45);
}
.feature-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  padding: 18px;
}
.feature-list h3,
.card h3,
.news-card h3,
.social-card h3,
.gallery-card h2 { margin: 0; }
.feature-list p { grid-column: 2; margin: 0; color: var(--muted); }
.icon-chip,
.mini-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow-soft);
  font-weight: 900;
}
.icon-chip.green { background: var(--green-soft); }
.icon-chip.blue { background: var(--blue-soft); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cards-grid.two { grid-template-columns: repeat(2, 1fr); }
.cards-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,253,247,.98)),
    var(--paper);
}
.cards-grid .card:nth-child(4n+1) { border-top: 7px solid var(--yellow); }
.cards-grid .card:nth-child(4n+2) { border-top: 7px solid var(--green); }
.cards-grid .card:nth-child(4n+3) { border-top: 7px solid var(--blue); }
.cards-grid .card:nth-child(4n+4) { border-top: 7px solid var(--coral); }
.card p { color: var(--muted); margin-bottom: 0; }
.playful { min-height: 210px; }
.mini-icon { margin-bottom: 18px; background: var(--coral-soft); }

.link-card-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.link-card {
  display: block;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 26px rgba(58, 45, 25, .07);
}
.link-card strong { display: block; font-size: 1.08rem; margin-bottom: .4rem; }
.link-card span { color: var(--muted); }
.link-card:hover { background: var(--yellow-soft); transform: translateY(-2px); }

.news-grid,
.social-grid,
.social-profiles,
.gallery-categories,
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.social-profiles {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 22px 0 28px;
}
.social-profiles:empty { display: none; }
.social-profile-card {
  display: grid;
  gap: 4px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,240,168,.92), rgba(231,246,252,.95));
  box-shadow: 0 12px 26px rgba(58, 45, 25, .07);
}
.social-profile-card span {
  color: #6a5a3e;
  font-size: .86rem;
  font-weight: 900;
  text-transform: uppercase;
}
.social-profile-card strong { font-size: 1.12rem; }
.social-profile-card small { color: var(--muted); font-weight: 800; }
.news-grid.large { grid-template-columns: repeat(var(--news-columns, 2), minmax(0, 1fr)); }
.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}
.news-filter button {
  min-height: 42px;
  padding: .55rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.news-filter button.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
}
.news-card,
.social-card,
.gallery-card {
  overflow: hidden;
}
.news-card img,
.social-card img,
.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--blue-soft);
}
.news-card-content,
.social-card-content,
.gallery-card-content {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,248,234,.9));
}
.news-card-content,
.social-card-content,
.gallery-card-content { padding: 18px; }
.news-rich-text p:first-child { margin-top: 0; }
.news-rich-text p:last-child { margin-bottom: 0; }
.news-rich-text a { font-weight: 800; }
.news-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.news-more {
  min-width: 8rem;
  border: 1px solid #5ed5a5;
  border-radius: 999px;
  background: #74edbc;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  padding: .65rem .95rem;
  cursor: pointer;
}
.news-more:hover { background: #a0f6d1; }
.news-actions .social-post-link { margin-top: 0; }
.feed-status {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}
.instagram-feed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feed-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}
.feed-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--yellow-soft);
}
.feed-card-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.feed-card-content p { margin: 0; }
.feed-caption p + p { margin-top: 1rem; }
.feed-card-content .button { justify-self: start; }
.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--green-soft);
}
.social-post-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: .65rem .8rem;
  border-radius: 999px;
  background: var(--coral-soft);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}
.social-post-link:hover { background: var(--yellow-soft); }
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a5a3e;
  font-size: .9rem;
  font-weight: 800;
}
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: var(--green-soft);
}

.event-list { display: grid; gap: 12px; }
.event-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 16px;
}
.event-date {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-radius: var(--radius);
  background: var(--yellow-soft);
  font-weight: 900;
  text-align: center;
}
.event-date span { display: block; font-size: 1.55rem; line-height: 1; }
.event-item h3 { margin: 0 0 .25rem; }
.event-item p { margin: 0; color: var(--muted); }

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: start;
  gap: 28px;
}
.calendar-card,
.next-events-card {
  min-width: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,253,247,.96)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.calendar-card {
  padding: clamp(18px, 3vw, 28px);
}
.next-events-card {
  padding: 24px;
  position: sticky;
  top: 98px;
}
.calendar-head {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.calendar-head h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  text-transform: capitalize;
}
.calendar-nav {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 22px rgba(49, 38, 22, .12);
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays {
  margin-bottom: 8px;
  color: #6a5a3e;
  font-size: .82rem;
  font-weight: 900;
  text-align: center;
}
.calendar-cell {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  padding: 10px;
  border: 1px solid rgba(234,223,202,.9);
  border-radius: var(--radius);
  background: rgba(255,255,255,.72);
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  text-align: left;
}
.calendar-cell.is-empty {
  background: transparent;
  border-color: transparent;
}
.calendar-cell.has-event {
  cursor: pointer;
  background:
    linear-gradient(135deg, var(--yellow-soft), #fff),
    var(--paper);
  border-color: rgba(247,198,0,.75);
  box-shadow: 0 10px 20px rgba(49, 38, 22, .08);
}
.calendar-cell.has-holiday {
  cursor: pointer;
  background:
    linear-gradient(135deg, rgba(234,246,215,.96), rgba(231,246,252,.9)),
    var(--paper);
  border-color: rgba(130,191,36,.62);
}
.calendar-cell.has-event.has-holiday {
  background:
    linear-gradient(135deg, rgba(255,240,168,.96), rgba(234,246,215,.92)),
    var(--paper);
}
.calendar-cell.has-event:hover,
.calendar-cell.has-holiday:hover,
.calendar-cell.is-selected {
  transform: translateY(-2px);
  background:
    linear-gradient(135deg, var(--green-soft), #fff),
    var(--paper);
  border-color: var(--green);
}
.calendar-cell.is-today {
  outline: 3px solid rgba(143,201,232,.85);
  outline-offset: 2px;
}
.calendar-cell small {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 .4rem;
  border-radius: 999px;
  background: var(--coral);
  color: white;
  font-size: .78rem;
}
.calendar-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.calendar-cell .holiday-badge {
  background: var(--green);
  color: #142015;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 800;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
}
.legend-dot.event { background: var(--coral); }
.legend-dot.holiday { background: var(--green); }
.calendar-day-detail {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--green-soft);
}
.holiday-detail {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.62);
}
.calendar-day-detail h3 {
  margin: 0 0 10px;
}
.calendar-day-detail article + article {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(95,108,100,.2);
}

.privacy-note {
  margin-top: 18px;
  padding: 18px;
  background: var(--blue-soft);
}
.contact-panel {
  padding: 34px;
  background: var(--paper);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.page-hero { padding: 74px 0 56px; }
.page-hero h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.15rem);
  max-width: 760px;
}
.contact-grid { align-items: start; }
.contact-box,
.contact-form { padding: 24px; }
.notice {
  padding: 12px 14px;
  border-left: 5px solid var(--coral);
  background: var(--coral-soft);
  border-radius: var(--radius);
}
.contact-form {
  display: grid;
  gap: 10px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: .8rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  background: #fffdf8;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus,
.button:focus-visible,
.nav-menu a:focus-visible,
.nav-toggle:focus-visible,
.nav-submenu-toggle:focus-visible,
.nav-drawer-close:focus-visible {
  outline: 4px solid rgba(143, 201, 232, .85);
  outline-offset: 3px;
}

.gallery-card {
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.image-grid { margin-top: 24px; }
.image-tile {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(58, 45, 25, .08);
}
.image-tile img,
.image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.image-placeholder {
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, var(--yellow-soft), var(--blue-soft));
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}
.gallery-detail-heading { margin-top: 22px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(34, 48, 42, .84);
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-height: 78vh;
  border-radius: var(--radius);
  background: white;
}
.lightbox p { color: white; font-weight: 800; }
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: .6rem .9rem;
  font-weight: 900;
  cursor: pointer;
}

.prose {
  max-width: 820px;
  font-size: 1.05rem;
}
.prose h2 { margin-top: 2rem; }
.site-footer {
  padding: 42px 0;
  color: #fffdf7;
  background: #26362f;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer a {
  display: block;
  color: #fffdf7;
  margin-top: .45rem;
}
.footer-link-button {
  display: block;
  margin-top: .45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fffdf7;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}
.footer-link-button:hover { color: var(--yellow-soft); }

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1040px;
  margin-inline: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .98);
  box-shadow: var(--shadow);
}
.cookie-banner p,
.cookie-dialog p,
.consent-option small,
.social-consent-box p {
  color: var(--muted);
  margin: .25rem 0 0;
}
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 38, 31, .48);
}
.cookie-modal[hidden],
.cookie-banner[hidden] { display: none; }
.cookie-dialog {
  width: min(620px, 100%);
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.cookie-dialog h2 { margin: 0; }
.consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}
.consent-option input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
}
.consent-option span { display: grid; gap: 2px; }
.social-consent-box {
  margin: 0 0 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255,240,168,.9), rgba(231,246,252,.95));
  box-shadow: 0 12px 26px rgba(58,45,25,.07);
}
.social-consent-box .button { margin-top: 12px; }

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease;
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px) scale(.985);
  filter: blur(4px);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero .reveal,
.page-hero .reveal,
.photo-hero .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .button:hover,
  .link-card:hover { transform: none; }
}

.photo-story {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 44px;
}
.school-photo-section {
  background:
    radial-gradient(circle at 20% 12%, rgba(247,198,0,.25), transparent 30%),
    radial-gradient(circle at 80% 72%, rgba(184,95,57,.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(234,246,215,.82));
}
.photo-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 110px 0 70px;
  color: white;
  background: #26362f;
}
.photo-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .58;
}
.photo-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(34,48,42,.86), rgba(34,48,42,.36));
}
.photo-hero .shell {
  position: relative;
  z-index: 1;
}
.photo-hero .lead { color: rgba(255,255,255,.9); }
.download-layout {
  display: grid;
  gap: 22px;
}
.download-category {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 28px;
  align-items: start;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.download-category h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.download-list {
  display: grid;
  gap: 12px;
}
.download-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  min-height: 74px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--blue-soft), #fff);
  border: 1px solid var(--line);
  text-decoration: none;
}
.download-item:hover {
  background: linear-gradient(135deg, var(--yellow-soft), #fff);
  transform: translateY(-2px);
}
.download-item small {
  display: block;
  color: var(--muted);
}
.file-badge {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--coral);
  color: white;
  font-weight: 950;
}

.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(246, 200, 79, .35), transparent 30%),
    radial-gradient(circle at 88% 12%, rgba(143, 201, 232, .45), transparent 30%),
    var(--cream);
}
.admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}
.admin-login {
  max-width: 520px;
  margin: 6vh auto;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.admin-brand h1,
.admin-topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}
.admin-card,
.admin-list-card {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(58,45,25,.1);
}
.admin-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
}
.admin-card h2 { margin: 0 0 8px; }
.admin-card label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}
.admin-card input,
.admin-card textarea,
.admin-card select {
  width: 100%;
  min-height: 46px;
  padding: .72rem .82rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  font: inherit;
}
.admin-card .checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-card .checkbox-row input {
  width: 22px;
  min-height: 22px;
  flex: 0 0 22px;
}
.admin-card .button {
  justify-self: start;
  width: auto;
  min-width: 180px;
}
.admin-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.admin-button-row .button {
  min-width: 0;
}
.admin-card .button:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.admin-editor {
  display: grid;
  gap: 8px;
}
.admin-editor-label {
  font-weight: 800;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.editor-toolbar button,
.editor-toolbar input[type="color"] {
  width: 46px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  font: inherit;
  cursor: pointer;
}
.editor-surface {
  min-height: 180px;
  padding: .85rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
  outline: none;
}
.editor-surface:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(130,191,36,.16);
}
.admin-section-title {
  margin: 24px 0 12px;
  font-size: 1.25rem;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.admin-security {
  margin: -8px 0 22px;
  padding: 16px 18px;
  border: 2px solid #c63d2b;
  border-radius: var(--radius);
  background: #fff1ec;
  color: #7d2418;
  font-weight: 800;
}
.admin-security p {
  margin: 0;
}
.admin-security p + p {
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.admin-tabs button {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .65rem 1rem;
  background: white;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.admin-tabs button.is-active {
  background: var(--ink);
  color: white;
}
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.admin-module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.admin-module-head h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
}
.admin-module-head .eyebrow { margin-bottom: 8px; }
.admin-module-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.news-settings-card {
  max-width: 820px;
  margin-bottom: 28px;
}
.news-settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.news-settings-fields .admin-hint { margin: 8px 0 0; }
.admin-data-section + .admin-data-section { margin-top: 28px; }
.admin-data-section > h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.admin-data-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.admin-data-section-head h3 {
  margin: 0;
  font-size: 1.05rem;
}
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(58,45,25,.07);
}
.admin-data-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: auto;
}
.admin-news-table { min-width: 1180px; }
.admin-data-table th,
.admin-data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: left;
}
.admin-data-table th {
  background: #f7f3e9;
  color: #59655e;
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}
.admin-data-table tbody tr:last-child td { border-bottom: 0; }
.admin-data-table tbody tr:hover { background: #fffaf0; }
.admin-data-table code {
  display: inline-block;
  max-width: 270px;
  overflow-wrap: anywhere;
  font-size: .82rem;
}
.admin-cell-text {
  min-width: 210px;
  max-width: 380px;
  color: var(--muted);
  font-size: .9rem;
}
.admin-thumb {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--blue-soft);
}
.admin-no-image {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 52px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  color: var(--muted);
  font-size: .72rem;
  text-align: center;
}
.admin-category,
.admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: .8rem;
  font-weight: 900;
  white-space: nowrap;
}
.admin-status.is-active { background: var(--green-soft); color: #315d12; }
.admin-status.is-inactive { background: #eee; color: #686868; }
.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.admin-icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  cursor: pointer;
}
.admin-icon-button:hover { background: var(--yellow-soft); }
.admin-icon-button.is-danger { color: #9b2d1f; }
.admin-icon-button.is-danger:hover { background: #fff1ec; border-color: #e2a99f; }
.admin-file-badge {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  font-size: .72rem;
}
.admin-empty-table {
  padding: 30px 20px;
  color: var(--muted);
  text-align: center;
}
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 38, 31, .58);
}
.admin-modal[hidden] { display: none !important; }
.admin-modal-dialog {
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 28px 70px rgba(23,38,31,.28);
}
.admin-modal-dialog-wide { width: min(940px, 100%); }
.admin-modal-dialog-small { width: min(520px, 100%); }
.admin-modal-head {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fffaf0;
}
.admin-modal-head h2 {
  margin: 0;
  font-size: 1.25rem;
}
.admin-modal-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--yellow-soft);
  color: var(--ink);
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.admin-modal-form {
  max-height: calc(100vh - 104px);
  max-height: calc(100dvh - 104px);
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-modal-actions {
  position: sticky;
  bottom: -22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 10px -22px -22px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.97);
}
.admin-modal-actions .button {
  min-width: 0;
  justify-self: auto;
}
body.admin-modal-open { overflow: hidden; }
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.admin-grid.single { grid-template-columns: minmax(0, 680px); }
.admin-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
}
.admin-inline-form {
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) auto;
  align-items: end;
}
.admin-inline-form h2 {
  margin: 0;
  align-self: center;
}
.admin-inline-form .button {
  align-self: end;
}
.home-section-list {
  display: grid;
  gap: 12px;
}
.home-section-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 220px) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf8;
}
.home-section-row label {
  margin: 0;
}
.home-section-text-fields {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.home-section-text-fields label {
  min-width: 0;
}
.home-section-text-fields span {
  display: block;
  margin-bottom: 6px;
  font-weight: 900;
}
.home-section-text-fields input {
  width: 100%;
}
.admin-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.admin-list-card {
  padding: 18px;
}
.admin-list-card h3 { margin: 0 0 6px; }
.admin-list-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.admin-hint,
.admin-message {
  color: var(--muted);
  margin: 0;
}
.notice-inline {
  color: #9b2d1f;
  font-weight: 800;
}
.contact-form .checkbox-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--muted);
  font-weight: 800;
}
.contact-form .checkbox-row input {
  width: 20px;
  min-height: 20px;
}
.admin-message {
  min-height: 1.6rem;
  font-weight: 800;
}
.admin-message.is-error { color: #9b2d1f; }
.admin-token-help {
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--green-soft);
  color: var(--muted);
  font-weight: 800;
}
.admin-token-help.is-error {
  background: #fff1ec;
  color: #9b2d1f;
}

@media (max-width: 820px) {
  .admin-topbar,
  .admin-grid,
  .admin-inline-form,
  .home-section-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
  .admin-list { grid-template-columns: 1fr; }
  .admin-module-head {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-module-actions {
    justify-content: flex-start;
  }
  .admin-module-actions .button { flex: 1 1 180px; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-modal { padding: 8px; }
  .admin-modal-dialog {
    max-height: calc(100dvh - 16px);
  }
  .admin-modal-form {
    max-height: calc(100dvh - 80px);
    padding: 18px;
  }
  .admin-modal-actions {
    bottom: -18px;
    margin: 10px -18px -18px;
    padding: 12px 18px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    overflow-x: clip;
  }
  .site-header { z-index: 70; }
  .nav { min-height: 92px; }
  .brand img {
    width: auto;
    height: 78px;
    max-width: 58vw;
  }
  .nav-toggle {
    display: block;
    flex: 0 0 48px;
    cursor: pointer;
  }
  .nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 65;
    display: block;
    padding: 0;
    border: 0;
    background: rgba(23, 38, 31, .46);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .24s ease, visibility .24s ease;
  }
  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-menu {
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(88vw, 380px);
    height: 100vh;
    height: 100dvh;
    display: flex;
    padding: 18px 18px max(24px, env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: -22px 0 55px rgba(23, 38, 31, .2);
    opacity: 0;
    visibility: hidden;
    transform: translateX(104%);
    transition: transform .26s cubic-bezier(.2,.7,.2,1), opacity .2s ease, visibility .26s ease;
  }
  body.nav-open .site-header .brand,
  body.nav-open .site-header .nav-toggle {
    pointer-events: none;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
  .nav-drawer-header {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--line);
  }
  .nav-drawer-header strong {
    font-size: 1.18rem;
  }
  .nav-drawer-close {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--yellow-soft);
    color: var(--ink);
    font: inherit;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
  }
  .nav-menu > a,
  .nav-dropdown-trigger {
    width: 100%;
    min-height: 52px;
    justify-content: flex-start;
    padding: .7rem .85rem;
    border-radius: var(--radius);
  }
  .nav-menu .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }
  .nav-dropdown {
    width: 100%;
    display: block;
  }
  .nav-dropdown-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    align-items: center;
    gap: 4px;
  }
  .nav-submenu-toggle {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--ink);
    cursor: pointer;
  }
  .nav-submenu-toggle::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }
  .nav-submenu-toggle[aria-expanded="true"]::before {
    transform: translateY(2px) rotate(225deg);
  }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    max-height: 0;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0 6px;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--cream);
    box-shadow: none;
    opacity: 0;
    transform: none;
    pointer-events: auto;
    transition: max-height .26s ease, margin .2s ease, padding .2s ease, opacity .18s ease;
  }
  .nav-dropdown-menu.is-open {
    max-height: 420px;
    margin: 4px 0 8px;
    padding: 6px;
    border: 1px solid var(--line);
    opacity: 1;
  }
  .nav-dropdown-menu a {
    min-height: 44px;
    padding: .58rem .75rem;
    border-radius: 6px;
    font-size: .96rem;
    font-weight: 750;
  }
  .hero-grid,
  .split,
  .gallery-preview,
  .contact-panel,
  .contact-grid,
  .image-text-grid,
  .restart-card,
  .photo-story,
  .download-category,
  .calendar-layout {
    grid-template-columns: 1fr;
  }
  .next-events-card { position: static; }
  .cards-grid,
  .cards-grid.two,
  .cards-grid.four,
  .news-grid,
  .news-grid.large,
  .instagram-feed-grid,
  .social-grid,
  .social-profiles,
  .gallery-categories,
  .image-grid,
  .link-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid.large[data-news-columns="1"] { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .news-settings-fields { grid-template-columns: 1fr; }
  .admin-data-section-head { align-items: flex-start; flex-direction: column; }
  .hero { padding-top: 48px; }
  .hero-dortmund {
    min-height: 760px;
    background:
      linear-gradient(180deg, rgba(255, 248, 234, .98) 0%, rgba(255, 248, 234, .92) 58%, rgba(255, 248, 234, .48) 100%),
      url("../img/hero-langeloh-originalstil.jpg") 62% center / cover no-repeat;
  }
  .hero-dortmund h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.35rem);
  }
  .hero-dortmund .lead {
    font-size: 1.08rem;
  }
  .hero-local-points {
    margin-top: 20px;
  }
  .section-heading.with-action {
    align-items: start;
    flex-direction: column;
  }
  .cards-grid,
  .cards-grid.two,
  .cards-grid.four,
  .news-grid,
  .news-grid.large,
  .instagram-feed-grid,
  .social-grid,
  .social-profiles,
  .gallery-categories,
  .image-grid,
  .link-card-grid {
    grid-template-columns: 1fr;
  }
  .event-item { grid-template-columns: 72px 1fr; }
  .calendar-weekdays,
  .calendar-grid { gap: 5px; }
  .calendar-cell {
    min-height: 58px;
    padding: 6px 4px;
    font-size: .92rem;
  }
  .calendar-badges {
    gap: 3px;
    max-width: 100%;
    overflow: hidden;
  }
  .calendar-cell small {
    min-width: 0;
    max-width: 100%;
    height: 22px;
    padding: 0 .28rem;
    font-size: .62rem;
    line-height: 1;
    white-space: nowrap;
  }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-panel { padding: 24px; }
}
