/* ==========================================================================
   Tennis Offenau – Design System
   Palette drawn from the club's own crest: court blue, clay terracotta,
   ball yellow-green. Condensed display type reads like stadium signage;
   a grounded grotesk carries the running text.
   ========================================================================== */

:root {
  /* Farben – aus dem Vereinslogo abgeleitet */
  --color-green-900: #04213f;   /* tiefes Platzblau (dunkle Flächen) */
  --color-green-800: #0a3868;
  --color-green-700: #0058a5;   /* Logo-Blau */
  --color-green-100: #e7eef8;

  --color-clay-600: #a84b23;    /* Sandplatz-Terrakotta, kräftiger */
  --color-clay-500: #c2602f;
  --color-clay-100: #f5e3d8;

  --color-ball-600: #777600;    /* Ball-Gelbgrün, für Text/Icons */
  --color-ball-200: #eef0a8;    /* Ball-Gelbgrün, als helle Fläche */

  --color-status-green: #1d9a5c; /* Status "verfügbar/buchbar" */

  --color-cream: #f5f7fa;
  --color-white: #ffffff;
  --color-ink: #141b26;
  --color-ink-soft: #4b5667;
  --color-border: #dde3ea;

  --font-heading: "Archivo", "Arial", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

  --shadow-card: 0 8px 24px rgba(4, 33, 63, 0.08);
  --shadow-card-hover: 0 14px 34px rgba(4, 33, 63, 0.14);

  --container-width: 1160px;
}

/* ---------- Reset & Basics ---------- */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--color-green-900);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 8vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  overflow-wrap: break-word;
  hyphens: none;
}

h2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-clay-600);
  border-bottom: 3px solid var(--color-clay-500);
  padding-bottom: 5px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-s);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--color-clay-500);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-clay-600);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(168, 75, 35, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  border-color: var(--color-green-800);
  color: var(--color-green-800);
}

.btn-outline-dark:hover {
  background: var(--color-green-800);
  color: var(--color-white);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: rgba(245, 247, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-green-900);
}

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}

.footer-brand .brand-logo { height: 52px; }

.brand-subtitle {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--color-ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-clay-600);
  border-color: var(--color-clay-500);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--color-green-900);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-green-900), var(--color-green-700) 75%);
  color: var(--color-white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 85% 15%, rgba(194, 96, 47, 0.3), transparent 45%),
    radial-gradient(circle at 8% 95%, rgba(255, 255, 255, 0.07), transparent 40%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding-block: 96px 110px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-inner > * { min-width: 0; }

.hero h1 { color: var(--color-white); }

.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: nowrap;
  font-variant-numeric: tabular-nums;
}

.hero-stat { min-width: 0; }

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--color-white);
}

.hero-stat span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.65);
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 200 / 433;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius-m);
  background-color: var(--color-clay-500);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="433" viewBox="0 0 200 433"><g fill="none" stroke="white" stroke-opacity="0.92" stroke-linecap="square"><rect x="10" y="10" width="180" height="413" stroke-width="3"/><rect x="32" y="10" width="136" height="413" stroke-width="2.5"/><line x1="10" y1="216.5" x2="190" y2="216.5" stroke-width="4.5"/><line x1="32" y1="105.5" x2="168" y2="105.5" stroke-width="2.5"/><line x1="32" y1="327.5" x2="168" y2="327.5" stroke-width="2.5"/><line x1="100" y1="105.5" x2="100" y2="216.5" stroke-width="2.5"/><line x1="100" y1="216.5" x2="100" y2="327.5" stroke-width="2.5"/><line x1="100" y1="4" x2="100" y2="16" stroke-width="3"/><line x1="100" y1="417" x2="100" y2="429" stroke-width="3"/></g></svg>');
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-card-hover);
}

.hero-visual-card {
  position: absolute;
  left: -20px;
  bottom: -22px;
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: var(--radius-m);
  padding: 16px 20px;
  box-shadow: var(--shadow-card-hover);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 240px;
}

.hero-visual-card .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-status-green);
  flex-shrink: 0;
}

.hero-visual-card strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-visual-card span {
  font-size: 0.82rem;
  color: var(--color-ink-soft);
}

/* ---------- Sections ---------- */
section {
  padding-block: 88px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

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

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}

