/* =====================================================================
   TC Zell – Oeffentlicher Auftritt
   Setzt auf tokens.css auf. Das Design schliesst bewusst an den alten
   Elementor-Auftritt an: Navy als Traeger, Lime als Akzent, Oswald fuer
   Ueberschriften, der Pinselstrich als Unterstreichung.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--tcz-font-body);
  font-size: var(--tcz-size-md);
  line-height: var(--tcz-lh-base);
  color: var(--tcz-text);
  background: var(--tcz-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--tcz-font-head);
  font-weight: 600;
  line-height: var(--tcz-lh-tight);
  letter-spacing: .01em;
  margin: 0;
}

h1 { font-size: var(--tcz-size-2xl); }
h2 { font-size: var(--tcz-size-xl); }
h3 { font-size: var(--tcz-size-lg); }

p { margin: 0 0 var(--tcz-space-4); }
p:last-child { margin-bottom: 0; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tcz-navy); text-decoration-color: var(--tcz-lime); text-underline-offset: 3px; }
a:hover { color: var(--tcz-navy-dark); }

/* --- Bausteine --------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--tcz-container);
  margin-inline: auto;
  padding-inline: var(--tcz-space-5);
}

.section { padding-block: var(--tcz-section-y); }
.section--tight { padding-block: var(--tcz-space-7); }
.section--alt { background: var(--tcz-light); }
.section--navy { background: var(--tcz-navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #C3D0DE; }

.section__head { max-width: 720px; margin-bottom: var(--tcz-space-7); }
.section__head p { color: var(--tcz-muted); margin-top: var(--tcz-space-3); }
.section--navy .section__head p { color: #C3D0DE; }

.eyebrow {
  display: block;
  font-family: var(--tcz-font-body);
  font-size: var(--tcz-size-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tcz-lime-dark);
  margin-bottom: var(--tcz-space-3);
}

.section--navy .eyebrow { color: var(--tcz-lime); }

.brush {
  display: inline-block;
  background-image: var(--tcz-brush-underline);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% .4em;
  padding-bottom: .16em;
}

/* --- Kopfbereich -------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--tcz-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tcz-space-5);
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--tcz-space-3);
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-lg);
  font-weight: 600;
  color: var(--tcz-navy);
  text-decoration: none;
  line-height: 1.1;
  white-space: nowrap;
}

.logo__mark { width: 52px; height: 52px; flex: 0 0 auto; }
.logo__text { display: block; }

.logo__text span {
  display: block;
  font-family: var(--tcz-font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--tcz-muted);
}

@media (max-width: 480px) {
  .logo__mark { width: 42px; height: 42px; }
  .logo { font-size: var(--tcz-size-md); }
}

.nav { display: flex; align-items: center; gap: var(--tcz-space-2); }

.nav a {
  padding: var(--tcz-space-2) var(--tcz-space-3);
  border-radius: var(--tcz-radius-sm);
  font-size: var(--tcz-size-sm);
  font-weight: 500;
  color: var(--tcz-text);
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover { background: var(--tcz-light); }

.nav a.is-active {
  color: var(--tcz-navy);
  font-weight: 600;
  box-shadow: inset 0 -3px 0 var(--tcz-lime);
}

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  padding: var(--tcz-space-2) var(--tcz-space-3);
  font: inherit;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  cursor: pointer;
  color: var(--tcz-navy);
}

/* --- Schaltflaechen ----------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--tcz-space-2);
  font-family: var(--tcz-font-body);
  font-weight: 600;
  font-size: var(--tcz-size-sm);
  padding: var(--tcz-space-3) var(--tcz-space-5);
  border-radius: var(--tcz-radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary { background: var(--tcz-lime); color: var(--tcz-navy-dark); box-shadow: var(--tcz-shadow-btn); }
.btn--primary:hover { background: var(--tcz-lime-dark); color: var(--tcz-navy-dark); }

.btn--outline { border-color: var(--tcz-border); color: var(--tcz-navy); background: #fff; }
.btn--outline:hover { background: var(--tcz-light); }

.btn--onnavy { border-color: rgba(255, 255, 255, .35); color: #fff; background: transparent; }
.btn--onnavy:hover { background: rgba(255, 255, 255, .10); color: #fff; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 82% -20%, rgba(183, 217, 0, .22), transparent 62%),
    linear-gradient(180deg, var(--tcz-navy-dark), var(--tcz-navy));
  color: #fff;
  padding-block: calc(var(--tcz-section-y) + var(--tcz-space-6)) var(--tcz-section-y);
  overflow: hidden;
}

.hero__inner { max-width: 780px; }
.hero h1 { font-size: var(--tcz-size-3xl); color: #fff; margin-bottom: var(--tcz-space-5); }
.hero p { font-size: var(--tcz-size-lg); color: #C7D4E3; margin-bottom: var(--tcz-space-6); }
.hero .row { display: flex; flex-wrap: wrap; gap: var(--tcz-space-4); }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tcz-space-6);
  margin-top: var(--tcz-space-8);
  padding-top: var(--tcz-space-6);
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.hero__meta div { min-width: 120px; }

.hero__meta dt {
  font-size: var(--tcz-size-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA3BA;
  margin-bottom: var(--tcz-space-2);
}

.hero__meta dd {
  margin: 0;
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-xl);
  font-weight: 600;
  color: var(--tcz-lime);
}

/* --- Karten -------------------------------------------------------------- */

.cards {
  display: grid;
  gap: var(--tcz-space-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__media { aspect-ratio: 16 / 9; background: var(--tcz-light); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }

.card__body { padding: var(--tcz-space-5); flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: var(--tcz-space-3); }
.card__body p { color: var(--tcz-muted); font-size: var(--tcz-size-sm); }
.card__foot { margin-top: auto; padding-top: var(--tcz-space-4); }

.card__meta {
  display: flex;
  align-items: center;
  gap: var(--tcz-space-3);
  font-size: var(--tcz-size-xs);
  color: var(--tcz-muted);
  margin-bottom: var(--tcz-space-3);
}

.tag {
  display: inline-block;
  font-size: var(--tcz-size-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--tcz-radius-pill);
  background: var(--tcz-light);
  color: var(--tcz-navy);
  border: 1px solid var(--tcz-border);
}

/* --- Tabellen ------------------------------------------------------------ */

.table__wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; }

.table th {
  text-align: left;
  font-family: var(--tcz-font-body);
  font-size: var(--tcz-size-xs);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tcz-muted);
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border-bottom: 2px solid var(--tcz-border);
  white-space: nowrap;
}

