/* ==========================================================================
   TSV Albertshofen 1905 e.V. – Stylesheet
   Farben aus dem Vereinswappen: Grün, Schwarz, Weiß.
   ========================================================================== */

:root {
  --green: #1b6b04;          /* Vereinsgrün (Wappen) */
  --green-dark: #124a03;
  --green-tint: #e9f2e5;
  --black: #111412;
  --ink: #1c221e;
  --muted: #56615a;
  --line: #dde4dc;
  --bg: #f4f6f2;
  --surface: #ffffff;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 20, 18, .06), 0 6px 20px rgba(17, 20, 18, .06);
  --shadow-hover: 0 2px 4px rgba(17, 20, 18, .08), 0 12px 32px rgba(17, 20, 18, .12);
  --max: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Grundlagen ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--green); text-underline-offset: .18em; }
a:hover { color: var(--green-dark); }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.icon {
  width: 1.1em; height: 1.1em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: #fff; color: var(--ink); padding: .6rem 1rem; border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Kopfbereich ---------- */

.site-header {
  background: var(--black);
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--green);
}

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4.25rem;
}

.brand {
  display: flex; align-items: center; gap: .75rem;
  color: #fff; text-decoration: none;
  padding: .5rem 0;
}
.brand:hover { color: #fff; }
.brand__logo { width: 34px; height: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 800; font-size: 1.1rem; letter-spacing: .01em; }
.brand__sub { font-size: .8rem; color: #b9c4bc; letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  align-items: center; gap: .5rem;
  background: transparent; color: #fff;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--radius-sm);
  padding: .5rem .8rem; font: inherit; font-size: .95rem; cursor: pointer;
}
.nav-toggle .icon { width: 1.25em; height: 1.25em; }

.site-nav__list, .site-nav__sub { list-style: none; margin: 0; padding: 0; }

.site-nav__list { display: flex; align-items: center; gap: .25rem; }

.site-nav a {
  display: block;
  color: #fff; text-decoration: none;
  padding: .55rem .85rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .98rem;
}
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.site-nav a[aria-current="page"],
.site-nav .is-active > a { background: var(--green); color: #fff; }

.has-sub { position: relative; }
.has-sub > a::after {
  content: ""; display: inline-block; margin-left: .45em; vertical-align: .2em;
  border: .3em solid transparent; border-top-color: currentColor; border-bottom: 0;
}

.site-nav__sub {
  position: absolute; right: 0; top: 100%;
  min-width: 13rem; padding: .5rem;
  background: var(--surface); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .site-nav__sub,
.has-sub:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: none; }

.site-nav__sub a { color: var(--ink); font-weight: 500; }
.site-nav__sub a:hover { background: var(--green-tint); color: var(--ink); }
.site-nav__sub a[aria-current="page"] { background: var(--green); color: #fff; }

@media (max-width: 52rem) {
  .site-header__inner { flex-wrap: wrap; }
  .js .nav-toggle { display: inline-flex; }

  .site-nav { width: 100%; padding-bottom: 1rem; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .has-sub > a::after { display: none; }
  .site-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    background: transparent; box-shadow: none; padding: 0 0 0 1rem; min-width: 0;
  }
  .site-nav__sub a { color: #d5ddd7; }
  .site-nav__sub a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
}

/* ---------- Diagonale wie im Wappen ---------- */

.hero,
.page-head {
  --split: 22%;
  color: #fff;
  background:
    linear-gradient(to top left,
      var(--black) 0 var(--split),
      #fff var(--split) calc(var(--split) + 5px),
      var(--green) calc(var(--split) + 5px) 100%);
}

/* ---------- Startseite: Hero ---------- */

.hero__inner {
  display: grid; grid-template-columns: 1fr auto; align-items: center;
  gap: 2rem; padding-top: clamp(2.5rem, 7vw, 5rem); padding-bottom: clamp(2.5rem, 7vw, 5rem);
}
.hero h1 { margin-bottom: .35em; max-width: 20ch; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-weight: 700;
  font-size: .85rem; color: #d4e6cc; margin-bottom: .75rem;
}
.hero__address { display: flex; align-items: center; gap: .5rem; color: #e4eee0; font-size: 1.05rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero__logo {
  width: clamp(150px, 22vw, 260px);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .45));
}

@media (max-width: 40rem) {
  .hero { --split: 12%; }
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__logo { grid-row: 1; width: 120px; }
}

/* ---------- Unterseiten: Kopf ---------- */

.page-head { --split: 18%; }
.page-head__inner { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-head h1 { margin-bottom: .2em; }
.page-head__lead { display: flex; align-items: center; gap: .5rem; color: #e4eee0; margin: .5rem 0 0; font-size: 1.05rem; }

@media (max-width: 40rem) {
  .page-head { --split: 10%; }
}

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .75rem; padding: 0; font-size: .9rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; color: #a9c4a0; }
.breadcrumb a { color: #d4e6cc; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .8rem 1.3rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; line-height: 1.2;
  border: 2px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); color: #fff; }
.btn--light { background: #fff; color: var(--green-dark); }
.btn--light:hover { background: var(--green-tint); color: var(--green-dark); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Abschnitte ---------- */

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section + .section { padding-top: 0; }
.section__head { margin-bottom: 1.75rem; max-width: 46rem; }
.section__head p { color: var(--muted); margin: 0; }

.section.section--tint { background: var(--green-tint); padding: clamp(2rem, 5vw, 3rem) 0; }
.section--tint + .section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* ---------- Karten: Abteilungen ---------- */

.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
}

.dept-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.2rem;
  border-top: 4px solid var(--green);
  transition: box-shadow .15s, transform .15s;
}
.dept-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.dept-card :is(h2, h3) { font-size: 1.25rem; margin-bottom: .35em; }
.dept-card :is(h2, h3) a { color: var(--ink); text-decoration: none; }
.dept-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.dept-card p { color: var(--muted); margin-bottom: 1rem; flex: 1; }
.dept-card__more { display: inline-flex; align-items: center; gap: .4rem; color: var(--green); font-weight: 700; font-size: .95rem; }

/* ---------- Kontakte ---------- */

.contact-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
}

.contact {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
}
.contact__role {
  margin: 0 0 .2rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green);
}
.contact__name { font-size: 1.1rem; font-weight: 700; margin: 0 0 .5rem; }
.contact__list { list-style: none; margin: 0; padding: 0; font-size: .97rem; }
.contact__list li { display: flex; gap: .55rem; align-items: flex-start; padding: .15rem 0; overflow-wrap: anywhere; }
.contact__list .icon { margin-top: .25em; color: var(--muted); }
.contact__list a { color: var(--ink); text-decoration: none; }
.contact__list a:hover { color: var(--green); text-decoration: underline; }
.contact__note { color: var(--muted); font-size: .95rem; margin: 0; }

/* Mehrere Personen in einer Karte (Startseite) */
.contact--group h3 { font-size: 1.15rem; padding-bottom: .6rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.contact--group h3 a { color: var(--green); text-decoration: none; }
.contact--group h3 a:hover { text-decoration: underline; }
.contact__person { padding: .7rem 0; }
.contact__person + .contact__person { border-top: 1px dashed var(--line); }
.contact__person:last-child { padding-bottom: 0; }
.contact__person .contact__name { font-size: 1rem; margin-bottom: .25rem; }

/* ---------- Trainingszeiten ---------- */

.schedule {
  list-style: none; margin: 0; padding: 0;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.schedule li {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: .25rem 1.5rem; padding: 1rem 1.3rem;
}
.schedule li + li { border-top: 1px solid var(--line); }
.schedule__group strong { display: block; font-size: 1.05rem; }
.schedule__group span { color: var(--muted); font-size: .95rem; }
.schedule__time { display: flex; flex-direction: column; gap: .15rem; }
.schedule__time span { display: flex; gap: .5rem; align-items: flex-start; }
.schedule__time .icon { margin-top: .3em; color: var(--green); }
.schedule__time small { color: var(--muted); font-size: .9rem; padding-left: 1.6rem; }

@media (max-width: 34rem) {
  .schedule li { grid-template-columns: 1fr; }
}

.facts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr)); margin-bottom: 2rem; }
.fact { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; }
.fact strong { display: block; font-size: 2rem; line-height: 1.1; color: var(--green); font-weight: 800; }
.fact span { color: var(--muted); }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag-list a {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--surface); box-shadow: var(--shadow);
  padding: .5rem .9rem; border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.tag-list a:hover { color: var(--green); }

.bullet-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .6rem; }
.bullet-list li {
  background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .8rem 1.1rem .8rem 2.6rem; position: relative;
}
.bullet-list li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.25rem;
  width: .55rem; height: .55rem; border-radius: 2px; background: var(--green); transform: rotate(45deg);
}

