/*
 * Directory pages: home (boards Main, MobHome), all cities (XCities, MobCities), search results and the place
 * search component. Loaded only by templates extending directory/base.html. Values that are not tokens come
 * from the boards. The place page (boards City, MobCity, MobFilter) follows the search results.
 */
:root {
  --dir-hero-ink: #D6ECEF;
  --dir-pink: #FFB3C0;
  --dir-band: #DCEBEE;
  --dir-band-line: #CADDE1;
  --dir-letter-off: #A9BEC2;
  --dir-peach: #FBDDD3;
  --dir-rose: #EFDCE6;
  --dir-mint: #DCF0E4;
  --dir-lime: #F3F1D8;
  --dir-sand: #FBEBCE;
  --dir-lilac: #DCE4F2;
  --dir-ice: #D6EBEF;
  --dir-match: #17663A;
  --dir-emergency-line: #F5A9B6;
  /* Place page redesign (owner decision, plan section 10): warning line of a card outside the filters
     (7.0:1 on white), outline of an empty filter pill, the divider after the search, the "on" dot of a
     toggle pill. */
  --dir-warn: #8A5A00;
  --dir-pill-line: #B9D0D4;
  --dir-divider: #CFE0E3;
  --dir-open-dot: #7FE0A6;
}

/* Place search (c-directory.place-search) */
.place-search {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.place-search--hero {
  padding: var(--sp-4);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-bubble);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-3);
}
.place-search__label {
  font-size: var(--fs-overline);
  font-weight: 700;
  letter-spacing: var(--pl-label-tracking);
  text-transform: uppercase;
  color: var(--pl-ink-muted);
}
.place-search__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.place-search--compact .place-search__row {
  gap: var(--sp-2);
  max-width: 640px;
}
.place-search__field {
  position: relative;
  flex: 2 1 240px;
  min-width: 0;
}
.place-search__field > .icon {
  position: absolute;
  left: 14px;
  top: 16px;
  color: var(--pl-teal-deep);
  pointer-events: none;
}
.place-search__input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-control);
  background: var(--pl-surface-card);
  font-size: var(--fs-body-lg);
  font-weight: 500;
}
.place-search--hero .place-search__input {
  padding-right: 54px;
  border-color: var(--pl-teal);
}
.place-search--compact .place-search__input {
  padding-left: 44px;
  border-radius: var(--r-lg);
}
.place-search__input:focus {
  outline: none;
  border-color: var(--pl-teal);
  box-shadow: var(--sh-glow);
}
.place-search__locate {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--r-8);
  background: none;
  color: var(--pl-em);
}
.place-search__locate:hover {
  background: var(--pl-teal-pale);
}
.place-search__submit {
  flex: 0 1 240px;
  min-height: 52px;
}
.place-search__near {
  flex: 0 0 auto;
  min-height: 52px;
  border-radius: var(--r-lg);
}
.place-search__near:disabled,
.place-search__locate:disabled {
  opacity: 0.55;
  cursor: progress;
}
.place-search__list {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-3);
  text-align: left;
}
.place-search__group {
  display: block;
  padding: 10px 10px 4px;
}
/* Only typo matches: the quiet "Meinten Sie …?" line above the first group. */
.place-search__correction {
  padding: 8px 10px 0;
  font-size: var(--fs-label);
  font-style: italic;
  color: var(--pl-ink-muted);
}
.place-search__option {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: var(--r-8);
  font-weight: 600;
  color: var(--pl-ink);
  cursor: pointer;
}
.place-search__option .icon {
  flex-shrink: 0;
  color: var(--pl-em);
}
.place-search__option--locate {
  font-weight: 700;
  color: var(--pl-teal-deep);
}
.place-search__option:hover,
.place-search__option[aria-selected="true"] {
  background: var(--pl-teal-pale);
}
.place-search__context {
  margin-left: auto;
  font-size: var(--fs-label);
  color: var(--pl-ink-muted);
  text-align: right;
}
/* The pill of a place page (locate="toggle"): the position as a round button inside the field's right end. */
.place-search--pill .place-search__row {
  max-width: none;
}
.place-search--pill .place-search__input {
  padding-right: 56px;
  border-width: 1px;
  border-radius: 26px;
  font-weight: 700;
}
.place-search__locate--toggle {
  right: 4px;
  top: 4px;
  /* 44 px to tap, a 40 px circle to see. */
  border: 2px solid transparent;
  border-radius: 50%;
  background-clip: padding-box;
  color: var(--pl-teal-deep);
}
.place-search__locate--toggle[aria-pressed="true"] {
  background-color: var(--pl-teal-deep);
  color: #fff;
}
.place-search__locate--toggle[aria-pressed="true"]:hover {
  background-color: var(--pl-teal-deepest);
}
.place-search__note {
  margin-top: 4px;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--pl-cookie);
}

/* "Standort verwenden" inside the home search's field (full round C3, kept by the design revert R2 where the
   boards draw the location button); the padding keeps typed text clear of the button's longest label. */
