/* ═══════════════════════════════════════════════════════
   ROADSTERFREUNDE AUSTRIA — Stylesheet
   ═══════════════════════════════════════════════════════ */

:root {
  --rfa-blue:       #2872B0;
  --rfa-blue-mid:   #3D8DD4;
  --rfa-blue-dark:  #1D5490;
  --rfa-blue-light: #EBF3FB;
  --rfa-accent:     #F5A520;
  --rfa-accent-bg:  rgba(245,165,32,0.13);
  --rfa-white:      #ffffff;
  --rfa-text:       #1E2230;
  --rfa-muted:      #5A6472;
  --rfa-surface:    #F5F9FE;
  --rfa-border:     #D8E6F3;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--rfa-text);
  background: var(--rfa-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 500; line-height: 1.15; }
h2 { font-size: clamp(20px, 3vw, 26px); font-weight: 500; line-height: 1.25; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.3; }
h4 { font-size: 14px; font-weight: 500; }
p  { line-height: 1.75; }

/* ── LAYOUT ── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 5rem 0; }

.section-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rfa-accent);
  margin-bottom: 0.4rem;
}
.section-title {
  color: var(--rfa-text);
  margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 15px;
  color: var(--rfa-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 22px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, background 0.15s, transform 0.1s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary  { background: var(--rfa-blue); color: #fff; box-shadow: 0 4px 16px rgba(40,114,176,0.28); }
.btn-primary:hover  { background: var(--rfa-blue-dark); color: #fff; opacity: 1; }
.btn-dark     { background: var(--rfa-blue); color: #fff; }
.btn-dark:hover     { background: var(--rfa-blue-dark); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: var(--rfa-blue);
  border: 1.5px solid var(--rfa-blue);
}
.btn-outline-light:hover { background: var(--rfa-blue-light); color: var(--rfa-blue-dark); }
.btn-ghost {
  background: transparent;
  color: var(--rfa-blue);
  border: 1px solid var(--rfa-border);
}
.btn-ghost:hover { background: var(--rfa-blue-light); border-color: var(--rfa-blue); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

/* ── NAVIGATION ── */
#site-header {
  background: var(--rfa-white);
  position: sticky;
  top: 0;
  z-index: 300;
  height: 62px;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--rfa-blue);
  box-shadow: 0 2px 16px rgba(40,114,176,0.10);
}
#site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.site-logo { display: flex; align-items: center; }
.site-logo img {
  height: 38px;
  width: auto;
  filter: none;
  transition: opacity 0.15s;
}
.site-logo:hover img { opacity: 0.85; }

#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}
#primary-nav ul li a {
  color: var(--rfa-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.15s, border-color 0.15s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
#primary-nav ul li a:hover  { color: var(--rfa-blue); }
#primary-nav ul li a.active { color: var(--rfa-blue); border-bottom-color: var(--rfa-blue); }
#primary-nav ul li.nav-cta a {
  background: var(--rfa-blue);
  color: #fff !important;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 7px;
  border-bottom: none;
  box-shadow: 0 3px 10px rgba(40,114,176,0.25);
}
#primary-nav ul li.nav-cta a:hover { background: var(--rfa-blue-dark); opacity: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--rfa-text);
  border-radius: 2px;
  transition: all 0.2s;
}

