/* Schrift Inter (SIL Open Font License, siehe fonts/Inter-OFL-LICENSE.txt) – lokal eingebunden,
   damit die Seite auf allen Geräten gleich aussieht und keine Daten an Dritte (z. B. Google Fonts) gehen. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* =========================================================================
   Tennis Ober-Unterhaunstadt – gemeinsames Stylesheet für alle Seiten
   Farben und Grundwerte stehen als Variablen in :root
   ========================================================================= */

:root {
  --ink: #17211d;
  --muted: #66716c;
  --paper: #ffffff;
  --mist: #f1f4f1;
  --forest: #12382c;
  --forest-2: #1b4f3d;
  --lime: #d8ff3e;
  --lime-deep: #b9e51f;
  --clay: #bd6642;
  --line: rgba(23, 33, 29, 0.13);
  --shadow: 0 1px 0 rgba(10, 32, 24, .06), 0 22px 60px rgba(10, 32, 24, 0.12);
  --radius: 1.5rem;
  --max: 1180px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --duration-fast: 160ms;
  --duration-ui: 220ms;
  --card-edge: 0 0 0 1px rgba(23, 33, 29, .08), 0 1px 2px rgba(10, 32, 24, .05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter Variable", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
/* Bedienelemente: kein Markieren/Callout bei langem Druck (Inhaltstext bleibt markierbar) */
button, .btn, .nav-toggle, .quick-card, summary { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
img { display: block; width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.03; letter-spacing: -0.045em; }
h2 { margin-bottom: 1.25rem; font-size: clamp(2.35rem, 5vw, 4.8rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
p { color: var(--muted); }
.wrap { width: min(calc(100% - 2.4rem), var(--max)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section--mist { background: var(--mist); }
.section--forest { color: white; background: var(--forest); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.1rem;
  color: var(--forest-2);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { width: 1.5rem; height: 2px; background: currentColor; content: ""; }
.section--forest .eyebrow, .section--forest p { color: rgba(255,255,255,.72); }
.section-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: end; margin-bottom: 3rem; }
.section-intro h2 { margin-bottom: 0; }
.section-intro p { margin: 0 0 .45rem; max-width: 38rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: .85rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--lime);
  color: var(--forest);
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-ui) ease, color var(--duration-ui) ease, border-color var(--duration-ui) ease;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible, .nav-toggle:focus-visible, .offer-link:focus-visible, .calendar-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--forest);
}
.btn--ghost { border-color: rgba(255,255,255,.62); color: white; background: transparent; }
.btn--dark { color: white; background: var(--forest); }
.btn svg { width: 1rem; margin-left: .65rem; }
.reveal { opacity: 0; transform: translateY(.75rem); transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  color: white;
  background: linear-gradient(to bottom, rgba(4, 21, 15, .82), rgba(4, 21, 15, 0));
  transition: background-color var(--duration-ui) ease, box-shadow var(--duration-ui) ease, color var(--duration-ui) ease;
}
/* Hintergrund und Blur liegen auf ::before – ein backdrop-filter direkt am Header würde das fixierte Mobil-Menü auf die Header-Höhe begrenzen. */
.site-header::before { position: absolute; z-index: -1; inset: 0; content: ""; transition: background-color var(--duration-ui) ease; }
.site-header.is-scrolled { color: var(--ink); background: none; box-shadow: 0 8px 28px rgba(15,40,30,.08); }
.site-header.is-scrolled::before { background: rgba(255,255,255,.84); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
@media (prefers-reduced-transparency: reduce) { .site-header.is-scrolled::before { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 5.4rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-size: .94rem; font-weight: 850; letter-spacing: -.02em; }
.brand-logo { width: 3.45rem; height: 3.45rem; object-fit: contain; flex: 0 0 auto; }
.brand-copy span { display: block; }
.brand-copy small { display: block; opacity: .72; font-size: .66rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.65rem; }
@media (max-width: 1100px) { .nav-links { gap: 1.1rem; } .nav-links a { font-size: .8rem; } }
.nav-links a { position: relative; font-size: .85rem; font-weight: 700; }
.nav-links a:not(.btn)::after { position: absolute; right: 0; bottom: -.4rem; left: 0; height: 2px; background: var(--lime); content: ""; transform: scaleX(0); transition: transform var(--duration-fast) var(--ease-out); transform-origin: left; }
.site-header.is-scrolled .nav-links .btn { color: var(--forest); }
.nav-toggle { display: none; width: 3rem; height: 3rem; border: 0; border-radius: 50%; color: currentColor; background: transparent; cursor: pointer; }
.nav-toggle { transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-fast) ease; }
.nav-toggle:active { transform: scale(.96); }
.nav-toggle span { display: block; width: 1.35rem; height: 2px; margin: .3rem auto; background: currentColor; transition: transform var(--duration-ui) var(--ease-out); }

.hero {
  position: relative;
  display: grid;
  min-height: min(900px, 100svh);
  align-items: end;
  color: white;
  background-color: var(--forest);
  background-image: url("tennis-community-hero.jpg");
  background-position: 68% center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 25, 18, .92) 0%, rgba(5, 25, 18, .66) 39%, rgba(5, 25, 18, .12) 70%), linear-gradient(0deg, rgba(4,20,14,.54), transparent 55%);
  content: "";
}
.hero::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(115deg, transparent 50%, rgba(216,255,62,.08)); content: ""; }
.hero-inner { position: relative; padding-top: 9rem; padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.hero-copy { position: relative; z-index: 4; max-width: 66rem; }
.hero-kicker { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.4rem; font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.hero-kicker::before { width: 2rem; height: 2px; background: var(--lime); content: ""; }
.hero h1 { margin-bottom: 1.5rem; font-size: clamp(3.4rem, 7.4vw, 6.7rem); letter-spacing: -.055em; }
.hero h1 span, .hero h1 em { display: block; white-space: nowrap; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero-lead { max-width: 35rem; margin-bottom: 2rem; color: rgba(255,255,255,.8); font-size: clamp(1.05rem, 2vw, 1.25rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.flying-ball {
  position: absolute;
  z-index: 2;
  bottom: 5.5rem;
  left: -5rem;
  width: clamp(2.2rem, 4vw, 3.7rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: url("tennis-ball.png") center / cover no-repeat;
  box-shadow: 0 20px 26px rgba(0,0,0,.3);
  opacity: 0;
  will-change: transform;
  animation: ballBounce 9.5s linear .4s infinite;
}
.flying-ball.is-paused { animation-play-state: paused; }
@keyframes ballBounce {
  0% { opacity: 0; transform: translate3d(0,0,0) rotate(0deg) scale(.86); }
  3% { opacity: 1; }
  10% { transform: translate3d(14vw,-10rem,0) rotate(150deg) scale(1); }
  20% { transform: translate3d(28vw,0,0) rotate(300deg) scale(.9); }
  29% { transform: translate3d(42vw,-7.2rem,0) rotate(450deg) scale(.97); }
  38% { transform: translate3d(55vw,0,0) rotate(600deg) scale(.9); }
  46% { transform: translate3d(67vw,-5rem,0) rotate(735deg) scale(.95); }
  54% { transform: translate3d(78vw,0,0) rotate(870deg) scale(.9); }
  61% { transform: translate3d(88vw,-3.3rem,0) rotate(990deg) scale(.93); }
  68% { transform: translate3d(98vw,0,0) rotate(1110deg) scale(.9); }
  74% { transform: translate3d(107vw,-2rem,0) rotate(1210deg) scale(.92); }
  80% { opacity: 1; transform: translate3d(116vw,0,0) rotate(1320deg) scale(.88); }
  84%, 100% { opacity: 0; transform: translate3d(calc(100vw + 10rem),0,0) rotate(1380deg) scale(.86); }
}

.quick-nav { position: relative; z-index: 4; margin-top: -2rem; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-radius: 1.35rem; box-shadow: var(--shadow); overflow: hidden; }
.quick-card { position: relative; min-height: 11.5rem; padding: 1.55rem; border-right: 1px solid var(--line); transition: transform var(--duration-fast) var(--ease-out), color var(--duration-ui) ease, background-color var(--duration-ui) ease; overflow: hidden; }
.quick-card:last-child { border-right: 0; }
.quick-card::after { position: absolute; right: -1.6rem; bottom: -2rem; width: 6rem; height: 6rem; border: 1.2rem solid var(--lime); border-radius: 50%; content: ""; transform: scale(.94); opacity: 0; transition: opacity var(--duration-ui) ease, transform var(--duration-ui) var(--ease-out); }
.quick-card:active { transform: scale(.985); }
.quick-index { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; }
.quick-card strong { display: block; margin-top: 2.9rem; font-size: 1.08rem; }
.quick-arrow { position: absolute; top: 1.4rem; right: 1.4rem; width: 1.8rem; height: 1.8rem; }

/* Bild streckt sich über die volle Höhe des Textes; background-size: cover schneidet nur zu, verzerrt nie */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 5vw, 4.5rem) clamp(2.2rem, 6vw, 6rem); align-items: stretch; }
.welcome-visual { position: relative; min-height: 26rem; border-radius: var(--radius); background: url("tennisanlage-luftbild.jpg") 54% center / cover; box-shadow: var(--shadow); overflow: hidden; }
.welcome-visual::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8,36,26,.28), transparent 35%); content: ""; }
.welcome-badge { position: absolute; z-index: 2; right: 1.5rem; bottom: 1.5rem; width: 8.2rem; height: 8.2rem; padding: 1.4rem; border-radius: 50%; color: var(--forest); background: var(--lime); display: grid; place-items: center; text-align: center; font-size: .78rem; font-weight: 850; line-height: 1.2; transform: rotate(-7deg); }
.welcome-copy > p { max-width: 40rem; font-size: 1.08rem; }
.welcome-stats { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2.2rem, 6vw, 6rem); }
.stats-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; color: var(--forest-2); font-size: .78rem; font-weight: 850; line-height: 1.2; letter-spacing: .15em; text-transform: uppercase; }
.stats-title svg { width: 1.7rem; height: 1.7rem; flex: 0 0 auto; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); }
.stat { padding: 1.2rem 1rem 1.2rem 0; background: var(--paper); }
.stat + .stat { padding-left: 1.35rem; border-left: 1px solid var(--line); }
.stat strong { display: block; color: var(--forest); font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -.06em; }
.stat > span { display: block; margin-top: .55rem; color: var(--muted); font-size: .78rem; }


