/* Popup Startseite (Hilfe bei Sicherheitsproblemen). Maße aus MARKE.md §3 / marke.json; Farben Auftritt (marke.json, auftritt_*).
   Gold nur für Fokus, nie Fläche (marke.json regeln). Keine Vollbild-Sperre: position fixed, Layout unverändert. */
.mtx-hp, .mtx-hp * { box-sizing: border-box; }
.mtx-hp {
  position: fixed;
  z-index: 2147482000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  font-family: var(--sans, "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif);
  animation: mtx-hp-in 210ms ease-out both;
}
.mtx-hp[hidden] { display: none; }
.mtx-hp-box {
  position: relative;
  margin: 0;
  padding: 18px 54px 18px 18px;          /* Rand mobil 18; rechts Platz für Schließen */
  background: #0E3B2E;                   /* auftritt_grund */
  color: #F4EFE6;                        /* auftritt_papier */
  border-top: 1px solid #A9BEB2;         /* auftritt_leise */
  box-shadow: 0 -12px 36px rgba(6, 26, 19, 0.28);
}
.mtx-hp-h {
  margin: 0 0 9px;
  font-family: var(--serif, Fraunces, "Iowan Old Style", Georgia, serif);
  font-size: 21px;                       /* H2 Webseite mobil 21/27 */
  line-height: 27px;
  font-weight: 400;                      /* unter 27 px: 400 (marke.json weight_unter_27px) */
  letter-spacing: 0;
  color: #F4EFE6;
  text-wrap: balance;
}
.mtx-hp-p {
  margin: 0 0 18px;
  font-size: 18px;                       /* Fließtext 18/27 */
  line-height: 27px;
  color: #F4EFE6;
  max-width: 63ch;
}
.mtx-hp-q {
  margin: 0 0 18px;
  font-size: 15px;                       /* klein 15/24: zweite Schicht, leiser */
  line-height: 24px;
  color: #A9BEB2;                        /* auftritt_leise */
}
.mtx-hp-q a {
  color: #A9BEB2;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mtx-hp-reihe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.mtx-hp-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;                      /* Ziel weit über 24 px (WCAG 2.5.8) */
  padding: 0 24px;
  border-radius: 999px;                  /* Pille */
  background: #F4EFE6;
  color: #0E3B2E;
  font-size: 18px;
  line-height: 27px;
  font-weight: 600;
  text-decoration: none;
}
.mtx-hp-nein {
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: #A9BEB2;                        /* auftritt_leise */
  font: inherit;
  font-size: 18px;
  line-height: 27px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.mtx-hp-x {
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;                           /* Trefferfläche 48 px, Zeichen 24 px */
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #F4EFE6;
  cursor: pointer;
}
.mtx-hp a:focus-visible,
.mtx-hp button:focus-visible {
  outline: 3px solid #C9A24B;            /* Gold für Fokus */
  outline-offset: 3px;
}
@media (min-width: 768px) {
  .mtx-hp {
    left: auto;
    right: 36px;                         /* Rand Desktop 36 */
    bottom: 36px;
    width: min(360px, calc(100vw - 72px));
  }
  .mtx-hp-box {
    padding: 24px 54px 24px 24px;        /* Abstand 24 */
    border-top: 0;
    border-radius: 9px;                  /* Radius 9 */
    box-shadow: 0 24px 72px rgba(6, 26, 19, 0.35);
  }
  .mtx-hp-h {
    font-size: 27px;                     /* H2 Webseite 27/36 */
    line-height: 36px;
    margin-bottom: 9px;
  }
}
@keyframes mtx-hp-in {
  from { opacity: 0; transform: translateY(36px); }   /* Versatz 36, Basis 210 ms */
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mtx-hp { animation: none; }
}

/* Streifen mobil: nur Überschrift, Knopf, Schließen. Hinweis zur Speicherung nur am Desktop (dort wird gespeichert). */
.mtx-hp-tel { color: inherit; font-weight: 700; white-space: nowrap; }
.mtx-hp-hin {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: #A9BEB2;
}
@media (max-width: 767px) {
  .mtx-hp-box { padding: 8px 48px 8px 16px; }
  .mtx-hp-h { font-size: 21px; line-height: 27px; margin: 0 0 6px; }
  .mtx-hp-p, .mtx-hp-q, .mtx-hp-nein, .mtx-hp-hin { display: none; }
  .mtx-hp-reihe { display: block; }
  .mtx-hp-go { min-height: 40px; font-size: 16px; line-height: 24px; padding: 0 20px; }
}
