/* ===================================================================
   Hubertus-Schützen Planegg e.V. – style.css
   Pure CSS, no framework. Target: fast load, accessible, responsive.
=================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --green-dark:   #1d4a1d;
  --green-mid:    #2a6332;
  --green-light:  #e8f0e8;
  --gold:         #c8860a;
  --gold-light:   #f0c040;
  --white:        #ffffff;
  --off-white:    #f7f5f0;
  --text:         #222222;
  --text-muted:   #555555;
  --border:       #ddd8ce;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.12);
  --radius:       10px;
  --radius-lg:    16px;
  --transition:   0.2s ease;
  --max-w:        1180px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

.accent { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn--primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  box-shadow: 0 4px 16px rgba(29,74,29,0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: #a86d08;
  border-color: #a86d08;
  box-shadow: 0 4px 16px rgba(200,134,10,0.35);
}

.btn--sm { padding: 8px 18px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--green-dark);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; opacity: 0.9; }
.logo-icon { flex-shrink: 0; object-fit: contain; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-text strong { font-size: 1rem; color: var(--white); }
.logo-text small  { font-size: 0.75rem; color: rgba(255,255,255,0.72); }

/* Desktop nav */
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.main-nav a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.main-nav a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  text-decoration: none;
}
.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  border-radius: 50px !important;
  padding: 7px 18px !important;
}
.nav-cta:hover {
  background: #a86d08 !important;
}

/* Dropdown */
.has-dropdown { position: relative; }

.nav-parent {
  display: flex;
  align-items: center;
}
.nav-parent > a { flex: 1; }

.dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.75);
  padding: 6px 4px 6px 2px;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.dropdown-toggle:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.dropdown-toggle svg {
  transition: transform 0.25s ease;
  display: block;
}
.has-dropdown.is-open > .nav-parent .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: 100%;          /* flush to the nav item – no gap to cross */
  left: auto;
  right: 0;
  padding-top: 10px;  /* visual spacing pushed inside, hover stays connected */
  background: transparent;
  min-width: 200px;
  z-index: 200;
  /* Hidden state */
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
/* Inner panel carries the white box styling */
.dropdown::before {
  content: '';
  display: block;
  position: absolute;
  top: 10px; left: 0; right: 0; bottom: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: -1;
}
/* Open state – desktop hover OR JS .is-open */
@media (hover: hover) {
  .has-dropdown:hover > .dropdown {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}
.has-dropdown.is-open > .dropdown {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.dropdown li:first-child a { border-radius: var(--radius) var(--radius) 0 0; }
.dropdown li:last-child  a { border-radius: 0 0 var(--radius) var(--radius); }
.dropdown li a {
  display: block;
  color: var(--text) !important;
  font-size: 0.875rem;
  padding: 10px 18px;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
  text-decoration: none;
}
.dropdown li a:hover {
  background: var(--green-light) !important;
  color: var(--green-dark) !important;
  padding-left: 24px;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green-dark) 0%, #163816 60%, #0f2b0f 100%);
  color: var(--white);
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-deco {
  position: absolute;
  width: clamp(300px, 45vw, 600px);
  height: auto;
}
.hero-deco--left  { left: -80px; top: -60px; }
.hero-deco--right { right: -80px; bottom: -60px; }

.hero-content {
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Opening hours banner ---------- */
.opening-banner {
  background: var(--gold);
  color: var(--white);
  padding: 13px 0;
}
.opening-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}
.opening-icon { flex-shrink: 0; opacity: 0.85; }
.opening-text {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}
.opening-text strong { font-weight: 700; }
.btn--white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  font-weight: 700;
  flex-shrink: 0;
}
.btn--white:hover {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(60px, 8vw, 100px) 0;
}
.section--alt { background: var(--white); }

.section-header {
  text-align: center;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--green-dark);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 10px auto 0;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 6px;
}