.table td {
  padding: var(--tcz-space-4);
  border-bottom: 1px solid var(--tcz-border);
  font-size: var(--tcz-size-sm);
}

.table tr:last-child td { border-bottom: 0; }
.table .right { text-align: right; }
.table .amount { font-family: var(--tcz-font-head); font-size: var(--tcz-size-md); font-weight: 600; color: var(--tcz-navy); white-space: nowrap; }

.section--navy .table th { color: #8FA3BA; border-bottom-color: rgba(255, 255, 255, .2); }
.section--navy .table td { border-bottom-color: rgba(255, 255, 255, .12); color: #DCE5EE; }
.section--navy .table .amount { color: var(--tcz-lime); }

/* --- Leerzustand --------------------------------------------------------- */

.empty {
  text-align: center;
  padding: var(--tcz-space-7) var(--tcz-space-5);
  border: 1px dashed var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  color: var(--tcz-muted);
  background: var(--tcz-light);
}

.empty h3 { color: var(--tcz-text); margin-bottom: var(--tcz-space-2); }
.empty p { font-size: var(--tcz-size-sm); }

/* --- Fussbereich --------------------------------------------------------- */

.footer { background: var(--tcz-navy-dark); color: #A9BACD; padding-block: var(--tcz-space-8) var(--tcz-space-6); }

.footer__grid {
  display: grid;
  gap: var(--tcz-space-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--tcz-space-7);
}

.footer h4 {
  font-family: var(--tcz-font-body);
  font-size: var(--tcz-size-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--tcz-space-4);
}

.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: var(--tcz-space-2); font-size: var(--tcz-size-sm); }
.footer a { color: #A9BACD; text-decoration: none; }
.footer a:hover { color: var(--tcz-lime); }

.footer__brand { font-family: var(--tcz-font-head); font-size: var(--tcz-size-lg); color: #fff; margin-bottom: var(--tcz-space-3); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: var(--tcz-space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--tcz-space-4);
  justify-content: space-between;
  font-size: var(--tcz-size-xs);
}

/* --- Fehlerseiten -------------------------------------------------------- */

.errorpage { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--tcz-space-7) var(--tcz-space-5); }
.errorpage__code { font-family: var(--tcz-font-head); font-size: var(--tcz-size-3xl); color: var(--tcz-lime-dark); line-height: 1; }
.errorpage h1 { font-size: var(--tcz-size-xl); margin: var(--tcz-space-4) 0 var(--tcz-space-3); }
.errorpage p { color: var(--tcz-muted); margin-bottom: var(--tcz-space-6); }

/* --- Hilfsklassen -------------------------------------------------------- */

.muted { color: var(--tcz-muted); }
.lead { font-size: var(--tcz-size-lg); color: var(--tcz-muted); }
.stack > * + * { margin-top: var(--tcz-space-5); }
.center { text-align: center; }
.mt-6 { margin-top: var(--tcz-space-6); }

.skip {
  position: absolute;
  left: -9999px;
  background: var(--tcz-lime);
  color: var(--tcz-navy-dark);
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border-radius: var(--tcz-radius-sm);
  font-weight: 600;
  z-index: 100;
}
.skip:focus { left: var(--tcz-space-4); top: var(--tcz-space-4); }

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--tcz-lime);
  outline-offset: 2px;
  border-radius: var(--tcz-radius-sm);
}

/* --- Schmale Fenster ------------------------------------------------------ */

/* Die Navigation klappt frueher zusammen als der Rest der Seite.
   Gemessen: Logo (191) + Abstand (24) + acht Punkte samt "Mitglied
   werden" (rund 910) brauchen etwa 1125 Pixel. Darunter lief die Leiste
   bisher stumm ueber den Container hinaus und gab der ganzen Seite einen
   waagrechten Rollbalken - mit zehn Punkten schon bei 1280 Pixeln, also
   auf jedem gewoehnlichen Laptop.

   Nachgemessen im Browser: Bei 1160 Pixeln fehlten noch 5. Der Wert hier
   liegt bewusst darueber - Schriften fallen auf Windows und Mac
   unterschiedlich breit aus, und ein Rollbalken wegen zwei Pixeln waere
   dieselbe Panne noch einmal. Wer Punkte ergaenzt, misst nach. */
@media (max-width: 1220px) {
  .nav__toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--tcz-border);
    padding: var(--tcz-space-3);
    box-shadow: var(--tcz-shadow-card);
  }

  .nav.is-open { display: flex; }
  .nav a { padding: var(--tcz-space-3) var(--tcz-space-4); }
  .nav a.is-active { box-shadow: inset 3px 0 0 var(--tcz-lime); }

  .header__inner { position: relative; }
}

@media (max-width: 900px) {
  :root { --tcz-section-y: 56px; }

  .hero h1 { font-size: var(--tcz-size-2xl); }
  .hero p { font-size: var(--tcz-size-md); }
}

/* --- Beitragsansicht ------------------------------------------------------ */

.article { max-width: 780px; }
.article__head { margin-bottom: var(--tcz-space-6); }
.article__head h1 { margin: var(--tcz-space-3) 0; }
.article__cover { margin: 0 0 var(--tcz-space-6); }
.article__cover img { width: 100%; border-radius: var(--tcz-radius-md); }

.prose { font-size: 1.0625rem; }
.prose > * + * { margin-top: var(--tcz-space-4); }
.prose h2, .prose h3, .prose h4 { margin-top: var(--tcz-space-7); }
.prose h2 { font-size: var(--tcz-size-xl); }
.prose h3 { font-size: var(--tcz-size-lg); }
.prose ul, .prose ol { padding-left: var(--tcz-space-5); }
.prose li + li { margin-top: var(--tcz-space-2); }
.prose img { border-radius: var(--tcz-radius-sm); margin-block: var(--tcz-space-5); }
.prose hr { border: 0; border-top: 1px solid var(--tcz-border); margin-block: var(--tcz-space-6); }

.prose blockquote {
  margin: var(--tcz-space-5) 0;
  padding: var(--tcz-space-4) var(--tcz-space-5);
  border-left: 4px solid var(--tcz-lime);
  background: var(--tcz-light);
  border-radius: 0 var(--tcz-radius-sm) var(--tcz-radius-sm) 0;
}

