/*
 * Base styles of every page: fonts, reset, typography, layout, header, footer, menu, dialogs, buttons and the
 * form controls the layout uses. Colours, sizes, radii and shadows come from tokens.css (generated from the
 * design package's tokens.json); the few values below that are not tokens are taken from the boards.
 */

/* Fonts: self-hosted variable fonts from Fontsource 5.3.0, SIL Open Font License 1.1 (fonts/fraunces/OFL.txt,
   fonts/karla/OFL.txt). */
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces/fraunces-latin-ext-opsz-normal.a04d353989ad.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces/fraunces-latin-opsz-normal.069cb90e11a3.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces/fraunces-latin-ext-opsz-italic.53f8865644cd.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: italic;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/fraunces/fraunces-latin-opsz-italic.fa7ce081be5e.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Karla;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/karla/karla-latin-ext-wght-normal.b8948c38fcee.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Karla;
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/karla/karla-latin-wght-normal.3006def87dd6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Values used by the boards that tokens.json does not name. */
:root {
  /* Text colours (full round A4): each reaches 4.5:1 on white and on every light surface of the site
     (surface-app #EDF5F7, surface-soft, teal-pale, #DCEBEE). --pl-ink-2 of tokens.css (#4A6E77 since
     the Patrick review) passes too, by a thin margin (4.5:1 on #DCEBEE); --pl-teal #3BA4B3 and --pl-ink-3 stay
     for borders, icons and decoration, never for text. */
  --pl-ink-2-text: #44686F;
  --pl-teal-text: #18707D;
  --pl-coral-text: #C2334E;
  --pl-green-text: #1B7A43;
  --pl-gold-text: #8A5A00;
  /* Placeholders: lighter and thinner than typed text (#18353C, 13:1) so an example never reads as a filled
     value (Patrick's review), and still 4.5:1 on white and on surface-app #EDF5F7 (5.0:1, 4.5:1). */
  --pl-placeholder: #53757C;
  /* Disabled controls are exempt from the contrast rule; this keeps them readable (3:1 on white). */
  --pl-ink-disabled: #7E989E;
  /* Focus ring: 3:1 against the surface it sits on; dark sections set --pl-focus to the light one. */
  --pl-focus: var(--pl-teal-text);
  --pl-focus-on-dark: #7FD3DE;
  --pl-ink-muted: var(--pl-ink-2-text);
  --pl-em: var(--pl-teal-text);
  --pl-link-hover: var(--pl-teal-text);
  --pl-red: #C2334E;
  --pl-red-pale: #FFF4F6;
  --pl-red-line: #F5C6CF;
  --pl-cookie: #8A5A00;
  --pl-cookie-fill: #FBEBCE;
  --pl-switch-off: #B9CDD1;
  --footer-ink: #D6ECEF;
  --footer-muted: #A9CDD3;
  --footer-label: #8FBAC1;
  --footer-line: #1F5661;
  --footer-control-line: #2A6470;
  --footer-copyright: #7FAAB2;
  --overlay: rgba(0, 40, 50, 0.45);
  --sh-dialog: 0 24px 60px rgba(0, 20, 26, 0.35);
  --container: 1200px;
  --gutter: 24px;
  --ez-soft: cubic-bezier(0.32, 0.72, 0.35, 1);
  /* The paw print of the waiting signs (`.paw-steps`, `.page-wait__paws`), used as a mask. */
  --paw-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cellipse cx='12' cy='16.2' rx='5.6' ry='4.6'/%3E%3Cellipse cx='4.6' cy='10.6' rx='2.2' ry='2.9' transform='rotate(-20 4.6 10.6)'/%3E%3Cellipse cx='9.2' cy='6' rx='2.3' ry='3.1' transform='rotate(-8 9.2 6)'/%3E%3Cellipse cx='14.8' cy='6' rx='2.3' ry='3.1' transform='rotate(8 14.8 6)'/%3E%3Cellipse cx='19.4' cy='10.6' rx='2.2' ry='2.9' transform='rotate(20 19.4 10.6)'/%3E%3C/svg%3E");
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
[x-cloak] {
  display: none !important;
}
/* The scripts show and hide with the `hidden` attribute; a component's own `display` must not undo it. */
[hidden]:not([hidden="until-found"]) {
  display: none !important;
}

/* Typography */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pl-surface-app);
  color: var(--pl-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body-lg);
  font-weight: 500;
  line-height: 1.5;
  overflow-x: clip;
}
a {
  color: var(--pl-teal-deep);
  text-decoration: none;
}
a:hover {
  color: var(--pl-link-hover);
}
:focus-visible {
  outline: 3px solid var(--pl-focus);
  outline-offset: 2px;
}
::placeholder {
  color: var(--pl-placeholder);
  font-weight: 400;
  opacity: 1;
}
/* Sections on the dark teal: the light focus ring; white cards inside them take the default again. */
.service-strip,
.site-footer,
.home-hero,
.home-app,
.emergency-block,
.help-hero,
.app-hero,
.app-tile--appointments,
.app-closing,
.booking-block {
  --pl-focus: var(--pl-focus-on-dark);
}
.place-search--hero,
.home-hero .card,
.help-hero .search-field {
  --pl-focus: var(--pl-teal-text);
}
h1,
h2,
h3,
h4,
.heading-display,
.heading-3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pl-teal-deep);
}
h1 em,
h2 em,
.heading-display em {
  font-style: italic;
  color: var(--pl-em);
}
.heading-display {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.8px;
}
.heading-3 {
  font-size: var(--fs-title);
  line-height: 1.2;
}
.lead {
  color: var(--pl-ink-muted);
  font-size: var(--fs-body-lg);
  font-weight: 600;
}
.label {
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--pl-label-tracking);
  text-transform: uppercase;
  color: var(--pl-ink-muted);
}
/* Full round C6: section headings and labels that carry names (places, practices, services) keep their own
   spelling: CSS capitals turned "Größte Städte" into "GRÖSSTE STÄDTE". The capitals stay for short fixed
   labels without "ß". */
