/* Startseite (web/templates/web/index.html) -- Figma "Home - Entwurf v2".
   Mobile first: die Basis-Styles beschreiben das 402px-Layout, die
   Media-Queries (>=768px / >=992px) bauen daraus das Desktop-Layout.
   Alle Klassen sind mit `hp-` (home page) praefixiert, damit sie sich nicht
   mit den globalen `atz-`-Styles aus base.css ueberschneiden. */

:root {
  --hp-bg-shaded: #F5F5F5;
  --hp-border: #E7E7E7;
  --hp-text: #3D3C3F;
  --hp-muted: #7A7A7A;
  --hp-gold: #E8A33D;
  --hp-radius: 10px;
}

/* ------------------------------------------------------------ Grundlagen */

.hp-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.hp-container--narrow {
  max-width: 840px;
}

.hp-section {
  padding: 40px 0;
}

.hp-section--shaded {
  background-color: var(--hp-bg-shaded);
}

.hp-section__head {
  margin-bottom: 24px;
}

.hp-section__head--center {
  text-align: center;
}

.hp-section__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hp-text);
}

.hp-section__subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-section__foot {
  margin: 20px 0 0;
  text-align: center;
}

.hp-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atz-red);
}

.hp-card {
  background-color: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 20px;
}

.hp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--atz-red);
}

.hp-link:hover {
  color: var(--hp-text);
}

.hp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.hp-btn--primary {
  background-color: var(--atz-red);
  color: #fff;
}

.hp-btn--primary:hover {
  background-color: #9c0720;
  color: #fff;
}

.hp-btn--outline {
  background-color: transparent;
  border-color: var(--atz-red);
  color: var(--atz-red);
}

.hp-btn--outline:hover {
  background-color: var(--atz-red);
  color: #fff;
}

.hp-btn--ghost {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.hp-btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hp-btn--block {
  width: 100%;
}

.hp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.hp-badge--verified {
  background-color: rgba(46, 158, 79, 0.12);
  color: var(--atz-green-dark);
}

.hp-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background-color: var(--atz-green);
}

/* Sterne: graue Basisreihe, darueber die eingefaerbte Reihe auf Breite
   rating/5 (inline `width` im Template, weil der Wert aus den Daten kommt). */
.hp-stars {
  position: relative;
  display: inline-block;
  color: var(--hp-border);
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.hp-stars__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--hp-gold);
  white-space: nowrap;
}

/* --------------------------------------------------------------- Hero */

.hp-hero {
  background-color: var(--hp-bg-shaded);
  padding: 28px 0 36px;
}

.hp-hero__title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--hp-text);
}

.hp-hero__lead {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-usp-list {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hp-usp {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--hp-text);
}

.hp-usp__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: var(--atz-red);
}

.hp-hero__ratings {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.hp-rating-chip {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
  color: var(--hp-text);
}

.hp-rating-chip .hp-stars {
  color: var(--hp-gold);
  font-size: 16px;
}

.hp-rating-chip__value {
  font-size: 16px;
  font-weight: 700;
}

.hp-rating-chip__label {
  font-size: 12px;
  line-height: 1.3;
  color: var(--hp-muted);
}

/* Formular "Transportkosten berechnen" */

.hp-form {
  background-color: #fff;
  border: 1px solid var(--hp-border);
  border-radius: var(--hp-radius);
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.hp-form__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-form__subtitle {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-form__row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-field {
  margin-bottom: 12px;
}

.hp-form__row .hp-field {
  margin-bottom: 0;
}

.hp-field__label {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hp-text);
}

.hp-field__control {
  position: relative;
}

.hp-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--hp-border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--hp-text);
  background-color: #fff;
}

.hp-input::placeholder {
  color: #B5B5B5;
}

.hp-input:focus {
  outline: none;
  border-color: var(--atz-red);
  box-shadow: 0 0 0 3px rgba(189, 9, 38, 0.12);
}

.hp-field__control--pin .hp-input {
  padding-left: 34px;
}

/* Karten-Pin vor dem Von-/Nach-Feld (data-URI, damit kein Extra-Request). */
.hp-field__control--pin::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 11px;
  width: 14px;
  height: 14px;
  transform: translateY(-50%);
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23BD0926'%3E%3Cpath d='M12 2a7 7 0 00-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 00-7-7zm0 9.5A2.5 2.5 0 1112 6.5a2.5 2.5 0 010 5z'/%3E%3C/svg%3E");
}