.prose table { width: 100%; border-collapse: collapse; font-size: var(--tcz-size-sm); display: block; overflow-x: auto; }
.prose th, .prose td { padding: var(--tcz-space-3); border-bottom: 1px solid var(--tcz-border); text-align: left; }
.prose th { font-weight: 600; color: var(--tcz-muted); font-size: var(--tcz-size-xs); text-transform: uppercase; letter-spacing: .06em; }

.article__nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tcz-space-4);
  margin-top: var(--tcz-space-8);
  padding-top: var(--tcz-space-6);
  border-top: 1px solid var(--tcz-border);
}

.article__nav-item {
  display: block;
  padding: var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  text-decoration: none;
  color: var(--tcz-text);
}

.article__nav-item:hover { background: var(--tcz-light); }
.article__nav-item span { display: block; font-size: var(--tcz-size-xs); margin-bottom: var(--tcz-space-1); }
.article__nav-item strong { font-size: var(--tcz-size-sm); font-weight: 600; }
.article__nav-item--right { text-align: right; }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--tcz-space-5);
  margin-top: var(--tcz-space-7);
  flex-wrap: wrap;
  font-size: var(--tcz-size-sm);
}

@media (max-width: 700px) {
  .article__nav { grid-template-columns: 1fr; }
  .article__nav-item--right { text-align: left; }
}

/* --- Pyramide -------------------------------------------------------------- */

/* Der Scrollcontainer liegt aussen. Steht overflow-x direkt auf .pyramid,
   wird die Y-Achse mitbetroffen - CSS rechnet ein visible neben einem auto
   zu auto um - und die Rangplakette der Spitze, die mit top:-11px ueber ihr
   Schild hinausragt, waere oben abgeschnitten. */
.pyramid__scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 14px;
  padding-bottom: var(--tcz-space-3);
}

/* max-content laesst die Pyramide so breit werden, wie die unterste Zeile
   sie braucht; min-width 100% haelt sie mittig, solange sie hineinpasst.
   Zusammen ergibt das: zentriert wenn moeglich, scrollbar wenn noetig -
   und die Form bleibt in beiden Faellen eine Pyramide. */
.pyramid {
  display: flex;
  flex-direction: column;
  gap: var(--tcz-space-3);
  align-items: center;
  width: max-content;
  min-width: 100%;
  margin-inline: auto;
}

.pyramid__row {
  display: flex;
  gap: var(--tcz-space-3);
  justify-content: center;
  flex: 0 0 auto;
}

.pyramid__slot {
  position: relative;
  width: 148px;
  min-height: 62px;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  padding: var(--tcz-space-4) var(--tcz-space-3) var(--tcz-space-3);
  text-align: center;
  box-shadow: var(--tcz-shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pyramid__slot.is-empty {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
}

/* Die Rangnummer sitzt wie die Plakette am Clubhaus-Brett oben auf dem Schild. */
.pyramid__no {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--tcz-radius-pill);
  background: var(--tcz-navy);
  color: #fff;
  font-family: var(--tcz-font-head);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
}

.pyramid__slot.is-empty .pyramid__no { background: var(--tcz-border); color: var(--tcz-muted); }

.pyramid__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--tcz-text);
  hyphens: auto;
}

.pyramid__name--free { color: var(--tcz-muted); font-weight: 400; font-style: italic; }

/* Die Spitze hervorheben - sie ist die Auszeichnung der Saison. */
.pyramid__row:first-child .pyramid__slot:not(.is-empty) {
  border-color: var(--tcz-lime-dark);
  box-shadow: 0 0 0 3px rgba(183, 217, 0, .25), var(--tcz-shadow-soft);
}

.pyramid__row:first-child .pyramid__slot:not(.is-empty) .pyramid__no {
  background: var(--tcz-lime);
  color: var(--tcz-navy-dark);
}

/* --- Kennzahlenzeile ------------------------------------------------------- */

.factline {
  display: flex;
  flex-wrap: wrap;
  gap: var(--tcz-space-6);
  margin: 0;
  padding-top: var(--tcz-space-5);
  border-top: 1px solid var(--tcz-border);
}

.factline div { min-width: 120px; }

.factline dt {
  font-size: var(--tcz-size-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tcz-muted);
  margin-bottom: var(--tcz-space-2);
}

.factline dd {
  margin: 0;
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-lg);
  font-weight: 600;
  color: var(--tcz-navy);
}

.pyramid__hint { margin-top: var(--tcz-space-5); font-size: var(--tcz-size-sm); }
.pyramid__swipe { display: none; }

@media (max-width: 820px) {
  /* Kein align-items: flex-start hier - das kippte die Pyramide nach links
     und machte aus ihr ein linksbuendiges Raster. Lieber schmalere Schilder
     und seitliches Schieben, die Form bleibt erhalten. */
  .pyramid__slot {
    width: 104px;
    min-height: 54px;
    padding: var(--tcz-space-4) var(--tcz-space-2) var(--tcz-space-2);
  }

  .pyramid__row { gap: var(--tcz-space-2); }
  .pyramid { gap: var(--tcz-space-2); }
  .pyramid__name { font-size: 11.5px; hyphens: none; }
  .pyramid__no { height: 20px; line-height: 20px; font-size: 11px; top: -10px; }

  .pyramid__swipe { display: block; margin-top: var(--tcz-space-2); }
}

@media (max-width: 420px) {
  .pyramid__slot { width: 92px; min-height: 50px; }
  .pyramid__name { font-size: 11px; }
}

/* --- Verweiskasten --------------------------------------------------------- */

.promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tcz-space-5);
  flex-wrap: wrap;
  padding: var(--tcz-space-6);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  background: var(--tcz-light);
}

.promo h3 { margin-bottom: var(--tcz-space-2); }
.promo p { margin: 0; max-width: 62ch; font-size: var(--tcz-size-sm); }

/* --- Ruhmestafel ----------------------------------------------------------- */

.halloffame {
  display: grid;
  gap: var(--tcz-space-5);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.halloffame__year {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-5);
}

.halloffame__no {
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-xl);
  color: var(--tcz-lime);
  margin-bottom: var(--tcz-space-4);
  padding-bottom: var(--tcz-space-3);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.halloffame__list { list-style: none; margin: 0; padding: 0; }
.halloffame__list li { margin-bottom: var(--tcz-space-4); }
.halloffame__list li:last-child { margin-bottom: 0; }

.halloffame__cat {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA3BA;
  margin-bottom: 2px;
}

