/* ------------------------------------------------------------------ */
/* Self-hosted fonts (no third-party requests to Google Fonts)         */
/* ------------------------------------------------------------------ */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/cormorant-garamond-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/work-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/work-sans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/work-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/work-sans-700.woff2') format('woff2');
}

/* ------------------------------------------------------------------ */
/* Design tokens                                                       */
/* ------------------------------------------------------------------ */
:root {
  --green-900: #16261c;
  --green-800: #1f3326;
  --green-950: #0f1d14;
  --gold: #b9925a;
  --gold-dark: #8a6f45;
  --cream: #f3efe6;
  --bg: #f6f3ec;
  --ink: #1c1f1d;
  --ink-soft: rgb(28 31 29 / 70%);
  --ink-softer: rgb(28 31 29 / 55%);
  --border: rgb(28 31 29 / 10%);

  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Work Sans', Helvetica, Arial, sans-serif;

  --max: 1180px;
  --max-prose: 880px;
  --gutter: clamp(20px, 4vw, 56px);

  --radius: 8px;
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

/* Guards against components that set their own `display` and would
   otherwise defeat the native [hidden] behaviour (JS toggles rely on it). */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; }

.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;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-gold {
  background: var(--gold);
  color: var(--green-900);
}
.btn-gold:hover { filter: brightness(1.08); }

.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgb(243 239 230 / 35%);
}
.btn-outline:hover { border-color: var(--gold); color: #e7d9bd; }

.btn-dark {
  background: var(--green-900);
  color: var(--cream);
}
.btn-dark:hover { background: var(--green-800); }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-dark);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
}

/* ------------------------------------------------------------------ */
/* Header / navigation                                                 */
/* ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--green-900);
  box-shadow: 0 1px 0 rgb(243 239 230 / 8%);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: var(--green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: #e7d9bd;
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-eyebrow {
  font-size: 10.5px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
}

.brand-name {
  font-family: var(--font-serif);
  font-size: clamp(14px, 3.6vw, 18px);
  line-height: 1.15;
  font-weight: 600;
  color: var(--cream);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 24px);
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 8px 2px;
  white-space: nowrap;
  color: rgb(243 239 230 / 78%);
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: #e7d9bd; }

.site-nav a[aria-current="page"] {
  color: #e7d9bd;
  border-bottom-color: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 14px; }

.header-cta { white-space: nowrap; padding: 11px 20px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgb(243 239 230 / 30%);
  border-radius: 4px;
  color: var(--cream);
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav {
  background: var(--green-800);
  display: flex;
  flex-direction: column;
  padding: 10px var(--gutter) 20px;
  gap: 4px;
  border-bottom: 1px solid rgb(243 239 230 / 12%);
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.mobile-nav a {
  display: block;
  text-decoration: none;
  padding: 14px 4px;
  font-size: 16px;
  color: var(--cream);
  border-bottom: 1px solid rgb(243 239 230 / 8%);
  min-height: 44px;
}

.mobile-nav a[aria-current="page"] { color: #e7d9bd; }

.mobile-nav .btn { margin-top: 10px; }

@media (max-width: 1179px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: flex; }
}

/* ------------------------------------------------------------------ */
/* Page hero (subpages)                                                */
/* ------------------------------------------------------------------ */
.page-hero {
  background: var(--green-900);
  padding: 72px var(--gutter) 56px;
}

.page-hero .eyebrow { margin-bottom: 14px; }

.page-hero h1 {
  font-size: clamp(34px, 4.2vw, 52px);
  color: var(--cream);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ------------------------------------------------------------------ */
/* Home hero                                                           */
/* ------------------------------------------------------------------ */
.hero {
  background: var(--green-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding: clamp(56px, 8vw, 108px) var(--gutter);
}

.hero-content { max-width: 560px; }

.hero-content .eyebrow { display: block; margin-bottom: 18px; }

.hero h1 {
  font-size: clamp(32px, 7vw, 68px);
  line-height: 1.1;
  color: var(--cream);
  margin: 0 0 22px;
  text-wrap: pretty;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
  color: rgb(243 239 230 / 72%);
  margin: 0 0 34px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-emblem {
  position: relative;
  width: clamp(160px, 40vw, 280px);
  height: clamp(160px, 40vw, 280px);
  flex-shrink: 0;
  margin: 0 auto;
}

.hero-emblem span {
  position: absolute;
  border-radius: 50%;
}
.hero-emblem .ring-1 { inset: 0; border: 1.5px solid rgb(231 217 189 / 22%); }
.hero-emblem .ring-2 { inset: 9%; border: 1.5px solid rgb(231 217 189 / 32%); }
.hero-emblem .ring-3 { inset: 18.5%; border: 1.5px solid rgb(231 217 189 / 48%); }
.hero-emblem .ring-4 { inset: 28%; border: 1.5px solid var(--gold); }
.hero-emblem .dot { inset: 37%; background: var(--gold); }

/* ------------------------------------------------------------------ */
/* Sections & layout helpers                                           */
/* ------------------------------------------------------------------ */
.section { padding: 88px var(--gutter); max-width: var(--max); margin: 0 auto; }
.section-prose { max-width: var(--max-prose); margin: 0 auto; padding: 72px var(--gutter); }
.section-tight { padding-top: 24px; }

.section-intro { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-intro h2 { font-size: clamp(30px, 3.6vw, 42px); margin-bottom: 18px; }
.section-intro p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin: 0; }

.prose p { font-size: 17px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 20px; }
.prose p:last-child { margin-bottom: 0; }

.quote-band {
  background: var(--green-800);
  padding: 80px var(--gutter);
  text-align: center;
}
.quote-band p {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.5;
  color: var(--cream);
}

.cta-band { padding: 88px var(--gutter); text-align: center; }
.cta-band h2 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 30px; font-size: 16px; line-height: 1.7; color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* Cards                                                                */
/* ------------------------------------------------------------------ */
.card-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  flex: 1 1 300px;
  max-width: 360px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card:hover { border-color: var(--gold); transform: translateY(-2px); }

.card-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  margin-bottom: 18px;
}

.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 15px; line-height: 1.6; color: var(--ink-softer); margin: 0 0 18px; }

.value-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.value {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
  padding: 24px;
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  margin: 0 auto 16px;
}

.value h3 { font-size: 20px; margin-bottom: 8px; }
.value p { font-size: 14.5px; color: var(--ink-softer); margin: 0; line-height: 1.6; }

.feature-split {
  background: #fff;
  padding: 72px var(--gutter);
}
.feature-split-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  align-items: center;
  flex-wrap: wrap;
}
.feature-split-inner > * { flex: 1 1 320px; }
.feature-split h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.feature-split p { font-size: 16px; line-height: 1.75; color: var(--ink-soft); margin: 0; }