.place-search--hero .place-search__input {
  padding-right: 188px;
}
.place-search__nearby {
  position: absolute;
  right: 6px;
  top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-8);
  background: var(--pl-teal-pale-2);
  font: 700 var(--fs-body) / 1 var(--font-body);
  color: var(--pl-teal-deep);
  white-space: nowrap;
  cursor: pointer;
}
.place-search__nearby:hover {
  background: var(--pl-teal-pale);
}
.place-search__nearby:disabled {
  opacity: 0.55;
  cursor: progress;
}
/* On phones the button keeps its icon only (its name stays in aria-label), so the placeholder "Ort, PLZ oder
   Praxis" and typed text keep the field's width (Patrick's review of 27 November 2026). */
@media (max-width: 600px) {
  .place-search--hero .place-search__input {
    padding-right: 60px;
  }
  .place-search__nearby {
    padding: 0 10px;
  }
  .place-search__nearby-label {
    display: none;
  }
}
/* Up to 860 px the field and "Freie Termine finden" stand one below the other, and the suggestions open in the
   flow below the field: an open list moves what is below it down and never covers the button (fix round
   G5). */
@media (max-width: 860px) {
  .place-search--hero .place-search__field,
  .place-search--hero .place-search__submit {
    flex: 1 1 100%;
  }
  .place-search--hero .place-search__list {
    position: static;
    margin-top: 6px;
  }
}
/* The animal or service chosen with a home page tile or chip, between the label and the field. */
.place-search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.place-search__chips:empty {
  display: none;
}

/* Home: hero */
.home-hero {
  position: relative;
  padding-bottom: 72px;
  background:
    radial-gradient(640px 640px at 94% -10%, rgba(255, 117, 140, 0.3), rgba(255, 117, 140, 0) 65%),
    radial-gradient(50% 80% at 8% 110%, rgba(59, 164, 179, 0.55), rgba(59, 164, 179, 0) 70%),
    var(--pl-teal-deep);
}
.home-hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 48px;
  padding-top: 64px;
  padding-bottom: 40px;
}
.home-hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.home-hero__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--pl-label-tracking);
  text-transform: uppercase;
  color: var(--dir-hero-ink);
}
.home-hero__title {
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.8px;
  color: #fff;
}
/* The boards' hand-drawn underline (coral under "online", gold under "Termin"), drawn as a background so the
   translated heading stays one text. */
.home-hero__title em,
.home-steps .home-heading em {
  display: inline-block;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 252 16' preserveAspectRatio='none'%3E%3Cpath d='M3,10 C42,3 96,3 138,6 C178,9 214,8 249,4' fill='none' stroke='%23FF758C' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.4em no-repeat;
}
.home-hero__title em {
  color: var(--dir-pink);
}
.home-hero__lead {
  max-width: 520px;
  font-size: 19px;
  color: var(--dir-hero-ink);
}
.home-hero__visual {
  flex: 1 1 460px;
  min-width: 0;
}
.home-hero__visual img {
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 18px 16px rgba(0, 28, 36, 0.45));
}
.home-search {
  position: relative;
  margin-top: -72px;
}
.home-search__visual {
  display: none;
}
/* Phones: the hero's picture moves under the search (Patrick's review: above it, it pushed the field and
   "Standort verwenden" under iOS Safari's floating bottom bar). home.html keeps each copy from loading on
   the other side of 768 px. */
@media (max-width: 767px) {
  .home-hero__visual {
    display: none;
  }
  .home-search__visual {
    display: block;
    margin-top: var(--sp-5);
  }
  .home-search__visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
  }
}
.home-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.home-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-pill-inf);
  background: var(--pl-surface-card);
  font-size: var(--fs-body);
  font-weight: 700;
  white-space: nowrap;
}
.home-chip:hover {
  border-color: var(--pl-teal);
}
/* The "Notdienst" chip at the right end of the row (board Main), only while the emergency list is on. */
.home-shortcuts__emergency {
  margin-left: auto;
}
.home-chip--emergency {
  gap: var(--sp-2);
  border-color: var(--dir-emergency-line);
  color: var(--pl-red);
}
.home-chip--emergency:hover {
  border-color: var(--pl-red);
  color: var(--pl-red);
}

/* Home: shared section parts */
.home-heading {
  font-size: var(--fs-32);
  letter-spacing: -0.4px;
}
.home-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 24px;
}
.home-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
}
.home-sub {
  margin-top: 6px;
  color: var(--pl-ink-muted);
}

/* Home: species tiles */
.home-species {
  padding-top: var(--sp-7);
}
.species-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.species-tile {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 8px 14px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-1);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: center;
  transition: transform 0.4s var(--ez-soft), box-shadow 0.3s;
}
.species-tile:hover,
.city-card[href]:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 8px 24px rgba(0, 88, 103, 0.14);
}
.species-tile__picture {
  width: 96px;
  height: 96px;
  padding: 16px;
  border-radius: var(--r-round);
  background: var(--dir-ice);
}
.species-tile__picture img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.species-tile--dog .species-tile__picture {
  background: var(--dir-peach);
}
.species-tile--cat .species-tile__picture {
  background: var(--dir-rose);
}
.species-tile--rabbit .species-tile__picture {
  background: var(--dir-mint);
}
.species-tile--bird .species-tile__picture {
  background: var(--dir-lime);
}
.species-tile--guinea-pig .species-tile__picture {
  background: var(--dir-sand);
}
.species-tile--horse .species-tile__picture {
  background: var(--dir-lilac);
}