h2.label,
h3.label,
.label--plain {
  font-size: var(--fs-body);
  letter-spacing: 0;
  text-transform: none;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--pl-teal-deep);
  background: var(--pl-teal-pale);
  border-radius: var(--r-pill-inf);
  padding: 4px 10px;
  white-space: nowrap;
}

/* The coral hand-drawn underline under an emphasised heading word (c-content.underline). */
.underline {
  position: relative;
  display: inline-block;
  color: var(--pl-coral);
}
.underline em {
  font-style: italic;
  color: var(--pl-em);
}
.underline__line {
  position: absolute;
  left: 0;
  bottom: -0.14em;
  width: 100%;
  height: 0.4em;
  overflow: visible;
}
.breadcrumb {
  /* One row of centred items, so links, the "/" between them and the current page share one line
     (Karim's review of 26 November 2026: the links sat 3 px lower than the current page). */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 6px;
  font-size: var(--fs-label);
  line-height: 1.3;
  font-weight: 700;
  color: var(--pl-ink-muted);
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  /* At least 24 px high on wide screens too (WCAG 2.5.8); phones get 48 px below. */
  min-height: 24px;
  color: var(--pl-ink-muted);
}
.breadcrumb [aria-current="page"] {
  color: var(--pl-ink);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  /* viewport-fit=cover (base.html): an iPhone held sideways has its notch inside the page. */
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.site-main {
  flex: 1 0 auto;
}
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-control);
  background: var(--pl-teal-deep);
  color: #fff;
  font-weight: 700;
}
.skip-link:focus {
  top: 8px;
  color: #fff;
}
.overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
}
/* Native modal dialogs drawn as the site's sheets (phone menu, language picker, report form): the <dialog>
   is a transparent layer over the whole window; its overlay and panel keep their own styles. */
dialog.sheet {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  overflow: hidden;
}
dialog.sheet:not([open]) {
  display: none;
}
dialog.sheet::backdrop {
  background: transparent;
}

/* Buttons and controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 var(--sp-5);
  border-radius: var(--r-control);
  border: 1.5px solid transparent;
  font: 700 var(--fs-body-lg) / 1.2 var(--font-body);
  white-space: nowrap;
  transition: background-color 0.3s var(--ez-soft), border-color 0.3s var(--ez-soft);
}
.btn--primary {
  background: var(--pl-teal-deep);
  color: #fff;
}
.btn--primary:hover {
  background: var(--pl-teal-deepest);
  color: #fff;
}
.btn--outline {
  background: var(--pl-surface-card);
  color: var(--pl-teal-deep);
  border-color: var(--pl-teal-deep);
}
.btn--outline:hover {
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.btn--neutral {
  background: var(--pl-surface-card);
  color: var(--pl-ink);
  border-color: var(--pl-line);
}
.btn--neutral:hover {
  background: var(--pl-line-soft);
}
.btn--compact {
  min-height: 44px;
  padding: 0 var(--sp-4);
  font-size: var(--fs-body);
}
.btn--block {
  display: flex;
  width: 100%;
}
/* Waiting, small: three paw prints that step one after the other (the shape of the paw row at the bottom
   edge, `.page-wait__paws`). No rotation and no overshoot; with reduced motion they fade together (end of
   this file). Used inside a pressed submit button (site.js puts it there) and next to the urgency check and
   the booking times. */
