/* ==========================================================
   Ergänzungen der statischen Version (Dezember 2026)
   ========================================================== */

@font-face {
  font-family: 'Roboto Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/roboto-mono-latin-500-normal.woff2') format('woff2'),
       url('../fonts/roboto-mono-latin-500-normal.woff') format('woff');
}

/* ---------- Runder CTA-Badge "Was tun im Trauerfall" (Startseite) ---------- */
header#site-header section .BannerInnerFirst { text-align: center; }

header#site-header #header.Banner a.trauer-badge {
  position: relative;
  display: inline-block;
  bottom: auto;
  left: auto;
  width: 144px;
  height: 144px;
  margin: 14px auto 0;
  padding: 0;
  transform: none;
  -webkit-transform: none;
  letter-spacing: normal;
  border-radius: 50%;
  opacity: 1;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .25));
  -webkit-tap-highlight-color: transparent;
}
header#site-header #header.Banner a.trauer-badge:hover { opacity: 1; }
header#site-header #header.Banner a.trauer-badge:focus { outline: none; }
header#site-header #header.Banner a.trauer-badge:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.trauer-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.trauer-badge .tb-ring { fill: #fff; fill-opacity: .8; }
.trauer-badge .tb-text {
  fill: #548287;
  font-family: 'Roboto Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Courier New', monospace;
  font-size: 19px;
  font-weight: 500;
  text-transform: uppercase;
  transform-box: view-box;
  transform-origin: 100px 100px;
  animation: tb-drehen 24s linear infinite;
}
.trauer-badge .tb-dot { fill: #548287; }
.trauer-badge .tb-core { fill: #548287; transition: fill .3s; }
.trauer-badge:hover .tb-core,
.trauer-badge:focus-visible .tb-core { fill: #3f6a6f; }
.trauer-badge .tb-arrow {
  fill: none;
  stroke: #fff;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-box: view-box;
  transform-origin: 100px 100px;
  transition: transform .35s ease;
}
.trauer-badge:hover .tb-arrow,
.trauer-badge:focus-visible .tb-arrow { transform: rotate(-45deg); }

/* Block (Text + Badge) wächst von unten nach oben, damit der Badge im ersten Bildschirm bleibt */
@media (min-width: 768px) {
  .site-start header#site-header section .BannerInnerFirst {
    bottom: 14%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
}

/* Tablet: E-Mail und Telefon stehen untereinander, ohne großen Abstand */
@media (min-width: 768px) and (max-width: 991px) {
  header#site-header #header.Banner .BannerInnerFirst p a { padding-top: 6px; transform: none; -webkit-transform: none; }
}

@keyframes tb-drehen { to { transform: rotate(-360deg); } }  /* gegen den Uhrzeigersinn */

@media (max-width: 767px) {
  header#site-header #header.Banner a.trauer-badge { width: 136px; height: 136px; margin-top: 10px; }
  /* Text + Badge über den Scroll-Pfeil heben, damit nichts die Telefonnummer verdeckt */
  .site-start header#site-header section { min-height: 560px; }
  header#site-header section .BannerInnerFirst {
    bottom: 96px;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
  }
  header#site-header section .BannerInnerFirst p a { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  .trauer-badge .tb-text { animation: none; }
  .trauer-badge .tb-arrow, .trauer-badge .tb-dot { fill: #548287; }
.trauer-badge .tb-core { transition: none; }
}

/* ---------- Telefon-Schaltfläche in der Kopfzeile (nur Smartphone) ---------- */
.mobil-telefon { display: none; }
@media (max-width: 767px) {
  nav.navbar.navbar-fixed-top #Logo .mobil-telefon {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 24px;
    right: 77px;
    width: 44px;
    height: 34px;
    background: #fff;
    color: #548287;
    font-size: 18px;
    text-decoration: none;
  }
  nav.navbar.navbar-fixed-top #Logo .mobil-telefon:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  nav.navbar.navbar-fixed-top #Logo .container { position: relative; }
}

/* ---------- Kleiner Cookie-Hinweis ---------- */
.cookie-hinweis {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 2000;
  max-width: 340px;
  padding: 12px 14px;
  background: #fff;
  color: #333;
  border-left: 4px solid #548287;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
  font-size: 14px;
  line-height: 1.45;
  display: flex;
  gap: 12px;
  align-items: center;
}
.cookie-hinweis p { margin: 0; }
.cookie-hinweis a { color: #548287; text-decoration: underline; }
.cookie-hinweis button {
  flex: none;
  min-width: 44px;
  min-height: 36px;
  padding: 6px 14px;
  border: 0;
  background: #548287;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.cookie-hinweis button:hover, .cookie-hinweis button:focus-visible { background: #3f6a6f; }
@media (max-width: 480px) {
  .cookie-hinweis { left: 8px; right: 8px; bottom: 8px; max-width: none; font-size: 13px; padding: 10px 12px; }
}
@media print { .cookie-hinweis { display: none; } }