/* City cards (c-directory.city-card) */
.home-cities {
  padding-top: var(--sp-9);
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--sp-4);
}
.home-cities .city-grid {
  margin-top: 28px;
}
.city-card {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 12px 10px 12px 20px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-1);
  transition: transform 0.4s var(--ez-soft), box-shadow 0.3s;
}
.city-card__text {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.city-card__name {
  font: 600 var(--fs-title-sm) / 1.2 var(--font-display);
  color: var(--pl-teal-deep);
  overflow-wrap: anywhere;
}
.city-card__context {
  font: 600 var(--fs-body) var(--font-body);
  color: var(--pl-ink-muted);
}
.city-card__icon {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  object-fit: contain;
}

/* Home: trust band with the partner logo row (boards "Startseite", "MobHome"; design revert R4). The boards'
   row moves; the agreed build keeps it still: one row of cards across the band, faded at both edges, that the
   visitor can scroll sideways where it is wider than the window (keyboard: the row takes the focus). */
.home-trust {
  margin-top: var(--sp-9);
  padding: var(--sp-9) 0 64px;
  overflow: hidden;
  border-top: 1.5px solid var(--dir-band-line);
  border-bottom: 1.5px solid var(--dir-band-line);
  background: var(--dir-band);
}
.home-trust__head {
  padding-bottom: 22px;
  text-align: center;
}
.trust-logos {
  /* Room for the focus ring above and below the cards. */
  padding: 6px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
/* Inside the box: the band around it clips what lies outside. */
.trust-logos:focus-visible {
  outline-color: var(--pl-teal-deep);
  outline-offset: -3px;
}
.trust-logos__track {
  display: flex;
  width: max-content;
  animation: trust-logos 60s linear infinite;
}
.trust-logos:hover .trust-logos__track,
.trust-logos:focus-within .trust-logos__track,
.trust-pause__input:checked ~ .trust-logos .trust-logos__track {
  animation-play-state: paused;
}
@keyframes trust-logos {
  to {
    transform: translateX(-50%);
  }
}
.trust-logos__row {
  display: flex;
}
.trust-logos__row li {
  flex-shrink: 0;
  width: 200px;
  height: 96px;
  margin-right: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
}
.trust-logos__row img {
  width: auto;
  height: 48px;
  max-width: 164px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}
/* The board's "Bewegung anhalten" button: the label of the hidden checkbox. */
.trust-pause {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.trust-pause__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--pl-line);
  border-radius: 999px;
  background: var(--pl-surface-card);
  color: var(--pl-ink-2-text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.trust-pause__input:checked ~ .trust-pause .trust-pause__button {
  border-color: var(--pl-teal-text);
  color: var(--pl-teal-text);
}
.trust-pause__input:focus-visible ~ .trust-pause .trust-pause__button {
  outline: 3px solid var(--pl-focus);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .trust-logos {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .trust-logos__track {
    animation: none;
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
  .trust-logos__row--copy,
  .trust-pause {
    display: none;
  }
}

/* Home: three steps */
.home-steps {
  padding: 64px 0;
  border-bottom: 1.5px solid var(--pl-line);
  background: var(--pl-surface-card);
}
.home-steps .home-heading em {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 252 16' preserveAspectRatio='none'%3E%3Cpath d='M4,9 C50,14 110,2 168,7 C204,10 226,9 248,5' fill='none' stroke='%23F5A623' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-7);
  margin-top: var(--sp-7);
}
.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  color: var(--pl-ink-muted);
}
.step strong {
  font-size: var(--fs-lead);
  color: var(--pl-teal-deep);
}
.step__head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.step__number {
  font: italic 500 var(--fs-hero-num) / 1 var(--font-display);
  color: var(--pl-em);
}
.step__line {
  flex-grow: 1;
  height: 9px;
  background:
    radial-gradient(circle at calc(100% - 4.5px) 50%, var(--pl-coral) 4.5px, transparent 5px),
    linear-gradient(to right, rgba(59, 164, 179, 0.55) 40%, transparent 40%) left center / 8px 2.5px repeat-x;
}

/* Home: emergency block (anchor #notdienst) */
.home-emergency {
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
  scroll-margin-top: var(--sp-4);
}
.emergency-block {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-7);
  border-radius: var(--r-bubble);
  background: var(--pl-teal-deep);
  color: var(--dir-hero-ink);
}
.emergency-block h2 {
  margin-bottom: 6px;
  font-size: var(--fs-title-lg);
  letter-spacing: -0.4px;
  color: #fff;
}
.emergency-block__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: rgba(255, 179, 192, 0.18);
  color: var(--dir-pink);
}
.emergency-block__note {
  margin-top: var(--sp-2);
  font-weight: 700;
  color: #fff;
}
/* With the search form (board Main): text and form side by side, the form below on narrow screens. */
.emergency-block--search {
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--sp-4);
  row-gap: var(--sp-5);
}
.emergency-block--search .emergency-block__icon {
  align-self: flex-start;
}
.emergency-block--search .emergency-block__text {
  flex: 1 1 360px;
  min-width: 0;
}
.emergency-block--search .emergency-search {
  flex: 0 1 440px;
}
/* On the home page the block must not read as a second app section (deep teal, further down): a pale
   coral surface with a coral line at its edge, deep-teal heading and dark text. Coral marks urgency here
   and stays small; the emergency page keeps the teal block above for its advice. */
.home-emergency .emergency-block {
  position: relative;
  overflow: hidden;
  padding-left: calc(var(--sp-7) + 5px);
  border: 1.5px solid var(--pl-red-line);
  background: var(--pl-red-pale);
  color: var(--pl-ink);
}
.home-emergency .emergency-block::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--pl-coral);
}
.home-emergency .emergency-block h2 {
  color: var(--pl-teal-deep);
}
.home-emergency .emergency-block__icon {
  border: 1.5px solid var(--pl-red-line);
  background: var(--pl-surface-card);
  color: var(--pl-red);
}
.home-emergency .emergency-block__note {
  color: var(--pl-red);
}
.home-emergency .emergency-block__action {
  margin-top: var(--sp-4);
  background: var(--pl-surface-card);
}
.home-emergency .emergency-search {
  border: 1.5px solid var(--pl-red-line);
  box-shadow: none;
}