/* ── HERO (Startseite) ── */
.hero {
  background: linear-gradient(145deg, #E8F3FC 0%, #C8DFF4 40%, #DAEEFF 70%, #F0F8FF 100%);
  padding: 5.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero::after {
  content: '';
  display: none;
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: var(--rfa-blue-mid);
  clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-badge {
  display: inline-block;
  background: var(--rfa-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  border: 1px solid rgba(200,168,75,0.4);
  margin-bottom: 1.25rem;
}
.hero h1 { color: var(--rfa-text); margin-bottom: 1rem; }
.hero h1 em { color: var(--rfa-blue); font-style: normal; }
.hero-text > p {
  font-size: 15px;
  color: var(--rfa-muted);
  max-width: 390px;
  margin-bottom: 2.25rem;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-logo {
  width: min(220px, 80%);
  filter: none;
  opacity: 1;
}

/* ── EVENTS STRIP ── */
.events-strip {
  background: var(--rfa-blue-light);
  border-bottom: 1px solid var(--rfa-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.events-strip::-webkit-scrollbar { display: none; }
.events-strip-inner {
  display: flex;
  align-items: stretch;
  min-width: max-content;
  padding: 0 2rem;
}
.events-strip-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--rfa-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 20px 0 0;
  margin-right: 4px;
  display: flex;
  align-items: center;
  border-right: 1px solid #c8d0e8;
  white-space: nowrap;
}
a.event-pill, .event-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-right: 0.5px solid #c8d0e8;
  white-space: nowrap;
  transition: background 0.15s;
  cursor: pointer;
  text-decoration: none;
}
a.event-pill:hover { background: rgba(26,45,90,0.06); }
.event-pill-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--rfa-accent);
  background: var(--rfa-accent-bg);
  padding: 3px 8px;
  border-radius: 4px;
}
.event-pill-name { font-size: 13px; color: var(--rfa-blue); font-weight: 400; }

/* ── EVENT CARDS ── */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.event-card {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(26,45,90,0.12);
}
.event-card-top {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.event-card-top::before {
  content: '';
  position: absolute;
  right: -16px; top: -16px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.event-card-top::after {
  content: '';
  position: absolute;
  right: 20px; bottom: -20px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}
.event-card-top.spring { background: linear-gradient(135deg, #3D8DD4 0%, #2872B0 100%); }
.event-card-top.snc    { background: linear-gradient(135deg, #2872B0 0%, #1D5490 100%); }
.event-card-top.autumn { background: linear-gradient(135deg, #1D5490 0%, #163d6b 100%); }
.event-month {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rfa-accent);
  margin-bottom: 6px;
}
.event-card-title {
  font-size: 17px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}
.event-card-date {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
}
.event-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-card-desc {
  font-size: 13px;
  color: var(--rfa-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.event-card-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--rfa-blue);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
}
.event-card-link:hover { gap: 8px; }

/* ── PLÄTZE BAR ── */
.plaetze-bar { margin-bottom: 1rem; }
.plaetze-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--rfa-muted);
  margin-bottom: 6px;
  gap: 8px;
}
.plaetze-track {
  height: 5px;
  background: var(--rfa-blue-light);
  border-radius: 3px;
  overflow: hidden;
}
.plaetze-fill {
  height: 100%;
  background: var(--rfa-blue);
  border-radius: 3px;
  transition: width 0.4s ease;
}
.badge-voll {
  display: inline-block;
  background: #fce8e8;
  color: #a32d2d;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 0.5px solid #f7c1c1;
  white-space: nowrap;
}
.badge-wenig {
  display: inline-block;
  background: rgba(200,168,75,0.14);
  color: #7a5e1a;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
  border: 0.5px solid rgba(200,168,75,0.35);
  white-space: nowrap;
}

/* ── ABOUT SEKTION ── */
.about-section {
  background: var(--rfa-surface);
  padding: 5.5rem 0;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  background: var(--rfa-blue);
  border-radius: 14px;
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}
.about-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40%;
  background: var(--rfa-blue-mid);
  clip-path: polygon(0 45%, 100% 0, 100% 100%, 0 100%);
}
.about-logo {
  width: 140px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
  position: relative;
  z-index: 2;
}
.stat-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 2rem; }
.stat-chip {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
  min-width: 80px;
}
.stat-num {
  font-size: 22px;
  font-weight: 500;
  color: var(--rfa-blue);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 10px;
  color: var(--rfa-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--rfa-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.15s;
}
.text-link:hover { gap: 10px; }

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--rfa-blue);
  padding: 4.5rem 0;
}
.newsletter-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.newsletter-text h3 {
  font-size: 22px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 6px;
}
.newsletter-text p { font-size: 14px; color: rgba(255,255,255,0.55); }
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 320px;
  max-width: 480px;
}
.nl-row { display: flex; gap: 8px; }
.nl-input {
  background: rgba(255,255,255,0.92);
  border: 0.5px solid rgba(255,255,255,0.6);
  border-radius: 7px;
  padding: 11px 16px;
  font-size: 14px;
  color: #111;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}
.nl-input::placeholder { color: rgba(0,0,0,0.38); }
.nl-input:focus { border-color: var(--rfa-accent); background: #fff; }
.nl-btn {
  background: var(--rfa-accent);
  color: var(--rfa-blue);
  border: none;
  padding: 11px 20px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
  font-family: inherit;
}
.nl-btn:hover { opacity: 0.88; }

/* ── FOOTER ── */
#site-footer {
  background: #111827;
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo {
  width: 95px;
  filter: brightness(0) invert(1);
  opacity: 0.88;
  margin-bottom: 14px;
}
.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  line-height: 1.8;
}
.footer-col h4 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rfa-accent);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.62);
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  background: #0c111a;
  padding: 16px 0;
  border-top: 0.5px solid rgba(255,255,255,0.1);
}
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.58); }

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  background: var(--rfa-blue);
  padding: 3.25rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -60px;
  width: 400px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.025);
}
.page-hero h1 {
  font-size: clamp(22px, 3.5vw, 30px);
  font-weight: 500;
  color: #fff;
  margin-bottom: 8px;
}
.page-hero p { font-size: 14px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.38);
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.breadcrumb a:hover { color: rgba(255,255,255,0.85); }
.breadcrumb i { font-size: 12px; }

