@charset "UTF-8";
/* kontakt-widget.css - Kontakt-Widget unten rechts (id_cta.php)
   Reines CSS ohne Build-Schritt. Eingebunden in id_head.php; nach
   Aenderungen dort $cssVersion hochzaehlen. Farben und Schrift als
   Variablen (--rot, --gold ...) stehen oben in basis.css. */

/* ==================================================================
   Kontakt-Widget unten rechts (id_cta.php)
   ================================================================== */
/* Markup: id_cta.php  ·  Verhalten: static/js/scripts.js (Abschnitt 4)

   Farben: bewusst dunkler als --rot, damit sich der Kasten vom hellen
   Seitenhintergrund und von roten Flaechen absetzt. Akzent ist --gold wie
   bei den Termin-Buttons; --gold-hell erreicht auf dem dunkelroten Grund
   7,5:1. Die Verlaufs- und Pastelltoene unten gibt es nur hier.

   z-index 700: unter Kopfzeile (900), Navigation (800), Aktions-Overlay
   (1000) und Cookie-Hinweis (999999), aber ueber allen Inhalten (max. 10). */

/* ========================================
   WRAPPER
   ======================================== */
.contact-wrapper {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 700;
}
/* ========================================
   GROSSE CARD
   ======================================== */
.contact-float {
  position: relative;
  width: 370px;
  max-width: calc(100vw - 32px);
  padding: 25px;
  color: #fff;
  background: linear-gradient(145deg, #780f22 0%, #420813 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.22), 0 5px 16px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  isolation: isolate;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.contact-float::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.025) 45%, transparent 70%);
  pointer-events: none;
}
.contact-float::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -90px;
  z-index: -1;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(198, 132, 0, 0.13) 0%, transparent 68%);
  pointer-events: none;
}
/* ========================================
   MINIMIEREN
   ======================================== */
.contact-close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.contact-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transform: rotate(90deg);
}
.contact-close svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
/* ========================================
   RADAR
   ======================================== */
.contact-float__top {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
  padding-right: 30px;
}
.contact-float__signal {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.contact-float__signal-core {
  position: relative;
  z-index: 4;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--gold-hell);
  box-shadow: 0 0 0 5px rgba(239, 159, 0, 0.16), 0 0 18px rgba(239, 159, 0, 0.7), 0 0 38px rgba(239, 159, 0, 0.4);
}
.contact-float__signal-ring {
  position: absolute;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(239, 159, 0, 0.78);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(239, 159, 0, 0.2);
  animation: radarPulse 5.4s ease-out infinite;
}
.contact-float__signal-ring:nth-child(2) {
  animation-delay: 1.8s;
}
.contact-float__signal-ring:nth-child(3) {
  animation-delay: 3.6s;
}
@keyframes radarPulse {
  0% {
    transform: scale(0.45);
    opacity: 0;
  }
  12% {
    opacity: 0.95;
  }
  55% {
    opacity: 0.28;
  }
  100% {
    transform: scale(1.95);
    opacity: 0;
  }
}
.contact-float__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #ffcd6a;
}
/* ========================================
   INHALT
   ======================================== */
.contact-float h2 {
  margin: 0 0 9px;
  font-size: 27px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}
.contact-float__teaser {
  max-width: 305px;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}
.contact-float__accent-line {
  width: 44px;
  height: 2px;
  margin-bottom: 19px;
  background: var(--gold);
}
/* ========================================
   BUTTONS
   ======================================== */
