:root {
  --clay: #C85A2C;
  --clay-dark: #9e4220;
  --clay-light: #e8a07a;
  --green: #2D5016;
  --green-mid: #3d6b1f;
  --sky: #29B5D8;
  --dark: #1a1a1a;
  --dark-mid: #2a2a2a;
  --text: #222;
  --text-light: #555;
  --bg: #f9f7f4;
  --white: #fff;
  --border: #e0d9d0;
  --radius: 6px;
  --shadow: 0 2px 16px rgba(0,0,0,0.12);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(26,26,26,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--clay);
  height: 64px; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
nav .logo img { height: 38px; border-radius: 4px; }
nav .logo span { color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: 0.3px; white-space: nowrap; }

/* Desktop menu */
.nav-menu { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block; padding: 8px 12px;
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; border-radius: 4px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li > a.active { color: var(--clay-light); }
.nav-menu > li > ul {
  display: none; position: absolute; top: calc(100% + 2px); left: 0;
  background: #222; border: 1px solid #333; border-radius: var(--radius);
  min-width: 190px; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  list-style: none;
}
.nav-menu > li:hover > ul { display: block; }
.nav-menu > li > ul > li > a {
  display: block; padding: 10px 16px;
  color: rgba(255,255,255,0.75); text-decoration: none; font-size: 0.86rem;
  transition: background 0.15s, color 0.15s;
}
.nav-menu > li > ul > li > a:hover { background: rgba(200,90,44,0.18); color: var(--clay-light); }
.nav-book {
  background: var(--clay) !important; color: var(--white) !important;
  padding: 8px 16px !important; border-radius: var(--radius); font-weight: 600 !important;
}
.nav-book:hover { background: var(--clay-dark) !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; border: none; background: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  height: calc(100vh - 64px);
  background: #1a1a1a; overflow-y: auto; z-index: 999;
  flex-direction: column; padding: 1rem 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 24px;
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1rem;
  border-bottom: 1px solid #2a2a2a; transition: background 0.15s;
}
.mobile-menu a:hover { background: rgba(200,90,44,0.15); }
.mobile-menu .mob-section { padding: 12px 24px 4px; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--clay-light); font-weight: 700; }
.mobile-menu .mob-book { background: var(--clay); color: var(--white) !important; margin: 1rem 1.5rem; border-radius: var(--radius); text-align: center; font-weight: 600; border: none !important; }

/* ── HERO ── */
.hero {
  height: 100vh; min-height: 500px;
  position: relative; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('images/post2_2.jpg');
  background-size: cover; background-position: center;
  filter: brightness(0.52);
  transform: scale(1.03);
}
.hero-content { position: relative; z-index: 1; padding: 0 1.5rem; max-width: 820px; width: 100%; }
.hero-content h1 {
  font-size: clamp(2rem, 5.5vw, 4.2rem);
  font-weight: 800; color: var(--white); line-height: 1.1;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6); letter-spacing: -0.5px;
}
.hero-content h1 span { color: var(--clay-light); }
.hero-content p {
  margin-top: 1.2rem; font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255,255,255,0.87); text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}
.hero-actions { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 26px; border-radius: var(--radius);
  font-size: 0.95rem; font-weight: 600; text-decoration: none; border: none; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-primary { background: var(--clay); color: var(--white) !important; }
.btn-primary:hover { background: var(--clay-dark); color: var(--white) !important; }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.65); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--green); color: var(--white);
  display: flex; justify-content: center; flex-wrap: wrap;
}
.stat { padding: 1.1rem 2rem; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); flex: 0 0 auto; }
.stat:last-child { border-right: none; }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--clay-light); display: block; }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 130px 1.5rem 56px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--green) 100%);
  text-align: center; color: var(--white);
}
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.page-header p { margin-top: 0.5rem; color: rgba(255,255,255,0.72); font-size: 1.05rem; }

