/* ═══════════════════════════════════════════════════
   SC Wasentegernbach e.V. – Stylesheet v2
   ═══════════════════════════════════════════════════ */

/* ─── Local Fonts ─── */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #111;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Design Tokens ─── */
:root {
  --yellow:    #F5C000;
  --yellow-dk: #C49A00;
  --yellow-lt: rgba(245,192,0,.12);
  --black:     #111111;
  --gray-900:  #1c1c1c;
  --gray-700:  #444;
  --gray-500:  #767676;
  --gray-400:  #9ca3af;
  --gray-200:  #e8e8e8;
  --gray-100:  #f5f5f5;
  --bg-card:   #fafafa;
  --white:     #ffffff;
  --green:     #16a34a;
  --green-lt:  rgba(22,163,74,.12);
  --red:       #dc2626;
  --red-lt:    rgba(220,38,38,.1);
  --r:         10px;
  --r-sm:      6px;
  --r-lg:      16px;
  --radius:    10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
  --t:         .18s ease;
  --max-w:     1120px;
  --header-h:  68px;
}

/* ─── Utilities ─── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow-dk);
  background: var(--yellow-lt);
  border-radius: 99px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem);  font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: .9rem;  font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--r-sm);
  font-weight: 600; font-size: .875rem; border: none;
  cursor: pointer; transition: var(--t); white-space: nowrap;
}
.btn-primary  { background: var(--yellow); color: var(--black); }
.btn-primary:hover  { background: #e8b600; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,192,0,.4); }
.btn-outline  { background: transparent; border: 1.5px solid rgba(0,0,0,.18); color: var(--black); }
.btn-outline:hover  { background: var(--black); color: #fff; border-color: var(--black); }
.btn-outline-white { background: transparent; border: 1.5px solid rgba(255,255,255,.5); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-danger { background: var(--red-lt); color: var(--red); border: 1px solid rgba(220,38,38,.2); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: .8rem; }

/* ─── Header ─── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .95rem; color: var(--black);
}
.logo img { width: 38px; height: 38px; flex-shrink: 0; }

/* Desktop nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a,
.nav-dropdown > a {
  display: flex; align-items: center; gap: 4px;
  padding: 7px 13px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 500; color: var(--gray-700);
  transition: var(--t); white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown > a:hover,
.nav-dropdown > a.active { background: var(--yellow); color: var(--black); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-chevron { font-size: .6rem; opacity: .6; transition: transform var(--t); }
.nav-dropdown:hover .dropdown-chevron { transform: rotate(180deg); }
.dropdown-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 50%;
  transform: translateX(-50%);
  background: var(--white); border-radius: var(--r);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  min-width: 210px; padding: 6px; z-index: 200;
}
.dropdown-menu a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .85rem; font-weight: 500; color: var(--gray-700);
  transition: var(--t);
}
.dropdown-menu a:hover { background: var(--yellow-lt); color: var(--black); }
.dropdown-menu .divider { height: 1px; background: var(--gray-200); margin: 4px 0; }
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.dd-open .dropdown-menu { display: block; }
.nav-dropdown.dd-open .dropdown-chevron { transform: rotate(180deg); }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 2px; transition: var(--t);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── Hero ─── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('/img/og-image.jpg');
  background-size: cover; background-position: center;
  will-change: transform;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.35) 50%,
    rgba(0,0,0,.05) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  color: #fff; padding: 72px 0 64px;
}
.hero-content .tag { color: var(--yellow); background: rgba(245,192,0,.2); }
.hero-content h1 { color: #fff; margin-bottom: 18px; max-width: 640px; }
.hero-content p  { font-size: 1.1rem; opacity: .82; max-width: 500px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── Lift Status ─── */
.lift-strip {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 40px 0;
}
.lift-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 32px 40px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 28px;
  max-width: 600px; margin: 0 auto;
  border: 1px solid var(--gray-200);
}
.lift-orb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.lift-orb.open  { background: var(--green-lt); animation: pulse-green 2.5s infinite; }
.lift-orb.closed { background: var(--red-lt); }
.lift-dot { width: 24px; height: 24px; border-radius: 50%; }
.lift-dot.open   { background: var(--green); }
.lift-dot.closed { background: var(--red); }
@keyframes pulse-green {
  0%,100% { box-shadow: 0 0 0 0 rgba(22,163,74,.4); }
  50%      { box-shadow: 0 0 0 14px rgba(22,163,74,0); }
}
.lift-info h3     { font-size: 1.3rem; margin-bottom: 4px; }
.lift-status-text { font-size: 1rem; font-weight: 600; }
.lift-status-text.open   { color: var(--green); }
.lift-status-text.closed { color: var(--red); }
.lift-notiz  { font-size: .85rem; color: var(--gray-500); margin-top: 5px; }
.lift-time   { font-size: .75rem; color: var(--gray-500); margin-top: 3px; }

