:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --surface: #fffaf2;
  --surface-soft: #efe7db;
  --text: #25231f;
  --muted: #6d675d;
  --line: rgba(58, 51, 40, 0.16);
  --accent: #2f6f73;
  --accent-dark: #214f52;
  --accent-soft: #d8e8e4;
  --warm: #b98249;
  --focus: #0f6f85;
  --shadow: 0 18px 44px rgba(50, 39, 24, 0.12);
  --radius: 8px;
  --content: 1180px;
  --header-h: 72px;
  --page-gutter: clamp(24px, 5vw, 64px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161a1b;
  --surface: #202524;
  --surface-soft: #252d2c;
  --text: #f2eee7;
  --muted: #c5bbb0;
  --line: rgba(245, 239, 230, 0.16);
  --accent: #8bc4bc;
  --accent-dark: #b8ddd8;
  --accent-soft: rgba(139, 196, 188, 0.14);
  --warm: #d1a26d;
  --focus: #9bd7d2;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 200;
  transform: translateY(-160%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  transition: transform 180ms ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav-shell {
  width: min(100% - var(--page-gutter), var(--content));
  min-height: var(--header-h);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-logo-dark,
:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 30px);
  min-width: 0;
}

.main-nav a,
.internal-link,
.footer-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 650;
  font-size: clamp(0.98rem, 0.5vw + 0.86rem, 1.06rem);
}

.main-nav a:hover,
.internal-link:hover,
.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.main-nav a[aria-current="page"],
.footer-links a[aria-current="page"] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.internal-link {
  font-size: 0.96rem;
  white-space: nowrap;
}

.theme-toggle,
.menu-toggle,
.button {
  min-height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  font: inherit;
  font-weight: 720;
}

