/* ============================================================
   GRÄF — Component Styles
   ============================================================ */

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; letter-spacing: .01em;
  border: 0; border-radius: var(--r-pill); cursor: pointer;
  transition: transform .08s var(--ease-ui), background .18s var(--ease-ui), box-shadow .18s var(--ease-ui), color .18s;
  text-align: center; white-space: nowrap; line-height: 1;
}
.btn svg { flex: none; }
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-md { padding: 15px 26px; font-size: 1rem; }
.btn-lg { padding: 19px 34px; font-size: 1.08rem; }
.btn-full { width: 100%; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--blue-700); color: #fff; box-shadow: var(--sh-blue); }
.btn-primary:hover { background: var(--blue-900); }
.btn-danger { background: var(--red-600); color: #fff; box-shadow: 0 14px 34px rgba(228,29,33,.28); }
.btn-danger:hover { background: var(--red-700); }
.btn-gold { background: var(--gold-500); color: var(--ink); box-shadow: var(--sh-sm); }
.btn-gold:hover { background: var(--gold-300); }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--blue-600); color: var(--blue-700); background: var(--blue-50); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-light { background: #fff; color: var(--blue-800); box-shadow: var(--sh-md); }
.btn-light:hover { background: var(--blue-50); }

/* ============================================================
   KI-CONSENT (DSGVO)
   ============================================================ */
.consent-veil { position: fixed; inset: 0; z-index: 9500; background: rgba(22,24,43,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: consentIn .3s var(--ease); }
@keyframes consentIn { from { opacity: 0; } to { opacity: 1; } }
.consent-card { background: #fff; border-radius: var(--r-xl); max-width: 660px; width: 100%; padding: clamp(26px, 4vw, 44px); box-shadow: var(--sh-lg); max-height: calc(100vh - 40px); overflow: auto; animation: consentCard .4s var(--ease); }
@keyframes consentCard { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.consent-logo { height: 52px; width: auto; display: block; }
.consent-card h2 { font-size: var(--fs-h3); margin-top: 18px; }
.consent-intro { color: var(--ink-soft); margin-top: 10px; line-height: 1.55; }
.consent-points { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; list-style: none; }
.consent-points li { display: flex; gap: 12px; font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.consent-points li svg { flex: none; color: var(--blue-700); margin-top: 3px; }
.consent-points strong { color: var(--ink); }
.consent-check { display: flex; gap: 11px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-md); font-size: .88rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.consent-check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--blue-700); cursor: pointer; }
.consent-check a { color: var(--blue-700); font-weight: 600; text-decoration: underline; }
.consent-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.consent-note { font-size: .8rem; color: var(--muted); margin-top: 14px; line-height: 1.5; }

/* Consent-Gate im Chat-Panel + am Bad-Designer */
.chat-consent { padding: 14px 16px 16px; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 12px; }
.chat-consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.chat-consent-check input { flex: none; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue-700); cursor: pointer; }
.chat-consent-check a { color: var(--blue-700); font-weight: 600; text-decoration: underline; }
.chat-consent-btn { border: 0; border-radius: var(--r-pill); padding: 12px 18px; font: inherit; font-weight: 700; cursor: pointer; background: var(--blue-700); color: #fff; transition: opacity .2s var(--ease-ui); }
.chat-consent-btn:disabled { opacity: .45; cursor: not-allowed; }

/* gesperrte KI-Tools */
.chat-fab.chat-fab-off { filter: grayscale(.65); opacity: .85; }

/* Status-Ampel des KI-Chats (grün online · gelb Prüfung · rot offline) */
.chat-fab-dot { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; background: var(--muted); }
.chat-fab-dot.on { background: #22c55e; animation: chat-pulse 2.2s ease-in-out infinite; }
.chat-fab-dot.checking { background: #f5b301; }
.chat-fab-dot.off { background: var(--red-500); }
@keyframes chat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 50% { box-shadow: 0 0 0 5px rgba(34,197,94,0); } }
@media (prefers-reduced-motion: reduce) { .chat-fab-dot.on { animation: none; } }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); flex: none; }
.chat-dot.on { background: #34d27b; }
.chat-dot.checking { background: #ffd76a; }
.chat-dot.off { background: #ff6b6b; }
.chat-offline { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line); background: #fde3e3; color: #9c1c24; font-size: .85rem; line-height: 1.45; }
.chat-offline svg { flex: none; margin-top: 1px; }
.chat-offline a { color: #9c1c24; font-weight: 700; }
.bad-viz-locked { position: relative; }
.bad-viz-locked .bad-drop, .bad-viz-locked .bad-style { pointer-events: none; }
.bad-lock { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; padding: 24px; background: rgba(246,247,251,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: inherit; }
.bad-lock-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 28px; max-width: 430px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.bad-lock-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--blue-50); border: 1px solid var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.bad-lock-card h3 { font-size: 1.15rem; }
.bad-lock-card p { color: var(--ink-soft); font-size: .92rem; line-height: 1.5; }


/* radius for editorial look */
html[data-look="editorial"] .btn { border-radius: 3px; }

/* ---------- HEADER ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); transition: background .3s var(--ease); }
.hdr-scrolled { background: rgba(255,255,255,.68); }
.hdr-top { background: var(--blue-900); color: rgba(255,255,255,.82); font-size: .82rem; }
.hdr-top-in { display: flex; align-items: center; justify-content: space-between; height: 38px; }
.hdr-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hdr-top-left a, .hdr-top-left span { display: inline-flex; align-items: center; gap: 6px; color: inherit; white-space: nowrap; }
.hdr-top-left a:hover { color: #fff; }
.hdr-top-left svg { opacity: .7; }
.hdr-dot { opacity: .4; }
.hdr-dot.dim, .hdr-hours { }
.hdr-not { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-300) !important; white-space: nowrap; }
.hdr-not:hover { color: var(--gold-500) !important; }
.hdr-not-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 0 rgba(242,58,62,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(242,58,62,.55)} 70%{box-shadow:0 0 0 9px rgba(242,58,62,0)} 100%{box-shadow:0 0 0 0 rgba(242,58,62,0)} }

.hdr-main { display: flex; align-items: center; gap: 24px; height: var(--nav-h); transition: height .25s var(--ease); }
.hdr-scrolled .hdr-main { height: 64px; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.hdr-link { padding: 10px 15px; font-weight: 600; font-size: .98rem; color: var(--ink-soft); border-radius: var(--r-sm); position: relative; transition: color .15s, background .15s; white-space: nowrap; }
.hdr-link:hover { color: var(--blue-700); background: var(--blue-50); }
.hdr-link.active { color: var(--blue-800); }
.hdr-link.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: 4px; height: 3px; border-radius: 2px; background: var(--red-600); }
.hdr-cta { margin-left: 6px; }
.hdr-burger { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; padding: 6px; margin-left: auto; }

.hdr-mobile { display: none; }
.hdr-mobile.open { display: block; padding: 12px var(--gutter) 26px; border-top: 1px solid var(--line-soft); background: #fff; }
.hdr-mlink { display: block; padding: 14px 8px; font-weight: 700; font-size: 1.15rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.hdr-mlink.active { color: var(--blue-700); }
.hdr-mobile-cta { display: grid; gap: 10px; margin-top: 18px; }

@media (max-width: 940px) {
  .hdr-nav, .hdr-cta { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-hours, .hdr-dot.dim { display: none; }
}
@media (max-width: 620px) {
  .hdr-top-left a:nth-child(3), .hdr-top-left .hdr-dot:first-of-type { display: none; }
}

/* ---------- SERVICE CARD ---------- */
.svc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px 30px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.svc-accent { position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--svc-a); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--svc-a); }
.svc-card:hover .svc-accent { transform: scaleX(1); }
.svc-index { position: absolute; top: 22px; right: 26px; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -.03em; color: var(--line); transition: color .25s; }
.svc-card:hover .svc-index { color: var(--svc-a); opacity: .35; }
.svc-ico { width: 58px; height: 58px; border-radius: var(--r-md); display: grid; place-items: center; border: 1.5px solid; background: var(--surface-2); transition: background .25s, color .25s; }
.svc-card:hover .svc-ico { background: var(--svc-a); color: #fff !important; }
.svc-card.tone-accent-gold:hover .svc-ico { color: var(--ink) !important; }
.svc-more { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; margin-top: auto; padding-top: 20px; color: var(--svc-a); }
.svc-card.tone-accent-gold .svc-more { color: var(--gold-700); }
.svc-card:hover .svc-more svg { transform: translateX(4px); transition: transform .2s; }

/* ---------- NOTDIENST BAND ---------- */
.not-stripe { width: 100%; height: 30px; background: var(--gold-500); }
.not-band { background: var(--red-600); color: #fff; position: relative; overflow: hidden; }
.not-band-x-removed { }
.not-band-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 30px; flex-wrap: wrap; }
.not-band-left { display: flex; align-items: center; gap: 20px; }
.not-pulse { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.not-kicker { font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 4px; }
.not-num { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--red-700); font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem,1rem+1.4vw,1.9rem); padding: 14px 26px; border-radius: var(--r-pill); box-shadow: var(--sh-md); transition: transform .1s; }
.not-num:hover { transform: scale(1.03); }

/* ---------- FOOTER ---------- */
.ftr { background: var(--blue-900); color: #fff; padding-top: clamp(56px,7vw,86px); }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.ftr-h { font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); margin: 0 0 18px; }
.ftr-col { display: flex; flex-direction: column; gap: 11px; }
.ftr-col a, .ftr-col span { color: rgba(255,255,255,.72); font-size: .92rem; display: inline-flex; align-items: center; gap: 9px; transition: color .15s; white-space: nowrap; }
.ftr-col a:hover { color: #fff; }
.ftr-col svg { opacity: .6; flex: none; }
.ftr-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.5); font-size: .86rem; flex-wrap: wrap; }
.ftr-legal { display: flex; gap: 22px; }
.ftr-legal a:hover { color: #fff; }
.ftr-credit { color: rgba(255,255,255,.72); font-weight: 600; text-decoration: none; }
.ftr-credit:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) { .ftr-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .ftr-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Modal / Lightbox (Leistungs-Detail-Popups)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(22, 24, 43, .55); backdrop-filter: blur(4px);
  animation: modal-fade .2s var(--ease-ui);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  position: relative; width: 100%; max-width: 560px;
  max-height: 88vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: clamp(26px, 4vw, 40px);
  animation: modal-rise .26s var(--ease);
}
@keyframes modal-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--surface-3); color: var(--ink); }

.svc-modal-ico {
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: var(--r-md); border: 1.5px solid; 
}
.svc-modal-title { font-size: var(--fs-h3); margin-top: 18px; }
.svc-modal-text { color: var(--ink-soft); margin-top: 12px; line-height: 1.6; }
.svc-modal-points { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-modal-points li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); }
.svc-modal-points li svg { color: var(--blue-600); flex: none; margin-top: 3px; }
.svc-modal-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
