/*
 * Hausarztpraxis Hagen - Website-Design V2
 * Ruhiger, persoenlicher und grosszuegiger Auftritt auf dem bestehenden Markup.
 */

:root {
  --navy: #1d3f7a;
  --navy-deep: #132d5f;
  --orange: #f26b2b;
  --orange-action: #b84712;
  --apricot: #ffd8bd;
  --ink: #233552;
  --muted: #5c6b82;
  --line: #dce4ee;
  --paper: #ffffff;
  --wash: #f2f6fa;
  --warm: #fbf6f0;
  --space-1: .4rem;
  --space-2: .8rem;
  --space-3: 1.1rem;
  --space-4: 1.6rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5.75rem;
  --radius-sm: .75rem;
  --radius-md: 1.15rem;
  --radius-lg: 1.65rem;
  --shadow-card: 0 18px 55px rgba(23, 48, 94, .09);
  --shadow-header: 0 8px 30px rgba(23, 48, 94, .08);
  --container: 75rem;
  --body-size: 1.0625rem;
  --small-size: .9rem;
  --section-title: clamp(2.25rem, 3.4vw, 3.35rem);
  --hero-title: clamp(3rem, 5vw, 4.85rem);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
}

h1,
h2,
h3 {
  color: var(--navy-deep);
  font-weight: 760;
  letter-spacing: -.035em;
}

h3 {
  font-size: 1.28rem;
}

.eyebrow {
  margin-bottom: .85rem;
  color: var(--orange-action);
  font-size: .76rem;
  letter-spacing: .18em;
}

.site-header {
  border-bottom: 1px solid rgba(220, 228, 238, .8);
  box-shadow: none;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-header);
}

.header-inner {
  min-height: 6.25rem;
  gap: 1.4rem;
}

.brand {
  width: clamp(12rem, 16vw, 14rem);
}

.site-nav {
  gap: clamp(.7rem, 1.25vw, 1.3rem);
}

.site-nav > a {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 700;
  border-bottom-width: 3px;
}

.nav-service {
  min-height: 3.15rem;
  padding-inline: 1.2rem;
  border-radius: .8rem;
  box-shadow: 0 8px 20px rgba(184, 71, 18, .2);
}

.language-switch {
  gap: .3rem;
}

.language-switch a {
  min-height: 2.75rem;
  padding: .35rem .45rem;
}

.hero {
  min-height: 34rem;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #687086;
  isolation: isolate;
}

.hero::before {
  display: none;
}

.hero-media {
  inset: 0;
  overflow: hidden;
  border-radius: 0;
  background: linear-gradient(135deg, #687086, #3f485f);
  box-shadow: none;
}

.hero-media img {
  object-fit: cover;
  object-position: 50% 50%;
}

.hero-filter {
  opacity: 1;
}

.hero-inner {
  min-height: 34rem;
}

.hero-copy {
  width: min(100%, 48rem);
  padding: var(--space-7) 0;
}

.hero .eyebrow {
  color: #ffd5b6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}

.hero h1,
.hero h2 {
  max-width: 13ch;
  margin-bottom: 1.1rem;
  color: #fff;
  line-height: 1.06;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .38);
}

.hero-lead {
  margin-bottom: .8rem;
  color: #fff;
  font-size: clamp(1.18rem, 1.7vw, 1.48rem);
  line-height: 1.4;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .42);
}

.hero-body {
  max-width: 42rem;
  color: #f5f7fc;
  font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}

.hero-actions {
  gap: .8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.3rem;
  padding: .8rem 1.35rem;
  border-radius: .8rem;
}

.button--orange {
  box-shadow: 0 9px 22px rgba(184, 71, 18, .18);
}

.button--outline {
  background: rgba(255, 255, 255, .82);
  border-color: #9aa9bd;
}

.hero-controls span {
  color: #fff;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .5);
}

.hero-quick-info {
  position: relative;
  z-index: 5;
  display: block;
  margin-top: -2.2rem;
}

.hero-quick-info__card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(215, 224, 234, .95);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 48px rgba(19, 45, 95, .16);
}

.hero-quick-info__item {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: .95rem;
  min-width: 0;
  min-height: 7rem;
  padding: 1.05rem 1.35rem;
  color: var(--navy-deep);
  text-decoration: none;
}

.hero-quick-info__item + .hero-quick-info__item::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  bottom: 1.15rem;
  left: 0;
  width: 1px;
  background: var(--line);
}