/* ── AUSFAHRT DETAIL ── */
.ausfahrt-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.info-card {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 1rem;
}
.info-table { width: 100%; border-collapse: collapse; }
.info-table tr { border-bottom: 0.5px solid var(--rfa-border); }
.info-table tr:last-child { border-bottom: none; }
.info-table td {
  padding: 12px 0;
  font-size: 14px;
  vertical-align: top;
}
.info-table td:first-child {
  color: var(--rfa-muted);
  width: 40%;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding-top: 14px;
}
.info-table td:first-child i { font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.beschreibung-box {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  padding: 1.75rem;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.beschreibung-box h3 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rfa-accent);
  margin-bottom: 0.75rem;
}
.hint-box {
  background: var(--rfa-blue-light);
  border-left: 3px solid var(--rfa-accent);
  border-radius: 0 10px 10px 0;
  padding: 1.25rem 1.5rem;
  font-size: 14px;
  line-height: 1.75;
  color: var(--rfa-blue);
}
.hint-box strong { display: block; margin-bottom: 4px; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rfa-accent); }

/* ── ANMELDEFORMULAR ── */
.form-card {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 4px 20px rgba(26,45,90,0.06);
}
.form-card h2 { font-size: 20px; margin-bottom: 4px; }
.form-card > p { font-size: 13px; color: var(--rfa-muted); margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--rfa-text);
  margin-bottom: 6px;
}
.form-group label .optional { color: var(--rfa-muted); font-weight: 400; }
.form-control {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  border: 0.5px solid var(--rfa-border);
  border-radius: 8px;
  background: var(--rfa-white);
  color: var(--rfa-text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
.form-control:focus {
  border-color: var(--rfa-blue);
  box-shadow: 0 0 0 3px rgba(26,45,90,0.08);
}
.form-control::placeholder { color: #aab0bc; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-hint { font-size: 12px; color: var(--rfa-muted); margin-top: 5px; }
.form-submit {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--rfa-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.5rem;
}
.form-submit:hover { background: var(--rfa-blue-mid); }
.form-submit:active { transform: scale(0.99); }

/* ── ALERTS ── */
.alert {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  font-size: 14px;
}
.alert i { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-body strong { display: block; margin-bottom: 4px; font-weight: 500; }
.alert-body p, .alert-body ul { font-size: 13px; }
.alert-body ul { padding-left: 14px; list-style: disc; margin-top: 4px; }
.alert-success { background: #eaf3de; border: 0.5px solid #c0dd97; color: #27500a; }
.alert-success i { color: #3B6D11; }
.alert-error   { background: #fce8e8; border: 0.5px solid #f7c1c1; color: #791f1f; }
.alert-warn    { background: #faeeda; border: 0.5px solid #fac775; color: #633806; }
.alert-warn i  { color: #854f0b; }
.alert-info    { background: var(--rfa-blue-light); border: 0.5px solid #b5d4f4; color: var(--rfa-blue); }

/* ── VERGANGENE AUSFAHRTEN ── */
.vergangen-liste {
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--rfa-white);
}
.vergangen-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 14px 20px;
  border-bottom: 0.5px solid var(--rfa-border);
  transition: background 0.12s;
}
.vergangen-item:last-child { border-bottom: none; }
.vergangen-item:hover { background: var(--rfa-surface); }
.vergangen-datum { font-size: 12px; color: var(--rfa-muted); min-width: 120px; flex-shrink: 0; }
.vergangen-titel { font-size: 14px; font-weight: 500; flex: 1; }
.vergangen-link  { font-size: 12px; color: var(--rfa-blue); display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.vergangen-link:hover { color: var(--rfa-blue-mid); }

/* ── GALERIE ── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}
.galerie-thumb {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--rfa-surface);
  border: none; padding: 0; cursor: pointer;
}
.galerie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s;
}
.galerie-thumb:hover img { transform: scale(1.05); }

/* ── GALERIE LIGHTBOX ── */
.galerie-lb {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(0,0,0,0.92);
  align-items: center; justify-content: center;
}
.galerie-lb-img-wrap {
  display: flex; align-items: center; justify-content: center;
  max-width: 80vw; max-height: 80vh;
}
.galerie-lb-img-wrap img {
  max-width: 80vw; max-height: 80vh;
  object-fit: contain; border-radius: 4px;
  display: block; user-select: none;
}
.galerie-lb-close {
  position: fixed; top: 16px; right: 16px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; cursor: pointer;
}
.galerie-lb-close:hover { background: rgba(255,255,255,0.28); }
.galerie-lb-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; cursor: pointer; z-index: 10;
}
.galerie-lb-nav:hover { background: rgba(255,255,255,0.30); }
.galerie-lb-prev { left: 16px; }
.galerie-lb-next { right: 16px; }
.galerie-lb-counter {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.70); font-size: 13px; letter-spacing: 0.05em;
  background: rgba(0,0,0,0.45); padding: 4px 12px; border-radius: 20px;
}
.alben-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.album-card {
  display: block;
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.17s, box-shadow 0.17s;
  text-decoration: none;
}
.album-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(26,45,90,0.1);
}
.album-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--rfa-surface); }
.album-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.22s; }
.album-card:hover .album-thumb img { transform: scale(1.04); }
.album-overlay {
  position: absolute; inset: 0;
  background: rgba(26,45,90,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.17s;
}
.album-card:hover .album-overlay { opacity: 1; }
.album-overlay span { color: #fff; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.album-info { padding: 14px 16px; }
.album-titel { font-size: 14px; font-weight: 500; color: var(--rfa-text); margin-bottom: 3px; }
.album-datum { font-size: 12px; color: var(--rfa-muted); }

/* ── CONTENT PAGES (Impressum, Datenschutz, Über uns etc.) ── */
.content-page { padding: 4.5rem 0; }
.content-page .content-body { max-width: 760px; }
.content-page .content-body h2 { font-size: 20px; color: var(--rfa-blue); margin: 2.5rem 0 0.75rem; }
.content-page .content-body h2:first-child { margin-top: 0; }
.content-page .content-body p { margin-bottom: 1.1rem; font-size: 15px; color: var(--rfa-text); }
.content-page .content-body ul,
.content-page .content-body ol { padding-left: 1.4rem; margin-bottom: 1.1rem; }
.content-page .content-body ul { list-style: disc; }
.content-page .content-body ol { list-style: decimal; }
.content-page .content-body li { font-size: 15px; color: var(--rfa-text); margin-bottom: 5px; }
.content-page .content-body a { color: var(--rfa-blue); text-decoration: underline; }
.content-page .content-body strong { font-weight: 500; }

/* ── EVENT-LOGO-BANNER + INFO-MODAL ── */
.event-logo-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 2.5rem;
}
.event-logo-btn {
  display: block; padding: 0; border: none; background: none;
  cursor: pointer; transition: transform 0.17s;
}
.event-logo-btn:hover { transform: scale(1.03); }
.event-logo-btn img { max-width: 260px; width: 100%; height: auto; display: block; }

.snc-modal {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(15,25,45,0.72);
  align-items: center; justify-content: center;
  padding: 20px;
}
.snc-modal.is-open { display: flex; }
.snc-modal-card {
  position: relative;
  background: var(--rfa-white);
  border-radius: 16px;
  max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.snc-modal-logo { max-width: 320px; width: 100%; height: auto; margin: 0 auto 1.5rem; display: block; }
.snc-modal-card h3 { font-size: 24px; color: var(--rfa-text); margin-bottom: 0.4rem; }
.snc-modal-subtitle { font-size: 14px; font-weight: 600; color: var(--rfa-blue); margin-bottom: 1rem; }
.snc-modal-text { font-size: 15px; line-height: 1.6; color: var(--rfa-muted); text-align: left; }
.snc-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: var(--rfa-surface); color: var(--rfa-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: background 0.15s;
}
.snc-modal-close:hover { background: var(--rfa-border); }

/* ── GALERIE: ANMELDUNGEN/TEILNEHMER-STAT + BEITRAG ── */
p.galerie-intro {
  font-size: 18px;
}
div.section-label.galerie-section-label {
  font-size: 15px;
}
p.galerie-stat {
  font-size: 22px;
  color: rgba(255,255,255,0.85) !important;
  margin-top: 4px;
}
.galerie-stat strong { color: #fff; font-weight: 600; }
p.galerie-stat.galerie-stat-strecke {
  font-size: 15px;
  color: rgba(255,255,255,0.65) !important;
  margin-top: 2px;
}

.galerie-beitrag {
  max-width: 760px;
  margin: 0 auto 3rem;
  text-align: left;
}
.galerie-beitrag h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 500;
  color: var(--rfa-text);
  margin-bottom: 0.4rem;
}
.galerie-beitrag-sub {
  font-size: 15px;
  font-weight: 500;
  color: var(--rfa-blue);
  margin-bottom: 1.25rem;
}
.galerie-beitrag-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rfa-muted);
  text-align: left;
}

/* ── 404-SEITE ── */
.error-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.error-404-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.error-404-icon {
  font-size: 42px;
  color: var(--rfa-blue);
  margin-bottom: 0.5rem;
  display: inline-block;
}
.error-404-number {
  font-size: clamp(64px, 14vw, 108px);
  font-weight: 600;
  line-height: 1;
  color: var(--rfa-blue-light);
  -webkit-text-stroke: 2px var(--rfa-blue);
  margin-bottom: 0.5rem;
}
.error-404-inner h1 {
  font-size: clamp(22px, 3.5vw, 28px);
  color: var(--rfa-text);
  margin-bottom: 0.75rem;
}
.error-404-inner p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--rfa-muted);
  margin-bottom: 2rem;
}
.error-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── REVEAL-PHOTO: Graustufe-zu-Farbe-Effekt ── */
.reveal-photo {
  position: relative;
  margin: 2rem 0 2.5rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(26,45,90,0.16);
  isolation: isolate;
}
.reveal-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3/2;
  object-fit: cover;
  filter: grayscale(90%) contrast(1.05);
  transform: scale(1.02);
  transition: filter 0.6s ease, transform 0.6s ease;
}
.reveal-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,25,45,0.75) 0%, rgba(15,25,45,0.05) 45%, transparent 65%);
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.reveal-photo:hover img,
.reveal-photo:focus-within img {
  filter: grayscale(0%) contrast(1);
  transform: scale(1.08);
}
.reveal-photo figcaption {
  position: absolute;
  left: 20px; right: 20px; bottom: 16px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* ── TEAM SEKTION ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,45,90,0.09); }
