/* =============================================================
   BikePass Plugin — Komponenten + Page-Layout
   Basis: homepage-v4.html v12.9.2
   Reihenfolge: Reset → Typografie → Buttons → Sections → Cards
                → Header/Footer-Helpers → Page-Hero → Prose
   ============================================================= */

/* -------------------------------------------------------------
   Base — v1.4.2: Resets aus home.css zurück nach plugin.css verlagert
   (v1.4.0-Cleanup hatte sie verloren gehen lassen → horizontale Scrollleisten).
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* overflow-x: clip bricht position:sticky NICHT (Chrome 90+, Firefox 81+, Safari 16+).
     scroll-behavior + scroll-padding-top kommen weiter unten via separate Regel. */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--brand-ink);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}

/* Fallback für ältere Browser ohne overflow-x: clip Support */
@supports not (overflow-x: clip) {
  html { overflow-x: visible; }
  body { overflow-x: hidden; }
}

/* Heading-Resets */
h1, h2, h3, h4, h5, h6 {
  color: var(--brand-ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
}
p { margin: 0; }

/* -------------------------------------------------------------
   Display-Typografie (h-hero / h-section / h-statement / h-hero-sub)
   ------------------------------------------------------------- */
/* v1.0.5: !important auf font-weight + family — Hello-Elementor setzt h1/h2/h3 bold und überschreibt sonst Bebas-Regular-Look */
.h-display {
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.015em !important;
  font-weight: 400 !important;
  line-height: var(--lh-display) !important;
}
.h-section   { font-size: var(--fs-h-section); }
.h-hero      { font-size: var(--fs-h-hero); }
.h-hero-sub  { font-size: var(--fs-h-hero-sub); display: block; margin-top: 0.4rem; }
.h-statement { font-size: var(--fs-h-statement); }

/* -------------------------------------------------------------
   Eyebrow-Familie (v12.7: vereinheitlicht)
   ------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand-teal-deep);
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
}
.eyebrow-dark { color: #5eead4; }
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--brand-teal);
  box-shadow: 0 0 0 4px rgba(54, 208, 188, 0.15);
}

/* -------------------------------------------------------------
   Buttons
   ------------------------------------------------------------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  box-shadow: var(--shadow-btn-primary);
  transition: transform var(--dur-base) var(--ease-out-bounce),
              box-shadow var(--dur-base);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: none;
}
.btn-primary:hover {
  border-color: #fff;
  box-shadow: var(--shadow-btn-primary-hover);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary--compact { padding: 0.55rem 1.5rem; font-size: 0.85rem; }

.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.05rem;
  color: #334155;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--slate-200);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
}
.btn-soft:hover {
  background: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--brand-ink);
}
.btn-soft:active { transform: scale(0.97); }

.btn-on-image {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-teal-deep) 0%, var(--brand-teal) 100%);
  box-shadow: var(--shadow-btn-on-image);
  border: 1px solid transparent;
  transition: transform var(--dur-base) var(--ease-out-bounce),
              box-shadow var(--dur-base);
  font-family: var(--font-sans);
  text-decoration: none;
}
.btn-on-image:hover {
  border-color: #fff;
  box-shadow: var(--shadow-btn-on-image-hover);
}
.btn-on-image:active { transform: scale(0.97); }

.btn-ghost-on-image {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--dur-base) var(--ease-out-bounce),
              background 200ms;
  font-family: var(--font-sans);
  text-decoration: none;
}
.btn-ghost-on-image:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.6);
}

/* -------------------------------------------------------------
   Section-System (v-section / v-section--box)
   ------------------------------------------------------------- */
.v-section {
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  isolation: isolate;
}
.v-section--box {
  margin-left: var(--section-inset-x);
  margin-right: var(--section-inset-x);
  border-radius: var(--radius-section);
  overflow: hidden;
}
.v-section--dark {
  background: var(--bg-dark);
  color: #f8fafc;
}
.v-section--mint {
  background: var(--bg-mint-tint);
}
.v-inner {
  max-width: 80rem;
  margin: 0 auto;
}

/* Mesh-Aurora (hellt dunkle Sections auf, Brand-Verlauf) */
.mesh-aurora {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 18% 28%, var(--mesh-teal),  transparent 60%),
    radial-gradient(ellipse 45% 55% at 82% 70%, var(--mesh-mint),  transparent 62%),
    radial-gradient(circle  42%     at 50% 102%, var(--mesh-cream), transparent 55%);
  filter: blur(38px);
  opacity: 0.85;
}
.mesh-aurora--dark {
  background:
    radial-gradient(ellipse 55% 50% at 12% 22%, rgba(54, 208, 188, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 55% at 88% 78%, var(--mesh-red),         transparent 62%),
    radial-gradient(ellipse 40% 35% at 60% 50%, rgba(54, 208, 188, 0.10), transparent 60%);
  filter: blur(48px);
}

/* -------------------------------------------------------------
   Card-Familie (allgemein wiederverwendbar)
   ------------------------------------------------------------- */
.card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  padding: 2rem 1.85rem;
  box-shadow: var(--shadow-card);
  transition: transform 240ms, box-shadow 240ms, border-color 240ms;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-card-hover);
}

