@font-face {
  font-family: "Montserrat";
  src: url('/assets/fonts/Montserrat/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url('/assets/fonts/Montserrat/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Tenor Sans";
  src:
    url('/assets/fonts/Tenor_Sans/Tenor_Sans.woff2') format('woff2'),
    url('/assets/fonts/Tenor_Sans/TenorSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #fbfafc;
  --bg-soft: #f6f2ec;
  --bg-rgb: 251 250 252;
  --surface: #ffffff;
  --surface-rgb: 255 255 255;
  --text: #4b5e60;
  --muted: #5f6a6e;
  --purple-600: #7B5AA6;
  --purple-400: #825cff;
  --purple-200: #c2a6ff;
  --purple-600-rgb: 82 48 255;
  --purple-200-rgb: 194 166 255;
  --text-rgb: 75 94 96;
  --neutral-100: #f6f3f8;
  --border: #ebe7f0;
  --shadow: 0 20px 50px rgba(75, 94, 96, 0.08);
  --header-border: rgba(75, 94, 96, 0.1);
  --header-shadow: 0 10px 30px rgba(75, 94, 96, 0.08);
  --input-bg: #ffffff;
  --panel-bg: #f6f2ec;
  --overlay-surface: rgba(255, 255, 255, 0.92);
  --section-alt-bg: var(--bg-soft);
  --radius: 20px;
  --container-max: 1200px;
  --container-padding-x: 1.25rem;
  --section-padding-y: 4.5rem;
  --max-width: var(--container-max);
  --header-height: 60px;
  --header-padding-x: 0rem;
  --header-padding-y: 0rem;
  --z-header: 50;
  --z-cookie: 2000;
  --z-menu: 3000;
  --z-promo: 8000;
  --z-lightbox: 9000;
  --fs-h1: 2.6rem;
  --fs-h2: 1.6rem;
  --fs-body: 1rem;
  --fs-nav: 0.85rem;
  --fs-button: 0.85rem;
  /* фиксированные цвета для overlay-board */
  --board-text: #4b5e60;
  --board-muted: #5f6a6e;
  --board-accent: #5230ff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1d1a24;
  --bg-soft: #242031;
  --bg-rgb: 29 26 36;
  --surface: #2a2633;
  --surface-rgb: 42 38 51;
  --text: #e8e1f2;
  --muted: #c1b8d3;
  --text-rgb: 232 225 242;
  --neutral-100: #211d2a;
  --border: #3b3348;
  --shadow: 0 22px 60px rgba(8, 6, 14, 0.55);
  --header-border: rgba(232, 225, 242, 0.12);
  --header-shadow: 0 10px 30px rgba(6, 5, 10, 0.6);
  --input-bg: #201c28;
  --panel-bg: #262234;
  --overlay-surface: rgba(29, 26, 36, 0.92);
  --section-alt-bg: #242031;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #fbfafc;
  --bg-soft: #f6f2ec;
  --bg-rgb: 251 250 252;
  --surface: #ffffff;
  --surface-rgb: 255 255 255;
  --text: #4b5e60;
  --muted: #5f6a6e;
  --purple-600: #7B5AA6;
  --purple-400: #825cff;
  --purple-200: #c2a6ff;
  --purple-600-rgb: 82 48 255;
  --purple-200-rgb: 194 166 255;
  --text-rgb: 75 94 96;
  --neutral-100: #f6f3f8;
  --border: #ebe7f0;
  --shadow: 0 20px 50px rgba(75, 94, 96, 0.08);
  --header-border: rgba(75, 94, 96, 0.1);
  --header-shadow: 0 10px 30px rgba(75, 94, 96, 0.08);
  --input-bg: #ffffff;
  --panel-bg: #f6f2ec;
  --overlay-surface: rgba(255, 255, 255, 0.92);
  --section-alt-bg: var(--bg-soft);
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: var(--fs-body);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

h1,
h2,
h3,
h4 {
  font-family: "Montserrat", system-ui, -apple-system, sans-serif;
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: var(--fs-h1);
}

h2 {
  font-size: var(--fs-h2);
}

h3,
h4 {
  font-weight: 500;
}

main {
  display: block;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: var(--fs-body);
  background: var(--input-bg);
  color: var(--text);
}

input {
  height: 48px;
}

textarea {
  min-height: 200px;
  resize: none;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(var(--purple-600-rgb), 0.3);
  border-color: var(--purple-600);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page transition (overlay, doesn't break lightbox) */
html {
  background: var(--bg);
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  z-index: 9998; /* ниже лайтбокса (у него z-index:9999) */
}

html.is-leaving::before {
  opacity: 1;
}
.container {
  width: min(100% - (var(--container-padding-x) * 2), var(--container-max));
  margin: 0 auto;
}

section {
  padding: var(--section-padding-y) 0;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 2rem;
}

.two-column {
  display: grid;
  gap: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.results-grid,
.team-grid {
  display: grid;
  gap: 2.4rem;
  justify-items: center;
}

.results-grid {
  align-items: start;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--purple-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  z-index: 999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(var(--bg-rgb), 0.985); /* было ~0.95: делаем плотнее */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-shadow); /* чуть отделяем от контента */
  z-index: var(--z-header);
  transition: transform 0.3s ease;
}

.lightbox__body{
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}


/* Когда меню открыто, header должен быть ниже */
.is-menu-open .header {
  z-index: var(--z-header);
}

.promo-banner {
  width: 100%;
  background: var(--bg);
  padding: 0.75rem 0;
}

.promo-banner__inner {
  display: flex;
  justify-content: center;
}

.promo-banner__link {
  position: relative;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 72px;
  height: auto;
  padding: clamp(0.5rem, 1.2vw, 1rem) clamp(1rem, 4vw, 2rem);
  border-radius: 18px;
  border: 1px solid var(--header-border);
  background: var(--bg-soft);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.promo-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  background: var(--bg);
}

.promo-banner__text {
  position: relative;
  z-index: 1;
  color: var(--text);
  text-align: center;
  font-size: clamp(0.95rem, 2.4vw, 1.5rem);
  line-height: 1.4;
}

.promo-t__new{
  font-weight: 800;
  font-size: 1.2em;
  color: var(--purple-600);
}

.promo-t__old{
  color: var(--muted);
  text-decoration: line-through;
  font-style: italic;
  margin-left: 0.25em;
}

.promo-t__i{
  font-style: italic;
}


.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: var(--header-padding-y) var(--header-padding-x);
}

.logo {
  font-family: "Tenor Sans", "Montserrat", system-ui, sans-serif;
  font-size: var(--fs-h2);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo__img {
  width: 220px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo__text {
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.6rem;

  background: var(--bg-soft);
  padding: 0.08rem 0.0rem 0.08rem 1rem;
/*        top   right  bottom left */
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.nav a:not(.button) {
  padding: 0.25rem 0.6rem;
}

.nav a:not(.button):hover,
.nav a:not(.button):focus {
  color: var(--purple-400);
}

.nav-sep {
  display: inline-block;
  width: 1px;
  height: 1.1em;
  background: var(--border);
  opacity: 0.5;
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.mobile-nav-sep {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
  opacity: 0.5;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover,
.theme-toggle:focus {
  background: rgba(var(--purple-200-rgb), 0.2);
  color: var(--purple-600);
  transform: translateY(-1px);
}

.theme-toggle--compact {
  width: 40px;
  height: 40px;
  padding: 0;
}

.theme-toggle--menu {
  width: 100%;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  background: rgba(var(--bg-rgb), 0.6);
  border: 1px solid rgba(var(--purple-600-rgb), 0.16);
}

.theme-toggle__icon {
  font-size: 16px;
}

.theme-toggle__label,
.theme-toggle__state {
  font-size: var(--fs-nav);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: var(--fs-button);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.button.primary {
  background: var(--purple-600);
  color: #fff;
  box-shadow: 0 12px 25px rgba(var(--purple-600-rgb), 0.25);
}

.button.primary:hover,
.button.primary:focus {
  background: var(--purple-400);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--purple-600);
  border: 1px solid rgba(var(--purple-600-rgb), 0.4);
}

.button.secondary:hover,
.button.secondary:focus {
  background: rgba(var(--purple-200-rgb), 0.2);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cta-group--mt {
  margin-top: 1rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.tag {
  font-size: var(--fs-body);
  color: var(--muted);
}

.highlight {
  font-weight: 600;
  color: var(--text);
}

.inline-cta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: var(--fs-body);
}

.inline-cta a:not(.contact-item) {
  color: var(--purple-600);
  font-weight: 600;
  text-decoration: none;
}

.inline-cta a:not(.contact-item):hover,
.inline-cta a:not(.contact-item):focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.card {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(var(--text-rgb), 0.04);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0rem;
  border-radius: 999px;
  background: rgba(var(--purple-200-rgb), 0.35);
  color: var(--purple-600);
  font-size: var(--fs-nav);
  font-weight: 600;
}

.surface {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.list li span {
  font-weight: 600;
}

.surface .list li {
  display: grid;
  grid-template-columns: minmax(220px, 32%) 1fr;
  gap: 1.5rem;
  align-items: start;
}

.surface .list li span {
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.surface .list li > div {
  color: var(--muted);
  line-height: 1.6;
}

.divider {
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.map {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
/* Dark theme: remove halo around map block */
html[data-theme="dark"] .map,
html[data-theme="dark"] .map * {
  box-shadow: none !important;
  filter: none !important;
}

html[data-theme="dark"] iframe.map {
  filter:
    invert(90%)
    hue-rotate(180deg)
    brightness(90%)
    contrast(85%) !important;
}


.gallery {
  display: grid;
  gap: 1.5rem;
}

.gallery-item {
  background: linear-gradient(135deg, rgba(var(--purple-200-rgb), 0.25), rgba(var(--surface-rgb), 0.8));
  border-radius: 18px;
  min-height: 180px;
  box-shadow: var(--shadow);
}

.media-image {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

.hero-image {
  width: 100%;
  max-width: 420px;
  margin: auto; 
  border-radius: calc(var(--radius) - 0.5rem);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.results-card,
.team-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  padding: 0.9rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: auto;
}

.results-card {
  width: 100%;
  max-width: 420px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.team-card {
  max-width: 300px;
}

.card__media {
  width: 100%;
}

.card__body {
  padding: 0.6rem 0.2rem 0.2rem;
}

.results-card .card__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0.3rem;
  border-radius: 18px;
}

.results-card .media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  box-shadow: none;
  border-radius: 14px;
}

.team-card .media-image {
  width: 100%;
  display: block;
  aspect-ratio: auto;
  object-fit: cover;
  max-height: 420px;
}

.team-card h3 {
  margin: 0 0 0.4rem;
}


.team-card .image-caption {
  font-size: var(--fs-body);
  margin: 0;
}

.team-card .card__body > .image-caption {
  margin-bottom: 0;
}

.card__body.image-caption {
  margin: 0;
}

.image-caption {
  margin-top: 0.75rem;
  font-size: var(--fs-body);
  color: var(--muted);
}

.results-card .image-caption {
  margin-top: 0.4rem;
  font-size: var(--fs-nav);
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 2vw, 24px);
  z-index: var(--z-lightbox);
}

.lightbox.is-open { display: flex; }

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.lightbox__panel {
  position: relative;
  width: min(1100px, 100%);
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  --lightbox-header-height: 56px;
  background: var(--overlay-surface);
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0,0,0,0.35);
  overflow: hidden;
}

.lightbox__header {
  min-height: var(--lightbox-header-height);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(10px, 1.5vw, 18px);
  background: var(--bg-soft);
}

.lightbox__body {
  overflow: auto;
  padding: clamp(10px, 1.5vw, 18px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lightbox__content {
  display: block;
}

.lightbox__media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lightbox__img {
  width: 100%;
  max-height: calc(90vh - var(--lightbox-header-height) - 96px);
  object-fit: contain;
  border-radius: 16px;
}

.lightbox__close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.lightbox__nav--prev { left: 16px; }

.lightbox__nav--next { right: 16px; }

.lightbox__nav:focus-visible {
  outline: 2px solid var(--purple-300);
  outline-offset: 3px;
}

.lightbox__caption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.lightbox__side {
  display: block;
  padding: clamp(8px, 1.2vw, 16px);
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  max-height: calc(90vh - var(--lightbox-header-height) - 96px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lightbox__side[hidden] {
  display: none;
}

.lightbox__title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.05rem, 1.3vw, 1.35rem);
}

.lightbox__sub {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: var(--fs-body);
}

.lightbox__text p {
  margin: 0 0 0.9rem;
}

.lightbox.is-split .lightbox__body {
  overflow: auto;
}

.lightbox.is-split .lightbox__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
}

.lightbox.is-split .lightbox__caption {
  text-align: left;
}

body.is-lightbox-open {
  overflow: hidden;
}

body.page-home       .nav a[href="/"],
body.page-behandlung .nav a[href="/behandlung.php"],
body.page-ueber-uns  .nav a[href="/ueber-uns.php"],
body.page-ablauf     .nav a[href="/ablauf.php"],
body.page-termin     .nav a[href="/termin.php"],
body.vitrine-page    .nav a[href="/vitrine.php"] {
  color: var(--purple-600);
  font-weight: 600;
  background: rgba(var(--purple-200-rgb), 0.25);
  border-radius: 999px;
}
/* Active underline for CTA button on Kontakt page */
body.page-kontakt .nav a.button.primary[href="/kontakt.php"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}


.info-steps {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.info-steps li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
}

.info-steps span {
  font-weight: 600;
  color: var(--purple-600);
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.steps li {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(var(--purple-200-rgb), 0.35);
  color: var(--purple-600);
  display: grid;
  place-items: center;
  font-weight: 600;
}

.meta-grid {
  display: grid;
  gap: 1rem;
}

.hero-media--video {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  z-index: 1;
  max-width: 400px;
  margin: 0 auto;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-panel {
  position: absolute;
  bottom: 0%;
  left: 6%;
  right: 6%;
  background: transparent;
  backdrop-filter: none;
  border-radius: 0;
  padding: 0.2rem 0.5rem;
  box-shadow: none;
  z-index: 5;
  transform: translateY(0);
}

.hero-panel h2 {
  font-size: var(--fs-h2);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-panel .list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.hero-panel .list li {
  font-size: var(--fs-nav);
  line-height: 1.3;
}

.hero-panel h2,
.hero-panel p,
.hero-panel li {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.12);
}

.hero-panel.board h2 {
  color: var(--board-text);
}

.hero-panel.board p,
.hero-panel.board li {
  color: var(--board-muted);
}

.hero-panel.board .kicker {
  color: var(--board-accent);
}

.faq {
  display: grid;
  gap: 1rem;
}

.faq details {
  background: var(--surface);
  padding: 1.2rem 1.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.notice {
  background: rgba(var(--purple-200-rgb), 0.25);
  padding: 1rem 1.5rem;
  border-radius: 16px;
  color: var(--muted);
  font-size: var(--fs-body);
}

.form-message {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--purple-600);
  display: none;
}

.form-message.is-visible {
  display: block;
}

.form-agb {
  margin-top: 0.5rem;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--fs-body);
  color: var(--muted);
}

.checkbox input[type="checkbox"] {
  width: 22px;
  height: 22px;
  padding: 0;
  margin-top: 0.2rem;
  flex: 0 0 22px;
}

.checkbox a {
  color: var(--purple-600);
  font-weight: 600;
}

/* =========================
   Mobile Off-Canvas Menu
   ========================= */

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(var(--purple-600-rgb), 0.18);
  background: var(--bg-soft);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.12);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  min-width: 90px;
}

.menu-toggle:focus {
  outline: 2px solid rgba(var(--purple-600-rgb), 0.28);
  outline-offset: 3px;
}

.menu-toggle__icon {
  width: 18px;
  height: 12px;
  position: relative;
  display: inline-block;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after,
.menu-toggle__icon {
  background: transparent;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(var(--text-rgb), 0.75);
  transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
}

.menu-toggle__icon::before { top: 2px; }
.menu-toggle__icon::after  { top: 8px; }

.menu-toggle__text {
  font-weight: 600;
  font-size: var(--fs-nav);
  color: var(--text);
  flex: 1;
  text-align: center;
}

/* Overlay container (hidden via [hidden] when closed) */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-menu);
  pointer-events: none;
}

.mobile-menu.is-open {
  pointer-events: auto;
}

.mobile-menu__backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  transition: opacity 240ms ease;
  pointer-events: auto;
}

.mobile-menu__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: auto;
  max-height: 100vh;
  width: min(380px, 88vw);
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 1px solid var(--border);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.35);
  transform: translateX(110%);
  transition: transform 260ms ease;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow-y: auto;
  border-radius: 24px 0 0 24px; /* скругление со стороны экрана */
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(var(--purple-600-rgb), 0.10);
}

.mobile-menu__title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.mobile-menu__close {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(var(--purple-600-rgb), 0.14);
  background: rgba(var(--bg-rgb), 0.65);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
}

.mobile-menu__nav {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem 1.25rem;
  flex: 0 0 auto;
}

.mobile-menu__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.9rem;
  border-radius: 16px;
  color: var(--text);
  background: rgba(var(--bg-rgb), 0.6);
  border: 1px solid rgba(var(--purple-600-rgb), 0.16);
  transition: transform 180ms ease, background 180ms ease;
  font-weight: 500;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus {
  background: rgba(var(--purple-200-rgb), 0.16);
  transform: translateY(-1px);
}

.mobile-menu__nav .button.primary {
  justify-content: center;
  margin-top: 0.4rem;
}

/* Open state */
.mobile-menu.is-open .mobile-menu__backdrop { opacity: 1; }
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }

/* When open, morph burger into "X" */
.mobile-menu.is-open ~ .header .menu-toggle__icon::before { top: 5px; transform: rotate(45deg); }
.mobile-menu.is-open ~ .header .menu-toggle__icon::after  { top: 5px; transform: rotate(-45deg); }

/* Optional helper: lock scroll when menu open */
body.is-menu-open { overflow: hidden; }

/* =========================
   PROMO POPUP
   ========================= */

.promo {
  position: fixed;
  inset: 0;
  z-index: var(--z-promo);

  /* ВАЖНО: центрирование по экрану */
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo[hidden] {
  display: none;
}

.promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.promo__panel {
  position: relative;
  margin: auto;
  max-width: min(92vw, 720px);
  max-height: 92vh;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.35);

  /* важно: делаем “шапку” внутри, чтобы X не перекрывал картинку */
  padding: 54px clamp(12px, 2vw, 20px) clamp(12px, 2vw, 20px);

  display: flex;
  flex-direction: column;
  gap: 0.75rem;

  overflow: auto; /* hidden чтобы скругление работало как в лайтбоксе */
}

.promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;

  border: 1px solid rgba(0,0,0,0.08);
  background: var(--bg);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.promo__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.promo__img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 12px;
  object-fit: contain;
}

.promo__caption {
  margin: 0;
  text-align: center;
  color: var(--muted);
}

.promo__actions {
  display: flex;
  justify-content: center;
}

.footer-copy {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.social-links{
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.social-link{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.social-link svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-link:hover,
.social-link:focus{
  color: var(--purple-600);
  background: rgba(var(--purple-200-rgb), 0.2);
  transform: translateY(-1px);
}
.contact-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 12px 30px rgba(75, 94, 96, 0.08);
  max-width: 360px;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: var(--text);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.contact-item .icon {
  width: 1.6rem;
  text-align: center;
  font-size: 1.05rem;
}

.contact-item.is-phone {
  font-weight: 600;
  color: var(--text);
}

.contact-item.is-whatsapp {
  color: var(--purple-600);
}

.contact-item:hover {
  color: var(--purple-600);
}

.hero-panel.board .price-old {
  font-weight: 700;
  font-size: 1.05em;
}

.hero-panel.board .price-new {
  font-weight: 600;
  font-size: 1.6em;
  color: var(--purple-600);
}

.results-grid--ticker {
  display: block;
  width: 100%;
  max-width: 100%;
}

.results-grid--ticker .results-grid__viewport {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 0.75rem;
}

.results-grid__viewport {
  touch-action: pan-y;
  cursor: grab;
}

body.is-ticker-dragging,
body.is-ticker-dragging * {
  user-select: none;
}

body.is-ticker-dragging .results-grid__viewport {
  cursor: grabbing;
}

.results-grid--ticker .results-grid__track {
  display: flex;
  gap: 1.4rem;
  align-items: stretch;
  will-change: transform;
}

.results-grid--ticker .results-card {
  flex: 0 0 auto;
  width: clamp(260px, 32vw, 380px);
  padding: 0.6rem;
  border-radius: calc(var(--radius) - 0.2rem);
}

.results-grid--ticker .card__media {
  aspect-ratio: 4 / 5;
  padding: 0.25rem;
  border-radius: calc(var(--radius) - 0.4rem);
}

.results-grid--ticker .media-image {
  transition: transform 0.3s ease;
}

.results-grid--ticker .results-card:hover .media-image,
.results-grid--ticker .results-card:focus-within .media-image {
  transform: scale(1.03);
}

.results-grid--ticker .image-caption {
  margin-top: 0.3rem;
  font-size: calc(var(--fs-nav) * 0.95);
}

/* =========================
   Promo banner (brand style)
   ========================= */

/* Promo banner text — brand style (TEXT ONLY) */
.promo-banner__text{
  color: white;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;

  font-size: clamp(14px, 2.2vw, 26px);

  /* чтобы длинный текст красиво переносился */
  max-width: 70ch;
  margin: 0 auto;
  text-wrap: balance; /* если браузер поддерживает */
}

.promo-banner__text strong{
  color: var(--purple-600);
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 8500;
  min-width: 220px;
  max-width: min(90vw, 360px);
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.toast.is-near {
  position: fixed;
}

.toast__row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.toast__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-weight: 700;
  flex: 0 0 auto;
}

.toast__text {
  font-size: var(--fs-nav);
  line-height: 1.4;
  color: var(--text);
}

.toast__close {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  margin-left: 0.25rem;
  padding: 0;
}

.toast--success {
  border-color: rgba(46, 125, 50, 0.35);
}

.toast--success .toast__icon {
  background: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
}

.toast--error {
  border-color: rgba(198, 40, 40, 0.35);
}

.toast--error .toast__icon {
  background: rgba(198, 40, 40, 0.15);
  color: #c62828;
}

.hero {
  padding-top: 6rem;
  padding-bottom: 5rem;
}

.hero-text p {
  font-size: var(--fs-body);
}

.hero-card {
  max-width: 420px;
  max-height: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}

.hero-card .meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: var(--fs-nav);
  color: var(--muted);
  justify-content: center;
}

.hero-media {
  display: grid;
  gap: 1.5rem;
}

.section-title {
  max-width: 680px;
}

.kicker {
  text-transform: uppercase;
  font-size: var(--fs-nav);
  letter-spacing: 0.18em;
  color: var(--purple-600);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.highlight-box {
  border-radius: var(--radius);
  background: rgba(var(--purple-200-rgb), 0.2);
  padding: 2rem;
}

.footer {
  background: var(--neutral-100);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer small {
  color: var(--muted);
}

.tight {
  background: var(--section-alt-bg);
  padding: 1rem 0;
}

.tight .hero-media--video {
  background: transparent;
  box-shadow: var(--shadow);
  max-width: 400px;
  margin-left: auto;
  margin-right: 0;
}

.tight .hero-video {
  aspect-ratio: 4 / 5;
}

.tight .two-column > div:last-child {
  padding-right: 2rem;
}

.section-video-right {
  background: var(--section-alt-bg) !important;
}

.section-video-right .hero-media--video {
  margin-right: -2rem;
}

.section-video-right .container {
  padding-right: 0;
}

.section-video-right .container > div:last-child {
  padding-right: 2rem;
}
body.page-termin .section-video-right .hero-media--video {
  margin-left: auto;
  margin-right: -50%;
  transform: translateX(50%);
}

.hero-card .hero-video {
  width: 100%;
  height: auto;
  display: block;

  border-radius: calc(var(--radius) - 0.5rem);
  overflow: hidden;
  object-fit: cover;
}

/* =========================
   KONTAKT: Video + HTML Board Overlay
   ========================= */

body.page-kontakt .hero-media--video{
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;

  /* контейнер под реальную высоту видео */
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

/* Видео — главный “бокс”: скругление + без лишних полей */
body.page-kontakt .hero-media--video .hero-video{
  width: 100%;
  height: auto;               /* ключ: видео само задаёт высоту */
  display: block;
  object-fit: cover;
  object-position: center;

  border-radius: var(--radius);   /* скругляем углы видео */
  overflow: hidden;               /* на всякий случай */
}

/* доска-текст поверх видео */
body.page-kontakt .hero-media--video .board{
  z-index: 5;
  position: absolute;
  left: 3%;
  right: 16%;
  top: 67%;
  bottom: auto;

  height: 16%;
  padding: 25px 10px;

  border-radius: 16px;
  background: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

body.page-kontakt .hero-media--video .board h2{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

body.page-kontakt .hero-media--video .board .kicker{
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-kontakt .hero-media--video .board p{
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

/* =========================
   TERMIN: Video + HTML Board Overlay
   ========================= */

body.page-termin .hero-media--video{
  position: relative;
  width: min(520px, 100%);
  margin: 0 auto;

  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

body.page-termin .hero-media--video .hero-video{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;

  border-radius: var(--radius);
  overflow: hidden;
}

body.page-termin .hero-media--video .board{
  z-index: 5;
  position: absolute;
  left: 3%;
  right: 16%;
  top: 74%;
  bottom: auto;

  height: 16%;
  padding: 25px 10px;

  border-radius: 16px;
  background: none;
  box-shadow: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
}

body.page-termin .hero-media--video .board h2{
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

body.page-termin .hero-media--video .board .board-list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.page-termin .hero-media--video .board p,
body.page-termin .hero-media--video .board li{
  margin: 0;
  font-size: 14px;
  line-height: 1.25;
}

.map-consent {
  margin: 1.75rem auto 0;
  text-align: center;
}

.map-consent__note {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

/* =========================
   Home: Google Reviews (API)
   ========================= */
.section-reviews--api {
  background: var(--section-alt-bg);
}

.section-reviews--api .section-title {
  max-width: 680px;
}

.reviews-widget {
  margin-top: 1.75rem;
  padding: clamp(1rem, 2vw, 1.5rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--bg-rgb), 0.88), rgba(var(--bg-rgb), 0.64));
}

.reviews-widget__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviews-widget__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reviews-widget__logo {
  width: auto;
  height: 34px;
  object-fit: contain;
  margin: 10px 10px 5px 10px;
}

.reviews-widget__score {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.reviews-widget__stars,
.review-card__stars {
  letter-spacing: 0.08em;
  color: #fbbc04;
}

.reviews-widget__count {
  color: var(--muted);
  font-size: 0.95rem;
}

.reviews-widget__slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.reviews-widget__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, calc((100% - 1.5rem) / 3));
  gap: 0.75rem;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.3rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: calc(var(--radius) * 0.85);
}

.reviews-widget__track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.review-card {
  scroll-snap-align: start;
  background: rgba(var(--bg-rgb), 0.9);
  border: 1px solid rgba(var(--text-rgb), 0.08);
  border-radius: calc(var(--radius) * 0.85);
  box-shadow: 0 16px 35px rgba(var(--text-rgb), 0.08);
  padding: 0.9rem;
}

.review-card__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.review-card__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: var(--purple-600);
  flex-shrink: 0;
  overflow: hidden;
}

.review-card__avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-card__avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.review-card__name {
  margin: 0;
  color: inherit;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.review-card__name[href]:hover,
.review-card__name[href]:focus-visible {
  text-decoration: underline;
}

.review-card__time {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.review-card__stars {
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

.review-card__text {
  margin: 0;
  color: rgba(var(--text-rgb), 0.92);
}

.review-card__more {
  margin-top: 0.5rem;
  border: 0;
  background: none;
  color: var(--purple-600);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.reviews-widget__nav {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  border: 1px solid rgba(var(--text-rgb), 0.16);
  background: var(--surface);
  color: rgba(var(--text-rgb), 1);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.reviews-widget__dots {
  margin-top: 0.9rem;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.reviews-widget__dot {
  width: 8px; /* Немного увеличим для видимости */
  height: 8px;
  border-radius: 50%;
  /* Используем переменную --text напрямую с прозрачностью через opacity */
  background-color: var(--text) !important;
  padding: 0;
  opacity: 0.3; /* Неактивные точки будут бледными */
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.reviews-widget__dot.is-active {
  opacity: 1;
  transform: scale(1.3);
  background: var(--purple-600) !important;
  border-color: rgba(var(--purple-600-rgb), 0.65);
  /* красивый акцент, но без "засвета" */
  box-shadow:
    0 0 0 5px rgba(var(--purple-600-rgb), 0.18),
    0 0 0 2px rgba(var(--text-rgb), 0.12) inset;
}


.reviews-widget__all-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--purple-600);
  font-weight: 600;
  text-decoration: none;
}

.reviews-widget__all-link:hover,
.reviews-widget__all-link:focus-visible {
  text-decoration: underline;
}

.reviews-modal {
  position: fixed;
  inset: 0;
  z-index: 8500; /* выше html::before (9998 не нужен), выше header, ниже lightbox/promo можно настроить при желании */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.reviews-modal[hidden] {
  display: none !important;
}

.reviews-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.reviews-modal__dialog {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  margin: 0;              /* важно: чтобы не “улетало” вверх */
  z-index: 1;             /* поверх backdrop */
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  padding: 1.2rem 1rem 1rem;
}

.reviews-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.reviews-modal__close:hover {
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
/* =========================
   Reviews Modal – Close Button (Light Theme Fix)
   ========================= */

html[data-theme="light"] .reviews-modal__close {
  background: rgba(0, 0, 0, 0.05);
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .reviews-modal__close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #000;
}
.reviews-modal__text {
  margin: 0.6rem 0 0;
}

.review-card__top--modal {
  margin-bottom: 0.7rem;
}

body.is-reviews-modal-open {
  overflow: hidden;
}
.reviews-widget__notice {
  margin: 0;
  padding: 1rem;
  border-radius: calc(var(--radius) * 0.75);
  border: 1px dashed rgba(var(--text-rgb), 0.2);
  color: var(--muted);
  background: rgba(var(--bg-rgb), 0.4);
}

/* =========================
   Über uns: Räume
   ========================= */

.section-rooms h3 {
  margin-top: 2.25rem;
  margin-bottom: 1rem;
}

.section-rooms .gallery--room {
  gap: 2rem;
}

.section-rooms .gallery--room .gallery-item {
  min-height: 220px;
}

.section-rooms .gallery--room .media-image {
  aspect-ratio: 3 / 2;
}

.section-rooms .gallery--room .gallery-item:nth-child(-n + 2) {
  grid-column: span 2;
}

/* =========================
   Rotator strip (interactive)
   ========================= */

.rotator-strip{
  background: transparent;
  border: 0;
  margin: 10px 0;
  padding-top: 0;
}

.rotator-strip__inner{
  width: min(100% - (var(--container-padding-x) * 2), var(--container-max));
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 14px;

  background: var(--surface);
  border: 1px solid rgba(var(--text-rgb), 0.06);
  border-radius: 999px;
  box-shadow: var(--shadow);

  padding: 14px 18px;
  min-height: 72px;

  overflow: hidden;

  cursor: pointer;
  user-select: none;
}

.rotator-strip__badge{
  width: 70px;
  height: 70px;
  border-radius: 999px;

  background: var(--purple-600);
  color: #fff;

  display: grid;
  place-items: center;

  font-weight: 800;
  font-size: 38px;

  box-shadow: 0 10px 22px rgba(var(--purple-600-rgb), 0.28);
  flex: 0 0 auto;
}

/* arrows */
.rotator-arrow{
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);

  width: 40px;
  height: 40px;
  border-radius: 999px;

  cursor: pointer;
  display: grid;
  place-items: center;

  font-size: 26px;
  line-height: 1;

  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.rotator-arrow:hover,
.rotator-arrow:focus{
  background: rgba(var(--purple-200-rgb), 0.22);
  color: var(--purple-600);
  transform: translateY(-1px);
}

.rotator-arrow:focus-visible{
  outline: 2px solid rgba(var(--purple-600-rgb), 0.28);
  outline-offset: 2px;
}

/* text */
.rotator-strip__text{
  min-width: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.rotator-strip.is-animating .rotator-strip__text{
  opacity: 0;
  transform: translateY(6px);
}

.rotator-strip__title{
  margin: 0;
  color: var(--purple-600);
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(1.05rem, 1.35vw, 1.55rem);
  white-space: normal;
}

.rotator-strip__desc{
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.25;
  font-size: clamp(0.92rem, 1.05vw, 1.05rem);
  white-space: normal;
}

/* Mobile */
/* FORCE: HTML [hidden] must always hide elements */
[hidden] {
  display: none !important;
}
/* (Optional) prettier consent block spacing */
.reviews-consent {
  padding: 1.2rem 1.4rem;
}
body.page-vcard .vcard-hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 6rem;
  background:
    radial-gradient(circle at 14% 16%, rgba(var(--purple-200-rgb), 0.26), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(var(--purple-200-rgb), 0.18), transparent 20%),
    linear-gradient(180deg, rgba(var(--surface-rgb), 0.78), rgba(var(--surface-rgb), 0));
}

body.page-vcard .vcard-hero::before,
body.page-vcard .vcard-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

body.page-vcard .vcard-hero::before {
  inset: 0;
  background:
    linear-gradient(115deg, rgba(var(--surface-rgb), 0.62) 0%, rgba(var(--surface-rgb), 0.18) 40%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(var(--purple-600-rgb), 0.035) 0 1px, transparent 1px 120px);
}

body.page-vcard .vcard-hero::after {
  width: 420px;
  height: 420px;
  right: -160px;
  bottom: -220px;
  border-radius: 50%;
  background: rgba(var(--purple-200-rgb), 0.22);
  filter: blur(24px);
}

body.page-vcard .vcard-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
}

body.page-vcard .vcard-hero-copy {
  max-width: 640px;
}

body.page-vcard .vcard-hero-copy .badge {
  margin-bottom: 1rem;
  padding: 0.48rem 0.95rem;
  border: 1px solid rgba(var(--purple-600-rgb), 0.12);
  background: rgba(var(--surface-rgb), 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-vcard .vcard-hero-copy h1 {
  font-family: "Tenor Sans", "Montserrat", system-ui, sans-serif;
  font-size: clamp(2.8rem, 5.4vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0.01em;
  max-width: 10ch;
  margin-bottom: 1rem;
}

body.page-vcard .vcard-lead {
  max-width: 52ch;
  font-size: 1.06rem;
  line-height: 1.75;
}

body.page-vcard .vcard-hero-actions {
  margin-top: 1.75rem;
}

body.page-vcard .vcard-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.15rem;
  margin-top: 1.15rem;
}

body.page-vcard .vcard-inline-links a {
  position: relative;
  padding-bottom: 0.2rem;
  color: var(--text);
  font-weight: 600;
}

body.page-vcard .vcard-inline-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(var(--purple-600-rgb), 0.24);
  transform: scaleX(0.55);
  transform-origin: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

body.page-vcard .vcard-inline-links a:hover,
body.page-vcard .vcard-inline-links a:focus-visible {
  color: var(--purple-600);
}

body.page-vcard .vcard-inline-links a:hover::after,
body.page-vcard .vcard-inline-links a:focus-visible::after {
  transform: scaleX(1);
  background: rgba(var(--purple-600-rgb), 0.52);
}

body.page-vcard .vcard-inline-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--muted);
}

body.page-vcard .vcard-pass {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
  border-radius: 30px;
  overflow: hidden;
  background:
    radial-gradient(circle at left center, transparent 0 17px, rgba(var(--surface-rgb), 0.98) 18px),
    radial-gradient(circle at right center, transparent 0 17px, rgba(var(--surface-rgb), 0.98) 18px),
    linear-gradient(155deg, rgba(var(--surface-rgb), 0.98), rgba(var(--bg-rgb), 0.95));
  border: 1px solid rgba(var(--purple-600-rgb), 0.16);
  box-shadow: 0 30px 70px rgba(var(--text-rgb), 0.15);
  isolation: isolate;
}

body.page-vcard .vcard-pass::before {
  content: "";
  position: absolute;
  inset: 14px -12px -14px 14px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(var(--purple-200-rgb), 0.28), rgba(var(--purple-600-rgb), 0.08));
  z-index: -1;
  transform: rotate(4deg);
}

body.page-vcard .vcard-pass::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, rgba(var(--purple-600-rgb), 0.95), rgba(var(--purple-200-rgb), 0.4));
}

body.page-vcard .vcard-pass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(var(--purple-600-rgb), 0.18);
}

body.page-vcard .vcard-pass__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 0.75rem;
  border-radius: 24px;
  background: rgba(var(--bg-rgb), 0.9);
  border: 1px solid rgba(var(--purple-600-rgb), 0.1);
}

body.page-vcard .vcard-pass .logo__img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 14px;
}

body.page-vcard .vcard-pass__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--purple-200-rgb), 0.2);
  color: var(--purple-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.page-vcard .vcard-pass__body {
  padding-top: 1rem;
}

body.page-vcard .vcard-pass__eyebrow {
  margin: 0 0 0.75rem;
  color: var(--purple-600);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

body.page-vcard .vcard-pass h2 {
  font-family: "Tenor Sans", "Montserrat", system-ui, sans-serif;
  margin-bottom: 0.45rem;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1.08;
}

body.page-vcard .vcard-pass__subtitle {
  margin-bottom: 1rem;
  color: var(--muted);
}

body.page-vcard .vcard-pass__phone {
  display: inline-flex;
  margin: 0 0 1.2rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.2;
}

body.page-vcard .vcard-pass__phone:hover,
body.page-vcard .vcard-pass__phone:focus-visible {
  color: var(--purple-600);
}

body.page-vcard .vcard-pass__meta {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.page-vcard .vcard-pass__meta li {
  display: grid;
  gap: 0.25rem;
}

body.page-vcard .vcard-pass__meta span {
  color: var(--purple-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.page-vcard .vcard-pass__meta a {
  color: var(--text);
}

body.page-vcard .vcard-pass__meta a:hover,
body.page-vcard .vcard-pass__meta a:focus-visible {
  color: var(--purple-600);
}

body.page-vcard .vcard-pass__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(var(--purple-600-rgb), 0.18);
  font-size: 0.92rem;
}

body.page-vcard .vcard-pass__footer span {
  margin: 0;
  color: var(--muted);
}

body.page-vcard .vcard-pass__footer a {
  color: var(--purple-600);
  font-weight: 700;
}

body.page-vcard .vcard-pass__footer a:hover,
body.page-vcard .vcard-pass__footer a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.page-vcard .vcard-utility {
  padding-top: 0;
  padding-bottom: 2.5rem;
}

body.page-vcard .vcard-action-band {
  position: relative;
  z-index: 2;
  margin-top: -3rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

body.page-vcard .vcard-action-tile {
  display: block;
  padding: 1.35rem 1.4rem 1.25rem;
  border-radius: 24px;
  border: 1px solid rgba(var(--purple-600-rgb), 0.1);
  background: rgba(var(--surface-rgb), 0.96);
  box-shadow: 0 20px 44px rgba(var(--text-rgb), 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.page-vcard .vcard-action-tile.is-save {
  background: linear-gradient(165deg, rgba(var(--purple-200-rgb), 0.28), rgba(var(--surface-rgb), 0.98) 72%);
}

body.page-vcard .vcard-action-tile.is-chat {
  background: linear-gradient(165deg, rgba(var(--surface-rgb), 0.98), rgba(var(--purple-200-rgb), 0.16));
}

body.page-vcard .vcard-action-tile.is-route {
  background: linear-gradient(165deg, rgba(var(--surface-rgb), 0.98), rgba(var(--purple-200-rgb), 0.24));
}

body.page-vcard .vcard-action-tile:hover,
body.page-vcard .vcard-action-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(var(--purple-600-rgb), 0.22);
  box-shadow: 0 24px 52px rgba(var(--text-rgb), 0.11);
}

body.page-vcard .vcard-action-tile__index {
  display: inline-flex;
  margin-bottom: 0.85rem;
  color: var(--purple-600);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.page-vcard .vcard-action-tile strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
}

body.page-vcard .vcard-action-tile > span:last-child {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  display: none;
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  box-shadow: 0 16px 32px rgba(75, 94, 96, 0.12);
  border: 1px solid var(--border);
  margin: 0 auto;
  width: min(920px, calc(100% - 24px));
  max-height: calc(100vh - env(safe-area-inset-bottom));
  max-height: calc(100dvh - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom);
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner__panel {
  padding: 1.25rem;
  display: grid;
  gap: 1.25rem;
}

.cookie-banner__title {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.cookie-banner__title:focus {
  outline: none;
}

.cookie-banner__desc {
  margin: 0;
  color: var(--muted);
}

.cookie-banner__links {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner__links a {
  color: var(--text);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cookie-banner__actions .button {
  flex: 1 1 auto;
}

.cookie-banner__settings {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  display: grid;
  gap: 1rem;
}

.cookie-banner__settings-header {
  display: flex;
  justify-content: flex-start;
}

.cookie-banner__back {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-banner:not(.is-prefs-open) .cookie-banner__settings {
  display: none;
}

.cookie-banner.is-prefs-open .cookie-banner__actions {
  display: none;
}

.cookie-banner__setting {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.cookie-banner__setting-title {
  font-weight: 600;
  color: var(--text);
}

.cookie-banner__setting-text {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner__toggle {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.cookie-banner__toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-banner__toggle span {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-banner__toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}

.cookie-banner__toggle input:checked + span {
  background: var(--purple-600);
}

.cookie-banner__toggle input:checked + span::after {
  transform: translateX(20px);
}

.cookie-banner__toggle input:disabled + span {
  opacity: 0.6;
  cursor: not-allowed;
}

.cookie-banner__settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cookie-banner__settings-actions .button.primary {
  flex: 0 1 auto;
}

.cookie-banner__settings-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner button:focus-visible,
.cookie-banner a:focus-visible,
.cookie-banner input:focus-visible {
  outline: 2px solid var(--purple-600);
  outline-offset: 2px;
}

.cookie-banner__link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--text);
  text-decoration: underline;
  cursor: pointer;
}

/* Responsive adjustments centralized in one file. */

/* =========================
   Base (desktop-first, no @media)
   ========================= */
.hero-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2,
.two-column,
.meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.results-card {
  max-width: 360px;
}

.section-rooms .gallery .gallery-item {
  flex: 0 0 auto;
  width: clamp(240px, 78vw, 320px);
  max-height: 360px;
  overflow: hidden;
  border-radius: 18px;
  scroll-snap-align: start;
}

.section-rooms .gallery .media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-rooms .gallery--room .gallery-item {
  width: clamp(260px, 82vw, 360px);
  max-height: 420px;
}

body.page-kontakt .hero-media--video .board {
  padding: 4px 10px;
  height: 40%;
}

body.page-kontakt .hero-media--video .board h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

body.page-kontakt .hero-media--video .board .kicker {
  font-size: 11px;
  letter-spacing: 0.1em;
  margin: 0 0 4px;
}

body.page-kontakt .hero-media--video .board p {
  font-size: 12.5px;
  line-height: 1.2;
}

body.page-termin .hero-media--video .board {
  padding: 4px 10px;
  height: 29%;
}

body.page-termin .hero-media--video .board h2 {
  font-size: 16px;
  margin: 0 0 4px;
}

body.page-termin .hero-media--video .board p,
body.page-termin .hero-media--video .board li {
  font-size: 12.5px;
  line-height: 1.2;
}

body.page-kontakt #formular .map {
  min-height: 460px;
}

/* =========================
   max-width: 1440px
   ========================= */
@media (max-width: 1440px) {
  :root {
    --container-max: 1140px;
    --section-padding-y: 4.25rem;
    --fs-h1: 2.4rem;
    --fs-h2: 1.55rem;
  }

  body.page-termin .hero-media--video .board {
    height: 30%;
  }

  html[data-theme="dark"] .badge {
    background: transparent;
  }
}

/* =========================
   max-width: 1024px
   ========================= */
@media (max-width: 1024px) {
  :root {
    --container-max: 960px;
    --section-padding-y: 4rem;
    --header-height: 64px;
    --fs-h1: 2.15rem;
    --fs-h2: 1.4rem;
    --fs-body: 0.98rem;
    --fs-nav: 0.84rem;
    --fs-button: 0.84rem;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .grid-2,
  .two-column {
    grid-template-columns: 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-card {
    max-width: 420px;
  }

  .reviews-widget__track {
    grid-auto-columns: minmax(260px, calc((100% - 0.75rem) / 2));
  }

  body.page-kontakt #formular.tight .two-column > div:last-child {
    padding-right: 0;
  }

  body.page-vcard .vcard-stage {
    grid-template-columns: 1fr;
  }

  body.page-vcard .vcard-pass {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  body.page-vcard .vcard-action-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -2.25rem;
  }

  body.page-termin .hero-media--video .board {
    height: 32%;
  }

  .surface .list li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .surface .list li span {
    white-space: normal;
  }
}

/* =========================
   max-width: 768px
   ========================= */
@media (max-width: 768px) {
  :root {
    --container-max: 720px;
    --section-padding-y: 3.5rem;
    --header-height: 60px;
    --fs-h1: 2rem;
    --fs-h2: 1.3rem;
    --fs-nav: 0.82rem;
    --fs-button: 0.82rem;
  }

  .hero-grid,
  .grid-3,
  .footer-grid,
  .reviews-widget__slider {
    grid-template-columns: 1fr;
  }

  .results-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-grid,
  .lightbox.is-split .lightbox__content {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
  }

  .lightbox__side {
    max-height: none;
  }

  .section-rooms .gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0 0 1rem;
    -webkit-overflow-scrolling: touch;
  }

  .section-rooms .gallery .gallery-item {
    width: clamp(260px, 85vw, 420px);
  }

  .section-rooms .gallery--room .gallery-item {
    width: clamp(280px, 90vw, 460px);
  }

  .section-rooms .gallery--room .media-image {
    aspect-ratio: 16 / 10;
  }

  .results-grid--ticker .results-card {
    width: clamp(280px, 85vw, 420px);
  }

  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
  }

  .cookie-banner__panel {
    padding: 1.25rem;
  }

  .cookie-banner__actions {
    flex-direction: column;
  }

  .cookie-banner__settings-actions {
    align-items: flex-start;
  }

  .reviews-widget__track {
    grid-auto-columns: 100%;
    gap: 0;
  }

  .reviews-widget__nav {
    display: none;
  }

  .reviews-modal {
    align-items: flex-start;
  }

  .reviews-modal__dialog {
    margin-top: 2rem;
  }

  body.page-vcard .hero {
    padding-top: 4.5rem;
  }

  body.page-vcard .vcard-hero {
    padding-bottom: 5rem;
  }

  body.page-vcard .vcard-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.35rem, 10vw, 3.25rem);
  }

  body.page-vcard .vcard-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  body.page-vcard .vcard-inline-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  body.page-vcard .vcard-action-band {
    grid-template-columns: 1fr;
    margin-top: -1.75rem;
  }

  body.page-vcard .vcard-pass {
    padding: 1.15rem;
    border-radius: 26px;
  }

  body.page-vcard .vcard-pass::before {
    inset: 12px -8px -12px 12px;
    border-radius: 26px;
  }

  body.page-vcard .vcard-pass__logo {
    width: 72px;
    height: 72px;
  }

  body.page-termin .hero-media--video .board {
    height: 30%;
  }
}

/* =========================
   max-width: 520px
   ========================= */
@media (max-width: 520px) {
  .lightbox__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .lightbox__nav--prev {
    left: 10px;
  }

  .lightbox__nav--next {
    right: 10px;
  }

  .rotator-strip__inner {
    border-radius: 22px;
    padding: 12px 14px;
    align-items: center;
  }

  .rotator-strip__badge {
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .rotator-arrow {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

/* =========================
   max-width: 425px
   ========================= */
@media (max-width: 425px) {
  :root {
    --container-max: 400px;
    --container-padding-x: 1rem;
    --section-padding-y: 3.25rem;
    --header-height: 70px;
    --fs-h1: 1.85rem;
    --fs-h2: 1.2rem;
    --fs-body: 0.95rem;
    --fs-nav: 0.8rem;
    --fs-button: 0.8rem;
  }

  .header-inner {
    min-height: 56px;
    justify-content: center;
  }

  .logo__img {
    width: 150px;
    height: 150px;
  }

  .grid-3,
  .results-grid,
  .team-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  body.page-vcard .vcard-pass__top,
  body.page-vcard .vcard-pass__footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================
   max-width: 375px
   ========================= */
@media (max-width: 375px) {
  :root {
    --container-max: 360px;
    --container-padding-x: 0.9rem;
    --section-padding-y: 3rem;
    --header-height: 70px;
    --fs-h1: 1.7rem;
    --fs-h2: 1.15rem;
    --fs-body: 0.92rem;
    --fs-nav: 0.78rem;
    --fs-button: 0.78rem;
  }

  body.page-termin .hero-media--video .board {
    height: 32%;
  }

  body.page-termin .hero-media--video .board h2 {
    font-size: 14px;
  }

  body.page-termin .hero-media--video .board p,
  body.page-termin .hero-media--video .board li {
    font-size: 11.5px;
  }

  body.page-termin .hero-media--video .board .price-old {
    font-size: 1em;
  }

  body.page-termin .hero-media--video .board .price-new {
    font-size: 1.15em;
  }

  body.page-kontakt .hero-media--video .board h2 {
    font-size: 14px;
    margin: 0 0 4px;
  }

  body.page-kontakt .hero-media--video .board p {
    font-size: 11.5px;
    line-height: 1.2;
  }

  .cookie-banner__settings {
    overflow: visible;
  }

  .cookie-banner__settings-actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

/* =========================
   max-width: 320px
   ========================= */
@media (max-width: 320px) {
  :root {
    --container-max: 300px;
    --container-padding-x: 0.75rem;
    --section-padding-y: 2.75rem;
    --header-height: 68px;
    --fs-h1: 1.6rem;
    --fs-h2: 1.05rem;
    --fs-body: 0.9rem;
    --fs-nav: 0.76rem;
    --fs-button: 0.76rem;
  }

  body.page-termin .hero-media--video .board {
    height: 29%;
  }

  body.page-termin .hero-media--video .board p,
  body.page-termin .hero-media--video .board li {
    font-size: 10.5px;
  }
}

/* =========================
   Special cases
   ========================= */
@media (min-width: 820px) and (max-width: 920px) and (orientation: portrait) {
  body.page-termin .hero-media--video .board {
    top: 73.2%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html::before {
    transition: none;
  }

  .toast {
    transition: none;
    transform: none;
  }
}
