/* ABS Fahrschule Theme — Responsive Styles */

@media (max-width: 900px) {

  /* Hero — H1/Claim ~20% kleiner + Line-Height kompakter */
  .hero-claim {
    letter-spacing: -0.03em;
    font-size: clamp(42px, 7.5vw, 110px); /* war: clamp(52px, 9vw, 140px) → ~20% kleiner */
    line-height: 0.85;                     /* war: 0.92 → kompakter */
  }
  .section-h1 {
    font-size: clamp(38px, 6vw, 72px);     /* war: clamp(48px, 7vw, 88px) → ~20% kleiner */
  }
  .hero-v2 h1 {
    font-size: clamp(15px, 2vw, 18px);     /* war: 18-22px → kleiner */
  }

  .hero-v2-content { padding: 0 24px; }
  .hero-v2-checks { flex-direction: column; gap: 4px; margin-bottom: 20px; }
  .hero-v2-check { font-size: 13px; line-height: 1.15; }

  /* Review-Badge auf EINER Zeile — Sterne + Text bleiben zusammen */
  .hero-v2-google {
    font-size: 11px;
    padding: 8px 16px;
    gap: 6px;
    white-space: nowrap;
    max-width: calc(100% - 32px);
  }
  .hero-v2-stars { font-size: 12px; white-space: nowrap; }
  .bewertungen-score { white-space: nowrap; flex-wrap: nowrap; font-size: 13px; }
  .bewertungen-stars { font-size: 16px; letter-spacing: 1px; }

  /* Kurse-Pills Subline ("Von A wie Moped bis S wie Bus …") kleiner + tighter */
  .v2-kurse-header p {
    font-size: 14px;       /* war Default ~16-18 */
    line-height: 1.3;      /* war ~1.6 → ~20% kompakter */
  }

  /* CTA "Kurs buchen" in kurs-termine-live — kompakt, einzeilig */
  .kurs-termine-live .ktl-item-actions .btn {
    padding: 6px 12px;       /* war ca. 14px 24px */
    font-size: 11px;         /* war ~14-15px */
    gap: 4px;
    white-space: nowrap;     /* zwingt einzeilige Darstellung */
    flex-shrink: 0;
    line-height: 1.2;
  }
  .kurs-termine-live .ktl-item-actions .btn svg {
    width: 10px;
    height: 10px;
  }

  /* Beim Aufklappen: Lessons-Liste — sanftes Inset wie die Pills/Buttons */
  .kurs-termine-live .ktl-item-details { padding: 0 16px 16px !important; }
  .kurs-termine-live .ktl-lesson { padding: 8px 0 !important; }
  /* UE-Badge nicht ganz rechts an der Kante kleben — bündig mit Buttons drüber */
  .kurs-termine-live .ktl-lesson-ue { margin-right: 8px; }

  /* Grid neu: Datum und Uhrzeit in eigene Spalten statt überlappendem "meta" */
  .kurs-termine-live .ktl-lesson {
    grid-template-columns: 24px auto 1fr auto !important;
    grid-template-areas:
      "num topic topic ue"
      "num date time ." !important;
    align-items: start !important;  /* (1) sitzt oben, gleiche Höhe wie (3 UE) */
  }
  .kurs-termine-live .ktl-lesson-num {
    align-self: start !important;
  }
  .kurs-termine-live .ktl-lesson-date {
    grid-area: date !important;
    display: block !important;
    margin-right: 12px !important;
    color: rgba(255,255,255,0.75) !important;   /* hell auf dunklem Navy-BG */
  }
  .kurs-termine-live .ktl-lesson-time {
    grid-area: time !important;
    display: block !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    position: static !important;
    color: rgba(255,255,255,0.9) !important;
  }
  .kurs-termine-live .ktl-lesson-date strong {
    display: inline-block !important;
    margin-right: 6px !important;
  }

  /* Kurse header */
  .v2-kurse-header { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { flex-direction: column; gap: 24px; }

  /* Kurse pills */
  .kurse-row {
    flex-wrap: wrap;
    align-items: center;   /* "F" Symbol und "Klasse F" Pill auf gleicher Mittellinie */
  }
  .kurs-pill { padding: 14px 24px; font-size: 15px; }
  .kurs-sym { width: 44px; height: 44px; font-size: 16px; }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; }
  .kontakt-action-grid { grid-template-columns: 1fr; }

  /* Section inner */
  .section-inner { padding: 0 24px; }

  /* Varianten */
  .varianten-grid { grid-template-columns: 1fr; }

  /* Weg section */
  .weg-row {
    flex-direction: column;
    gap: 0;
    padding: 16px 20px;
    min-height: auto;
  }
  .weg-row.row-reverse { flex-direction: column; }

  /* Phone disappears as standalone, reappears inside card */
  .weg-row > .weg-phone { display: none; }

  .weg-card {
    width: 100%;
    min-height: auto;
    aspect-ratio: auto;
    padding: 32px 24px;
    align-items: center;
    text-align: center;
  }
  .weg-card h3 {
    font-size: 28px;
    order: 1;
    margin-bottom: 24px;
  }
  .weg-card-number { order: 0; }
  .weg-card .weg-phone-mobile {
    display: block;
    order: 2;
    margin-bottom: 24px;
  }
  .weg-card p {
    order: 3;
    max-width: 100%;
    margin-bottom: 0;
  }
  .weg-phone-frame { width: 260px; }

  /* Team */
  .team-preview-grid,
  .team-full-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  /* Bewertungen */
  .bewertungen-layout {
    grid-template-columns: 1fr;
    padding: 0 24px;
    gap: 32px;
  }
  .bewertungen-left { position: static; }
  .bewertungen-cards {
    grid-template-columns: 1fr; /* Mobile: alles untereinander */
  }
  .bcard-bubble::after { display: none; }

  /* Kurs-liste */
  .kurs-liste-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
  }
  .kurs-liste-action {
    width: 100%;
    justify-content: space-between;
  }
  .kurs-liste-action .btn {
    padding: 10px 20px;
    font-size: 13px;
    gap: 6px;
    border-radius: 30px;
  }
  .kurs-liste-action .kurs-liste-status {
    font-size: 11px;
    padding: 4px 10px;
  }
  .kurs-liste-badge {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
  }
  .kurs-liste-info strong {
    font-size: 14px;
  }
  .kurs-liste-info span {
    font-size: 12px;
  }
  .kurs-liste-info {
    gap: 14px;
  }
  .kurs-tipp {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 24px;
  }
  .kurs-tipp-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .kurs-tipp-rolle {
    margin-left: 0;
  }

  /* FAQ */
  .faq-item summary { font-size: 15px; padding: 20px 20px; }
  .faq-answer { padding: 0 20px 20px; }

  /* CTA */
  .cta-actions { flex-direction: column; align-items: flex-start; }

  /* Detail */
  .detail-facts { flex-wrap: wrap; }
  .varianten-grid { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand { max-width: 100%; grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

  /* Support FAB mobile adjustment — mehr Abstand zur Sticky-CTA */
  body.has-sticky-cta .support-fab {
    bottom: 110px;
  }
  .support-fab-card {
    width: calc(100vw - 48px);
    right: -4px;
  }

  /* Mobile Sticky CTA */
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 12px 24px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }
  .mobile-sticky-cta.is-visible {
    transform: translateY(0);
  }
  .mobile-sticky-cta .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
  }

  /* Bewertungen: push up when sticky CTA active */
  body.has-sticky-cta .bewertungen-section {
    padding-bottom: 80px;
  }

}
