/* ============================================================
   Standort-Landingpage — Portal-Parität (page-52 / portal.css)
   Ergänzt styles.css für lokale Container-LPs
   ============================================================ */

/* ── Hero: Desktop leicht aufgewertet ── */
.hero {
  background:
    radial-gradient(900px 540px at 85% -10%, var(--blue-50), transparent 60%),
    radial-gradient(720px 480px at -8% 8%, var(--orange-50), transparent 55%),
    var(--white);
}

/* ── Tablet: einspaltig wie Portal-Mobile ── */
@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .hero h1 { max-width: none; }
  .hero-form {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Mobile ≤767px: 1:1 an portal-hero angelehnt ── */
@media (max-width: 767px) {
  .hero {
    overflow-x: clip;
  }

  .hero .wrap {
    display: flex;
    flex-direction: column;
    padding-block: clamp(10px, 2.5vw, 18px);
    gap: clamp(14px, 3.5vw, 20px);
    text-align: center;
  }

  .hero-copy {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* rating-inline → kurzes Eyebrow wie Startseite: „Container mieten · Ort“ */
  .rating-inline {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto;
    max-width: 100%;
    margin: 0 auto 6px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-size: 0;
    line-height: 1.35;
    white-space: normal;
  }

  .rating-inline::before {
    content: "";
    width: 22px;
    height: 2px;
    background: var(--orange-500);
    border-radius: 2px;
    flex: none;
  }

  .rating-inline .ri-ic,
  .rating-inline b { display: none; }

  .rating-inline [data-bind="ort"] {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue-700);
  }

  .rating-inline [data-bind="ort"]::before {
    content: "Container mieten · ";
  }

  .hero h1 {
    font-size: clamp(1.85rem, 6.5vw, 2.35rem);
    max-width: none;
    margin: 6px auto 10px;
    text-align: center;
    line-height: 1.1;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .hero h1 .hl { color: var(--blue-700); }

  .hero .lead {
    font-size: clamp(1.02rem, 3.8vw, 1.15rem);
    max-width: 620px;
    margin: 0 auto 12px;
    text-align: center;
  }

  /* USPs wie .hero-trust auf der Startseite */
  .hero-usps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    width: 100%;
    margin-bottom: 0;
  }

  .hero-usps li {
    font-size: .95rem;
  }

  .hero-call {
    display: none;
  }

  /* Formular-Karte wie searchbox auf der Startseite */
  .hero-form {
    width: 100%;
    max-width: none;
    text-align: left;
    border-radius: 12px;
    padding: clamp(14px, 3.5vw, 18px);
    box-shadow: var(--shadow-lg);
  }

  /* Trustbar: kein negatives Überlappen auf Mobile */
  .trust-card {
    margin-top: 0;
  }

  .trust-item {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ── Grids & Sektionen: Portal-Breakpoints ── */
@media (max-width: 640px) {
  .waste-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .section { padding-block: clamp(28px, 5vw, 40px); }
  .section-head { margin-bottom: clamp(20px, 4vw, 28px); }
  .trustbar .wrap { padding-block: 0; }
  .ablauf .wrap { padding-block: clamp(28px, 5vw, 40px); }

  /* Overflow-Fix: kein Content breiter als Viewport */
  #top {
    overflow-x: clip;
    max-width: 100%;
  }

  .wrap,
  .form-shell,
  .form-aside,
  .form-card,
  .section,
  .ablauf {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Ruhigeres Design: dekorative Hintergründe & Schatten reduzieren */
  .hero {
    background: var(--white);
  }

  .ablauf {
    background: var(--blue-50);
  }

  .ablauf::before,
  .ablauf::after {
    display: none;
  }

  .form-section {
    background: var(--bg-alt);
    overflow-x: clip;
  }

  .hero-form,
  .form-card,
  .trust-card,
  .aside-phone,
  .step,
  .feature,
  .assure-card,
  .eco,
  .guarantee-banner,
  .partner-main,
  .partner-card {
    box-shadow: none;
    border: 1px solid var(--line);
    padding: clamp(14px, 3.5vw, 18px);
    border-radius: 12px;
  }

  .form-aside h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
    overflow-wrap: break-word;
  }

  .form-aside p,
  .form-aside .guarantee li {
    font-size: 1rem;
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .form-aside .guarantee li {
    align-items: flex-start;
  }

  .form-shell {
    gap: clamp(20px, 4vw, 28px);
  }

  .aside-phone {
    flex-wrap: wrap;
    padding: 16px;
  }

  .aside-phone b {
    font-size: 1.25rem;
    word-break: break-word;
  }

  /* Einsatzgebiete: volle Breite, lesbarer Fließtext */
  #gebiete.section--blue {
    overflow-x: clip;
  }

  #gebiete .area-wrap,
  #gebiete .area-wrap > div,
  #gebiete .area-map {
    min-width: 0;
    max-width: 100%;
    width: 100%;
  }

  #gebiete .area-map {
    padding: clamp(14px, 3.5vw, 18px);
    border-radius: 12px;
  }

  #gebiete p {
    font-size: 1.05rem;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  #gebiete h2 {
    overflow-wrap: break-word;
    hyphens: auto;
  }

  .eco {
    margin-top: clamp(20px, 4vw, 28px);
  }
}

@media (max-width: 480px) {
  .section { padding-block: clamp(24px, 4.5vw, 32px); }
}