/* ------------------------------------------------------------------ */
/* Photos & placeholders                                               */
/* ------------------------------------------------------------------ */
.photo {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
}

.photo-placeholder {
  background: repeating-linear-gradient(135deg, rgb(28 31 29 / 7%) 0px, rgb(28 31 29 / 7%) 12px, rgb(28 31 29 / 3%) 12px, rgb(28 31 29 / 3%) 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.photo-placeholder span {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgb(28 31 29 / 45%);
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}

.photo-round {
  width: 140px;
  margin: 0 auto 16px;
}
.photo-round.photo, .photo-round.photo-placeholder { border-radius: 50%; }
.photo-round span { font-size: 10px; padding: 0; }

/* ------------------------------------------------------------------ */
/* People grids (Vorstand / ehemalige Königspaare)                     */
/* ------------------------------------------------------------------ */
.people-grid {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.person {
  flex: 1 1 220px;
  max-width: 250px;
  text-align: center;
}

.person-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--ink); }
.person-role { font-size: 13.5px; color: var(--gold-dark); margin-top: 4px; letter-spacing: 0.2px; }

/* ------------------------------------------------------------------ */
/* Königspaar cards                                                    */
/* ------------------------------------------------------------------ */
.royal-grid {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.royal-card {
  flex: 1 1 320px;
  max-width: 380px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
}

.royal-card .photo,
.royal-card .photo-placeholder { margin-bottom: 22px; }

.royal-title {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px;
}

.royal-name { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--ink); }
.royal-year { font-size: 14px; color: var(--ink-softer); margin-top: 6px; }

/* ------------------------------------------------------------------ */
/* Notice banner                                                       */
/* ------------------------------------------------------------------ */
.notice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgb(185 146 90 / 12%);
  border: 1px solid rgb(185 146 90 / 35%);
  border-radius: 20px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--gold-dark);
  margin-bottom: 32px;
}

/* ------------------------------------------------------------------ */
/* Events / filter chips                                               */
/* ------------------------------------------------------------------ */
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }

.chip {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgb(28 31 29 / 16%);
  border-radius: 18px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.chip.is-active {
  background: var(--green-900);
  color: var(--cream);
  border-color: var(--green-900);
}

.event-list { display: flex; flex-direction: column; gap: 16px; }

.event {
  display: flex;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  flex-wrap: wrap;
}

.event-date {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: var(--green-900);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .day { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1; }
.event-date .month { font-size: 10.5px; letter-spacing: 1px; color: var(--gold); }

.event-body { flex: 1; min-width: 180px; }
.event-title { font-family: var(--font-serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.event-meta { font-size: 14px; color: var(--ink-softer); margin-top: 4px; }

.event-category {
  flex-shrink: 0;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--gold-dark);
  background: rgb(185 146 90 / 12%);
  padding: 6px 12px;
  border-radius: 14px;
}

/* ------------------------------------------------------------------ */
/* Timeline (Schützenfest)                                             */
/* ------------------------------------------------------------------ */
.timeline { display: flex; flex-direction: column; }
.timeline-item {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-day {
  width: 100px;
  flex-shrink: 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--gold-dark);
  font-weight: 600;
}
.timeline-text { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }

/* ------------------------------------------------------------------ */
/* Contact                                                              */
/* ------------------------------------------------------------------ */
.contact-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.contact-grid > * { flex: 1 1 320px; }
.contact-grid h2 { font-size: 24px; margin-bottom: 18px; }
.contact-grid p { font-size: 16px; line-height: 1.8; color: var(--ink-soft); margin: 0 0 28px; }

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 520px;
}
.contact-card h3 { font-size: 22px; }
.contact-card .details { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.contact-card .details a { color: var(--gold-dark); text-decoration: none; }

/* ------------------------------------------------------------------ */
/* Footer                                                               */
/* ------------------------------------------------------------------ */
.site-footer {
  background: var(--green-950);
  padding: 56px var(--gutter) 32px;
  color: rgb(243 239 230 / 70%);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgb(243 239 230 / 10%);
}

.footer-brand { max-width: 320px; }
.footer-title { font-family: var(--font-serif); font-size: 19px; font-weight: 600; color: var(--cream); margin-bottom: 10px; }
.footer-inner p { font-size: 14px; line-height: 1.7; margin: 0; }

.footer-heading {
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-links a { display: block; padding: 6px 0; text-decoration: none; color: rgb(243 239 230 / 70%); font-size: 14px; }
.footer-links a:hover { color: var(--gold); }

.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--gold); }

.footer-copyright {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: 12.5px;
  color: rgb(243 239 230 / 40%);
}

.footer-copyright a { text-decoration: none; }
.footer-copyright a:hover { color: var(--gold); }