/* ---------- News cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card--featured {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,134,10,0.15), var(--shadow-sm);
}
.card--green {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 2px rgba(42,99,50,0.15), var(--shadow-sm);
}
.card--red {
  border-color: #9a3412;
  box-shadow: 0 0 0 2px rgba(154,52,18,0.15), var(--shadow-sm);
}
.card-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  line-height: 1;
}
.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.6; margin-bottom: 20px; }
.card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green-dark);
  transition: color var(--transition);
}
.card-link:hover { color: var(--gold); text-decoration: none; }

/* Gesamte Karte klickbar machen */
.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card-link--btn {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  display: inline;
}

/* ---------- Ranges – image layout ---------- */
.subsection-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 28px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--green-light);
}

/* Intro block */
.range-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 52px;
}
.range-intro__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
  max-height: 260px;
}
.range-intro__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.range-intro__text p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Individual range rows */
.range-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}
.range-row--reverse { direction: rtl; }
.range-row--reverse > * { direction: ltr; }

.range-row__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  line-height: 0;
}
.range-row__img {
  width: 100%;
  object-fit: cover;
  max-height: 280px;
  transition: transform 0.4s ease;
}
.range-row__img-wrap:hover .range-row__img { transform: scale(1.03); }

.range-row__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--green-dark);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  line-height: 1;
}

.range-row__body h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.range-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.range-specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.range-specs li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--green-mid);
}
.range-specs strong { color: var(--text); }
.tech-link { color: var(--gold); font-weight: 600; }
.tech-link:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 700px) {
  .range-intro,
  .range-row { grid-template-columns: 1fr; gap: 20px; }
  .range-row--reverse { direction: ltr; }
  .range-row__img-wrap { order: -1; }
  .range-intro__img,
  .range-row__img { max-height: 220px; }
}



/* ---------- Ergebnisse ---------- */
.ergebnisse-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Teaser layout used on index.html */
.ergebnisse-teaser {
  display: flex;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.ergebnisse-teaser__text {
  flex: 1 1 340px;
}
.ergebnisse-teaser__text h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.ergebnisse-teaser__text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 520px;
}
.ergebnisse-teaser__years {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.ergebnisse-teaser .btn--lg {
  flex-shrink: 0;
  align-self: flex-end;
}
.result-year {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.result-year:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
  text-decoration: none;
}
.result-year__num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--green-dark);
  letter-spacing: -0.04em;
}
.result-year__label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); }

/* ---------- Vorstand ---------- */
.vorstand-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 28px;
}
.vorstand-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Base card */
.vorstand-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  border: 1.5px solid var(--border);
  cursor: default;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.28s ease,
    border-color 0.2s ease;
}
/* Gold underline slides in on hover */
.vorstand-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.vorstand-card:hover { transform: translateY(-7px); }
.vorstand-card:hover::after { transform: scaleX(1); }