.hp-select {
  appearance: none;
  padding-right: 32px;
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='%237A7A7A'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
}

.hp-form__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--hp-muted);
}

.hp-form__note-icon {
  width: 13px;
  height: 13px;
  color: var(--hp-muted);
}

.hp-btn__arrow {
  font-size: 1em;
}

/* --------------------------------------------- So funktioniert's */

.hp-steps,
.hp-benefits,
.hp-requests {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hp-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hp-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--atz-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.hp-step__icon,
.hp-benefit__icon {
  width: 28px;
  height: 28px;
  opacity: 0.85;
}

.hp-step__title,
.hp-benefit__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-step__text,
.hp-benefit__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

.hp-benefit__icon {
  margin-bottom: 12px;
}

/* ------------------------------------ Aktuelle Transportanfragen */

.hp-section__head-action {
  margin-top: 16px;
  width: 100%;
}

.hp-request {
  padding: 14px 16px;
}

.hp-request__age {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--hp-muted);
}

.hp-request__route {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-request__city {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hp-request__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--hp-border);
  font-size: 13px;
  color: var(--hp-muted);
}

.hp-request__distance {
  white-space: nowrap;
  font-weight: 600;
  color: var(--hp-text);
}

/* --------------------------------------------------- Slider */

.hp-slider {
  position: relative;
}

.hp-slider__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 0 4px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hp-slider__track::-webkit-scrollbar {
  display: none;
}

.hp-slider__track > * {
  flex: 0 0 82%;
  scroll-snap-align: start;
}

.hp-slider__nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.hp-slider__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--hp-border);
  border-radius: 50%;
  background-color: #fff;
  color: var(--hp-text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.hp-slider__btn:hover {
  border-color: var(--atz-red);
  color: var(--atz-red);
}

.hp-slider__btn--primary {
  background-color: var(--atz-red);
  border-color: var(--atz-red);
  color: #fff;
}

.hp-slider__btn--primary:hover {
  background-color: #9c0720;
  border-color: #9c0720;
  color: #fff;
}

/* --------------------------------------- Transportfirmen-Karte */

.hp-firm {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hp-firm__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.hp-firm__logo {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: 1px solid var(--hp-border);
  border-radius: 6px;
  background-color: #fff;
  padding: 4px;
}

.hp-firm__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hp-text);
}

.hp-firm__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.hp-firm__rating-value {
  font-weight: 700;
  color: var(--hp-text);
}

.hp-firm__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--hp-muted);
}

.hp-firm__link {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hp-border);
}

/* ------------------------------------------------ Kundenstimmen */

.hp-testimonials {
  background: radial-gradient(circle at 12% 18%, rgba(189, 9, 38, 0.10), transparent 42%),
              radial-gradient(circle at 88% 78%, rgba(189, 9, 38, 0.08), transparent 45%),
              #FDF6F7;
}

.hp-google-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 10px 16px;
  background-color: #fff;
  border: 1px solid var(--hp-border);
  border-radius: 8px;
}

.hp-google-box__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hp-google-box__value {
  font-size: 20px;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-google-box__label {
  margin: 0;
  font-size: 12px;
  color: var(--hp-muted);
}

.hp-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hp-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.hp-review__quote {
  position: relative;
  margin: 0;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-text);
}

.hp-review__quote::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  left: 0;
  font-size: 30px;
  line-height: 1;
  color: rgba(189, 9, 38, 0.35);
}

.hp-review__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--hp-border);
}

.hp-review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--hp-bg-shaded);
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text);
  text-transform: uppercase;
}

.hp-review__name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--hp-text);
}

.hp-review__date {
  display: block;
  font-size: 12px;
  color: var(--hp-muted);
}

/* Die erste (hervorgehobene) Bewertungskarte ist dunkel. */
.hp-review--featured {
  background-color: var(--hp-text);
  border-color: var(--hp-text);
}

.hp-review--featured .hp-review__quote,
.hp-review--featured .hp-review__name {
  color: #fff;
}

.hp-review--featured .hp-review__quote::before {
  color: rgba(255, 255, 255, 0.45);
}

.hp-review--featured .hp-review__date {
  color: rgba(255, 255, 255, 0.7);
}

