/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --clr-primary: #b84e37;
  --clr-primary-dark: #a04430;
  --clr-primary-light: rgba(184,78,55,.1);
  --clr-accent: #457455;
  --clr-accent-dark: #3a6347;
  --clr-accent-light: rgba(69,116,85,.1);
  --clr-dark: #1f1e1b;
  --clr-dark-2: #282620;
  --clr-bg: #f9f6f1;
  --clr-bg-alt: #ffffff;
  --clr-border: #e8e2d9;
  --clr-card: #ffffff;
  --clr-text: #2e2c28;
  --clr-text-light: #6b6560;
  --clr-text-inv: #f5f2ed;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.11);
  --transition: .3s ease;
  --container: 1100px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main, body > .hero ~ * { flex-shrink: 0; }
body > main { flex: 1; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.25;
  /* long German compounds ("Herzrhythmusstörungen") must never widen the page
     on mobile; html[lang=de] gives proper hyphenation points */
  overflow-wrap: break-word;
  hyphens: auto;
}

img { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-primary-dark); }

/* ===== A11Y: SKIP-LINK + FOCUS ===== */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 10px 18px;
  background: var(--clr-primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
}

.skip-link:focus {
  top: 0;
  color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

/* On the dark header/hero the rust outline is hard to see — use light */
.header a:focus-visible,
.header button:focus-visible,
.hero a:focus-visible,
.footer a:focus-visible,
.section--accent a:focus-visible,
.section--accent button:focus-visible,
.section--accent input:focus-visible,
.section--accent select:focus-visible,
.section--accent textarea:focus-visible {
  outline-color: #fff;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(31,30,27,.95);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}

/* backdrop-filter lives on a pseudo-element: on .header itself it would turn the
   fixed header into the containing block for the fixed mobile menu and clip it
   (see _docs/GOTCHAS.md). */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(12px);
}

/* Background must not scroll while the mobile menu is open */
body.nav-open { overflow: hidden; }

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

/* Club logo is a white-background JPG — the white chip makes that read as
   intentional on the dark header/footer. */
.logo-mark {
  width: 56px;
  height: 56px;
  background: #fff;
  border-radius: 8px;
  padding: 3px;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .01em;
}

.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.5);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.nav-link--cta {
  background: var(--clr-primary);
  color: #fff !important;
  padding: 8px 16px;
  margin-left: 8px;
}

.nav-link--cta:hover {
  background: var(--clr-primary-dark) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #2a3d2e 0%, #1f1e1b 55%, #3a2218 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(31,30,27,.84) 0%, rgba(31,30,27,.70) 50%, rgba(31,30,27,.90) 100%),
    radial-gradient(circle at 20% 80%, rgba(74,124,89,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(192,83,58,.1) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: 120px 24px 80px;
  margin: 0 auto;
  text-align: center;
}

/* Eyebrow inside the H1 (own line above the heading text — SEO weight stays in the h1) */
.hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(245,242,237,.9);
  text-shadow: 0 1px 6px rgba(0,0,0,.55);
  margin-bottom: 28px;
}

.hero-label::before,
.hero-label::after {
  content: '';
  display: block;
  height: 1px;
  width: 32px;
  background: rgba(245,242,237,.25);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  color: var(--clr-text-inv);
  margin-bottom: 24px;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  color: var(--clr-primary);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(245,242,237,.65);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-sub--shadow {
  color: rgba(245,242,237,.85);
  text-shadow: 0 1px 8px rgba(0,0,0,.6), 0 2px 20px rgba(0,0,0,.4);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--clr-primary);
  color: #fff;
  border-color: var(--clr-primary);
}

.btn--primary:hover {
  background: var(--clr-primary-dark);
  border-color: var(--clr-primary-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(192,83,58,.35);
}

.btn--outline {
  background: transparent;
  color: var(--clr-text-inv);
  border-color: rgba(245,242,237,.35);
}

.btn--outline:hover {
  background: rgba(245,242,237,.08);
  border-color: rgba(245,242,237,.6);
  color: var(--clr-text-inv);
}

/* ===== SECTIONS BASE ===== */
.section {
  padding: 100px 0;
}

.section--alt {
  background: var(--clr-bg-alt);
}

.section--dark {
  background: var(--clr-dark);
  color: var(--clr-text-inv);
}

.section--accent {
  background: var(--clr-accent);
  color: var(--clr-text-inv);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 12px;
}

.section--dark .section-label,
.section--accent .section-label {
  color: rgba(245,242,237,.6);
}

.section-header h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--clr-text);
  font-weight: 700;
}

