/* Demo-Startseite (/demo, demo.php): Eingabefenster „Ihre Karte“, Demo-Kennzeichnung (Band + Schild),
   Faire-Rotation-Hinweis, Registrieren-Leiste und Animationen. Nur geladen, wenn suche.php im Demo-Modus läuft. */
:root {
    --dm-bg: #f8f5ee;
    --dm-bg-2: #efe9dc;
    --dm-border: #d9cfba;
    --dm-text: #1c1a15;
    --dm-text-2: #5a5446;
    --dm-moss: #1f6b4e;
    --dm-moss-2: #1b5440;
    --dm-amber: #c9832b;
    --dm-shadow: 0 18px 50px -18px rgba(28, 26, 21, .35);
    --dm-radius: 18px;
}
html.dark {
    --dm-bg: #0f172a;
    --dm-bg-2: #111c33;
    --dm-border: #253149;
    --dm-text: #e2e8f0;
    --dm-text-2: #94a3b8;
    --dm-moss: #34d399;
    --dm-moss-2: #10b981;
    --dm-shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
}
/* Cookie-Banner gibt es in der Demo nicht */
#cc-main { display: none !important; }
/* ------------------------------------------------ Panel-Grundform */
.demo-panel {
    font-family: 'Inter', sans-serif;
    color: var(--dm-text);
    background: var(--dm-bg);
    border: 1px solid var(--dm-border);
    box-shadow: var(--dm-shadow);
    font-size: 14px;
    line-height: 1.45;
    z-index: 70;
}
.demo-panel__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--dm-border); }
.demo-panel__title { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.demo-panel__title strong { font-family: 'Outfit', sans-serif; font-size: 18px; line-height: 1.2; }
.demo-panel__body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: rgba(201, 131, 43, .14); color: #8a5a1f; }
html.dark .demo-badge { background: rgba(201, 131, 43, .2); color: #f2c97a; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dm-amber); box-shadow: 0 0 0 3px rgba(201, 131, 43, .25); flex: none; }
.demo-hide { display: inline-flex; align-items: center; gap: 7px; flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--dm-border); background: var(--dm-bg-2); color: var(--dm-text); font: 600 13px 'Inter', sans-serif; cursor: pointer; transition: background .15s, border-color .15s; }
.demo-hide:hover { border-color: var(--dm-moss); color: var(--dm-moss); }
.demo-field { display: flex; flex-direction: column; gap: 6px; }
.demo-label { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dm-text-2); }
.demo-field input[type="text"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--dm-border); background: #fff; color: var(--dm-text); font: 500 15px 'Inter', sans-serif; outline: none; transition: border-color .15s, box-shadow .15s; }
html.dark .demo-field input[type="text"] { background: #0b1220; }
.demo-field input[type="text"]:focus { border-color: var(--dm-moss); box-shadow: 0 0 0 3px rgba(31, 107, 78, .18); }
.demo-seg { display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--dm-bg-2); border: 1px solid var(--dm-border); }
.demo-seg button { padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--dm-text-2); font: 700 13px 'Inter', sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.demo-seg button[aria-checked="true"] { background: var(--dm-moss); color: #fff; box-shadow: 0 6px 14px -8px rgba(31, 107, 78, .8); }
.demo-seg button[data-demo-variant-btn="premium"][aria-checked="true"] { background: linear-gradient(135deg, #1c5642, #22634b); }
.demo-seg button[data-demo-variant-btn="premium"] i { color: #e5b04a; }
.demo-logos { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; }
.demo-logo { position: relative; width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 2px solid var(--dm-border); background: var(--dm-bg-2); overflow: hidden; cursor: pointer; display: grid; place-items: center; transition: border-color .15s, transform .15s; }
.demo-logo:hover { transform: translateY(-1px); }
.demo-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-logo.is-active { border-color: var(--dm-moss); box-shadow: 0 0 0 3px rgba(31, 107, 78, .22); }
.demo-logo--upload { border-style: dashed; color: var(--dm-text-2); }
.demo-logo--upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.demo-hint { font-size: 12px; color: var(--dm-text-2); }
.demo-hint i { margin-right: 4px; }
.demo-note { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--dm-bg-2); font-size: 12.5px; color: var(--dm-text-2); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 14px; border-radius: 12px; font: 700 13px 'Inter', sans-serif; text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.demo-btn--ghost { background: transparent; border-color: var(--dm-border); color: var(--dm-text); }
.demo-btn--ghost:hover { border-color: var(--dm-moss); color: var(--dm-moss); }
.demo-btn--cta { background: var(--dm-moss-2); color: #fff; flex: 1 1 auto; }
html.dark .demo-btn--cta { color: #052e1f; }
.demo-keys { margin: 0; font-size: 12px; color: var(--dm-text-2); }
.demo-keys kbd { display: inline-block; min-width: 18px; padding: 1px 6px; border: 1px solid var(--dm-border); border-bottom-width: 2px; border-radius: 6px; font: 700 11px 'Inter', sans-serif; text-align: center; background: var(--dm-bg); }
/* ------------------------------------------------ eigene Karte markieren (Etikett „Ihre Karte“ nur bei offener Eingabe) */
.demo-own-tag { display: none; }
body.demo-open .demo-own-card { outline: 3px dashed var(--dm-amber); outline-offset: 4px; }
body.demo-open .demo-own-tag { display: inline-flex; position: absolute; top: 10px; right: 10px; z-index: 5; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--dm-amber); color: #fff; font: 700 11px 'Inter', sans-serif; letter-spacing: .04em; text-transform: uppercase; pointer-events: none; }
@keyframes demoPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 131, 43, 0); } 40% { box-shadow: 0 0 0 10px rgba(201, 131, 43, .35); } }
.demo-own-pulse { animation: demoPulse 1.2s ease 2; }
/* Kontakt-Attrappen: kein Link-Gefühl */
.expert-card a[href^="tel:"], .expert-card a[href^="mailto:"], .expert-card a[data-card-contact="website"] { cursor: default; }
/* ------------------------------------------------ Hinweis-Toast */
.demo-toast { position: fixed; left: 50%; top: 18px; z-index: 90; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; max-width: min(92vw, 520px); padding: 12px 16px; border-radius: 14px; background: #1c1a15; color: #f8f5ee; font: 600 14px 'Inter', sans-serif; box-shadow: var(--dm-shadow); transition: opacity .2s, transform .2s; }
.demo-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
/* ------------------------------------------------ Handle (eingeklappt) */
.demo-handle { display: none; font-family: 'Inter', sans-serif; cursor: pointer; z-index: 69; color: var(--dm-text); }
body.demo-closed .demo-handle { display: inline-flex; }
body.demo-closed .demo-panel { display: none; }
/* ================================================= Eingabefenster: schwebend unten links, eingeklappt runder DEMO-Knopf */
@media (min-width: 768px) {
    body[data-demo-variant="c"] .demo-panel { position: fixed; left: 24px; bottom: 24px; width: 340px; max-height: calc(100vh - 48px); overflow-y: auto; border-radius: var(--dm-radius); }
    body[data-demo-variant="c"] .demo-panel__head { cursor: grab; }
    body[data-demo-variant="c"] .demo-panel__head:active { cursor: grabbing; }
    body[data-demo-variant="c"] .demo-handle { position: fixed; left: 24px; bottom: 24px; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--dm-moss-2); color: #fff; box-shadow: var(--dm-shadow), 0 0 0 4px rgba(201, 131, 43, .45); font-size: 16px; }
    body[data-demo-variant="c"] .demo-handle__label { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
}
.demo-handle__muted { color: var(--dm-text-2); }
/* ================================================= Mobil (< 768 px): Eingabe als Sheet von unten */
@media (max-width: 767px) {
    .demo-panel { position: fixed; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow-y: auto; border-radius: 22px 22px 0 0; border-width: 1px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .demo-panel__head { position: sticky; top: 0; background: var(--dm-bg); z-index: 1; }
    .demo-hide span { display: none; }
    .demo-hide { padding: 10px 12px; }
    .demo-logos { grid-template-columns: repeat(4, 52px); }
    .demo-logo { width: 52px; height: 52px; }
    .demo-keys { display: none; }
    .demo-handle { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--dm-border); background: var(--dm-bg); box-shadow: var(--dm-shadow); font-size: 13px; font-weight: 700; }
    .demo-handle__vert, .demo-handle__chev, .demo-handle__muted, .demo-handle .fa-chevron-up, .demo-handle .fa-chevron-down { display: none; }
    body[data-demo-variant="c"] .demo-handle { width: 56px; height: 56px; padding: 0; justify-content: center; flex-direction: column; gap: 0; border-radius: 50%; border: 0; background: var(--dm-moss-2); color: #fff; }
    body[data-demo-variant="c"] .demo-handle__label { font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
}
/* Fenster kompakt halten */
@media (min-width: 768px) {
    body[data-demo-variant="c"] .demo-note, body[data-demo-variant="c"] .demo-keys { display: none; }
}
/* DEMO-Knopf 96 px (mobil 76 px), Bernstein-Rahmen glüht pulsierend */
@keyframes demoHandleGlow {
    0%, 100% { box-shadow: var(--dm-shadow), 0 0 0 4px rgba(201, 131, 43, .75), 0 0 10px 4px rgba(242, 201, 122, .35); }
    50%      { box-shadow: var(--dm-shadow), 0 0 0 5px rgba(229, 176, 74, 1), 0 0 26px 10px rgba(242, 201, 122, .75); }
}
@media (min-width: 768px) {
    body[data-demo-variant="c"] .demo-handle { width: 96px; height: 96px; gap: 4px; font-size: 24px; animation: demoHandleGlow 2.2s ease-in-out infinite; }
    body[data-demo-variant="c"] .demo-handle__label { font-size: 13px; letter-spacing: .16em; }
}
@media (max-width: 767px) {
    body[data-demo-variant="c"] .demo-handle { width: 76px; height: 76px; gap: 2px; font-size: 20px; animation: demoHandleGlow 2.2s ease-in-out infinite; }
    body[data-demo-variant="c"] .demo-handle__label { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
    body[data-demo-variant="c"] .demo-handle { animation: none; box-shadow: var(--dm-shadow), 0 0 0 5px rgba(229, 176, 74, 1), 0 0 18px 6px rgba(242, 201, 122, .6); }
}
/* Premium-Kasten: Etikett „Faire Rotation“ neben „Anzeige“ + Erklärtext (Hover/Fokus, mobil per Antippen) */
.demo-adhead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.demo-rotation { position: relative; }
.demo-rotation__tag {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px; cursor: help;
    border: 1px solid rgba(201, 131, 43, .55); background: rgba(201, 131, 43, .12);
    color: #8a5a1f; font: 700 10px 'Inter', sans-serif; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap;
}
html.dark .demo-rotation__tag { color: #f2c97a; background: rgba(201, 131, 43, .16); }
.demo-rotation__tag i { font-size: 10px; letter-spacing: 0; transition: transform .6s ease; }
.demo-rotation__tag:hover i, .demo-rotation__tag:focus-visible i { transform: rotate(180deg); }
.demo-rotation__tip {
    position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: 260px;
    padding: 10px 12px; border-radius: 12px; background: #1c1a15; color: #f8f5ee;
    font: 500 13px/1.45 'Inter', sans-serif; letter-spacing: 0; text-transform: none;
    box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5);
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s linear .15s;
}
.demo-rotation:hover .demo-rotation__tip, .demo-rotation.is-open .demo-rotation__tip, .demo-rotation__tag:focus + .demo-rotation__tip { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s, transform .15s; }
@media (max-width: 767px) {
    .demo-rotation__tip { width: min(260px, calc(100vw - 48px)); }
}
/* Info-Kärtchen „Faire Rotation“ rechts neben dem Premium-Kasten (ab 1440 px, darunter Etikett im Kasten) */
.demo-rotation-aside { display: none; }
@media (min-width: 1440px) {
    #premiumContainer { position: relative; }
    .demo-rotation { display: none; }
    .demo-rotation-aside {
        display: flex; flex-direction: column; gap: 8px;
        position: absolute; top: 50%; left: calc(100% + 28px); transform: translateY(-50%);
        /* freier Platz rechts: halbe Restbreite minus Filter-Reiter (~70 px) und Abstand */
        width: clamp(190px, calc((100vw - 960px) / 2 - 120px), 300px);
        padding: 18px 18px 18px 20px; border-radius: 18px;
        background: var(--dm-bg); border: 1px solid rgba(201, 131, 43, .55);
        box-shadow: 0 16px 36px -18px rgba(28, 26, 21, .45);
        color: var(--dm-text); font-family: 'Inter', sans-serif;
    }
    /* Pfeil auf den Kasten: Dreieck links mittig, gleiche Fläche + Rahmen */
    .demo-rotation-aside::before {
        content: ''; position: absolute; left: -9px; top: 50%; width: 16px; height: 16px;
        background: var(--dm-bg); border-left: 1px solid rgba(201, 131, 43, .55); border-bottom: 1px solid rgba(201, 131, 43, .55);
        transform: translateY(-50%) rotate(45deg); border-bottom-left-radius: 3px;
    }
    .demo-rotation-aside__icon {
        width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
        background: linear-gradient(180deg, #c9832b, #a8691d); color: #fff; font-size: 15px;
        box-shadow: 0 6px 14px -6px rgba(201, 131, 43, .8);
    }
    .demo-rotation-aside strong { font-family: 'Outfit', sans-serif; font-size: 17px; line-height: 1.2; }
    .demo-rotation-aside p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--dm-text-2); }
    .demo-rotation-aside:hover .demo-rotation-aside__icon i { transform: rotate(180deg); }
    .demo-rotation-aside__icon i { transition: transform .6s ease; }
}
/* Kompakte Fassung 1440–1599 px (15-Zoll-Laptops): schmaler, kleineres Symbol und Schrift, knapperer Abstand */
@media (min-width: 1440px) and (max-width: 1599px) {
    .demo-rotation-aside {
        left: calc(100% + 18px);
        width: clamp(140px, calc((100vw - 960px) / 2 - 100px), 180px);
        gap: 6px; padding: 13px 12px 13px 14px; border-radius: 14px;
    }
    .demo-rotation-aside::before { width: 12px; height: 12px; left: -7px; }
    .demo-rotation-aside__icon { width: 30px; height: 30px; font-size: 12px; }
    .demo-rotation-aside strong { font-size: 15px; }
    .demo-rotation-aside p { font-size: 12.5px; line-height: 1.45; }
}
/* Registrieren / Mehr Informationen: schmale Leiste (zwei Pillen) unten am rechten Bildschirmrand, auf allen Breiten.
   Erscheint beim Scrollen zu den Ergebnissen, auch bei offener Eingabe. */
.demo-cta {
    position: fixed; z-index: 68; right: 24px; bottom: 47px; /* rechter Rand, auf Höhe der Mitte des 96-px-Demo-Knopfs */
    display: flex; flex-direction: row; align-items: center; gap: 8px;
    max-width: calc(100vw - 150px); padding: 8px; border-radius: 999px;
    background: var(--dm-bg); border: 1px solid var(--dm-border); box-shadow: var(--dm-shadow);
    font-family: 'Inter', sans-serif; color: var(--dm-text);
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
}
body.demo-cta-on .demo-cta { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .25s ease, transform .25s ease; }
.demo-cta__btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border-radius: 999px; white-space: nowrap; font: 700 13.5px 'Inter', sans-serif; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.demo-cta__btn:hover { transform: translateY(-1px); }
.demo-cta__btn--primary { background: var(--dm-moss-2); color: #fff; box-shadow: 0 8px 18px -10px rgba(27, 84, 64, .9); }
html.dark .demo-cta__btn--primary { color: #052e1f; }
.demo-cta__btn--primary i { font-size: 11px; transition: transform .15s; }
.demo-cta__btn--primary:hover i { transform: translateX(3px); }
.demo-cta__btn--ghost { border: 1px solid var(--dm-border); color: var(--dm-text); background: transparent; }
.demo-cta__btn--ghost:hover { border-color: var(--dm-moss); color: var(--dm-moss); }
/* Laptop-Breiten bis 1599 px (z. B. 1440): etwas kleiner */
@media (min-width: 768px) and (max-width: 1599px) {
    .demo-cta { bottom: 52px; gap: 6px; padding: 6px; }
    .demo-cta__btn { padding: 7px 12px; font-size: 12.5px; }
}
@media (max-width: 767px) {
    /* Demo-Knopf mobil 76 px (left 12) – Leiste rechts daneben bis zum rechten Rand */
    .demo-cta { right: 8px; bottom: calc(26px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 104px); gap: 6px; padding: 6px; }
    .demo-cta__btn { padding: 8px 10px; font-size: 12px; }
    .demo-cta__btn--primary i { display: none; }
}
/* Etikett „Faire Rotation“ im grünen Premium-Kasten: deutlich lesbar – helles Bernstein, dunkle Schrift
   (weiße Schrift auf Bernstein hatte nur Kontrast 2,6–3,8 : 1). */
.demo-rotation__tag, html.dark .demo-rotation__tag {
    background: linear-gradient(180deg, #f6cf6a 0%, #e5b04a 100%);
    border-color: #f8dc8e;
    color: #2a2012;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 4px 12px -4px rgba(0, 0, 0, .35);
}
.demo-rotation__tag:hover { filter: brightness(1.05); }
/* Mobil: längerer Text „Jetzt kostenlos registrieren“ passt nicht mehr nebeneinander → Buttons untereinander */
@media (max-width: 767px) {
    .demo-cta { flex-direction: column; align-items: stretch; border-radius: 20px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
    .demo-cta__btn { padding: 7px 10px; }
}
/* „Ausblenden“ deutlicher: Bernstein gefüllt (Demo-Farbe wie Band/Etikett), dunkle Schrift, Schatten; mobil mit Text */
.demo-hide, html.dark .demo-hide {
    padding: 9px 14px;
    border: 1px solid #f8dc8e;
    background: linear-gradient(180deg, #f6cf6a 0%, #e5b04a 100%);
    color: #2a2012;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(168, 105, 29, .7);
    transition: filter .15s, transform .15s, box-shadow .15s;
}
.demo-hide i { font-size: 14px; }
.demo-hide:hover { border-color: #f8dc8e; color: #2a2012; filter: brightness(1.05); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 18px -8px rgba(168, 105, 29, .8); }
.demo-hide:focus-visible { outline: 3px solid rgba(201, 131, 43, .45); outline-offset: 2px; }
@media (max-width: 767px) {
    .demo-hide span { display: inline; }
    .demo-hide { padding: 9px 12px; }
}
/* Kopf: Abzeichen + „Ausblenden“ in Zeile 1, Titel „So sieht Ihre Karte aus“ einzeilig über die volle Breite in Zeile 2 */
body[data-demo-variant="c"] .demo-panel__head {
    display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 12px;
}
body[data-demo-variant="c"] .demo-panel__title { display: contents; }
body[data-demo-variant="c"] .demo-panel__title .demo-badge { grid-column: 1; grid-row: 1; }
body[data-demo-variant="c"] .demo-hide { grid-column: 2; grid-row: 1; }
body[data-demo-variant="c"] .demo-panel__title strong { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; }
/* „Ausblenden“ pulsiert dauerhaft: Bernstein-Ring wächst und blendet aus (wie der Demo-Knopf) */
@keyframes demoHidePulse {
    0%   { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(168, 105, 29, .7), 0 0 0 0 rgba(229, 176, 74, .7); }
    70%  { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(168, 105, 29, .7), 0 0 0 10px rgba(229, 176, 74, 0); }
    100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 6px 14px -6px rgba(168, 105, 29, .7), 0 0 0 0 rgba(229, 176, 74, 0); }
}
.demo-hide, html.dark .demo-hide { animation: demoHidePulse 1.8s ease-out infinite; }
.demo-hide:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
    .demo-hide, html.dark .demo-hide { animation: none; }
}
/* Demo-Abzeichen im Fensterkopf einzeilig: kein Umbruch, etwas engere Laufweite und kompakterer Innenabstand */
body[data-demo-variant="c"] .demo-panel__title .demo-badge {
    white-space: nowrap; font-size: 10.5px; letter-spacing: .04em; padding: 4px 9px; gap: 5px; justify-self: start;
}
body[data-demo-variant="c"] .demo-panel__title .demo-badge .demo-dot { width: 7px; height: 7px; }
body[data-demo-variant="c"] .demo-hide { padding-left: 12px; padding-right: 12px; }
/* „Zu meiner Karte“ unter „Darstellung“, volle Breite und gleiche Höhe wie „Jetzt kostenlos eintragen“ */
.demo-btn--block { width: 100%; box-sizing: border-box; }
.demo-actions .demo-btn--cta { width: 100%; box-sizing: border-box; }
/* Gestrichelter Rahmen um die eigene Karte immer sichtbar – auch bei ausgeblendeter Eingabe */
.expert-card.demo-own-card { outline-style: dashed; outline-width: 3px; outline-color: #c9832b; outline-offset: 4px; }
/* Profilbild-Wechsel: drehender Bernstein-Ring + abgedunkeltes altes Bild, danach weiches Einblenden */
@keyframes demoImgSpin { to { transform: rotate(360deg); } }
@keyframes demoImgReveal { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
.demo-own-card [data-card-part="avatar"]::before {
    content: ''; position: absolute; inset: -7px; z-index: 3; border-radius: 50%;
    border: 4px solid rgba(229, 176, 74, .22); border-top-color: #e5b04a; border-right-color: #c9832b;
    opacity: 0; pointer-events: none; transition: opacity .15s ease;
}
.demo-own-card [data-card-part="avatar"].demo-img-loading::before { opacity: 1; animation: demoImgSpin .7s linear infinite; }
.demo-own-card [data-card-part="avatar"].demo-img-loading img { filter: brightness(.55) saturate(.6); transition: filter .2s ease; }
.demo-own-card [data-card-part="avatar"].demo-img-reveal img { animation: demoImgReveal .45s ease-out both; }
@media (max-width: 767px) {
    .demo-own-card [data-card-part="avatar"]::before { inset: -5px; border-width: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .demo-own-card [data-card-part="avatar"].demo-img-loading::before { animation-duration: 1.6s; }
    .demo-own-card [data-card-part="avatar"].demo-img-reveal img { animation: none; }
}
/* ================= Umschalten Normal <-> Premium: Schimmer + Krone, dann Flug der Karte an den neuen Platz */
.demo-panel.is-busy .demo-seg { opacity: .6; pointer-events: none; }
/* Flug-Kopie */
.demo-ghost { transition: transform .22s ease, box-shadow .22s ease, opacity .16s ease; box-shadow: 0 10px 24px -14px rgba(0,0,0,.4); }
.demo-ghost.is-lifted { transform: scale(1.03); box-shadow: 0 30px 60px -20px rgba(0,0,0,.55), 0 0 0 3px rgba(229,176,74,.7); }
.demo-ghost.is-landing { opacity: 0; }
/* Landung: Premium-Kasten leuchtet, Badge ploppt */
@keyframes demoBoxGlow { 0% { box-shadow: 0 0 0 0 rgba(229,176,74,0); } 30% { box-shadow: 0 0 0 6px rgba(229,176,74,.75), 0 0 40px 8px rgba(229,176,74,.45); } 100% { box-shadow: 0 0 0 0 rgba(229,176,74,0); } }
.demo-box-glow { animation: demoBoxGlow 1.3s ease-out; }
@keyframes demoBadgePop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
.demo-badge-pop { animation: demoBadgePop .6s cubic-bezier(.3,1.4,.5,1); }
/* Kroenung: goldener Schimmer quer ueber die Karte + fallende Krone */
.expert-card.demo-shimmer::after {
    content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
    background: linear-gradient(110deg, transparent 30%, rgba(246,207,106,.65) 48%, rgba(255,240,200,.9) 52%, rgba(246,207,106,.65) 56%, transparent 70%);
    background-size: 250% 100%; animation: demoShimmer .9s ease-in-out forwards;
}
@keyframes demoShimmer { from { background-position: 130% 0; } to { background-position: -30% 0; } }
.demo-crown-drop {
    position: absolute; z-index: 7; top: 10px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(180deg, #f6cf6a, #e5b04a); color: #2a2012; font-size: 18px;
    box-shadow: 0 10px 22px -8px rgba(168,105,29,.9); animation: demoCrownDrop .55s cubic-bezier(.3,1.4,.5,1) both;
}
@keyframes demoCrownDrop { from { transform: translate(-50%, -40px) scale(.4) rotate(-20deg); opacity: 0; } to { transform: translate(-50%, 0) scale(1) rotate(0); opacity: 1; } }
/* Mobil, Eingabe-Sheet offen: Leiste mittig direkt über dem Sheet (volle Breite, Buttons nebeneinander) */
@media (max-width: 767px) {
    body.demo-cta-above-sheet .demo-cta {
        left: 8px; right: 8px; bottom: var(--demo-cta-bottom, 70vh); max-width: none;
        flex-direction: row; justify-content: center; border-radius: 999px; z-index: 71;
    }
    body.demo-cta-above-sheet .demo-cta__btn { flex: 1 1 auto; }
}
/* Mobil: Leiste kleiner (Schrift, Innenabstände); über dem Sheet nur so breit wie nötig, mittig */
@media (max-width: 767px) {
    .demo-cta { gap: 4px; padding: 4px; }
    .demo-cta__btn { padding: 5px 9px; font-size: 11px; }
    body.demo-cta-above-sheet .demo-cta { width: fit-content; margin-inline: auto; gap: 4px; padding: 4px; }
    body.demo-cta-above-sheet .demo-cta__btn { flex: 0 0 auto; }
}

/* Demo-Kennzeichnung: Schild neben dem Logo + festes Eck-Band oben rechts, immer sichtbar (Bernstein-Töne). */
:root {
    --dmk-amber: #c9832b;
    --dmk-amber-dark: #a8691d;
    --dmk-amber-light: #f2c97a;
    --dmk-gold: #e5b04a;
    --dmk-ink: #2a2012;
}
/* ------------------------------------------------ Eck-Band (Grundform) */
.demo-ribbon {
    position: fixed;
    top: 0;
    right: 0;
    width: 170px;
    height: 170px;
    overflow: hidden;
    pointer-events: none; /* Klicks gehen durch – Navbar-Knopf darunter bleibt bedienbar */
    z-index: 80;
}
.demo-ribbon__band {
    position: absolute;
    top: 42px;
    right: -66px;
    width: 260px;
    transform: rotate(45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    font-family: 'Outfit', 'Inter', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .45);
}
.demo-ribbon__main { font-size: 15px; font-weight: 800; letter-spacing: .32em; line-height: 1; padding-left: .32em; }
.demo-ribbon__sub { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .18em; margin-top: 4px; opacity: .9; }
/* ------------------------------------------------ Schild neben dem Logo (Grundform) */
.nv-left { display: flex; align-items: center; }
.demo-navtag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 14px;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    user-select: none;
}
/* ------------------------------------------------ Dunkelmodus: Kontraste gleich lassen, nur Schatten kräftiger */
html.dark .demo-ribbon__band { box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .8); }
/* ------------------------------------------------ Mobil: kleineres Band, Schild kompakt */
@media (max-width: 767px) {
    .demo-ribbon { width: 104px; height: 104px; }
    .demo-ribbon__band { top: 22px; right: -54px; width: 190px; padding: 6px 0; }
    .demo-ribbon__main { font-size: 11px; letter-spacing: .26em; }
    .demo-navtag { margin-left: 8px; font-size: 10px; letter-spacing: .14em; }
}
/* Mobil: Band unter der Navigationsleiste ansetzen, damit es das Menü-Symbol (nv-burger) nicht verdeckt;
   Schild schmaler, damit es nicht ans Menü-Symbol stößt. */
@media (max-width: 767px) {
    .demo-ribbon { top: 76px; }
    .demo-navtag { margin-left: 6px; font-size: 9px; letter-spacing: .1em; }
}
@media (max-width: 400px) {
    /* Platz für das Schild: Schriftzug minimal kleiner, fester Abstand zum Menü-Symbol */
    .nv-brand svg:last-child { height: .92rem; }
    .nv-left { margin-right: 10px; }
}
/* Band mit Kolben-Symbol + „DEMO · Beispieldaten“, Navbar-Schild im selben Design (Bernstein-Verlauf, gestrichelte Naht, weiße Schrift). */
body[data-demo-mark="5"] .demo-ribbon { width: 190px; height: 190px; }
body[data-demo-mark="5"] .demo-ribbon__band, body[data-demo-mark="5"] .demo-navtag {
    background: linear-gradient(180deg, var(--dmk-amber) 0%, var(--dmk-amber-dark) 100%);
    color: #fff;
}
body[data-demo-mark="5"] .demo-ribbon__band {
    top: 46px;
    right: -64px;
    width: 280px;
    padding: 9px 0 8px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .15), 0 6px 18px -6px rgba(0, 0, 0, .45);
}
body[data-demo-mark="5"] .demo-ribbon__band::before, body[data-demo-mark="5"] .demo-ribbon__band::after, body[data-demo-mark="5"] .demo-navtag::before, body[data-demo-mark="5"] .demo-navtag::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    border-top: 1px dashed rgba(255, 255, 255, .5);
}
body[data-demo-mark="5"] .demo-ribbon__band::before, body[data-demo-mark="5"] .demo-navtag::before { top: 3px; }
body[data-demo-mark="5"] .demo-ribbon__band::after, body[data-demo-mark="5"] .demo-navtag::after { bottom: 3px; }
body[data-demo-mark="5"] .demo-ribbon__main { display: inline-flex; align-items: center; gap: 8px; }
body[data-demo-mark="5"] .demo-ribbon__main i { font-size: 13px; letter-spacing: 0; }
body[data-demo-mark="5"] .demo-navtag {
    position: relative;
    overflow: hidden;
    gap: 7px;
    padding: 8px 12px 8px 11px;
    border-radius: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 4px 12px -4px rgba(201, 131, 43, .7);
    letter-spacing: .2em;
}
body[data-demo-mark="5"] .demo-navtag::before, body[data-demo-mark="5"] .demo-navtag::after { left: 4px; right: 4px; }
body[data-demo-mark="5"] .demo-navtag i { font-size: 12px; letter-spacing: 0; }
.demo-navtag__sub { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .14em; opacity: .92; }
@media (max-width: 767px) {
    body[data-demo-mark="5"] .demo-ribbon { width: 104px; height: 104px; }
    body[data-demo-mark="5"] .demo-ribbon__band { top: 22px; right: -54px; width: 190px; padding: 6px 0; }
    body[data-demo-mark="5"] .demo-ribbon__main { font-size: 11px; gap: 6px; }
    body[data-demo-mark="5"] .demo-ribbon__main i { font-size: 10px; }
    body[data-demo-mark="5"] .demo-ribbon__sub { display: none; }
    body[data-demo-mark="5"] .demo-navtag { padding: 5px 7px 5px 7px; gap: 5px; letter-spacing: .1em; }
    body[data-demo-mark="5"] .demo-navtag i { font-size: 9px; }
    .demo-navtag__sub { display: none; }
}
/* /demo2: Eingabe startet eingeklappt. Knopf = grüner Kreis mit Stift (Bernstein-Schein) + weiße Sprechblase
   „Jetzt ausprobieren“ daneben; beides springt leicht (Vorschau design-previews/demo2-knopf, Variante B). */
@keyframes demoTryBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
body[data-demo-page="demo2"][data-demo-variant="c"] .demo-handle {
    width: auto; height: auto; padding: 0; flex-direction: row; align-items: center; gap: 14px;
    border-radius: 0; background: none; box-shadow: none;
    animation: demoTryBounce 1.6s ease-in-out infinite;
}
body[data-demo-page="demo2"][data-demo-variant="c"] .demo-handle:hover { animation-play-state: paused; }
body[data-demo-page="demo2"] .demo-handle__dot {
    flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%;
    background: var(--dm-moss-2); color: #fff; font-size: 30px;
    animation: demoHandleGlow 2.2s ease-in-out infinite;
}
body[data-demo-page="demo2"] .demo-handle__bubble {
    position: relative; display: flex; flex-direction: column; align-items: flex-start;
    padding: 10px 14px; border-radius: 14px; background: #fff; color: #1c1a15;
    font: 800 15px/1.2 'Inter', sans-serif; white-space: nowrap; text-align: left;
    box-shadow: var(--dm-shadow), 0 0 0 1px rgba(28, 26, 21, .08);
}
body[data-demo-page="demo2"] .demo-handle__bubble::before {
    content: ""; position: absolute; left: -7px; top: 50%; width: 14px; height: 14px; border-radius: 3px;
    background: #fff; transform: translateY(-50%) rotate(45deg);
}
body[data-demo-page="demo2"] .demo-handle__bubble small { font-size: 11.5px; font-weight: 600; color: #5b5547; margin-top: 2px; }
@media (min-width: 768px) {
    /* Registrieren-Leiste auf Höhe der Kreismitte, rechts neben der Sprechblase */
    body[data-demo-page="demo2"] .demo-cta { bottom: 43px; max-width: calc(100vw - 400px); }
}
@media (max-width: 767px) {
    body[data-demo-page="demo2"][data-demo-variant="c"] .demo-handle { gap: 10px; transition: bottom .25s ease; }
    body[data-demo-page="demo2"] .demo-handle__dot { width: 64px; height: 64px; font-size: 22px; }
    body[data-demo-page="demo2"] .demo-handle__bubble { padding: 8px 11px; font-size: 13.5px; }
    body[data-demo-page="demo2"] .demo-handle__bubble small { font-size: 10.5px; }
    /* Knopf ist breiter als die Leiste Platz lässt → sobald die Leiste erscheint, rückt er darüber */
    body[data-demo-page="demo2"].demo-cta-on[data-demo-variant="c"] .demo-handle { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
    body[data-demo-page="demo2"] .demo-handle__dot { animation: none; box-shadow: 0 0 0 5px rgba(229, 176, 74, 1), 0 0 18px 6px rgba(242, 201, 122, .6); }
}
/* /demo2: „Jetzt kostenlos registrieren“ mit Glas-Schimmer, der von links nach rechts über den Knopf läuft */
@keyframes demoGlassSweep { 0% { transform: translateX(-120%) skewX(-20deg); } 25%, 100% { transform: translateX(260%) skewX(-20deg); } }
body[data-demo-page="demo2"] .demo-cta__btn--primary { position: relative; overflow: hidden; isolation: isolate; }
body[data-demo-page="demo2"] .demo-cta__btn--primary::after {
    content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
    animation: demoGlassSweep 6s ease-in-out infinite; /* Durchlauf ca. 1,5 s, danach 4,5 s Pause */
}
@media (prefers-reduced-motion: reduce) {
    body[data-demo-page="demo2"][data-demo-variant="c"] .demo-handle,
    body[data-demo-page="demo2"] .demo-cta__btn--primary::after { animation: none; }
    body[data-demo-page="demo2"] .demo-cta__btn--primary::after { display: none; }
}