/* Emergency search field (c-directory.emergency-search): home block and emergency page */
.emergency-search {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  min-width: 0;
  padding: 5px;
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: 0 8px 24px rgba(0, 20, 26, 0.25);
}
.emergency-search__field {
  flex: 1 1 120px;
  min-width: 0;
  height: 48px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-control);
  background: none;
  font: 600 var(--fs-body-lg) var(--font-body);
  color: var(--pl-ink);
}
.emergency-search__submit {
  flex-shrink: 0;
  border: 0;
  cursor: pointer;
}

/* Home: Tierwissen (cards from content.css, loaded only when the section is shown) */
.home-articles {
  padding-bottom: 64px;
}
.home-articles .article-grid {
  margin-top: 28px;
}

/* Home: app section */
.home-app-wrap {
  padding-bottom: 72px;
}
.home-app {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 40px 56px;
  padding: var(--sp-9) var(--sp-9) 0;
  border-radius: var(--r-xl);
  background:
    radial-gradient(520px 520px at 82% 30%, rgba(255, 117, 140, 0.34), rgba(255, 117, 140, 0) 65%),
    radial-gradient(45% 70% at 0% 110%, rgba(59, 164, 179, 0.55), rgba(59, 164, 179, 0) 70%),
    var(--pl-teal-deep);
  color: #fff;
}
.home-app__text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-bottom: var(--sp-9);
}
.home-app__title {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.6px;
  color: #fff;
}
.home-app__title em {
  display: block;
  color: var(--dir-pink);
}
.home-app__lead {
  max-width: 480px;
  font-size: var(--fs-lead);
  color: var(--dir-hero-ink);
}
.home-app__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-weight: 600;
}
.home-app__list li {
  display: flex;
  align-items: center;
  gap: 14px;
}
.home-app__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.14);
}
.home-app__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.home-app__qr {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--dir-hero-ink);
}
.home-app__qr img {
  width: 84px;
  height: 84px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: #fff;
}
/* Phones only (board MobHome): one "App laden" button instead of the badges and the QR code. */
.home-app__get {
  display: none;
  background: #fff;
  color: var(--pl-teal-deep);
}
.home-app__get:hover {
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.home-app__visual {
  position: relative;
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  justify-content: center;
}
/* The app's start screen drawn in HTML (boards "Startseite", "MobHome"): a phone tilted by 5 degrees and cut
   by the section's bottom edge, a reminder card on its left and the dog on its right. */
.app-mock {
  position: relative;
  width: 290px;
  height: 500px;
  flex-shrink: 0;
}
.app-mock__phone {
  position: absolute;
  left: 0;
  top: 0;
  width: 290px;
  height: 590px;
  padding: 10px;
  border-radius: 46px;
  background: #0B2A31;
  transform: rotate(5deg);
  transform-origin: 50% 0;
  box-shadow: 0 30px 60px rgba(0, 20, 26, 0.45);
}
.app-mock__screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px 16px;
  overflow: hidden;
  border-radius: 37px;
  background: #EDF5F7;
  color: var(--pl-ink);
}
.app-mock__status,
.app-mock__row,
.app-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-mock__status {
  font-size: 12px;
  font-weight: 800;
}
.app-mock__island {
  width: 84px;
  height: 22px;
  border-radius: var(--r-pill-inf);
  background: #0B2A31;
}
.app-mock__battery {
  width: 22px;
  height: 10px;
  border: 1.5px solid var(--pl-ink);
  border-radius: 3px;
}
.app-mock__hello {
  font-size: 12px;
  font-weight: 700;
  color: var(--pl-ink-muted);
}
.app-mock__tools {
  display: flex;
  gap: 12px;
  color: var(--pl-teal-deep);
}
.app-mock__name {
  font: 600 22px / 1.15 var(--font-display);
  color: var(--pl-teal-deep);
}
.app-mock__banner,
.app-mock__card {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-mock__banner {
  padding: 12px 12px 12px 14px;
  border-radius: 18px;
  /* The board's #3BA4B3 under white 12 px text is 2.9:1; the darker teal of MobHome's gradient reaches 4.5:1. */
  background: #1F7F8E;
  color: #fff;
}
.app-mock__card {
  padding: 10px 8px 10px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 88, 103, 0.07);
}
.app-mock__stack {
  flex-grow: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.app-mock__card .app-mock__stack {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}
.app-mock__banner img,
.app-mock__card img {
  flex-shrink: 0;
  width: 62px;
  height: auto;
}
.app-mock__pill {
  padding: 6px 14px;
  border-radius: var(--r-pill-inf);
  background: var(--pl-teal-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.app-mock__pill--yellow {
  padding: 5px 12px;
  background: #FFE08A;
  color: #5A4300;
}
.app-mock__head span:first-child {
  font: 600 15px / 1.2 var(--font-display);
  color: var(--pl-teal-deep);
}
.app-mock__head span:last-child {
  font-size: 11px;
  font-weight: 700;
  color: var(--pl-teal-text);
}
.app-mock__tiles {
  display: flex;
  gap: 8px;
}
.app-mock__tile {
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 1;
  padding: 8px 6px 8px 8px;
  border: 1.5px solid #F2A9B6;
  border-radius: 14px;
  background: #FBD3D9 url("../img/app/mock-dangers.37b6e2af7145.webp") center / cover no-repeat;
  background-blend-mode: multiply;
  box-shadow: 0 3px 8px rgba(194, 51, 78, 0.14);
  font-size: 10px;
  line-height: 1.2;
  color: var(--pl-ink);
}
.app-mock__tile--bags {
  border-color: #EFCF84;
  background-color: #FBEBC4;
  background-image: url("../img/app/mock-poopbags.4dfe825ad644.webp");
  box-shadow: 0 3px 8px rgba(168, 120, 20, 0.14);
}
.app-mock__tile--parks {
  border-color: #9FD3B2;
  background-color: #CDEBD8;
  background-image: url("../img/app/mock-dogparks.685e5c0efd2e.webp");
  box-shadow: 0 3px 8px rgba(30, 120, 70, 0.14);
}
.app-mock__pets {
  display: flex;
  gap: 10px;
}
.app-mock__pets img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.app-mock__note {
  position: absolute;
  left: -176px;
  top: 150px;
  width: 214px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  color: var(--pl-ink);
  transform: rotate(-5deg);
  box-shadow: 0 16px 40px rgba(0, 20, 26, 0.38);
}
.app-mock__dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pl-coral);
  animation: app-mock-pulse 2s ease-out infinite;
}
@keyframes app-mock-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 117, 140, 0.7);
  }
  100% {
    box-shadow: 0 0 0 14px rgba(255, 117, 140, 0);
  }
}
.app-mock__note-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--pl-ink-muted);
}
.app-mock__note-text {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}
.app-mock__dog {
  position: absolute;
  right: -128px;
  bottom: 0;
  width: 200px;
  height: auto;
}
@media (prefers-reduced-motion: reduce) {
  .app-mock__dot {
    animation: none;
  }
}