.section--dark .section-header h2,
.section--accent .section-header h2 {
  color: var(--clr-text-inv);
}

.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--clr-text-light);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.section--dark .section-header p,
.section--accent .section-header p {
  color: rgba(245,242,237,.65);
}

/* ===== VERANSTALTUNGEN (Neuigkeiten) ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--clr-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-card-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.news-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--clr-primary-light);
  color: var(--clr-primary);
}

.news-tag--vereinsleben {
  background: var(--clr-accent-light);
  color: var(--clr-accent-dark);
}

.news-tag--ankuendigung {
  background: rgba(100,80,40,.08);
  color: #7a6030;
}

.news-date {
  font-size: 13px;
  color: var(--clr-text-light);
}

.news-card h3 {
  font-size: 1.15rem;
  color: var(--clr-text);
  margin-bottom: 12px;
  font-weight: 700;
}

.news-card p {
  font-size: .93rem;
  color: var(--clr-text-light);
  line-height: 1.65;
  flex: 1;
}

.news-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
  margin-top: 20px;
  transition: gap var(--transition);
}

.news-link:hover { gap: 10px; }

.news-loading {
  text-align: center;
  color: var(--clr-text-light);
  padding: 40px;
  grid-column: 1 / -1;
}

/* ===== TERMINE ===== */
.termine-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 auto;
}

.termin-card {
  display: flex;
  gap: 24px;
  background: var(--clr-card);
  border-radius: var(--radius);
  padding: 24px 28px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}

.termin-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(4px);
}

.termin-date-badge {
  flex-shrink: 0;
  width: 64px;
  text-align: center;
  background: var(--clr-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.termin-date-day {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.termin-date-month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 4px;
  opacity: .85;
}

.termin-date-year {
  font-size: 10px;
  opacity: .65;
  margin-top: 2px;
}

.termin-info {
  flex: 1;
}

.termin-info h3 {
  font-size: 1.1rem;
  color: var(--clr-text);
  font-weight: 700;
  margin-bottom: 6px;
}

.termin-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--clr-text-light);
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.termin-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.termin-info p {
  font-size: .92rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ===== ÜBER UNS ===== */
.ueber-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ueber-text p {
  color: var(--clr-text-light);
  margin-bottom: 16px;
  line-height: 1.75;
}

.ueber-text p:last-of-type { margin-bottom: 28px; }

/* White tile — the logo JPG has an opaque white background that would otherwise
   show as a hard rectangle on the beige section. */
.ueber-logo {
  width: 260px;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 20px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.ueber-logo img { height: auto; }

.ueber-cta {
  margin-top: 56px;
  text-align: center;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--clr-border);
}

.tl-entry {
  position: relative;
  margin-bottom: 36px;
}

.tl-entry:last-child { margin-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 2px solid var(--clr-border);
  transition: border-color var(--transition), background var(--transition);
}

.tl-entry.is-visible .tl-dot {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
}

.tl-year {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--clr-primary);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.tl-entry h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}

.tl-entry p {
  font-size: .88rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

/* ===== PUBLIKATIONEN ===== */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pub-card {
  background: var(--clr-card);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.pub-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pub-card h3 {
  font-size: 1.15rem;
  color: var(--clr-text);
  margin-bottom: 8px;
  font-weight: 700;
}

.pub-card p {
  font-size: .9rem;
  color: var(--clr-text-light);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 24px;
}

.pub-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.pub-detail {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--clr-text-light);
  border-bottom: 1px solid var(--clr-border);
  padding-bottom: 6px;
}

.pub-detail strong {
  color: var(--clr-text);
  font-weight: 600;
}

.pub-card .btn {
  width: 100%;
  justify-content: center;
  padding: 11px 20px;
  font-size: 14px;
}

.btn--accent {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

.btn--accent:hover {
  background: var(--clr-accent-dark);
  border-color: var(--clr-accent-dark);
  color: #fff;
  box-shadow: 0 8px 24px rgba(74,124,89,.3);
}

.btn--ghost {
  background: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn--ghost:hover {
  background: var(--clr-primary);
  color: #fff;
}

/* ===== MITGLIED WERDEN ===== */
.mitglied-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mitglied-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.mitglied-text p {
  color: rgba(245,242,237,.7);
  line-height: 1.75;
  margin-bottom: 28px;
}

.mitglied-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mitglied-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: rgba(245,242,237,.95);
}

.mitglied-benefits li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245,242,237,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.mitglied-form {
  background: rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid rgba(255,255,255,.1);
}

.form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: var(--clr-text-inv);
  margin-bottom: 24px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,242,237,.88);
  letter-spacing: .02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--clr-text-inv);
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(245,242,237,.4)' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-group select option {
  background: #2a2825;
  color: #f5f2ed;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(245,242,237,.3);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-primary);
  background: rgba(255,255,255,.11);
}