.theme-toggle,
.menu-toggle {
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

.hero-section {
  width: min(100% - var(--page-gutter), var(--content));
  margin: clamp(24px, 4vw, 56px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.page-hero {
  width: min(100% - var(--page-gutter), var(--content));
  margin: clamp(24px, 4vw, 56px) auto 0;
  display: grid;
  grid-template-columns: minmax(390px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(22px, 4vw, 56px);
  align-items: center;
}

.hero-media {
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.page-hero-media {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.page-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.party-hero-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr);
  gap: 10px;
  padding: 10px;
}

.party-hero-gallery .gallery-item {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
  box-shadow: none;
}

.party-hero-gallery .gallery-item img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
}

.party-hero-image-main img {
  min-height: clamp(260px, 35vw, 440px);
}

.party-hero-thumbs {
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}

.party-hero-gallery .gallery-item span {
  padding: 10px 12px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.page-hero-content {
  min-width: 0;
  max-width: 620px;
  padding-block: clamp(18px, 4vw, 48px);
}

.page-hero h1 {
  max-width: 13ch;
  font-size: clamp(2.55rem, 3.6vw, 4.15rem);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-content {
  padding-block: clamp(18px, 4vw, 48px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 12.5ch;
  margin: 0;
  font-size: clamp(2.55rem, 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: 0;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.2;
}

.lead {
  max-width: 54ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}

.hero-slogan {
  max-width: 58ch;
  margin-top: 22px;
}

.hero-slogan .lead {
  margin-top: 0;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-slogan-sub {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(0.98rem, 1vw, 1.08rem);
  line-height: 1.55;
  text-wrap: balance;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.hero-slogan-sub[hidden] {
  display: none;
}

.hero-slogan.is-ready {
  animation: hero-slogan-in 220ms ease-out both;
}

@keyframes hero-slogan-in {
  from {
    opacity: 0.01;
  }

  to {
    opacity: 1;
  }
}

.hero-actions,
.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.anchor-nav {
  width: min(100% - var(--page-gutter), var(--content));
  margin: clamp(26px, 4vw, 46px) auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 760;
}

.button,
.help-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 44px;
}

.button {
  padding: 12px 19px;
  font-size: 1rem;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

:root[data-theme="dark"] .button-primary {
  color: #102223;
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
}

.section {
  padding: clamp(56px, 8vw, 104px) 0;
}

.section-tight {
  padding-top: clamp(34px, 5vw, 72px);
  padding-bottom: clamp(22px, 4vw, 44px);
}

.section-muted {
  background: var(--surface-soft);
}

.section-inner {
  width: min(100% - var(--page-gutter), var(--content));
  margin: 0 auto;
}

.section-heading {
  max-width: 690px;
  margin-bottom: clamp(22px, 4vw, 40px);
}

.section-heading p:not(.eyebrow) {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 0.4vw + 0.96rem, 1.16rem);
}

.today-card,
.help-panel,
.story-panel,
.event-card,
.feature-card,
.small-card,
.empty-event-card,
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.today-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 3.2vw, 30px);
  box-shadow: var(--shadow);
}

.today-card h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.4rem);
}

.today-card p {
  max-width: 68ch;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.today-card .hint {
  font-size: 0.98rem;
}

.today-events-list {
  display: grid;
  gap: 14px;
}

.home-event-mini {
  display: grid;
  gap: 6px;
}

.home-event-mini h3,
.home-event-mini p {
  margin: 0;
}

.home-event-mini h3 {
  font-size: clamp(1.08rem, 0.6vw + 1rem, 1.28rem);
}

.text-link,
.feature-card a {
  color: var(--accent-dark);
  font-weight: 780;
  text-underline-offset: 4px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.feature-card {
  overflow: hidden;
  min-width: 0;
}

.feature-card img,
.small-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card-quiet {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.feature-card-quiet .quiet-logo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: clamp(28px, 5vw, 54px);
  background: #fff;
}

.card-body {
  padding: clamp(18px, 2.2vw, 22px);
}

.card-body p,
.small-card p,
.event-card p,
.help-panel p,
.story-copy p {
  color: var(--muted);
  font-size: 1.02rem;
}

.card-body p {
  margin: 10px 0 20px;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}

.event-card {
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.event-card.is-cancelled {
  border-left: 4px solid var(--warm);
}

.events-scope-section {
  display: grid;
  gap: 18px;
}

.events-scope-section + .events-scope-section {
  margin-top: clamp(34px, 6vw, 64px);
}

.events-scope-title {
  margin: 0;
}

.events-scope-list {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
}

.event-organiser {
  margin-top: -4px;
  font-weight: 700;
}

.event-external-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

.event-external-links a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

.empty-event-card,
.info-card {
  max-width: 840px;
  padding: clamp(24px, 5vw, 46px);
  box-shadow: var(--shadow);
}

.empty-event-card p,
.info-card p {
  color: var(--muted);
  font-size: clamp(1.04rem, 0.4vw + 0.96rem, 1.16rem);
}

.empty-event-card .hint {
  margin-bottom: 24px;
}

.newsletter-preview {
  display: grid;
  gap: 12px;
}

.newsletter-preview p {
  margin: 0;
}

.newsletter-preview .eyebrow {
  margin-bottom: 0;
}

.status-badge {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 6px 12px;
  font-weight: 780;
}

/* Event Media: zeitabhängige Upload- und Rückblick-Aktion */
.event-media-actions {
  display: grid;
  gap: 8px;
  justify-items: start;
  margin-top: 14px;
}

.event-media-actions .is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.event-media-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.mini-brand {
  width: min(132px, 48vw);
  max-height: 72px;
  object-fit: contain;
  margin-bottom: 16px;
}

.shop-brand-frame {
  width: fit-content;
  max-width: 100%;
  display: grid;
  place-items: center;
  padding: 10px;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
}

.shop-brand {
  width: min(112px, 34vw);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: calc(var(--radius) - 6px);
}

.event-card p {
  margin-bottom: 0;
}

.event-status-badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.88rem;
  font-weight: 780;
  line-height: 1.2;
}

.event-kicker {
  margin: 0 0 12px;
  color: var(--warm);
  font-weight: 780;
}

.event-card .button {
  margin-top: 18px;
}

.event-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.event-card-actions .button {
  margin-top: 0;
}

.home-event-mini .text-link {
  margin-top: 8px;
}

.story-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(18px, 4vw, 34px);
  padding: clamp(18px, 3vw, 28px);
  align-items: center;
}

.story-copy {
  padding: clamp(6px, 2vw, 18px);
}

.story-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.story-images img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
}

.retrospective-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.event-archive {
  margin-bottom: clamp(48px, 8vw, 88px);
}

.retrospective-summary h2 a {
  color: inherit;
  text-decoration: none;
}

.retrospective-summary h2 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.retrospective-summary .button {
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.gallery-preview-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery-preview-link:hover .gallery-item span {
  color: var(--text);
}

.gallery-item {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.gallery-grid-preview .gallery-item {
  display: block;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-item span {
  display: block;
  padding: 13px 15px 15px;
  color: var(--muted);
  font-weight: 720;
}

.photo-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: 88dvh;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.photo-dialog::backdrop {
  background: rgba(14, 17, 17, 0.68);
}

.photo-dialog-inner {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
}

.photo-dialog-head,
.photo-dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.photo-dialog h2 {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.dialog-close,
.photo-dialog-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  padding: 9px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
}

.photo-dialog figure {
  margin: 0;
}

.photo-dialog img {
  width: 100%;
  max-height: 62dvh;
  object-fit: contain;
  border-radius: var(--radius);
  background: #111;
}

.photo-dialog figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

.retrospective-article {
  overflow-x: clip;
}

.article-hero {
  width: min(100% - var(--page-gutter), var(--content));
  margin: clamp(24px, 4vw, 56px) auto 0;
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
}

.article-hero-copy,
.article-hero-image {
  min-width: 0;
}

.article-hero h1 {
  max-width: 15ch;
  font-size: clamp(2.45rem, 4.4vw, 4.8rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-weight: 780;
  text-underline-offset: 4px;
}

.article-hero-image {
  margin: 0;
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
}

.article-hero-image figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.article-body,
.article-gallery-section {
  width: min(100% - var(--page-gutter), 920px);
  margin: clamp(56px, 8vw, 96px) auto 0;
}

.article-section + .article-section {
  margin-top: clamp(28px, 5vw, 44px);
}

.article-section h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
}

.article-section p {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 0.4vw + 0.96rem, 1.16rem);
}

.article-gallery-section {
  width: min(100% - var(--page-gutter), var(--content));
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(12px, 2vw, 18px);
}

.article-section-inner {
  max-width: 920px;
}

.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.room-card,
.fitness-panel {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.room-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(12px, 2vw, 16px);
}

.room-gallery .gallery-item span {
  padding: 11px 13px 13px;
}

.room-card-body {
  padding: clamp(20px, 3vw, 30px);
}

.room-card-body p {
  color: var(--muted);
  font-size: clamp(1.04rem, 0.4vw + 0.96rem, 1.16rem);
}

.fitness-panel {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.fitness-gallery {
  align-self: stretch;
}

.room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 18px;
  align-items: center;
  margin-top: 24px;
}

.room-note {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 4px);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 660;
}

.room-contact {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.room-contact h3 {
  font-size: 1.05rem;
}

.room-contact p {
  margin: 0;
  color: var(--text);
  font-weight: 760;
}

.room-contact a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 760;
  text-underline-offset: 4px;
}

.party-contact-card {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  justify-content: space-between;
}

.partyroom-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  gap: clamp(20px, 4vw, 36px);
  align-items: start;
}

.party-calendar-panel,
.party-side-panel {
  min-width: 0;
}

.party-side-panel {
  display: grid;
  gap: clamp(16px, 3vw, 22px);
}

.party-side-panel .info-card {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: none;
}

.party-calendar {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.party-calendar-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.party-calendar-head h3 {
  text-align: center;
  font-size: clamp(1.16rem, 0.8vw + 1rem, 1.45rem);
}

.calendar-nav-button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  font-weight: 760;
  padding: 0 13px;
  cursor: pointer;
}

.calendar-status-message {
  margin: 0 0 16px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-soft);
  color: var(--text);
  font-weight: 650;
}

.calendar-status-message:empty {
  display: none;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.status-free {
  background: color-mix(in srgb, var(--accent) 28%, var(--surface));
}

.status-booked {
  background: color-mix(in srgb, var(--warm) 42%, var(--surface));
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekday {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 760;
  text-align: center;
}

.calendar-day {
  min-width: 0;
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  background: var(--surface-soft);
}

.calendar-day.is-outside {
  visibility: hidden;
}

.calendar-day-number {
  color: var(--text);
  font-weight: 780;
  line-height: 1;
}

.calendar-day-status {
  color: var(--muted);
  font-size: clamp(0.78rem, 0.4vw + 0.7rem, 0.9rem);
  line-height: 1.2;
}

.calendar-day[data-status="frei"] {
  background: color-mix(in srgb, var(--accent-soft) 64%, var(--surface));
}

.calendar-day[data-status="belegt"] {
  background: color-mix(in srgb, var(--warm) 18%, var(--surface));
}

.plain-list {
  margin: 0;
  padding-left: 1.1rem;
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 22px);
}

.rule-card {
  min-width: 0;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.rule-card h3 {
  font-size: clamp(1.08rem, 0.45vw + 1rem, 1.24rem);
}

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

.quartier-intro {
  max-width: 920px;
}

.quartier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
}

.quartier-card {
  display: grid;
  grid-template-columns: 1fr;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quartier-card-wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
}

.quartier-card-media {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface-soft);
}

.quartier-card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quartier-card-logo {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 58px);
  background: #fff;
}

.quartier-card-logo img {
  max-width: 240px;
  aspect-ratio: auto;
  object-fit: contain;
}

.quartier-card-body {
  padding: clamp(22px, 3vw, 32px);
}

.quartier-card-body p {
  color: var(--muted);
  font-size: clamp(1.04rem, 0.4vw + 0.96rem, 1.16rem);
}

.quartier-card-body .text-link {
  margin-top: 4px;
}

.quartier-history-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: clamp(12px, 2vw, 16px);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 30px);
  align-items: stretch;
}

