/* ============================================================
   Team Oberpfalz e.V. – Stylesheet
   Farben via CSS-Variablen: nach Logo-Erhalt hier anpassen
   ============================================================ */

:root {
  --color-primary: #29ABE2;      /* Cyan-Blau aus Vereinslogo */
  --color-accent:  #E8192C;      /* Rot aus Vereinslogo */
  --color-dark:    #0a2540;
  --color-light:   #f5f7fa;
  --color-text:    #333333;
  --color-muted:   #666666;
  --color-white:   #ffffff;
  --color-border:  #d8dde6;

  --font-sans: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);

  --max-width: 1100px;
  --section-gap: 5rem;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
}

img { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

ul { list-style: none; }

/* ---- Layout helpers -------------------------------------- */
.container {
  width: min(var(--max-width), 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.section--alt {
  background: var(--color-light);
}

.section__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.section__subtitle {
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---- Header / Navigation -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 2px solid var(--color-primary);
  box-shadow: var(--shadow);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-dark);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo__text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
}

.site-logo__text span {
  color: var(--color-accent);
  font-size: 1.25rem;
  display: block;
  line-height: 1;
}

/* Wenn Logo-Bild geladen ist, Text ausblenden */
.site-logo img:not([style*="display:none"]) + .site-logo__text {
  display: none;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }

.site-nav a {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover,
.site-nav a.active {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.site-nav a.nav-highlight {
  background: var(--color-accent);
  color: var(--color-dark);
  font-weight: 600;
}

.site-nav a.nav-highlight:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Hero ------------------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  padding-block: 5rem 4rem;
  text-align: center;
}

.hero__eyebrow {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
}

.btn--secondary {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ---- Über uns ------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-grid__text p + p { margin-top: 1rem; }

.about-grid__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

/* ---- Vorstand ------------------------------------------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.board-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.board-card__initials {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.board-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-dark);
}

.board-card__role {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-top: 0.25rem;
}

.board-card__email {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  word-break: break-all;
}

/* ---- Mitgliedschaft ------------------------------------- */
.membership-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 640px;
}

.membership-box p + p { margin-top: 0.75rem; }
.membership-box .btn { margin-top: 1.5rem; }

/* ---- Dokumente ------------------------------------------ */
.docs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.doc-item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.doc-item__icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.doc-item__info { flex: 1; }

.doc-item__name {
  font-weight: 600;
  color: var(--color-dark);
  font-size: 0.95rem;
}

.doc-item__type {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.doc-item__arrow {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* ---- Event-Info-Box (Triathlon-Seite) ------------------- */
.event-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.event-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.event-info-card__icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.event-info-card__label { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.event-info-card__value { font-weight: 700; font-size: 1rem; color: var(--color-dark); margin-top: 0.2rem; }

/* ---- Orga-Liste ----------------------------------------- */
.orga-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
}

.orga-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.orga-item__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ---- Footer --------------------------------------------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255,255,255,0.75);
  padding-block: 2.5rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col__title {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.footer-col p,
.footer-col address { font-style: normal; line-height: 1.8; }

.footer-col a {
  color: rgba(255,255,255,0.7);
  display: block;
  margin-bottom: 0.3rem;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--color-accent); text-decoration: none; }

/* ---- Responsive ----------------------------------------- */
@media (max-width: 768px) {
  :root { --section-gap: 3rem; }

  .nav-toggle { display: flex; }

  .site-nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
    display: none;
    box-shadow: var(--shadow-md);
  }

  .site-nav.open { display: flex; }

  .site-nav a { padding: 0.6rem 0.75rem; }

  .about-grid { grid-template-columns: 1fr; }

  .about-grid__stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .about-grid__stats { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: center; }
}