.paw-steps {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pl-teal-deep);
}
.paw-steps > span {
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--paw-shape) center / contain no-repeat;
  mask: var(--paw-shape) center / contain no-repeat;
  opacity: 0.25;
  transform: rotate(90deg) translateX(-2px);
  animation: paw-step 1.4s ease-in-out infinite;
}
.paw-steps > span:nth-child(2) {
  transform: rotate(90deg) translateX(2px);
  animation-delay: 0.2s;
}
.paw-steps > span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes paw-step {
  0%,
  100% {
    opacity: 0.25;
    scale: 0.85;
  }
  25%,
  50% {
    opacity: 1;
    scale: 1;
  }
}
/* A submit button while its form is on the way (site.js sets `is-loading`; htmx sets `htmx-request` on the
   form): the label keeps its room, so the button keeps its width, and the paws take its place. */
.btn.is-loading,
.htmx-request .btn[type="submit"],
.htmx-request.btn {
  position: relative;
  color: transparent;
  pointer-events: none;
}
.btn > .paw-steps {
  display: none;
  position: absolute;
  inset: 0;
  justify-content: center;
  color: var(--btn-paws, #fff);
}
.btn.is-loading > .paw-steps,
.htmx-request .btn[type="submit"] > .paw-steps,
.htmx-request.btn > .paw-steps {
  display: flex;
}
.btn--outline,
.btn--neutral,
.btn--light {
  --btn-paws: var(--pl-teal-deep);
}
/* Shared with the article pages (content.css). */
.btn--light {
  background: var(--pl-surface-card);
  color: var(--pl-teal-deep);
}
.btn--light:hover {
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
/* The official store badges (cotton `site/store_badges`): unaltered artwork, both 48px high (Apple asks at
   least 40px, Google at least 28px and never smaller than the other badge), a quarter of the height as
   clear space between them and to the next element. The focus ring has a light and a dark ring, so it
   shows on either background. */
.store-badges {
  --store-badge-height: 48px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(var(--store-badge-height) / 4);
}
.store-badge {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
}
.store-badge img {
  display: block;
  width: auto;
  height: var(--store-badge-height);
}
@media (max-width: 480px) {
  .store-badges {
    --store-badge-height: 44px;
  }
}
.store-badge:focus-visible {
  outline: 3px solid var(--pl-surface-card);
  outline-offset: 2px;
  box-shadow: 0 0 0 8px var(--pl-teal-deep);
}
.icon-button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-round);
  background: var(--pl-surface-card);
  color: var(--pl-teal-deep);
}
.icon-button--text {
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--pl-ink);
}
.link-button {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 700;
  color: var(--pl-teal-deep);
  text-decoration: underline;
}
.switch {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 0;
  border-radius: var(--r-pill-inf);
  background: var(--pl-switch-off);
  cursor: pointer;
  transition: background-color 0.3s var(--ez-soft);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ez-soft);
}
.switch:checked {
  background: var(--pl-teal-deep);
}
.switch:checked::after {
  transform: translateX(18px);
}
.flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.flag--large {
  width: 32px;
  height: 32px;
}
.icon {
  flex-shrink: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 10;
  background: var(--pl-surface-card);
  border-bottom: 1.5px solid var(--pl-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 12px 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-header__logo {
  flex-shrink: 0;
}
.site-header__logo img {
  height: 30px;
  width: auto;
  /* The paw toes above the "P" take the top quarter of the picture, so the box's middle lies above the
     letters' middle: lifted until the wordmark, not the box, lines up with the navigation text. */
  transform: translateY(-10%);
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  flex-grow: 1;
  gap: 4px 24px;
  font-size: var(--fs-md);
  font-weight: 700;
}
.site-nav a {
  padding: 10px 0;
}
.site-header__actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px 20px;
  font-size: var(--fs-body);
  font-weight: 700;
}
/* "Meine Termine": a plain link with its icon, beside the one primary action (or the account group). */
.site-header__link {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--fs-md);
  font-weight: 700;
  white-space: nowrap;
}
.site-header__actions .btn--compact {
  padding: 0 20px;
  font-size: var(--fs-md);
  white-space: nowrap;
}
/* The service strip above the bar (desktop only): "Für Praxen", "Hilfe", language and region. */
.service-strip {
  background: var(--pl-teal-deepest);
}
.service-strip__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  height: 36px;
}
.service-strip__item {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--r-8);
  background: none;
  font: 500 var(--fs-label) / 1 var(--font-body);
  color: var(--footer-ink);
  white-space: nowrap;
  cursor: pointer;
}
.service-strip__item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.service-strip__item:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
.service-strip__item:last-child {
  margin-right: -10px;
}
/* The home page's header ("hero" variant): strip and bar stand on the hero's deep teal, without the light
   bar's border, with the white logo and light text (white and --footer-ink on #005867: 7.6:1 and 6.4:1).
   Every other page keeps the light header, which scrolls away with the page.
   It stays at the top of the window. Once the hero has left the view (`is-scrolled`, set by home-header.js) it
   takes the light look with a shadow instead of a border, so its height never changes; while the visitor
   scrolls down it slides out (`is-hidden`) and comes back on the way up. Background, text, borders and the
   two logos change together in 0.3 s, so no white text ever stands on white. */