.hp-review--featured .hp-review__foot {
  border-top-color: rgba(255, 255, 255, 0.2);
}

.hp-review--featured .hp-review__avatar {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.hp-review--featured .hp-badge--verified {
  background-color: rgba(255, 255, 255, 0.15);
  color: #8FD6A4;
}

/* ------------------------------------------------------ Preise */

.hp-prices__intro {
  margin-bottom: 20px;
}

.hp-prices__intro .hp-link {
  margin-top: 12px;
}

.hp-price-list {
  margin: 0;
  padding: 8px 16px;
  list-style: none;
}

.hp-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hp-border);
  font-size: 14px;
}

.hp-price-row:last-child {
  border-bottom: none;
}

.hp-price-row__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--atz-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.hp-price-row__label {
  flex: 1 1 auto;
  color: var(--hp-text);
}

.hp-price-row__value {
  white-space: nowrap;
  font-weight: 700;
  color: var(--atz-red);
}

/* ------------------------------------- CTA-Banner (dunkel) */

.hp-banner {
  background-color: var(--hp-text);
  padding: 32px 0;
  color: #fff;
}

.hp-banner__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
}

.hp-banner__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.hp-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* -------------------------------------------- Haeufige Fragen */

.hp-faq__item {
  margin-bottom: 10px;
  border: 1px solid var(--hp-border);
  border-radius: 8px !important;
  overflow: hidden;
}

.hp-faq__button {
  padding: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--hp-text);
  background-color: #fff;
}

.hp-faq__button:not(.collapsed) {
  background-color: rgba(189, 9, 38, 0.04);
  color: var(--atz-red);
  box-shadow: none;
}

.hp-faq__button:focus {
  border-color: var(--hp-border);
  box-shadow: none;
}

.hp-faq__body {
  padding: 0 16px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--hp-muted);
}

/* --------------------------------------------- Abschluss-CTA */

.hp-final__inner {
  text-align: center;
}

.hp-final .hp-btn {
  margin-top: 20px;
}

/* ============================================ Tablet (>=768px) */

@media (min-width: 768px) {
  .hp-section {
    padding: 56px 0;
  }

  .hp-section__title {
    font-size: 30px;
  }

  .hp-hero__title {
    font-size: 34px;
  }

  .hp-form__row {
    flex-direction: row;
  }

  .hp-form__row .hp-field {
    flex: 1 1 0;
  }

  .hp-section__head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
  }

  .hp-section__head-action {
    margin-top: 0;
    width: auto;
    white-space: nowrap;
  }

  .hp-steps,
  .hp-benefits {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-requests {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-slider__track > * {
    flex-basis: 45%;
  }

  .hp-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .hp-banner__text {
    margin-bottom: 0;
  }

  .hp-banner__actions {
    flex-direction: row;
    flex: 0 0 auto;
  }

  .hp-google-box {
    margin-top: 0;
  }

  .hp-prices {
    display: flex;
    align-items: flex-start;
    gap: 40px;
  }

  .hp-prices__intro {
    flex: 1 1 0;
    margin-bottom: 0;
  }

  .hp-price-list {
    flex: 1 1 0;
  }
}

/* =========================================== Desktop (>=992px) */

@media (min-width: 992px) {
  .hp-hero {
    padding: 56px 0 72px;
  }

  .hp-hero__inner {
    display: flex;
    align-items: flex-start;
    gap: 64px;
  }

  .hp-hero__intro {
    flex: 1 1 0;
    padding-top: 8px;
  }

  .hp-hero__title {
    font-size: 40px;
    max-width: 14em;
  }

  .hp-hero__lead {
    max-width: 34em;
  }

  /* Die Bewertungs-Chips sind eine reine Mobile-Ergaenzung; auf dem Desktop
     steht die Google-Bewertung im Kundenstimmen-Block. */
  .hp-hero__ratings {
    display: none;
  }

  .hp-form {
    flex: 0 0 420px;
    padding: 24px;
  }

  .hp-benefits {
    grid-template-columns: repeat(4, 1fr);
  }

  .hp-requests {
    grid-template-columns: repeat(4, 1fr);
  }

  .hp-slider__track > * {
    flex-basis: calc((100% - 48px) / 4);
  }

  .hp-section__foot {
    text-align: right;
  }

  .hp-steps .hp-card,
  .hp-benefits .hp-card {
    padding: 24px;
  }
}
