/* =========================================================
   Reit- und Fahrverein Kißlegg e.V. - Stylesheet
   Farben zentral hier oben aenderbar (CSS-Variablen).
   ========================================================= */

:root {
  /* --- Vereinsfarben (hier zentral anpassen) --- */
  /* Gruen = Vereinsfarbe (wie Sponsorenflyer); Gold = Akzent.
     Tipp: Fuer einen Look passend zum bordeauxroten Logo koennte man
     --gold auf z.B. #a23a48 / --gold-dunkel auf #7c2b36 setzen. */
  --gruen:        #176a4d;   /* Primaerfarbe (Reit-Gruen, Flyer-Ton) */
  --gruen-dunkel: #0f4936;
  --gruen-hell:   #2a8163;
  --gold:         #c8a24b;   /* Akzentfarbe */
  --gold-dunkel:  #a8842f;
  --creme:        #faf7f2;   /* heller Hintergrund */
  --sand:         #f0e9dd;   /* alternierender Abschnitt */
  --text:         #2b2b2b;
  --text-hell:    #6b6b6b;
  --weiss:        #ffffff;

  --max:   1140px;
  --radius: 12px;
  --schatten: 0 8px 30px rgba(0,0,0,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------- Reset / Basis --------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--creme);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--gruen-dunkel); }
h3 { font-size: 1.25rem; color: var(--gruen-dunkel); }

/* --------- Header / Navigation --------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: none; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; color: var(--gruen-dunkel); }
.brand-text small { font-size: .72rem; color: var(--text-hell); letter-spacing: .03em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 9px 14px; border-radius: 8px; font-weight: 500; font-size: .95rem;
  color: var(--text); transition: background .2s, color .2s;
}
.site-nav a:hover { background: var(--sand); color: var(--gruen-dunkel); }
.site-nav .nav-cta {
  background: var(--gruen); color: var(--weiss); margin-left: 6px;
}
.site-nav .nav-cta:hover { background: var(--gruen-dunkel); color: var(--weiss); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--gruen-dunkel); border-radius: 2px; transition: .3s; }

/* --------- Hero --------- */
.hero {
  position: relative; color: var(--weiss);
  background:
    linear-gradient(120deg, rgba(15,73,54,.88) 0%, rgba(15,73,54,.72) 45%, rgba(20,50,40,.55) 100%),
    url("../assets/hero.jpg") center/cover no-repeat;
  background-color: var(--gruen-dunkel);
  padding: clamp(80px, 14vw, 160px) 0;
}
.hero-content { position: relative; max-width: 760px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .15em; font-size: .8rem; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin-bottom: 22px; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 26px; font-size: .95rem; color: rgba(255,255,255,.92); background: rgba(0,0,0,.22); display: inline-block; padding: 10px 18px; border-radius: 50px; border: 1px solid rgba(255,255,255,.2); }

/* --------- Buttons --------- */
.btn { display: inline-block; padding: 14px 28px; border-radius: 50px; font-weight: 600; font-size: 1rem; transition: transform .15s, background .2s, box-shadow .2s; cursor: pointer; border: 2px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: var(--gruen-dunkel); box-shadow: 0 6px 20px rgba(200,162,75,.35); }
.btn-primary:hover { background: var(--gold-dunkel); color: var(--weiss); }
.btn-ghost { background: transparent; color: var(--weiss); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* --------- Sections --------- */
.section { padding: clamp(56px, 9vw, 100px) 0; }
.section-alt { background: var(--sand); }
.section-accent { background: var(--gruen); color: var(--weiss); }
.section-accent h2, .section-accent h3 { color: var(--weiss); }
.section-accent .eyebrow { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--gold-dunkel); margin-bottom: 12px; }
.section-sub { color: var(--text-hell); margin-top: 12px; }
.section-accent .section-sub { color: rgba(255,255,255,.8); }

/* --------- Grids / Prose --------- */
.grid { display: grid; gap: 40px; }
.grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }
.prose p { margin-bottom: 16px; }
.muted { color: var(--text-hell); }
.section-accent .muted { color: rgba(255,255,255,.75); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--weiss); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--schatten); }
.stat-num { display: block; font-size: 1.9rem; font-weight: 700; color: var(--gruen); }
.stat-label { font-size: .85rem; color: var(--text-hell); text-transform: uppercase; letter-spacing: .04em; }

/* --------- Cards --------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.card { background: var(--weiss); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--schatten); border: 1px solid rgba(0,0,0,.04); }
.card-icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-hell); font-size: .96rem; }

/* Sponsoring-Pakete */
.paket { text-align: center; position: relative; display: flex; flex-direction: column; }
.paket.featured { border: 2px solid var(--gold); transform: translateY(-6px); }
.paket .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--gruen-dunkel); font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 50px; text-transform: uppercase; letter-spacing: .05em; }
.paket-preis { font-size: 1.5rem; font-weight: 700; color: var(--gruen); margin: 6px 0 14px; }
.paket-einheit { font-size: .8rem; font-weight: 500; color: var(--text-hell); }