/* ─── Section Headers ─── */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px; gap: 16px; flex-wrap: wrap;
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--gray-200); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img {
  width: 100%; height: 210px; object-fit: cover;
  background: var(--gray-100);
}
.card-img-placeholder {
  width: 100%; height: 210px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  display: flex; align-items: center; justify-content: center;
  font-size: 52px; color: var(--gray-500);
}
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-date  { font-size: .75rem; color: var(--gray-500); margin-bottom: 7px; font-weight: 500; }
.card-body h3 { margin-bottom: 9px; }
.card-body p { font-size: .875rem; color: var(--gray-700); flex: 1; line-height: 1.65; }
.card-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 16px; font-size: .8rem; font-weight: 600;
  color: var(--yellow-dk); transition: gap var(--t);
}
.card-link:hover { gap: 9px; }

/* ─── Abteilungs-Kacheln ─── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.dept-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r); padding: 24px 20px;
  text-decoration: none; color: inherit;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: block;
}
.dept-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--yellow);
}
.dept-icon { font-size: 32px; margin-bottom: 12px; }
.dept-card h3 { font-size: 1rem; margin-bottom: 5px; }
.dept-card p  { font-size: .8rem; color: var(--gray-500); }

/* ─── Page Hero ─── */
.page-hero {
  padding-top: var(--header-h);
  min-height: 280px;
  display: flex; align-items: flex-end;
  background: var(--black); position: relative; overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .22;
}
.page-hero-content {
  position: relative; z-index: 2; color: #fff; padding: 48px 0 40px;
}
.page-hero-content h1 { color: #fff; }
.page-hero-content .tag { color: var(--yellow); background: rgba(245,192,0,.2); }

/* ─── Beitrag / Artikel ─── */
.article-wrap { max-width: 740px; margin: 0 auto; padding: 56px 24px 88px; }
.article-wrap h1  { margin-bottom: 12px; }
.article-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: 32px; display: flex; gap: 16px; }
.article-body { font-size: 1rem; line-height: 1.85; color: var(--gray-900); }
.article-body p  { margin-bottom: 16px; }
.article-body h2,
.article-body h3 { margin: 28px 0 10px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gray-500); font-size: .85rem; margin-bottom: 24px;
  transition: color var(--t);
}
.back-link:hover { color: var(--black); }

/* ─── Vorstandschaft ─── */
.vorstand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.vorstand-card {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--gray-200); padding: 24px;
  box-shadow: var(--shadow-sm);
}
.vorstand-card.primary { border-top: 3px solid var(--yellow); }
.vorstand-role {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--gray-500); margin-bottom: 6px;
}
.vorstand-card.primary .vorstand-role { color: var(--yellow-dk); }
.vorstand-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vorstand-addr { font-size: .82rem; color: var(--gray-500); line-height: 1.6; margin-top: 4px; }

/* ─── Technische Daten Tabelle ─── */
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 4px; border-bottom: 1px solid var(--gray-200); font-size: .9rem; }
.spec-table td:first-child { color: var(--gray-500); width: 48%; }
.spec-table td:last-child { font-weight: 600; }