/* All cities and search results */
.cities-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding-top: 28px;
  padding-bottom: 64px;
}
.cities-page__lead {
  margin-top: calc(-1 * var(--sp-2));
  font-weight: 500;
}
.cities-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  align-self: flex-start;
  padding: 10px 14px;
  border-radius: var(--r-lg);
  background: var(--pl-teal-pale);
  font-weight: 700;
  color: var(--pl-teal-deep);
}
.cities-selection a {
  text-decoration: underline;
}
.cities-section {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.cities-section > .label {
  font-family: var(--font-body);
}
.cities-page .city-grid {
  grid-template-columns: repeat(4, 1fr);
}
.letter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.letter-bar a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-round);
  background: var(--pl-surface-card);
  font-weight: 800;
}
.letter-groups {
  columns: 4 240px;
  column-gap: var(--sp-8);
  margin-top: var(--sp-2);
}
.letter-group {
  break-inside: avoid;
  padding-bottom: var(--sp-5);
  scroll-margin-top: var(--sp-4);
}
.letter-group__letter {
  padding-bottom: 6px;
  font: italic 600 var(--fs-32) / 1.1 var(--font-display);
  color: var(--pl-em);
}
.letter-group__city {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 9px 0;
  border-top: 1.5px solid var(--pl-line);
  font-weight: 700;
  color: var(--pl-teal-deep);
}
.letter-group__count {
  flex-shrink: 0;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--pl-ink-muted);
  text-align: right;
}
.cities-empty,
.search-note {
  font-size: var(--fs-lead);
  font-weight: 600;
}
.search-note--corrected {
  font-size: var(--fs-body);
  color: var(--pl-ink-muted);
}
.search-results {
  max-width: 640px;
}
.search-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
}

/* Place page (boards City, MobCity, MobFilter, XNoResults): head, filter bar, practice list, links, FAQ */
.place-page {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding-top: 28px;
  padding-bottom: 64px;
}
.place-page [hidden] {
  display: none !important;
}
/* Search, title, filters and sort line (owner's results redesign, plan section 10): stacked on phones; from
   681 px the filters sit beside the search, from 1024 px the sort line beside the title. */
