/* St. Kunibertus Schützengesellschaft Gymnich – Stylesheet
   Aufbau: Schriften · Farben/Tokens · Basis · Kopf/Fuß · Startseite · Unterseiten · Inhalte */

/* ---------------------------------------------------------------- Schriften (lokal, keine externen Anfragen) */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-opsz-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-full-italic.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../fonts/instrument-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 400 700; font-style: normal; font-display: swap;
}

/* ---------------------------------------------------------------- Tokens */
:root {
  color-scheme: light;
  --green-950: #071a13;
  --green-900: #0c2a20;
  --green-800: #123c2e;
  --green-700: #185240;
  --green-600: #1f6b53;
  --green-300: #8fcdb2;
  --gold: #c9a24b;
  --gold-soft: #ecd9a4;

  --bg: #f7f4ec;
  --surface: #fffdf8;
  --surface-2: #eee8d9;
  --ink: #17231d;
  --ink-soft: #55625b;
  --line: rgba(23, 35, 29, .13);
  --brand: var(--green-700);
  --on-brand: #fff;
  --link: var(--green-600);

  --radius: 22px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(12, 42, 32, .06), 0 14px 34px -14px rgba(12, 42, 32, .22);
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --header-h: 76px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0a1410; --surface: #111e19; --surface-2: #172821;
    --ink: #e9efe9; --ink-soft: #a5b5ac; --line: rgba(233, 239, 233, .14);
    --brand: #2f8f6f; --on-brand: #04130d; --link: #7fd0ae;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
  }
}
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0a1410; --surface: #111e19; --surface-2: #172821;
  --ink: #e9efe9; --ink-soft: #a5b5ac; --line: rgba(233, 239, 233, .14);
  --brand: #2f8f6f; --on-brand: #04130d; --link: #7fd0ae;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .6);
}