/* -------------------------------------------------------------
   Page-Hero — schmaler Hero für Unterseiten (= Footer-Breite)
   v1.3.0: größer + mit Background-Image (WP-Featured oder Fallback) + Overlay.
   ------------------------------------------------------------- */
.page-hero {
  /* v1.3.0: min-height vergrößert von 18-24rem auf 22-30rem für mehr Präsenz */
  min-height: clamp(22rem, 40vh, 30rem);
  /* v1.3.0: extra padding-top für Header-Atemraum (vorher kam Hero direkt unter Menü) */
  padding-top: clamp(5rem, 10vh, 8rem);
  padding-bottom: clamp(3rem, 6vh, 5rem);
  /* v1.3.4: margin-top wie .hero-wrap auf der Home-Page (= 0.5rem) — sonst sitzt der
     Subpage-Hero direkt am Page-Top, während der Home-Hero 0.5rem darunter "schwebt". */
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
/* v1.3.0: BG-Image füllt den Hero (WP-Featured-Image oder cu11-Fallback) */
.page-hero-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: -2;
  display: block;
}
/* v1.3.0: dunkler Gradient-Overlay damit White-Text lesbar bleibt */
.page-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, rgba(5, 10, 20, 0.82) 0%, rgba(15, 23, 42, 0.62) 100%);
  pointer-events: none;
}
.page-hero-inner {
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: #ffffff;
  margin: 0;
}
.page-hero-sub {
  color: rgba(248, 250, 252, 0.85);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
  max-width: 38rem;
  margin: 0;
}

/* v1.3.0: .page-content padding-top reduziert — vorher 8rem aus var(--section-pad-y),
   plus 8rem .page-hero padding-bottom + 2.5em h2 margin-top = ~296px Lücke nach Hero.
   Jetzt: kompakter Übergang vom Hero zum Content. */
.page-content {
  padding-top: clamp(2.5rem, 4vw, 3.5rem);
}

/* Breadcrumb */
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(248, 250, 252, 0.7);
  font-size: 0.85rem;
  font-family: var(--font-sans);
}
.breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}
.breadcrumb a:hover { color: var(--brand-teal); }
.breadcrumb-sep {
  opacity: 0.5;
}

/* -------------------------------------------------------------
   Prose-Container — Lesbarkeits-optimierte Content-Sektion
   ------------------------------------------------------------- */
.prose {
  max-width: 65ch;
  margin: 0 auto;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: #334155;
}
/* v1.3.0: Prose-Spacing kompakter — vorher zu großzügig. */
.prose > * + * { margin-top: 1em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  line-height: 1.1;
  color: var(--brand-ink);
  margin-top: 1.6em;   /* v1.3.0: 2.5em → 1.6em */
  margin-bottom: 0.3em;
}
.prose h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--brand-ink);
  margin-top: 1.4em;   /* v1.3.0: 2em → 1.4em */
  margin-bottom: 0.2em;
}
.prose h4 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 1.5em;
  margin-bottom: 0.2em;
}
.prose p { margin-top: 0; margin-bottom: 1.1em; }
.prose strong { color: var(--brand-ink); font-weight: 700; }
.prose a {
  color: var(--brand-teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 150ms ease;
}
.prose a:hover { color: var(--brand-teal); }
.prose ul, .prose ol {
  padding-left: 1.4rem;
  margin: 0.5em 0 1.1em;
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.3em 0; }
.prose li::marker { color: var(--brand-teal); }
.prose hr {
  border: 0;
  height: 1px;
  background: var(--slate-200);
  margin: 2.5em 0;
}
.prose blockquote {
  border-left: 3px solid var(--brand-teal);
  padding: 0.25em 1em;
  font-style: italic;
  color: var(--slate-600);
  margin: 1.5em 0;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--slate-100);
  padding: 0.15em 0.4em;
  border-radius: 0.3em;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.94em;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.6em 0.8em;
  border-bottom: 1px solid var(--slate-200);
}
.prose th {
  font-weight: 700;
  background: #f8fafc;
}

