/* ============================================================
   handballschule-baden.de – Startseite
   Nachbau ohne SP Page Builder
   ============================================================ */

:root {
  --c-blue: #1797c6;
  --c-teal: #045a7a;
  --c-accent: #d02f53;
  --c-green: #03e16d;
  --c-white: #ffffff;

  --box-blue: #1797c6;
  --box-green: #2e9e5b;
  --box-red: #d02f53;
  --box-yellow: #e0a800;

  --container-width: 1200px;
  --radius: 20px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body.hb-home {
  font-family: var(--font-body);
  color: #1a1a1a;
  margin: 0;
  line-height: 1.6;
}

.hb-home img { max-width: 100%; display: block; }
.hb-home a { text-decoration: none; }

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

/* ---------- Buttons ---------- */
.hb-btn {
  display: inline-block;
  background: var(--c-accent);
  color: var(--c-white) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 15px 25px;
  border-radius: 6px;
  transition: filter 0.15s ease;
}
.hb-btn:hover { filter: brightness(1.08); }
.hb-btn--green { background: var(--c-green); }

/* ---------- Hero (Joomla-Modulposition) ---------- */
.hb-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-teal);
  color: var(--c-white);
}
.hb-hero__placeholder {
  padding: 40px;
  text-align: center;
  opacity: 0.7;
  font-size: 14px;
}

/* ---------- Intro / Feature-Boxen ---------- */
.hb-intro {
  background: var(--c-teal);
  padding: 90px 0 50px;
}
.hb-intro__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hb-feature {
  background: var(--c-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hb-feature__image {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hb-feature__body {
  padding: 20px 22px 26px;
  position: relative;
}
.hb-feature__body::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 46px;
  height: 6px;
  border-radius: 3px;
  background: var(--box-color, var(--box-blue));
}
.hb-feature--blue   { --box-color: var(--box-blue); }
.hb-feature--green  { --box-color: var(--box-green); }
.hb-feature--red    { --box-color: var(--box-red); }
.hb-feature--yellow { --box-color: var(--box-yellow); }

.hb-feature__title {
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--box-color, var(--box-blue));
  margin: 6px 0 12px;
}
.hb-feature__body ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.hb-feature__body li { margin-bottom: 6px; color: #333; }
.hb-feature__body li a { color: #333; }
.hb-feature__body li a:hover { color: var(--box-color, var(--box-blue)); }
.hb-feature__cta {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--box-color, var(--box-blue));
  border-bottom: 2px solid currentColor;
}

/* ---------- Generische 2-Spalten-CTA (Bio, Team, etc.) ---------- */
.hb-cta {
  padding: 50px 0;
  color: var(--c-white);
}
.hb-cta--teal { background: var(--c-teal); }
.hb-cta--blue { background: var(--c-blue); }
.hb-cta__grid {
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: 40px;
  align-items: center;
}
.hb-cta h2 { text-transform: uppercase; font-weight: 800; margin-top: 0; }
.hb-cta__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 24px 0;
}
.hb-cta__signature { font-style: italic; }

/* ---------- Video + Partner ---------- */
.hb-video-partner {
  background: var(--c-teal);
  padding: 50px 0;
}
.hb-video-partner__grid {
  display: grid;
  grid-template-columns: 7fr 3fr;
  gap: 40px;
  align-items: center;
}
.hb-video-partner__frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
}
.hb-video-partner__frame iframe { width: 100%; height: 100%; border: 0; }
.hb-video-partner__logo {
  text-align: center;
  color: var(--c-white);
}
.hb-video-partner__logo img { margin: 0 auto 16px; max-width: 160px; }

/* ---------- Statistik-Zähler ---------- */
.hb-stats {
  background: var(--c-blue);
  padding: 80px 0;
  color: var(--c-white);
}
.hb-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.hb-stats__num {
  font-size: 44px;
  font-weight: 900;
  margin-bottom: 6px;
}
.hb-stats__label { font-size: 15px; opacity: 0.95; }

/* ---------- Team-Sektion (volle Breite) ---------- */
.hb-team {
  background: var(--c-teal);
  padding: 50px 0;
  color: var(--c-white);
  text-align: center;
}
.hb-team h2 { text-transform: uppercase; font-weight: 800; }
.hb-team img { margin: 24px auto; border-radius: var(--radius); max-width: 100%; }
.hb-team .hb-btn { margin-top: 10px; }

/* ---------- Sektions-Titel (volle Breite, z.B. "Handball-Camps") ---------- */
.hb-section-title {
  background: var(--c-blue);
  padding: 40px 0;
  color: var(--c-white);
  text-align: center;
}
.hb-section-title h2 { font-size: 36px; text-transform: uppercase; font-weight: 800; margin: 0 0 12px; }

/* ---------- Produkt-Zeilen (Bild+Titel | Text | Buttons) ---------- */
.hb-product {
  background: var(--c-blue);
  padding: 50px 0;
  color: var(--c-white);
}
.hb-product__grid {
  display: grid;
  grid-template-columns: 4fr 5fr 3fr;
  gap: 32px;
  align-items: center;
}
.hb-product__title { text-transform: uppercase; font-weight: 800; margin-bottom: 16px; }
.hb-product__image { border-radius: var(--radius); }
.hb-product__buttons { display: flex; flex-direction: column; gap: 12px; }

.hb-divider {
  background: var(--c-blue);
  padding: 0;
}
.hb-divider hr {
  max-width: var(--container-width);
  margin: 0 auto;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- Partner-Zeilen ---------- */
.hb-partner {
  padding: 50px 0;
  color: var(--c-white);
}
.hb-partner--teal { background: var(--c-teal); }
.hb-partner--blue { background: var(--c-blue); }
.hb-partner__grid {
  display: grid;
  grid-template-columns: 3fr 2fr 5fr;
  gap: 32px;
  align-items: center;
}
.hb-partner__grid img { margin: 0 auto; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 992px) {
  .hb-intro__grid { grid-template-columns: repeat(2, 1fr); }
  .hb-cta__grid,
  .hb-video-partner__grid,
  .hb-product__grid,
  .hb-partner__grid {
    grid-template-columns: 1fr;
  }
  .hb-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .hb-product__buttons { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 600px) {
  .hb-intro__grid { grid-template-columns: 1fr; }
  .hb-intro { padding: 40px 0; }
  .hb-product__buttons { flex-direction: column; }
}
