/* TiB 1848 e.V. -- Abteilung Tennis
   Basis-Stylesheet */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #EFEDE6;
  color: #262319;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif;
}
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
a { color: inherit; }

header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px clamp(20px,5vw,64px);
    background: #EFEDE6;
    position: relative; z-index: 3;
  }

.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 700;
  letter-spacing: -0.005em; font-size: 14px; line-height: 1.25; color: #262319;
}
@media (min-width: 560px) { .brand { font-size: 16px; } }
@media (min-width: 900px) { .brand { font-size: 17px; } }

.brand-logo { height: 80px; width: auto; flex-shrink: 0; margin-bottom: -40px; position: relative; }

nav { display: none; gap: 30px; font-size: 15px; align-items: center; }

@media (min-width: 900px) { nav { display: flex; } }

nav a {
  text-decoration: none; color: #4a4536;
  font-weight: 700; letter-spacing: -0.005em;
  padding-bottom: 4px; border-bottom: 2px solid transparent;
}

nav a:hover, nav a[aria-current="page"] { color: #DC0F14; border-bottom-color: #DC0F14; }

nav a.nav-cta {
  color: #fff; background: #DC0F14; padding: 8px 18px; border-radius: 999px;
  border-bottom: none;
}
nav a.nav-cta:hover { color: #fff; background: #b80d10; }

/* Mobile-Navigation -- reines CSS, keine JS-Abhaengigkeit (Checkbox-Trick) */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

.nav-toggle-label {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; cursor: pointer;
}
@media (min-width: 900px) { .nav-toggle-label { display: none; } }

.nav-toggle-label span,
.nav-toggle-label::before,
.nav-toggle-label::after {
  content: ""; display: block; width: 22px; height: 2px; background: #262319;
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-label::before { position: absolute; transform: translateY(-7px); }
.nav-toggle-label::after { position: absolute; transform: translateY(7px); }
.nav-toggle-input:checked ~ header .nav-toggle-label::before,
.nav-toggle-input:checked + .nav-toggle-label::before { transform: rotate(45deg); }
.nav-toggle-input:checked + .nav-toggle-label::after { transform: rotate(-45deg); }
.nav-toggle-input:checked + .nav-toggle-label span { opacity: 0; }

.nav-mobile {
  display: none; flex-direction: column; gap: 2px;
  padding: 4px clamp(20px,5vw,64px) 18px; background: #EFEDE6;
  border-bottom: 1px solid rgba(38,35,25,0.08);
}
@media (min-width: 900px) { .nav-mobile { display: none !important; } }
.nav-toggle-input:checked ~ .nav-mobile { display: flex; }
.nav-mobile a {
  text-decoration: none; color: #4a4536; padding: 12px 4px; font-size: 16.5px; font-weight: 700;
  letter-spacing: -0.005em;
  border-top: 1px solid rgba(38,35,25,0.08);
}
.nav-mobile a[aria-current="page"] { color: #DC0F14; }
.nav-mobile a.nav-cta {
  color: #fff; background: #DC0F14; border-radius: 12px; text-align: center;
  border-top: none; margin-top: 6px;
}

.hero-media { position: relative; }

.hero-image {
  width: 100%; height: 46vh; min-height: 300px; max-height: 480px;
  object-fit: cover; display: block;
}

.hero-text {
  background: #F3ECE3; color: #262319;
  padding: 40px clamp(20px, 5vw, 64px) 48px;
}

.hero-inner { max-width: 720px; }

.eyebrow-dark {
    font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
    color: #DC0F14; margin: 0 0 16px; font-weight: 700;
  }

.hero-text h1 {
    font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.02em;
    font-size: clamp(34px, 5.6vw, 58px); color: #262319;
    line-height: 1.02; margin: 0 0 20px; text-wrap: balance;
  }

.hero-text h1 em { font-style: italic; color: #DC0F14; }

.hero-rule { width: 70px; height: 3px; background: #DC0F14; margin: 0 0 20px; }

.hero-text .lede {
    font-size: 16.5px; line-height: 1.6; color: #4a4536;
    max-width: 46ch; margin: 0;
  }

.stats {
    display: grid; grid-template-columns: repeat(2,1fr); gap: 1px;
    background-color: #61C183;
  }

@media (min-width: 760px) { .stats { grid-template-columns: repeat(4,1fr); } }

.stat { background: #61C183; padding: 22px; }

.stat .n { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: clamp(28px,3.6vw,38px); color: #fff; font-variant-numeric: tabular-nums; }

.stat .l { font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.8); margin-top: 6px; }

.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; padding: 0 20px; }

.section-head .kicker {
    display: inline-block; font-size: 12.5px; font-weight: 700; color: #2F4A3C;
    background: rgba(47,74,60,0.1); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
  }

.section-head h2 { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.015em; font-size: clamp(26px,3.4vw,36px); margin: 0; text-wrap: balance; }

.map-section { padding: 88px clamp(20px,5vw,64px) 0; max-width: 1180px; margin: 0 auto; }
.map-embed-full { width: 100%; height: 380px; border: 0; border-radius: 18px; box-shadow: 0 10px 26px rgba(38,35,25,0.08); display: block; }
.map-caption { text-align: center; margin: 16px 0 0; font-size: 14px; color: #6b6551; }
.map-caption a { color: #DC0F14; font-weight: 600; }

.cards {
    padding: 88px clamp(20px,5vw,64px) 80px; max-width: 1180px; margin: 0 auto;
    display: grid; gap: 28px;
  }

@media (min-width: 860px) { .cards { grid-template-columns: repeat(3,1fr); } }

.story-card { background: #fff; border-radius: 18px; box-shadow: 0 10px 26px rgba(38,35,25,0.08); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: transform .2s ease, box-shadow .2s ease; }

.story-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(38,35,25,0.14); }

.story-card img { width: 100%; height: 200px; object-fit: cover; }

.story-card .body { padding: 22px 24px 26px; }

.story-card h3 { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: 20px; margin: 0 0 10px; }

.story-card p { font-size: 14.5px; line-height: 1.6; color: #514c3c; margin: 0 0 14px; }

.story-card .more { font-size: 13px; font-weight: 700; color: #DC0F14; }

.quote-band {
    background: #61C183; color: #262319; padding: 74px clamp(20px,5vw,64px);
    text-align: center;
  }

.quote-band blockquote {
    margin: 0 auto; max-width: 700px; font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-style: italic; font-weight: 400;
    font-size: clamp(21px,3vw,30px); line-height: 1.45; letter-spacing: -0.005em; text-wrap: balance;
  }

.quote-band .quote-rule { width: 50px; height: 3px; background: #fff; margin: 26px auto 16px; opacity: 0.8; }

.quote-band cite { display: block; margin-top: 0; font-style: normal; font-size: 13px; opacity: .7; }

footer {
    padding: 30px clamp(20px,5vw,64px); font-size: 13px; color: #6b6551;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
    border-top: 1px solid rgba(38,35,25,0.1);
  }

.jubilee-badge {
    position: absolute; right: clamp(16px, 4vw, 40px); top: 22px; z-index: 3;
    transform: rotate(-6deg);
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
  }

.jubilee-badge svg { display: block; width: 96px; height: 96px; }

@media (min-width: 760px) { .jubilee-badge svg { width: 122px; height: 122px; } }

.news { padding: 90px clamp(20px,5vw,64px) 10px; max-width: 1180px; margin: 0 auto; }

.news-tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px; background: #DC0F14; color: #fff;
  }

.news-tag.alt { background: #E4EDD6; color: #2F4A3C; }

.news-layout { display: grid; gap: 22px; }

@media (min-width: 860px) { .news-layout { grid-template-columns: 1.3fr 1fr; align-items: stretch; } }

.news-featured {
    position: relative; display: block; border-radius: 18px; overflow: hidden; text-decoration: none; color: inherit;
    min-height: 340px;
  }

.news-featured img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; position: absolute; inset: 0; }

.news-featured-overlay {
    position: relative; z-index: 1; height: 100%; min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px; background: linear-gradient(0deg, rgba(180,15,20,0.92) 8%, rgba(180,15,20,0.4) 55%, rgba(180,15,20,0.02) 88%);
    color: #fff;
  }

.news-featured-overlay time { display: block; font-size: 12.5px; color: rgba(243,236,227,0.7); margin: 10px 0 8px; }

.news-featured-overlay h3 { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: 24px; margin: 0 0 10px; }

.news-featured-overlay p { font-size: 14.5px; line-height: 1.55; color: rgba(243,236,227,0.88); max-width: 40ch; margin: 0; }

.news-list { display: flex; flex-direction: column; }

.news-row {
    display: block; text-decoration: none; color: inherit; padding: 20px 4px; border-top: 1px solid rgba(38,35,25,0.1);
  }

.news-list .news-row:last-child { border-bottom: 1px solid rgba(38,35,25,0.1); }

.news-row time { display: inline-block; font-size: 12.5px; color: #8a8468; margin-left: 8px; }

.news-row h4 { font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.01em; font-size: 16.5px; margin: 10px 0 6px; }

.news-row p { font-size: 13.5px; line-height: 1.55; color: #514c3c; margin: 0; }

.news-row:hover h4 { color: #DC0F14; }

.gallery { padding: 90px 0 90px; }

.gallery .section-head { padding: 0 clamp(20px,5vw,64px); }

.gallery-scroll {
    display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 10px clamp(20px,5vw,64px) 22px; -webkit-overflow-scrolling: touch;
  }

.gallery-scroll::-webkit-scrollbar { height: 8px; }

.gallery-scroll::-webkit-scrollbar-thumb { background: rgba(38,35,25,0.2); border-radius: 999px; }

.gallery-photo {
    flex: 0 0 220px; scroll-snap-align: start; background: #fff; padding: 10px 10px 30px;
    box-shadow: 0 12px 26px rgba(38,35,25,0.14); margin: 0;
  }

.gallery-photo:nth-child(odd) { transform: rotate(-2deg); }

.gallery-photo:nth-child(even) { transform: rotate(2deg); }

.gallery-photo img { width: 100%; height: 220px; object-fit: cover; border-radius: 3px; display: block; }

.gallery-photo figcaption { font-size: 13px; text-align: center; margin-top: 10px; color: #4a4536; font-style: italic; }

/* Unterseiten -- Seitenkopf + Bild + Textinhalt */
.page-header {
  padding: 28px clamp(20px,5vw,64px) 20px; background: #61C183; color: #fff;
}
.page-header .kicker {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); margin-bottom: 12px;
}
.page-header h1 {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(30px,4.6vw,46px); margin: 0; text-wrap: balance;
}
.page-hero-image {
  width: 100%; height: 300px; object-fit: cover; display: block;
}
.content { max-width: 760px; margin: 0 auto; padding: 56px clamp(20px,5vw,64px) 90px; }
.content h2 {
  font-family: -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 800; letter-spacing: -0.015em;
  font-size: 26px; margin: 40px 0 16px;
}
.content h2:first-child { margin-top: 0; }
.content p { font-size: 16px; line-height: 1.7; color: #3a3527; margin: 0 0 18px; }
.content ul { font-size: 16px; line-height: 1.7; color: #3a3527; padding-left: 22px; margin: 0 0 18px; }
.content li { margin-bottom: 6px; }
.content a { color: #DC0F14; font-weight: 600; }
.content h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 24px 0 10px; }
.content .table-scroll { overflow-x: auto; margin: 0 0 20px; border-radius: 10px; border: 1px solid rgba(38,35,25,0.1); }
.content table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
.content th, .content td { padding: 8px 10px; text-align: center; border-bottom: 1px solid rgba(38,35,25,0.08); font-variant-numeric: tabular-nums; }
.content th { background: #EFEDE6; font-weight: 700; }
.content td:first-child, .content th:first-child { text-align: left; font-weight: 600; }
.content .map-embed { width: 100%; height: 320px; border: 0; border-radius: 12px; margin: 0 0 20px; }
.content .note { background: #FBEFEA; border-left: 4px solid #DC0F14; padding: 14px 18px; border-radius: 6px; font-size: 15px; margin: 0 0 20px; }
.content .btn-ebusy {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: #DC0F14; color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 999px; margin: 4px 0 22px;
  box-shadow: 0 8px 20px rgba(220,15,20,0.30); transition: transform .15s ease, box-shadow .15s ease;
}
.content .btn-ebusy:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(220,15,20,0.4); }
.content .contact-card { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 8px 20px rgba(38,35,25,0.06); margin: 0 0 16px; }
.content .contact-card strong { display: block; font-size: 16px; margin-bottom: 4px; }
.content .contact-card .role { color: #6b6551; font-size: 13.5px; margin-bottom: 8px; display: block; }
.content .contact-card .badge-wanted { display: inline-block; margin-top: 10px; background: #DC0F14; color: #fff; font-weight: 700; font-size: 12px; letter-spacing: 0.02em; padding: 5px 12px; border-radius: 20px; }
.content blockquote {
  margin: 0 0 20px; padding: 18px 22px; background: #FBEFEA; border-left: 4px solid #DC0F14;
  border-radius: 6px; font-style: italic; font-size: 16px; line-height: 1.6; color: #3a3527;
}
.content blockquote cite { display: block; margin-top: 10px; font-style: normal; font-size: 13.5px; color: #6b6551; }
.content .trainer-block { display: flex; gap: 20px; align-items: stretch; margin: 0 0 8px; }
.content .trainer-block .contact-card { flex: 1; min-width: 0; margin: 0; }
.content .trainer-photo { width: 130px; height: auto; min-height: 100%; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 20px rgba(38,35,25,0.12); flex-shrink: 0; }
.content ul.qual-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 0; margin: 0 0 14px; }
.content ul.qual-list li { background: #FBEFEA; color: #A81810; font-weight: 700; font-size: 13px; line-height: 1.3; padding: 6px 12px; border-radius: 20px; margin: 0; border: 1px solid rgba(220,15,20,0.18); }
@media (max-width: 560px) {
  .content .trainer-block { flex-direction: column; }
  .content .trainer-photo { width: 140px; height: 176px; }
}