/* JF Tennis - Website Redesign */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --green: #2884d0;
  --green-light: #4aa3e0;
  --green-lighter: #e9f3fb;
  --blue-dark: #0f2436;
  --blue-darker: #091722;
  --white: #ffffff;
  --off-white: #f6f8f7;
  --text: #1a2420;
  --text-light: #5b6b64;
  --border: #e1e8e4;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(9, 23, 34, 0.1);
  --shadow-sm: 0 4px 12px rgba(9, 23, 34, 0.08);
  --container-width: 1160px;
  --header-h: 84px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
  color: var(--blue-dark);
  line-height: 1.25;
}

/* Long German compound words (e.g. "Wettkampfvorbereitung") can overflow
   on narrow screens; EN/HR headlines wrap fine at word spaces already. */
html[lang="de"] h1,
html[lang="de"] h2,
html[lang="de"] h3,
html[lang="de"] h4 {
  overflow-wrap: break-word;
  hyphens: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 14px;
}

.section-lead {
  color: var(--text-light);
  max-width: 640px;
  margin-bottom: 40px;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-light); box-shadow: var(--shadow); }

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

/* Top bar (language switcher) */
.top-bar {
  background: var(--blue-darker);
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.top-bar a { color: rgba(255,255,255,0.75); }
.top-bar a:hover { color: var(--white); }
.top-bar-contact { font-weight: 600; margin-right: auto; }
.lang-switcher { display: flex; gap: 10px; }
.lang-switcher a { padding: 2px 3px; font-weight: 700; letter-spacing: 0.02em; }
.lang-switcher a.lang-active { color: var(--white); border-bottom: 2px solid var(--green-light); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 36, 54, 0.97);
  backdrop-filter: blur(6px);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 16px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}
.logo img { height: 44px; width: auto; display: block; }

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 8px 2px;
  position: relative;
}

.main-nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--green-light);
  transition: width 0.2s ease;
}
.main-nav > ul > li > a:hover::after,
.main-nav > ul > li.active > a::after {
  width: 100%;
}

.has-dropdown { position: relative; }
.has-dropdown > a::before {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  vertical-align: middle;
  transform: translateY(-1px);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.18s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.92rem;
}
.dropdown li a:hover { background: var(--green-lighter); color: var(--green); }

.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,23,34,0.55) 0%, rgba(9,23,34,0.75) 100%);
  z-index: -1;
}
.hero-inner { max-width: 680px; padding-top: 100px; padding-bottom: 100px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 20px;
}
.hero-quote {
  font-size: 1.15rem;
  font-style: italic;
  border-left: 3px solid var(--green-light);
  padding-left: 18px;
  margin: 24px 0 34px;
  color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero {
  min-height: 340px;
}
.page-hero .hero-inner { padding-top: 70px; padding-bottom: 70px; }

/* Locations */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.location-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}
.location-card .map-embed { position: relative; height: 260px; background: var(--border); }
.location-card .map-embed iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.location-card-body { padding: 26px 28px; }
.location-card-body h3 { font-size: 1.25rem; margin-bottom: 10px; color: var(--green); }
.location-card-body p { color: var(--text-light); }

.map-embed-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
  background: rgba(15, 36, 54, 0);
  transition: background 0.2s ease;
}
.map-embed-overlay:hover { background: rgba(15, 36, 54, 0.1); }

.map-open-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--green);
}
.map-open-link svg { width: 15px; height: 15px; fill: currentColor; }
.map-open-link:hover { text-decoration: underline; }

/* About / portrait */
.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
}
.about-split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-split h3 { font-size: 1.5rem; margin-bottom: 6px; }
.about-split .role { color: var(--green); font-weight: 600; margin-bottom: 18px; }

/* Bullet list with check icons */
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: -1px;
  width: 22px; height: 22px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Photo grid */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.photo-grid figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 3/4;
}
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.photo-grid figure:hover img { transform: scale(1.06); }

.photo-grid-landscape { grid-template-columns: repeat(2, 1fr); }
.photo-grid-landscape figure { aspect-ratio: 3/2; }

