/* ===========================================================================
 * Hauptstadt-Entsorger — City / location pages (page-city.php)
 *
 * This file was enqueued by functions.php but had never been added, so every
 * block belonging only to this template rendered with no styling at all: the
 * hero photo ran full-bleed with the headline, breadcrumb and calls to action
 * dumped underneath it as plain browser-default text.
 *
 * Requires ui.css (tokens, .hp-section, .hp-container, .hp-rte, .hp-loc-card)
 * and home.css (.hp-splits, .hp-inline-cta, .hp-reviews, .hp-faq), both
 * declared as dependencies in functions.php.
 *
 * The hero is deliberately NOT template-parts/hero.php — that banner is the
 * service pages' signature (photo right, green card left) and a location page
 * reading identically gives the visitor no sense of having arrived somewhere
 * else. This one is centred over a full-bleed photo of the district, held
 * legible by a green veil, with the trust strip below it as a base bar.
 *
 * Contents
 *   1. Hero
 *   2. Trust strip
 *   3. Editorial media
 *   4. Nearby areas footer
 *   5. Contact + form band
 *   6. Responsive
 * ========================================================================= */

/* ---------------------------------------------------------------- 1. Hero */
.hp-chero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 46vw, 560px);
  padding: clamp(48px, 6vw, 92px) 0;
  overflow: hidden;
  background-color: var(--hp-green-dark);
}

.hp-chero__figure {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hp-chero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* The veil is what makes white text safe on ANY district photo — some are a
   bright pavement in full sun. Weighted to the bottom so the trust strip below
   reads as attached to the hero rather than as a separate band. */
.hp-chero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 26, 5, 0.62) 0%, rgba(10, 26, 5, 0.48) 45%, rgba(10, 26, 5, 0.82) 100%),
    radial-gradient(120% 90% at 50% 50%, rgba(22, 48, 10, 0.25), transparent 70%);
}

.hp-chero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}

.hp-chero__crumbs {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.hp-chero__crumbs a {
  color: var(--hp-orange);
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-chero__crumbs a:hover { color: #fff; }
.hp-chero__crumbs .breadcrumb_last { color: rgba(255, 255, 255, 0.85); }

/* A <div>, not an <h1>: the page's real <h1> comes from the section 1
   shortcode further down, and two <h1>s on a page is an SEO problem. */
.hp-chero__title {
  max-width: 20ch;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hp-chero__title span { color: var(--hp-orange); }

.hp-chero__lede {
  max-width: 62ch;
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.hp-chero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 6px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Underlined link rather than a filled pill: two solid buttons in the middle
   of a photo read as a landing-page advert. */
.hp-chero__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15.5px;
  color: #fff;
  text-decoration: none;
}

.hp-chero__cta::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--hp-orange);
  transform-origin: left center;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hp-chero__cta:hover { color: var(--hp-orange); }
.hp-chero__cta:hover::after { transform: scaleX(1.06); }
.hp-chero__cta svg { transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1); }
.hp-chero__cta:hover svg { transform: translateX(5px); }

.hp-chero__divider {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.24);
}

.hp-chero__tel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-chero__tel svg { color: var(--hp-orange); flex-shrink: 0; }
.hp-chero__tel:hover { color: var(--hp-orange); }

.hp-chero__rating {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.hp-chero__rating:hover {
  background-color: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 165, 0, 0.5);
}

.hp-chero__rating strong {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
}

.hp-chero__stars {
  display: inline-flex;
  gap: 1px;
  color: var(--hp-orange);
  line-height: 0;
  flex-shrink: 0;
}

/* -------------------------------------------------------- 2. Trust strip */
.hp-city-trust {
  background-color: var(--hp-green-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
}

.hp-city-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.hp-city-trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}

.hp-city-trust__item svg { flex-shrink: 0; color: var(--hp-orange); }

.hp-city-trust__item + .hp-city-trust__item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* --------------------------------------------------- 3. Editorial media
 * The rows reuse home.css's .hp-split, but the City template's images carry no
 * .hp-split__img class — so without this they render at natural size and blow
 * the row apart. Same treatment as .hp-split__img, sticky included. */
.hp-city-media img {
  position: sticky;
  top: 104px;
  width: 100%;
 height: clamp(280px, 28vw, 500px);
  object-fit: cover;
  object-position: center;
  border-radius: clamp(14px, 1.8vw, 24px);
  display: block;
  box-shadow: var(--hp-shadow);
}

/* --------------------------------------------------- 4. Nearby areas foot */
.hp-city-areas__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: clamp(26px, 3vw, 40px);
}

