/* ===========================================================
   Ball Heroes – Basis-Stylesheet
   Farben aus dem Logo: Navy-Blau, Orange/Gold, Weiß
   =========================================================== */

:root {
  --bh-blue: #3660d6;
  --bh-blue-dark: #1b3a8c;
  --bh-blue-light: #eef2fb;
  --bh-orange: #f5a93e;
  --bh-orange-dark: #e08e14;
  --bh-white: #ffffff;
  --bh-text: #222831;
  --bh-text-light: #5a6270;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(27, 58, 140, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  color: var(--bh-text);
  background: var(--bh-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", "Trebuchet MS", Verdana, sans-serif;
  color: var(--bh-blue-dark);
  line-height: 1.2;
  margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { color: var(--bh-text-light); }

a { color: var(--bh-blue); text-decoration: none; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--bh-orange);
  color: var(--bh-blue-dark);
  box-shadow: 0 8px 18px rgba(245, 169, 62, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(245, 169, 62, 0.55);
}

.btn-secondary {
  background: var(--bh-white);
  color: var(--bh-blue);
  border: 2px solid var(--bh-blue);
}

.btn-secondary:hover {
  background: var(--bh-blue);
  color: var(--bh-white);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bh-white);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1140px;
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link img {
  height: 58px;
  width: auto;
}

.logo-link .brand-text {
  display: none;
}

nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

nav.main-nav a {
  color: var(--bh-blue-dark);
  font-weight: 700;
  font-size: 0.98rem;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--bh-orange-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--bh-blue-dark);
  cursor: pointer;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bh-white);
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 20px;
  }
  nav.main-nav li { padding: 10px 0; border-bottom: 1px solid #eee; }
  .nav-toggle { display: block; }
  .header-cta .btn-primary { padding: 10px 18px; font-size: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bh-blue) 0%, var(--bh-blue-dark) 100%);
  color: var(--bh-white);
  overflow: hidden;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
}

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

.hero .eyebrow {
  display: inline-block;
  background: var(--bh-orange);
  color: var(--bh-blue-dark);
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.hero p.lead {
  color: #dbe3fa;
  font-size: 1.1rem;
  max-width: 480px;
}

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

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 380px;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.35));
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 40px;
  }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Sections ---------- */
section {
  padding: 70px 0;
}

section.alt {
  background: var(--bh-blue-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-header .eyebrow-line {
  color: var(--bh-orange-dark);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

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

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

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bh-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 26px;
}

.card .icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bh-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.card .icon-circle.icon-circle-mix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-items: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 9px;
  gap: 0;
}

.icon-circle-mix span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.badge {
  display: inline-block;
  background: var(--bh-blue-light);
  color: var(--bh-blue);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

/* ---------- Stats ---------- */
.stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  text-align: center;
}

.stats .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--bh-orange);
}

.stats .stat-label {
  color: var(--bh-white);
  opacity: 0.85;
  font-weight: 600;
}

/* ---------- CTA Band ---------- */
.cta-band {
  background: var(--bh-orange);
  color: var(--bh-blue-dark);
  text-align: center;
  padding: 60px 0;
}

.cta-band h2 { color: var(--bh-blue-dark); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--bh-blue-dark);
  color: #cdd6f0;
  padding: 50px 0 24px;
}

footer.site-footer h4 {
  color: var(--bh-white);
  margin-bottom: 14px;
  font-size: 1.05rem;
}

footer.site-footer a { color: #cdd6f0; }
footer.site-footer a:hover { color: var(--bh-orange); }

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

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa6cf;
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Age group / course cards ---------- */
.age-tag {
  display: inline-block;
  background: var(--bh-blue);
  color: var(--bh-white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
}

/* ---------- LinkedIn badge ---------- */
.linkedin-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0a66c2;
  color: #ffffff;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.linkedin-badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(10, 102, 194, 0.35);
  color: #ffffff;
}

.linkedin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #ffffff;
  color: #0a66c2;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 5px;
  flex-shrink: 0;
}

/* ---------- Feature list (Angebot-Karten) ---------- */
.feature-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 16px;
  color: var(--bh-text-light);
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.feature-list li::before {
  content: "•";
  position: absolute;
  left: 2px;
  top: 0.08em;
  color: var(--bh-blue);
  font-weight: 800;
  font-size: 1.8em;
  line-height: 1;
}

.feature-list li:nth-child(even)::before {
  color: var(--bh-orange-dark);
}

/* ---------- Photo placeholder (Über uns) ---------- */
.photo-placeholder {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bh-blue-light);
  border: 2px dashed var(--bh-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 1.8rem;
  color: var(--bh-blue);
  text-align: center;
}

.photo-placeholder span {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--bh-blue);
}

/* ---------- Simple table (Impressum/Datenschutz) ---------- */
.legal-content h2 { margin-top: 34px; }
.legal-content h3 { margin-top: 24px; }
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content p, .legal-content li { color: var(--bh-text); }

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

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info-item .icon-circle {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  font-size: 1.2rem;
}

form.contact-form input,
form.contact-form textarea,
form.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e1e6f5;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 16px;
}

form.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bh-blue-dark);
  display: block;
  margin-bottom: 6px;
}

/* ---------- Anmelde-Popup ---------- */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(16, 38, 94, 0.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.popup-overlay.show {
  display: flex;
}

.popup-box {
  position: relative;
  background: var(--bh-white);
  border-radius: var(--radius);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--bh-blue-light);
  color: var(--bh-blue-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover {
  background: var(--bh-orange);
  color: var(--bh-blue-dark);
}

/* ---------- WhatsApp Floating Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  z-index: 999;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.whatsapp-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  background: #ff3b30;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.whatsapp-badge.show {
  display: flex;
  opacity: 1;
  transform: scale(1);
  animation: wa-badge-blink 0.6s steps(1, end) infinite;
}

@keyframes wa-badge-blink {
  50% {
    opacity: 0.15;
  }
}

@media (max-width: 600px) {
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.9rem; color: var(--bh-text-light); }