.halloffame__name {
  display: block;
  font-weight: 600;
  color: #fff;
  font-size: var(--tcz-size-sm);
  line-height: 1.35;
}

.halloffame__partner { color: #C3D0DE; font-weight: 500; }

@media (max-width: 700px) {
  .promo { flex-direction: column; align-items: flex-start; }
}

/* --- Turniertabellen -------------------------------------------------------- */

/* Die zwei Bestplatzierten erreichen den Halbfinal - das soll man sehen,
   ohne die Regel zu kennen. */
.table tr.is-qualified td { background: rgba(183, 217, 0, .10); }
.table tr.is-qualified td:first-child { box-shadow: inset 3px 0 0 var(--tcz-lime); }

.table td.is-winner { font-weight: 600; color: var(--tcz-navy); }

.table .center { text-align: center; }

.section--navy .table tr.is-qualified td { background: rgba(183, 217, 0, .14); }

/* --- Torseite Clubbereich --------------------------------------------------- */

.gate {
  max-width: 460px;
  margin-inline: auto;
  text-align: center;
}

.gate h2 { margin-bottom: var(--tcz-space-4); }
.gate .lead { font-size: var(--tcz-size-md); margin-bottom: var(--tcz-space-6); }

.gate__form {
  text-align: left;
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
  padding: var(--tcz-space-6);
}

.gate__form .field { margin-bottom: var(--tcz-space-4); }

.gate__form label {
  display: block;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  margin-bottom: var(--tcz-space-2);
}

.gate__form input[type="password"],
.gate__form input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: var(--tcz-size-lg);
  letter-spacing: .08em;
  text-align: center;
  padding: var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
}

.gate__form input:focus {
  outline: 2px solid var(--tcz-lime);
  outline-offset: 1px;
  border-color: var(--tcz-lime-dark);
}

.gate .field__hint { font-size: var(--tcz-size-xs); color: var(--tcz-muted); margin: var(--tcz-space-2) 0 0; }
.gate .flash { text-align: left; }

/* --- Anmeldeformular -------------------------------------------------------- */

.anmeldung {
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
  padding: var(--tcz-space-6);
}

.anmeldung__paar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--tcz-space-4);
}

.anmeldung .field { margin-bottom: var(--tcz-space-5); }

.anmeldung label {
  display: block;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  margin-bottom: var(--tcz-space-2);
}

.anmeldung input[type="text"],
.anmeldung input[type="email"],
.anmeldung input[type="tel"] {
  width: 100%;
  font: inherit;
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
}

.anmeldung input:focus {
  outline: 2px solid var(--tcz-lime);
  outline-offset: 1px;
  border-color: var(--tcz-lime-dark);
}

.anmeldung .field--bad input { border-color: var(--tcz-danger); }
.anmeldung .field__hint  { font-size: var(--tcz-size-xs); color: var(--tcz-muted); margin: var(--tcz-space-2) 0 0; }
.anmeldung .field__error { font-size: var(--tcz-size-xs); color: var(--tcz-danger); margin: var(--tcz-space-2) 0 0; }

@media (max-width: 560px) {
  .anmeldung { padding: var(--tcz-space-5); }
  .anmeldung__paar { grid-template-columns: 1fr; gap: 0; }
}

/* --- Mitteilungen ----------------------------------------------------------- */

.notice {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-left: 4px solid var(--tcz-lime);
  border-radius: var(--tcz-radius-sm);
  padding: var(--tcz-space-5);
  box-shadow: var(--tcz-shadow-soft);
}

.notice__meta {
  display: flex;
  align-items: center;
  gap: var(--tcz-space-3);
  font-size: var(--tcz-size-xs);
  color: var(--tcz-muted);
  margin-bottom: var(--tcz-space-2);
}

.notice h3,
.notice h4 {
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-lg);
  margin-bottom: var(--tcz-space-3);
}

.notice .prose { font-size: var(--tcz-size-md); }
.notice .prose > * + * { margin-top: var(--tcz-space-3); }

.notice--public { border-left-color: var(--tcz-navy); }

/* Gewonnene Begegnungen hervorheben - der Blick soll die Saison auf einen
   Griff erfassen, ohne jede Zahl zu lesen. */
.table .is-win { color: var(--tcz-success); }

/* --- Meldungen -------------------------------------------------------------- */
/* Kam mit dem Mitgliederbereich dazu: Speichern und Abmelden geben eine
   Rueckmeldung, und die braucht im oeffentlichen Auftritt eine Form. */

.flash {
  padding: var(--tcz-space-4) var(--tcz-space-5);
  border: 1px solid;
  border-left-width: 4px;
  border-radius: var(--tcz-radius-sm);
  font-size: var(--tcz-size-sm);
  margin-bottom: var(--tcz-space-5);
}

.flash:last-child { margin-bottom: 0; }
.flash--success { background: #EDF6EE; border-color: var(--tcz-success); color: #1D5720; }
.flash--error   { background: #FBEEED; border-color: var(--tcz-danger);  color: #8C2820; }
.flash--info    { background: #EDF2F8; border-color: var(--tcz-navy);    color: var(--tcz-navy); }
.flash a { color: inherit; text-decoration: underline; }

/* --- Persoenlicher Mitgliederbereich ---------------------------------------- */

/* Das Datenformular hat fuenf Felder statt einem Code - es darf breiter sein. */
.gate--wide { max-width: 620px; }

/* Bis hierher kannte .gate__form nur Passwort- und Textfelder. Der
   Mitgliederbereich fragt E-Mail, Telefon und Adresse ab; ohne diese Zeile
   faellt jedes davon aus dem Raster. */
.gate__form input[type="email"],
.gate__form input[type="tel"],
.gate__form input[type="number"] {
  width: 100%;
  font: inherit;
  padding: var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
}

.gate__form .field--error input { border-color: var(--tcz-danger); }
.gate .field__error { font-size: var(--tcz-size-xs); color: var(--tcz-danger); margin: var(--tcz-space-2) 0 0; }

.btn--block { width: 100%; justify-content: center; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--tcz-muted); }
.btn--ghost:hover { background: var(--tcz-light); color: var(--tcz-navy); }

.gate .table__wrap { text-align: left; }
.gate .table { width: 100%; border-collapse: collapse; font-size: var(--tcz-size-sm); }
.gate .table th,
.gate .table td { padding: var(--tcz-space-3); border-bottom: 1px solid var(--tcz-border); text-align: left; }
.gate .table tr:last-child th,
.gate .table tr:last-child td { border-bottom: 0; }
.gate .table th { font-weight: 600; color: var(--tcz-muted); }

/* --- Shop ------------------------------------------------------------------- */

.shopgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--tcz-space-5);
}