.site-header--hero {
  position: sticky;
  top: 0;
  border-bottom: 0;
  transition: background-color 0.3s var(--ez-soft), box-shadow 0.3s var(--ez-soft), transform 0.3s var(--ez-soft);
}
.site-header--hero .service-strip,
.site-header--hero .site-nav a,
.site-header--hero .site-header__link,
.site-header--hero .account-menu__button,
.site-header--hero .account-menu__button .icon,
.site-header--hero .avatar,
.site-header--hero .icon-button,
.site-header--hero .site-header__logo img {
  transition: color 0.3s var(--ez-soft), background-color 0.3s var(--ez-soft), border-color 0.3s var(--ez-soft),
    box-shadow 0.3s var(--ez-soft), opacity 0.3s var(--ez-soft);
}
.site-header--hero.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 88, 103, 0.08);
}
.site-header--hero.is-hidden {
  transform: translateY(-100%);
}
/* Both logos lie on one spot; the one that fits the background shows. */
.site-header--hero .site-header__logo {
  display: grid;
  align-items: center;
}
.site-header--hero .site-header__logo img {
  grid-area: 1 / 1;
}
.site-header--hero:not(.is-scrolled) .site-header__logo-on-light,
.site-header--hero.is-scrolled .site-header__logo-on-hero {
  opacity: 0;
}
.site-header--hero:not(.is-scrolled) {
  background: var(--pl-teal-deep);
}
.site-header--hero:not(.is-scrolled) .service-strip {
  background: none;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12);
}
.site-header--hero:not(.is-scrolled) .site-nav a,
.site-header--hero:not(.is-scrolled) .site-header__link {
  color: #fff;
}
.site-header--hero:not(.is-scrolled) .site-nav a:hover,
.site-header--hero:not(.is-scrolled) .site-header__link:hover {
  color: var(--footer-ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.site-header--hero:not(.is-scrolled) :focus-visible:not(.account-menu__panel *) {
  outline-color: #fff;
}
.site-header--hero:not(.is-scrolled) .account-menu__button {
  border-color: rgba(255, 255, 255, 0.7);
  background: none;
  color: #fff;
}
.site-header--hero:not(.is-scrolled) .account-menu__button:hover,
.site-header--hero:not(.is-scrolled) .account-menu__button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.1);
}
.site-header--hero:not(.is-scrolled) .account-menu__button .icon {
  color: var(--footer-ink);
}
.site-header--hero:not(.is-scrolled) .avatar {
  background: #fff;
  color: var(--pl-teal-deep);
}
.site-header--hero:not(.is-scrolled) .icon-button {
  border-color: rgba(255, 255, 255, 0.45);
  background: none;
  color: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .site-header--hero,
  .site-header--hero * {
    transition: none !important;
  }
}
.site-header__mobile {
  display: none;
  align-items: center;
  gap: 8px;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Signed in (site.js sets the attribute once the account fragment says so): the account group holds
   "Meine Termine", so the cached controls for it step aside. */
[data-signed-in] [data-signed-out-only] {
  display: none;
}
.avatar {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-round);
  background: var(--pl-teal-deep);
  font: 700 var(--fs-label) / 1 var(--font-body);
  color: #fff;
}
/* The header's account group: one button, and a panel under it (`accountMenu` in site.js). */
.account-menu {
  position: relative;
}
.account-menu__button {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-height: 44px;
  padding: 0 var(--sp-3) 0 7px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-pill-inf);
  background: var(--pl-surface-card);
  font: 700 var(--fs-body) / 1.2 var(--font-body);
  color: var(--pl-ink);
  cursor: pointer;
  transition: background-color 0.3s var(--ez-soft);
}
.account-menu__button:hover,
.account-menu__button[aria-expanded="true"] {
  background: var(--pl-line-soft);
}
.account-menu__button .icon {
  color: var(--pl-ink-muted);
}
.account-menu__name {
  max-width: 14ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-menu__panel {
  position: absolute;
  top: calc(100% + var(--sp-2));
  right: 0;
  z-index: 20;
  min-width: 220px;
  padding: 6px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-lg);
  background: var(--pl-surface-card);
  box-shadow: 0 12px 32px rgba(0, 61, 74, 0.16);
}
.account-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 var(--sp-3);
  border: 0;
  border-radius: var(--r-8);
  background: none;
  font: 700 var(--fs-body) / 1.2 var(--font-body);
  color: var(--pl-teal-deep);
  text-align: left;
  cursor: pointer;
}
.account-menu__item:hover {
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.account-menu__item--quiet,
.account-menu__item--quiet:hover {
  color: var(--pl-ink-muted);
}
.account-menu__panel form {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1.5px solid var(--pl-line-soft);
}
/* The same group in the mobile menu. */
.account-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-3);
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-lg);
}
.account-group__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
  color: var(--pl-ink);
}
.account-group__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emergency-strip {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--pl-red-pale);
  border-bottom: 1.5px solid var(--pl-red-line);
  color: var(--pl-red);
  font-size: var(--fs-body);
  font-weight: 700;
}
.emergency-strip:hover {
  color: var(--pl-red);
}
.emergency-strip__text {
  flex-grow: 1;
}