/* Inhaltsverzeichnis (für Datenschutz / AGB) */
.toc {
  background: var(--brand-teal-light);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.75rem;
  margin: 0 0 2.5rem;
  border: 1px solid rgba(54, 208, 188, 0.25);
}
.toc h2 {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-teal-deep);
  margin: 0 0 0.8rem;
}
.toc ol {
  list-style: decimal inside;
  margin: 0;
  padding: 0;
  font-size: 0.94rem;
  line-height: 1.7;
}
.toc a {
  color: #334155;
  text-decoration: none;
  transition: color 150ms;
}
.toc a:hover { color: var(--brand-teal-deep); }

/* FAQ-Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 50rem;
  margin: 0 auto;
}
.faq-item {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms;
}
.faq-item[open] {
  border-color: var(--brand-teal);
  box-shadow: var(--shadow-card);
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--brand-ink);
  list-style: none;
  user-select: none;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--brand-teal-deep);
  transition: transform 220ms ease;
  line-height: 1;
}
.faq-item[open] .faq-summary::after {
  content: "−";
  transform: rotate(0deg);
}
.faq-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--slate-600);
  font-size: 0.97rem;
  line-height: 1.65;
}
.faq-body > * + * { margin-top: 0.8em; }

/* Widerruf-Formular-Block */
.widerruf-formular {
  background: #f8fafc;
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-card);
  padding: 2rem;
  margin: 2.5rem 0;
}
.widerruf-formular h3 {
  margin-top: 0;
  color: var(--brand-ink);
}
.widerruf-formular .form-line {
  display: block;
  border-bottom: 1px solid var(--slate-400);
  min-height: 1.5rem;
  margin: 0.6rem 0 1.25rem;
}

/* -------------------------------------------------------------
   Reveal-Animations-Hooks
   v1.3.0: Initial-Hide-State zurück in CSS (war v1.2.0 in JS via gsap.set()).
   Grund: FOUC-Flash — vor JS-Load waren Reveal-Elemente kurz sichtbar, dann
   versteckt, dann animiert eingeblendet. CSS-Init verhindert den initialen Flash.
   Failsafe in home.js (typeof gsap === 'undefined') macht Elemente sichtbar wenn JS broken.
   ------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
}
[data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(32px);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------
   v1.3.0: Globaler Anchor-Link Header-Offset
   ------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--header-h, 72px) + 1rem);
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------------------
   Mobile-Overrides
   ------------------------------------------------------------- */
@media (max-width: 767px) {
  .h-hero { font-size: var(--fs-h-hero-mobile) !important; line-height: 1.02; }
  .eyebrow { font-size: var(--fs-eyebrow-mobile) !important; letter-spacing: var(--ls-eyebrow) !important; }
  .prose h2 { font-size: clamp(1.5rem, 6vw, 1.85rem); }
  /* v1.4.8: Subpage-Hero full-width Mobile — kein Side-Margin, keine Rundung.
     v1.4.9: 10px Top-Margin damit Hero leicht unter dem Header "schwebt" (User-Wunsch).
     `.page-hero.v-section--box` für höhere Spezifität gegen den .v-section--box Top-Level-Block. */
  .page-hero,
  .page-hero.v-section--box {
    min-height: clamp(14rem, 24vh, 18rem);
    margin: 10px 0 0;
    border-radius: 0;
  }
}

/* =============================================================
   Header (sticky + scrolled-state + Mobile-Menu)
   ============================================================= */