.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.offer { position: relative; display: flex; min-height: 27rem; padding: 1.7rem; box-shadow: var(--card-edge); border-radius: var(--radius); flex-direction: column; background: white; overflow: hidden; transition: opacity 520ms var(--ease-out), transform var(--duration-ui) var(--ease-out), box-shadow var(--duration-ui) ease; }
.offer-number { color: var(--forest-2); font-size: .72rem; font-weight: 850; letter-spacing: .14em; }
.offer-icon { display: grid; width: 5rem; height: 5rem; margin: 3rem 0 2rem; border-radius: 50%; color: var(--forest); background: var(--lime); place-items: center; }
.offer-icon svg { width: 2rem; }
.offer h3 { margin-bottom: .8rem; }
.offer p { margin-bottom: 1.5rem; }
.offer-link { display: inline-flex; width: fit-content; gap: .5rem; align-items: center; margin-top: auto; padding: .35rem 0; border: 0; color: var(--forest); background: transparent; font-size: .85rem; font-weight: 850; cursor: pointer; text-align: left; transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) ease; }
.offer-link:active { transform: scale(.97); }
.offer-link svg { width: 1rem; transition: transform var(--duration-fast) var(--ease-out); }


.team-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.team-list { border-top: 1px solid rgba(255,255,255,.18); }
.team-item { display: grid; grid-template-columns: 3rem 1fr auto; gap: 1rem; align-items: center; min-height: 5.4rem; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.team-item span { color: rgba(255,255,255,.5); font-size: .72rem; font-weight: 800; }
.team-item strong { font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.2; letter-spacing: -.025em; }
.team-item a { display: grid; width: 2.8rem; height: 2.8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; place-items: center; transition: transform var(--duration-fast) var(--ease-out), color var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.team-item a:active { transform: scale(.96); }
.team-item svg { width: 1rem; }
.team-quote { position: sticky; top: 7.5rem; padding: 2.2rem; border-radius: var(--radius); color: var(--forest); background: var(--lime); }
.team-quote blockquote { margin: 0 0 2.2rem; font-size: clamp(1.7rem, 3.4vw, 2.8rem); font-weight: 850; line-height: 1.04; letter-spacing: -.05em; }
.team-quote p { margin: 0; color: rgba(18,56,44,.7); }

.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.event { display: flex; min-height: 20rem; padding: 1.6rem; box-shadow: var(--card-edge); border-radius: var(--radius); flex-direction: column; background: white; }
.event-date { display: inline-flex; align-items: baseline; gap: .5rem; color: var(--forest); }
.event-date strong { font-size: 3.3rem; line-height: 1; letter-spacing: -.05em; }
.event-date span { font-size: .77rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
/* Zeitraum, z. B. "15 bis 17": kleines "bis" zwischen den großen Zahlen */
.event-date .date-sep { margin: 0 .45rem; font-size: .77rem; letter-spacing: .13em; }
.event-rule { height: 1px; margin: 1.7rem 0; background: var(--line); }
.event h3 { margin-bottom: .7rem; font-size: clamp(1.3rem, 2vw, 1.65rem); overflow-wrap: break-word; -webkit-hyphens: manual; hyphens: manual; }
.event p { font-size: .9rem; }
.event-meta { margin-top: auto; color: var(--muted); font-size: .78rem; }
/* Hinweis "Termin wird noch bekannt gegeben" steht über dem Ort – der Ort bleibt bei allen Karten unten auf gleicher Höhe */
.event .event-tbd { margin: auto 0 .9rem; }
.event .event-tbd + .event-meta { margin-top: 0; }
.event-tbd { display: inline-flex; width: fit-content; margin-top: 1rem; padding: .3rem .65rem; border-radius: 999px; color: var(--forest); background: var(--mist); font-size: .72rem; font-weight: 750; }
.calendar-btn { display: inline-flex; width: fit-content; align-items: center; gap: .5rem; margin-top: 1rem; padding: .35rem 0; border: 0; color: var(--forest); background: transparent; font-size: .82rem; font-weight: 850; cursor: pointer; transition: transform var(--duration-fast) var(--ease-out), opacity var(--duration-fast) ease; }
.calendar-btn:active { transform: scale(.97); }
.calendar-btn svg { width: 1rem; }

.life-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; grid-template-rows: repeat(2, 15rem); gap: 1rem; }
.life-card { position: relative; padding: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.life-card--photo { grid-row: 1 / 3; color: white; background: url("tennis-community-hero.jpg") 65% center / cover; }
.life-card--photo::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7,32,23,.76), transparent 70%); content: ""; }
.life-card--yellow { color: var(--forest); background: var(--lime); }
.life-card--green { color: white; background: var(--forest-2); }
.life-card--clay { color: white; background: var(--clay); }
.life-card--paper { box-shadow: var(--card-edge); background: white; }
.life-card > * { position: relative; z-index: 2; }
.life-card small { display: block; margin-bottom: .5rem; opacity: .7; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.life-card strong { display: block; max-width: 14ch; font-size: clamp(1.35rem, 2.7vw, 2.25rem); line-height: 1.05; letter-spacing: -.045em; }
.life-card--photo strong { position: absolute; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; max-width: 13ch; font-size: clamp(2rem, 4vw, 3.8rem); }
.life-orbit { position: absolute; right: -2rem; bottom: -2rem; width: 8rem; height: 8rem; border: 1.4rem solid currentColor; border-radius: 50%; opacity: .14; }


.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); }
.contact-map { position: relative; min-height: 37rem; border-radius: var(--radius); color: white; background: var(--forest); overflow: hidden; }
.map-court { position: absolute; inset: 8%; border: 3px solid rgba(255,255,255,.55); transform: rotate(-8deg); }
.map-court::before { position: absolute; top: 50%; left: 0; width: 100%; height: 3px; background: rgba(255,255,255,.55); content: ""; }
.map-court::after { position: absolute; top: 0; left: 50%; width: 3px; height: 100%; background: rgba(255,255,255,.55); content: ""; }
.map-pin { position: absolute; top: 38%; left: 45%; display: grid; width: 5rem; height: 5rem; border-radius: 50% 50% 50% 0; color: var(--forest); background: var(--lime); box-shadow: 0 20px 35px rgba(0,0,0,.22); place-items: center; transform: rotate(-45deg); }
.map-pin svg { width: 1.7rem; transform: rotate(45deg); }
.map-label { position: absolute; right: 1.5rem; bottom: 1.5rem; left: 1.5rem; padding: 1.2rem; border: 1px solid rgba(255,255,255,.16); border-radius: 1rem; background: rgba(6,29,21,.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform var(--duration-fast) var(--ease-out), background-color var(--duration-ui) ease; }
.map-label:active { transform: scale(.985); }
.map-label strong { display: block; font-size: 1.05rem; }
.map-label span { color: rgba(255,255,255,.65); font-size: .84rem; }
.contact-copy h2 { max-width: 11ch; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.field { display: grid; gap: .42rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: .78rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.4rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .75rem; color: var(--ink); background: var(--mist); outline: none; transition: border-color var(--duration-fast) ease, box-shadow var(--duration-fast) ease, background-color var(--duration-fast) ease; }
.field textarea { min-height: 7.5rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(18,56,44,.1); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-status { margin: 0; font-size: .82rem; }
.contact-note { margin-top: 1rem; font-size: .76rem; }

.site-footer { padding: 4rem 0 1.5rem; color: white; background: #0b251c; }
.footer-top { display: grid; grid-template-columns: 1.1fr .5fr .55fr 1fr .5fr; gap: 2rem; padding-bottom: 3.5rem; }
.footer-brand p { max-width: 25rem; margin-top: 1.2rem; color: rgba(255,255,255,.58); }
.footer-col strong { display: block; margin-bottom: 1rem; color: var(--lime); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: block; width: fit-content; margin: .5rem 0; color: rgba(255,255,255,.72); font-size: .88rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.48); font-size: .75rem; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:active) { transform: translateY(-2px); background: white; }
  .btn--ghost:hover:not(:active) { border-color: white; color: var(--forest); background: white; }
  .btn--dark:hover:not(:active) { color: var(--forest); background: var(--lime); }
  .nav-links a:not(.btn):hover::after { transform: scaleX(1); }
  .quick-card:hover:not(:active) { color: white; background: var(--forest); }
  .quick-card:hover:not(:active)::after { opacity: 1; transform: scale(1); }
  .quick-card:hover:not(:active) .quick-index { color: rgba(255,255,255,.6); }
  .offer:hover { transform: translateY(-4px); box-shadow: var(--card-edge), 0 18px 48px rgba(14,49,36,.11); }
  .offer-link:hover:not(:active), .calendar-btn:hover:not(:active) { opacity: .7; }
  .offer-link:hover:not(:active) svg { transform: translateX(.25rem); }
  .team-item a:hover:not(:active) { color: var(--forest); background: var(--lime); }
  .map-label:hover:not(:active) { transform: translateY(-2px); background: rgba(6,29,21,.84); }
  .footer-col a:hover { color: white; }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links { position: fixed; inset: 0; display: flex; padding: 7rem 1.5rem 3rem; flex-direction: column; align-items: flex-start; color: white; background: var(--forest); visibility: hidden; transform: translateX(100%); transition: transform 200ms var(--ease-out), visibility 0s linear 200ms; }
  .nav-open .nav-links { visibility: visible; transform: none; transition: transform 280ms var(--ease-drawer), visibility 0s; }
  .nav-instant .nav-links, .nav-instant .nav-toggle span { transition: none !important; }
  .nav-links a { font-size: 1.5rem; }
  .nav-links .btn { margin-top: auto; font-size: .95rem; }
  .site-header.is-scrolled .nav-links { color: white; }
  .nav-open .nav-toggle { position: relative; z-index: 2; color: white; }
  .nav-open .nav-toggle span:first-child { transform: translateY(calc(1px + .15rem)) rotate(45deg); }
  .nav-open .nav-toggle span:last-child { transform: translateY(calc(-1px - .15rem)) rotate(-45deg); }
  .welcome-stats { grid-template-columns: 1fr; }
  .welcome-visual { min-height: 34rem; }
  .section-intro, .welcome-grid, .team-row, .contact-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card:nth-child(2) { border-right: 0; }
  .quick-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .offers { grid-template-columns: 1fr 1fr; }
  .events { grid-template-columns: 1fr 1fr; }
  .offer:last-child { grid-column: 1 / -1; }
  .team-quote { position: static; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .life-card--photo { grid-column: 1 / -1; min-height: 27rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  .wrap { width: min(calc(100% - 1.4rem), var(--max)); }
  .section { padding: 4.5rem 0; }
  .hero { min-height: 46rem; background-position: 72% center; background-size: cover; }
  .hero::before { background: linear-gradient(90deg, rgba(5,25,18,.9), rgba(5,25,18,.42)), linear-gradient(0deg, rgba(4,20,14,.62), transparent 55%); }
  .hero-inner { padding-bottom: 4rem; }
  /* Jede Zeile bleibt einzeilig: Schriftgröße so gewählt, dass „Ober-Unterhaunstadt“ auch bei 320 px passt */
  .hero h1 { font-size: min(10vw - .2rem, 4.2rem); }
  .brand { gap: .55rem; font-size: .82rem; }
  .brand-logo { width: 3rem; height: 3rem; }
  .flying-ball { bottom: 2.8rem; width: 2.2rem; animation-duration: 8.5s; }
  .quick-nav { margin-top: -.8rem; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .quick-card { min-height: 9.5rem; padding: 1.1rem; }
  .quick-card strong { margin-top: 2.6rem; font-size: .94rem; }
  .welcome-visual { min-height: 28rem; }
  /* Badge mobil nach oben, damit es die Plätze im Luftbild nicht verdeckt */
  .welcome-badge { top: 1rem; right: 1rem; bottom: auto; width: 6.6rem; height: 6.6rem; font-size: .66rem; }
  .stat { padding: 1rem .6rem 1rem 0; }
  .stat + .stat { padding-left: .9rem; }
  .offers, .events { grid-template-columns: 1fr; }
  .offer:last-child { grid-column: auto; }
  .offer { min-height: 23rem; }
  .team-item { grid-template-columns: 2rem 1fr auto; }
  .life-grid { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; }
  .life-card { min-height: 14rem; }
  .life-card--photo { grid-row: auto; grid-column: auto; min-height: 26rem; }
  .contact-form { grid-template-columns: 1fr; }
  .field--wide, .form-actions { grid-column: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flying-ball { display: none; }
  .reveal { transform: none; transition: opacity 200ms ease; }
  .nav-links, .nav-open .nav-links, .nav-toggle span { transition: none; }
  .btn, .quick-card, .offer, .offer-link, .team-item a, .calendar-btn, .map-label { transition-property: color, background-color, border-color, opacity, box-shadow; }
}

/* =========================================================================
   Unterseiten (Jugend, Ansprechpartner, Impressum, Datenschutz)
   <body class="subpage"> – fester grüner Header statt transparentem Hero-Header
   ========================================================================= */
/* Unterseiten mit Foto-Kopf (.subpage--photo) verhalten sich wie die Startseite: transparenter Header, beim Scrollen weiß */
.subpage:not(.subpage--photo) .site-header { position: sticky; background: var(--forest); box-shadow: 0 8px 28px rgba(15,40,30,.12); }
/* :where() hält die Spezifität niedrig, damit Komponenten-Klassen (z. B. .group-title) weiterhin gewinnen */
:where(.subpage) .section { padding: clamp(4rem, 8vw, 7rem) 0; }
:where(.subpage) h2 { margin-bottom: 1.1rem; font-size: clamp(2rem, 4.2vw, 3.6rem); }
:where(.subpage) h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -.025em; }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.jump-links a:focus-visible, .contact-card a:focus-visible, .team-card a:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; box-shadow: 0 0 0 6px var(--forest); }

.lead { max-width: 44rem; font-size: 1.08rem; }
.section-head { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; align-items: end; margin-bottom: 2.5rem; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 0; }
.text-link, .source a { color: var(--forest); font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.todo { padding: .05rem .35rem; border-radius: .3rem; background: var(--lime); color: var(--forest); font-weight: 700; }

/* Seitenkopf */
.page-hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); color: white; background: var(--forest); overflow: hidden; }
.page-hero::after { position: absolute; right: -6rem; bottom: -8rem; width: 22rem; height: 22rem; border: 3.2rem solid var(--lime); border-radius: 50%; opacity: .12; content: ""; }
.page-hero--photo { display: grid; min-height: min(900px, 100svh); align-items: end; padding: 9rem 0 clamp(4.5rem, 8vw, 7rem); background: var(--forest) 62% center / cover no-repeat; isolation: isolate; }
/* Titelbilder je Seite */
.page-hero--jugend { background-image: url("jugend-training.jpg"); }
.page-hero--ansprechpartner { background-image: url("ansprechpartner-team.jpg"); background-position: 100% center; }
.page-hero--mitglieder { background-image: url("tennis-community-hero.jpg"); background-position: 65% center; }
.page-hero--photo::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5, 25, 18, .92) 0%, rgba(5, 25, 18, .66) 39%, rgba(5, 25, 18, .12) 70%), linear-gradient(0deg, rgba(4,20,14,.54), transparent 55%); content: ""; }
.page-hero--photo::after { display: none; }
.page-hero--photo .wrap { position: relative; z-index: 4; }  /* Text liegt über dem fliegenden Ball */
.page-hero .eyebrow { color: var(--lime); }
.page-hero h1 { max-width: 16ch; margin-bottom: 1.2rem; font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -.05em; }
.page-hero h1 em { color: var(--lime); font-style: normal; }
.page-hero p { max-width: 40rem; margin-bottom: 0; color: rgba(255,255,255,.78); font-size: clamp(1.02rem, 1.8vw, 1.2rem); }
.page-hero .hero-actions { margin-top: 2rem; }
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.jump-links a { padding: .5rem .9rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-size: .8rem; font-weight: 700; transition: background-color 160ms ease, color 160ms ease; }