/* ---------- Mitglied werden ---------- */

.download {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; border-left: 5px solid var(--green);
}
.download h2 { font-size: 1.35rem; margin-bottom: .25rem; }
.download p { margin: 0; color: var(--muted); }

.steps {
  list-style: none; margin: 1rem 0 0; padding: 0; counter-reset: step;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem 1.1rem 4rem;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 1.1rem; top: 1.05rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 800;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

.price-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.price {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem;
}
.price h3 { font-size: 1rem; color: var(--muted); font-weight: 700; margin-bottom: .6rem; }
.price__amount { font-size: 2.1rem; font-weight: 800; line-height: 1; color: var(--ink); }
.price__amount small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.price__rows { list-style: none; margin: 0; padding: 0; }
.price__rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.price__rows li + li { border-top: 1px solid var(--line); }
.price__rows strong { white-space: nowrap; }

.note {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem; max-width: 46rem;
}
.note h3 { margin-bottom: .35rem; }
.note p:last-child { margin-bottom: 0; }

/* ---------- Aufruf (Call to Action) ---------- */

.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
}
.cta h2 { margin-bottom: .2rem; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Platzhalter (vor Veröffentlichung ersetzen!) ---------- */

.todo { background: #fff3a6; color: #5a4a00; padding: 0 .3em; border-radius: 4px; font-weight: 700; }

/* ---------- Fußbereich ---------- */

.site-footer { background: var(--black); color: #c9d2cc; margin-top: auto; font-size: .97rem; }
.site-footer a { color: #e6ece8; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer a[aria-current="page"] { color: #8fd17a; }

.site-footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding-top: 3rem; padding-bottom: 2rem;
}
.site-footer__brand { display: flex; gap: 1rem; align-items: flex-start; }
.site-footer__brand img { width: 48px; }
.site-footer__name { color: #fff; font-weight: 800; font-size: 1.1rem; margin: 0 0 .35rem; }
.site-footer__title { color: #fff; font-weight: 700; margin: 0 0 .6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .88rem; color: #98a39c;
}
.site-footer__bottom p { margin: 0; }

@media (max-width: 46rem) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

/* ---------- Druck ---------- */

@media print {
  .site-header, .site-footer, .hero__actions, .skip-link { display: none !important; }
  .hero, .page-head { background: none; color: #000; }
  .breadcrumb { display: none; }
  .contact, .schedule, .price, .dept-card, .fact, .note, .download { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
