:root {
  --primary: #c8102e;
  --primary-dark: #8e0b20;
  --ink: #15171d;
  --muted: #626976;
  --line: #e5e7eb;
  --panel: #ffffff;
  --soft: #f5f6f8;
  --green: #1f7a5c;
  --blue: #204f73;
  --shadow: 0 18px 48px rgba(21, 23, 29, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-weight: 800;
  letter-spacing: 0;
}

.logo-mark {
  overflow: hidden;
  padding: 3px;
  background: white;
}

.logo-mark img,
.brand-logo-img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.site-header .brand .logo-mark .brand-logo-img {
  width: 42px !important;
  height: 42px !important;
  max-width: 42px !important;
  max-height: 42px !important;
  object-fit: contain !important;
}

.brand-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-text strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 14px;
}

.brand-text small {
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.main-nav a {
  color: #3a404a;
  text-decoration: none;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--primary);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-button span {
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100svh - 72px);
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(16, 18, 23, 0.84) 0%, rgba(16, 18, 23, 0.64) 42%, rgba(16, 18, 23, 0.14) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: #ffffff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.club-title {
  max-width: 1100px;
  font-size: clamp(34px, 5.1vw, 66px);
}

.club-title span {
  display: inline-block;
  white-space: nowrap;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.hero-actions,
.member-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: white;
  background: var(--primary);
}

.button.secondary {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.stat {
  padding: 28px 18px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--primary);
  font-size: 34px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.section-heading p:not(.eyebrow),
.split-section > div > p {
  color: var(--muted);
  font-size: 17px;
}

.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.department-card,
.contact-card,
.membership-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(21, 23, 29, 0.06);
}

.department-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  min-height: 420px;
}

.department-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4f6, #eef7f4);
  box-shadow: inset 0 0 0 1px rgba(200, 16, 46, 0.08);
  font-size: 44px;
}

.department-card p,
.department-card li,
.contact-card p,
.legal-section p {
  color: var(--muted);
}

.department-card ul {
  margin: 18px 0 0;
  padding-left: 18px;
}

.department-card li {
  margin-top: 6px;
}

.department-times {
  display: grid;
  gap: 9px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid #e6ebf0;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.department-times strong {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.department-time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.department-times p,
.department-times small,
.department-times a {
  display: block;
  margin: 0;
  padding: 7px 9px;
  border-radius: 8px;
  color: #29313b;
  background: #f1f5f9;
  font-size: 13px;
}

.department-times p {
  width: fit-content;
  max-width: 100%;
}

.department-times p span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 22px;
  margin-right: 7px;
  border-radius: 6px;
  color: white;
  background: var(--primary);
  font-size: 11px;
  font-weight: 900;
}

.department-times small,
.department-times.muted p {
  color: var(--muted);
}

.department-times small {
  width: fit-content;
  background: transparent;
  padding: 0;
}

.department-times a {
  color: var(--primary);
  background: #fff4f6;
  font-weight: 800;
  text-decoration: none;
}

.department-times a:hover {
  color: white;
  background: var(--primary);
}

.training-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 42px clamp(18px, 5vw, 72px);
  color: white;
  background: linear-gradient(135deg, #15171d, #243b48);
}

.training-teaser h2 {
  margin-bottom: 8px;
}

.training-teaser p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.subpage-hero {
  padding: clamp(58px, 8vw, 96px) clamp(18px, 5vw, 72px);
  color: white;
  background:
    linear-gradient(90deg, rgba(21, 23, 29, 0.92), rgba(21, 23, 29, 0.72)),
    url("assets/hero-sportverein.png") center / cover;
}

.subpage-title {
  margin-bottom: 16px;
  font-size: clamp(42px, 7vw, 78px);
}

.subpage-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

.training-section {
  background: #f6f8f7;
}

.training-toolbar {
  position: sticky;
  top: 73px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -18px 0 28px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 26px rgba(21, 23, 29, 0.06);
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #d8dde5;
  border-radius: 8px;
  color: #3a404a;
  background: white;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  color: white;
  border-color: var(--primary);
  background: var(--primary);
}

.filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: var(--primary);
  background: #fff4f6;
  font-size: 12px;
  font-weight: 900;
}

.filter-button:hover .filter-count,
.filter-button.is-active .filter-count {
  color: var(--primary);
  background: white;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(260px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.day-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 260px;
}

.day-column h2 {
  position: sticky;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  font-size: 20px;
}

.day-column.is-today h2 {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.today-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--primary);
  background: white;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.training-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 20px rgba(21, 23, 29, 0.06);
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.training-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
}

.training-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.28);
  box-shadow: 0 16px 34px rgba(21, 23, 29, 0.11);
}

.training-card[hidden],
.day-column[hidden] {
  display: none;
}