/* ---------------------------------------------------------------- Basis */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  font-variation-settings: 'WONK' 0; /* Fraunces ohne verschnörkelte Kursivformen */
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 480; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h2 em, h1 em { font-style: italic; font-weight: 400; color: var(--brand); }
p { margin: 0 0 1em; text-wrap: pretty; }
@media (max-width: 600px) {
  h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
  h1 { font-size: 2.2rem; }
}
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 .9rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ''; width: 1.75rem; height: 1px; background: currentColor; }
.chip {
  display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .7rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); margin: 0;
}
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.link-arrow::after { content: '→'; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: transform .2s, background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { box-shadow: 0 10px 24px -10px var(--brand); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--line); color: var(--ink); background: var(--surface); }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Einblenden beim Scrollen */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Kopfzeile */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: .75rem var(--gutter); pointer-events: none; }
.bar {
  pointer-events: auto;
  max-width: var(--wrap); margin-inline: auto; height: 60px;
  display: flex; align-items: center; gap: 1rem; padding: 0 .55rem 0 1.1rem;
  border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: var(--shadow);
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s;
}
.at-top .bar { background: rgba(7, 26, 19, .28); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.brand { display: flex; align-items: center; gap: .7rem; color: inherit; text-decoration: none; margin-right: auto; }
.emblem {
  width: 46px; height: 38px; flex: none; background: var(--brand);
  -webkit-mask: url('../img/emblem.png') center / contain no-repeat; mask: url('../img/emblem.png') center / contain no-repeat;
}
.at-top .bar .emblem { background: #fff; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--font-display); font-weight: 560; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-text small { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.nav { display: flex; gap: .15rem; }
.nav a {
  color: inherit; text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .55rem .8rem; border-radius: 999px; transition: background-color .2s;
}
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav a[aria-current] { background: color-mix(in srgb, currentColor 14%, transparent); }
.bar-actions { display: flex; align-items: center; gap: .3rem; }
.menu-btn { display: none; }
@media (max-width: 1280px) {
  .nav, .cta { display: none; }
  .menu-btn { display: grid; }
}
@media (max-width: 420px) { .brand-text small { display: none; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--green-900); color: #fff;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 2rem; display: flex; flex-direction: column; gap: 2rem; overflow: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: grid; }
.mobile-menu nav a {
  color: #fff; text-decoration: none; font: 440 clamp(1.9rem, 8vw, 2.6rem)/1.2 var(--font-display);
  padding: .45rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.mobile-menu .btn { align-self: start; background: #fff; color: var(--green-900); }
.menu-open .bar { background: transparent; border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
.menu-open .bar .emblem { background: #fff; }
.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- Startseite: Hero */
.hero {
  /* linke Kante des Inhalts: daran richtet sich die dunkle Flaeche hinter dem Text aus */
  --edge: max(var(--gutter), (100vw - var(--wrap)) / 2);
  position: relative; min-height: min(100svh, 1000px); display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; overflow: hidden; background: var(--green-950);
}
/* Bild leicht vergroessert und links verankert: die Gruppe rueckt nach rechts, weg vom Text */
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; z-index: -2;
  transform-origin: 0 40%; transform: scale(1.12); animation: hero-zoom 18s ease-out both;
}
@keyframes hero-zoom { from { transform: scale(1.2); } to { transform: scale(1.12); } }
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 26, 19, .6) 0%, rgba(7, 26, 19, 0) 22%, rgba(7, 26, 19, 0) 56%, rgba(7, 26, 19, .92) 84%, var(--green-950) 100%),
    linear-gradient(90deg, rgba(7, 26, 19, .96) 0, rgba(7, 26, 19, .92) calc(var(--edge) + 30rem), rgba(7, 26, 19, .55) calc(var(--edge) + 39rem), rgba(7, 26, 19, 0) calc(var(--edge) + 58rem));
}
.hero-inner { padding-block: calc(var(--header-h) + 4rem) clamp(1.75rem, 4vw, 3rem); }
.hero .eyebrow { color: var(--gold-soft); }
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.4rem); font-weight: 420; line-height: .95; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.hero h1 em { color: var(--gold-soft); font-weight: 340; }
.hero-lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 31rem; color: #fff; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-facts {
  margin: clamp(2.2rem, 5vw, 4rem) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.hero-facts div { padding: 1.2rem 1.4rem 0 0; }
.hero-facts div + div { padding-left: 1.4rem; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-facts dt { font: 400 clamp(1.8rem, 3.4vw, 2.8rem)/1 var(--font-display); color: var(--gold-soft); }
.hero-facts dd { margin: .5rem 0 0; font-size: .9rem; line-height: 1.4; color: rgba(255, 255, 255, .8); }
/* schmale Bildschirme: Bild gross oben, Text darunter auf ruhigem Grund */
@media (max-width: 1000px) {
  .hero { --photo: min(80vw, 62svh); min-height: 0; }
  .hero-img { inset: 0 0 auto; height: var(--photo); transform: none; animation: none; object-position: 50% 35%; }
  .hero::after { background: linear-gradient(180deg, rgba(7, 26, 19, .55) 0, rgba(7, 26, 19, 0) 6rem, rgba(7, 26, 19, 0) calc(var(--photo) * .62), var(--green-950) var(--photo)); }
  .hero-inner { padding-top: calc(var(--photo) * .9); }
}
@media (max-width: 760px) {
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 1.2rem; }
  .hero-facts div:nth-child(3) { padding-left: 0; border-left: 0; }
}

.marquee { background: var(--green-800); color: var(--gold-soft); overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .08); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font: italic 380 clamp(1.3rem, 2.6vw, 2rem)/1 var(--font-display); padding: 1.1rem 0; white-space: nowrap; }
.marquee span::after { content: '✦'; font-style: normal; font-size: .55em; margin: 0 2.2rem; opacity: .6; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- Startseite: Abschnitte */
.section { padding-block: var(--section); }
.section + .section:not(.section-dark) { padding-top: 0; }
.section-dark + .section { padding-top: var(--section) !important; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-dark { background: var(--green-900); color: #f1f5f1; }
.section-dark .eyebrow, .section-dark .link-arrow { color: var(--gold-soft); }

/* Termine */
.event-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.event {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; display: grid; gap: 1.6rem; align-content: space-between; min-height: 210px;
  transition: transform .3s, box-shadow .3s;
}
.event:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-date { display: flex; align-items: baseline; gap: .6rem; }
.event-day { font: 400 3.4rem/.9 var(--font-display); letter-spacing: -.03em; color: var(--brand); }
.event-month { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); line-height: 1.35; }
.event h3 { font-size: 1.3rem; margin: 0; }
.event-first { background: var(--brand); color: var(--on-brand); border-color: transparent; }
.event-first .event-day, .event-first .event-month { color: inherit; }
.empty { color: var(--ink-soft); }
@media (max-width: 560px) { .event { min-height: 0; gap: 1.1rem; } }

/* Berichte (Bento) */
.news-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.news-bento .card:first-child { grid-column: span 2; grid-row: span 2; }
.card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: .55rem; align-content: start; }
.card-meta { display: flex; gap: .6rem; align-items: center; font-size: .8rem; color: var(--ink-soft); flex-wrap: wrap; }
.card h3 { font-size: 1.2rem; margin: 0; line-height: 1.18; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-bento .card:first-child .card-img { aspect-ratio: auto; flex: 1; min-height: 260px; }
.news-bento .card:first-child h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.news-bento .card:not(:first-child) p { display: none; }
@media (max-width: 980px) { .news-bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news-bento { grid-template-columns: 1fr; } .news-bento .card:first-child { grid-column: auto; } }

/* Das sind wir */
.about { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.about-photo { margin: 0; position: relative; justify-self: center; width: min(100%, 380px); }
.about-photo img { width: 100%; border-radius: 200px 200px var(--radius) var(--radius); aspect-ratio: 2 / 3; object-fit: cover; }
.about-photo::before { content: ''; position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: 220px 220px 30px 30px; opacity: .7; pointer-events: none; }
.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); margin-bottom: 1.2rem; }
.about-text blockquote {
  margin: 1.5rem 0; padding-left: 1.25rem; border-left: 2px solid var(--gold);
  font: italic 400 clamp(1.15rem, 1.8vw, 1.4rem)/1.4 var(--font-display);
}
@media (max-width: 820px) { .about { grid-template-columns: 1fr; } .about-photo { width: min(70%, 300px); } }

/* Majestäten */
.royals { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 1rem; }
.royals li {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius); padding: 1.4rem;
  display: grid; gap: 2.5rem; align-content: space-between; min-height: 200px; background: rgba(255, 255, 255, .03);
}
.royals li:first-child { background: var(--gold-soft); color: var(--green-950); border-color: transparent; }
.royals svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; opacity: .85; }
.royals small { display: block; font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: .35rem; }
.royals strong { font: 440 clamp(1.25rem, 1.9vw, 1.6rem)/1.1 var(--font-display); }
.royals li:first-child strong { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
@media (max-width: 1000px) { .royals { grid-template-columns: repeat(2, minmax(0, 1fr)); } .royals li:first-child { grid-column: span 2; } .royals li { min-height: 150px; gap: 1.5rem; } }
@media (max-width: 560px) { .royals { grid-template-columns: minmax(0, 1fr); } .royals li, .royals li:first-child { grid-column: auto; min-height: 0; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem; } }

/* Gruppen (Bento) */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 1rem; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff; text-decoration: none;
  display: flex; align-items: flex-end; isolation: isolate; background: var(--green-800);
  transition: transform .3s, box-shadow .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile-img::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 26, 19, 0) 30%, rgba(7, 26, 19, .88) 100%); }
