/* ==========================================================================
   PL Security — статический сайт
   Токены сняты с оригинала (pl-security.de, CMS Euroweb), вёрстка собственная.
   Внешних ресурсов нет: шрифты, картинки и скрипты — локальные (cookie-frei).
   ========================================================================== */

:root {
  /* Цвета оригинала */
  --primary: #2a556b;
  --primary-dark: #1f4152;
  --alert: #920a1f;
  --alert-dark: #6d0717;
  --light: #fff;
  --medium: #f2f2f0;
  --dark: #3e3e3e;
  --border: #ddd;
  --muted: #6b6b6b;

  /* Типографика */
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fs-base: 1.125rem;   /* 18px, как в оригинале */
  --lh-base: 1.94;       /* 35px / 18px */
  --fs-h1: clamp(1.5rem, 1.15rem + 1.5vw, 1.875rem);   /* →30px */
  --fs-h2: clamp(1.3rem, 1.05rem + 1.1vw, 1.5625rem);  /* →25px */
  --fs-h3: clamp(1.2rem, 1rem + 0.9vw, 1.5625rem);
  --fs-h4: clamp(1.15rem, 1rem + 0.6vw, 1.375rem);     /* →22px */
  --fs-h5: 1.25rem;
  --fs-small: 0.9375rem;

  /* Раскладка */
  --row-max: 1620px;
  --content-max: 1280px;
  --gap: 18px;
  --space-min: 50px;
  --space-max: 100px;
  --space-section: clamp(var(--space-min), 6vw, var(--space-max));
  --radius: 0;             /* оригинал без скруглений */
  --shadow: 0 5px 10px 0 rgba(62, 62, 62, 0.2);
  --header-h: 96px;
}

/* --------------------------------------------------------------- Reset */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* overflow-x здесь НЕ ставить — ломает position:sticky у шапки */
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-base);
  color: var(--dark);
  background: var(--light);
}

img,
picture,
svg { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--alert); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  line-height: 1.28;
  font-weight: 700;
  color: var(--primary);
  /* Немецкие составные слова (Veranstaltungssicherheit) иначе рвут раскладку */
  overflow-wrap: break-word;
  hyphens: auto;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5, h6 { font-size: var(--fs-h5); }

/* В оригинале вторая часть заголовка — более лёгкая и тёмная */
h1 span, h2 span, h3 span, h4 span {
  display: block;
  font-weight: 300;
  color: var(--dark);
}

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

strong, b { font-weight: 700; }
.alert { color: var(--alert); }

blockquote { margin: 0; }

:focus-visible {
  outline: 3px solid var(--alert);
  outline-offset: 2px;
}

/* --------------------------------------------------------------- Layout */

.row {
  width: 100%;
  max-width: var(--row-max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.row--narrow { max-width: var(--content-max); }

.section { padding-block: var(--space-section); }
.section--medium { background: var(--medium); }

.grid {
  display: grid;
  gap: calc(var(--gap) * 2);
}

@media (min-width: 62em) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--sidebar { grid-template-columns: 5fr 7fr; align-items: center; }
}

/* Skip-links */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--alert);
  color: var(--light);
  padding: 0.6em 1.2em;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: var(--light); }

/* --------------------------------------------------------------- Topbar */

.topbar {
  background: var(--medium);
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.6em;
  justify-content: flex-end;
  align-items: center;
  padding-block: 0.5em;
}

.topbar p { margin: 0; }
.topbar__label { font-weight: 700; }
.topbar__label--alert { color: var(--alert); }

.topbar a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.topbar a:hover { color: var(--alert); }

/* --------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding-block: 0.6em;
}

.branding { display: block; flex-shrink: 0; }
.branding img { width: 128px; height: auto; }

/* --------------------------------------------------------------- Nav */

.nav__toggle {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: var(--primary);
  color: var(--light);
  border: 0;
  padding: 0.6em 0.9em;
  font: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}
.nav__toggle:hover { background: var(--primary-dark); }
.nav__toggle svg { width: 20px; height: 20px; fill: currentColor; }

.nav__list,
.nav__sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.55em 0.7em;
  color: var(--dark);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1.4;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--alert); }
.nav__link[aria-current="page"] { font-weight: 700; }

.nav__parent > .nav__link { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.nav__parent > .nav__link::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-left: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav__parent > .nav__link[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }

/* Мобильная навигация — по умолчанию */
.nav {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 380px);
  background: var(--light);
  border-left: 1px solid var(--border);
  padding: 1.5rem 1rem 3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 150;
}
.nav[data-open="true"] { transform: translateX(0); }