.form-note {
  font-size: 12px;
  color: rgba(245,242,237,.4);
  margin-top: 12px;
  line-height: 1.5;
}

/* Honeypot — visually removed, still present for bots */
.hp { position: absolute; left: -9999px; }

.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.5;
  background: rgba(31,30,27,.45);
  border: 1px solid rgba(69,116,85,.55);
  color: #eaf4ec;
}

.form-status.visible { display: block; }

.form-status.error {
  background: rgba(31,30,27,.45);
  border-color: rgba(184,78,55,.65);
  color: #f8e8e3;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--clr-dark-2);
  color: rgba(245,242,237,.5);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: .88rem;
  line-height: 1.65;
  max-width: 260px;
}

.footer-col .footer-heading {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(245,242,237,.62);
  margin-bottom: 16px;
}

.footer-col p,
.footer-col address {
  font-size: .88rem;
  line-height: 1.75;
  font-style: normal;
  color: rgba(245,242,237,.68);
}

.footer-col .iban {
  font-family: 'Courier New', monospace;
  font-size: .82rem;
  color: rgba(245,242,237,.65);
  letter-spacing: .03em;
  margin-top: 4px;
}

.footer-col .footer-note {
  font-size: .8rem;
  line-height: 1.6;
  color: rgba(245,242,237,.65);
  margin-top: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: rgba(245,242,237,.65);
  font-size: 13px;
  transition: color var(--transition);
}

.footer-legal a:hover,
.footer-legal a.active {
  color: rgba(245,242,237,.8);
}

.footer-credit {
  font-size: 13px;
  color: rgba(245,242,237,.65);
}

.footer-credit .powered-by {
  font-weight: 700;
  color: rgba(245,242,237,.8);
}

.footer-credit .powered-by:hover {
  color: var(--clr-primary);
}

.footer-copy {
  font-size: 13px;
  color: rgba(245,242,237,.65);
}

/* ===== FOOTER COL LINKS ===== */
.footer-col a {
  display: block;
  font-size: .88rem;
  color: rgba(245,242,237,.68);
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: rgba(245,242,237,.85);
}

.footer-col a.active {
  color: rgba(245,242,237,.9);
  font-weight: 600;
}

/* ===== ARCHIVE "VIEW ALL" BUTTON ===== */
.archive-more {
  text-align: center;
  margin-top: 36px;
}

/* ===== ARCHIVE (archiv pages): year groups, 2-col card grid ===== */
.subpage-content.subpage-content--wide {
  max-width: 1080px;
}

.archiv-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.subpage-content .archiv-year-nav a {
  padding: 6px 14px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-primary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.subpage-content .archiv-year-nav a:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary);
  color: #fff;
}

.subpage-content .archiv-year-title {
  font-size: 1.4rem;
  color: var(--clr-text);
  margin: 44px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--clr-primary-light);
  scroll-margin-top: 96px;
}