/* Mobile menu: a panel from the right over the dimmed page (board "Menu open"). */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
}
.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(340px, calc(100% - 40px));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(20px + env(safe-area-inset-bottom, 0px)) 16px;
  background: var(--pl-surface-card);
  border-radius: 24px 0 0 24px;
  box-shadow: -12px 0 40px rgba(0, 40, 50, 0.25);
}
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}
.mobile-menu__top img {
  height: 24px;
  width: auto;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 6px 4px;
  border-bottom: 1.5px solid var(--pl-line-soft);
  color: var(--pl-teal-deep);
}
.menu-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: var(--pl-teal-pale);
  color: var(--pl-teal-deep);
}
.menu-item__text {
  flex-grow: 1;
  min-width: 0;
}
.menu-item__text strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-title-sm);
  font-weight: 600;
  line-height: 1.2;
}
.menu-item__text span {
  display: block;
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--pl-ink-muted);
}
.menu-item--emergency,
.menu-item--emergency:hover {
  color: var(--pl-red);
}
.menu-item--emergency .menu-item__icon {
  background: var(--pl-red-pale);
  color: var(--pl-red);
}
.mobile-menu__plain {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
}
.mobile-menu__plain a {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  color: var(--pl-ink);
}
.mobile-menu__bottom {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.account--menu {
  flex-direction: column;
  align-items: stretch;
}

/* Region button: footer (dark) and mobile menu (light). */
.region-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: var(--r-lg);
  font: 700 var(--fs-md) var(--font-body);
  text-align: left;
}
.region-button--dark {
  border: 1.5px solid var(--footer-control-line);
  background: none;
  color: #fff;
}
.region-button--light {
  display: flex;
  width: 100%;
  min-height: 48px;
  border: 1.5px solid var(--pl-line);
  background: var(--pl-surface-card);
  color: var(--pl-ink);
}
.region-button--light .region-button__label {
  flex-grow: 1;
}