.nav__close {
  display: block;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.4em;
  cursor: pointer;
  color: var(--dark);
}
.nav__close svg { width: 26px; height: 26px; fill: currentColor; }

.nav__sub { padding-left: 1em; border-left: 2px solid var(--border); }
.nav__parent[data-open="false"] .nav__sub { display: none; }

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.nav__backdrop[data-open="true"] { opacity: 1; pointer-events: auto; }

@media (min-width: 75em) {
  .nav__toggle,
  .nav__close,
  .nav__backdrop { display: none; }

  .nav {
    position: static;
    width: auto;
    transform: none;
    border: 0;
    padding: 0;
    overflow: visible;
  }

  .nav__list { display: flex; flex-wrap: nowrap; align-items: center; }

  /* Главное меню — 8 пунктов с длинными немецкими словами.
     Держим его в одну строку до самых широких экранов. */
  .nav > .nav__list > .nav__item > .nav__link {
    font-size: clamp(0.8125rem, 0.45rem + 0.5vw, 1rem);
    padding: 0.55em 0.45em;
    white-space: nowrap;
  }

  .nav__item { position: relative; }

  .nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 270px;
    background: var(--light);
    border: 1px solid var(--border);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 0.3em 0;
    display: none;
    z-index: 120;
  }
  .nav__parent[data-open="true"] .nav__sub,
  .nav__item:hover > .nav__sub,
  .nav__item:focus-within > .nav__sub { display: block; }

  .nav__sub .nav__link { padding: 0.5em 1em; font-size: 1rem; white-space: normal; }
  .nav__sub .nav__link:hover { background: var(--medium); }
}

/* --------------------------------------------------------------- Hero */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  min-height: clamp(320px, 46vw, 620px);
  background: #dfe4e7;
}

/* Карусель кадров. Горизонтальный сдвиг, а НЕ crossfade: наложение двух
   полупрозрачных кадров под общей подложкой даёт заметное мерцание. */
.hero__track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.9s cubic-bezier(0.5, 0, 0.2, 1);
}

.hero__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-kenburns 14s ease-out infinite alternate;
  will-change: transform;
}
.hero__slide:nth-child(2) img { animation-delay: -5s; }
.hero__slide:nth-child(3) img { animation-delay: -9s; }

@keyframes hero-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

/* Светлая подложка под текстом — на всей сцене, поверх карусели */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 40%, rgba(255, 255, 255, 0) 76%);
}

@media (max-width: 61.99em) {
  /* На узком экране горизонтальный градиент не спасает: тёмная часть фото
     заходит под текст. Здесь подложка идёт сверху вниз. */
  .hero::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 62%, rgba(255, 255, 255, 0.55) 100%);
  }
}

/* Индикаторы кадров */
.hero__dots {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.hero__dots button {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease;
}
.hero__dots button:hover { background: rgba(0, 0, 0, 0.45); }
.hero__dots button[aria-current="true"] { background: var(--alert); }

.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: var(--space-section);
}

@media (min-width: 62em) {
  /* слева остаётся место под «прицел», как в оригинале */
  .hero__inner { padding-left: clamp(3.5rem, 5vw, 6rem); }
}

.hero__claim {
  max-width: 40ch;
  margin: 0;
  font-size: clamp(1.35rem, 0.9rem + 2.2vw, 2.6rem);
  line-height: 1.24;
  font-weight: 300;
  color: var(--dark);
}

.hero__claim strong { font-weight: 800; }

.hero__claim .hero__accent {
  display: block;
  margin-block: 0.15em;
  color: var(--alert);
  font-weight: 800;
}

.hero__claim .hero__tail {
  display: block;
  margin-top: 0.35em;
  padding-left: clamp(0px, 4vw, 4.5rem);
  font-size: clamp(0.95rem, 0.8rem + 0.6vw, 1.25rem);
}

/* Фирменный «прицел» из оригинала */
.hero__inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 84px;
  height: 133px;
  transform: translateY(-50%);
  background: url("../img/target-red.webp") left center / contain no-repeat;
  opacity: 0.85;
  pointer-events: none;
}

@media (max-width: 61.99em) {
  .hero__inner::before { display: none; }
}

/* Подзаголовочный hero внутренних страниц */
.subhero {
  background: var(--primary) center / cover no-repeat;
  min-height: clamp(140px, 18vw, 250px);
}

/* --------------------------------------------------------------- Teasers */

.teasers { margin-top: calc(var(--space-section) * -0.36); position: relative; z-index: 2; }