.artikel {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.artikel:hover { box-shadow: var(--tcz-shadow-soft); transform: translateY(-2px); }

.artikel__bild {
  aspect-ratio: 1 / 1;
  background: var(--tcz-light);
  display: grid;
  place-items: center;
  padding: var(--tcz-space-5);
}

.artikel__bild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.artikel__text { padding: var(--tcz-space-5); display: flex; flex-direction: column; gap: var(--tcz-space-2); }
.artikel__text h3 { font-size: var(--tcz-size-md); }
.artikel__teaser { font-size: var(--tcz-size-sm); color: var(--tcz-muted); margin: 0; }
.artikel__preis { font-weight: 700; margin: auto 0 0; }

/* Artikelseite: Bilder links, Beschreibung und Formular rechts. */
.artikelseite { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tcz-space-7); align-items: start; }
.artikelseite__bilder { display: grid; gap: var(--tcz-space-4); }

.artikelseite__bilder img {
  width: 100%;
  background: var(--tcz-light);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-5);
}

.artikelseite__text h1 { font-size: var(--tcz-size-2xl); margin-bottom: var(--tcz-space-3); }
.artikelseite__preis { font-size: var(--tcz-size-xl); font-weight: 700; margin-bottom: var(--tcz-space-5); }

.artikelseite__form {
  margin-top: var(--tcz-space-6);
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-5);
}

.artikelseite__form select,
.artikelseite__form input[type="number"] {
  width: 100%;
  font: inherit;
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
}

.artikelseite__form label {
  display: block;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  margin-bottom: var(--tcz-space-2);
}

.artikelseite__form .field { margin-bottom: var(--tcz-space-4); }

@media (max-width: 800px) {
  .artikelseite { grid-template-columns: 1fr; gap: var(--tcz-space-5); }
}

/* Warenkorb und Kasse */
.korb .table { background: #fff; }
.korb__aktionen { display: flex; gap: var(--tcz-space-3); flex-wrap: wrap; margin-top: var(--tcz-space-5); }

.kasse { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--tcz-space-6); align-items: start; }

.kasse__form,
.kasse__korb {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-6);
}

.kasse__form label { display: block; font-size: var(--tcz-size-sm); font-weight: 600; margin-bottom: var(--tcz-space-2); }
.kasse__form .field { margin-bottom: var(--tcz-space-4); }

.kasse__form input,
.kasse__form textarea {
  width: 100%;
  font: inherit;
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
}

.kasse__form .field--error input,
.kasse__form .field--error textarea { border-color: var(--tcz-danger); }
.kasse__form .field__error { font-size: var(--tcz-size-xs); color: var(--tcz-danger); margin: var(--tcz-space-2) 0 0; }
.kasse__form .field__hint  { font-size: var(--tcz-size-xs); color: var(--tcz-muted);  margin: var(--tcz-space-2) 0 0; }

.kasse__korb h3 { font-size: var(--tcz-size-md); margin-bottom: var(--tcz-space-4); }
.kasse__liste { list-style: none; margin: 0 0 var(--tcz-space-4); padding: 0; font-size: var(--tcz-size-sm); }

.kasse__liste li {
  display: flex;
  justify-content: space-between;
  gap: var(--tcz-space-4);
  padding: var(--tcz-space-3) 0;
  border-bottom: 1px solid var(--tcz-border);
}

.kasse__total {
  display: flex;
  justify-content: space-between;
  font-size: var(--tcz-size-md);
  margin: 0 0 var(--tcz-space-4);
}

@media (max-width: 800px) {
  .kasse { grid-template-columns: 1fr; }
}

/* Warenkorb-Zeichen in der Navigation */
.nav__korb {
  display: inline-flex;
  align-items: center;
  gap: var(--tcz-space-2);
  font-size: var(--tcz-size-sm);
  font-weight: 600;
}

.nav__korb span {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--tcz-lime);
  color: var(--tcz-navy-dark);
  font-size: var(--tcz-size-xs);
}

/* --- K.-o.-Tableau ---------------------------------------------------------- */
/* Runden untereinander statt als verzweigter Baum: Ein Tableau mit
   Verbindungslinien ist am Telefon unlesbar - und dort wird es am
   Turnierwochenende gelesen, zwischen zwei Spielen auf der Anlage. */

.tab__runde {
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-lg);
  margin-bottom: var(--tcz-space-4);
}

.tableau {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--tcz-space-4);
}

.partie {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  overflow: hidden;
}

.partie--gespielt { border-color: var(--tcz-lime-dark); }

.partie__seite {
  padding: var(--tcz-space-3) var(--tcz-space-4);
  font-size: var(--tcz-size-sm);
  border-bottom: 1px solid var(--tcz-border);
  display: flex;
  align-items: center;
  gap: var(--tcz-space-2);
}

/* Der Sieger wird fett und bekommt einen Balken - Farbe allein reicht
   nicht, wer sie nicht unterscheiden kann, soll es trotzdem sehen. */
.partie__seite.is-sieger {
  font-weight: 700;
  color: var(--tcz-navy);
  box-shadow: inset 3px 0 0 var(--tcz-lime);
}

.partie__fuss {
  padding: var(--tcz-space-2) var(--tcz-space-4);
  font-size: var(--tcz-size-xs);
  background: var(--tcz-light);
}

.partie__resultat { font-weight: 600; color: var(--tcz-navy); }

.tab__seed {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--tcz-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
}

/* --- Clubmeisterschaft auf der Startseite ----------------------------------- */

.cmgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--tcz-space-4);
  margin-bottom: var(--tcz-space-6);
}

.cmkarte {
  display: flex;
  flex-direction: column;
  gap: var(--tcz-space-2);
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-5);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}

.cmkarte:hover { box-shadow: var(--tcz-shadow-soft); transform: translateY(-2px); }
.cmkarte h3 { font-family: var(--tcz-font-head); font-size: var(--tcz-size-xl); margin: 0; }
.cmkarte__stand { font-size: var(--tcz-size-sm); color: var(--tcz-muted); margin: 0; }

.cmkarte__link {
  margin-top: auto;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  color: var(--tcz-navy);
  text-decoration: underline;
  text-decoration-color: var(--tcz-lime);
}