.contact-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card-priority {
  background: linear-gradient(135deg, var(--surface), var(--accent-soft));
}

.contact-logo {
  width: min(180px, 56vw);
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.contact-logo img {
  width: 100%;
  max-height: 76px;
  object-fit: contain;
}

.contact-logo-ceba {
  width: min(150px, 52vw);
  padding: 12px 14px;
}

.contact-logo-ceba img {
  max-height: 54px;
}

.contact-brand:empty {
  display: none;
}

.contact-card-notice {
  border-color: color-mix(in srgb, var(--warm) 52%, var(--line));
}

.contact-card p {
  color: var(--muted);
  font-size: clamp(1.04rem, 0.4vw + 0.96rem, 1.16rem);
}

.room-card-body .room-note,
.contact-card .room-note {
  color: var(--text);
  font-weight: 660;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px 18px;
  align-items: center;
  margin-top: 24px;
}

.contact-actions-stack {
  align-items: flex-start;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
}

.compact-contact-list {
  margin-top: 18px;
}

.contact-list div {
  display: grid;
  gap: 4px;
}

.contact-list dt {
  color: var(--muted);
  font-weight: 720;
}

.contact-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 760;
}

.contact-list a,
.direct-contact-grid a,
.emergency-list a {
  color: var(--accent-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.opening-hours {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.opening-hours h3 {
  margin-bottom: 12px;
}

.opening-hours p {
  margin: 4px 0;
}

.emergency-card {
  max-width: none;
}

.emergency-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.emergency-list a {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-decoration: none;
}

.emergency-icon {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  justify-self: end;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent-dark);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.emergency-list span {
  grid-column: 1 / -1;
  grid-row: 1;
  color: var(--muted);
  font-weight: 720;
}

.emergency-list strong {
  grid-column: 1;
  grid-row: 2;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.history-body {
  display: grid;
  gap: clamp(26px, 4vw, 42px);
}

.contact-details {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-details summary {
  min-height: 44px;
  cursor: pointer;
  color: var(--accent-dark);
  font-weight: 780;
}

.role-list {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.role-list li {
  color: var(--text);
}

.role-list span {
  display: inline-block;
  min-width: 108px;
  color: var(--muted);
  font-weight: 760;
}

.committee-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.committee-list section {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.committee-list h3 {
  font-size: 1rem;
}

.committee-list a {
  min-height: 38px;
  display: flex;
  align-items: center;
  color: var(--accent-dark);
  font-weight: 760;
  text-underline-offset: 4px;
}

.direct-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.direct-contact-grid section {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.direct-contact-grid p {
  margin: 8px 0 12px;
}

.direct-contact-grid a {
  display: flex;
  align-items: center;
  min-height: 38px;
  font-weight: 760;
}

.download-section .section-heading {
  max-width: 760px;
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.document-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.document-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) - 6px);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.document-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.document-content {
  min-width: 0;
}

.document-content h3 {
  font-size: clamp(1.12rem, 0.6vw + 1rem, 1.32rem);
}

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

.document-meta {
  display: inline-flex;
  width: fit-content;
  margin: 2px 0 14px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 760;
}

.document-card .text-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
}

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

.sponsor-context {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
  margin-bottom: clamp(22px, 4vw, 34px);
  padding: clamp(16px, 3vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.sponsor-context img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.sponsor-context p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.sponsor-card {
  min-width: 0;
  min-height: 174px;
  display: grid;
  grid-template-rows: minmax(92px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: clamp(18px, 3vw, 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  transform: translateY(-1px);
}

.sponsor-logo-frame {
  min-width: 0;
  min-height: 92px;
  display: grid;
  place-items: center;
  padding: 12px;
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
}

.sponsor-logo-frame img {
  width: 100%;
  max-width: 220px;
  max-height: 82px;
  object-fit: contain;
}

.sponsor-name {
  color: var(--text);
  font-weight: 780;
  line-height: 1.25;
}

.neighbourhood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.small-card {
  padding: clamp(16px, 2vw, 20px);
}

.small-card img {
  border-radius: calc(var(--radius) - 2px);
  margin-bottom: 16px;
}

.logo-card img {
  object-fit: contain;
  padding: 24px;
  background: #fff;
}

.help-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: clamp(20px, 4vw, 44px);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.help-links {
  margin-top: 0;
  align-content: start;
}

.help-links a {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-weight: 760;
  line-height: 1.3;
}

.site-footer {
  background: #202524;
  color: #f2eee7;
  padding: clamp(36px, 5vw, 52px) 0;
}

.footer-inner {
  width: min(100% - var(--page-gutter), var(--content));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 28px;
  align-items: center;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.footer-brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-brand p {
  margin: 4px 0 0;
  color: rgba(242, 238, 231, 0.72);
  font-size: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(242, 238, 231, 0.88);
  font-size: 1rem;
}

.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus-visible,
.site-footer .footer-links a[aria-current="page"] {
  color: #fffaf2;
}

@media (max-width: 1120px) {
  .nav-shell {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav,
  .nav-actions {
    grid-column: 1 / -1;
    display: none;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .nav-actions {
    display: flex;
  }

  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
  }

  .main-nav a,
  .internal-link {
    min-height: 46px;
    display: flex;
    align-items: center;
    border-top: 1px solid var(--line);
  }

  .nav-actions {
    align-items: stretch;
    justify-content: space-between;
    padding-bottom: 12px;
  }

  .hero-section,
  .page-hero,
  .article-hero,
  .event-layout,
  .story-panel,
  .retrospective-layout,
  .help-panel,
  .fitness-panel,
  .quartier-card-wide,
  .partyroom-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding-top: 0;
  }

  h1 {
    max-width: 14ch;
    font-size: clamp(2.65rem, 8vw, 4.9rem);
  }

  .today-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .neighbourhood-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }

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

  .rule-grid {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 74px;
    padding: 9px 7px;
  }

  .quartier-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .document-grid {
    grid-template-columns: 1fr;
  }

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

  .emergency-list,
  .committee-list,
  .direct-contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (min-width: 1121px) and (max-width: 1320px) {
  .event-layout,
  .story-panel,
  .help-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  :root {
    --header-h: 64px;
    --page-gutter: 24px;
  }

  .nav-shell,
  .hero-section,
  .page-hero,
  .article-hero,
  .anchor-nav,
  .section-inner,
  .footer-inner {
    width: min(100% - 24px, var(--content));
  }

  .brand span {
    font-size: 0.95rem;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero-media img {
    aspect-ratio: 4 / 3;
  }

  .page-hero-media img {
    aspect-ratio: 4 / 3;
  }

  .party-hero-gallery {
    grid-template-columns: 1fr;
  }

  .party-hero-thumbs {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .party-hero-image-main img {
    min-height: 0;
  }

  .article-hero-image img {
    aspect-ratio: 4 / 3;
  }

  .hero-actions .button,
  .help-links a,
  .contact-actions .button {
    width: 100%;
  }

  .party-calendar-head {
    grid-template-columns: 1fr 1fr;
  }

  .party-calendar-head h3 {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .calendar-nav-button {
    grid-row: 2;
  }

  .calendar-grid {
    gap: 6px;
  }

  .calendar-weekday {
    font-size: 0.76rem;
  }

  .calendar-day {
    min-height: 66px;
    padding: 7px 5px;
  }

  .calendar-day-status {
    font-size: 0.72rem;
  }

  .story-images {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

  .party-hero-thumbs {
    grid-template-columns: 1fr;
  }

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

  .quartier-history-images {
    grid-template-columns: 1fr;
  }

  .sponsor-grid {
    grid-template-columns: 1fr;
  }

  .sponsor-context {
    align-items: flex-start;
  }

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

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

  .photo-dialog-actions button {
    width: 100%;
  }

  .story-images img {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1500px) {
  .hero-section,
  .page-hero,
  .article-hero,
  .section-inner,
  .nav-shell,
  .footer-inner {
    --content: 1240px;
  }
}

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

  .hero-slogan.is-ready {
    animation: none;
  }
}