.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--rfa-blue);
  color: #fff;
  font-size: 40px;
  font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  object-fit: cover;
}
img.team-avatar {
  display: block;
}
.team-name { font-size: 15px; font-weight: 500; margin-bottom: 3px; }
.team-rolle { font-size: 12px; color: var(--rfa-muted); }

.team-card--clickable { cursor: pointer; position: relative; }
.team-card--clickable:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.10); }
.team-card-hint {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.35); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; opacity: 0; transition: opacity 0.2s;
}
.team-card--clickable:hover .team-card-hint { opacity: 1; }

/* ── TEAM POPUP ── */
.team-popup-overlay {
  display: none; position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.70); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.team-popup-box {
  background: #fff; border-radius: 20px;
  width: min(90vw, 520px);
  padding: 2rem 2rem 2.25rem; position: relative; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,0.30);
  animation: popupIn 0.2s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(0.90) translateY(16px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
.team-popup-close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--rfa-surface); color: var(--rfa-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; cursor: pointer; line-height: 1;
}
.team-popup-close:hover { background: #e5e5e5; }
.team-popup-img-wrap { margin-bottom: 1.25rem; }
.team-popup-img-wrap img {
  width: min(60vw, 60vh); height: min(60vw, 60vh);
  max-width: 400px; max-height: 400px;
  border-radius: 50%; object-fit: cover; margin: 0 auto;
  border: 3px solid var(--rfa-border); display: block;
}
.team-popup-init {
  width: min(60vw, 60vh); height: min(60vw, 60vh);
  max-width: 400px; max-height: 400px;
  border-radius: 50%; background: var(--rfa-blue); color: #fff;
  font-size: clamp(40px, 10vw, 80px); font-weight: 500;
  display: none; align-items: center; justify-content: center;
  margin: 0 auto;
}
.team-popup-name  { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.team-popup-rolle { font-size: 13px; color: var(--rfa-muted); margin-bottom: 1rem; }
.team-popup-email {
  display: none; align-items: center; gap: 6px;
  font-size: 13px; color: var(--rfa-blue); text-decoration: none;
  padding: 7px 16px; border: 0.5px solid var(--rfa-blue); border-radius: 20px;
  margin: 0 auto;
}
.team-popup-email:hover { background: var(--rfa-blue); color: #fff; }

/* ── SPONSOREN ── */
.sponsoren-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.sponsor-card {
  background: var(--rfa-white);
  border: 0.5px solid var(--rfa-border);
  border-radius: 10px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.sponsor-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(26,45,90,0.08); }
.sponsor-card img { max-height: 100px; max-width: 240px; object-fit: contain; filter: grayscale(1); transition: filter 0.2s; }
.sponsor-card:hover img { filter: none; }
.sponsor-card span { font-size: 26px; font-weight: 500; color: var(--rfa-muted); text-align: center; }


/* ── SOCIAL MEDIA ── */
.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 760px;
}
.social-card {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1.25rem;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.social-card:hover { transform: translateY(-3px); opacity: 0.92; }
.social-card i { font-size: 26px; }
.social-whatsapp  { background: #25D366; }
.social-instagram { background: radial-gradient(circle at 30% 110%, #FDF497 0%, #FD5949 45%, #D6249F 60%, #285AEB 90%); }
.social-signal    { background: #3A76F0; }
.social-facebook  { background: #1877F2; }

.social-qr-preview {
  display: block;
  width: 96px; height: 96px;
  margin-top: 2px; padding: 6px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.social-qr-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ── ADMIN BADGE ── */
.admin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--rfa-accent-bg); color: #7a5e1a;
  font-size: 11px; font-weight: 500; padding: 3px 8px;
  border-radius: 4px; border: 0.5px solid rgba(200,168,75,0.35);
}

/* ── DIVIDER ── */
.divider { border: none; border-top: 0.5px solid var(--rfa-border); margin: 2rem 0; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .events-grid    { grid-template-columns: 1fr 1fr; }
  .about-inner    { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual   { display: none; }
  .footer-inner   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ausfahrt-layout{ grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 3.5rem 0; }
  h1 { font-size: 24px; }
  .hero { padding: 4rem 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero::after { display: none; }
  .hero-visual { display: none; }
  .events-grid { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .newsletter-row { flex-direction: column; }
  .newsletter-form { min-width: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  #primary-nav ul { display: none; }
  #primary-nav.is-open {
    position: absolute;
    top: 62px; left: 0; right: 0;
  }
  #primary-nav.is-open ul {
    display: flex;
    flex-direction: column;
    background: var(--rfa-white);
    padding: 0.75rem 1.5rem 1.5rem;
    gap: 0;
    align-items: flex-start;
    border-top: 1px solid var(--rfa-border);
    box-shadow: 0 6px 24px rgba(40,114,176,0.12);
  }
  #primary-nav.is-open ul li { width: 100%; }
  #primary-nav.is-open ul li a {
    display: block;
    padding: 11px 0;
    color: var(--rfa-muted);
    border-bottom: 1px solid var(--rfa-border);
  }
  #primary-nav.is-open ul li.nav-cta { margin-top: 10px; }
  #primary-nav.is-open ul li.nav-cta a {
    display: inline-flex; border-bottom: none; padding: 8px 18px;
  }
  .menu-toggle { display: flex; }
  #site-header { position: relative; }

  .ausfahrt-layout { gap: 2rem; }
  .vergangen-datum { display: none; }
  .stat-chips { gap: 8px; }
}

@media print {
  #site-header, .no-print, .newsletter-section { display: none !important; }
  body { background: #fff; color: #000; }
  .event-card { break-inside: avoid; }
}