#site-header { position: sticky; top: 0; z-index: 50; transition: top 350ms cubic-bezier(0.4, 0, 0.2, 1); }
#site-header.is-scrolled { top: 1.5rem; }
.site-header-bar {
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0;
  box-shadow: none;
  margin-left: 0; margin-right: 0;
  max-width: none;
  padding-top: 15px; padding-bottom: 5px;
  transition: background-color 350ms, border-color 350ms, border-radius 350ms,
              box-shadow 350ms, margin 350ms, padding 350ms, max-width 350ms,
              backdrop-filter 350ms;
}
#site-header.is-scrolled .site-header-bar {
  background-color: rgba(255, 255, 255, 0.92);
  border-color: var(--slate-200);
  border-radius: 1.75rem;
  box-shadow: 0 8px 28px -12px rgba(15, 23, 42, 0.12);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  max-width: 80rem;
  width: calc(100% - 2 * var(--section-inset-x));
  margin-left: auto; margin-right: auto;
  padding-left: 1rem; padding-right: 1rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
#site-header.is-scrolled .site-header-bar a > img { height: 1.80rem !important; transition: height 350ms ease; }
.site-header-bar a > img { transition: height 350ms ease; }
@media (max-width: 1023px) {
  #site-header.is-scrolled { top: 0.6rem; }
  .site-header-bar { padding-left: 1rem !important; padding-right: 1rem !important; }
  #site-header.is-scrolled .site-header-bar { padding-left: 1rem !important; padding-right: 1rem !important; }
}
.bp-nav-link {
  color: #334155; font-size: 0.9rem; font-weight: 500;
  transition: color 150ms ease-out, background-color 150ms ease-out;
  padding: 0.5rem 0.85rem; border-radius: 9999px;
  font-family: var(--font-sans);
  text-decoration: none;
}
.bp-nav-link:hover { color: var(--brand-teal-deep); background: var(--brand-teal-light); }

/* v1.0.4: Header-Nav + Login eigene Klassen — Theme-Override-resistent.
   Ersetzt Tailwind hidden/lg:flex/sm:inline-flex, die unter Elementor-Pro nicht greifen.
   Display-Logik: <1024px versteckt (Mobile-Burger übernimmt), ≥1024px sichtbar.
*/
#site-header .bp-header-nav,
#site-header .bp-header-login {
  display: none !important;
}
@media (min-width: 1024px) {
  #site-header .bp-header-nav {
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
  }
  #site-header .bp-header-login {
    display: inline-flex !important;
  }
}

/* v1.1.9: Mobile-Burger/Account-Visual-Style ist im v1.1.5-Theme-Override-Block am File-Ende
   konsolidiert (M1 aus Code-Review — vorher Doppel-Definition). Hier nur Container-Layout. */
.mobile-header-actions { display: none; align-items: center; gap: 0.5rem; }
@media (max-width: 1023px) {
  .mobile-header-actions { display: inline-flex; }
  .site-header-bar .header-cta-group { display: none; }
}

.mobile-menu {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: #ffffff;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1), opacity 350ms ease;
  overflow-y: auto;
  padding: 5rem 1.5rem 2rem;
  display: flex; flex-direction: column;
}
/* v1.1.9: Visual-Style im v1.1.5-Theme-Override-Block konsolidiert (M1). Hier nur Position. */
.mobile-menu-close {
  position: absolute; top: 1rem; right: 1rem;
  z-index: 2;
}
.mobile-menu[data-state="open"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 0.25rem; margin-top: 1.5rem; }
.mobile-nav-link {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  color: var(--brand-ink);
  text-decoration: none;
  padding: 0.5rem 0;
  line-height: 1.05;
  transition: color 200ms ease, transform 250ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(20px);
  opacity: 0;
}
.mobile-menu[data-state="open"] .mobile-nav-link { transform: translateY(0); opacity: 1; }
.mobile-menu[data-state="open"] .mobile-nav-link:nth-child(1) { transition-delay: 0.15s; }
.mobile-menu[data-state="open"] .mobile-nav-link:nth-child(2) { transition-delay: 0.22s; }
.mobile-menu[data-state="open"] .mobile-nav-link:nth-child(3) { transition-delay: 0.29s; }
.mobile-menu[data-state="open"] .mobile-nav-link:nth-child(4) { transition-delay: 0.36s; }
.mobile-nav-link:hover { color: var(--brand-teal-deep); }
.mobile-menu-cta { margin-top: auto; padding-top: 2rem; display: flex; flex-direction: column; gap: 0.85rem; }
.mobile-menu-cta .btn-soft,
.mobile-menu-cta .btn-primary { width: 100%; justify-content: center; padding: 0.85rem 1.25rem; font-size: 0.95rem; }
body.menu-open { overflow: hidden !important; }