/* ─── Jahresarchiv ─── */
.year-nav {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 0;
  position: sticky; top: var(--header-h); z-index: 50;
}
.year-nav .container {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.year-pill {
  font-size: .8rem; font-weight: 600; padding: 5px 13px;
  border-radius: 99px; transition: var(--t);
  background: var(--white); color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.year-pill:hover     { background: var(--yellow-lt); border-color: var(--yellow); color: var(--black); }
.year-pill.active    { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.year-pill-label     { font-size: .75rem; color: var(--gray-500); }

.jahres-entry { margin-bottom: 52px; }
.monat-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.monat-badge {
  background: var(--yellow); color: var(--black);
  font-size: .8rem; font-weight: 700; padding: 5px 14px;
  border-radius: var(--r-sm); white-space: nowrap;
}
.monat-line { flex: 1; height: 1px; background: var(--gray-200); }
.entry-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.entry-text  { font-size: .9rem; color: var(--gray-700); line-height: 1.8; }
.entry-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px; margin-top: 18px;
}
.entry-gallery img {
  border-radius: var(--r-sm); height: 160px; width: 100%;
  object-fit: cover; transition: transform var(--t);
}
.entry-gallery img:hover { transform: scale(1.02); }

/* ─── Termine ─── */
.termin-list { display: flex; flex-direction: column; }
.termin-row {
  display: grid; grid-template-columns: 160px 1fr;
  gap: 20px; padding: 18px 0;
  border-bottom: 1px solid var(--gray-200); align-items: center;
}
.termin-date {
  background: var(--yellow); border-radius: var(--r-sm);
  padding: 8px 12px; text-align: center;
  font-size: .8rem; font-weight: 700; line-height: 1.3;
}
.termin-title { font-weight: 600; font-size: .95rem; margin-bottom: 3px; }
.termin-ort   { font-size: .82rem; color: var(--gray-500); }

/* ─── Kontakt ─── */
.kontakt-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--gray-700); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-sm); font-size: .9rem;
  font-family: inherit; background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,192,0,.18);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: .875rem; font-weight: 500; margin-bottom: 20px; }
.alert-success { background: rgba(22,163,74,.1); color: #166534; border: 1px solid rgba(22,163,74,.25); }
.alert-error   { background: var(--red-lt); color: #991b1b; border: 1px solid rgba(220,38,38,.25); }

.contact-items { margin-top: 32px; }
.contact-item  { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--gray-200); }
.contact-icon  { font-size: 18px; flex-shrink: 0; margin-top: 3px; }
.contact-item h4 { font-size: .75rem; color: var(--gray-500); font-weight: 500; margin-bottom: 2px; }
.contact-item p, .contact-item a { font-size: .9rem; font-weight: 500; }

/* ─── Google Maps DSGVO ─── */
.map-consent-wrap {
  border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gray-100);
  min-height: 360px; position: relative;
  display: flex; flex-direction: column;
}
.map-consent-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 32px;
  background: var(--gray-100);
  z-index: 2;
}
.map-consent-overlay .map-icon { font-size: 48px; margin-bottom: 16px; }
.map-consent-overlay h4 { margin-bottom: 8px; }
.map-consent-overlay p  { font-size: .85rem; color: var(--gray-500); margin-bottom: 20px; max-width: 300px; }
.map-iframe-wrap { display: none; width: 100%; height: 360px; }
.map-iframe-wrap iframe { width: 100%; height: 100%; border: none; display: block; }
.map-consent-wrap.accepted .map-consent-overlay { display: none; }
.map-consent-wrap.accepted .map-iframe-wrap { display: block; }

/* ─── Footer ─── */
.site-footer { background: #0f0f0f; color: rgba(255,255,255,.55); }
.footer-top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px; padding: 56px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand img { width: 36px; margin-bottom: 14px; opacity: .8; }
.footer-brand p   { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-social a {
  font-size: .78rem; font-weight: 500; padding: 5px 12px;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); transition: var(--t);
}
.footer-social a:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }

.footer-col h4 {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: .85rem; color: rgba(255,255,255,.55);
  padding: 5px 0; transition: color var(--t);
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 12px; flex-wrap: wrap;
}
.footer-bottom p  { font-size: .78rem; }
.footer-bottom a  { font-size: .75rem; color: rgba(255,255,255,.2); transition: color var(--t); }
.footer-bottom a:hover { color: rgba(255,255,255,.5); }

/* ─── Cookie Banner ─── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--gray-900); color: rgba(255,255,255,.85);
  padding: 20px 24px; box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  display: none; /* shown via JS */
}
.cookie-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cookie-text { flex: 1; font-size: .85rem; line-height: 1.6; min-width: 240px; }
.cookie-text a { color: var(--yellow); }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── Admin ─── */
.admin-wrap { background: var(--gray-100); min-height: 100vh; }
.admin-topbar {
  background: #111; color: #fff;
  height: 58px; display: flex; align-items: center;
  padding: 0 24px; gap: 20px; position: sticky; top: 0; z-index: 100;
}
.admin-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--yellow); font-size: .95rem;
}
.admin-brand img { width: 28px; }
.admin-nav-links { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.admin-nav-links a {
  font-size: .82rem; font-weight: 500; padding: 5px 12px;
  border-radius: var(--r-sm); color: rgba(255,255,255,.6); transition: var(--t);
}
.admin-nav-links a:hover, .admin-nav-links a.active {
  background: var(--yellow); color: var(--black);
}
.admin-content { max-width: 960px; margin: 36px auto; padding: 0 24px 80px; }
.admin-card {
  background: var(--white); border-radius: var(--r);
  padding: 28px 32px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); margin-bottom: 20px;
}
.admin-card h2 { font-size: 1.1rem; margin-bottom: 22px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r); padding: 20px;
}
.admin-stat .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 6px; }
.admin-stat .value { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.admin-stat .sub   { font-size: .8rem; color: var(--gray-500); margin-top: 4px; }

.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th { padding: 10px 14px; text-align: left; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); background: var(--gray-100); border-bottom: 1px solid var(--gray-200); }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--gray-200); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-100); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .72rem; font-weight: 600; }
.badge-green { background: rgba(22,163,74,.12); color: #166534; }
.badge-gray   { background: var(--gray-100); color: var(--gray-700); }
.badge-yellow { background: rgba(234,179,8,.15); color: #854d0e; }
.badge-red    { background: rgba(220,38,38,.12); color: #991b1b; }

.lift-toggle-row { display: flex; gap: 12px; flex-wrap: wrap; }
.lift-big-btn {
  flex: 1; min-width: 160px; padding: 20px; border-radius: var(--r);
  border: none; font-size: 1rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--t);
}
.lift-big-btn.open   { background: var(--green-lt); color: var(--green); border: 2px solid var(--green); }
.lift-big-btn.open:hover   { background: var(--green); color: #fff; }
.lift-big-btn.closed { background: var(--red-lt); color: var(--red); border: 2px solid var(--red); }
.lift-big-btn.closed:hover { background: var(--red); color: #fff; }

.admin-login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: #111;
}
.admin-login-card {
  background: var(--white); border-radius: var(--r-lg);
  padding: 44px 40px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.admin-login-card h1 { font-size: 1.4rem; margin-bottom: 6px; }
.admin-login-card .sub { color: var(--gray-500); font-size: .875rem; margin-bottom: 28px; }

/* ─── Beitrag (aliases) ─── */
.beitrag-hero { width: 100%; max-height: 420px; overflow: hidden; }
.beitrag-hero img { width: 100%; height: 420px; object-fit: cover; display: block; }
.beitrag-content { max-width: 740px; margin: 0 auto; padding: 56px 24px 88px; }
.beitrag-content h1 { margin-bottom: 12px; }
.beitrag-meta { font-size: .8rem; color: var(--gray-500); margin-bottom: 32px; }
.beitrag-body { font-size: 1rem; line-height: 1.85; color: var(--gray-900); }
.beitrag-body p  { margin-bottom: 16px; }

/* Beitrag Bildergalerie */
.beitrag-galerie {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.galerie-item { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; background: var(--gray-100); }
.galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie-item:hover img { transform: scale(1.04); }

/* ─── Section labels ─── */
.section-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--yellow-dk); margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2.2rem); margin-bottom: 16px; text-align: center; }

/* ─── CTA-Abschnitt ─── */
.cta-section { background: var(--yellow); }

/* ─── Vorstand-Karten (verein.php) ─── */
.vorstand-icon { font-size: 28px; margin-bottom: 10px; }
.vorstand-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--gray-500); margin-bottom: 4px;
}
.vorstand-name { font-size: .95rem; font-weight: 600; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .kontakt-grid    { grid-template-columns: 1fr; }
  .footer-top      { grid-template-columns: 1fr 1fr; }
  .footer-brand    { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute;
    top: var(--header-h); left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { width: 100%; }
  .dropdown-menu {
    position: static; transform: none;
    box-shadow: none; border: none;
    background: var(--gray-100);
    border-radius: var(--r-sm);
    margin-top: 4px; display: block !important;
    padding: 4px;
  }
  .termin-row { grid-template-columns: 1fr; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .hero-content h1 { font-size: 2rem; }
  .lift-card { flex-direction: column; text-align: center; padding: 28px 24px; }
  .form-row  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .section   { padding: 56px 0; }
  .admin-topbar { flex-wrap: wrap; height: auto; padding: 12px 16px; }
  .admin-login-card { padding: 32px 22px; }
}


/* ─── Lightbox ─── */
.lb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 9999;
  align-items: center; justify-content: center; cursor: zoom-out;
}
.lb-overlay.active { display: flex; }
.lb-overlay img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-sm); cursor: default; box-shadow: 0 8px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 14px; right: 18px; color: #fff; font-size: 2.2rem; cursor: pointer; background: none; border: none; line-height: 1; opacity: .8; transition: opacity .2s; }
.lb-close:hover { opacity: 1; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 1.8rem; cursor: pointer; background: rgba(255,255,255,.15); border: none; padding: 10px 16px; border-radius: var(--radius-sm); transition: background .2s; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.3); }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .85rem; }