.cmspalten {
  display: grid;
  /* 420 statt 300: Eine Spielzeile traegt Datum, zwei Namen und die
     Runde. Bei 300px brach das um und stapelte sich wieder - genau das,
     was hier weg sollte. */
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: var(--tcz-space-6);
}

.cmtitel { font-size: var(--tcz-size-md); margin-bottom: var(--tcz-space-3); }
.cmliste { list-style: none; margin: 0; padding: 0; }

/* Eine Zeile je Spiel: Zeit links, Paarung in der Mitte, Turnier rechts.
   Vorher lagen die drei Angaben untereinander - auf dem Telefon richtig,
   auf dem Bildschirm eine Spalte Text neben viel Weissraum. */
.cmliste li {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: var(--tcz-space-4);
  padding: var(--tcz-space-3) 0;
  border-bottom: 1px solid var(--tcz-border);
  font-size: var(--tcz-size-sm);
}

.cmliste li:last-child { border-bottom: 0; }

/* Wochentag, Datum und Uhrzeit als kleiner Block - so findet das Auge
   den Termin, ohne den Satz lesen zu muessen. */
.spielzeit {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: center;
  padding: 6px 0;
  border-radius: var(--tcz-radius-sm);
  background: var(--tcz-light);
}

.spielzeit strong { font-size: var(--tcz-size-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--tcz-navy); }
.spielzeit span { font-size: var(--tcz-size-xs); color: var(--tcz-muted); }
.spielzeit__uhr { font-weight: 600; color: var(--tcz-navy) !important; }

/* Das Ergebnis steht an derselben Stelle wie die Zeit - beide Listen
   bleiben so auf einer Linie. */
.spielergebnis {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 6px 4px;
  border-radius: var(--tcz-radius-sm);
  background: var(--tcz-light);
  font-weight: 600;
  font-size: var(--tcz-size-xs);
  color: var(--tcz-navy);
  text-align: center;
}

.spielpaarung { min-width: 0; line-height: 1.35; }
.spielpaarung__vs { color: var(--tcz-muted); font-weight: 400; padding: 0 2px; }

.spielwo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-size: var(--tcz-size-xs);
  color: var(--tcz-navy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.spielwo span { color: var(--tcz-muted); font-weight: 400; }
.spielwo:hover { text-decoration: underline; text-decoration-color: var(--tcz-lime); }

@media (max-width: 520px) {
  /* Auf dem Telefon reicht die Breite nicht fuer drei Spalten - dort
     rutscht die Runde unter die Paarung. */
  .cmliste li { grid-template-columns: 56px 1fr; }
  .spielwo { grid-column: 2; align-items: flex-start; text-align: left; }
}

/* --- Hero mit Bild ---------------------------------------------------------- */
/* Der Hero bestand aus Schrift auf Marineblau - der erste Eindruck eines
   Tennisclubs ohne ein einziges Bild. Das Foto liegt als CSS-Variable
   dahinter, damit es sich aus den Einstellungen setzen laesst.
   Der dunkle Verlauf ist nicht Dekoration, sondern Voraussetzung: Ohne
   ihn steht weisse Schrift auf hellem Platzbelag und ist unlesbar. Er faellt
   nach rechts stark ab, damit vom Bild moeglichst viel uebrig bleibt -
   beim Gruppenfoto der Mitglieder ist genau das der Zweck. Links, wo
   die Schrift liegt, deckt er weiterhin.
   Auf schmalen Geraeten kehrt sich das um: Dort steht der Text unten,
   also ist der Verlauf oben licht und unten deckend - so bleiben die
   Gesichter im oberen Bilddrittel sichtbar. */

.hero--bild { position: relative; isolation: isolate; }

.hero--bild::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-bild);
  background-size: cover;
  background-position: center 40%;
}

.hero--bild::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    100deg,
    rgba(11, 34, 57, .90) 0%,
    rgba(11, 34, 57, .78) 38%,
    rgba(11, 34, 57, .32) 72%,
    rgba(11, 34, 57, .18) 100%
  );
}

/* Auf schmalen Geraeten liegt der Text ueber der ganzen Breite - dort
   muss der Verlauf durchgehend decken, sonst geht die Schrift verloren. */
@media (max-width: 800px) {
  .hero--bild::after {
    background: linear-gradient(
      180deg,
      rgba(11, 34, 57, .55) 0%,
      rgba(11, 34, 57, .82) 45%,
      rgba(11, 34, 57, .92) 100%
    );
  }
}

/* --- Bild auf einer Karte --------------------------------------------------- */

.card__bild {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tcz-light);
}

.card__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.card:hover .card__bild img { transform: scale(1.03); }

/* Turnierbild ueber dem Tableau. Begrenzte Hoehe: Das Bild soll den
   Einstieg schmuecken, nicht das Tableau nach unten schieben - danach
   ist die Seite auf dem Telefon gesucht. */
.turnier__bild {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: var(--tcz-radius-md);
  margin-bottom: var(--tcz-space-5);
}

/* --- Anlage auf der Startseite ---------------------------------------------- */
/* Bild und Text nebeneinander. Das Bild steht zuerst im Markup, damit es
   auf schmalen Geraeten oben liegt - eine Luftaufnahme der eigenen Anlage
   sagt mehr als der Absatz daneben. */

.anlage {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--tcz-space-6);
  align-items: center;
}

.anlage__bild { margin: 0; }

.anlage__bild img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
}

.anlage__text h2 { margin: var(--tcz-space-2) 0 var(--tcz-space-3); }

@media (max-width: 800px) {
  .anlage { grid-template-columns: 1fr; gap: var(--tcz-space-5); }
}

/* --- Formulare im oeffentlichen Auftritt ------------------------------------ */
/* Text links, Formular rechts: Wer die Seite ueberfliegt, sieht zuerst
   worum es geht, und daneben gleich das Feld zum Ausfuellen. */

.beitritt {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--tcz-space-7);
  align-items: start;
}

.beitritt__text h2 { margin: var(--tcz-space-2) 0 var(--tcz-space-3); }

.formkarte {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
  padding: var(--tcz-space-6);
}

.formkarte h3 { font-size: var(--tcz-size-lg); margin-bottom: var(--tcz-space-5); }
.formkarte .field { margin-bottom: var(--tcz-space-4); }

.formkarte label {
  display: block;
  font-size: var(--tcz-size-sm);
  font-weight: 600;
  margin-bottom: var(--tcz-space-2);
}