.place-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--sp-3);
}
.place-head {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}
.place-head__title {
  font-family: var(--font-display);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--pl-teal-deep);
  overflow-wrap: anywhere;
}
.place-head__note {
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 500;
  color: var(--pl-ink-muted);
}
.place-sort {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--pl-ink-muted);
}
.place-sort__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  min-height: 44px;
}
.place-sort__why {
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--pl-teal-deep);
}
.place-sort__why:hover,
.place-sort__why[aria-expanded="true"] {
  background: var(--pl-teal-pale);
}
.place-why {
  max-width: 640px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--pl-line);
  border-radius: var(--r-lg);
  background: var(--pl-surface-card);
  font-size: var(--fs-body);
  line-height: 1.45;
}
.list-filters {
  min-width: 0;
}
/* Until place-list.js has built them, the filter controls keep their place invisibly (no focus, no clicks), so
   the list does not move when they appear. Without JavaScript they never show. */
.list-filters[data-pending] {
  display: block !important;
  visibility: hidden;
}
/* Holders of the controls the script builds; their children take part in the row, bar or sheet layout. */
.list-filters__chips,
.list-filters__menus,
.list-filters__groups {
  display: contents;
}
/* Phones: the "Filter" button and the active filters in one row that scrolls sideways and fades at the edges. */
.list-filters__row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 calc(-1 * var(--gutter));
  padding: 2px calc(var(--gutter) + var(--sp-4)) 2px var(--gutter);
  overflow-x: auto;
  scroll-padding-inline: calc(var(--gutter) + var(--sp-4));
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--gutter), #000 calc(100% - 32px), transparent);
}
.list-filters__row::-webkit-scrollbar {
  display: none;
}
.list-filters__row > * {
  flex: none;
}
.list-filters .list-filters__open {
  padding: 0 14px;
  border-color: var(--pl-teal-deep);
  color: var(--pl-teal-deep);
}
.filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--pl-teal-deep);
  font-size: var(--fs-sm);
  color: #fff;
}
/* Wide windows: one pill per filter, the toggles and "Zurücksetzen", after a divider from the search. */
.list-filters__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}
.list-filters__bar::before {
  content: "";
  width: 1px;
  height: 28px;
  margin-right: var(--sp-1);
  background: var(--dir-divider);
}
.filter-menu {
  position: relative;
  display: inline-flex;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 14px 0 16px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-pill-inf);
  background: var(--pl-surface-card);
  font: 700 var(--fs-body) var(--font-body);
  color: var(--pl-ink);
  text-align: left;
  white-space: nowrap;
}
.filter-pill[aria-checked="true"] {
  border-color: var(--pl-teal-deep);
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.list-filters__bar .filter-pill {
  padding: 0 12px 0 16px;
  border-color: var(--dir-pill-line);
  color: var(--pl-teal-deep);
}
.list-filters__bar .filter-pill.is-active {
  border-color: var(--pl-teal-deep);
  background: var(--pl-teal-deep);
  color: #fff;
}
.list-filters__bar .filter-toggle {
  padding: 0 16px;
}
.filter-toggle__dot {
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}
.filter-toggle.is-active .filter-toggle__dot {
  border-color: var(--dir-open-dot);
  background: var(--dir-open-dot);
}
.filter-menu__list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-2);
}
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-8);
  background: none;
  font: 600 var(--fs-md) var(--font-body);
  color: var(--pl-ink);
  text-align: left;
  white-space: nowrap;
}
.filter-option:hover,
.filter-option:focus-visible,
.filter-option[aria-selected="true"] {
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.filter-option__count {
  font-size: var(--fs-label);
  font-weight: 700;
  color: var(--pl-ink-muted);
}
.filter-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 14px 0 10px;
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
}
.filter-switch--row {
  justify-content: space-between;
  padding: 0;
  font-size: var(--fs-body-lg);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: var(--r-pill-inf);
  background: var(--pl-teal-deep);
  font: 700 var(--fs-body) var(--font-body);
  color: #fff;
  white-space: nowrap;
}
.list-filters__reset {
  min-height: 44px;
  padding: 0 var(--sp-2);
  font-size: var(--fs-body);
  color: var(--pl-ink-muted);
}
.filter-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.filter-sheet__dialog {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  border-radius: 24px 24px 0 0;
  background: var(--pl-surface-card);
  box-shadow: var(--sh-dialog);
}
.filter-sheet__handle {
  width: 40px;
  height: 4px;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--pl-line);
}
.filter-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1.5px solid var(--pl-line-soft);
}
.filter-sheet__body {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-4);
}
.filter-sheet__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}
.filter-sheet__foot {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  padding: var(--sp-3) var(--sp-4) calc(var(--sp-4) + env(safe-area-inset-bottom, 0px));
  border-top: 1.5px solid var(--pl-line-soft);
}
.filter-sheet__foot .btn {
  flex: 1 1 auto;
}
.place-faq__item summary::-webkit-details-marker {
  display: none;
}
.listing-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  max-width: 860px;
}
.listing-card {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding: var(--sp-5);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-1);
}
.listing-card__main {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  gap: var(--sp-4);
}
.listing-card__badge {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.listing-card__logo,
.listing-card__initials {
  width: 48px;
  height: 48px;
  border-radius: var(--r-lg);
}
.listing-card__logo {
  object-fit: contain;
  background: var(--pl-surface-card);
  border: 1.5px solid var(--pl-line-soft);
}
.listing-card__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pl-teal-pale);
  font-weight: 800;
  color: var(--pl-teal-deep);
}
.listing-card__number {
  position: absolute;
  top: -8px;
  left: -8px;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--pl-surface-card);
  border-radius: var(--r-pill-inf);
  background: var(--pl-teal-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: #fff;
}
.listing-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.listing-card__name {
  font-size: 21px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.listing-card__address,
.listing-card__hours,
.listing-card__match {
  font-size: var(--fs-body);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.listing-card__address {
  color: var(--pl-ink-muted);
}
.listing-card__match {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--dir-match);
}
.listing-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.listing-card__facts .tag {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.listing-card__reason {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--dir-warn);
  overflow-wrap: anywhere;
}
.listing-card__action {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.place-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  max-width: 860px;
  padding: var(--sp-6);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: var(--sh-1);
}
.place-empty__advice {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--pl-ink-muted);
}
.place-outside {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 860px;
  margin-top: var(--sp-3);
}
.place-outside__title {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--pl-teal-deep);
}
.place-outside__lead {
  font-size: var(--fs-body);
  line-height: 1.4;
  font-weight: 500;
  color: var(--pl-ink-muted);
}
.place-outside .listing-list {
  margin-top: var(--sp-1);
}
.place-breadcrumb {
  padding-top: var(--sp-2);
  border-top: 1px solid var(--pl-line);
  font-weight: 500;
}
.place-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-7);
  margin-top: var(--sp-7);
}
.place-links .heading-3,
.place-faq .heading-3 {
  margin-bottom: var(--sp-3);
}
.place-faq {
  max-width: 760px;
  margin-top: var(--sp-6);
}
.place-faq__item {
  margin-bottom: var(--sp-2);
  padding: var(--sp-4) var(--sp-5);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
}
.place-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  min-height: 44px;
  /* The card's own top and side padding belongs to the tap area. */
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-5)) 0;
  padding: var(--sp-4) var(--sp-5) 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.place-faq__item summary .icon {
  color: var(--pl-teal-deep);
  transition: transform 0.3s var(--ez-soft);
}
.place-faq__item[open] summary .icon {
  transform: rotate(180deg);
}
.place-faq__item p {
  margin-top: var(--sp-2);
  color: var(--pl-ink-muted);
}