/* Kontaktkarten */
.group + .group { margin-top: 2.8rem; }
.group-title { margin: 0 0 1rem; color: var(--forest-2); font-size: .78rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
/* Subgrid: Rolle, Name, Telefon und E-Mail liegen in allen Karten einer Reihe auf gleicher Höhe */
.contact-card { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 1.4rem 1.5rem; box-shadow: var(--card-edge); border-radius: 1.1rem; background: white; }
.contact-card .role { align-self: end; color: var(--forest-2); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.contact-card h3 { margin: .45rem 0 .9rem; }
.contact-card .contact-line { display: flex; align-items: flex-start; min-height: 1.9rem; padding: .3rem 0; font-size: .9rem; }
.contact-card .contact-line a { align-items: flex-start; }
.contact-card .contact-line svg { margin-top: .2rem; }
.contact-card .contact-item { display: inline-flex; align-items: flex-start; gap: .55rem; color: var(--muted); font-weight: 650; }
.contact-card .contact-item svg { width: 1rem; height: 1rem; flex: 0 0 auto; color: var(--forest); }
.contact-placeholder { letter-spacing: .12em; }
.contact-card a { display: inline-flex; align-items: center; gap: .55rem; color: var(--forest); font-weight: 650; overflow-wrap: anywhere; }
.contact-card svg { width: 1rem; height: 1rem; flex: 0 0 auto; }

/* Beiträge & Tabellen */
.fee-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: start; }
.fee-grid > *, .split > * { min-width: 0; }
.fee-card { padding: 1.6rem; box-shadow: var(--card-edge); border-radius: var(--radius); background: white; }
.fee-card h3 { margin-bottom: 1.1rem; }
.fee-card--total { color: white; background: var(--forest); box-shadow: none; }
.fee-card--total h3 { color: white; }
.fee-card--total p { color: rgba(255,255,255,.7); }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .75rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.num { white-space: normal; }  /* Spaltenköpfe dürfen umbrechen (z. B. „Aufnahmegebühr einmalig“), Beträge nicht */
td small { display: block; margin-top: .2rem; color: var(--muted); font-size: .78rem; line-height: 1.4; }
tr:last-child td { border-bottom: 0; }
.fee-card--total th, .fee-card--total td { border-color: rgba(255,255,255,.16); }
.fee-card--total th, .fee-card--total td small { color: rgba(255,255,255,.6); }
.fee-card--total td.num strong { color: var(--lime); font-size: 1.15rem; }
.fee-card--total .source { color: rgba(255,255,255,.6); }
.notes { margin: 1.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: .85rem; }
.notes li + li { margin-top: .35rem; }
.source { margin-top: 1rem; color: var(--muted); font-size: .8rem; }

/* Jugend */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.fact { padding: 1.5rem; border-radius: 1.1rem; background: var(--mist); }
.fact strong { display: block; color: var(--forest); font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -.06em; }
.fact span { display: block; margin-top: .5rem; color: var(--muted); font-size: .85rem; }
.team-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.team-card { display: flex; flex-direction: column; min-height: 15rem; padding: 1.6rem; border-radius: var(--radius); color: white; background: var(--forest); }
.team-card:nth-child(2) { background: var(--forest-2); }
.team-card:nth-child(3) { background: var(--clay); }
.team-card .tag { color: var(--lime); font-size: 2.6rem; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.team-card h3 { margin: 1rem 0 .5rem; color: white; }
.team-card p { color: rgba(255,255,255,.75); font-size: .9rem; }
.team-card a { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; margin-top: auto; color: white; font-size: .85rem; font-weight: 800; }
.team-card a svg { width: 1rem; transition: transform var(--duration-fast) var(--ease-out); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.checklist { display: grid; gap: .7rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: .7rem; }
.checklist li::before { flex: 0 0 auto; width: .75rem; height: .75rem; margin-top: .45rem; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--forest); content: ""; }

/* Rechtstexte */
.prose { max-width: 52rem; }
.prose h2 { margin: 2.4rem 0 .6rem; font-size: 1.25rem; letter-spacing: -.02em; }
.prose p, .prose li { color: #333d39; }
.note { padding: 1rem 1.2rem; border-left: 4px solid var(--forest); border-radius: .5rem; background: var(--mist); font-size: .92rem; }

.cta-band { padding: clamp(3.5rem, 7vw, 6rem) 0; color: var(--forest); background: var(--lime); }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { max-width: 16ch; margin: 0; }
.cta-band p { max-width: 30rem; margin: .8rem 0 0; color: rgba(18,56,44,.75); }


@media (hover: hover) and (pointer: fine) {
  .jump-links a:hover { color: var(--forest); background: var(--lime); }
  .contact-card a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .team-card a:hover svg { transform: translateX(.25rem); }
}

@media (max-width: 980px) {
  .section-head, .fee-grid, .split { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr 1fr; }
  .team-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 660px) {
  .facts { gap: .5rem; }
  .fact { padding: 1rem .8rem; }
  .fact strong { font-size: 1.8rem; }
  .fact span { font-size: .75rem; }
  .team-cards { grid-template-columns: 1fr; }
  .team-card:last-child { grid-column: auto; }
  .team-card { min-height: 0; }
  .fee-card { padding: 1.2rem 1rem; }
  .page-hero--photo { min-height: 46rem; padding-bottom: 4rem; background-position: 64% center; }
  .page-hero--ansprechpartner { background-position: 73% center; }
  .page-hero--mitglieder { background-position: 72% center; }
  .page-hero--photo::before { background: linear-gradient(90deg, rgba(5,25,18,.9), rgba(5,25,18,.42)), linear-gradient(0deg, rgba(4,20,14,.62), transparent 55%); }
  .col-month { display: none; }  /* mobil: monatlich = jährlich / 12, spart eine Spalte */
  th, td { padding: .65rem .35rem; }
}

/* Spielfelder in Schrägansicht (Illustrationsstil) */
.court3d { display: block; width: 100%; height: auto; overflow: visible; }
.court3d .k-ground { fill: #fff; stroke: #111; stroke-width: 5; stroke-linejoin: round; }
.court3d .k-zone { fill: var(--zone); }
.court3d .k-alley { fill: var(--alley); }
.court3d .k-outline { fill: none; stroke: #111; stroke-width: 5; stroke-linejoin: round; }
.court3d .k-line { stroke: #111; stroke-width: 5; stroke-linecap: round; }
.court3d .k-line--thin { stroke-width: 3; stroke-dasharray: 10 8; opacity: .45; }
.court3d .k-net { fill: #fff; stroke: #111; stroke-width: 5; stroke-linejoin: round; }
.court3d .k-dim { stroke: #d9372a; stroke-width: 4; }
.court3d .k-label { fill: #17211d; font-size: 42px; font-weight: 750; font-family: inherit; paint-order: stroke; stroke: #fff; stroke-width: 10px; stroke-linejoin: round; }

/* =========================================================================
   Jugend: Spielformen – Stufen Rot / Orange / Grün / Gelb (eigene SVG-Grafiken)
   ========================================================================= */
.levels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.level { --stage: var(--lime); display: flex; flex-direction: column; padding: 1.4rem; border-radius: var(--radius); color: var(--ink); background: var(--paper); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 18px 40px -24px rgba(0,0,0,.45); }
.level--red { --stage: #e2412f; }
.level--orange { --stage: #f28c1e; }
.level--green { --stage: #6dbb3c; }
.level--yellow { --stage: #b9d82a; }
.level-head { display: flex; align-items: flex-start; gap: .9rem; min-height: 5.2rem; }
.level-head .ball { width: 3.4rem; height: 3.4rem; flex: 0 0 auto; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.level-step { color: var(--stage); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.level--yellow .level-step { color: #7a9412; }
.level h3 { margin: .15rem 0 0; color: var(--ink); font-size: clamp(1.45rem, 2.2vw, 1.8rem); letter-spacing: -.03em; }
.level .level-name { margin: .15rem 0 0; color: var(--muted); font-size: .85rem; font-weight: 650; line-height: 1.3; }
.level-court { margin: 1.4rem -.4rem 0; }
.level-court figcaption { margin: .2rem .4rem 0; color: var(--muted); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.level-facts { display: grid; margin: 1.1rem 0 0; }
.level-facts > div, .level-more dl > div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.level-facts dt, .level-more dt { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.6; }
.level-facts dd, .level-more dd { margin: 0; font-size: .86rem; line-height: 1.45; }
.level .level-note { margin: .6rem 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.level-more { margin-top: .6rem; border-top: 1px solid var(--line); }
.level-more summary { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; color: var(--forest); font-size: .8rem; font-weight: 800; list-style: none; cursor: pointer; user-select: none; -webkit-user-select: none; }
.level-more summary::-webkit-details-marker { display: none; }
.level-more summary::after { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; content: ""; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.level-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.level-more dl { margin: 0 0 .4rem; }
.level .level-team { margin: auto 0 0; padding-top: 1rem; color: var(--muted); font-size: .78rem; }
.level-team strong { display: inline-block; margin-left: .2rem; padding: .25rem .6rem; border-radius: 999px; color: var(--forest); background: color-mix(in srgb, var(--stage) 30%, white); font-size: .75rem; }
.levels-foot { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; margin-top: 2rem; }
.levels-foot .btn svg { width: 1rem; margin-left: .6rem; }
.levels-src { margin: 0; color: rgba(255,255,255,.55) !important; font-size: .75rem; line-height: 1.6; }
.levels-src a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: .15em; }
@media (hover: hover) and (pointer: fine) {
  .level-more summary:hover { color: var(--forest-2); }
}
@media (max-width: 900px) {
  .levels { grid-template-columns: 1fr; }
}
@media (max-width: 660px) {
  .levels-foot { grid-template-columns: 1fr; }
  .level-facts > div, .level-more dl > div { grid-template-columns: 1fr; gap: .1rem; }
}

/* Kennzeichnung KI-bearbeiteter Bilder – klein, dezent, aber gut lesbar */
.ai-badge { position: absolute; z-index: 5; display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem .22rem .45rem; border-radius: 999px; color: rgba(255,255,255,.92); background: rgba(10,20,16,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: .66rem; font-weight: 650; line-height: 1.3; letter-spacing: .01em; pointer-events: none; user-select: none; -webkit-user-select: none; }
.ai-badge svg { width: .8rem; height: .8rem; flex: 0 0 auto; color: var(--lime); }
.ai-badge { font-size: .7rem; font-weight: 700; letter-spacing: .02em; border: 1px solid rgba(255,255,255,.18); }
.ai-badge--hero { right: 1rem; bottom: calc(2rem + .9rem); }
.page-hero .ai-badge--hero { bottom: 1rem; }
.ai-badge--top-left { top: 1rem; left: 1rem; }
.life-card > .ai-badge--top-right { position: absolute; z-index: 3; top: 1rem; right: 1rem; }
@media (max-width: 660px) {
  .ai-badge--hero { bottom: calc(.8rem + .7rem); right: .7rem; }
  .page-hero .ai-badge--hero { bottom: .7rem; }
}
@media (prefers-reduced-transparency: reduce) { .ai-badge { background: rgba(10,20,16,.85); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* Postfächer der Tennisabteilung */
.mailboxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.group + .group, .mailboxes + .group { margin-top: 2.8rem; }
.mailbox { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem 1.1rem; border-radius: 1rem; background: white; box-shadow: var(--card-edge); transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-ui) ease; }
.mailbox:active { transform: scale(.98); }
.mailbox-icon { display: grid; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--forest); background: var(--lime); place-items: center; }
.mailbox-icon svg { width: 1.1rem; height: 1.1rem; }
.mailbox-text { display: grid; gap: .15rem; min-width: 0; }
.mailbox-text strong { color: var(--ink); font-size: .92rem; }
.mailbox-text span { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.mailbox-text .mailbox-addr { color: var(--forest); font-weight: 750; overflow-wrap: anywhere; }
.contact-copy .mailboxes { grid-template-columns: 1fr; }
.footer-col a[href^="mailto:"] { font-size: .82rem; white-space: nowrap; }
@media (max-width: 660px) { .footer-col:has(a[href^="mailto:"]) { grid-column: 1 / -1; } }
@media (hover: hover) and (pointer: fine) {
  .mailbox:hover { transform: translateY(-2px); box-shadow: var(--card-edge), 0 12px 28px rgba(14,49,36,.1); }
}

/* E-Mail-Links (Adresse wird per Skript gesetzt) */
a[data-mail]:not([href]) { cursor: default; }

/* =========================================================================
   Platzbuchung (externes Buchungssystem)
   ========================================================================= */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.quick-grid { grid-template-columns: 1.15fr repeat(4, 1fr); }
.quick-card--book { color: var(--forest); background: var(--lime); }
.quick-card--book .quick-index { color: rgba(18,56,44,.72); letter-spacing: .08em; text-transform: uppercase; }
.quick-card--book strong { font-size: 1.2rem; }
.quick-sub { display: block; margin-top: .3rem; color: rgba(18,56,44,.72); font-size: .78rem; font-weight: 650; line-height: 1.35; }
.footer-col .footer-book { color: var(--lime); font-weight: 750; }
@media (hover: hover) and (pointer: fine) {
  .quick-card--book:hover:not(:active) .quick-sub { color: rgba(255,255,255,.72); }
  .footer-col .footer-book:hover { color: white; }
}
@media (max-width: 980px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card--book { grid-column: 1 / -1; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-card--book strong { margin-top: 1.2rem; }
  .quick-card:nth-child(2) { border-right: 1px solid var(--line); }
  .quick-card:nth-child(3), .quick-card:nth-child(5) { border-right: 0; }
  .quick-card:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 660px) {
  .quick-card--book { padding: 1.1rem 1.1rem 1.2rem; }
}

/* Ansprechpartner: E-Mail-Links in den Kontaktkarten */
.contact-card a.contact-item { color: var(--forest); }
.contact-card .mail-text { display: grid; min-width: 0; font-size: .74rem; line-height: 1.6; letter-spacing: -.005em; }
.contact-card .mail-text [data-mail] { overflow-wrap: anywhere; }

/* Sehr schmale Handys: Beitragstabellen ohne Querscrollen */
@media (max-width: 380px) {
  th, td { padding: .6rem .25rem; }
  th { font-size: .64rem; letter-spacing: .04em; }
  td small { -webkit-hyphens: auto; hyphens: auto; }
}

/* Mitglied werden: Download-Kacheln (Formulare des Hauptvereins) */
.join-docs { margin-top: 3rem; scroll-margin-top: 7rem; }
.join-docs > p { max-width: 46rem; margin: .6rem 0 0; color: var(--muted); }
.join-docs .mailboxes { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.2rem; }

/* =========================================================================
   Seite „Für Mitglieder“: Schnellzugriff + aufklappbare Abschnitte
   ========================================================================= */
.quick-info { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 0 0 2.5rem; }
.info-items { display: grid; gap: .75rem; }
.info-item { border-radius: var(--radius); background: white; box-shadow: var(--card-edge); scroll-margin-top: 7rem; }
.info-item summary { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; list-style: none; cursor: pointer; -webkit-user-select: none; user-select: none; }
.info-item summary::-webkit-details-marker { display: none; }
.info-item summary::after { width: .6rem; height: .6rem; margin-left: auto; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); content: ""; flex: 0 0 auto; transform: translateY(-2px) rotate(45deg); transition: transform 200ms var(--ease-out); }
.info-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.info-item summary:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: var(--radius); }
.info-num { display: grid; flex: 0 0 auto; width: 2.4rem; height: 2.4rem; border-radius: 50%; color: var(--forest); background: var(--lime); font-size: .78rem; font-weight: 850; place-items: center; }
.info-title { color: var(--ink); font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 800; letter-spacing: -.02em; }
.info-body { padding: 0 1.5rem 1.5rem calc(1.5rem + 3.4rem); color: var(--muted); }
.info-body p { margin: 0 0 .9rem; }
.info-body strong { color: var(--ink); }
.info-list, .info-steps { margin: 0 0 1rem; padding-left: 1.2rem; }
.info-list li + li, .info-steps li + li { margin-top: .5rem; }
.info-note { padding: .8rem 1rem; border-left: 3px solid var(--lime); border-radius: .4rem; background: var(--mist); }
.info-table { max-width: 26rem; margin: .4rem 0 1rem; }
.info-contact { margin-top: 3rem; padding: 2rem; border-radius: var(--radius); color: white; background: var(--forest); }
.info-contact h2 { margin: 0 0 .6rem; color: white; font-size: clamp(1.4rem, 3vw, 2rem); }
.info-contact p { margin: 0; color: rgba(255,255,255,.8); }
.info-contact .text-link { color: var(--lime); }
@media (hover: hover) and (pointer: fine) {
  .info-item summary:hover .info-title { color: var(--forest-2); }
}
@media (max-width: 660px) {
  .info-item summary { padding: 1rem 1.1rem; gap: .8rem; }
  .info-body { padding: 0 1.1rem 1.2rem; }
  .info-contact { padding: 1.5rem; }
}
