/* ================================================================
   BAUER BLUMEN — Conversion-Bausteine
   Kostenrechner-Band, Anrufleiste, Vertrauensband, Weiterlesen-Karten.
   Wird auf allen Seiten geladen und arbeitet mit den Bereichsfarben
   aus nav-bereiche.css (--area, --area-deep, --area-ink).
================================================================ */

/* Knopffarben je Bereich. Die Zuordnung steht am <body> und stammt
   aus derselben Tabelle wie die Menuefarben, damit beides zusammenpasst.
   Bestattung setzt seinen Ton zusaetzlich in bestattung.css, die Abo-
   Seiten in ihrem eigenen Stilblock. */
body[data-bereich="flor"] { --btn-ton: #4f6b2f; --btn-ton-tief: #26380f; }
body[data-bereich="best"] { --btn-ton: #704861; --btn-ton-tief: #33202c; }
body[data-bereich="grab"] { --btn-ton: #85622f; --btn-ton-tief: #4b3717; }
/* Die Abo-Seiten gehoeren zur Floristik, tragen aber einen warmen
   Beigeton mit einem Hauch Rose statt des Gruens. */
body[data-bereich="abo"]  { --btn-ton: #7d4f42; --btn-ton-tief: #45291f; }

:root {
  --kc-ink:   #241d25;
  --kc-plum:  #704861;
  --kc-deep:  #3a2534;
  --kc-gold:  #c8a96e;
}

/* ----------------------------------------------------------------
   1. KOSTENRECHNER-BAND
---------------------------------------------------------------- */
.kc-band {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 73px) 6vw;
  background:
    radial-gradient(120% 120% at 12% 8%, #4b3143 0%, transparent 58%),
    linear-gradient(155deg, #3a2534 0%, #241d25 58%, #1c161d 100%);
  color: #fff;
  isolation: isolate;
}

/* Ein weiches, langsam wanderndes Licht. Gibt der Flaeche Tiefe,
   ohne dass etwas blinkt oder ablenkt. */
.kc-band-glow {
  position: absolute;
  z-index: -1;
  top: -30%; right: -12%;
  width: 62vw; height: 62vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle,
              rgba(200,169,110,0.20) 0%,
              rgba(200,169,110,0.06) 42%,
              transparent 68%);
  animation: kcDrift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes kcDrift {
  from { transform: translate3d(0, 0, 0)        scale(1);    }
  to   { transform: translate3d(-6%, 7%, 0)     scale(1.14); }
}

.kc-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.kc-band-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.60rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--kc-gold);
  margin-bottom: 18px;
}
.kc-band-eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.kc-band-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.9vw, 2.95rem);
  font-weight: var(--fw-light);
  line-height: 1.16;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.kc-band-text h2 em {
  font-style: italic;
  color: #e8d5b0;
}
.kc-band-text > p {
  font-size: 1rem;
  font-weight: var(--fw-light);
  line-height: 1.78;
  color: rgba(255,255,255,0.74);
  max-width: 46ch;
  margin: 0 0 32px;
}

.kc-band-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 26px;
}

.kc-band-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--kc-gold);
  color: #211a12;
  font-size: 0.76rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.42s var(--ease), box-shadow 0.42s var(--ease),
              background 0.42s var(--ease);
}
.kc-band-cta::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-18deg);
  opacity: 0;
}
.kc-band-cta:hover {
  transform: translateY(-3px);
  background: #dcc08a;
  box-shadow: 0 18px 38px rgba(200,169,110,0.30);
}
.kc-band-cta:hover::before { opacity: 1; animation: kcSheen 0.9s cubic-bezier(.3,.7,.4,1) forwards; }
.kc-band-cta:active { transform: translateY(-1px); }
@keyframes kcSheen { to { left: 120%; opacity: 0; } }

.kc-band-cta-arrow { transition: transform 0.42s var(--ease); }
.kc-band-cta:hover .kc-band-cta-arrow { transform: translateX(5px); }

.kc-band-second {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.22);
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.kc-band-second:hover { color: #fff; border-color: var(--kc-gold); }

.kc-band-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}
.kc-band-trust li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: var(--fw-light);
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
}
.kc-band-trust li::before {
  content: '';
  width: 14px; height: 8px;
  border-left: 1.5px solid var(--kc-gold);
  border-bottom: 1.5px solid var(--kc-gold);
  transform: rotate(-45deg) translateY(-2px);
  flex-shrink: 0;
}

/* Bundesweit-Hinweis: eine Zeile, bewusst leiser als die Haken. */
.kc-band-hinweis {
  margin: 30px 0 0;
  padding-left: 15px;
  border-left: 1px solid rgba(200,169,110,0.45);
  font-size: 0.78rem;
  font-weight: var(--fw-light);
  line-height: 1.65;
  color: rgba(255,255,255,0.50);
  max-width: 46ch;
}

/* --- Die Kachel rechts: zeigt das Ergebnis, nicht das Formular ---- */
.kc-band-visual { display: flex; justify-content: center; }