@media (max-width: 680px) {
  .place-page {
    gap: var(--sp-4);
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-8);
  }
  .list-filters__bar {
    display: none;
  }
  .listing-card {
    padding: var(--sp-4);
  }
  .listing-card__main {
    gap: var(--sp-3);
  }
  .listing-card__name {
    font-size: 19px;
  }
  .listing-card__action {
    flex-basis: 100%;
  }
  .place-links {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
    margin-top: var(--sp-5);
  }
}
@media (min-width: 681px) {
  .filter-sheet,
  .list-filters__row {
    display: none;
  }
  .place-top {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "search filters"
      "head head"
      "sort sort";
    gap: var(--sp-4) var(--sp-3);
    align-items: center;
  }
  .place-top > .place-search {
    grid-area: search;
  }
  .place-top > .place-head {
    grid-area: head;
  }
  .place-top > .list-filters {
    grid-area: filters;
  }
  .place-top > .place-sort {
    grid-area: sort;
  }
  .place-outside__title {
    font-size: 23px;
  }
  .place-outside__lead {
    font-size: var(--fs-md);
  }
}
@media (min-width: 1024px) {
  .place-top {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) auto;
    grid-template-areas:
      "search filters filters"
      "head head sort";
    align-items: baseline;
  }
  .place-top > .place-search,
  .place-top > .list-filters {
    align-self: center;
  }
  .place-head {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--sp-1) 14px;
  }
  .place-head__title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  .place-head__note {
    font-size: var(--fs-md);
  }
  .place-sort {
    align-items: flex-end;
    max-width: 480px;
    font-size: var(--fs-body);
  }
  .place-sort__line {
    justify-content: flex-end;
    gap: var(--sp-1);
    text-align: right;
  }
  .place-sort__why {
    margin-right: -6px;
  }
}


/* The home page's first screen on laptop screens (owner, 24 November 2026): the animal tiles must be visible
   without scrolling down to about 660 px of browser height. Only the home page's first screen gets tighter,
   and only on short desktop windows; the sizes follow the height so taller windows keep more air. Body
   text stays at 16 px or more, targets at 44 px. */