/* Icon */
.vorstand-icon {
  margin-bottom: 16px;
  display: flex;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.vorstand-card:hover .vorstand-icon { transform: scale(1.15) rotate(-4deg); }

/* Role label */
.vorstand-rank {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

/* Name */
.vorstand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* --- Chief cards (Schützenmeister) --- */
.vorstand-card--chief {
  background: var(--green-dark);
  border-color: transparent;
  padding: 36px 32px 32px;
  box-shadow: 0 8px 32px rgba(29,74,29,0.25);
}
.vorstand-card--chief:hover {
  box-shadow: 0 20px 48px rgba(29,74,29,0.4);
  border-color: transparent;
}
.vorstand-card--chief .vorstand-icon { color: var(--gold-light); }
.vorstand-card--chief .vorstand-rank { color: rgba(255,255,255,0.55); }
.vorstand-card--chief .vorstand-name { font-size: 1.3rem; color: var(--white); }

/* Shimmer sweep on hover */
.vorstand-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
    rgba(255,255,255,0) 30%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0) 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.vorstand-card--chief:hover .vorstand-card__shine { transform: translateX(100%); }

/* --- Member cards --- */
.vorstand-card--member {
  background: var(--off-white);
}
.vorstand-card--member:hover {
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: var(--green-mid);
}
.vorstand-card--member .vorstand-icon { color: var(--green-mid); }
.vorstand-card--member .vorstand-rank { color: var(--text-muted); }
.vorstand-card--member .vorstand-name { color: var(--green-dark); }

/* ---------- Stand reservierung ---------- */
.reserve-block {
  background: linear-gradient(135deg, var(--green-dark), #163816);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}
.reserve-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.reserve-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 32px 0;
}
.reserve-text h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.reserve-text h2::after { display: none; }
.reserve-text p { color: rgba(255,255,255,0.8); margin-bottom: 16px; font-size: 0.96rem; }
.reserve-times { display: flex; flex-direction: column; gap: 8px; }
.reserve-times li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}

/* Regeln & Preise Grid */
.reserve-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  min-width: 0;
}
.reserve-info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  color: var(--text-body);
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.reserve-info-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 18px;
}
.reserve-info-heading svg { flex-shrink: 0; color: var(--gold); stroke: var(--gold); }
.reserve-price-sub {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 4px;
}
.reserve-rules {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.reserve-rules li {
  font-size: 0.92rem;
  color: #1a2e1a !important;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}
.reserve-rules li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.reserve-price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.reserve-price-table thead th {
  text-align: left;
  padding: 8px 12px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
}
.reserve-price-table thead th:first-child { border-radius: 6px 0 0 0; }
.reserve-price-table thead th:last-child  { border-radius: 0 6px 0 0; }
.reserve-price-table tbody tr:nth-child(even) { background: #f5f7f5; }
.reserve-price-table tbody td {
  padding: 9px 12px;
  color: #1a2e1a !important;
  border-bottom: 1px solid var(--border);
}
.reserve-price-table tbody td:nth-child(2),
.reserve-price-table tbody td:nth-child(3) {
  font-weight: 600;
  white-space: nowrap;
}
.reserve-price-extra td {
  font-size: 0.85rem;
  color: #4a5e4a !important;
  border-bottom: none !important;
  padding-top: 12px !important;
}
.reserve-info-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---------- Reservierung Bestätigungs-Modal ---------- */
.reserve-confirm-modal .modal-inner {
  max-width: 680px;
}
.reserve-confirm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.reserve-confirm-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}
.reserve-confirm-heading svg { stroke: var(--gold); flex-shrink: 0; }
.reserve-confirm-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.reserve-confirm-list li {
  font-size: 0.87rem;
  color: var(--text-body);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.reserve-confirm-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}
.reserve-confirm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.reserve-confirm-table thead th {
  text-align: left;
  padding: 6px 10px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 600;
}
.reserve-confirm-table thead th:first-child { border-radius: 5px 0 0 0; }
.reserve-confirm-table thead th:last-child  { border-radius: 0 5px 0 0; }
.reserve-confirm-table tbody tr:nth-child(even) { background: #f5f7f5; }
.reserve-confirm-table tbody td {
  padding: 7px 10px;
  color: var(--text-body);
  border-bottom: 1px solid var(--border);
}
.reserve-confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-body);
  cursor: pointer;
  background: #f0f4f0;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.reserve-confirm-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--green-dark);
  cursor: pointer;
}
.reserve-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn--ghost:hover { background: #f0f0f0; }
@media (max-width: 580px) {
  .reserve-confirm-grid { grid-template-columns: 1fr; }
  .reserve-confirm-actions { flex-direction: column-reverse; }
  .reserve-confirm-actions .btn { width: 100%; text-align: center; }

  /* Preistabelle auf kleinen Screens scrollbar machen */
  .reserve-info-card { padding: 20px; }
  .reserve-price-table,
  .reserve-confirm-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .reserve-price-table tbody td:nth-child(2),
  .reserve-price-table tbody td:nth-child(3) { white-space: normal; }

  /* Button auf Mobile volle Breite im grünen Block */
  .reserve-header .btn { width: 100%; text-align: center; }

  /* Modal auf Mobile ohne feste max-width */
  .reserve-confirm-modal .modal-inner { max-width: 100%; }
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 40px;
  align-items: start;
}

.kontakt-info h3,
.kontakt-form-wrap h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
}

address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.9;
  margin-bottom: 24px;
}
address strong { color: var(--text); }