.subpage-content .archiv-year-title:first-child {
  margin-top: 24px;
}

.archiv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.archiv-item {
  position: relative;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.archiv-item:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--clr-primary-light);
}

.archiv-item--past {
  opacity: .55;
  transition: opacity var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.archiv-item--past:hover {
  opacity: 1;
}

.archiv-item--bild {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.archiv-item--bild .archiv-body {
  min-width: 0;
}

.archiv-thumb {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.archiv-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: var(--clr-text-light);
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.subpage-content .archiv-item h3 {
  font-size: 1.02rem;
  color: var(--clr-text);
  margin: 0 0 4px;
  font-weight: 700;
  line-height: 1.35;
}

/* Whole card clickable via the stretched title link (no nested links in the card) */
.subpage-content .archiv-link {
  color: var(--clr-text);
}

.archiv-link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.archiv-item:hover .archiv-link {
  color: var(--clr-primary);
}

.subpage-content .archiv-item p {
  font-size: .9rem;
  color: var(--clr-text-light);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Group headings share the subpage-h2 identity (family/weight/color) —
   the past group is dimmed via opacity, not a different color. */
.subpage-content .archiv-section-title {
  font-size: 1.25rem;
  color: var(--clr-text);
  margin: 40px 0 14px;
}

.subpage-content .archiv-section-title--past {
  opacity: .6;
}

.archiv-list > .archiv-section-title:first-child {
  margin-top: 24px;
}

@media (max-width: 700px) {
  .archiv-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DETAIL PAGE ===== */
.detail-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--clr-text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.detail-meta time {
  color: var(--clr-text-light);
}

#detailContent h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--clr-text);
  margin-bottom: 8px;
}

.detail-img,
.detail-body img {
  height: auto;
  max-height: 640px;
  object-fit: contain;
  background: var(--clr-bg);
}

.detail-img {
  width: 100%;
  border-radius: var(--radius);
  margin: 28px 0;
}

.detail-body {
  font-size: 1rem;
  color: var(--clr-text);
  line-height: 1.85;
  margin-top: 28px;
}

.detail-body p { margin-bottom: 16px; }
.detail-body h2, .detail-body h3 { margin: 32px 0 12px; color: var(--clr-text); }

/* Inline article images (imported old-site photos, editor-inserted assets) */
.detail-body img {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.detail-video {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
  background: #000;
}

/* ===== SUBPAGE ===== */
.subpage-content {
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 860px;
  margin: 0 auto;
  min-height: auto !important;
}

.subpage-content h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
  color: var(--clr-text);
}

/* Eyebrow-carrying headings only — detail pages keep the tight 8px. */
.subpage-content h1:has(.head-eyebrow) {
  margin-bottom: 48px;
}

.subpage-content h2 {
  font-size: 1.25rem;
  color: var(--clr-text);
  margin: 40px 0 12px;
}

.subpage-content p,
.subpage-content address {
  font-size: .95rem;
  color: var(--clr-text-light);
  line-height: 1.75;
  margin-bottom: 12px;
  font-style: normal;
}

.subpage-content a {
  color: var(--clr-primary);
}

.subpage-content ul,
.subpage-content ol {
  margin: 0 0 12px 20px;
}

/* The a)/b) markers are part of the bylaw wording, so the list must not add its own. */
ul.satzung-list {
  list-style: none;
  margin-left: 0;
}

.subpage-content li {
  font-size: .95rem;
  color: var(--clr-text-light);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* ===== GESCHICHTE PAGE ===== */
.container--narrow {
  max-width: 820px;
}

.geschichte-intro {
  padding-top: 148px;
  padding-bottom: 56px;
}

.geschichte-intro h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
  color: var(--clr-text);
}

.head-eyebrow {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 14px;
}

.geschichte-lead {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--clr-text-light);
}

.section-header--left {
  text-align: left;
  margin-bottom: 44px;
}

.section-header--left p {
  margin-left: 0;
  margin-right: 0;
}

.timeline--wide {
  padding-left: 32px;
  max-width: 720px;
}

.timeline--wide .tl-entry {
  margin-bottom: 30px;
}

.timeline--wide .tl-entry h3 {
  font-size: 1.08rem;
}

.timeline--wide .tl-entry p {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--clr-text-light);
}

.geschichte-source {
  margin-top: 36px;
  font-size: .82rem;
  font-style: italic;
  color: var(--clr-text-light);
}

/* Media split (film / book) */
.media-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.media-split--reverse .media-figure {
  order: 2;
}

.media-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.media-img--book {
  height: 420px;
  object-fit: contain;
  background: var(--clr-bg-alt);
  box-shadow: var(--shadow);
  border: 1px solid var(--clr-border);
  padding: 12px;
}

.media-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.media-thumbs img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.media-text h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--clr-text);
  margin-bottom: 18px;
}