/* Sponsor Call-to-Action unter den Paketen */
.sponsor-cta { margin-top: 34px; background: var(--weiss); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--schatten); border-left: 4px solid var(--gold); }
.sponsor-cta p { margin-bottom: 10px; }
.sponsor-cta p:last-child { margin-bottom: 0; }
.sponsor-cta a { color: var(--gruen); font-weight: 600; }
.sponsor-cta a:hover { color: var(--gold-dunkel); }

/* --------- Galerie / Impressionen --------- */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.galerie-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); aspect-ratio: 3 / 2; cursor: zoom-in; }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.galerie-item:hover img { transform: scale(1.06); }
.galerie-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px; color: #fff; font-weight: 600; font-size: .95rem; background: linear-gradient(transparent, rgba(0,0,0,.65)); }

/* Lightbox (per JS aktiviert) */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.9); cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 95%; max-height: 92%; border-radius: 8px; box-shadow: 0 12px 50px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; right: 26px; background: none; border: 0; color: #fff; font-size: 2.6rem; line-height: 1; cursor: pointer; }

/* --------- Termine --------- */
.termine { display: flex; flex-direction: column; gap: 14px; }
.termin { display: flex; align-items: center; gap: 22px; background: var(--weiss); border-radius: var(--radius); padding: 20px 26px; box-shadow: var(--schatten); border-left: 4px solid var(--gold); }
.termin-datum { flex: none; text-align: center; min-width: 64px; }
.termin-tag { display: block; font-size: 1.7rem; font-weight: 700; color: var(--gruen); line-height: 1; }
.termin-monat { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dunkel); font-weight: 600; }
.termin-jahr { display: block; font-size: .72rem; color: var(--text-hell); }
.termin-info h3 { margin-bottom: 4px; }
.termin-info p { color: var(--text-hell); font-size: .92rem; }
.termine-leer { color: var(--text-hell); font-style: italic; padding: 20px 0; }

/* --------- Mitglied / Kontakt Boxen --------- */
.checklist { list-style: none; margin: 8px 0 16px; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.join-box, .contact-card { background: var(--weiss); color: var(--text); border-radius: var(--radius); padding: 34px; box-shadow: var(--schatten); }
.join-box h3, .contact-card h3 { margin-bottom: 12px; }
.join-box .btn { margin: 16px 0 10px; }
.join-note { font-size: .82rem; color: var(--text-hell); }
.join-note a { color: var(--gruen); font-weight: 600; }
.join-note a:hover { color: var(--gold-dunkel); }

/* Beitragstabelle (weisse Karte auf gruenem Abschnitt) */
.beitrag-card { background: var(--weiss); color: var(--text); border-radius: var(--radius); padding: 34px; margin-top: 40px; box-shadow: var(--schatten); }
.beitrag-card h3 { margin-bottom: 22px; }
.beitrag-card h4 { color: var(--gruen-dunkel); margin-bottom: 12px; font-size: 1.02rem; }
.beitrag-card h4 small { color: var(--text-hell); font-weight: 500; }
.beitrag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.beitrag-tabelle { width: 100%; border-collapse: collapse; }
.beitrag-tabelle td { padding: 9px 0; border-bottom: 1px solid rgba(0,0,0,.07); font-size: .95rem; }
.beitrag-tabelle td:last-child { text-align: right; font-weight: 700; color: var(--gruen); white-space: nowrap; padding-left: 16px; }
.beitrag-hinweis { margin-top: 14px; font-size: .85rem; color: var(--text-hell); }
.beitrag-stand { margin-top: 20px; font-size: .8rem; color: var(--text-hell); font-style: italic; }
.sheet-embed { position: relative; width: 100%; aspect-ratio: 4 / 3; margin-bottom: 18px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; overflow: hidden; }
.sheet-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .beitrag-grid { grid-template-columns: 1fr; gap: 24px; } }

/* --------- Hinweise / Platzhalter --------- */
.image-hint { margin-top: 28px; padding: 18px; background: rgba(0,0,0,.03); border: 1px dashed rgba(0,0,0,.15); border-radius: var(--radius); color: var(--text-hell); text-align: center; font-size: .9rem; }
.section-alt .image-hint { background: rgba(255,255,255,.5); }
code { background: rgba(0,0,0,.06); padding: 2px 7px; border-radius: 5px; font-size: .88em; }

/* --------- Footer --------- */
.site-footer { background: var(--gruen-dunkel); color: rgba(255,255,255,.85); padding: 50px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer strong { color: var(--weiss); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.8); font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--gold); }
.footer-bottom { padding-top: 20px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* --------- Responsive --------- */
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed; top: 72px; right: 0; left: 0;
    background: var(--weiss); flex-direction: column; align-items: stretch;
    padding: 16px 24px 24px; gap: 4px;
    box-shadow: var(--schatten);
    transform: translateY(-120%); transition: transform .3s; visibility: hidden;
  }
  .site-nav.open { transform: translateY(0); visibility: visible; }
  .site-nav a { padding: 14px; border-radius: 8px; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
}