/* =============================================================
   Footer
   ============================================================= */
.footer-wrap {
  background: var(--bg-dark);
  color: var(--slate-300);
  border-radius: var(--radius-section);
  margin: 1.25rem var(--section-inset-x);
  padding: 4rem 1.5rem 2.25rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.footer-wrap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 15% 25%, rgba(54, 208, 188, 0.28), transparent 60%),
    radial-gradient(ellipse 45% 50% at 85% 30%, rgba(167, 243, 208, 0.18), transparent 65%),
    radial-gradient(ellipse 40% 50% at 50% 100%, rgba(54, 208, 188, 0.18), transparent 65%),
    radial-gradient(ellipse 30% 30% at 75% 80%, rgba(254, 240, 138, 0.06), transparent 60%);
  /* v1.0.6: blur runter 40→24 für GPU-Entlastung */
  filter: blur(24px);
  opacity: 0.9;
}
@media (min-width: 768px)  { .footer-wrap { padding: 5rem 2.5rem 2.5rem; } }
@media (min-width: 1024px) { .footer-wrap { padding: 5rem 4rem 2.5rem; } }

/* v1.5.0: Footer Mobile — full-width, keine Rundung, 50px bottom-padding (analog Hero-Treatment). */
@media (max-width: 767px) {
  .footer-wrap {
    margin-left: 0;
    margin-right: 0;
    border-radius: 0;
    padding-bottom: 50px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "logo logo"
      "seiten quicklinks"
      "recht recht";
    gap: 1.5rem 1rem;
    padding-bottom: 2rem;
  }
  .footer-grid > div:nth-child(1) { grid-area: logo; }
  .footer-grid > div:nth-child(2) { grid-area: seiten; }
  .footer-grid > div:nth-child(3) { grid-area: quicklinks; }
  .footer-grid > div:nth-child(4) { grid-area: recht; }
  .footer-grid .footer-heading { font-size: 0.68rem; letter-spacing: 0.16em; margin-bottom: 0.7rem; }
  .footer-grid ul { gap: 0.2rem; }
  .footer-grid ul a { font-size: 0.85rem; line-height: 1.4; }
  .footer-intro { font-size: 0.82rem; line-height: 1.5; }
  .footer-wrap .pt-8 p { font-size: 0.75rem; }
  .footer-wrap .pt-8 { flex-direction: column; gap: 0.5rem; padding-top: 1.25rem; }
}

.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
@media (min-width: 768px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-grid .footer-heading { color: #fff; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 1.1rem; font-family: var(--font-sans); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.footer-grid ul a { font-size: 0.92rem; line-height: 1.45; }
.footer-grid a { color: var(--slate-300); transition: color 150ms ease; text-decoration: none; }
.footer-grid a:hover { color: var(--brand-teal); }
.footer-intro { font-size: 0.92rem; line-height: 1.55; }
.social-icon {
  width: 36px; height: 36px; border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  color: var(--slate-300);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 200ms;
  text-decoration: none;
}
.social-icon:hover {
  border-color: rgba(54, 208, 188, 0.5);
  color: var(--brand-teal);
  background: rgba(54, 208, 188, 0.08);
  transform: translateY(-2px);
}

/* v1.0.3: Footer-Logo gegen Theme-img-Reset (Elementor: img{max-width:100%;height:auto}) · v1.0.7: !important auf height raus */
.footer-wrap a > img {
  height: 1.75rem; /* 28px Mobile */
  width: auto !important;
  max-width: none !important;
}
@media (min-width: 768px) {
  .footer-wrap a > img { height: 2.5rem; /* 40px Desktop */ }
}

/* v1.0.3: Header-Logo gegen Theme-img-Reset · v1.1.2: unscrolled 2.10rem (kein !important), scrolled 1.80rem !important */
#site-header a > img {
  height: 2.10rem;
  width: auto !important;
  max-width: none !important;
}
#site-header.is-scrolled a > img {
  height: 1.80rem !important;
}

