/* ============================================================
   Auftragsrausch Landing v5 — Floating Garantie-Check
   Nudge-Toast (unten rechts) + kompaktes Popup mit Quiz.
   Pearl-/Soft-Glass-Stil, konsistent mit der Seite.
   ============================================================ */

/* ---------- Nudge-Toast ---------- */
.ar-nudge {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px);
  z-index: 200; width: min(340px, calc(100vw - 32px));
  padding: 20px 20px 22px; border-radius: 22px;
  background:
    radial-gradient(120% 80% at 14% -8%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid rgba(15,30,50,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 24px 60px rgba(15,30,50,.24), 0 6px 16px rgba(15,30,50,.1);
  opacity: 0; transform: translateY(24px) scale(.98); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.ar-nudge.show { opacity: 1; transform: none; pointer-events: auto; }
.ar-nudge-close {
  position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border: 0; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(15,30,50,.06); color: var(--text-muted);
  transition: background .2s var(--ease-out), color .2s;
}
.ar-nudge-close:hover { background: rgba(15,30,50,.12); color: var(--text-heading); }
.ar-nudge-head { display: flex; align-items: center; gap: 12px; }
.ar-nudge-av { position: relative; flex: none; }
.ar-nudge-av image-slot { display: block; width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(15,30,50,.2); }
.ar-nudge-on {
  position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--trust); border: 2px solid #fff;
}
.ar-nudge-who { display: grid; gap: 1px; }
.ar-nudge-who b { font-size: 14px; color: var(--text-heading); }
.ar-nudge-who span { font-size: 11.5px; font-weight: 600; color: var(--text-muted); }
.ar-nudge-q { font-size: 17px; font-weight: 700; color: var(--text-heading); line-height: 1.28; margin-top: 16px; letter-spacing: -0.01em; }
.ar-nudge-sub { font-size: 13px; font-weight: 500; color: var(--text-muted); line-height: 1.5; margin-top: 8px; }
.ar-nudge .btn-primary { margin-top: 16px; }

/* ---------- Popup / Modal ---------- */
.ar-modal {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(8,20,32,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out);
}
.ar-modal.show { opacity: 1; pointer-events: auto; }
.ar-modal-panel {
  position: relative; width: min(460px, 100%);
  padding: clamp(24px, 4vw, 34px); border-radius: 26px;
  background:
    radial-gradient(120% 80% at 14% -8%, rgba(255,255,255,.95), rgba(255,255,255,0) 46%),
    linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  border: 1px solid rgba(15,30,50,.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 40px 90px rgba(8,20,32,.4);
  transform: translateY(20px) scale(.97); transition: transform .35s var(--ease-out);
}
.ar-modal.show .ar-modal-panel { transform: none; }
.ar-modal-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border: 0; cursor: pointer;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(15,30,50,.06); color: var(--text-muted); transition: background .2s, color .2s;
}
.ar-modal-close:hover { background: rgba(15,30,50,.12); color: var(--text-heading); }
.ar-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-right: 34px; }
.ar-modal .gq-stage { min-height: 240px; }