/* ── Vereinfachtes Anfrage-Popup (seniorenfreundlich, 1 Schritt) ── */
.modal-card--simple {
  width: min(640px, calc(100% - 20px));
  border-radius: var(--radius-lg);
}
.modal-head {
  position: relative;
  padding: clamp(1rem, 3vw, 1.35rem) clamp(1rem, 3vw, 1.5rem) 1rem;
  background: linear-gradient(180deg, var(--blue-50) 0%, #fff 100%);
  border-bottom: 1px solid var(--line-2);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--ink-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.modal-head h2 {
  margin: 0 0 .35rem;
  padding-right: 2.5rem;
  font-size: clamp(1.25rem, 4vw, 1.55rem);
  line-height: 1.15;
}
.modal-sub {
  margin: 0 0 .85rem;
  font-size: clamp(.84rem, 2.8vw, .92rem);
  color: var(--ink-3);
  line-height: 1.45;
}
.modal-card--simple .form-offer-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
}
.modal-card--simple .form-offer-product {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 0;
  padding: .75rem .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.modal-card--simple .form-offer-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-3);
}
.modal-card--simple .form-offer-waste {
  width: 100%;
  min-height: 2.75rem;
  padding: .45rem .65rem;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.modal-card--simple .form-offer-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .15rem;
  padding: .75rem .85rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-sm);
}
.modal-card--simple .form-offer-price .mp-chip-label {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--green-700);
}
.modal-card--simple .form-offer-price .mp-val {
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-weight: 800;
  color: var(--orange-600);
  line-height: 1.1;
}
.modal-card--simple .form-offer-price .mp-val .mp-per {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink-3);
}
.modal-card--simple .form-offer-price .mp-pausch {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.3;
}
.modal-card--simple #modalPrice.ready .form-offer-price {
  border-color: var(--green-300, #86d4a8);
}
.modal-body--simple {
  padding: clamp(1rem, 3vw, 1.25rem) clamp(1rem, 3vw, 1.5rem) 1.5rem;
}
.modal-field {
  margin-bottom: .85rem;
}
.modal-field label {
  display: block;
  margin-bottom: .4rem;
  font-size: clamp(.92rem, 3vw, 1rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.modal-field .label-soft,
.modal-field .opt {
  font-weight: 600;
  color: var(--ink-3);
  font-size: .88em;
}
.modal-field input,
.modal-field select {
  width: 100%;
  min-height: 3.25rem;
  padding: .65rem .85rem;
  font-family: var(--font);
  font-size: clamp(1rem, 3.2vw, 1.08rem);
  font-weight: 500;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.modal-field select {
  padding-right: 2.5rem;
  cursor: pointer;
}
.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}
.modal-field input.err,
.modal-field select.err {
  border-color: #e0524c;
  box-shadow: 0 0 0 3px #f8dad8;
}
.modal-field--hero select {
  font-size: clamp(1.02rem, 3.4vw, 1.12rem);
  font-weight: 700;
}
.modal-size-hint {
  margin: .45rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-3);
  line-height: 1.4;
}
.modal-size-hint.ready {
  color: var(--blue-700);
}
.modal-grid {
  display: grid;
  gap: .85rem;
}
.modal-grid--duo,
.modal-grid--extras {
  grid-template-columns: 1fr 1fr;
}
.modal-card--simple .form-extras {
  margin: .25rem 0 .85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
}
.modal-card--simple .form-extras summary {
  padding: .75rem .85rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.modal-card--simple .form-extras summary::-webkit-details-marker { display: none; }
.modal-card--simple .form-extras-badge {
  margin-left: .35rem;
  padding: .12rem .45rem;
  border-radius: 999px;
  background: var(--line-2);
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-3);
}
.modal-card--simple .form-extras-body {
  padding: 0 .85rem .85rem;
}

.email-hint {
  margin: .85rem 0 0;
  padding: .85rem 1rem;
  border-radius: var(--radius-md, 10px);
  background: var(--blue-50, #eff6ff);
  border: 1px solid var(--blue-200, #bfdbfe);
}
.email-hint-text {
  margin: 0;
  font-size: clamp(.88rem, 3.2vw, .96rem);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink, #1a1a2e);
}
.email-hint-text strong {
  color: var(--blue-700, #1d4ed8);
}
.email-hint-skip {
  display: inline-block;
  margin-top: .65rem;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-3, #64748b);
  text-decoration: underline;
  cursor: pointer;
}
.email-hint-skip:hover,
.email-hint-skip:focus {
  color: var(--ink, #1a1a2e);
}
.modal-field input.email-nudge {
  border-color: var(--blue-500, #3b82f6);
  box-shadow: 0 0 0 3px var(--blue-100, #dbeafe);
}

.modal-card--simple .consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin: .5rem 0 1rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--ink-2);
}
.modal-card--simple .consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  flex: none;
}
.modal-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 1.35rem;
  margin-bottom: 1.25rem;
}
.modal-submit-wrap .btn--cta {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  min-height: 3.35rem;
  font-size: clamp(1rem, 3.2vw, 1.08rem);
}
.modal-submit-note {
  margin: .65rem 0 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-3);
}
.modal-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink-3);
}
.modal-card--simple .modal-phone {
  margin-top: 0;
  padding-top: .75rem;
  border-top: 1px solid var(--line-2);
  font-size: .95rem;
}

@media (max-width: 560px) {
  .modal-card--simple .form-offer-bar,
  .modal-grid--duo,
  .modal-grid--extras {
    grid-template-columns: 1fr;
  }
}
