/**
 * @copyright 2026 AXISPORT UG
 * @license Proprietär - Alle Rechte vorbehalten
 * @see https://axisport.de
 * @description polish.css
 */
/* ============================================================
   polish.css  ·  Fairtrade Fonds
   Feinschliff-Layer: laedt NACH styles-v6.css und korrigiert
   gezielt Abstaende, Typografie-Konsistenz, Blog-Karten,
   Calendly-Einbettung und das Verhalten auf Mobilgeraeten.
   Aenderungen sind bewusst additiv (Overrides), damit das
   bestehende System unangetastet bleibt.
   ============================================================ */

/* ---- 1. Globale Konsistenz -------------------------------- */
:root {
  /* einheitliche vertikale Rhythmus-Skala */
  --space-section: clamp(64px, 8vw, 112px);
  --space-section-tight: clamp(44px, 6vw, 80px);
}

html { -webkit-text-size-adjust: 100%; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
*, *::before, *::after { box-sizing: border-box; }

/* verhindert horizontales Scrollen auf dem Handy */
html, body { overflow-x: clip; max-width: 100%; }
img, svg, iframe { max-width: 100%; }

/* ---- 2. Typografie: einheitlichere Skala ------------------ */
/* DM Serif Display ist eine Display-Schrift und wirkt nur in
   grossen Graden ruhig. Kleine "Headings" laufen daher etwas
   enger und mit klarer Zeilenfuehrung. */
h1, h2, h3, h4 { text-wrap: balance; }
h1 { letter-spacing: -0.015em; line-height: 1.04; }
h2 { letter-spacing: -0.012em; line-height: 1.08; }
h3 { letter-spacing: -0.006em; line-height: 1.18; }

p { line-height: 1.62; }
.lead { line-height: 1.58; }

/* Konsistente Augenhoehe der Eyebrow-Labels ueberall */
.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ---- 3. Section-Abstaende vereinheitlichen ---------------- */
section { padding-block: var(--space-section); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { margin-top: 14px; }

/* gleichmaessiger Abstand zwischen aufeinanderfolgenden Bloecken */
.container > * + .section-head { margin-top: 0; }

/* ---- 4. Subpage-Hero: Bild zeigt sich klarer -------------- */
/* Motiv der gebrandeten Header etwas sichtbarer, Text bleibt
   dank Unterverlauf gut lesbar. */
.subpage-hero h1 { line-height: 1.06; }
.subpage-hero .lead { color: rgba(255,255,255,.82); }
.subpage-hero .breadcrumb { margin-bottom: 18px; }

/* ---- 5. Blog-Karten mit gebrandetem Cover ----------------- */
/* Die Cover-Flaeche wird wieder eingeblendet und sauber
   gestaltet (gebrandet, gesichtsfrei). Das vorhandene
   SVG-Glyph je Karte sorgt fuer Wiedererkennung. */
.blog-card { display: flex; flex-direction: column; }
.blog-card .cover {
  display: block !important;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #1a2120;
  background-image: linear-gradient(135deg, #2c4a44 0%, #1a2120 55%, #0f1312 100%);
  background-size: cover;
  background-position: center;
  transition: transform var(--t-med);
}
.blog-card:hover .cover { transform: scale(1.03); }
.blog-card .cover .art-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 320px at 82% 8%, rgba(125,168,155,.28), transparent 62%),
    radial-gradient(420px 260px at 8% 100%, rgba(200,155,91,.12), transparent 60%) !important;
}
.blog-card .cover .art-tex {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 14px, transparent 14px 28px);
}
.blog-card .cover > svg {
  position: absolute;
  right: -6%;
  top: 50%;
  transform: translateY(-50%);
  width: 62%;
  height: auto;
  color: var(--sage);
  opacity: .9;
}
.blog-card .cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(13,18,19,.35) 100%);
}
.blog-card .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-card .body h3 { font-size: 20px; line-height: 1.25; margin: 2px 0 0; }
.blog-card .body p { font-size: 14.5px; line-height: 1.55; color: var(--fg-2); margin: 0; }
.blog-card .meta { font-size: 12.5px; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.blog-card .meta .cat { color: var(--sage-800); font-weight: 700; }
.blog-card .read-more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--sage-800); display: inline-flex; gap: 6px; align-items: center; }

/* ---- 6. Calendly-Einbettung (Komponente) ------------------ */
.cal-embed {
  position: relative;
  width: 100%;
  min-height: 640px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cal-embed iframe { display: block; width: 100%; height: 100%; min-height: 640px; border: 0; }
.cal-embed .cal-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center; gap: 14px;
  align-content: center;
  background: var(--bg-elev);
  color: var(--fg-3);
  transition: opacity .4s ease;
}
.cal-embed.is-ready .cal-loading { opacity: 0; pointer-events: none; }
.cal-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--sage-100);
  border-top-color: var(--sage-700);
  animation: cal-spin .8s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }

.cal-band {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
}
.cal-band .cal-side {
  background: linear-gradient(160deg, #20302c 0%, #16201d 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 22px;
}
.cal-band .cal-side h3 { color: #fff; }
.cal-band .cal-side .lead { color: rgba(255,255,255,.78); }
.cal-band .cal-side .cal-points { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.cal-band .cal-side .cal-points .row { display: flex; gap: 12px; align-items: flex-start; color: rgba(255,255,255,.9); font-size: 15px; }
.cal-band .cal-side .cal-points .row svg { width: 22px; height: 22px; flex: none; color: var(--sage); margin-top: 1px; }
.cal-band .cal-side .cal-alt { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.cal-band .cal-side .cal-alt a { color: #fff; display: inline-flex; gap: 10px; align-items: center; font-weight: 600; }

/* ---- 7. Mobile <= 900px ----------------------------------- */
@media (max-width: 900px) {
  .cal-band { grid-template-columns: 1fr; }
}

/* ---- 8. Mobile <= 720px ----------------------------------- */
@media (max-width: 720px) {
  :root { --gutter: 18px; }

  section { padding-block: var(--space-section-tight); }
  .section-head { margin-bottom: 32px; }

  h1 { font-size: clamp(31px, 8.5vw, 40px); }
  h2 { font-size: clamp(25px, 6.6vw, 33px); }
  h3 { font-size: 19px; }
  .lead { font-size: 16.5px; }

  /* Subpage-Hero auf dem Handy kompakter & lesbarer */
  .subpage-hero {
    padding-top: clamp(96px, 26vw, 128px);
    padding-bottom: clamp(48px, 14vw, 72px);
    background-position: center, center;
  }
  .subpage-hero h1 { font-size: clamp(28px, 8vw, 36px); max-width: 18ch; }
  .subpage-hero .lead { font-size: 16px; }
  .subpage-hero .ctas { width: 100%; }
  .subpage-hero .ctas .btn { flex: 1 1 auto; justify-content: center; }

  /* Buttons: volle Breite, gleichmaessig */
  .hero-ctas, .ctas, .booking-channels { gap: 10px; }
  .btn { height: 50px; }

  /* Blog: einspaltig mit Cover */
  .blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .blog-card .cover { aspect-ratio: 16 / 8; }

  /* Video-Liste: gestapelt, Frame zuerst */
  .video-row { gap: 20px; }
  .video-row .row-frame { aspect-ratio: 16/9; }
  .video-row h2 { font-size: clamp(22px, 6vw, 27px) !important; }

  /* Termin-Block gestapelt */
  .booking .booking-grid { gap: 24px; }
  .booking-side { gap: 20px; }

  /* einheitliche Innenabstaende fuer Karten */
  .card, .return-card, .form-card, .contact-info-card, .steps-card { padding: 22px 18px; }
}

/* ---- 9. Sehr kleine Geraete <= 420px ---------------------- */
@media (max-width: 420px) {
  .subpage-hero .ctas { flex-direction: column; }
  .subpage-hero .ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .meta-pill { font-size: 11px; }
  .blog-card .body { padding: 20px 18px 22px; }
}

/* ---- 10. Touch-Ziele & Fokus ------------------------------ */
a, button { -webkit-tap-highlight-color: transparent; }
.btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--sage-700);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

/* ---- 11. Videos-Seite: Transkripte & Zustaende ------------- */
.transcript-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  margin-top: 12px;
  padding: 8px 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--sage-800);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.transcript-toggle::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-fast);
}
.transcript-panel {
  margin-top: 12px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  animation: tp-in .25s ease;
}
.transcript-panel.open { display: block; }
.transcript-panel p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
@keyframes tp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* "Video folgt"-Zustand ohne Quelle */
.video-row .row-frame.no-src { cursor: default; }
.video-row .row-frame.no-src::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(13,18,19,.35);
}
.video-row .row-frame .soon-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 8px 16px;
  border-radius: 99px;
}

/* ---- 13. Leistungen "Vier Wege" — Karten-Grid ------------- */
/* Die Sektion 03 traegt nicht die Klasse .services, deshalb griff
   die urspruengliche Grid-Regel nie: die vier Karten stapelten in
   voller Breite, ohne Abstand und mit totem Raum durch min-height.
   Hier ein eigenstaendiges, luftiges Grid mit klarem Rhythmus und
   sauberem Verhalten auf Tablet und Handy. */
.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.4vw, 30px);
  align-items: stretch;
}
.leistungen-grid .service-card {
  min-height: 0;                 /* Grid gleicht Hoehen ohnehin aus */
  padding: clamp(28px, 3vw, 44px);
  border-radius: var(--r-lg);
  gap: 0;
}
.leistungen-grid .service-card .icon {
  margin-bottom: 26px;
}
.leistungen-grid .service-card h3 {
  min-height: 0;                 /* keine reservierten Leerzeilen */
  margin-bottom: 14px;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
}
.leistungen-grid .service-card .desc {
  min-height: 0;
  margin: 0 0 28px;
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--fg-2);
}
.leistungen-grid .service-card .card-cta {
  margin-top: auto;              /* CTA buendig am unteren Rand */
  padding-top: 4px;
}

/* Tablet: zweispaltig wird zu eng -> einspaltig mit Luft */
@media (max-width: 900px) {
  .leistungen-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;            /* nicht ueber die ganze Breite ziehen */
    margin-inline: auto;
  }
  .leistungen-grid .service-card .desc { margin-bottom: 22px; }
}

/* Handy: kompaktere, gleichmaessige Innenabstaende */
@media (max-width: 720px) {
  .leistungen-grid { gap: 16px; }
  .leistungen-grid .service-card { padding: 26px 22px; }
  .leistungen-grid .service-card .icon { margin-bottom: 20px; }
}

/* ---- 12. Home-Hero: ruhigere, klarere Wirkung ------------- */
.hero h1 { letter-spacing: -0.02em; }
.hero p.sub { max-width: 52ch; }
.hero-trust { margin-top: 40px; }
.hero-trust .trust-item .num { color: var(--sage-800); }
.hero-video {
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.hero-video-overlay .hero-video-title { letter-spacing: -0.01em; }
.hero-badge { box-shadow: var(--shadow-md); }
@media (max-width: 720px) {
  .hero-badge { box-shadow: var(--shadow-sm); }
  .transcript-panel { padding: 16px; }
}