@media (max-width: 61.99em) {
  .teasers { margin-top: var(--gap); }
}

.teaser {
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--light);
  box-shadow: var(--shadow);
}

.teaser__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--primary);
  color: var(--light);
  padding: 0.7em 1em;
  font-weight: 700;
  transition: background 0.2s ease;
}

.teaser__num {
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.35);
}

.teaser__img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

.teaser:hover .teaser__head { background: var(--alert); }
.teaser:hover .teaser__title { text-decoration: underline; }

/* --------------------------------------------------------------- Content */

.content { padding-block: var(--space-section); }

.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }

.prose ul { padding-left: 1.15em; }
.prose li::marker { color: var(--alert); }

.prose dl { margin: 0 0 1.2em; }
.prose dt { font-weight: 700; margin-top: 0.6em; }
.prose dd { margin: 0 0 0.2em; }

/* Заголовок с «прицелом», как на главной оригинала */
.title-target {
  position: relative;
  padding-left: 3.2rem;
}
.title-target::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 2.4rem;
  height: 3.8rem;
  background: url("../img/target-red.webp") left top / contain no-repeat;
}

@media (max-width: 47.99em) {
  .title-target { padding-left: 2.2rem; }
  .title-target::before { width: 1.7rem; height: 2.7rem; }
}

.lead { font-size: 1.0625em; }

/* Список услуг */
.services-list { columns: 2; column-gap: calc(var(--gap) * 2); }
@media (max-width: 47.99em) { .services-list { columns: 1; } }

.figure-frame { box-shadow: var(--shadow); }

/* Главная: пара наложенных фотографий слева от текста */
.home-figures { position: relative; display: grid; }
.home-figures img { width: 100%; }
.home-figures__cam { display: none; }

@media (min-width: 62em) {
  .home-figures { min-height: 30rem; }
  .home-figures img {
    position: absolute;
    width: 72%;
  }
  .home-figures img:first-child { top: 0; right: 0; }
  .home-figures__cam { display: block; bottom: 0; left: 0; width: 58%; }
}

/* Полоса с девизом и знаком VSW */
.claim-band {
  position: relative;
  background: var(--dark) center / cover no-repeat;
  color: var(--light);
  padding-block: var(--space-section);
}
.claim-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 40, 46, 0.88) 0%, rgba(30, 40, 46, 0.6) 55%, rgba(30, 40, 46, 0.25) 100%);
}
.claim-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: calc(var(--gap) * 2);
  align-items: center;
}
@media (min-width: 62em) {
  .claim-band__inner { grid-template-columns: 1.6fr 1fr; }
}

.claim-band__quote { margin: 0; }
.claim-band__quote strong {
  display: block;
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem);
  line-height: 1.25;
  font-weight: 800;
}
.claim-band__quote strong + strong {
  margin-top: 0.5em;
  font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.5rem);
  font-weight: 300;
}
.claim-band__light { font-weight: 300; color: rgba(255, 255, 255, 0.85); }

.claim-band__member {
  display: grid;
  gap: 0.9rem;
  justify-items: start;
  font-size: var(--fs-small);
  line-height: 1.5;
}
.claim-band__member img { width: 190px; background: var(--light); padding: 0.6em; }

/* Страницы-обзоры */
.overview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.overview-list .btn { justify-content: center; }

/* Список услуг на главной */
.leistungen { padding-left: 1.15em; }
.leistungen > li { margin-bottom: 0.9em; }
.leistungen a { font-weight: 700; }

.footer__maphint { font-size: var(--fs-small); line-height: 1.55; opacity: 0.85; }

/* --------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  background: var(--primary);
  color: var(--light);
  border: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease;
}
.btn:hover { background: var(--primary-dark); color: var(--light); }
.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex-shrink: 0; }

.btn--alert { background: var(--alert); }
.btn--alert:hover { background: var(--alert-dark); }

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn--ghost:hover { background: var(--primary); color: var(--light); }

/* --------------------------------------------------------------- Footer */

.site-footer {
  background: var(--primary);
  color: var(--light);
  padding-block: var(--space-section);
}