.hp-city-areas__note {
  margin: 0;
  max-width: 64ch;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--hp-body);
}

/* ------------------------------------------------------ 5. Contact + form */
.hp-city-contact {
  position: relative;
  overflow: hidden;
  background-color: var(--hp-green-dark);
}

.hp-city-contact::before {
  content: "";
  position: absolute;
  top: -25%;
  right: -8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.16), transparent 68%);
  pointer-events: none;
}

.hp-city-contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: center;
}

.hp-city-contact__list {
  list-style: none;
  margin: clamp(26px, 3vw, 38px) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hp-city-contact__row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--hp-radius-sm);
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.hp-city-contact__row:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 165, 0, 0.4);
}

.hp-city-contact__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background-color: rgba(255, 165, 0, 0.16);
  color: var(--hp-orange);
}

/* The row's second child is an unclassed <span> wrapping the three lines. */
.hp-city-contact__row > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hp-city-contact__label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.hp-city-contact__value {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  word-break: break-word;
  transition: color 0.2s ease;
}

a.hp-city-contact__value:hover { color: var(--hp-orange); }

.hp-city-contact__meta {
  font-family: var(--font-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
}

/* ---- the form card ---- */
.hp-city-form {
  padding: clamp(24px, 3vw, 40px);
  border-radius: clamp(16px, 2vw, 24px);
  background-color: #fff;
  box-shadow: var(--hp-shadow-lg);
}

.hp-city-form__title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.25;
  color: var(--hp-ink);
}

.hp-city-form__sub {
  margin: 0 0 22px;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--hp-body);
}

/* WPForms 1510, scoped to this card so no other form is touched. main.css
   already sets its borders and submit colours by id; these only fix the two
   things that clash on a white card inside a dark band — the field rhythm and
   the blue focus ring, which belongs to no palette on this site. */
.hp-city-form .wpforms-container,
.hp-city-form div.wpforms-container-full { margin: 0; }

.hp-city-form .wpforms-field { margin: 0 0 16px !important; padding: 0 !important; }
.hp-city-form .wpforms-field:last-of-type { margin-bottom: 0 !important; }

.hp-city-form .wpforms-field-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--hp-ink);
  margin-bottom: 6px;
}

.hp-city-form input[type="text"],
.hp-city-form input[type="email"],
.hp-city-form input[type="tel"],
.hp-city-form input[type="number"],
.hp-city-form select,
.hp-city-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 13px 16px !important;
  border-radius: 10px !important;
  font-family: var(--font-body);
  font-size: 16px !important; /* 16px stops iOS zooming on focus */
  line-height: 1.5 !important;
}

.hp-city-form input:focus,
.hp-city-form select:focus,
.hp-city-form textarea:focus {
  border-color: var(--hp-green) !important;
  box-shadow: 0 0 0 3px rgba(39, 108, 3, 0.12) !important;
  outline: none !important;
}

.hp-city-form button.wpforms-submit { width: 100%; }

/* --------------------------------------------------------- 6. Responsive */

/* Clear the fixed mobile logo bar — it is position:fixed and opaque, so
   without this the breadcrumb renders underneath it. */
@media (max-width: 1024px) {
  .hp-chero { padding-top: calc(var(--he-mobile-header, 61px) + clamp(32px, 6vw, 64px)); }
}

@media (max-width: 900px) {
  .hp-city-contact__grid { grid-template-columns: minmax(0, 1fr); }

  /* Nothing to stick to in a single column — the picture sits above its text. */
  .hp-city-media img {
    position: static;
    height: clamp(230px, 40vw, 330px);
  }

  .hp-city-trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-city-trust__item + .hp-city-trust__item { border-left: none; }
  .hp-city-trust__item:nth-child(2n) { border-left: 1px solid rgba(255, 255, 255, 0.14); }
}

@media (max-width: 600px) {
  .hp-chero__inner { gap: 14px; }

  .hp-chero__actions {
    flex-direction: column;
    gap: 16px;
  }

  .hp-chero__divider { width: 34px; height: 1px; }
  .hp-chero__tel { font-size: 20px; }

  .hp-city-trust__grid { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .hp-city-trust__item,
  .hp-city-trust__item:nth-child(2n) { border-left: none; }

  .hp-city-areas__foot { flex-direction: column; align-items: flex-start; }
}