/* ============================================================================
   v1.1.5 + v1.2.0 — Theme-Override-Schutz gegen Elementor-Kit-7
   ============================================================================
   Theme-Regeln `.elementor-kit-7 button {...}` + `.elementor-kit-7 a {...}` haben
   Spezifität (0,1,1). Wir wrappen unsere Selektoren in `body[class*="elementor-kit-"]`
   → Spezifität (0,2,1) → gewinnt OHNE !important.
   v1.2.0 (m1 aus Code-Review): ~40× !important eliminiert durch diesen Wrapper-Trick.
   ============================================================================ */

/* Mobile-Burger + Account-Icon + Menu-Close — runder Outline-Button, dunkles SVG */
body[class*="elementor-kit-"] .mobile-burger,
body[class*="elementor-kit-"] .mobile-account,
body[class*="elementor-kit-"] .mobile-menu-close {
  background-color: transparent;
  background-image: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: none;
  line-height: 1;
  letter-spacing: normal;
  color: var(--brand-ink);
  border-style: solid;
  border-width: 1px;
  border-color: var(--slate-200);
  border-radius: 9999px;
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
body[class*="elementor-kit-"] .mobile-burger:hover,
body[class*="elementor-kit-"] .mobile-account:hover,
body[class*="elementor-kit-"] .mobile-menu-close:hover {
  background-color: var(--slate-100);
  border-color: var(--slate-300);
  color: var(--brand-ink);
}
body[class*="elementor-kit-"] .mobile-burger svg,
body[class*="elementor-kit-"] .mobile-account svg,
body[class*="elementor-kit-"] .mobile-menu-close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}
/* Close-Button im Mobile-Menu darf etwas größer sein */
body[class*="elementor-kit-"] .mobile-menu .mobile-menu-close {
  width: 40px;
  height: 40px;
}
body[class*="elementor-kit-"] .mobile-menu .mobile-menu-close svg {
  width: 22px;
  height: 22px;
}

/* Steps-Section Dots — kleine Slate-Dots, aktiver wird zur Teal-Pille */
body[class*="elementor-kit-"] .steps-dot {
  background-color: var(--slate-300);
  background-image: none;
  border: none;
  border-radius: 9999px;
  padding: 0;
  width: 8px;
  height: 8px;
  min-width: 0;
  font-size: 0;
  line-height: 0;
  color: transparent;
  cursor: pointer;
  transition: background-color 200ms ease, width 200ms ease;
}
body[class*="elementor-kit-"] .steps-dot[aria-current="true"] {
  background-color: var(--brand-teal);
  width: 26px;
}

/* Toast-Close-X — kleines Cross oben rechts */
body[class*="elementor-kit-"] .social-toast .close-x {
  background: none;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 4px;
  width: auto;
  height: auto;
  font-family: inherit;
  font-size: 18px;
  font-weight: normal;
  line-height: 1;
  color: var(--slate-400);
  text-transform: none;
}
body[class*="elementor-kit-"] .social-toast .close-x:hover {
  color: var(--brand-ink);
  background: none;
}

/* Footer Bottom-Bar Links (Datenschutz · Impressum) — slate-400 statt Theme-Hellblau */
body[class*="elementor-kit-"] .footer-wrap .pt-8 a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 150ms ease;
}
body[class*="elementor-kit-"] .footer-wrap .pt-8 a:hover {
  color: var(--brand-teal);
}