.site-footer a { color: var(--light); }
.site-footer a:hover { color: #ffd7dd; }

.site-footer h2,
.site-footer h3 { color: var(--light); }
.site-footer h2 span,
.site-footer h3 span { color: rgba(255, 255, 255, 0.75); }

.site-footer .alert { color: #ff8b9c; }

.footer__grid {
  display: grid;
  gap: calc(var(--gap) * 2);
}
@media (min-width: 62em) {
  .footer__grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.footer__contact dl { display: grid; grid-template-columns: auto 1fr; gap: 0.15em 0.8em; margin: 0 0 1.2em; }
.footer__contact dt { font-weight: 700; }
.footer__contact dd { margin: 0; }

.footer__nav ul {
  list-style: none;
  margin: 1.5em 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.4em;
  font-size: var(--fs-small);
}

.footer__map {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
}
.footer__map img { width: 100%; }

.footer__bottom {
  margin-top: var(--space-section);
  padding-top: 1.2em;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.4em;
  justify-content: space-between;
  font-size: var(--fs-small);
}

.vsw-badge { background: var(--light); padding: 0.8em; display: inline-block; }
.vsw-badge img { width: 160px; }

/* --------------------------------------------------------------- Forms */

.form { display: grid; gap: 1.1rem; max-width: 46rem; }

.field { display: grid; gap: 0.35rem; }

.field label { font-weight: 700; font-size: 1rem; line-height: 1.4; }
.field .req { color: var(--alert); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7em 0.85em;
  font: inherit;
  font-size: 1rem;
  color: var(--dark);
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--primary); }
.field textarea { min-height: 9rem; resize: vertical; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.7rem;
}
.field--check input { width: 1.15rem; height: 1.15rem; margin-top: 0.35rem; }
.field--check label { font-weight: 400; font-size: var(--fs-small); line-height: 1.55; }

.field__hint { font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }

.field--error input,
.field--error select,
.field--error textarea { border-color: var(--alert); }
.field__error { color: var(--alert); font-size: var(--fs-small); font-weight: 700; }

/* Honeypot — скрыт от людей, виден ботам */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Блок результата — СИБЛИНГ формы, не потомок:
   display:none на форме скрыл бы его вместе с ней. */
.form-result {
  border-left: 5px solid var(--primary);
  background: var(--medium);
  padding: 1.2rem 1.4rem;
  max-width: 46rem;
}
.form-result--error { border-left-color: var(--alert); }
.form-result h2, .form-result h3 { margin-top: 0; }
[hidden] { display: none !important; }

/* --------------------------------------------------------------- Back to top */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--light);
  border: 0;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, background 0.2s ease;
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.to-top:hover { background: var(--alert); color: var(--light); }
.to-top svg { width: 24px; height: 24px; fill: currentColor; }

/* --------------------------------------------------------------- Sitemap page */

.sitemap-tree { list-style: none; padding: 0; margin: 0; }
.sitemap-tree ul { list-style: none; padding-left: 1.4em; margin: 0.3em 0 0.8em; }
.sitemap-tree a { font-weight: 700; text-decoration: none; }
.sitemap-tree a:hover { text-decoration: underline; }
.sitemap-tree ul a { font-weight: 400; }

/* --------------------------------------------------- Consent (Cookie-Banner) */

.consent {
  position: fixed;
  z-index: 200;
  left: 18px;
  right: 18px;
  bottom: 18px;
  max-width: 640px;
  margin-inline: auto;
  background: var(--light);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  padding: 1.4rem;
}
.consent[hidden] { display: none !important; }

.consent h2 {
  margin: 0 0 0.4em;
  font-size: 1.125rem;
}
.consent p {
  margin: 0 0 1rem;
  font-size: var(--fs-small);
  line-height: 1.6;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
/* Обе кнопки равнозначны по весу: «отклонить» не должна быть спрятана —
   иначе согласие не считается добровольным. */
.consent__actions .btn { flex: 1 1 12rem; justify-content: center; }

.consent__links {
  margin: 1rem 0 0;
  font-size: var(--fs-small);
}
.consent__links a { margin-right: 1rem; }

/* Заглушка карты до согласия */
.map-consent {
  display: grid;
  place-items: center;
  gap: 0.9rem;
  min-height: 260px;
  padding: 1.5rem;
  text-align: center;
  background: var(--medium);
  border: 1px solid var(--border);
  color: var(--dark);
}
.map-consent p { margin: 0; font-size: var(--fs-small); line-height: 1.6; max-width: 46ch; }
.site-footer .map-consent {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--light);
}

.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--border);
  background: var(--medium);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Кнопка, выглядящая как ссылка (напр. «Cookie-Einstellungen» в подвале) */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: #ffd7dd; }

.map-revoke {
  margin-top: 0.6rem;
  font-size: var(--fs-small);
}
.map-revoke button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* --------------------------------------------------------------- Utilities */

.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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