.formkarte input[type="text"],
.formkarte input[type="email"],
.formkarte input[type="tel"],
.formkarte input[type="date"],
.formkarte select,
.formkarte textarea {
  width: 100%;
  font: inherit;
  padding: var(--tcz-space-3) var(--tcz-space-4);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  background: #fff;
  color: inherit;
}

.formkarte input:focus,
.formkarte select:focus,
.formkarte textarea:focus {
  outline: 2px solid var(--tcz-lime);
  outline-offset: 1px;
  border-color: var(--tcz-lime-dark);
}

.formkarte .field--error input,
.formkarte .field--error select,
.formkarte .field--error textarea { border-color: var(--tcz-danger); }

.formkarte .field__error { font-size: var(--tcz-size-xs); color: var(--tcz-danger); margin: var(--tcz-space-2) 0 0; }
.formkarte .field__hint  { font-size: var(--tcz-size-xs); color: var(--tcz-muted);  margin: var(--tcz-space-2) 0 0; }

/* Zwei Felder nebeneinander - Vorname/Nachname, PLZ/Ort. */
.feldpaar { display: grid; grid-template-columns: 1fr 1fr; gap: var(--tcz-space-4); }
.feldpaar--schmal { grid-template-columns: 1fr 2fr; }

/* Einwilligung: Kasten und Text nebeneinander, nicht untereinander. */
.formkarte .check,
.check {
  display: flex;
  align-items: flex-start;
  gap: var(--tcz-space-3);
  cursor: pointer;
  margin-bottom: var(--tcz-space-5);
}

.check input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto;
  accent-color: var(--tcz-lime-dark);
}

.check span { font-size: var(--tcz-size-sm); font-weight: 400; line-height: 1.45; }

/* Hakenliste fuer die Vorzuege des Probemonats. */
.haken { list-style: none; margin: var(--tcz-space-4) 0 0; padding: 0; }

.haken li {
  position: relative;
  padding-left: 26px;
  margin-bottom: var(--tcz-space-2);
  font-size: var(--tcz-size-sm);
}

.haken li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tcz-lime-dark);
  font-weight: 700;
}

/* Beitragstabelle auf dunklem Grund. */
.table--onnavy { color: rgba(255, 255, 255, .92); }
.table--onnavy th, .table--onnavy td { border-color: rgba(255, 255, 255, .16); }
.table--onnavy thead th { color: rgba(255, 255, 255, .70); }
.table--onnavy tbody tr:hover { background: rgba(255, 255, 255, .05); }

@media (max-width: 860px) {
  .beitritt { grid-template-columns: 1fr; gap: var(--tcz-space-5); }
  .feldpaar, .feldpaar--schmal { grid-template-columns: 1fr; }
}

/* --- Vorstand --------------------------------------------------------------- */

.vorstand {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--tcz-space-5);
}

.person {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.person__bild {
  aspect-ratio: 4 / 5;
  background: var(--tcz-light);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.person__bild img { width: 100%; height: 100%; object-fit: cover; }

/* Ohne Foto die Initialen statt eines fremden Platzhalterbildes, das so
   tut, als waere es die Person. */
.person__initialen {
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-2xl);
  color: var(--tcz-navy);
  opacity: .35;
  letter-spacing: .04em;
}

.person__text { padding: var(--tcz-space-5); display: flex; flex-direction: column; gap: 4px; }

.person__amt {
  font-size: var(--tcz-size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tcz-muted);
  margin: 0;
}

.person__text h3 { font-size: var(--tcz-size-md); margin: 0; }
.person__notiz { font-size: var(--tcz-size-sm); color: var(--tcz-muted); margin: 4px 0 0; }
.person__mail { font-size: var(--tcz-size-sm); margin-top: auto; padding-top: var(--tcz-space-3); word-break: break-word; }

/* --- Fliesstext ------------------------------------------------------------- */

.prosa > * + * { margin-top: var(--tcz-space-4); }
.prosa h2 { font-family: var(--tcz-font-head); font-size: var(--tcz-size-lg); margin-top: var(--tcz-space-6); }
.prosa ul { padding-left: var(--tcz-space-6); }
.prosa li + li { margin-top: 4px; }
.prosa--schmal { max-width: 68ch; }

/* --- Training --------------------------------------------------------------- */

.training {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--tcz-space-7);
  align-items: start;
}

.trainer {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  box-shadow: var(--tcz-shadow-soft);
  padding: var(--tcz-space-6);
  position: sticky;
  top: 96px;
}

.trainer h3 { font-size: var(--tcz-size-lg); margin: var(--tcz-space-2) 0 var(--tcz-space-3); }
.trainer__notiz { font-size: var(--tcz-size-sm); }
.trainer__kontakt { list-style: none; margin: var(--tcz-space-4) 0; padding: 0; font-size: var(--tcz-size-sm); }
.trainer__kontakt li { padding: var(--tcz-space-2) 0; border-bottom: 1px solid var(--tcz-border); }
.trainer__kontakt li:last-child { border-bottom: 0; }

@media (max-width: 860px) {
  .training { grid-template-columns: 1fr; }
  .trainer { position: static; }
}

/* --- Kennzahlen als Kacheln ------------------------------------------------- */
/* Ersetzt eine Definitionsliste, die als .fakten ohne passendes CSS
   dastand und als nackte dt/dd untereinander erschien. Aufgebaut wie die
   Ruhmestafel: Kachel, kleine Beschriftung, grosse Zahl - nur auf
   hellem Grund, also Navy statt Weiss. */

.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--tcz-space-4);
  margin: var(--tcz-space-6) 0 0;
  padding: 0;
}

.kennzahl {
  background: var(--tcz-navy);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tcz-space-2);
}

.kennzahl dt {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8FA3BA;
  margin: 0;
}

.kennzahl dd {
  margin: 0;
  font-family: var(--tcz-font-head);
  font-size: var(--tcz-size-xl);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}

/* Zahlen bekommen die Clubfarbe, Wörter bleiben weiss - sonst leuchtet
   ein ganzer Satz in Limette und die Kachel verliert ihren Halt. */
.kennzahl dd.is-zahl { color: var(--tcz-lime); }