/* =================================================================
 * BUYBOX (Codierung-Card) — shared zwischen home.html (S8) und bikepass-id.html (S1)
 * v1.6.0: Migriert von home.css → plugin.css, da von 2+ Pages genutzt.
 * Klassen-Namespace `.coding-*` bleibt unverändert für Kompatibilität.
 * ================================================================= */
  /* =================================================================
     S8 — Codierung (BOX bleibt)
     ================================================================= */
  .coding-card {
    /* v11.13: Box full-width mit Section-Inset — Negative-Margin um aus dem Section-Padding auszubrechen */
    position: relative;
    margin-left: calc(var(--section-inset-x) - var(--section-pad-x));
    margin-right: calc(var(--section-inset-x) - var(--section-pad-x));
    border-radius: var(--radius-section);
    overflow: hidden;
    isolation: isolate;
    /* v11.17: mehr vertikales Padding für größere Section-Höhe */
    padding: 4rem 1.75rem;
  }
  @media (min-width: 768px) { .coding-card { padding: 5rem 3rem; } }
  @media (min-width: 1024px){ .coding-card { padding: 6.5rem 4rem; } }
  .coding-card-inner {
    max-width: 80rem;
    margin: 0 auto;
    position: relative;
    z-index: 10;
  }
  /* v11.21: Codierung-Box — Image links, Head+Features+CTA+Trust rechts gestapelt */
  .coding-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "image" "head" "features" "cta" "trust";
    gap: 1.5rem;
    position: relative; z-index: 10;
  }
  @media (min-width: 1024px) {
    .coding-grid {
      grid-template-columns: 1fr 1fr;
      grid-template-areas:
        "image head"
        "image features"
        "image cta"
        "image trust";
      gap: 1.5rem 4rem;
      align-items: start;
    }
  }
  .coding-image { grid-area: image; align-self: center; }
  .coding-head { grid-area: head; }
  .coding-features-wrap { grid-area: features; }
  .coding-trust { grid-area: trust; }
  .coding-cta-wrap { grid-area: cta; }
  /* Bild 10% größer (640 → 704) */
  .coding-image .relative.aspect-square { max-width: 704px; margin: 0 auto; }
  /* v12.4: Preis-Row neben CTA-Button */
  .coding-cta-row {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
    margin-top: 1.5rem;
  }
  .coding-price {
    display: flex; flex-direction: column; gap: 0.1rem; line-height: 1;
  }
  .coding-price-amount {
    font-family: 'Geist', sans-serif;
    font-size: 1.65rem; font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
  }
  .coding-price-suffix {
    font-size: 0.78rem; font-weight: 500;
    color: rgba(255,255,255,0.65);
  }
  /* v11.22: Codierung-Headings — Main "BIKEPASS ID" größer, Subheading darüber
     v12.7: Subheading auf .eyebrow-Größe (0.78rem, letter-spacing 0.16em) — Konsistenz */
  .coding-subheading {
    color: var(--brand-teal);
    font-family: 'Geist', sans-serif;
    font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
  }
  .coding-h-main {
    font-family: 'Bebas Neue', Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1;
    /* v1.0.5: kleiner — war clamp(3.5rem, 7.5vw, 6.5rem) */
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: #ffffff;
  }

  .coding-features {
    display: grid; grid-template-columns: 1fr; gap: 0.85rem;
    margin-top: 0;
  }
  @media (min-width: 640px) { .coding-features { grid-template-columns: 1fr 1fr; gap: 1rem; } }
  .coding-feature {
    display: flex; align-items: flex-start; gap: 0.75rem;
    color: var(--slate-300); font-size: 0.92rem; line-height: 1.45;
  }
  .coding-feature .check {
    flex-shrink: 0;
    width: 24px; height: 24px; border-radius: 9999px;
    background: rgba(54, 208, 188, 0.20);
    color: var(--brand-teal);
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1px;
  }
  .coding-feature strong { color: #ffffff; display: block; font-weight: 700; font-size: 0.96rem; margin-bottom: 0.1rem; }
  /* Payment + Delivery + Community Row */
  .coding-meta {
    display: flex; flex-direction: column; gap: 0.85rem;
    color: var(--slate-400); font-size: 0.85rem;
  }
  .coding-trust > .coding-meta { margin-top: 0; }
  /* v11.18: Payment-Pills mit echten Brand-Logos auf weißer Pill */
  .coding-payment {
    display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap;
  }
  /* v12.2: Mobile — Payment-Logos in einer Reihe, kompakter, optional scroll wenn zu eng */
  @media (max-width: 767px) {
    .coding-payment {
      flex-wrap: nowrap;
      gap: 0.35rem;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: 0.2rem;
    }
    .coding-payment::-webkit-scrollbar { display: none; }
    .coding-payment .pay-pill {
      flex-shrink: 0;
      height: 26px;
      padding: 0 0.5rem;
      font-size: 10px;
    }
    .coding-payment .pay-pill svg { width: 28px; height: 18px; }
    .pay-pill .paypal-text,
    .pay-pill .visa-text { font-size: 11px; }
    .pay-pill .gpay-text,
    .pay-pill .applepay-text { font-size: 10px; }
  }
  /* v12.4: Mobile Codierung — Overflow fix, Community kompakter */
  @media (max-width: 767px) {
    .coding-card-inner { max-width: 100%; overflow: hidden; }
    .coding-trust { max-width: 100%; overflow: hidden; }
    .coding-community { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .coding-community .avatars > div { width: 24px; height: 24px; }
    .coding-community span { font-size: 0.78rem; line-height: 1.4; }
    .coding-delivery span { font-size: 0.78rem; line-height: 1.4; }
    .coding-cta-row { gap: 1rem; }
    .coding-price-amount { font-size: 1.45rem; }
    .coding-card .btn-primary { width: 100%; justify-content: center; }
  }
  .coding-payment .pay-pill {
    display: inline-flex; align-items: center; justify-content: center;
    height: 30px; padding: 0 0.65rem;
    border-radius: 0.45rem;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 2px 8px -2px rgba(0,0,0,0.35);
    font-family: 'Geist', Arial, sans-serif;
    font-weight: 800; font-size: 11px;
    color: #1a1a1a;
    white-space: nowrap;
    line-height: 1;
  }
  .pay-pill .paypal-text { font-style: italic; letter-spacing: -0.02em; font-size: 13px; }
  .pay-pill .paypal-text .a { color: #003087; }
  .pay-pill .paypal-text .b { color: #009cde; }
  .pay-pill .visa-text { color: #1A1F71; font-style: italic; font-weight: 900; letter-spacing: -0.01em; font-size: 13px; }
  .pay-pill .gpay-text { color: #5F6368; font-weight: 600; font-size: 11px; margin-left: 3px; }
  .pay-pill .applepay-text { color: #000; font-weight: 600; font-size: 11px; margin-left: 2px; }
  .coding-delivery {
    display: flex; align-items: center; gap: 0.5rem;
  }
  .coding-delivery .dot-green {
    width: 8px; height: 8px; border-radius: 9999px;
    background: var(--brand-teal);
    box-shadow: 0 0 0 4px rgba(54,208,188,0.18);
    flex-shrink: 0;
  }
  .coding-community {
    display: flex; align-items: center; gap: 0.85rem;
  }
  .coding-community .avatars {
    display: inline-flex;
  }
  .coding-community .avatars > div {
    width: 30px; height: 30px;
    border-radius: 9999px;
    border: 2px solid var(--bg-dark);
    margin-left: -8px;
    background-size: cover; background-position: center;
  }
  .coding-community .avatars > div:first-child { margin-left: 0; }
  .coding-community strong { color: #ffffff; }
  .coding-card-bg { position: absolute; inset: 0; z-index: -3; }
  /* v2.3.10: aspect-ratio:auto + !important — WP 6.6+ wp-img-auto-sizes-contain-inline-css
   * setzt sonst aspect-ratio aus img-width/height-Attributen → BG-Bild rendert mit native-Aspect
   * statt parent-Höhe → große weiße Lücke unten (Mobile bis 1068px, Desktop 32px). */
  .coding-card-bg img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; display: block; object-fit: cover; filter: brightness(0.4) saturate(110%); }
  .coding-card-overlay {
    position: absolute; inset: 0; z-index: -2;
    background: linear-gradient(135deg, rgba(5,10,20,0.78) 0%, rgba(15,23,42,0.62) 100%);
  }
  .coding-card .mesh-aurora {
    z-index: -1;
    background: radial-gradient(ellipse 60% 60% at 18% 22%, rgba(54,208,188,0.28), transparent 60%),
                radial-gradient(ellipse 50% 50% at 80% 80%, rgba(251,191,36,0.06), transparent 60%);
    opacity: 0.95;
  }

/* Mobile-Overrides für Buybox-Hierarchie — standalone-Wirkung auch ohne home.css */
@media (max-width: 767px) {
  .coding-h-main { font-size: clamp(2.75rem, 11vw, 4rem) !important; line-height: 0.98; }
  .coding-subheading { font-size: clamp(0.72rem, 2.6vw, 0.82rem) !important; letter-spacing: 0.16em !important; }
  .coding-card { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
}