.kc-tile {
  width: 100%;
  max-width: 320px;
  padding: 32px 30px 28px;
  border-radius: 20px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: 0 28px 60px rgba(0,0,0,0.34);
  transform: rotate(-1.4deg);
  transition: transform 0.7s var(--ease);
}
.kc-band:hover .kc-tile { transform: rotate(0deg) translateY(-4px); }

@supports not (backdrop-filter: blur(1px)) {
  .kc-tile { background: rgba(38,28,36,0.92); }
}

.kc-tile-label {
  display: block;
  font-size: 0.58rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 14px;
}
.kc-tile-value {
  display: block;
  font-family: var(--serif);
  font-size: 3.2rem;
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #e8d5b0;
  font-variant-numeric: tabular-nums;
}
.kc-tile-unit {
  display: block;
  margin-top: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.kc-tile-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 24px 0 18px;
}
.kc-tile-bars span {
  height: 5px;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(200,169,110,0.75), rgba(200,169,110,0.22));
  width: var(--w);
  transform-origin: left center;
  animation: kcBar 1.5s var(--ease) backwards;
}
.kc-tile-bars span:nth-child(1) { animation-delay: 0.15s; }
.kc-tile-bars span:nth-child(2) { animation-delay: 0.28s; }
.kc-tile-bars span:nth-child(3) { animation-delay: 0.41s; }
.kc-tile-bars span:nth-child(4) { animation-delay: 0.54s; }
@keyframes kcBar { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }

.kc-tile-note {
  display: block;
  font-size: 0.72rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.42);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .kc-band-inner { grid-template-columns: 1fr; gap: 44px; }
  .kc-band-visual { justify-content: flex-start; }
  .kc-tile { max-width: 100%; transform: none; }
}

/* ----------------------------------------------------------------
   2. KOMPAKTER HINWEIS (im Fliesstext)
---------------------------------------------------------------- */
.kc-kompakt {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  max-width: 760px;
  margin: 44px auto;
  padding: 26px 28px;
  border-radius: 16px;
  background: rgba(112,72,97,0.05);
  border: 1px solid rgba(112,72,97,0.16);
  border-left: 3px solid var(--kc-plum);
  transition: background 0.4s ease, border-color 0.4s ease, transform 0.4s var(--ease);
}
.kc-kompakt:hover {
  background: rgba(112,72,97,0.08);
  transform: translateX(3px);
}
.kc-kompakt-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  color: var(--kc-plum);
  opacity: 0.85;
}
.kc-kompakt-icon svg { width: 100%; height: 100%; }
.kc-kompakt-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--kc-plum);
  margin: 0 0 8px;
  line-height: 1.3;
}
.kc-kompakt-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: 1.7;
  color: #56504c;
  margin: 0 0 14px;
}
.kc-kompakt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--kc-plum);
  text-decoration: none;
  transition: gap 0.34s var(--ease);
}
.kc-kompakt-link:hover { gap: 14px; }

@media (max-width: 600px) {
  .kc-kompakt { flex-direction: column; gap: 14px; padding: 22px 20px; }
  .kc-kompakt-icon { width: 34px; height: 34px; }
}

/* ----------------------------------------------------------------
   3. ANRUFLEISTE — erscheint nach dem ersten Scrollen
   Nur auf Seiten mit data-callbar am <body>. Auf den Blumenseiten
   waere ein Trauer-Notruf fehl am Platz.
---------------------------------------------------------------- */
.bb-callbar {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 1200;
  display: none;
  align-items: center;
  gap: 16px;
  padding: 11px 13px 11px 20px;
  border-radius: 999px;
  background: rgba(36,29,37,0.90);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 16px 44px rgba(0,0,0,0.30);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s ease;
}
body[data-callbar] .bb-callbar { display: flex; }
.bb-callbar.is-in { transform: translate(-50%, 0); opacity: 1; }

@supports not (backdrop-filter: blur(1px)) {
  .bb-callbar { background: rgba(36,29,37,0.97); }
}

