/* =========================================================================
   Glasklar in Gruen · Sportart-Seiten und Ratgeber · V5-Designsprache
   Gilt fuer /sports/padel, /sports/squash, /sports/boulder, /sports/badminton,
   /sports/fussball und /sports/ratgeber. Gemeinsame V5-Gestaltung:
   css/glasklar-sports-v5.css. Grundlage: css/glasklar.css (.theme-sports).
   Hier nur seitenspezifische Regeln; Hero bleibt unveraendert.
   ========================================================================= */

.sp-page section[id], .sp-page .rat-item[id] { scroll-margin-top: calc(var(--pv) + 104px); }

/* ---------- Kopf (unveraendert in Aufbau) ---------- */
.sp-hero { padding-bottom: 40px; }
.sp-hero .kicker-pill { margin-top: 4px; }
.sp-promises { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 30px; }
.sp-promises li { font-size: 15px; color: var(--ink2); }

/* Bildschirmansicht im Kopf und im Betrieb-Abschnitt */
.sp-shot { margin: 64px auto 0; max-width: 1120px; }
.sp-shot--gast { margin-top: 56px; max-width: 1000px; }
.sp-shot .media-frame { transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.sp-shot figcaption { max-width: 760px; margin: 18px auto 0; text-align: center; font-size: 15px; line-height: 1.6; color: var(--ink2); text-wrap: pretty; }
@media (hover: hover) and (pointer: fine) {
  .sp-shot .media-frame:hover { transform: translateY(-4px); box-shadow: 0 34px 70px rgba(15, 74, 52, .16); }
}

/* Breiter Bildschirm: Tagesansicht rechts neben dem Text statt darunter */
@media (min-width: 1180px) {
  .sp-hero:has(.sp-shot) .container {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    column-gap: 56px; align-items: center;
  }
  .sp-hero:has(.sp-shot) .container > :not(.sp-shot) { grid-column: 1; justify-self: start; }
  .sp-hero:has(.sp-shot) .container > .sp-shot { grid-column: 2; grid-row: 1 / span 5; margin: 0; max-width: none; align-self: center; }
  .sp-hero:has(.sp-shot) h1 { font-size: clamp(44px, 4.4vw, 64px); }
  .sp-hero:has(.sp-shot) .lead { font-size: 17.5px; }
  .sp-hero:has(.sp-shot) .sp-shot figcaption { text-align: left; margin-left: 4px; font-size: 14px; }
}

/* ---------- Abschnittskoepfe ohne Lead ---------- */
.sp-head { margin-bottom: 44px; }
.sp-head h2 { max-width: 900px; text-wrap: balance; }

/* ---------- „Mehr als Buchung" / „Und dann?" · flaches Panel im V5-Grün ---------- */
.sp-more {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center;
  padding: 44px; border-radius: 20px;
  background: var(--brand-deep); border: 1px solid transparent; box-shadow: none; color: #fff;
}
.sp-more.glass::before, .sp-more.glass::after { display: none; }
.sp-more h2 { margin-bottom: 16px; color: #fff; }
.sp-more h2 .soft, .sp-more h2 .accent { color: #8FD3B2; }
.sp-more .lead { font-size: 17px; color: rgba(255,255,255,.82); }
.sp-more .callout { background: #fff; }
.sp-more .callout p { font-size: 16px; line-height: 1.65; }
.sp-more .callout a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Dunkelgruene Baender wie auf der Hauptseite ----------
   Betrieb und Fragen als flaches dunkles Gruen. Die weissen Karten, FAQ-
   Elemente und der Ratgeber-Inhalt bleiben davor stehen; sie setzen ihre
   Textfarbe selbst, deshalb ist color:#fff auf Abschnittsebene unkritisch. */
#betrieb, #fragen { background: var(--brand-deep); color: #fff; }
#betrieb .sp-head h2, #fragen .sp-faq-head h2 { color: #fff; }
#betrieb .sp-head h2 .soft, #betrieb .sp-head h2 .accent,
#fragen .sp-faq-head h2 .soft, #fragen .sp-faq-head h2 .accent { color: #7EEABF; }
#fragen .sp-faq-head .lead { color: rgba(255, 255, 255, .82); }
#betrieb .sp-shot figcaption { color: rgba(255, 255, 255, .72); }
#fragen .faq-foot { color: rgba(255, 255, 255, .72); }
#fragen .faq-foot a { color: #BFE6D2; }
#fragen .faq-foot strong { color: #fff; }

/* ---------- FAQ-Kopf ---------- */
.sp-faq-head { margin-bottom: 42px; }
.sp-faq-head .lead { margin-top: 14px; }
.faq-foot a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Footer: Trennpunkte wie im Original ---------- */
.foot .foot-sep { display: inline-flex; align-items: center; color: var(--ink3); padding: 0 2px; }
.foot ul li { display: inline-flex; align-items: center; }

/* ---------- Ratgeber: acht Fragen · flache Karten im V5-Grün ---------- */
.rat-layout { display: grid; grid-template-columns: 260px minmax(0, 880px); gap: 32px; justify-content: center; align-items: start; }
.rat-layout .toc { background: #fff; border: 1px solid var(--v5-card-bd); box-shadow: none; }
.rat-layout .toc.glass::before, .rat-layout .toc.glass::after { display: none; }
.rat-layout .toc a { font-size: 14px; }
.rat-list { display: grid; gap: 20px; }
.rat-item {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 24px; padding: 38px 40px; border-radius: 16px;
  background: #fff; border: 1px solid var(--v5-card-bd); box-shadow: none;
}
.rat-item.glass::before, .rat-item.glass::after { display: none; }
.rat-num {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
  color: var(--brand); background: var(--v5-icon-bg); border: 1px solid var(--v5-icon-bd); box-shadow: none;
}
.rat-body { min-width: 0; }
.rat-body h2 { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 800; margin: 8px 0 22px; text-wrap: balance; color: var(--ink); }
.rat-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--v5-line); }
.rat-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); padding-top: 3px; }
.rat-text { color: var(--ink2); font-size: 16.5px; line-height: 1.65; }
.rat-text strong { color: var(--ink); font-weight: 600; }
.rat-row--uns { margin-top: 10px; padding: 18px 20px; border-top: 0; border-radius: 12px; background: var(--v5-tint); box-shadow: inset 0 0 0 1px var(--v5-card-bd); }
.rat-row--uns .rat-label { color: var(--brand); }
.rat-row--uns .rat-text { color: var(--ink); }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .rat-layout { grid-template-columns: minmax(0, 880px); }
  .rat-layout .toc { display: none; }
}
@media (max-width: 899px) {
  .sp-more { grid-template-columns: 1fr; gap: 26px; padding: 36px 30px; }
  .sp-shot { margin-top: 52px; }
}
@media (max-width: 600px) {
  .sp-hero { padding-bottom: 24px; }
  .foot .foot-sep { display: none; }
  .sp-promises { flex-direction: column; gap: 10px; margin-top: 26px; }
  .sp-shot { margin-top: 40px; }
  .sp-shot .media-frame { padding: 6px; border-radius: 16px; }
  .sp-shot .media-frame .bar { padding: 2px 4px 6px; }
  .sp-shot .media-frame .bar span { display: none; }
  .sp-shot .media-frame .inner { border-radius: 10px; }
  .sp-shot figcaption { font-size: 14.5px; text-align: left; }
  .sp-head { margin-bottom: 30px; }
  .sp-more { padding: 28px 22px; border-radius: 16px; }
  .sp-more .callout { padding: 18px; }
  .rat-item { grid-template-columns: 1fr; gap: 14px; padding: 26px 22px; border-radius: 16px; }
  .rat-num { width: 46px; height: 46px; font-size: 19px; }
  .rat-body h2 { margin: 0 0 16px; }
  .rat-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 0; }
  .rat-row--uns { padding: 16px; }
  .rat-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-shot .media-frame, .sp-shot .media-frame:hover { transition: none; transform: none; }
}

/* ---------- Karten: fuenf Karten ohne Luecke ----------
   Auf breiten Bildschirmen drei Karten je Reihe; bei fuenf Karten steht die
   zweite Reihe mittig (3 + 2). Sechs Spalten, jede Karte belegt zwei. */
@media (min-width: 900px) {
  .cards:not(.cards--2):not(.cards--4) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cards:not(.cards--2):not(.cards--4) > li { grid-column: span 2; }
  .cards:not(.cards--2):not(.cards--4) > li:nth-child(4):nth-last-child(2) { grid-column: 2 / span 2; }
}