@media (min-width: 1024px) and (max-height: 900px) {
  .home-hero {
    padding-bottom: 56px;
  }
  .home-hero__inner {
    gap: 24px 48px;
    padding-top: clamp(20px, 6vh - 16px, 40px);
    padding-bottom: 12px;
  }
  .home-hero__text {
    gap: clamp(10px, 2vh, 16px);
  }
  .home-hero__title {
    font-size: clamp(38px, 6.4vh, 54px);
    line-height: 1.04;
  }
  .home-hero__lead {
    font-size: clamp(16px, 2.3vh, 19px);
  }
  .home-hero__visual img {
    width: auto;
    max-width: 100%;
    max-height: clamp(160px, 40vh - 90px, 300px);
  }
  .home-search {
    margin-top: -56px;
  }
  .home-search .place-search--hero {
    padding: var(--sp-3) var(--sp-4);
  }
  .home-shortcuts {
    margin-top: 10px;
  }
  .home-species {
    padding-top: clamp(14px, 2.4vh, 32px);
  }
  .home-species .home-heading {
    font-size: clamp(24px, 3.6vh, 32px);
  }
  .species-tiles {
    margin-top: var(--sp-3);
  }
  .species-tile {
    gap: 6px;
    padding: 12px 8px 10px;
  }
  .species-tile__picture {
    width: clamp(64px, 13vh - 22px, 96px);
    height: clamp(64px, 13vh - 22px, 96px);
    padding: 12px;
  }
}

@media (max-width: 1023px) {
  .home-hero {
    padding-bottom: 96px;
  }
  .home-hero__inner {
    gap: var(--sp-5);
    padding-top: var(--sp-7);
    padding-bottom: var(--sp-5);
  }
  .home-hero__lead {
    font-size: var(--fs-body-lg);
  }
  .home-search {
    margin-top: -96px;
  }
  .home-heading {
    font-size: var(--fs-26);
  }
  .cities-page {
    gap: var(--sp-5);
    padding-top: var(--sp-5);
    padding-bottom: var(--sp-8);
  }
  .cities-page .city-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-app {
    padding: var(--sp-7) var(--sp-5) 0;
  }
  .home-app__text {
    padding-bottom: 0;
  }
  .home-app__qr {
    display: none;
  }
}

@media (max-width: 680px) {
  .place-search__submit,
  .place-search__near {
    flex: 1 1 100%;
  }
  .place-search--compact .place-search__field {
    flex-basis: 100%;
  }
  /* Chips and animal tiles scroll sideways, as on the board "MobHome" (design revert R4: the row cut at the
     window's edge shows that it scrolls; full round C6 had wrapped the chips). The boards' MobHome hero has
     no lead line. */
  .home-hero__lead {
    display: none;
  }
  /* Board "MobHome": the step number beside its title and text, without the dotted line. */
  .step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 10px;
    align-items: baseline;
  }
  .step__head {
    grid-row: 1 / span 2;
  }
  .step__line {
    display: none;
  }
  .home-shortcuts,
  .species-tiles {
    display: flex;
    flex-wrap: nowrap;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .species-tiles li {
    flex: 0 0 84px;
  }
  .species-tile {
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font-size: var(--fs-label);
  }
  .species-tile:hover {
    transform: none;
    box-shadow: none;
  }
  .species-tile__picture {
    width: 72px;
    height: 72px;
    padding: 12px;
  }
  .home-cities,
  .home-emergency {
    padding-top: var(--sp-8);
    padding-bottom: 0;
  }
  .home-emergency {
    padding-bottom: var(--sp-8);
  }
  .city-grid,
  .cities-page .city-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .city-card__icon {
    width: 52px;
    height: 52px;
  }
  .home-trust {
    margin-top: var(--sp-8);
    padding: var(--sp-8) 0;
  }
  .home-trust__head {
    text-align: left;
  }
  .trust-logos__row li {
    width: 150px;
    height: 72px;
  }
  .trust-logos__row img {
    height: 36px;
    max-width: 120px;
  }
  .home-steps {
    padding: var(--sp-8) 0;
  }
  .steps {
    gap: var(--sp-5);
  }
  .emergency-block {
    flex-direction: column;
    padding: var(--sp-5);
  }
  .home-emergency .emergency-block {
    padding-left: calc(var(--sp-5) + 5px);
  }
  .emergency-block h2 {
    font-size: var(--fs-title);
  }
  .emergency-block--search .emergency-block__text,
  .emergency-block--search .emergency-search {
    flex: 1 1 100%;
  }
  .emergency-search {
    flex-wrap: wrap;
  }
  .emergency-search__field,
  .emergency-search__submit {
    flex: 1 1 100%;
  }
  .home-shortcuts__emergency {
    margin-left: 0;
  }
  .home-app-wrap {
    padding-bottom: var(--sp-8);
  }
  /* Board "MobHome": no lead, one "App laden" button, the phone without card and dog, cut at 356 px. */
  .home-app__lead,
  .home-app__actions,
  .app-mock__note,
  .app-mock__dog {
    display: none;
  }
  .home-app__get {
    display: inline-flex;
  }
  .home-app__visual {
    flex-basis: 100%;
  }
  .app-mock {
    width: 250px;
    height: 356px;
  }
  .app-mock__phone {
    width: 250px;
    height: 520px;
    padding: 9px;
    border-radius: 40px;
    transform: rotate(3deg);
  }
  .app-mock__screen {
    gap: 10px;
    padding: 12px 14px;
    border-radius: 32px;
  }
  .letter-bar {
    flex-wrap: nowrap;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .letter-bar li {
    flex-shrink: 0;
  }
  .letter-groups {
    columns: 1;
  }
}