.photo-grid-duo { grid-template-columns: repeat(2, 1fr); }
.photo-grid-duo figure { aspect-ratio: 800/711; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 6px; }
.price-card .price-note { color: var(--text-light); font-size: 0.9rem; margin-bottom: 18px; }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.price-row:first-of-type { border-top: none; }
.price-row .amount { font-weight: 700; color: var(--green); font-size: 1.15rem; text-align: right; }
.price-card .fine-print { margin-top: 16px; font-size: 0.85rem; color: var(--text-light); }

.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.offer-tags span {
  background: var(--green-lighter);
  color: var(--green);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Feature grid (turnierbetreuung) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--green); }
.feature-card p { color: var(--text-light); font-size: 0.94rem; }

/* Contact / form */
.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--blue-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 38px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 6px; }
.contact-info-card .role { color: #9ecdf0; font-weight: 600; margin-bottom: 24px; }
.contact-info-card a { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--white); font-weight: 500; }
.contact-info-card .icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.96rem;
  background: var(--off-white);
  transition: border-color 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--green);
  background: var(--white);
}
.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 22px;
}
.form-consent input { margin-top: 4px; }

.form-message {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 0.92rem;
}
.form-message.visible { display: block; }
.form-message.success { background: var(--green-lighter); color: var(--green); }
.form-message.error { background: #fdecea; color: #b3261e; }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-whatsapp {
  background: #1da851;
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: #178c43; box-shadow: var(--shadow); }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer {
  background: var(--blue-darker);
  color: rgba(255,255,255,0.85);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.footer-col h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.92rem; margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: var(--green-light); }
.footer-map {
  position: relative;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 14px;
}
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3); display: block; pointer-events: none; }

.footer-col .map-open-link { color: rgba(255,255,255,0.85); }
.footer-col .map-open-link:hover { color: var(--white); text-decoration: underline; }
.footer-logo img { height: 40px; margin-bottom: 14px; filter: brightness(0) invert(1); opacity: 0.9; }

.footer-col-center { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.footer-logo-box {
  background: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: inline-flex;
}
.footer-logo-img { height: 42px; display: block; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { font-weight: 600; color: var(--white); }
.footer-contact a:hover { color: var(--green-light); }

.social-links { display: flex; gap: 14px; margin-top: 22px; }
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.social-icon svg { width: 20px; height: 20px; fill: currentColor; }
.social-icon:hover { background: var(--green); transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .legal a { margin-right: 10px; color: rgba(255,255,255,0.55); }
.footer-bottom .legal a:hover { color: var(--white); text-decoration: underline; }

/* Back to top */
.back-to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--blue-dark);
  color: var(--white);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  z-index: 1200;
  transform: translateY(140%);
  transition: transform 0.3s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p { font-size: 0.86rem; color: rgba(255,255,255,0.85); flex: 1; min-width: 220px; }

/* Legal pages (Datenschutz, AGB, Impressum) */
.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h1 { margin-bottom: 28px; }
.legal-content h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--green);
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { margin-bottom: 14px; color: var(--text); }
.legal-content ul { margin: 0 0 14px 0; padding-left: 22px; list-style: disc; }
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-content .legal-table-wrap { overflow-x: auto; margin-bottom: 20px; }
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 480px;
}
.legal-content th, .legal-content td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--border);
}
.legal-content th { background: var(--green-lighter); color: var(--blue-dark); }

/* Responsive */
@media (max-width: 980px) {
  .locations-grid,
  .contact-layout,
  .about-split,
  .pricing-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--blue-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 20px;
  }
  .main-nav li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav a { display: block; padding: 14px 4px; }
  .has-dropdown > a::before { float: right; margin-top: 8px; }
  .dropdown {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    display: none;
    box-shadow: none;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    margin: 4px 0 8px;
  }
  .dropdown li a {
    color: rgba(255,255,255,0.85);
  }
  .dropdown li a:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
  }
  .has-dropdown.open .dropdown { display: block; }
  .nav-cta { display: none; }
  .feature-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .price-row-stack { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 0; }
  .price-row-stack .amount { text-align: left; }
}