.grid > * { min-width: 0; }

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--color-white);
  border-radius: var(--radius-m);
  border-top: 3px solid var(--color-green-700);
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  min-width: 0;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-s);
  background: var(--color-green-100);
  color: var(--color-green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon svg { width: 26px; height: 26px; }

/* ---------- News list ---------- */
.news-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 24px;
  padding-block: 28px;
  border-bottom: 1px solid var(--color-border);
}

.news-item > * { min-width: 0; }

.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: none; }

.news-date {
  font-family: var(--font-heading);
  font-variant-numeric: tabular-nums;
  background: var(--color-green-100);
  color: var(--color-green-800);
  border-radius: var(--radius-s);
  text-align: center;
  padding: 10px 4px;
  height: fit-content;
}

.news-date .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1; }
.news-date .month { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }

.tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-clay-600);
  background: var(--color-clay-100);
  padding: 4px 10px;
  border-radius: var(--radius-s);
  margin-bottom: 10px;
}

/* ---------- Team / Vorstand ---------- */
.person-card {
  text-align: center;
}

.person-photo {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--color-green-100);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-800);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
}

.person-role {
  font-family: var(--font-heading);
  color: var(--color-clay-600);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 3px solid var(--color-green-100);
}

.timeline-item {
  position: relative;
  padding-bottom: 36px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-clay-500);
  border: 3px solid var(--color-cream);
}

.timeline-year {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-green-800);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.form-field {
  margin-bottom: 20px;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-s);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-clay-500);
  box-shadow: 0 0 0 3px var(--color-clay-100);
}

.contact-info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-green-100);
  color: var(--color-green-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.map-embed {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  aspect-ratio: 16/10;
}

.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Price table ---------- */
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--color-border);
}

.price-row:last-child { border-bottom: none; }

.price-row .label { font-size: 0.92rem; color: var(--color-ink-soft); }

.price-row .value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-green-800);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- Hallen-CTA band (groß, Startseite) ---------- */
.hall-cta {
  background: var(--color-clay-500);
  background-image: radial-gradient(circle at 90% 10%, rgba(255,255,255,0.18), transparent 45%);
  color: var(--color-white);
  border-radius: var(--radius-l);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.hall-cta .eyebrow { color: var(--color-ball-200); border-color: var(--color-ball-200); }

.hall-cta h2 {
  color: var(--color-white);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  margin-bottom: 8px;
}

.hall-cta p { color: rgba(255,255,255,0.88); max-width: 46ch; margin: 0; }

.hall-cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-clay-500);
  color: var(--color-white);
  border-radius: var(--radius-l);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--color-white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-green-900);
  color: rgba(255, 255, 255, 0.75);
  padding-block: 64px max(28px, env(safe-area-inset-bottom, 0px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  font-family: var(--font-heading);
  color: var(--color-white);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li { margin-bottom: 10px; }

.footer-grid a:hover { color: var(--color-white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- Page header (Unterseiten) ---------- */
.page-header {
  background: var(--color-green-900);
  color: var(--color-white);
  padding-block: 64px 72px;
}

.page-header .eyebrow { color: var(--color-ball-200); border-color: var(--color-ball-200); }
.page-header h1 { color: var(--color-white); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.8); max-width: 60ch; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.breadcrumb a:hover { color: var(--color-white); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 72px; }
  .hero-visual { order: -1; max-width: 280px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .news-layout { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }

  .hero-visual { display: none; }
  .hero-inner { padding-block: 36px 56px; }

  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px max(24px, env(safe-area-inset-right, 0px)) 28px max(24px, env(safe-area-inset-left, 0px));
    gap: 18px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
  }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .cta-band .btn { width: 100%; text-align: center; justify-content: center; }
  .hall-cta { flex-direction: column; align-items: stretch; padding: 32px 24px; }
  .hall-cta-actions { flex-direction: column; }
  .hall-cta-actions .btn { text-align: center; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
  .hero-stats { gap: 16px; }
  .hero-stat strong { font-size: 1.5rem; }
  .hero-stat span { font-size: 0.7rem; }
  .news-layout { grid-template-columns: 1fr !important; }
  .news-item { grid-template-columns: 64px 1fr; }
  section { padding-block: 64px; }
}