/* ── LAYOUT ── */
section { padding: 72px 1.5rem; }
section.alt { background: var(--white); }
.container { max-width: 1200px; margin: 0 auto; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 800; color: var(--dark);
  position: relative; display: inline-block;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 44px; height: 3px; background: var(--clay); border-radius: 2px;
}
.section-title p { margin-top: 1.2rem; color: var(--text-light); font-size: 1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ── COURTS GRID ── */
.courts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.5rem; }
.court-card {
  background: var(--white); border-radius: 10px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--border); transition: transform 0.2s;
}
.court-card:hover { transform: translateY(-4px); }
.court-card img { width: 100%; height: 190px; object-fit: cover; }
.court-card-body { padding: 1.1rem 1.2rem; }
.court-card-body h3 { font-size: 1rem; font-weight: 700; color: var(--dark); }
.court-card-body p { margin-top: 0.3rem; font-size: 0.88rem; color: var(--text-light); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; margin-top: 0.7rem; }
.badge-clay { background: rgba(200,90,44,0.1); color: var(--clay); }
.badge-beach { background: rgba(41,181,216,0.1); color: #1a8fa8; }

/* ── TEAM / MEISTER ── */
.team-section {
  background: var(--dark);
  background-image: url('images/post1_7.jpg');
  background-size: cover; background-position: center top;
  position: relative; color: var(--white);
}
.team-section::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(20,20,20,0.93) 0%, rgba(20,20,20,0.93) 45%, rgba(20,20,20,0.5) 100%);
}
.team-section .container { position: relative; z-index: 1; }
.team-content { max-width: 520px; }
.team-content h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; }
.badge-gold { display: inline-block; background: #d4a017; color: var(--dark); padding: 4px 14px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; margin-bottom: 1rem; }
.team-content p { color: rgba(255,255,255,0.8); margin-top: 0.8rem; font-size: 1rem; }
.team-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 1rem; margin-top: 2rem; }
.team-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; padding: 1.2rem; }
.team-card h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--clay-light); }
.team-card p { font-size: 0.95rem; font-weight: 600; margin-top: 0.25rem; }
.team-card small { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

/* ── BOOKING CTA ── */
.booking-cta {
  background-image: url('images/post2_1.jpg');
  background-size: cover; background-position: center;
  position: relative; text-align: center; color: var(--white);
}
.booking-cta::before { content: ''; position: absolute; inset: 0; background: rgba(35,65,15,0.82); }
.booking-cta .container { position: relative; z-index: 1; }
.booking-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.booking-cta p { margin-top: 0.8rem; font-size: 1rem; opacity: 0.88; }
.booking-cta .btn { margin-top: 1.8rem; font-size: 1.05rem; padding: 14px 36px; }

/* ── CONTENT CARDS ── */
.content-card {
  background: var(--white); border-radius: 10px;
  border: 1px solid var(--border); padding: 1.8rem;
  box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.content-card h2 { font-size: 1.3rem; font-weight: 700; color: var(--dark); margin-bottom: 1rem; border-bottom: 2px solid var(--clay); padding-bottom: 0.5rem; }
.content-card h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 1.2rem 0 0.4rem; }
.content-card p { margin-bottom: 0.6rem; color: var(--text-light); }
.content-card a { color: var(--clay); }
.content-card ul { margin: 0.5rem 0 1rem 1.4rem; color: var(--text-light); }
.content-card li { margin-bottom: 0.35rem; }

/* ── BOARD ── */
.board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.5rem; }
.board-card { background: var(--white); border-radius: 10px; border: 1px solid var(--border); padding: 1.4rem; box-shadow: var(--shadow); }
.board-card .role { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--clay); font-weight: 700; margin-bottom: 0.5rem; }
.board-card .name { font-size: 1.1rem; font-weight: 700; color: var(--dark); }
.board-card .address { margin-top: 0.7rem; font-size: 0.86rem; color: var(--text-light); line-height: 1.8; }
.board-card .tel { margin-top: 0.4rem; font-size: 0.86rem; color: var(--clay); font-weight: 600; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 0.8rem; }
.gallery-grid img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.gallery-grid img:hover { transform: scale(1.04); opacity: 0.88; }
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; background: none; border: none; }

/* ── TRAINING TABLE ── */
.training-table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; font-size: 0.9rem; }
.training-table th { background: var(--green); color: var(--white); padding: 10px 14px; text-align: left; }
.training-table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.training-table tr:nth-child(even) td { background: rgba(45,80,22,0.04); }

/* ── SATZUNG ── */
.satzung-content p { margin-bottom: 0.8rem; color: var(--text-light); font-size: 0.94rem; line-height: 1.7; }
.satzung-content b { color: var(--dark); font-weight: 700; }

/* ── FOOTER ── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 3rem 1.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 2rem; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 0.86rem; margin-bottom: 0.45rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--clay-light); }
.footer-col p { font-size: 0.86rem; line-height: 1.8; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); max-width: 1200px; margin-left: auto; margin-right: auto; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  nav { padding: 0 1.2rem; }
}

@media (max-width: 768px) {
  section { padding: 56px 1.2rem; }
  .two-col { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .stat { padding: 0.9rem 1.2rem; }
  .stat-num { font-size: 1.5rem; }
  .courts-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); }
  .gallery-grid img { height: 140px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
  .courts-grid { grid-template-columns: 1fr; }
  .board-grid { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr 1fr; }
  .stats-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
}