/* ─── Galerie (Beiträge + Lift) ─── */
.galerie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-top: 32px;
}
.galerie-thumb { display: block; overflow: hidden; border-radius: var(--radius-sm); aspect-ratio: 4/3; background: var(--gray-100); cursor: zoom-in; position: relative; }
.galerie-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.galerie-thumb:hover img { transform: scale(1.05); }

/* ─── Sponsoren ─── */
.sponsor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.sponsor-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: transform .2s, box-shadow .2s; text-decoration: none; color: inherit; }
.sponsor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sponsor-card img { max-height: 70px; max-width: 150px; object-fit: contain; }
.sponsor-card .sname { font-size: .875rem; font-weight: 600; color: var(--gray-700); text-align: center; }
.sponsor-card .slink { font-size: .75rem; color: var(--yellow-dk); }

/* ─── Termine Timeline ─── */
.termin-list { display: flex; flex-direction: column; gap: 0; }
.termin-item { display: grid; grid-template-columns: 140px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--gray-100); align-items: center; }
.termin-date { background: var(--yellow); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; }
.termin-date .day { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.termin-date .month { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 2px; }
.termin-date.alt { background: var(--gray-100); }
.termin-info strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.termin-info .tort { font-size: .82rem; color: var(--gray-400); }
@media (max-width: 480px) {
  .termin-item { grid-template-columns: 1fr; gap: 8px; }
  .termin-date { text-align: left; display: flex; align-items: center; gap: 10px; }
  .termin-date .day { font-size: 1.1rem; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── Vorstand-Foto ─── */
.vorstand-foto { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; border: 3px solid var(--yellow); margin-bottom: 12px; }
.vorstand-foto-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--yellow-lt); border: 3px solid var(--yellow); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