/* Ergebnis-Aktion */
.aw-book {
  display: grid; gap: 10px; margin-top: 4px;
}
@media (max-width: 480px) {
  .ar-nudge { left: 16px; right: 16px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ar-nudge, .ar-modal, .ar-modal-panel { transition: opacity .2s linear; }
}

/* ============================================================
   EIGNUNGS-FUNNEL — Modal-Overlay mit Qualifizierungs-Schritten
   (nutzt gq-* Quiz-Styles aus system.css)
   ============================================================ */
.fnl {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 18px;
  background: rgba(7, 24, 39, .55);
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
}
.fnl.open { display: flex; animation: fnlFade .3s var(--ease-out); }
@keyframes fnlFade { from { opacity: 0; } to { opacity: 1; } }
.fnl-panel {
  position: relative; width: min(540px, 100%); max-height: min(720px, calc(100vh - 36px));
  overflow: auto; border-radius: 26px 30px 26px 10px;
  padding: clamp(20px, 3vw, 30px);
  background: var(--metal-premium, #fff);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--gloss-lift, 0 40px 90px rgba(7,24,39,.4)), 0 0 80px rgba(22,119,184,.25);
  display: grid; gap: 16px; align-content: start;
}
.fnl.open .fnl-panel { animation: fnlUp .38s var(--ease-soft); }
@keyframes fnlUp { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: none; } }
.fnl-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 11px; border: 1px solid var(--border-card);
  background: rgba(255,255,255,.8); color: var(--text-muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color var(--dur), border-color var(--dur), transform var(--dur);
}
.fnl-close:hover { color: var(--text-heading); border-color: var(--border-strong); transform: rotate(90deg); }
.fnl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 40px; }
.fnl-head .method-seal { background: radial-gradient(140% 160% at 50% -30%, #2c4d6d, #0a1c2e 72%); border-color: rgba(255,255,255,.16); }
.fnl-head .method-seal b { color: #fff; font-size: 13.5px; }
.fnl-head .method-seal em { color: #7CE0B4; }
.fnl-stage { min-height: 300px; }
.fnl-stage.swap { opacity: 0; transform: translateY(6px); }
.fnl-stage { transition: opacity .16s var(--ease-out), transform .16s var(--ease-out); }

/* Kontaktformular */
.fnl-form { display: grid; gap: 12px; margin-top: 16px; }
.fnl-field { display: grid; gap: 5px; text-align: left; }
.fnl-field > span { font-size: 12px; font-weight: 700; color: var(--text-heading); letter-spacing: .01em; }
.fnl-field > span em { font-style: normal; font-weight: 600; color: var(--text-muted); font-size: 11px; }
.fnl-field input {
  width: 100%; padding: 12px 15px; font: 600 15px var(--font-sans); color: var(--text-heading);
  background: rgba(255,255,255,.85); border: 1.5px solid var(--border-default);
  border-radius: 13px 15px 13px 5px; outline: none;
  transition: border-color var(--dur), box-shadow var(--dur), background var(--dur);
}
.fnl-field input::placeholder { color: var(--text-muted); opacity: .55; font-weight: 500; }
.fnl-field input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(22,119,184,.14); }
.fnl-form .btn { margin-top: 6px; }
.fnl-error { font-size: 12.5px; font-weight: 700; color: var(--ar-error, #B91C1C); }
.fnl-consent { font-size: 11px; font-weight: 600; color: var(--text-muted); line-height: 1.5; text-align: center; }

/* Erfolg */
.fnl-done { text-align: center; display: grid; justify-items: center; gap: 12px; padding-top: 8px; }
.fnl-done-ic {
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(130% 150% at 50% -25%, #34a873, #1F8A5B 70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 28px rgba(31,138,91,.35), 0 0 30px rgba(52,201,138,.3);
  animation: fnlPop .5s var(--ease-soft);
}
@keyframes fnlPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.fnl-done-txt { font-size: 14.5px; font-weight: 600; color: var(--text-muted); line-height: 1.6; max-width: 40ch; }
.fnl-done-next {
  display: grid; gap: 8px; width: 100%; text-align: left;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,.7); border: 1px solid var(--border-card);
}
.fnl-done-next b { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-heading); }
.fnl-done-next span { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--text-body); }
.fnl-done-next i {
  width: 20px; height: 20px; flex: none; border-radius: 50%; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--accent-strong);
  background: var(--surface-tint); border: 1px solid #C7E3F7;
}
@media (max-width: 520px) {
  .fnl { padding: 10px; align-items: flex-end; }
  .fnl-panel { max-height: calc(100dvh - 20px); border-radius: 22px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fnl.open, .fnl.open .fnl-panel, .fnl-done-ic { animation: none; }
}

/* Nudge: echtes Portrait */
.ar-nudge-photo {
  display: block; width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; object-position: 50% 12%;
  box-shadow: 0 0 0 2px #fff, 0 4px 12px rgba(15,30,50,.2);
}

/* ============================================================
   GARANTIE-SIEGEL — rotierendes Kreis-Siegel (Hero + Garantie)
   ============================================================ */
/* ---------- Hero: Münz-Medaille (geprägter Rand, gewölbtes Zentrum) ---------- */
.ar-seal { position: relative; width: 122px; height: 122px; flex: none; }
.ar-seal::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--metal-plate-alt, radial-gradient(circle at 40% 30%, #ffffff, #eef2f7 70%));
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.95), inset 0 -7px 14px rgba(30,50,75,.16),
    inset 0 0 0 1px rgba(255,255,255,.6),
    0 22px 44px rgba(15,30,50,.16), 0 5px 12px rgba(15,30,50,.1);
}
.ar-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
/* geprägter Punktrand (Münzriffelung) */
.as-mint { fill: none; stroke: rgba(15,42,66,.3); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0.1 4; }
.as-ring2 { fill: none; stroke: rgba(15,30,50,.11); stroke-width: 1; }
.as-text {
  font-family: var(--font-sans); font-size: 8px; font-weight: 800;
  letter-spacing: 1.7px; fill: rgba(15,42,66,.6); text-transform: uppercase;
}
.as-rot { transform-box: view-box; transform-origin: 60px 60px; animation: sealSpin 30s linear infinite; }
@keyframes sealSpin { to { transform: rotate(360deg); } }
.as-core {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px; pointer-events: none;
}
/* gewölbte Navy-Cabochon mit AR + Verifiziert-Badge */
.as-disc {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(125% 150% at 50% -22%, #35597d 0%, #16293c 52%, #0a1c2e 88%);
  box-shadow: inset 0 2px 3px rgba(255,255,255,.34), inset 0 -3px 7px rgba(0,0,0,.42),
    0 6px 14px rgba(7,24,39,.4), 0 0 22px rgba(27,188,203,.2);
}
.as-disc img { width: 24px; height: 24px; }
.as-chk {
  position: absolute; right: -4px; bottom: -4px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; color: #fff;
  background: radial-gradient(130% 150% at 50% -25%, #38b578, #1F8A5B 72%);
  border: 2px solid var(--metal-hi, #fff);
  box-shadow: 0 3px 8px rgba(31,138,91,.4);
}
.as-core b {
  font-family: var(--font-sans); font-size: 9.5px; font-weight: 800;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-heading); line-height: 1;
}
@media (prefers-reduced-motion: reduce) { .as-rot { animation: none; } }

/* Hero: schwebende Münze im linken Weißraum */
.ar-seal--hero {
  position: absolute; z-index: 3; left: clamp(14px, 4vw, 74px); top: 40%;
  width: 132px; height: 132px; transform: translateY(-50%);
}
@media (max-width: 1240px) { .ar-seal--hero { display: none; } }

/* ============================================================
   GARANTIE-PLAKETTE — horizontales Siegel (dunkle Sektion),
   bewusst anders als die Hero-Münze
   ============================================================ */
.gar-plaque {
  display: flex; align-items: center; gap: 16px; margin-top: 24px;
  max-width: 440px; padding: 15px 20px 15px 15px;
  border-radius: 18px 20px 18px 8px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px rgba(0,0,0,.28);
  -webkit-backdrop-filter: blur(8px) saturate(1.15); backdrop-filter: blur(8px) saturate(1.15);
}
.gar-plaque::before {
  content: ""; position: absolute; top: 0; left: 14%; right: 14%; height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--signal, linear-gradient(90deg, #1677B8, #1bbccb));
  opacity: .55;
}
/* Sechseck-Emblem = anderes Formvokabular als der runde Hero-Coin.
   Die clip-path liegt auf ::before (nicht auf dem Container), damit der
   Haken (.gp-check) NICHT vom Sechseck abgeschnitten wird. */
.gp-emblem {
  position: relative; flex: none; width: 58px; height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.gp-emblem::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(125% 130% at 50% -20%, #35597d 0%, #16293c 54%, #081727 90%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
}
.gp-emblem::after {
  content: ""; position: absolute; inset: 1.5px; z-index: 0;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  box-shadow: inset 0 0 20px rgba(27,188,203,.28);
}
.gp-emblem img { position: relative; z-index: 1; width: 30px; height: 30px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.gp-check {
  position: absolute; right: -3px; bottom: 2px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; color: #fff;
  background: radial-gradient(130% 150% at 50% -25%, #38b578, #1F8A5B 72%);
  border: 2px solid #14293c;
  box-shadow: 0 3px 8px rgba(0,0,0,.4), 0 0 12px rgba(52,201,138,.5);
}
.gp-txt { display: grid; gap: 3px; min-width: 0; }
.gp-kicker {
  font-family: var(--font-sans); font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: #7CE0B4;
}
.gp-txt b { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: -0.01em; line-height: 1.25; }
.gp-sub { font-size: 12.5px; font-weight: 500; color: rgba(206,222,238,.78); line-height: 1.45; }
.seal-row { margin-top: 22px; }
@media (max-width: 560px) { .gar-plaque { max-width: none; } }

/* ============================================================
   FUNNEL — Trust-Chips über dem Absenden-Button
   ============================================================ */
.fnl-trust {
  display: flex; flex-wrap: wrap; gap: 7px 14px; justify-content: center;
  margin: 4px 0 2px;
}
.fnl-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--trust);
}
.fnl-trust svg { color: var(--trust); }

/* ============================================================
   FOOTER — Trust-Badge-Leiste
   ============================================================ */
.foot-badges {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  padding-block: 20px; margin-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid rgba(255,255,255,.1);
}
.fbadge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: rgba(210,224,236,.85);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.fbadge svg { color: #7CE0B4; flex: none; opacity: .9; }
.fbadge-link { color: rgba(210,224,236,.7); transition: color var(--dur), border-color var(--dur); }
.fbadge-link:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.fbadge-link { margin-left: 0; }
.foot-badges .fbadge-link:first-of-type { margin-left: auto; }
@media (max-width: 640px) { .foot-badges .fbadge-link:first-of-type { margin-left: 0; } }

/* ============================================================
   COOKIE-CONSENT — Bottom-Left-Card, granulare Einwilligung
   ============================================================ */
.consent-pending .ar-nudge, .consent-pending .mcta { display: none !important; }

.cc {
  position: fixed; left: 16px; bottom: 16px; z-index: 200;
  width: min(430px, calc(100vw - 32px));
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .45s var(--ease-soft);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.cc.show { opacity: 1; transform: none; pointer-events: auto; }
.cc-card {
  border-radius: 20px 22px 20px 8px; padding: 18px 20px 16px;
  background: var(--metal-premium, #fff); border: 1px solid rgba(255,255,255,.7);
  box-shadow: var(--gloss-lift, 0 30px 70px rgba(7,24,39,.3)), 0 0 60px rgba(22,119,184,.12);
  display: grid; gap: 12px;
}
.cc-head { display: flex; align-items: center; gap: 10px; }
.cc-ic {
  width: 34px; height: 34px; flex: none; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: radial-gradient(130% 150% at 50% -25%, #2c4d6d, #0a1c2e 72%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.26), 0 5px 12px rgba(7,24,39,.28);
}
.cc-head b { font-size: 15px; color: var(--text-heading); }
.cc-txt { font-size: 13px; line-height: 1.55; color: var(--text-muted); font-weight: 500; }
.cc-txt a { color: var(--accent-strong); font-weight: 700; }

/* Kategorien (Einstellungen) */
.cc-cats { display: grid; gap: 8px; margin-top: 2px; }
.cc-cats[hidden] { display: none; }
.cc .btn[hidden] { display: none; }
.cc-cat {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  padding: 10px 13px; border-radius: 13px;
  background: rgba(255,255,255,.55); border: 1px solid var(--border-card);
}
.cc-cat-txt { display: grid; gap: 1px; }
.cc-cat-txt b { font-size: 13px; color: var(--text-heading); }
.cc-cat-txt span { font-size: 11.5px; color: var(--text-muted); font-weight: 500; line-height: 1.4; }
.cc-switch { position: relative; flex: none; width: 40px; height: 23px; }
.cc-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cc-switch i {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--border-strong); transition: background .25s var(--ease-out);
}
.cc-switch i::after {
  content: ""; position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(15,30,50,.3);
  transition: transform .25s var(--ease-soft);
}
.cc-switch input:checked + i { background: var(--accent); }
.cc-switch input:checked + i::after { transform: translateX(17px); }
.cc-cat.locked { opacity: .85; }
.cc-cat.locked .cc-switch input:checked + i { background: var(--trust); }

/* Aktionen */
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 2px; }
.cc-actions .btn { flex: 1 1 auto; }
.cc-link { border: 0; background: none; cursor: pointer; font: 700 13px var(--font-sans); color: var(--accent-strong); padding: 6px 4px; }
.cc-link:hover { color: var(--text-heading); }
.cc-expanded .cc-actions { flex-direction: column; align-items: stretch; }
.cc-expanded .cc-actions .btn, .cc-expanded .cc-save { width: 100%; }
.cc-expanded [data-cc="all"] { order: 2; }
.cc-expanded [data-cc="necessary"] { order: 3; }
.cc-expanded [data-cc="settings"] { display: none; }
.cc-expanded .cc-save { order: 1; }

@media (max-width: 480px) { .cc { left: 10px; right: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cc { transition: opacity .2s; transform: none; } }
