/* TC Hilden – Basis-Website
   Keine externen Schriften, keine Skripte, keine Cookies. */

:root {
  color-scheme: light dark;
  --papier: #ffffff;
  --flaeche: #eef3f0;
  --text: #17241d;
  --text-leise: #4b5b52;
  --platz: #1d4a37;        /* Grün der Platzblende */
  --platz-text: #ffffff;
  --linie: rgba(255, 255, 255, 0.85);
  --akzent: #ff675b;       /* Vereinsfarbe von der bisherigen Website */
  --link: #1d4a37;
  --link-hover: #0f2c20;
  --platz-hover: #0f2c20;
  --rahmen: #c9d6cf;
  --luecke-bg: #fff4c2;
  --luecke-text: #4a3b00;
  --fokus: #ffb400;

  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite-text: 42rem;
  --breite-seite: 62rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --papier: #0f1713;
    --flaeche: #17231d;
    --text: #e4ede8;
    --text-leise: #a6b6ad;
    --platz: #163a2b;
    --platz-text: #f2f7f4;
    --linie: rgba(255, 255, 255, 0.7);
    --link: #8fd4b2;
    --link-hover: #b9e8d0;
    --platz-hover: #21563f;
    --rahmen: #2c3d34;
    --luecke-bg: #4a3d0a;
    --luecke-text: #fff1b8;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--link-hover); }
a[href^="mailto:"] { white-space: nowrap; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 2px;
  border-radius: 2px;
}

.springen {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  padding: 0.5rem 0.75rem;
  background: var(--papier);
  color: var(--text);
  z-index: 10;
}
.springen:focus { top: 0.5rem; }

/* Kopf: grüne Platzfläche mit weißer Grundlinie */
.kopf {
  background: var(--platz);
  color: var(--platz-text);
  border-bottom: 4px solid var(--akzent);
}
.kopf-innen {
  max-width: var(--breite-seite);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
}
.marke {
  display: inline-block;
  color: var(--platz-text);
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.2;
}
.marke:hover { color: var(--platz-text); text-decoration: underline; }
.marke-zusatz {
  margin: 0.15rem 0 0;
  font-size: 0.9375rem;
  opacity: 0.85;
}

.hauptnav {
  margin-top: 1rem;
  border-top: 2px solid var(--linie);
}
.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.hauptnav a {
  display: inline-block;
  padding: 0.35rem 0;
  color: var(--platz-text);
  text-decoration: none;
  font-weight: 550;
}
.hauptnav a:hover { text-decoration: underline; }
.hauptnav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-decoration-color: var(--akzent);
}

/* Inhalt */
main {
  max-width: var(--breite-seite);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}
.text { max-width: var(--breite-text); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 {
  font-size: clamp(1.875rem, 1.4rem + 2vw, 2.625rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
h2 { font-size: 1.375rem; font-weight: 750; margin: 2.25rem 0 0.75rem; }
h3 { font-size: 1.125rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.einleitung { font-size: 1.1875rem; color: var(--text-leise); }

/* Baustellen-Hinweis: absichtlich laut, in beiden Farbmodi gleich */
.baustelle {
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  background: #ffe600;
  color: #000;
  border-style: solid;
  border-width: 12px 0;
  border-image: repeating-linear-gradient(-45deg, #000 0 14px, #ffe600 14px 28px) 12;
  font-size: 1.0625rem;
}
.baustelle p { margin: 0; max-width: var(--breite-text); }
.baustelle .baustelle-titel {
  font-size: 1.375rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

/* Direktlinks auf der Startseite */
.direkt {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.direkt a {
  display: block;
  height: 100%;
  padding: 1rem 1.25rem;
  background: var(--platz);
  color: var(--platz-text);
  text-decoration: none;
  border-radius: 6px;
}
.direkt a:hover { background: var(--platz-hover); color: var(--platz-text); }
.direkt strong { display: block; font-size: 1.1875rem; }
.direkt span { display: block; font-size: 0.9375rem; opacity: 0.9; }
.klein { font-size: 0.9375rem; color: var(--text-leise); }

/* Bereiche Verein / Sport / Jugend */
.bereiche {
  display: grid;
  gap: 0 2rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1rem;
}
.bereich { border-top: 2px solid var(--platz); padding-top: 0.25rem; }
.bereich h2 { margin-top: 0.75rem; }
.bereich ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.bereich li { margin: 0 0 0.85rem; }
.bereich li a { font-weight: 650; }
.bereich li > span { display: block; font-size: 0.9375rem; color: var(--text-leise); }

.kontakt { margin-top: 1rem; }
address { font-style: normal; }

/* Dokumentlisten */
.dokumente { list-style: none; margin: 0 0 1.5rem; padding: 0; max-width: var(--breite-text); }
.dokumente li { border-bottom: 1px solid var(--rahmen); }
.dokumente li:first-child { border-top: 1px solid var(--rahmen); }
.dokumente a { display: block; padding: 0.7rem 0; font-weight: 600; }
.pdf { font-weight: 400; color: var(--text-leise); font-size: 0.875rem; }

/* Platzhalter, die noch befüllt werden */
.platzhalter {
  max-width: var(--breite-text);
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--rahmen);
  color: var(--text-leise);
}
.platzhalter p:last-child { margin-bottom: 0; }
.luecke {
  background: var(--luecke-bg);
  color: var(--luecke-text);
  padding: 0 0.25em;
  border-radius: 3px;
}

/* Vorstand */
.personen {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(min(12.5rem, calc(50% - 0.75rem)), 1fr));
}
.foto {
  margin: 0 0 0.75rem;
  aspect-ratio: 1 / 1;
  background: var(--flaeche);
  border: 1px solid var(--rahmen);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
}
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; display: block; }
.foto .kuerzel { font-size: 2.25rem; font-weight: 750; color: var(--text-leise); }
.person-name { font-weight: 700; margin: 0; }
.person-rolle { margin: 0 0 0.25rem; color: var(--text-leise); }
.person-mail { margin: 0; font-size: 0.9375rem; }
.person-mail a { white-space: normal; }
.nb { white-space: nowrap; }

.gruppenfoto { margin: 1.5rem 0 0; max-width: 48rem; }
.gruppenfoto img { display: block; width: 100%; height: auto; border-radius: 6px; }

/* Termine */
table { border-collapse: collapse; margin: 0 0 1rem; min-width: min(100%, 22rem); }
th, td { text-align: left; padding: 0.55rem 1.5rem 0.55rem 0; border-bottom: 1px solid var(--rahmen); }
th { font-weight: 700; }
td { font-variant-numeric: tabular-nums; }

.fakten { margin: 0 0 1.5rem; display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; max-width: var(--breite-text); }
.fakten dt { font-weight: 700; }
.fakten dd { margin: 0; }

/* Rechtstexte */
.recht h2 { margin-top: 2.5rem; }
.recht h3 { margin-top: 1.75rem; }
.recht ul { padding-left: 1.25rem; }
.recht li { margin-bottom: 0.35rem; }

/* Fuß */
.fuss {
  border-top: 1px solid var(--rahmen);
  background: var(--flaeche);
}
.fuss-innen {
  max-width: var(--breite-seite);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: space-between;
  font-size: 0.9375rem;
}
.fuss p { margin: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.35rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .fakten { grid-template-columns: 1fr; gap: 0 0; }
  .fakten dd { margin-bottom: 0.6rem; }
}

@media print {
  .kopf, .fuss, .springen { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