.tile-body { padding: 1.3rem; display: grid; gap: .4rem; justify-items: start; }
.tile-body strong { font: 440 1.5rem/1.1 var(--font-display); }
.tile-body > span:not(.chip) { font-size: .93rem; line-height: 1.4; opacity: .9; }
.tile .chip { background: rgba(255, 255, 255, .18); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-xl .tile-body strong { font-size: clamp(1.9rem, 3vw, 2.6rem); }
.tile-tall { grid-row: span 2; }
.tile-plain { background: var(--surface); color: var(--ink); border: 1px solid var(--line); align-items: stretch; }
.tile-plain .tile-body { align-content: space-between; width: 100%; }
.tile-plain .tile-body::before { content: '↗'; font-size: 1.3rem; color: var(--brand); }
.tile-accent { background: var(--gold-soft); color: var(--green-950); border-color: transparent; grid-column: span 2; }
.tile-accent .tile-body::before { color: inherit; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 210px; } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } .tile-xl, .tile-accent { grid-column: auto; } .tile-tall { grid-row: auto; } .tile-plain { min-height: 0; } .bento { grid-auto-rows: minmax(170px, auto); } .tile-xl { grid-row: span 2; } }

/* Tradition */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { color: inherit; text-decoration: none; display: grid; gap: 1.1rem; align-content: start; }
.feature img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1), border-radius .6s; }
.feature:hover img { transform: scale(.975); border-radius: 44px; }
.feature h3 { margin: .7rem 0 .4rem; font-size: 1.6rem; }
.feature p:last-child { color: var(--ink-soft); margin: 0; }
.feature:nth-child(2) { margin-top: 3.5rem; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } .feature:nth-child(2) { margin-top: 0; } .feature img { aspect-ratio: 3 / 2; } }