.media-text p {
  color: var(--clr-text-light);
  line-height: 1.75;
  margin-bottom: 16px;
}

.media-text .pub-details {
  margin: 24px 0;
}

/* Bilder aus der Luft */
.luft-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.luft-item {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}

.luft-item--wide {
  grid-column: span 2;
}

.luft-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .5s ease;
}

.luft-item:hover img {
  transform: scale(1.05);
}

.luft-credit {
  margin-top: 24px;
  font-size: .85rem;
  color: var(--clr-text-light);
}

/* ===== LIGHTBOX ===== */
#heimatfilm .media-figure img,
#luftbilder .luft-item img {
  cursor: zoom-in;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(20,19,17,.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
  cursor: zoom-out;
}

.lightbox.lightbox--visible {
  opacity: 1;
}

.lightbox__img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 48px rgba(0,0,0,.55);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: none;
  color: rgba(245,242,237,.85);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color .15s ease;
}

.lightbox__close:hover {
  color: #fff;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,19,17,.45);
  border: 1px solid rgba(245,242,237,.25);
  border-radius: 50%;
  color: rgba(245,242,237,.9);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.lightbox__nav:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
}

.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

@media (max-width: 600px) {
  .lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nav { display: none; flex-direction: column; gap: 4px; }
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 0;
    /* solid — a translucent overlay ghosts the page content on light sections */
    background: rgb(31,30,27);
    padding: 88px 16px 24px;
    overflow-y: auto;
  }
  /* Overlay covers the header area — keep logo + toggle clickable above it */
  .nav-toggle, .logo { position: relative; z-index: 2; }
  .nav-link { padding: 12px 16px; width: 100%; }
  .nav-link--cta { margin-left: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }

  /* iOS ignores overflow:hidden for touch scrolling — freeze the body instead;
     script.js stores/restores the scroll position via body.style.top */
  body.nav-open { position: fixed; width: 100%; }

  .news-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  /* Single column, 3 rows — the archive button covers the rest */
  .termine-list { grid-template-columns: 1fr; max-width: 640px; }
  .termine-list .termin-card:nth-child(n+4) { display: none; }
  .ueber-grid { grid-template-columns: 1fr; gap: 48px; }
  .mitglied-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }

  .media-split { grid-template-columns: 1fr; gap: 32px; }
  .media-split--reverse .media-figure { order: 0; }
  .media-img, .media-img--book { height: 300px; }
  .luft-grid { grid-template-columns: 1fr 1fr; }
  .luft-item--wide { grid-column: span 2; }
}

@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .hero-content { padding: 100px 20px 72px; }
  .termin-card { flex-direction: column; gap: 16px; }
  .termin-date-badge { width: 100%; flex-direction: row; gap: 8px; padding: 12px 16px; justify-content: flex-start; border-radius: var(--radius-sm); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .mitglied-form { padding: 24px; }

  .geschichte-intro { padding-top: 120px; }
  .luft-item img { height: 180px; }

  /* One consistent button width on mobile, centered — regardless of how much
     horizontal padding the surrounding container/card eats */
  .btn,
  .ueber-cta .btn,
  .media-text .btn,
  .mitglied-form button[type="submit"] {
    display: flex;
    width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }
  .hero-actions { align-items: center; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
}
