/* ===== Basics & Vars ===== */
:root{
  --brand: #49a5a2;
  --ink: #1f1f1f;
  --muted: #666;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,.14);
}

*{ box-sizing: border-box; }
html, body{
  margin:0;
  padding:0;
  color:var(--ink);
  background:#fff;
  overflow-x:hidden;
}



/* ===== HERO ===== */
.lead-hero{
  position: relative;
  isolation:isolate;
  padding: clamp(26px, 5vw, 36px) 0 clamp(34px, 8vw, 56px);
}
.lead-hero__media{
  position:absolute; inset:0; z-index:-2; margin:0;
}
.lead-hero__media img{
  width:100%;
  height: var(--heroFixedH) !important;
  min-height: var(--heroFixedH) !important;
  object-fit:cover;
  display:block;
}
.lead-hero__overlay{
  position:absolute; inset:0; display:block;
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.55));
}

/* Force overlay to fixed hero height */
.lead-hero__overlay{
  height: var(--heroFixedH) !important;
  min-height: var(--heroFixedH) !important;
}

/* Overlay: gleicher Shift wie Bild → keine helle Kante mehr */
.lead-hero__overlay {
  position: absolute;
  inset: 0;
  height: var(--heroFixedH);
  min-height: var(--heroFixedH);
  background: linear-gradient(
              to top,
              rgba(0,0,0,.95) 0%,
              rgba(0,0,0,.64) 48%,
              rgba(0,0,0,.44) 80%,
              rgba(0,0,0,0.25) 100%);
  transform: translateY(calc(var(--heroShift) * -1)) scale(calc(1 + 0.18 * var(--p)));
  transform-origin: center;
  will-change: transform;
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  z-index: 1;
}

/* Grid: links Copy, rechts Formular */
.lead-hero__wrap{
  width:min(1200px,92%); margin:0 auto;
  display:grid;
  grid-template-columns: 1.05fr .95fr;       /* genug Platz für Formular */
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: clamp(6%, 9vh, 12%);
  touch-action: pan-y !important;
  overflow: visible !important;
  overscroll-behavior: contain;
}

/* Copy */
.lead-eyebrow{
  margin:0 0 6px; text-transform:uppercase; letter-spacing:.12em; font-size:.85rem; color:#49a5a2;
}
.lead-title{
  margin:0 0 12px 0;
  font-family: "Kaisei Tokumin", serif;
  font-size: clamp(2.2rem, 5.2vw, 4.0rem);
  font-weight: 300;
  line-height:1.05;
  color:#fff;
  text-shadow:0 2px 22px rgba(0,0,0,.26);
  max-width: 18ch;
  margin-top: 15px;
}
.lead-intro{
  margin:0 0 16px;
  color: rgba(255,255,255,.94);
  line-height:1.65;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  max-width: 65ch;
  margin-top: 20px;
  font-weight: 200;
}
.lead-points{
  list-style:none; margin:20px 0 0; padding:0; color:#fff; margin-top: 15px;
}
.lead-points li{
  display:flex; gap:12px; align-items:flex-start; margin:16px 0; 
  line-height:1.4; font-size: clamp(1rem, 1.2vw, 1.18rem); 
  color: #fff; font-weight: 100; margin-top: 20px; width: 450px;
}
.lead-points .ok{
  display:inline-block;
  width:auto;
  height:auto;
  margin-top:2px;
  background:none;
  border:none;
  box-shadow:none;
  border-radius:0;
  color:#49a5a2;
  font-weight:600;
  font-size:1.2rem;
  line-height:1;
}

/* Bewertung unter der Liste */
.lead-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  color: rgba(255, 255, 255, .95);
}

.lead-rating__score {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}

.lead-rating__stars {
  font-size: 1.2rem;
  color: #fbbf24; /* goldene Sterne */
  letter-spacing: 2px;
}

.lead-rating__count {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, .85);
}


/* Formular-Card rechts (dein Kontaktfeld) */
.lead-form .contact-section{ max-width:none; margin:0; padding:0; }
.lead-form .contact-form{
  border: 1px solid #dcdcdc; border-radius: var(--radius); background: #ffffffe7;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 26px);
}