.kontakt-phone a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: 6px;
}
.kontakt-phone a:hover { color: var(--gold); text-decoration: none; }

.map-embed { margin-top: 4px; }
.map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.map-link:hover { color: var(--green-dark); }

/* Contact form */
.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: 0.87rem;
  font-weight: 600;
  color: var(--text);
}
.form-group span { color: var(--gold); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.93rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(42,99,50,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 28px;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--gold); text-decoration: none; }
.footer-copy { font-size: 0.8rem; }

/* ---------- Back-to-top ---------- */
.back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  background: var(--green-dark);
  color: var(--white);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform var(--transition);
}
.back-top.is-visible { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-2px); text-decoration: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--green-dark);
    padding: 16px 20px 24px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav a { padding: 13px 8px; border-radius: 0; }
  .nav-cta { border-radius: 6px !important; margin-top: 8px; }

  /* Mobile dropdown: hidden by default, toggled via .is-open */
  .has-dropdown > .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
    background: rgba(255,255,255,0.06);
    padding: 2px 0;
    transform: none !important;
    /* still uses visibility/opacity for animation */
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transition: max-height 0.3s ease;
  }
  .has-dropdown.is-open > .dropdown {
    max-height: 400px;
    pointer-events: auto;
  }
  .dropdown li a { color: rgba(255,255,255,0.8) !important; padding: 10px 20px; }
  .dropdown li a:hover { background: rgba(255,255,255,0.1) !important; color: var(--white) !important; padding-left: 26px; }
  .dropdown-toggle { color: rgba(255,255,255,0.7); padding: 13px 8px; }

  .site-header { position: relative; }
  html { scroll-padding-top: 0; }

  .kontakt-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .reserve-block { flex-direction: column; text-align: center; }
  .reserve-header { flex-direction: column; text-align: center; }
  .reserve-times { align-items: center; }
  .reserve-info-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Karten-Inhalt linksbündig, nicht zentriert */
  .reserve-info-card { text-align: left; width: 100%; box-sizing: border-box; }
  .reserve-info-card * { text-align: left; }

  .opening-inner { gap: 12px; flex-wrap: wrap; }
}