.contact-float__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-float__button {
  position: relative;
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 14px;
  background: #fff;
  color: var(--rot-dunkel);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 7px;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
  overflow: hidden;
  transition: transform 0.22s ease, background-color 0.22s ease, box-shadow 0.22s ease;
}
.contact-float__button:hover {
  transform: translateX(3px);
  background: #fcf8f0;
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.17);
}
.contact-float__button-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f8efde;
  color: var(--rot-dunkel);
}
.contact-float__button-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-float__button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  flex: 1;
}
.contact-float__button-text strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--rot-dunkel);
}
.contact-float__button-text span {
  font-size: 12px;
  color: rgba(88, 11, 25, 0.62);
}
.contact-float__arrow {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  color: var(--rot-dunkel);
  opacity: 0.38;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.contact-float__button:hover .contact-float__arrow {
  transform: translateX(4px);
  opacity: 1;
}
/* ========================================
   FUSSZEILE DER CARD
   ======================================== */
.contact-float__note {
  margin-top: 17px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  /* 0.48 ergab nur 3,5:1 - zu wenig fuer AA */
}
.contact-float__note-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 9px rgba(198, 132, 0, 0.55);
}
/* ========================================
   MINIMIERTE LEISTE
   ======================================== */
.contact-dock {
  display: none;
  position: relative;
  padding: 7px;
  background: linear-gradient(145deg, #780f22 0%, #420813 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26), 0 4px 12px rgba(0, 0, 0, 0.14);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
/* goldene Haarlinie oben */
.contact-dock::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 25%, var(--gold) 75%, transparent);
  opacity: 0.85;
}
/* warmer Schimmer hinter den Icons */
.contact-dock::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 100% at 100% 0%, rgba(198, 132, 0, 0.14) 0%, transparent 62%);
  pointer-events: none;
}
.contact-dock__actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* ---------- wieder oeffnen ---------- */
.contact-dock__expand {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px 0 13px;
  background: transparent;
  color: #ffcd6a;
  border: 0;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.contact-dock__expand:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.contact-dock__label {
  white-space: nowrap;
}
/* Statuspunkt: signalisiert Erreichbarkeit */
.contact-dock__pulse {
  position: relative;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--gold-hell);
  box-shadow: 0 0 10px rgba(239, 159, 0, 0.85);
}
.contact-dock__pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(239, 159, 0, 0.7);
  border-radius: 50%;
  animation: dockPulse 2.8s ease-out infinite;
}
@keyframes dockPulse {
  0% {
    transform: scale(0.6);
    opacity: 0;
  }
  22% {
    opacity: 0.9;
  }
  100% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.contact-dock__chevron {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.contact-dock__expand:hover .contact-dock__chevron {
  transform: translateY(-2px);
  opacity: 1;
}
/* ---------- Trenner ---------- */
.contact-dock__divider {
  width: 1px;
  height: 30px;
  flex: 0 0 auto;
  margin: 0 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.22), transparent);
}
/* ---------- Direktwahl-Icons ---------- */
.contact-dock__button {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--rot-dunkel);
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.contact-dock__button:hover {
  transform: translateY(-3px);
  background: #fcf8f0;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.24), 0 0 0 2px rgba(198, 132, 0, 0.55);
}
.contact-dock__button svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* ========================================
   ZUSTAND: MINIMIERT
   ======================================== */
.contact-wrapper.is-minimized .contact-float {
  display: none;
}
.contact-wrapper.is-minimized .contact-dock {
  display: block;
  animation: showDock 0.28s ease forwards;
}
@keyframes showDock {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* ========================================
   MOBIL
   ======================================== */
@media (max-width: 650px) {
  .contact-wrapper {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }
  .contact-float {
    width: 100%;
    max-width: none;
    padding: 20px;
    border-radius: 9px;
  }
  .contact-float h2 {
    font-size: 24px;
  }
  .contact-float__teaser {
    font-size: 13px;
  }
  .contact-dock {
    margin-left: auto;
    width: max-content;
  }
  .contact-dock__label {
    display: none;
  }
  .contact-dock__expand {
    padding: 0 10px;
  }
}
/* ========================================
   REDUZIERTE BEWEGUNG
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .contact-float__signal-ring,
  .contact-dock__pulse::after {
    animation: none;
  }
  .contact-float__button,
  .contact-float__arrow,
  .contact-dock__button,
  .contact-dock__expand,
  .contact-dock__chevron {
    transition: none;
  }
  .contact-wrapper.is-minimized .contact-dock {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Link "Kontakt" rechts in der Fusszeile des Widgets */
.contact-float__note-link {
  margin-left: auto;
  color: #fff;
}
