:root {
  --red: #ba2834;
  --green: #35634d;
  --background: #fff;
  --text: #242823;
  --muted: #5e655f;
  --line: #dfe4df;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
.container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.skip { position: absolute; top: -100px; left: 16px; padding: 12px; background: white; z-index: 3; }
.skip:focus { top: 12px; }
header.container { width: 100%; padding: 12px max(24px, calc((100% - 1200px) / 2)); min-height: 76px; display: flex; align-items: center; gap: 36px; background: var(--background); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { display: block; width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }
.name { font-weight: 750; max-width: 235px; font-size: 15px; line-height: 1.35; }
nav { display: flex; gap: 24px; }
nav a { font-size: 14px; font-weight: 650; text-decoration: none; padding-block: 10px; }
nav a:hover { color: var(--red); }
.location { margin-left: auto; font-size: 12px; color: var(--green); white-space: nowrap; }
.intro { margin: 0 calc((min(1200px, 100vw - 80px) - 100vw) / 2); padding: 64px max(40px, calc((100vw - 1200px) / 2)); background: #edf3ee; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; font-weight: 750; color: var(--green); line-height: 1.7; margin: 0 0 20px; }
h1 { font-size: clamp(42px, 5.5vw, 70px); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; white-space: pre-line; margin: 0; }
.intro .event-list { margin-top: 28px; }
.intro .event-card { background: var(--background); }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; background: var(--red); color: white; border: 1px solid transparent; border-radius: 6px; padding: 11px 18px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { filter: brightness(.94); }
.button.secondary { background: var(--background); color: var(--text); border-color: #bfc9c0; }
.button:disabled, .button[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
#einblicke { padding-top: 52px; padding-bottom: 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { font-size: 14px; margin: 0; }
.section-heading span { font-size: 12px; color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 12px; }
figure { margin: 0; min-width: 0; text-align: center; }
.gallery figure > img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: contain; display: block; border-radius: 8px; background: #f4f6f4; }
.gallery-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 24px; }
.gallery-controls[hidden] { display: none; }
.gallery-arrow { width: 44px; padding-inline: 0; font-size: 20px; line-height: 1; }
.placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; background: #eee7e4; color: #76504a; text-align: center; padding: 18px; }
.gallery figure:nth-child(2) .placeholder { background: #e5eee6; color: #415b49; }
.gallery figure:nth-child(3) .placeholder { background: #eeece5; color: #605b48; }
.placeholder strong { font-size: 14px; }
.placeholder-note { font-size: 11px; line-height: 1.6; margin-top: 8px; }
.picture-icon { width: 44px; height: 34px; border: 1px solid currentColor; position: relative; margin-bottom: 20px; opacity: .65; }
.picture-icon:before { content: ''; position: absolute; width: 17px; height: 17px; border-left: 1px solid currentColor; border-top: 1px solid currentColor; transform: rotate(45deg); left: 12px; top: 14px; }
.picture-icon:after { content: ''; position: absolute; width: 5px; height: 5px; border: 1px solid currentColor; border-radius: 50%; top: 5px; right: 6px; }
figcaption { padding-top: 24px; max-width: 360px; margin-inline: auto; }
figcaption h3 { font-size: 20px; margin: 0 0 12px; font-weight: 750; }
figcaption p { font-size: 15px; color: var(--muted); line-height: 1.75; margin: 0; }
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; border-top: 1px solid var(--line); margin-top: 60px; padding: 36px 0 48px; }
.about h2 { font-size: 28px; font-weight: 750; margin: 0 0 16px; }
.about p:not(.eyebrow) { font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 580px; margin: 0; }
#calendar { padding: 48px 0 64px; border-top: 1px solid var(--line); }
#calendar > h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; }
.calendar-intro { max-width: 700px; color: var(--muted); line-height: 1.7; margin-bottom: 28px; }
.calendar-filters { display: grid; grid-template-columns: 110px 220px 1fr auto; gap: 16px; align-items: end; padding: 20px; background: #f4f6f4; border-radius: 8px; }
.calendar-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; min-width: 0; }
.calendar-filters select, .calendar-filters input { width: 100%; min-width: 0; min-height: 44px; padding: 10px; background: white; color: var(--text); border: 1px solid #bfc9c0; border-radius: 5px; font-size: 14px; }
.calendar-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; margin-bottom: 16px; flex-wrap: wrap; }
.month-navigation { display: flex; align-items: center; gap: 10px; }
.month-navigation h3 { margin: 0; min-width: 190px; font-size: 21px; text-align: center; }
.month-navigation .button { padding-inline: 14px; }
.export-hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.calendar-status { font-size: 13px; color: var(--green); font-weight: 650; margin-block: 20px 12px; }
.month-calendar { width: 100%; table-layout: fixed; border-collapse: collapse; border: 1px solid var(--line); }
.month-calendar th { background: #f4f6f4; padding: 12px; font-size: 12px; text-align: left; }
.month-calendar td { height: 108px; vertical-align: top; border: 1px solid var(--line); padding: 8px; }
.month-calendar td.outside { background: #f8f9f8; }
.day-number { font-size: 12px; width: 25px; height: 25px; display: grid; place-items: center; }
.today .day-number { background: var(--red); color: white; border-radius: 50%; font-weight: 700; }
.calendar-event { display: block; margin-top: 5px; padding: 6px 8px; border-left: 3px solid var(--green); background: #eaf1eb; color: #284433; border-radius: 3px; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; text-decoration: none; }
.calendar-event:hover { text-decoration: underline; }
.event-list { display: grid; gap: 12px; }
.event-card { display: grid; grid-template-columns: 155px 1fr; gap: 24px; border: 1px solid var(--line); border-radius: 8px; padding: 22px; scroll-margin-top: 100px; }
.event-card:target { border-color: var(--green); background: #f4f8f4; }
.event-date { font-size: 15px; font-weight: 750; line-height: 1.7; }
.event-date span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.event-card h2 { font-size: 17px; margin: 10px 0 8px; }
.event-card p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.category-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.category-badge { display: inline-block; background: #edf3ee; color: #31523e; padding: 3px 8px; font-size: 11px; font-weight: 650; border-radius: 4px; }
.empty-state { padding: 28px; background: #f4f6f4; color: var(--muted); border-radius: 8px; line-height: 1.7; }
.demo-notice, #error { padding: 16px; border: 1px solid var(--red); line-height: 1.6; }
footer.container { width: 100%; display: flex; justify-content: space-between; gap: 20px; padding: 28px max(40px, calc((100% - 1200px) / 2)); background: #29352e; color: #fff; font-size: 12px; }
.footer-club { display: flex; flex-direction: column; gap: 10px; }
.footer-club strong { font-size: 15px; }
.footer-membership-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-top: 8px; }
.footer-contact { max-width: 100%; }
.footer-contact h2 { margin: 0 0 12px; font-size: 16px; }
.footer-contact address { display: flex; flex-direction: column; font-style: normal; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.contact-email { margin-top: 8px; padding-block: 6px; text-underline-offset: 4px; }
.footer-contact a:focus-visible { outline-color: white; }
@media (max-width: 960px) {
  .location { display: none; }
  header.container { justify-content: space-between; }
  .calendar-filters { grid-template-columns: 1fr 2fr; }
  .calendar-event { font-size: 10px; padding: 4px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 135px; }
  .container { width: calc(100% - 40px); }
  header.container { padding: 12px 20px; gap: 12px; flex-wrap: wrap; }
  .name { font-size: 14px; max-width: 220px; }
  nav { gap: 20px; }
  nav a { font-size: 13px; }
  .intro { margin-inline: -20px; padding: 44px 20px; }
  h1 { font-size: clamp(40px, 10vw, 64px); }
  .section-heading span { display: none; }
  .gallery { grid-template-columns: 1fr; gap: 44px; }
  .about { grid-template-columns: 1fr; gap: 0; margin-top: 44px; padding-block: 30px; }
  .about .eyebrow { margin-bottom: 16px; }
  .calendar-filters { padding: 14px; gap: 12px; }
  .calendar-filters label:nth-child(3), .calendar-filters > button { grid-column: 1 / -1; }
  .calendar-toolbar { gap: 12px; }
  .month-navigation { width: 100%; gap: 6px; }
  .month-navigation h3 { min-width: 0; flex: 1; font-size: 17px; }
  .month-navigation .button { padding-inline: 10px; }
  .calendar-toolbar > .button { width: 100%; }
  .month-calendar th { padding: 10px 2px; text-align: center; font-size: 11px; }
  .month-calendar td { height: 68px; padding: 3px; }
  .day-number { margin-inline: auto; }
  .calendar-event { height: 24px; margin: 3px auto 0; padding: 0; width: 24px; font-size: 0; border-left: 0; border-radius: 50%; background: var(--green); }
  .event-card { grid-template-columns: 1fr; gap: 12px; padding: 18px; scroll-margin-top: 135px; }
  .event-date span { display: inline; margin-left: 8px; }
  footer.container { padding: 26px 20px; flex-direction: column; gap: 28px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 380px) {
  .month-navigation { flex-wrap: wrap; }
  .month-navigation > button:last-child { flex-basis: 100%; }
  .month-navigation h3 { font-size: 15px; }
}