/* WICHTIG: Reset nur lokal, ohne transform: none; (damit Reveal funktioniert) */
.lead-form .contact-form, 
.lead-form .contact-form *{
  writing-mode: horizontal-tb !important;
  text-orientation: initial !important;
  white-space: normal !important;
  direction: ltr !important;
  float: none !important;
  letter-spacing: normal !important;
  box-sizing: border-box;
  max-width: 100%;
}

/* Felder/Grids: aus deinem Formular, minimal getunt */
.lead-form .grid.two{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px){

  .lead-form .contact-form{
  border: 1px solid #dcdcdc; border-radius: var(--radius); background: #ffffff;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.6vw, 26px);
}
  /* Hero einspaltig: zuerst Copy, dann Formular */
  .lead-hero{ padding: 22px 0 38px; }
  .lead-hero__wrap{
    width: min(700px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "form";
    gap: 18px;
    align-items: start;
    margin-top: clamp(28px, 8vh, 56px);
  }
  /* Children in Areas mappen (ohne HTML-Anpassung) */
  .lead-hero__wrap > :first-child{ grid-area: copy; }
  .lead-hero__wrap > :last-child{ grid-area: form; }

  /* Liste & Rating mit Luft nach unten */
  .lead-points{ margin: 14px 0 12px; }
  .lead-rating{ margin: 8px 0 4px; }

  /* Formular-Spalten einspaltig */
  .lead-form .grid.two{ grid-template-columns: 1fr; }

  /* Formular-Card: volle mobile Breite (innerhalb Wrap), zentriert */
  .lead-form{ width: 100%; }
  .lead-form .contact-form{
    width: 100%;
    max-width: 100%;
    margin: 6px auto 0;
    padding: 16px 16px 18px;
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  /* Prevent any horizontal overflow on mobile */
  .lead-hero,
  .lead-hero__wrap,
  .lead-form{ overflow-x: hidden; }

  /* Ensure the contact card never exceeds the viewport width */
  .lead-form .contact-form{
    width: 100%;                /* hard clamp to container */
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;     /* already global, keep local for safety */
  }

  /* Bullet items were fixed width (450px) — make them fluid on mobile */
  .lead-points li{ width: 100%; }

  /* Lesbarkeit Eingabefelder mobil erhöhen */
  .lead-form .field label{ font-size: .95rem; }
  .lead-form .field input,
  .lead-form .field select,
  .lead-form .field textarea{ font-size: .95rem; }

  /* Inputs: avoid accidental overflow due to shadows/borders */
  .lead-form .field input,
  .lead-form .field select,
  .lead-form .field textarea{ max-width: 100%; }
}

@media (max-width: 420px){
  .lead-hero__wrap{ width: 94%; }
  .lead-form .contact-form{ padding: 14px; border-radius: 10px; }
}

/* Header im Formular */
.lead-form .contact-header h2{
  margin:0 0 6px; font-family: "Kaisei Tokumin", serif; font-size:1.5rem; font-weight:400; color:#2e2e2e;
}
.lead-form .contact-header p{
  margin:0 0 6px; color:#4a4a4a; font-weight:300; font-size:.75rem;
}

/* Inputs */
.lead-form .field label{ display:block; font-weight:400; font-size:.95rem; margin: 8px 0 6px; }
.lead-form .field input,
.lead-form .field select,
.lead-form .field textarea{
  width:100%; padding:10px; font-size:.6rem; border:1px solid #d3d3d3; border-radius:8px; background:#fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-form .field input:focus,
.lead-form .field select:focus,
.lead-form .field textarea:focus{
  border-color:var(--brand); box-shadow:0 0 0 3px rgba(58,166,160,.15);
}
.lead-form .field textarea{ min-height: 130px; resize: vertical; }

/* Checkboxen */
.lead-form .checkbox-group{ display:grid; gap:10px; margin-top:6px; }
.lead-form .checkbox{ display:grid; grid-template-columns: 20px 1fr; column-gap:10px; align-items:start; }
.lead-form .checkbox .label-text{ font-size:.75rem; line-height:1.5; font-weight:300; color:#333; }

/* Links im Formular: Gecko-Farbe (Datenschutz, Hinweis) */
.lead-form .checkbox .label-text a{
  color: var(--brand);
  text-decoration: underline;
  font-weight: 500;
}
.lead-form .checkbox .label-text a:hover{
  color: #49a5a2;
  text-decoration: none;
}

/* Hinweis-Absatz unter dem Formular + Linkfarbe */
.lead-form .contact-form .note{
  font-size: .65rem;
  color: #666;
  margin: 6px 0 10px;
}
.lead-form .contact-form .note a{
  color: var(--brand);
  text-decoration: underline;
  font-weight: 500;
}
.lead-form .contact-form .note a:hover{
  color: #49a5a2;
  text-decoration: none;
}

/* Button */
.lead-form .btn-primary{
  background: var(--brand);
  color:#fff !important;
  border:1px solid var(--brand);
  padding: 10px 30px; 
  border-radius:8px; 
  font-weight:300;
  Font-size: 15px;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
  margin-top: 10px;
}
.lead-form .btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0,0,0,.2); }
.lead-form .btn-primary:disabled{ opacity:.6; cursor:not-allowed; }

.lead-form .status{ display:none; margin-top:10px; font-size:.95rem; }
.lead-form .success{ color:#49a5a2; }
.lead-form .error{ color:#b42318; }

/* ===== Partner ===== */
/* ===== Partner ===== */
.lead-partners {
    background:#fff;
    margin-top: 100px;
    padding: clamp(36px, 6vw, 70px) 0;
}

.partners-wrap {
    width:min(1200px,92%);
    margin:0 auto;
    text-align:center;
}

.partners-eyebrow {
    text-transform:uppercase;
    letter-spacing:.12em;
    font-size:.85rem;
    color:#49a5a2;
    margin:0 0 6px;
}

.partners-title {
    margin:0 0 16px;
    font-family: "Kaisei Tokumin", serif;
    font-weight:500;
    font-size: clamp(1.6rem, 3.0vw, 2.6rem);
}

/* Dynamisches Grid – immer mittig, bricht automatisch um */
.partners-logos {
    display:grid;
    margin-top: 50px;
    justify-content:center;              /* ganze Gridfläche mittig */
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    align-items:center;
}

/* Logos */
.partners-logos img {
    max-width:160px;
    width:100%;
    height:auto;
    justify-self:center;                 /* jedes Logo einzeln zentrieren */
    opacity:.85;
}

/* Mobil-Optimierung */
@media (max-width: 600px) {
    .partners-logos {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 20px;
    }
    
    .partners-logos img {
        max-width:140px;
    }
}


/* Google Bewertungen - Bänder */


.reviews-marquee{
  --gap: 18px;
  --card-w: 300px;
  --card-h: 200px;
  --duration: 40s;  
  position: relative;
  padding: 40px 0 60px;
  overflow: hidden;
  margin-top: 100px;
}

.reviews-marquee{
  /* Stelle hier deine Wunschbreite ein */
  --belt-max: 1200px;
  width: min(100%, var(--belt-max));
  margin-inline: auto;
  position: relative;
  padding-inline: clamp(12px, 3vw, 24px);
}

.reviews-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.reviews-score {
  text-align: center;
  margin-bottom: .5rem;
}

.reviews-score .score-value {
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 700;
  color: #3c3c3c;
}

.reviews-stars {
  color: #f5a623;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.reviews-eyebrow {
  margin-top: 4px;
  font-size: .95rem;
  color: #555;
}

.reviews-score .score-value {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.reviews-eyebrow {
  margin: 0;
  font-size: .95rem; /* Eyebrow-Style */
  letter-spacing: .02em;
  opacity: .85;
  display: inline-flex;
  gap: .5rem;
}

.reviews-stars {
  letter-spacing: .15em;
  color: #f5a623; /* Stern-Gelb */
}
.reviews-marquee .container h2{
  color: #3c3c3c;
  text-align:center;
  margin:0 0 20px; 
  font-size: clamp(1.6rem, 3.0vw, 2.5rem);
  font-family: "Kaisei Tokumin", serif;
}

/* Eine „Belt“-Zeile */
.reviews-marquee .belt{ 
  position:relative; 
  height:var(--card-h); 
  overflow:hidden; }

/* === WICHTIG: Track hat KEIN gap ===
   Wir fügen A) lane A, B) einen exakten Spacer und C) lane B ein.
   Distanz = Breite(lane A) + Breite(Spacer) → Frame 0 == Frame N → kein Sprung. */
.reviews-marquee .track{
  position:absolute; inset:0 auto 0 0;
  display:flex; align-items:center; height:100%;
  gap: 0;
  will-change: transform;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}
.reviews-marquee .track.ready[data-direction="rtl"]{ animation-name: reviews-rtl; animation-duration: var(--duration); }
.reviews-marquee .track.ready[data-direction="ltr"]{ animation-name: reviews-ltr; animation-duration: var(--duration); }

@keyframes reviews-rtl{ from{transform:translate3d(0,0,0);} to{transform:translate3d(calc(-1 * var(--distance)),0,0);} }
@keyframes reviews-ltr{ from{transform:translate3d(calc(-1 * var(--distance)),0,0);} to{transform:translate3d(0,0,0);} }

/* Eine Lane = Reihe Karten mit gap */
.reviews-marquee .lane{ display:flex; gap: var(--gap); }
/* exakter Abstand zwischen Lane A und Lane B (genau = --gap) */
.reviews-marquee .lane-gap{ flex:0 0 var(--gap); width:var(--gap); height:1px; }

/* Karten – harte Breite, keine Margins (sonst Lücken) */
.reviews-marquee .review-card{
  box-sizing: border-box;
  flex: 0 0 var(--card-w);
  min-width: var(--card-w);
  height: var(--card-h);
  margin: 0 !important;
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  display: grid; grid-template-rows: auto 1fr auto; gap:10px;
}
.reviews-marquee .rev-head{display:flex;align-items:center;gap:10px;}
.reviews-marquee .rev-avatar{width:36px;height:36px;border-radius:50%;background:var(--brand,#49a5a2);color:#fff;display:grid;place-items:center;font-weight:700;}
.reviews-marquee .rev-name{font-weight:700;color:#1f2937;}
.reviews-marquee .rev-date{font-size:12px;color:#6b7280;white-space:nowrap;}
.reviews-marquee .rev-stars{margin-left:auto;font-size:0;white-space:nowrap;}
.reviews-marquee .rev-stars::before{content:"★★★★★"; font-size:14px; color:#fbbf24;}
.reviews-marquee .rev-text{font-size:.95rem;line-height:1.35;color:#374151;}
.reviews-marquee .rev-link{font-size:13px;color:var(--brand,#49a5a2);font-weight:700;text-decoration:none;}

.reviews-marquee .edge{position:absolute;top:0;bottom:0;width:150px;pointer-events:none;z-index:2;}
.reviews-marquee .edge-left{left:0;background:linear-gradient(to right,#fff,transparent);}
.reviews-marquee .edge-right{right:0;background:linear-gradient(to left,#fff,transparent);}

/* Hover → Pause */
.reviews-marquee:hover .track{ animation-play-state: paused; }

/* Motion & Responsive */
@media (prefers-reduced-motion: reduce){ .reviews-marquee .track{ animation:none !important; } }
@media (max-width: 900px){ .reviews-marquee{ --card-w: 280px; --card-h: 200px; } }
@media (max-width: 640px){ .reviews-marquee{ --card-w: 240px; --card-h: 190px; } }


.reviews-marquee .track{
  backface-visibility: hidden;
  transform: translateZ(0); /* verhindert Repaint-Jitter am Loop */
}

.belt + .belt{ margin-top:14px; }

/* Mobile Optimierungen für Reviews */
@media (max-width: 767px){
  .reviews-marquee .container h2{
    font-size: clamp(1.4rem, 5vw, 2rem); /* etwas kleiner für mobile */
    margin-bottom: 16px;
  }
  .reviews-marquee{
    --card-w: 180px;   /* schmaler → 2-3 Karten sichtbar */
    --card-h: 160px;   /* etwas kompakter in der Höhe */
    --gap: 14px;
    padding: 28px 0 40px;
  }
  .reviews-marquee .review-card{
    padding: 10px 12px;
    font-size: .9rem;
  }
  .reviews-marquee .rev-text{
    font-size: .85rem;
    line-height: 1.3;
  }
}