.hero-quick-info__icon-wrap {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  color: var(--navy-deep);
}

.hero-quick-info__icon {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-quick-info__copy {
  display: grid;
  gap: .12rem;
  min-width: 0;
  line-height: 1.3;
}

.hero-quick-info__copy strong {
  color: var(--navy-deep);
  font-size: clamp(.98rem, 1.2vw, 1.13rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.hero-quick-info__copy > span:not(.hero-quick-info__label):not(.hero-quick-info__action) {
  color: #53647c;
  font-size: .79rem;
  font-weight: 650;
}

.hero-quick-info__label {
  color: #52627a;
  font-size: .74rem;
  font-weight: 700;
}

.hero-quick-info__action {
  justify-self: start;
  margin-top: .12rem;
  color: var(--orange-action);
  font-size: .76rem;
  font-weight: 800;
}

.hero-quick-info__item--hours {
  transition: background-color .2s ease;
}

.hero-quick-info__item--hours:hover,
.hero-quick-info__item--hours:focus-visible {
  background: #fff9f4;
}

.hero-quick-info__item--phone {
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  margin: .7rem;
  min-height: calc(7rem - 1.4rem);
  padding-block: .65rem;
  border-radius: .9rem;
  background: #fff7f0;
  transition: background-color .2s ease, transform .2s ease;
}

.hero-quick-info__item--phone::before {
  top: .45rem !important;
  bottom: .45rem !important;
  left: -.7rem !important;
}

.hero-quick-info__item--phone:hover,
.hero-quick-info__item--phone:focus-visible {
  background: #ffecdd;
  transform: translateY(-1px);
}

.hero-quick-info__phone-arrow {
  color: var(--orange-action);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
}

.hero-quick-info[data-state="open"] .hero-quick-info__item--status .hero-quick-info__icon-wrap,
.hero-quick-info[data-state="open"] .hero-quick-info__item--status strong {
  color: #218b42;
}

.hero-quick-info[data-state="pause"] .hero-quick-info__item--status .hero-quick-info__icon-wrap,
.hero-quick-info[data-state="pause"] .hero-quick-info__item--status strong {
  color: #b85a17;
}

.hero-quick-info[data-state="closed"] .hero-quick-info__item--status .hero-quick-info__icon-wrap,
.hero-quick-info[data-state="closed"] .hero-quick-info__item--status strong {
  color: #b52d2d;
}

.section {
  padding: var(--space-7) 0;
}

.section-grid {
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(3rem, 7vw, 6.5rem);
}

.section-lead {
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.practice {
  background: #fff;
}

.practice-card {
  position: relative;
  min-height: 15rem;
  overflow: hidden;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid #f2d5bf;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(242, 107, 43, .17), transparent 14rem),
    var(--warm);
  box-shadow: 0 18px 50px rgba(128, 73, 34, .07);
}

.practice-card__mark {
  width: 3.35rem;
  height: 3.35rem;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(242, 107, 43, .22);
}

.practice-card p {
  font-size: 1rem;
  line-height: 1.65;
}

.services {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 11rem),
    var(--wash);
}

.section-heading {
  align-items: end;
  margin-bottom: 2.6rem;
}

.section-heading > .rich-text {
  max-width: 35rem;
  font-size: 1.05rem;
}

.service-grid {
  gap: 1.1rem;
}

.service-card {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 1.25rem;
  align-content: start;
  min-height: 14rem;
  padding: 1.7rem;
  border-color: rgba(211, 222, 234, .9);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(23, 48, 94, .065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #c2d1e0;
  box-shadow: 0 18px 48px rgba(23, 48, 94, .11);
}

.service-card__icon {
  display: none;
}

.service-card__image {
  grid-column: 1;
  grid-row: 1 / 4;
  width: 7rem;
  height: 7rem;
  max-height: none;
  margin: 0;
  align-self: center;
  justify-self: center;
  object-fit: contain;
  border-radius: 0;
}

.service-card h3,
.service-card > .rich-text,
.service-card > .text-link {
  grid-column: 2;
}

.service-card h3 {
  max-width: none;
  margin-bottom: .35rem;
  font-size: 1.13rem;
}

.service-card p {
  margin-bottom: .9rem;
  font-size: .95rem;
  line-height: 1.55;
}

.service-card .text-link {
  margin-top: auto;
}

.hours {
  background: #fff;
}

.hours-grid {
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.hours-card {
  padding: 1.2rem 1.6rem;
  border-color: #d7e0ea;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.hours-card__head,
.hours-card__row {
  grid-template-columns: .72fr 1.28fr;
  padding: .75rem .3rem;
}

.hours-card__head {
  border-bottom-color: var(--orange);
}

.hours-card__row--today {
  margin-top: .35rem;
  border-radius: .65rem;
  background: #fff5eb;
  color: var(--navy-deep);
  font-weight: 700;
}

.hours-card__row--today > span:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.hours-card__today {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: var(--orange-action);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}

.contact {
  background:
    radial-gradient(circle at 12% 22%, rgba(242, 107, 43, .07), transparent 20rem),
    var(--wash);
}

.contact-grid {
  grid-template-columns: .82fr 1.18fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.contact-stack {
  gap: .8rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 12px 40px rgba(23, 48, 94, .06);
}

.contact-info,
.arrival-card {
  padding: 1rem;
  border: 0;
  border-radius: .8rem;
  background: #f8fafc;
}

.arrival-card {
  min-height: 10rem;
  background: linear-gradient(135deg, #f8fafc, #eef4f9);
}

.contact-info h3,
.arrival-card h3 {
  color: var(--navy-deep);
  font-size: .92rem;
  letter-spacing: 0;
}

.contact-form-card {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  border-color: #d7e0ea;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.field-grid {
  gap: 1rem;
}

.field input,
.field select,
.field textarea {
  min-height: 3rem;
  border-color: #9cabc0;
  border-radius: .7rem;
  padding: .72rem .8rem;
}

.field textarea {
  min-height: 7rem;
}

.privacy-confirm input,
.cookie-choice input {
  width: 1.2rem;
  height: 1.2rem;
}

.emergency {
  background: #102857;
}

.emergency-inner {
  padding-block: 2rem;
}

.site-footer {
  padding-top: 3.5rem;
  background: #102857;
}

.footer-grid {
  grid-template-columns: 1.7fr .8fr .8fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.footer-brand img {
  width: min(100%, 15rem);
  padding: .55rem;
  border-radius: .8rem;
}

.modal {
  border: 1px solid rgba(220, 228, 238, .9);
  border-radius: var(--radius-lg);
}

.modal::backdrop {
  background: rgba(9, 25, 55, .7);
  backdrop-filter: blur(3px);
}

.cookie-banner {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(9, 25, 55, .23);
}

.cookie-banner__actions .button {
  min-height: 2.75rem;
}

.legal-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

@media (max-width: 1120px) {
  .header-inner {
    min-height: 0;
  }

  .brand {
    width: clamp(10rem, 34vw, 12rem);
  }

  .header-tools {
    padding-top: .45rem;
  }

  .site-nav > a {
    min-height: 2.9rem;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 0;
    padding: clamp(18rem, 62vw, 25rem) 0 0;
    border-bottom: 0;
    background:
      radial-gradient(circle at 42% 25%, rgba(242, 107, 43, .1), transparent 24rem),
      linear-gradient(135deg, #fffaf5 0%, #f8f4ef 58%, #eef4f8 100%);
  }

  .hero::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    left: -10rem;
    bottom: -13rem;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: rgba(255, 216, 189, .26);
    pointer-events: none;
  }

  .hero-media {
    inset: 0 0 auto;
    height: clamp(18rem, 62vw, 25rem);
    border-radius: 0;
    box-shadow: none;
  }

  .hero-filter {
    opacity: .08;
  }

  .hero-inner {
    min-height: 0;
  }

  .hero-copy {
    width: 100%;
    padding: 3.25rem 0 4.25rem;
  }

  .hero h1,
  .hero h2 {
    max-width: 16ch;
    color: var(--navy-deep);
    text-shadow: none;
  }

  .hero .eyebrow {
    color: var(--orange-action);
    text-shadow: none;
  }

  .hero-lead {
    color: var(--navy-deep);
    text-shadow: none;
  }

  .hero-body {
    color: var(--muted);
    text-shadow: none;
  }

  .hero-controls span {
    color: var(--navy-deep);
    text-shadow: none;
  }

  .section-grid,
  .hours-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .hours-grid {
    gap: 2.75rem;
  }

  .contact-grid {
    gap: 1.25rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --body-size: 1rem;
    --space-7: 4rem;
    --section-title: clamp(2rem, 10vw, 2.65rem);
    --hero-title: clamp(2.55rem, 12vw, 3.45rem);
  }

  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .hero {
    padding-top: clamp(17rem, 76vw, 23rem);
  }

  .hero-media {
    height: clamp(17rem, 76vw, 23rem);
  }

  .hero-copy {
    padding: 2.6rem 0 3.5rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-quick-info {
    margin-top: -1.25rem;
  }

  .hero-quick-info__card {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 1.1rem;
  }

  .hero-quick-info__item,
  .hero-quick-info__item--phone {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: .78rem;
    min-height: 4.7rem;
    margin: 0;
    padding: .7rem .9rem;
    border-radius: 0;
  }

  .hero-quick-info__item--phone {
    grid-template-columns: 2.4rem minmax(0, 1fr) auto;
    border-radius: 0 0 1.05rem 1.05rem;
  }

  .hero-quick-info__item + .hero-quick-info__item::before,
  .hero-quick-info__item--phone::before {
    top: 0 !important;
    right: .9rem;
    bottom: auto !important;
    left: .9rem !important;
    width: auto;
    height: 1px;
  }

  .hero-quick-info__icon-wrap {
    width: 2.4rem;
    height: 2.4rem;
  }

  .hero-quick-info__icon {
    width: 2rem;
    height: 2rem;
  }

  .hero-quick-info__copy {
    gap: .05rem;
  }

  .hero-quick-info__copy strong {
    font-size: .96rem;
  }

  .hero-quick-info__copy > span:not(.hero-quick-info__label):not(.hero-quick-info__action),
  .hero-quick-info__label,
  .hero-quick-info__action {
    font-size: .72rem;
  }

  .hero-quick-info__hours {
    font-size: clamp(.85rem, 3.8vw, .96rem) !important;
  }

  .hero-quick-info__phone-arrow {
    font-size: 1.35rem;
  }

  .practice-card {
    padding: 1.6rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .service-grid,
  .contact-stack,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 6rem minmax(0, 1fr);
    min-height: 0;
    padding: 1.35rem;
  }

  .service-card__image {
    width: 5.5rem;
    height: 5.5rem;
  }

  .contact-stack,
  .contact-form-card {
    padding: 1.1rem;
  }

  dialog.modal,
  dialog.modal--form {
    width: calc(100vw - 1rem);
    max-width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
    overflow-x: hidden;
    touch-action: pan-y;
  }

  .modal__inner {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 1.25rem;
    overflow-x: hidden;
  }

  .modal__inner > h2 {
    max-width: 100%;
    padding-right: 2.75rem;
    font-size: clamp(1.65rem, 8.5vw, 2.2rem);
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .modal__close {
    top: .75rem;
    right: .75rem;
  }

  .modal .field-grid {
    grid-template-columns: minmax(0, 1fr);
    margin-block: 1.5rem;
  }

  .modal .field,
  .modal .field input,
  .modal .field select,
  .modal .field textarea,
  .modal .privacy-confirm,
  .modal .privacy-confirm label,
  .modal .form-note,
  .modal .preview-note,
  .modal .rich-text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .modal__actions {
    align-items: stretch;
    gap: .75rem;
  }

  .modal__actions .button {
    width: 100%;
  }

  .hours-card {
    padding: .8rem 1rem;
  }

  .hours-card__head,
  .hours-card__row {
    grid-template-columns: .68fr 1.32fr;
    gap: .65rem;
    font-size: .9rem;
  }

  .emergency-inner {
    padding-block: 1.6rem;
  }
}

@media (max-width: 390px) {
  .modal__inner {
    padding: 1rem;
  }

  .service-card {
    grid-template-columns: 5.25rem minmax(0, 1fr);
    column-gap: 1rem;
  }

  .service-card__image {
    width: 4.9rem;
    height: 4.9rem;
  }

  .hours-card__head,
  .hours-card__row {
    grid-template-columns: 1fr;
    gap: .1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card {
    transition: none;
  }

  .service-card:hover {
    transform: none;
  }
}

/*
 * Abwesenheit und Vertretung
 * Ruhiger warmer Hinweis, klar getrennte Vertretungsinformation.
 */
.vacation-banner-wrap {
  padding-top: clamp(1rem, 2vw, 1.6rem);
}

.vacation-card {
  gap: 1.15rem;
  border: 1px solid #f0c7a8;
  border-left: .35rem solid var(--orange);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 216, 189, .42), transparent 18rem),
    #fffaf6;
  box-shadow: 0 16px 42px rgba(80, 53, 36, .08);
}

.vacation-card__header {
  display: block;
}

.vacation-card__eyebrow {
  color: #9a481e;
  letter-spacing: .11em;
}

.vacation-card h2 {
  margin-bottom: .15rem;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.vacation-card__period {
  color: #76513e;
  font-size: .88rem;
}

.vacation-card__text {
  max-width: 62rem;
  color: #3f4d63;
  line-height: 1.72;
}

.vacation-representative {
  position: relative;
  display: grid;
  gap: .25rem;
  margin: 0;
  padding: 1rem 1.15rem 1.05rem 1.35rem;
  overflow: hidden;
  border: 1px solid #cdddea;
  border-radius: .9rem;
  background: #eef5f8;
}

.vacation-representative::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: .28rem;
  background: var(--navy);
  content: "";
}

.vacation-representative__eyebrow {
  color: #476782;
  letter-spacing: .1em;
}

.vacation-representative h3 {
  margin: 0 0 .25rem;
  color: var(--navy-deep);
  font-size: 1.08rem;
}

.vacation-representative address,
.vacation-representative__phone,
.vacation-representative__note {
  margin: .15rem 0;
  color: #40566b;
  line-height: 1.58;
}

.vacation-representative a {
  color: var(--navy-deep);
  text-decoration-thickness: 1px;
}

.modal .vacation-notice,
.contact-form-card .vacation-notice {
  padding: 1rem;
  box-shadow: none;
}

.vacation-popup {
  width: min(calc(100vw - 2rem), 47rem);
  border: 1px solid rgba(240, 199, 168, .75);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 216, 189, .5), transparent 19rem),
    #fffdfb;
  box-shadow: 0 32px 90px rgba(16, 31, 64, .3);
}

.vacation-popup[open] {
  animation: vacation-popup-enter .24s ease-out both;
}

.vacation-popup::backdrop {
  background: rgba(15, 28, 57, .72);
  backdrop-filter: blur(3px);
}

.vacation-popup .modal__inner {
  padding: clamp(1.25rem, 4vw, 2.35rem);
}

.vacation-popup__eyebrow {
  margin: 0 3rem .85rem 0;
  color: #9a481e;
  font-weight: 850;
  letter-spacing: .11em;
}

.vacation-popup__card {
  padding: clamp(1rem, 3vw, 1.4rem);
  box-shadow: none;
}

.vacation-popup__actions {
  margin-top: 1rem;
}

.vacation-popup__actions .button {
  width: 100%;
}

@keyframes vacation-popup-enter {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 620px) {
  .vacation-card {
    gap: .9rem;
    padding: 1rem;
    border-left-width: .25rem;
  }

  .vacation-representative {
    padding: .85rem .9rem .9rem 1.1rem;
  }

  .vacation-popup {
    width: calc(100vw - 1rem);
    max-height: calc(100dvh - 1rem);
  }

  .vacation-popup .modal__inner {
    padding: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacation-popup[open] {
    animation: none;
  }
}

/*
 * Kompakte Notfallkontakte im Footer
 * Integriert 112 und 116117 als ruhige zweite Spalte.
 */
.footer-grid--with-emergency {
  grid-template-columns: minmax(16rem, 1.55fr) minmax(13rem, 1fr) minmax(8.5rem, .72fr) minmax(8.5rem, .72fr);
  gap: clamp(1.5rem, 3.2vw, 3.5rem);
}

.footer-emergency {
  min-width: 0;
}

.footer-emergency__summary {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.footer-emergency__list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-emergency__row {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: .55rem;
  align-items: start;
  margin: 0;
  color: #f4f5fb;
  line-height: 1.55;
}

.footer-emergency__row .footer-contact__icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .22rem;
}

.footer-emergency__row--danger .footer-contact__icon,
.footer-emergency__row--danger a {
  color: #ff716b;
}

.footer-emergency__row--on-call .footer-contact__icon,
.footer-emergency__row--on-call a {
  color: #ff8a3d;
}

.site-footer .footer-emergency__row a {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .16em;
}

.site-footer .footer-emergency__row a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: .2rem;
  border-radius: .15rem;
}

@media (max-width: 980px) {
  .footer-grid--with-emergency {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2.25rem 2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid--with-emergency {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .footer-emergency__list {
    gap: .55rem;
  }
}