/* Legal links */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
}
.legal-links a {
  padding: 10px 0;
}
.legal-links--menu {
  gap: 0 16px;
  font-size: var(--fs-label);
  font-weight: 600;
}
.legal-links--menu a {
  color: var(--pl-ink-muted);
}

/* Footer (board "Startseite", columns as spec section 24.2). */
.site-footer {
  background: var(--pl-teal-deepest);
  color: var(--footer-ink);
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-top: var(--sp-9);
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.site-footer__columns {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 48px;
}
.site-footer__brand {
  flex: 2 1 280px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.site-footer__brand img {
  height: 30px;
  width: auto;
}
.site-footer__brand p {
  max-width: 300px;
  font-size: var(--fs-body-lg);
  color: var(--footer-muted);
}
.site-footer__languages {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.site-footer__column {
  flex: 1 1 160px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.site-footer__label {
  margin-bottom: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: var(--pl-label-tracking);
  text-transform: uppercase;
  color: var(--footer-label);
}
.site-footer a {
  color: var(--footer-ink);
}
.site-footer__column a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 6px 0;
  font-size: var(--fs-md);
  font-weight: 600;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 20px;
  border-top: 1.5px solid var(--footer-line);
  font-size: var(--fs-body);
  font-weight: 600;
}
.legal-links--footer a {
  color: var(--footer-muted);
}
.site-footer__copyright {
  font-weight: 500;
  color: var(--footer-copyright);
}

/* Language and region picker: a dialog on desktop, a bottom sheet on phones (spec section 24.2). */
.language-picker {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.language-picker__dialog {
  position: absolute;
  top: 96px;
  left: 50%;
  width: 460px;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: var(--sp-6);
  background: var(--pl-surface-card);
  border-radius: 24px;
  box-shadow: var(--sh-dialog);
}
.language-picker__handle {
  display: none;
}
.language-picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.language-picker__choices {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.language-picker__links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.language-picker .label {
  margin-bottom: 10px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 8px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px;
  border: 1.5px solid var(--pl-line);
  border-radius: var(--r-card);
  background: var(--pl-surface-card);
  box-shadow: 0 2px 8px rgba(0, 88, 103, 0.06);
  font: 600 var(--fs-body-lg) var(--font-body);
  color: var(--pl-ink);
  text-align: left;
}
.choice[aria-checked="true"] {
  border-color: var(--pl-teal-deep);
  background: var(--pl-teal-pale);
  box-shadow: 0 4px 14px rgba(0, 88, 103, 0.14);
}
.choice:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.choice__code {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 164, 179, 0.16);
  color: var(--pl-teal-deep);
  font-size: var(--fs-sm);
  font-weight: 800;
}

/* The filled part of an icon (the cookie icon) and a tinted one (locate). */
.icon__fill {
  fill: var(--pl-cookie-fill);
}
.icon__tint {
  fill: currentColor;
  fill-opacity: 0.16;
}

/* 404 */
.not-found {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-9);
}

/* The narrowest desktop header: the Italian navigation is the longest and must stay on one row. */
@media (min-width: 1024px) and (max-width: 1099px) {
  :lang(it) > body .site-header__inner {
    column-gap: 20px;
  }
  :lang(it) > body .site-nav {
    column-gap: 14px;
    font-size: var(--fs-body);
  }
}

/* Phones and narrow windows: the mobile header and menu (boards "Mob*", 390 px). */
@media (max-width: 1023px) {
  :root {
    --gutter: 16px;
  }
  .site-header__inner {
    gap: 8px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .site-header__logo {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-right: auto;
  }
  .site-header__logo img {
    height: 24px;
  }
  .site-nav,
  .site-header__actions,
  .service-strip {
    display: none;
  }
  .site-header__mobile {
    display: flex;
  }
  .emergency-strip {
    display: flex;
  }
  .heading-display {
    font-size: 34px;
  }
}

/* Phones and tablets: the last footer line stays clear of a browser's floating bottom bar (iOS Safari's
   covered it on the sign-in page and the 404, Patrick's review). A page with its own fixed bar sets less. */
@media (max-width: 1023px) {
  .site-footer__inner {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .site-footer__inner {
    padding-top: var(--sp-7);
  }
  .site-footer__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 16px;
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
  .site-footer__column a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 4px 0;
  }
  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer .region-button {
    width: 100%;
  }
  .site-footer .region-button__label {
    flex-grow: 1;
  }
  .language-picker__dialog {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: none;
    gap: 20px;
    padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    border-radius: 24px 24px 0 0;
  }
  .language-picker__handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--pl-line);
  }
}

/* Touch targets (full round A4): on phones and tablets every breadcrumb and footer link is at least 48 px
   high and wide, by padding (the text keeps its size), with room between neighbours. The breadcrumb is one
   row that scrolls sideways instead of wrapping (Karim's review of 26 November 2026: wrapped rows of 48 px
   targets spread four words over 150 px of the first screen). */
@media (max-width: 1023px) {
  .breadcrumb {
    flex-wrap: nowrap;
    column-gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* A row cut at the edge fades out there instead of ending in half a letter. */
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
  }
  .breadcrumb [aria-current="page"] {
    flex: none;
    padding: 0 28px 0 6px;
  }
  .breadcrumb::-webkit-scrollbar {
    display: none;
  }
  .breadcrumb a {
    flex: none;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 6px;
  }
  .breadcrumb a:first-child {
    justify-content: flex-start;
    padding-left: 0;
  }
  .site-footer a,
  .legal-links a {
    display: inline-flex;
    align-items: center;
    min-width: 48px;
    min-height: 48px;
    padding-top: 0;
    padding-bottom: 0;
  }
  .legal-links {
    gap: 0 var(--sp-5);
  }
  .site-footer .region-button {
    min-height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Waiting for the next page or for an htmx answer (site.js builds the element and sets the classes). */
.page-wait {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.page-wait__bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pl-teal) 0%, var(--pl-teal-deep) 45%, var(--pl-coral) 100%);
  background-size: 200% 100%;
  box-shadow: 0 0 8px rgba(59, 164, 179, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.page-wait--bar .page-wait__bar {
  opacity: 1;
  /* Fast at first, then ever slower: the bar never reaches the end before the answer does. */
  animation: page-wait-grow 12s cubic-bezier(0.05, 0.75, 0.1, 1) forwards, page-wait-shine 1.4s linear infinite;
}
@keyframes page-wait-grow {
  0% {
    transform: scaleX(0);
  }
  12% {
    transform: scaleX(0.45);
  }
  40% {
    transform: scaleX(0.75);
  }
  100% {
    transform: scaleX(0.95);
  }
}
@keyframes page-wait-shine {
  to {
    background-position: -200% 0;
  }
}
.page-wait__paws {
  position: absolute;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--pl-surface-card);
  box-shadow: 0 8px 28px rgba(0, 61, 74, 0.18), 0 0 0 1px var(--pl-line-soft);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s var(--ez-soft), transform 0.25s var(--ez-soft);
}
.page-wait--paws .page-wait__paws {
  opacity: 1;
  transform: translate(-50%, 0);
}
.page-wait__paws span {
  width: 18px;
  height: 18px;
  background: var(--pl-teal-deep);
  -webkit-mask: var(--paw-shape) center / contain no-repeat;
  mask: var(--paw-shape) center / contain no-repeat;
  opacity: 0.25;
  transform: rotate(90deg) translateX(-3px);
}
.page-wait__paws span:nth-child(even) {
  transform: rotate(90deg) translateX(3px);
}
.page-wait--paws .page-wait__paws span {
  animation: paw-step 1.6s ease-in-out infinite;
}
.page-wait__paws span:nth-child(2) {
  animation-delay: 0.2s;
}
.page-wait__paws span:nth-child(3) {
  animation-delay: 0.4s;
}
.page-wait__paws span:nth-child(4) {
  animation-delay: 0.6s;
}
@media (prefers-reduced-motion: reduce) {
  .page-wait--bar .page-wait__bar {
    animation: none;
    transform: scaleX(1);
  }
  /* The rule above switches every animation off; the paws alone keep a slow fade, all together and
     without any movement, so a wait still shows as one. */
  .page-wait--paws .page-wait__paws span,
  .paw-steps > span {
    animation: paw-fade 2.4s ease-in-out infinite !important;
  }
}
@keyframes paw-fade {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

/* Place links (the place page's districts and nearby places, the profile's and the article's place links,
   full round B7): chips with an optional distance. */
.place-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
.place-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 14px;
  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;
}
.place-chip__distance {
  font-weight: 600;
  color: var(--pl-ink-muted);
  white-space: nowrap;
}
.place-links-block {
  margin-top: var(--sp-7);
}
.place-links-block .heading-3 {
  margin-bottom: var(--sp-3);
}
