/*
Theme Name: Gesundheitslauf Pulsnitz
Description: Archiv- und Informationsseite des Pulsnitzer Gesundheitslaufs, HSV 1923 Pulsnitz e.V.
Version: 1.0
Author: HSV 1923 Pulsnitz e.V.
*/

:root {
  --primary: #FEA500;   /* nur Flächen/Akzente, nie Text */
  --primary-dark: #F7911E;
  --secondary: #265755; /* Text/Links, Kontrast auf Weiß ~8.2:1 */
  --secondary-light: #3C8B88;
  --bg: #FFFFFF;
  --bg-alt: #EDF8F8;
  --text: #4C4C4C;
  --text-dark: #454C4C;
  --border: #E0E0E0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--secondary); text-decoration: underline; }
a:hover { color: var(--secondary-light); }
h1, h2, h3, h4 { color: var(--text-dark); font-weight: 700; line-height: 1.25; margin-bottom: .5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { margin-bottom: 1em; }
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--secondary);
  color: #fff;
  padding: 18px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.site-header a.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 48px; width: auto; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gallery img { border-radius: 8px; width: 100%; height: 180px; object-fit: cover; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; list-style: none; }
.site-nav a {
  color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 6px;
  font-size: .92rem; font-weight: 600; transition: background .15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(255,255,255,.15); }

/* Hero-Fläche: Primärfarbe nur als Fläche, Text bleibt dunkel */
.hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-dark);
  padding: 48px 0;
  text-align: center;
}
.hero h1 { color: var(--text-dark); }

/* Content */
main { padding: 40px 0 60px; }
.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 22px;
  margin-bottom: 20px;
}
table.chronik { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.chronik th, table.chronik td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.chronik th { background: var(--bg-alt); color: var(--secondary); text-transform: uppercase; font-size: .78rem; letter-spacing: .04em; }
table.chronik tr:hover td { background: #fafdfd; }
table.chronik .note { color: var(--text); font-size: .82rem; font-style: italic; }

table.strecken { width: 100%; border-collapse: collapse; font-size: .95rem; margin-bottom: 24px; }
table.strecken th, table.strecken td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.strecken th { background: var(--secondary); color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; }

.badge {
  display: inline-block; background: var(--primary); color: var(--text-dark);
  font-weight: 700; font-size: .8rem; padding: 3px 10px; border-radius: 20px;
}
.hint {
  background: var(--bg-alt); border-left: 4px solid var(--secondary-light);
  padding: 12px 16px; font-size: .9rem; margin: 16px 0; border-radius: 0 8px 8px 0;
}

/* Footer */
.site-footer {
  background: var(--text-dark); color: #fff; padding: 28px 0; margin-top: 40px; font-size: .88rem;
}
.site-footer a { color: #cfe6e5; }
.site-footer .legal { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 10px; }

/* Responsive */
@media (max-width: 640px) {
  .site-header .container { flex-direction: column; align-items: flex-start; }
  table.chronik, table.strecken { display: block; overflow-x: auto; }
}

/* Fokus sichtbar (Accessibility) */
a:focus-visible, button:focus-visible { outline: 3px solid var(--secondary-light); outline-offset: 2px; }