/* Vereinshaus */
.house { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.house-photo { margin: 0; }
.house-photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.house h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
.timeline { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; }
.timeline li { display: grid; grid-template-columns: 4.6rem 1fr; gap: 1rem; padding: .95rem 0; border-top: 1px solid var(--line); }
.timeline b { font: 440 1.35rem/1.2 var(--font-display); color: var(--brand); }
.timeline span { font-size: .97rem; color: var(--ink-soft); }
@media (max-width: 860px) { .house { grid-template-columns: 1fr; } }

/* Mitmachen */
.join {
  background: var(--green-800); color: #fff; border-radius: calc(var(--radius) * 1.6);
  padding: clamp(1.75rem, 5vw, 4rem); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  background-image: radial-gradient(900px 400px at 100% 0%, rgba(201, 162, 75, .28), transparent 60%);
}
.join .eyebrow { color: var(--gold-soft); }
.join p { color: rgba(255, 255, 255, .86); max-width: 34rem; }
.fees { margin: 0; display: grid; gap: .8rem; }
.fees div { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1.1rem; }
.fees dt { font: 400 2.3rem/1 var(--font-display); color: var(--gold-soft); white-space: nowrap; }
.fees dd { margin: 0; font-size: .93rem; line-height: 1.35; }
.fees p { font-size: .8rem; margin: 0; opacity: .7; }
@media (max-width: 860px) { .join { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- Fußzeile */
.site-footer { background: var(--green-950); color: #cfdad3; margin-top: var(--section); padding-top: clamp(3rem, 6vw, 5rem); font-size: .95rem; }
.is-home .site-footer { margin-top: 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 3rem; }
.footer-brand strong { color: #fff; }
.emblem-lg { display: block; width: 92px; height: 76px; background: var(--gold-soft); margin-bottom: 1.25rem; }
.social { display: flex; gap: 1.1rem; font-weight: 600; }
.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.footer-nav h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); margin: 0 0 1rem; }
.footer-nav h2 a { color: inherit; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem 2rem; margin-top: 3rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; opacity: .85; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } .footer-nav { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- Unterseiten */
#view { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4rem)); min-height: 70vh; }
.narrow { max-width: 50rem; margin-inline: auto; }
.page-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.page-head h1 { max-width: 20ch; }
.page-head .lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 44rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.crumbs span[aria-hidden] { opacity: .5; }

.subnav { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.pill {
  font: 500 .92rem/1 var(--font-body); padding: .65rem 1rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pill:hover { border-color: var(--brand); }
.pill[aria-current], .pill[aria-pressed='true'] { background: var(--brand); color: var(--on-brand); border-color: transparent; }

/* Bereichs-Übersicht */
.hub-group { padding-block: 1.75rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 1.5rem; }
.hub-group h2 { font-size: 1.45rem; margin: .3rem 0 0; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.hub-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem 1.2rem;
  color: inherit; text-decoration: none; display: grid; gap: .35rem; align-content: start; min-height: 112px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.hub-card strong { font: 460 1.2rem/1.2 var(--font-display); }
.hub-card span { font-size: .9rem; color: var(--ink-soft); line-height: 1.4; }
@media (max-width: 760px) { .hub-group { grid-template-columns: 1fr; } }

/* Berichte-Liste */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.more { display: grid; place-items: center; margin-top: 2.5rem; }

/* Termine-Liste */
.agenda { display: grid; gap: .75rem; }
.agenda h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin: 1.75rem 0 .25rem; }
.agenda-item { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.agenda-item time { font: 400 2.4rem/1 var(--font-display); color: var(--brand); display: grid; }
.agenda-item time small { font: 600 .72rem/1.4 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.agenda-item strong { font: 460 1.3rem/1.2 var(--font-display); }
.agenda-past { opacity: .6; }
.note { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-size: .97rem; margin-top: 2rem; }
.note p:last-child, .note ul:last-child { margin-bottom: 0; }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; }
.contact-card h2 { font: 600 .78rem/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .4rem; }
.contact-card p { margin: 0; }
.contact-card .big { font: 440 1.35rem/1.25 var(--font-display); }

/* Majestäten-Seite */
.royals-page { color: #f1f5f1; background: var(--green-900); border-radius: calc(var(--radius) * 1.4); padding: clamp(1.25rem, 3vw, 2.25rem); margin-bottom: 2rem; }

/* ---------------------------------------------------------------- Inhalte (importierte Texte) */
.prose { max-width: 50rem; font-size: 1.09rem; overflow-wrap: break-word; }
.prose-wide { max-width: none; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h4 { font: 600 1.05rem/1.3 var(--font-body); letter-spacing: 0; margin-top: 1.6em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin-inline: 0; padding: .2rem 0 .2rem 1.4rem; border-left: 2px solid var(--gold); font: italic 400 1.2rem/1.5 var(--font-display); }
.prose figure { margin-inline: 0; }
.prose figure img { border-radius: var(--radius-sm); cursor: zoom-in; }
.prose .fig img { margin-inline: auto; }
.prose figcaption { font-size: .88rem; color: var(--ink-soft); text-align: center; margin-top: .6rem; }
.prose .inset { float: right; width: min(42%, 260px); margin: .3rem 0 1rem 1.75rem; }
.prose::after { content: ''; display: block; clear: both; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .6rem; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery[data-count='2'] .gallery-grid { grid-template-columns: 1fr 1fr; }
.gallery[data-count='2'] .gallery-grid img, .gallery[data-count='3'] .gallery-grid img { aspect-ratio: 4 / 3; }
.gallery[data-count='3'] .gallery-grid { grid-template-columns: repeat(3, 1fr); }
.download::before { content: '↓ '; }

/* Schlüssel/Wert-Listen (Vorstand, Chronik, Beiträge) */
.kv { margin: 0; display: grid; }
.kv > div { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr; gap: 1.25rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 1px solid var(--line); }
.kv dt { color: var(--ink-soft); font-size: .95rem; }
.kv dd { margin: 0; font-weight: 500; }
.page-chronik .kv dt { font-weight: 600; color: var(--brand); }
.page-chronik .kv dd { font-weight: 400; }
.page-chronik .kv > div { grid-template-columns: 7rem 1fr; }
@media (max-width: 560px) { .kv > div, .page-chronik .kv > div { grid-template-columns: 1fr; gap: .15rem; } }
.toc { display: flex; gap: .4rem; overflow-x: auto; padding: .6rem 0; margin-bottom: 1.5rem; position: sticky; top: calc(var(--header-h) + .25rem); z-index: 5; background: linear-gradient(var(--bg) 80%, transparent); scrollbar-width: thin; }
.toc .pill { font-size: .85rem; padding: .5rem .8rem; }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 4.5rem); }

/* Tabellen */
.table-tools { margin-bottom: 1rem; }
.table-tools input { font: inherit; width: min(100%, 22rem); padding: .75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.prose th { text-align: left; font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface-2); position: sticky; top: 0; }
.prose th, .prose td { padding: .7rem .9rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { font-weight: 600; white-space: nowrap; color: var(--brand); }
@media (max-width: 720px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .prose thead { display: none; }
  .prose tr { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .6rem 1rem; margin-bottom: .75rem; }
  .prose td { border: 0; padding: .3rem 0; display: grid; grid-template-columns: 9.5rem 1fr; gap: .75rem; }
  .prose td::before { content: attr(data-label); font-size: .78rem; color: var(--ink-soft); font-weight: 500; }
  .prose td:empty { display: none; }
  .prose td:first-child { font: 460 1.3rem/1.2 var(--font-display); display: block; padding-bottom: .4rem; white-space: normal; }
  .prose td:first-child::before { content: none; }
  .prose .plain td { display: block; padding: .1rem 0; }
  .prose .plain td:first-child { font: 600 .95rem/1.4 var(--font-body); padding-bottom: .1rem; }
}

/* Gedicht/Lied */
.page-wallfahrtslied .prose p { font: italic 400 1.25rem/1.6 var(--font-display); text-align: center; }

/* Bericht */
.article-hero { margin: 0 0 clamp(1.75rem, 4vw, 3rem); }
.article-hero img { width: 100%; max-height: 72vh; object-fit: cover; border-radius: var(--radius); }
.article-meta { display: flex; gap: .75rem; align-items: center; color: var(--ink-soft); font-size: .9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pager { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: clamp(2.5rem, 6vw, 4rem); padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pager a { text-decoration: none; display: grid; gap: .2rem; max-width: 46%; min-width: 0; color: inherit; overflow-wrap: anywhere; }
.pager .next { text-align: right; margin-left: auto; }
.pager small { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.pager strong { font: 460 1.15rem/1.25 var(--font-display); }
.pager a:hover strong { color: var(--link); }

/* Bildansicht */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(4, 14, 10, .93); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 8px; }
.lightbox button { position: fixed; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-nav.prev { left: 1rem; top: 50%; }
.lightbox-nav.next { right: 1rem; top: 50%; }
.lightbox-nav[hidden] { display: none; }

/* Seitenwechsel */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
@media print {
  .site-header, .mobile-menu, .site-footer, .subnav, .toc, .pager { display: none !important; }
  #view { padding-top: 0; }
}
