/* Kontakt-Bausteine (src/kontakt.mjs): Kopfleiste, Streifen, Band, Fußzeile, Schnellkontakt.
   Nur Variablen und Klassen der bestehenden Gestaltung; keine Webfonts, keine externen Ressourcen. */

.kt-ic { width: 1.05em; height: 1.05em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Kopfleiste ---------- */
.ribbon-kt { display: inline-flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin-left: auto; }
.ribbon .ribbon-tel { display: inline-flex; gap: 6px; align-items: center; color: #efeef6; font-weight: 700; white-space: nowrap; }
.ribbon .ribbon-tel:hover, .ribbon .ribbon-tel:focus-visible { color: var(--marker); }
.ribbon .ribbon-cta { white-space: nowrap; }
@media (max-width: 720px) { .ribbon-kt { margin-left: 0; } .ribbon .ribbon-cta { display: none; } } /* am Telefon steht „Erstgespräch“ ohnehin in der Leiste unten */

/* ---------- Streifen im Text ---------- */
.kt-strip { border-block: 1px solid var(--line); background: var(--bg-2); }
.kt-strip-in { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.kt-strip-t { margin: 0; max-width: 58ch; font-weight: 650; color: var(--ink); }
.kt-strip-act { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.kt-strip-link { display: inline-flex; gap: 7px; align-items: center; color: var(--ink-2); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.kt-strip-link:hover, .kt-strip-link:focus-visible { color: var(--ink); background: linear-gradient(transparent 60%, var(--marker-soft) 60%); }

/* ---------- Unter der FAQ ---------- */
.faq-more { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; margin: 28px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.faq-more a:not(.btn) { display: inline-flex; gap: 7px; align-items: center; color: var(--ink-2); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.faq-more a:not(.btn):hover, .faq-more a:not(.btn):focus-visible { color: var(--ink); background: linear-gradient(transparent 60%, var(--marker-soft) 60%); }

/* ---------- Kontaktband vor der Fußzeile ---------- */
.kt-band { scroll-margin-top: 80px; }
.kt-band-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 56px; align-items: center; }
.kt-band h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; }
.kt-band .lead { margin-bottom: 0; }
.kt-band-act { display: flex; flex-direction: column; gap: 12px; }
.kt-band-act .btn { justify-content: center; overflow-wrap: anywhere; }
@media (max-width: 860px) { .kt-band-in { grid-template-columns: 1fr; } }

/* ---------- Fußzeile ---------- */
.site-footer .footer-grid a.btn.footer-cta { display: inline-flex; margin: 2px 0 14px; padding: 0.55em 1.1em; color: #14131d; font-size: 0.92rem; }
.footer-adr { display: flex; flex-direction: column; gap: 2px; font-style: normal; }
.footer-grid .footer-adr a { display: flex; gap: 8px; align-items: center; }
.footer-adr > span { margin-top: 10px; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
.footer-rechtlich { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 12px; }
.footer-rechtlich a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-rechtlich a:hover, .footer-rechtlich a:focus-visible { color: var(--ink); text-decoration: underline; }

/* ---------- Schnellkontakt: am Rechner eine Schaltfläche, am Telefon eine Leiste ---------- */
.kt-sticky { position: fixed; z-index: 45; right: 20px; bottom: 20px; display: flex; gap: 10px; transition: transform 0.25s ease, opacity 0.25s ease; }
.kt-sticky .btn { box-shadow: 0 10px 28px -10px rgba(20, 19, 29, 0.55); }
.kt-sticky .kt-sticky-tel { display: none; }
.kt-sticky.kt-sticky-off { opacity: 0; transform: translateY(16px); pointer-events: none; }
@media (max-width: 860px) {
  .kt-sticky { left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
  .kt-sticky .btn { flex: 1; justify-content: center; box-shadow: none; }
  .kt-sticky .kt-sticky-tel { display: inline-flex; }
  .site-footer { padding-bottom: 96px; }
  .kt-toast { bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .kt-sticky { transition: none; } }
@media print { .kt-sticky, .kt-strip, .kt-band { display: none; } }

/* ---------- Danke-Popup nach dem Absenden (src/kontakt.mjs → dankePopup, assets/js/danke.js) ---------- */
.danke { width: min(580px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; border: 2px solid var(--rule, var(--ink)); border-radius: 0; background: var(--bg); color: var(--ink); box-shadow: 10px 10px 0 var(--marker); }
.danke::backdrop { background: rgba(17, 17, 17, 0.62); }
dialog.danke[open] { animation: danke-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes danke-in { from { opacity: 0; transform: translateY(16px) scale(0.985); } }
body:has(dialog.danke[open]) { overflow: hidden; }
.danke-in { position: relative; padding: clamp(26px, 5vw, 42px); }
.danke-x { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.danke-x .kt-ic { width: 22px; height: 22px; stroke-width: 2; }
.danke-x:hover, .danke-x:focus-visible { background: var(--marker-soft); }
.danke .eyebrow { margin-bottom: 16px; }
.danke h2 { margin: 0 0 14px; max-width: 16em; font-size: clamp(1.8rem, 5vw, 2.5rem); line-height: 1.06; }
.danke .swipe { animation-delay: 0.35s; }
.danke .lead { margin: 0 0 24px; }
.danke-steps { counter-reset: schritt; margin: 0 0 22px; padding: 0; list-style: none; border-top: 2px solid var(--rule, var(--ink)); }
.danke-steps li { counter-increment: schritt; display: grid; grid-template-columns: 2.1em minmax(0, 1fr); column-gap: 8px; padding: 13px 0; border-bottom: 1px solid var(--line); font: 400 0.98rem/1.45 var(--serif, Georgia, serif); }
.danke-steps li::before { content: counter(schritt); grid-row: 1 / span 2; font: 800 0.84rem/1.7 var(--sans, system-ui, sans-serif); letter-spacing: 0.06em; }
.danke-steps b { font: 700 0.7rem/1.7 var(--sans, system-ui, sans-serif); letter-spacing: 0.14em; text-transform: uppercase; }
.danke-eilt { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; margin: 0 0 22px; font: 400 0.95rem/1.4 var(--sans, system-ui, sans-serif); color: var(--ink-2); }
.danke-eilt a { display: inline-flex; gap: 7px; align-items: center; color: var(--ink); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.danke-eilt a:hover, .danke-eilt a:focus-visible { background: linear-gradient(transparent 60%, var(--marker-soft) 60%); }
.danke .btn-row .btn { justify-content: center; }
@media (max-width: 480px) { .danke { box-shadow: 6px 6px 0 var(--marker); } .danke .btn-row { flex-direction: column; align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { dialog.danke[open] { animation: none; } }