@media (max-width: 580px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn--lg { padding: 14px 28px; }
  .vorstand-featured { grid-template-columns: 1fr 1fr; }
  .vorstand-board { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 500px) {
  .vorstand-featured { grid-template-columns: 1fr; max-width: 320px; }
  .vorstand-board { grid-template-columns: 1fr 1fr; }
}

/* ---------- Kontaktformular Feedback ---------- */
.form-feedback {
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.form-feedback:not([hidden]) { display: flex; }
.form-feedback strong { display: block; margin-bottom: 2px; }
.form-feedback p { margin: 0; }
.form-feedback a { color: inherit; font-weight: 600; }
.form-feedback svg { flex-shrink: 0; margin-top: 2px; }
.form-feedback--success {
  background: #dcfce7;
  border: 1.5px solid #86efac;
  color: #166534;
}
.form-feedback--error {
  background: #fee2e2;
  border: 1.5px solid #fca5a5;
  color: #991b1b;
}

/* ---------- Math CAPTCHA ---------- */
.captcha-block {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.captcha-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.captcha-inner svg { flex-shrink: 0; color: var(--green-mid); }
.captcha-inner strong {
  color: var(--green-dark);
  font-size: 1rem;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
.captcha-block input[type="text"] {
  width: 110px;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.captcha-block input[type="text"]:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(42,99,50,0.15);
}
.captcha-hint {
  font-size: 0.8rem;
  color: #c0392b;
  margin: 0;
  align-items: center;
  gap: 6px;
}
.captcha-hint:not([hidden]) { display: flex; }
.captcha-hint::before {
  content: '⚠';
  font-size: 0.9rem;
}

/* ---------- Toast Notification ---------- */
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #7f1d1d;
  color: #fff;
  padding: 16px 22px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  max-width: min(90vw, 440px);
  line-height: 1.6;
  transition: transform 0.35s cubic-bezier(.4,0,.2,1), opacity 0.35s;
  opacity: 0;
  pointer-events: none;
}
#toast.toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#toast svg { flex-shrink: 0; margin-top: 3px; }
#toast a { color: #fca5a5; font-weight: 700; text-decoration: none; }
#toast a:hover { text-decoration: underline; }

/* ---------- Footer modal buttons ---------- */
.footer-modal-btn,
.dropdown-modal-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  transition: color var(--transition);
}
.footer-modal-btn {
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
}
.footer-modal-btn:hover { color: var(--gold); }
.dropdown-modal-btn {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text);
  font-size: 0.875rem;
  padding: 10px 18px;
  border-radius: 0;
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
.dropdown-modal-btn:hover {
  background: var(--green-light);
  color: var(--green-dark);
  padding-left: 24px;
}

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 4px;
}
.price-table thead tr {
  background: var(--green-dark);
  color: var(--white);
}
.price-table th {
  text-align: left;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.price-table th:last-child,
.price-table td:last-child {
  text-align: right;
  white-space: nowrap;
}
.price-table td {
  padding: 8px 14px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.price-table tbody tr:last-child td { border-bottom: none; }
.price-table tbody tr:hover td { background: var(--green-light); }
.price-table__highlight td {
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(29,74,29,0.05);
}
.price-example {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
  font-size: 0.88rem;
}
.price-example strong { color: var(--text); display: block; margin-bottom: 10px; }
.price-example__table {
  width: 100%;
  border-collapse: collapse;
}
.price-example__table td {
  padding: 4px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  vertical-align: top;
}
.price-example__table td:first-child {
  padding-right: 16px;
}
.price-example__table td:last-child {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-example__total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--green-dark);
  font-size: 0.95rem;
}
.price-footnotes {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--off-white);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.price-footnotes p {
  font-size: 0.78rem !important;
  color: var(--text-muted);
  margin: 0 !important;
}

/* ---------- Modal dialogs ---------- */
.site-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(700px, calc(100vw - 32px));
  max-height: min(calc(100vh - 80px), calc(100dvh - 80px));
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  overflow: hidden;
}
.site-modal::backdrop {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
}
.modal-inner {
  padding: clamp(24px, 6vw, 44px);
  padding-top: clamp(28px, 6vw, 44px);
  padding-bottom: clamp(28px, 6vw, 44px);
  overflow-y: auto;
  max-height: min(calc(100vh - 80px), calc(100dvh - 80px));
  scroll-behavior: smooth;
}
.modal-inner h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 20px;
  padding-right: 36px;
}
.modal-inner h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 24px 0 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}
.modal-inner h3:first-of-type { border-top: none; margin-top: 8px; }
.modal-inner h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin: 16px 0 6px;
}
.modal-inner p, .modal-inner address {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}
.modal-inner address { font-style: normal; }
.modal-inner a { color: var(--green-dark); font-weight: 500; }
.modal-inner a:hover { color: var(--gold); }
.modal-note {
  margin-top: 24px;
  font-size: 0.8rem !important;
  color: var(--text-muted);
  opacity: 0.7;
}
.link-list {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.link-list li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.modal-close:hover { background: var(--green-dark); color: var(--white); border-color: var(--green-dark); }

/* ---------- Print ---------- */
@media print {
  .site-header, .opening-banner, .hero-bg, .back-top, .nav-toggle { display: none; }
  .hero { background: none; color: var(--text); padding: 20px 0; }
  .hero h1 { color: var(--green-dark); }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: var(--text-muted); }
}

/* ---------- Accessible focus ---------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
