/* ============================================
   SFV Rothenburg / Saale – Einheitliches CSS
   ============================================ */

:root {
  --blue-dark: #1a3a5c;
  --blue-mid: #1F497D;
  --blue-light: #2b5ea7;
  --blue-pale: #e8f0fa;
  --yellow: #f5c518;
  --yellow-light: #ffe566;
  --yellow-pale: #fff8d6;
  --white: #ffffff;
  --gray-light: #f4f6f9;
  --gray: #6b7280;
  --text: #1e293b;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--gray-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- HEADER ---- */
.site-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, var(--blue-light) 100%);
  color: var(--white);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.site-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 6px;
  background: var(--yellow);
}
.site-header h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}
.site-header h1 span { color: var(--yellow); }
.site-header p.subtitle {
  font-size: 1rem;
  opacity: 0.85;
  font-weight: 400;
}

/* ---- SEITEN-NAVIGATION ---- */
.site-nav {
  max-width: 960px;
  margin: 1.5rem auto 0;
  padding: 0 1rem;
}
.site-nav-inner {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.site-nav-inner a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 2px solid var(--blue-mid);
  transition: background 0.2s, color 0.2s;
}
.site-nav-inner a:hover {
  background: var(--blue-pale);
  text-decoration: none;
}
.site-nav-inner a.active {
  color: var(--white);
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

/* ---- MAIN CONTAINER ---- */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

/* ---- CARD ---- */
section { margin-bottom: 2rem; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

/* ---- TITLES ---- */
.section-title,
.page-title,
.card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--yellow);
  display: inline-block;
}

.card h3 {
  color: var(--blue-mid);
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}

/* ---- EVENT HIGHLIGHT (index) ---- */
.event-highlight {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.event-highlight h2 {
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
  color: var(--yellow);
  border-bottom: none;
  display: block;
}
.event-highlight img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.event-highlight .btn {
  display: inline-block;
  margin-top: 1.25rem;
  background: var(--yellow);
  color: var(--blue-dark);
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s, transform 0.2s;
}
.event-highlight .btn:hover { background: var(--yellow-light); transform: translateY(-1px); text-decoration: none; }

/* ---- GRID ---- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ---- SCHEDULE TABLE (index) ---- */
.schedule { width: 100%; border-collapse: collapse; }
.schedule th, .schedule td { text-align: left; padding: 0.6rem 0.75rem; }
.schedule th {
  background: var(--blue-pale);
  color: var(--blue-mid);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.schedule td { border-bottom: 1px solid #eef1f5; font-size: 0.95rem; }
.schedule tr:last-child td { border-bottom: none; }

/* ---- DOCUMENTS LIST ---- */
.doc-list { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.doc-list li { margin-bottom: 0.5rem; }
.doc-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  transition: background 0.2s;
  font-size: 0.97rem;
}
.doc-list a::before { content: '\1F4C4'; }
.doc-list a:hover { background: var(--blue-pale); text-decoration: none; }

/* ---- TERMINE LIST (index) ---- */
.termin-list { list-style: none; }
.termin-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eef1f5;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.termin-list li:last-child { border-bottom: none; }
.termin-date {
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
}

/* ---- CONTACT (index) ---- */
.contact-info p { margin-bottom: 0.5rem; }
.contact-info a {
  color: var(--blue-light);
  text-decoration: none;
  border-bottom: 1px dashed var(--blue-light);
}
.contact-info a:hover { color: var(--blue-dark); text-decoration: none; }

/* ---- BANK INFO (index) ---- */
.bank-table { width: 100%; border-collapse: collapse; }
.bank-table td { padding: 0.35rem 0; vertical-align: top; }
.bank-table td:first-child { font-weight: 600; width: 100px; color: var(--gray); font-size: 0.9rem; }

/* ---- DISCLAIMER (index) ---- */
.disclaimer { font-size: 0.85rem; color: var(--gray); }
.disclaimer h4 { color: var(--text); margin: 1rem 0 0.3rem; }
.disclaimer p { margin-bottom: 0.5rem; }
details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue-mid);
  padding: 0.5rem 0;
}

/* ---- BADGE (index) ---- */
.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* ---- VEREINSGESCHICHTE ---- */
.geschichte p {
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}
.geschichte .image-block {
  margin: 1.5rem 0;
  text-align: center;
}
.geschichte .image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.geschichte .image-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.geschichte .image-row img {
  max-width: 48%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.geschichte .era-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 2rem 0 0.75rem;
  padding: 0.4rem 0.8rem;
  background: var(--blue-pale);
  border-left: 4px solid var(--yellow);
  border-radius: 0 6px 6px 0;
}

/* ---- MITGLIEDER ---- */
.member-card {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #eef1f5;
}
.member-card:last-child { border-bottom: none; }

.member-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.member-info { flex: 1; }
.member-name { font-weight: 700; font-size: 1.05rem; color: var(--blue-dark); }
.member-role { font-size: 0.9rem; color: var(--blue-mid); font-weight: 600; }
.member-details { font-size: 0.85rem; color: var(--gray); }
.member-description { font-size: 0.9rem; margin-top: 0.5rem; }
.member-description ul { margin: 0.4rem 0 0.4rem 1.2rem; font-size: 0.85rem; }
.member-description ul li { margin-bottom: 0.15rem; }
.member-description a { color: var(--blue-light); text-decoration: none; }
.member-description a:hover { text-decoration: underline; }

/* ---- SPENDEN & SPONSOREN ---- */
.spenden-images {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.spenden-images img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.spenden-images .spenden-img-wrap {
  flex: 1 1 100%;
  max-width: 100%;
}
.spenden-images .spenden-img-wrap img { width: 100%; height: auto; }

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}
.sponsor-item {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.sponsor-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.sponsor-item img { max-height: 80px; max-width: 100%; object-fit: contain; }
.sponsor-item a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }

/* ---- ERGEBNISSE ---- */
.section-intro {
  color: var(--gray);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}
.year-heading {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin: 1.5rem 0 0.75rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--yellow);
}
.year-heading:first-of-type { margin-top: 0.5rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2rem 1.5rem;
  font-size: 0.85rem;
  line-height: 1.7;
}
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ---- SCHANZENANLAGE ---- */
.schanze-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}
.schanze-table th,
.schanze-table td {
  padding: 0.5rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}
.schanze-table th {
  width: 40%;
  color: var(--blue-mid);
  font-weight: 600;
  background: var(--blue-pale);
}
.schanze-table tr:last-child th,
.schanze-table tr:last-child td { border-bottom: none; }

.rekord-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-mid);
  margin: 1rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
.rekord-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}
.rekord-table td {
  padding: 0.35rem 0.6rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #f0f0f0;
}
.rekord-table td:first-child { color: var(--gray); width: 25%; }
.rekord-table td.weite { font-weight: 700; color: var(--blue-mid); width: 15%; }
.rekord-table td:last-child { color: var(--gray); width: 10%; text-align: right; }

/* ---- RESPONSIVE ---- */
@media (max-width: 700px) {
  .site-header { padding: 2rem 1rem 1.5rem; }
  .site-header h1 { font-size: 1.5rem; }
  .container { padding: 1.5rem 1rem 2rem; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 1.25rem; }
  .event-highlight h2 { font-size: 1.3rem; }
  .geschichte .image-row img { max-width: 100%; }
  .member-photo img { width: 70px; height: 70px; }
  .sponsor-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .site-nav-inner a { font-size: 0.85rem; padding: 0.4rem 0.8rem; }
}