.training-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.training-main::before {
  content: "";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  grid-row: 1 / 3;
  border: 1px solid rgba(200, 16, 46, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff4f6, #eef7f4);
  font-size: 28px;
  line-height: 1;
}

.sport-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.sport-name::before {
  content: none;
}

.training-card time {
  display: inline-flex;
  flex: 0 0 auto;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff4f6;
  font-size: 13px;
  font-weight: 900;
}

.training-type,
.training-hall {
  position: relative;
  z-index: 1;
  margin-left: 60px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.training-type {
  font-weight: 700;
}

.training-hall {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 7px 9px;
  border-radius: 8px;
  color: #29313b;
  background: #f1f5f9;
  font-weight: 400;
}

.training-hall::before {
  content: "⌖";
  color: var(--blue);
}

.training-hall a {
  color: inherit;
  text-decoration: none;
}

.training-hall a:hover {
  color: var(--primary);
}

.training-card[data-sport="Badminton"]::before,
.training-card[data-sport="Badminton"] .sport-name::before {
  background: #0f766e;
}

.training-card[data-sport="Badminton"] .training-main::before {
  content: "🏸";
}

.training-card[data-sport="Breitensport"]::before,
.training-card[data-sport="Breitensport"] .sport-name::before {
  background: #7c3aed;
}

.training-card[data-sport="Breitensport"] .training-main::before {
  content: "🤸";
}

.training-card[data-sport="Hallenfußball"]::before,
.training-card[data-sport="Hallenfußball"] .sport-name::before {
  background: #1f7a5c;
}

.training-card[data-sport="Hallenfußball"] .training-main::before {
  content: "⚽";
}

.training-card[data-sport="Ski-Lauftreff"]::before,
.training-card[data-sport="Ski-Lauftreff"] .sport-name::before {
  background: #204f73;
}

.training-card[data-sport="Ski-Lauftreff"] .training-main::before {
  content: "⛷️";
}

.training-card[data-sport="Tischtennis"]::before,
.training-card[data-sport="Tischtennis"] .sport-name::before {
  background: var(--primary);
}

.training-card[data-sport="Tischtennis"] .training-main::before {
  content: "🏓";
}

.training-card[data-sport="Volleyball"]::before,
.training-card[data-sport="Volleyball"] .sport-name::before {
  background: #eab308;
}

.training-card[data-sport="Volleyball"] .training-main::before {
  content: "🏐";
}

.training-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--muted);
  font-weight: 800;
}

.venues-section {
  background: white;
}

.venue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.venue-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(21, 23, 29, 0.06);
}

.venue-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.venue-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff4f6;
  font-size: 26px;
  font-weight: 900;
}

.venue-card h3 {
  margin-bottom: 8px;
}

.venue-card p {
  color: var(--muted);
}

.venue-note {
  padding: 10px 12px;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  background: #edf7f3;
  font-size: 14px;
}

.venue-card a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.venue-card:target {
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 18px 42px rgba(200, 16, 46, 0.14);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  background: #f7faf9;
  border-block: 1px solid #dce7e2;
}

.member-actions {
  align-items: stretch;
  margin-top: 28px;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: min(100%, 260px);
  padding: 16px;
  border: 1px solid #d7e2dd;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px rgba(31, 122, 92, 0.09);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 16, 46, 0.42);
  box-shadow: 0 16px 36px rgba(21, 23, 29, 0.12);
}

.primary-download {
  color: white;
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 16px 36px rgba(200, 16, 46, 0.22);
}

.mail-download {
  border-color: rgba(31, 122, 92, 0.34);
}

.mail-download .action-icon {
  color: white;
  background: var(--green);
}

.action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 8px;
  color: var(--primary);
  background: #fff4f6;
  font-size: 20px;
  font-weight: 900;
}

.primary-download .action-icon {
  color: var(--primary);
  background: white;
}

.download-card strong,
.download-card small {
  display: block;
}

.download-card strong {
  font-size: 14px;
  line-height: 1.2;
}

.download-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.primary-download small {
  color: rgba(255, 255, 255, 0.78);
}

.membership-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
}

.membership-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--green), var(--blue));
}

.membership-panel h3 {
  margin-bottom: 20px;
}

.membership-steps {
  display: grid;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.membership-steps li {
  position: relative;
  min-height: 54px;
  padding-left: 58px;
  counter-increment: steps;
}

.membership-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: white;
  background: var(--primary);
  font-weight: 900;
}

.membership-steps strong,
.membership-steps span {
  display: block;
}

.membership-steps span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.membership-button {
  width: 100%;
}

.contact-section {
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  min-height: 220px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(200, 16, 46, 0.32);
  box-shadow: 0 18px 42px rgba(21, 23, 29, 0.11);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 8px;
  color: var(--primary);
  background: #fff4f6;
  font-size: 30px;
  font-weight: 900;
}

.contact-label {
  margin-bottom: 4px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card h3 {
  margin-bottom: 8px;
}

.contact-card a,
.legal-section a {
  color: var(--primary);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(200, 16, 46, 0.08);
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.contact-link:hover {
  background: var(--primary);
  color: white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legal-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #d8dde5;
  background: #15171d;
}

.site-footer p {
  margin: 5px 0 0;
  color: #aab1bd;
}

@media (max-width: 920px) {
  .menu-button {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-radius: 6px;
  }

  .main-nav a:hover {
    background: var(--soft);
  }

  .brand-text strong {
    max-width: 52vw;
  }

  .department-grid,
  .contact-grid,
  .venue-grid,
  .split-section,
  .legal-section {
    grid-template-columns: 1fr 1fr;
  }

  .training-teaser {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 66px;
    padding-inline: 14px;
  }

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: calc(100svh - 66px);
    padding: 54px 18px;
  }

  .club-title {
    font-size: clamp(30px, 10vw, 42px);
  }

  .club-title span {
    display: block;
    white-space: normal;
  }

  .hero-overlay {
    background: linear-gradient(90deg, rgba(16, 18, 23, 0.88), rgba(16, 18, 23, 0.62));
  }

  .stats-band,
  .department-grid,
  .contact-grid,
  .venue-grid,
  .split-section,
  .legal-section,
  .form-row {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .site-footer {
    display: block;
  }
}