.kennzahl__note { font-size: var(--tcz-size-xs); color: #8FA3BA; margin: 0; }

/* Auf dunklem Grund kehrt sich die Kachel um. */
.section--navy .kennzahl {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}

/* --- Platzreservation im Clubbereich ---------------------------------------- */
/* Die Karte traegt mehr als die anderen - Link, App-Hinweis und den
   Kalenderschluessel -, deshalb darf sie ueber die ganze Breite gehen. */

.card--weit { grid-column: 1 / -1; }

.teamup {
  margin-top: var(--tcz-space-6);
  padding-top: var(--tcz-space-5);
  border-top: 1px solid var(--tcz-border);
}

.teamup h4 { font-size: var(--tcz-size-md); margin-bottom: var(--tcz-space-2); }

.teamup__code {
  display: flex;
  align-items: center;
  gap: var(--tcz-space-3);
  flex-wrap: wrap;
  margin: var(--tcz-space-4) 0;
}

/* Der Schluessel in Schreibmaschinenschrift und mit Sperrung: Er wird
   abgetippt, und dabei verwechselt man sonst l und 1 oder 0 und O. */
.teamup__code code {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: var(--tcz-size-md);
  letter-spacing: .06em;
  background: var(--tcz-light);
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-sm);
  padding: var(--tcz-space-3) var(--tcz-space-4);
  user-select: all;
  word-break: break-all;
}

/* --- Sponsoring ------------------------------------------------------------- */

.pakete {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--tcz-space-5);
}

.paket {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  overflow: hidden;
}

.paket__bild { aspect-ratio: 4 / 3; background: var(--tcz-light); }
.paket__bild img { width: 100%; height: 100%; object-fit: cover; }

.paket__text { padding: var(--tcz-space-5); display: flex; flex-direction: column; gap: var(--tcz-space-2); }
.paket__text h3 { font-size: var(--tcz-size-md); margin: 0; }
.paket__preis { margin: 0; font-size: var(--tcz-size-sm); }
.paket__preis strong { font-family: var(--tcz-font-head); font-size: var(--tcz-size-lg); color: var(--tcz-navy); }
.paket__text p { font-size: var(--tcz-size-sm); margin: 0; }
.paket__link { margin-top: auto; padding-top: var(--tcz-space-3); }

/* Die Sponsorenwand steht auf dunklem Grund. Logos liegen auf weissen
   Kacheln - Firmenlogos sind fuer hellen Untergrund gemacht und
   verschwinden sonst zur Haelfte. */
.sponsorwand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--tcz-space-4);
}

.sponsorwand__eintrag {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: var(--tcz-space-4);
  background: #fff;
  border-radius: var(--tcz-radius-md);
  text-decoration: none;
  text-align: center;
}

.sponsorwand__eintrag img { max-width: 100%; max-height: 64px; object-fit: contain; }

.sponsorwand__eintrag span {
  font-weight: 600;
  color: var(--tcz-navy);
  font-size: var(--tcz-size-sm);
  line-height: 1.3;
}

.spende {
  background: #fff;
  border: 1px solid var(--tcz-border);
  border-radius: var(--tcz-radius-md);
  padding: var(--tcz-space-6);
  max-width: 640px;
}

/* --- Jahresprogramm --------------------------------------------------------- */
/* Kam im August 2026 dazu: der Aushang aus dem Clubhaus als Seite. Der
   Aufbau folgt bewusst dem Papier - Datum links, Anlass rechts -, damit
   wer beides nebeneinander sieht, dieselbe Liste erkennt. */

.jahrwahl { display: flex; gap: var(--tcz-space-2); margin-bottom: var(--tcz-space-5); flex-wrap: wrap; }
.jahrwahl .tag { text-decoration: none; }
.jahrwahl .tag.is-active { background: var(--tcz-navy); color: #fff; }

.programm__naechster {
  display: flex;
  align-items: baseline;
  gap: var(--tcz-space-3);
  flex-wrap: wrap;
  padding: var(--tcz-space-4) var(--tcz-space-5);
  margin-bottom: var(--tcz-space-5);
  border-radius: var(--tcz-radius-sm);
  background: var(--tcz-light);
  border-left: 3px solid var(--tcz-lime);
}
.programm__naechster .eyebrow { margin: 0; }

.programm__datum { white-space: nowrap; font-weight: 600; width: 1%; }
.nowrap { white-space: nowrap; }

.programm__notiz { color: var(--tcz-muted); font-size: var(--tcz-size-sm); }

/* Vergangenes bleibt stehen, tritt aber zurueck. Es ganz auszublenden
   waere bequemer, nimmt aber die Antwort auf "wann war das nochmal". */
.programm .is-vorbei td { color: var(--tcz-muted); }
.programm .is-laeuft td { background: rgba(183, 217, 0, .10); }
.programm .is-highlight td { background: rgba(183, 217, 0, .18); font-weight: 600; }
.programm .is-highlight.is-vorbei td { background: transparent; font-weight: 400; }

.tag--intern { background: #EDF2F8; color: var(--tcz-muted); }
.tag--laeuft { background: var(--tcz-lime); color: var(--tcz-navy-dark); }

.programm__fussnoten {
  list-style: none;
  padding: 0;
  margin: var(--tcz-space-4) 0 0;
  font-size: var(--tcz-size-sm);
  color: var(--tcz-muted);
}
.programm__fussnoten li { padding-left: 1.2em; text-indent: -1.2em; margin-bottom: var(--tcz-space-2); }
.programm__fussnoten li::before { content: '· '; }

.programm__hinweis {
  font-size: var(--tcz-size-sm);
  color: var(--tcz-muted);
  margin-top: var(--tcz-space-5);
  max-width: 70ch;
}

/* Fuer Bildschirmleser sichtbar, fuer Augen nicht - Tabellen brauchen
   eine Beschriftung, die Gestaltung braucht sie nicht. */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Dokumentenliste -------------------------------------------------------- */

.dokumente { list-style: none; padding: 0; margin: 0; }
.dokumente li { border-bottom: 1px solid var(--tcz-border); }
.dokumente li:last-child { border-bottom: 0; }

.dokument {
  display: flex;
  align-items: baseline;
  gap: var(--tcz-space-3);
  padding: var(--tcz-space-4) 0;
  text-decoration: none;
  color: var(--tcz-text);
}
.dokument:hover .dokument__titel { text-decoration: underline; }
.dokument__titel { font-weight: 600; }
.dokument__meta { font-size: var(--tcz-size-xs); color: var(--tcz-muted); margin-left: auto; }
.dokument__note { display: block; font-size: var(--tcz-size-sm); color: var(--tcz-muted); font-weight: 400; }