.bb-callbar-text {
  font-size: 0.78rem;
  font-weight: var(--fw-light);
  color: rgba(255,255,255,0.72);
  white-space: nowrap;
}
.bb-callbar-text strong {
  display: block;
  font-weight: var(--fw-medium);
  color: #fff;
  letter-spacing: 0.01em;
}
.bb-callbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 21px;
  border-radius: 999px;
  background: var(--kc-gold);
  color: #211a12;
  font-size: 0.72rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.32s ease, transform 0.32s var(--ease);
}
.bb-callbar-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; }
.bb-callbar-btn:hover { background: #dcc08a; transform: scale(1.03); }
.bb-callbar-close {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.bb-callbar-close:hover { background: rgba(255,255,255,0.16); color: #fff; }

@media (max-width: 640px) {
  .bb-callbar {
    left: 12px; right: 12px;
    bottom: 12px;
    width: auto;
    transform: translateY(130%);
    padding: 10px 10px 10px 16px;
    gap: 10px;
  }
  .bb-callbar.is-in { transform: translateY(0); }
  .bb-callbar-text { font-size: 0.72rem; white-space: normal; line-height: 1.35; }
  .bb-callbar-btn { padding: 11px 16px; font-size: 0.68rem; }
  .bb-callbar-btn span { display: none; }
}

/* ----------------------------------------------------------------
   4. LESE-FORTSCHRITT — feine Linie unter der Navigation
---------------------------------------------------------------- */
.bb-progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 1500;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--kc-gold), #e8d5b0);
  pointer-events: none;
  will-change: transform;
}

/* ----------------------------------------------------------------
   5. VERTRAUENSBAND — Zahlen und Belege statt Adjektive
---------------------------------------------------------------- */
.bb-trust {
  padding: clamp(44px, 5vw, 64px) 6vw;
  background: #fff;
  border-top: 1px solid rgba(200,169,110,0.14);
  border-bottom: 1px solid rgba(200,169,110,0.14);
}
.bb-trust-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 44px);
}
.bb-trust-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 20px;
  border-left: 1px solid rgba(200,169,110,0.30);
}
.bb-trust-num {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: var(--fw-light);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green-deep);
  font-variant-numeric: tabular-nums;
}
.bb-trust-label {
  font-size: 0.78rem;
  font-weight: var(--fw-regular);
  color: var(--dark);
  line-height: 1.4;
}
.bb-trust-sub {
  font-size: 0.74rem;
  font-weight: var(--fw-light);
  color: var(--grey);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .bb-trust-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
}
@media (max-width: 460px) {
  .bb-trust-inner { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   6. WEITERLESEN — kontextbezogene Anschlussseiten
---------------------------------------------------------------- */
.bb-next {
  padding: clamp(56px, 7vw, 62px) 6vw;
  background: var(--light);
}
.bb-next-inner { max-width: 1140px; margin: 0 auto; }
.bb-next-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}
.bb-next-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  font-style: italic;
  font-weight: var(--fw-light);
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 0;
}
.bb-next-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 18px;
}
.bb-next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px 26px 28px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
              border-color 0.5s var(--ease);
}
/* Die Farbkante links sagt, in welchen Bereich der Link fuehrt. */
.bb-next-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--bb-next-color, var(--gold));
  transform: scaleY(0.22);
  transform-origin: 50% 0;
  transition: transform 0.55s var(--ease);
}
.bb-next-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,0,0,0.10);
  box-shadow: 0 22px 48px rgba(45,40,30,0.10);
}
.bb-next-card:hover::before { transform: scaleY(1); }
.bb-next-kat {
  font-size: 0.58rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bb-next-color, var(--gold));
}
.bb-next-card h3 {
  font-size: 1.02rem;
  font-weight: var(--fw-regular);
  color: var(--dark);
  line-height: 1.35;
  margin: 0;
}
.bb-next-card p {
  font-size: var(--fs-sm);
  font-weight: var(--fw-light);
  line-height: 1.68;
  color: var(--grey);
  margin: 0;
}
.bb-next-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  font-size: 0.66rem;
  font-weight: var(--fw-semi);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  transition: gap 0.4s var(--ease);
}
.bb-next-card:hover .bb-next-go { gap: 13px; }

/* ----------------------------------------------------------------
   7. WORTWEISE UEBERSCHRIFTEN
   Jedes Wort steigt einzeln auf. Der Ausschnitt liegt auf dem Wort
   selbst, damit Unterlaengen nicht abgeschnitten werden.
---------------------------------------------------------------- */
.bb-wort {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.42em);
  transition: opacity 0.85s cubic-bezier(.16,1,.3,1),
              transform 0.85s cubic-bezier(.16,1,.3,1);
  will-change: transform, opacity;
}
.bb-wort-in .bb-wort {
  opacity: 1;
  transform: translateY(0);
}
/* Nach der Animation darf der Browser die Ebene wieder freigeben. */
.bb-wort-in { will-change: auto; }

/* ----------------------------------------------------------------
   8. SANFTES AUFZIEHEN VON BILDERN
   Statt eines simplen Einblendens wird das Motiv von unten
   freigegeben. Wirkt wie ein Vorhang, nicht wie ein Ladefehler.
---------------------------------------------------------------- */
.bb-wipe {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.25s cubic-bezier(.16,1,.3,1);
}
.bb-wipe.bb-wipe-in { clip-path: inset(0 0 0 0); }

/* ----------------------------------------------------------------
   9. BEWEGUNG AUS — eine vergessene Animation genuegt, um Menschen
   mit Bewegungsempfindlichkeit die Seite zu verderben.
---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .kc-band-glow,
  .kc-tile-bars span,
  .area-panel-col a.is-urgent::before {
    animation: none !important;
  }
  .kc-tile-bars span { transform: scaleX(1); opacity: 1; }
  .kc-tile { transform: none; }
  .bb-callbar { transition: none; }
  .bb-progress { display: none; }
  .kc-band-cta::before,
  .area-panel-col a.is-feature::after { display: none; }
  .bb-wort { opacity: 1; transform: none; transition: none; }
  .bb-wipe { clip-path: none; transition: none; }
}
