/* Linktree-Seite – alle Werte kommen als CSS-Variablen aus page.js (Konfiguration) */
:root {
  --accent: #e9a7bf; --accent2: #f6d8c3; --accent-rgb: 233 167 191; --accent-contrast: #15121a;
  --text: #fff; --text-rgb: 255 255 255;
  --bg-color: #120610; --blur: 22px; --bright: .7; --sat: 1.15; --overlay: rgba(0,0,0,.35);
  --gap: 12px; --maxw: 420px; --btn-h: 58px; --radius: 18px; --offset-top: 8; --avatar: 116px;
  --font-display: 'Playfair Display', Georgia, serif; --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { background: var(--bg-color); -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }
body {
  color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; min-height: 100vh; min-height: 100dvh;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: rgb(var(--accent-rgb) / .35); }

/* ---------- Hintergrund ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--bg-color); contain: strict; }
.bg-media {
  position: absolute; inset: calc(var(--blur) * -1.6);
  transform: translate3d(var(--bgx, 0px), var(--bgy, 0px), 0) scale(1.03);
  will-change: transform;
}
.bg-poster, .bg-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  filter: blur(var(--blur)) brightness(var(--bright)) saturate(var(--sat));
  transform: translateZ(0);
}
.bg-video { opacity: 0; transition: opacity 1.2s ease; }
.bg.playing .bg-video { opacity: 1; }
.bg.playing .bg-poster { visibility: hidden; transition: visibility 0s linear 1.4s; }
.bg-poster[hidden], .bg-video[hidden] { display: none; }
.bg-scrim { position: absolute; inset: 0; background: var(--overlay); }
.bg-scrim::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 62%, rgba(0,0,0,.45) 100%);
}
.bg-vignette { position: absolute; inset: 0; display: none; background: radial-gradient(ellipse 80% 70% at 50% 45%, transparent 50%, rgba(0,0,0,.55) 100%); }
html.vignette .bg-vignette { display: block; }
.bg-grain { position: absolute; inset: 0; display: none; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
html.grain .bg-grain { display: block; }

/* ---------- Layout (Mobile first) ---------- */
.stage {
  position: relative; z-index: 1;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: calc(var(--offset-top) * 1vh + env(safe-area-inset-top, 0px) + 28px) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  max-width: 100%;
}
.profile { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: var(--maxw); }
html.align-left .profile { align-items: flex-start; text-align: left; }

.avatar-wrap { position: relative; padding: 3px; border-radius: 50%; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); }
/* statische "Aura" in der Akzentfarbe hinter dem Profilbild (kein Filter, keine Animation) */
html.glow .avatar-wrap::before { content: ""; position: absolute; inset: -45%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgb(var(--accent-rgb) / .30), rgb(var(--accent-rgb) / .08) 45%, transparent 68%); }
html.no-ring .avatar-wrap { background: transparent; padding: 0; }
.avatar { display: block; width: var(--avatar); height: var(--avatar); object-fit: cover; border-radius: 50%;
  border: 3px solid rgba(8,6,10,.55); background: rgba(255,255,255,.1); }
html.no-ring .avatar { border-color: rgba(255,255,255,.18); }
html.glow .avatar-wrap { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 60px -10px rgb(var(--accent-rgb) / .55); }
html.avatar-squircle .avatar-wrap, html.avatar-squircle .avatar { border-radius: 32%; }
html.avatar-rounded .avatar-wrap, html.avatar-rounded .avatar { border-radius: 22%; }
.avatar-wrap[hidden] { display: none; }

.name { font-family: var(--font-display); font-weight: 600; font-size: clamp(27px, 7.2vw, 34px); line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.handle { display: inline-flex; align-items: center; gap: .5em; margin: 6px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .72; }
.handle svg { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
.handle a { display: inline-flex; align-items: center; gap: .5em; color: inherit; text-decoration: none; }
@media (hover: hover) { .handle a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.bio { margin: 12px 0 0; font-size: 15px; line-height: 1.5; opacity: .85; max-width: 38ch; text-wrap: pretty; white-space: pre-line; }
.handle:empty, .bio:empty { display: none; }

.card { width: 100%; max-width: var(--maxw); margin-top: 26px; position: relative; }
.card-inner { position: relative; }
.links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--gap); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: rgba(255,255,255,.10); --btn-border: rgba(255,255,255,.18); --btn-text: var(--text);
  --btn-shadow: 0 10px 30px -8px rgba(0,0,0,.45);
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: var(--btn-h); padding: 10px 54px; border-radius: var(--radius);
  font-weight: 600; font-size: 15.5px; line-height: 1.25; letter-spacing: .01em; text-decoration: none;
  color: var(--btn-text); background: var(--btn-bg); border: 1px solid var(--btn-border); box-shadow: var(--btn-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: transform .3s var(--ease), background-color .25s, border-color .25s, box-shadow .3s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; overflow: hidden; isolation: isolate; user-select: none;
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
}
/* Mit Badge: rechts Platz für die gemessene Badge-Breite (--pr wird von page.js gesetzt), links symmetrisch für zentrierten Text */
.btn.has-badge { padding-left: 64px; padding-right: max(64px, var(--pr, 64px)); }
html.text-left .btn.has-badge { padding-left: 56px; }
html.no-icons .btn.has-badge { padding-left: 24px; padding-right: max(64px, var(--pr, 64px)); }
@media (hover: hover) { .btn:hover { transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 2px), 0); --btn-bg: rgba(255,255,255,.17); } }
.btn:active { transform: scale(.985); transition-duration: .08s; }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; display: grid; place-items: center; opacity: .95; }
.btn .ico svg { width: 20px; height: 20px; fill: currentColor; }
.btn .lbl { display: block; text-align: center; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn .badge { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; background: rgb(var(--accent-rgb) / .22); border: 1px solid rgb(var(--accent-rgb) / .4); color: inherit; white-space: nowrap; }
.btn.highlight .badge { background: rgba(0,0,0,.14); border-color: rgba(0,0,0,.12); }
html.text-left .btn { justify-content: flex-start; padding-left: 56px; }
html.text-left .btn .lbl { text-align: left; }
html.no-icons .btn .ico { display: none; }
html.no-icons .btn { padding-left: 24px; padding-right: 24px; }
html.no-border .btn { --btn-border: transparent; }
html.no-shadow .btn { --btn-shadow: none; }

/* Varianten (global + pro Button) */
:where(html.variant-solid) .btn, .btn.v-solid { --btn-bg: #ffffff; --btn-text: #15121a; --btn-border: rgba(255,255,255,.6); }
@media (hover: hover) { :where(html.variant-solid) .btn:hover, .btn.v-solid:hover { --btn-bg: #f2eff3; } }
:where(html.variant-outline) .btn, .btn.v-outline { --btn-bg: transparent; --btn-border: rgb(var(--text-rgb) / .55); --btn-shadow: none; }
@media (hover: hover) { :where(html.variant-outline) .btn:hover, .btn.v-outline:hover { --btn-bg: rgb(var(--text-rgb) / .08); } }
:where(html.variant-gradient) .btn, .btn.v-gradient { --btn-bg: linear-gradient(120deg, var(--accent), var(--accent2)); --btn-text: var(--accent-contrast); --btn-border: rgba(255,255,255,.25); }
@media (hover: hover) { :where(html.variant-gradient) .btn:hover, .btn.v-gradient:hover { --btn-bg: linear-gradient(120deg, var(--accent2), var(--accent)); } }
:where(html.variant-soft) .btn, .btn.v-soft { --btn-bg: rgb(var(--accent-rgb) / .2); --btn-border: rgb(var(--accent-rgb) / .38); }
@media (hover: hover) { :where(html.variant-soft) .btn:hover, .btn.v-soft:hover { --btn-bg: rgb(var(--accent-rgb) / .3); } }
:where(html.variant-dark) .btn, .btn.v-dark { --btn-bg: rgba(10,8,12,.55); --btn-border: rgba(255,255,255,.12); }
@media (hover: hover) { :where(html.variant-dark) .btn:hover, .btn.v-dark:hover { --btn-bg: rgba(10,8,12,.7); } }
.btn.v-glass { --btn-bg: rgba(255,255,255,.10); --btn-border: rgba(255,255,255,.18); --btn-text: var(--text); }
@media (hover: hover) { .btn.v-glass:hover { --btn-bg: rgba(255,255,255,.17); } }
.btn.custom { --btn-bg: var(--c-bg); --btn-border: rgba(255,255,255,.18); }
.btn.custom.custom-text { --btn-text: var(--c-text); }

/* Hervorgehobener Button (Haupt-CTA) */
.btn.highlight { --btn-bg: linear-gradient(120deg, var(--accent), var(--accent2)); --btn-text: var(--accent-contrast); --btn-border: rgba(255,255,255,.3);
  --btn-shadow: 0 14px 40px -10px rgb(var(--accent-rgb) / .75), 0 4px 14px -6px rgba(0,0,0,.4); }
.btn.highlight::after { content: ""; position: absolute; top: -60%; bottom: -60%; left: -30%; width: 40%; transform: skewX(-20deg) translateX(-180%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shine 5.5s var(--ease) infinite; pointer-events: none; }
@keyframes shine { 0%, 72% { transform: skewX(-20deg) translateX(-180%); } 100% { transform: skewX(-20deg) translateX(520%); } }
.btn.highlight.custom { --btn-bg: var(--c-bg); }
html.no-shadow .btn.highlight { --btn-shadow: none; }

/* ---------- Footer ---------- */
.foot { margin-top: auto; padding-top: 34px; font-size: 12px; display: flex; align-items: center; gap: 6px 16px; justify-content: center; flex-wrap: wrap; text-align: center; }
.foot > span, .foot > a:not(.qr) { opacity: .6; }
.foot a:not(.qr) { text-decoration: none; border-bottom: 1px solid rgb(var(--text-rgb) / .35); }
@media (hover: hover) { .foot a:not(.qr):hover { border-color: var(--text); } }
/* QR-Code "Open on your phone": nur am Desktop, in der Fusszeile links neben dem Copyright (Schalter im Admin: theme.qr) */
.foot .qr { display: none; } /* Elementklasse; die html-Klasse heisst has-qr, damit nichts kollidiert */

/* ---------- Toast (nur Vorschau) ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 10px); z-index: 6; padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(20,14,20,.85); border: 1px solid rgba(255,255,255,.15); color: #fff; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 18+ Dialog ---------- */
.gate { border: 0; padding: 0; background: transparent; width: min(92vw, 400px); max-width: 92vw; color: #fff; }
.gate::backdrop { background: rgba(6,4,8,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.gate-box { position: relative; background: rgba(22,14,22,.78); border: 1px solid rgba(255,255,255,.14); border-radius: 26px; padding: 30px 24px 22px; text-align: center;
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%); box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); animation: pop .35s var(--ease); }
.gate-mark { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; margin-bottom: 14px; font-weight: 800; font-size: 19px; letter-spacing: .02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: var(--accent-contrast); box-shadow: 0 16px 40px -10px rgb(var(--accent-rgb) / .7); }
.gate h2 { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0; line-height: 1.15; }
.gate p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; opacity: .8; }
.gate p:empty { display: none; }
.gate .row { display: flex; gap: 10px; margin-top: 22px; }
.gate .row button { flex: 1; min-height: 50px; border-radius: 15px; border: 1px solid rgba(255,255,255,.16); cursor: pointer; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), background-color .2s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .gate .row button:hover { transform: translateY(-1px); } }
.gate .row button:active { transform: scale(.98); }
.gate .row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gate .no { background: rgba(255,255,255,.08); color: #fff; }
.gate .ok { background: linear-gradient(120deg, var(--accent), var(--accent2)); color: var(--accent-contrast); border-color: rgba(255,255,255,.3); }
.gate .hint { margin-top: 12px; font-size: 11.5px; opacity: .5; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
/* Auf Handys als Bottom-Sheet (daumenfreundlich) */
@media (max-width: 599px) {
  .gate { width: 100vw; max-width: 100vw; margin: auto 0 0; }
  .gate-box { border-radius: 28px 28px 0 0; border-bottom: 0; padding: 26px 22px calc(18px + env(safe-area-inset-bottom, 0px)); animation: sheet .4s var(--ease); }
  .gate .row { flex-direction: column-reverse; }
  .gate .row button { min-height: 52px; }
  @keyframes sheet { from { opacity: 0; transform: translateY(40px); } }
}

/* ---------- Admin-Schloss unten rechts (Design: theme.adminLink) ---------- */
.adm { display: none; }
html.has-admin-link .adm { position: absolute; right: 14px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 5; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  color: rgb(var(--text-rgb) / .45); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  text-decoration: none; -webkit-tap-highlight-color: transparent; transition: color .25s, background-color .25s, transform .3s var(--ease); }
.adm svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { html.has-admin-link .adm:hover { color: var(--text); background: rgba(255,255,255,.12); transform: translateY(-1px); } }
.adm:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Handy: eigene Zeile unter der Fusszeile, damit das Schloss keinen Text ueberdeckt */
@media (max-width: 959px) { html.has-admin-link .stage { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 960px) { html.has-admin-link .adm { position: fixed; right: 24px; bottom: 24px; width: 36px; height: 36px; } }

/* ---------- Schutz ---------- */
/* Content-Schutz: kein Markieren, kein Kontext-/Langdruck-Menue, kein Ziehen oder Speichern von Bildern, Videos und Links */
html.protect-copy body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html.protect-copy img, html.protect-copy video, html.protect-copy a, html.protect-copy .xp-card { -webkit-user-drag: none; -webkit-touch-callout: none; }
html.protect-copy input, html.protect-copy textarea { -webkit-user-select: text; user-select: text; }
/* Schwarzer Schild bei Fokusverlust / Druck-Taste / Drucken */
.shield { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: #000; color: #fff; text-align: center; font-family: var(--font-body); cursor: pointer; -webkit-user-select: none; user-select: none; }
html.shielded .shield { display: grid; }
.sh-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 50% 42%, rgb(var(--accent-rgb) / .2), transparent 70%); }
.sh-card { position: relative; max-width: 440px; animation: pop .45s var(--ease) both; }
.sh-icon { width: 86px; height: 86px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 26px 70px -18px rgb(var(--accent-rgb) / .85), 0 0 0 10px rgb(var(--accent-rgb) / .08); }
.sh-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shield h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.01em; }
html.name-italic .shield h2 { font-style: italic; font-weight: 500; }
.shield .sh-text { margin: 14px 0 0; font-size: 15px; line-height: 1.55; opacity: .78; text-wrap: pretty; }
.shield .sh-note { display: inline-flex; align-items: center; gap: 9px; margin: 20px 0 0; padding: 10px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); }
.shield .sh-note[hidden] { display: none; }
.shield .sh-note svg { width: 17px; height: 17px; fill: none; stroke: var(--accent2); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.shield .sh-hint { display: block; margin-top: 26px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .38; }
.shield .sh-hint:empty { display: none; }
@media print { html.protect-shots body > *:not(.shield) { display: none !important; } html.protect-shots .shield { display: grid; position: static; height: 100vh; color: #000; background: #fff; } html.protect-shots .sh-glow, html.protect-shots .sh-hint { display: none; } }

/* ---------- Einblend-Animation ---------- */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 65ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
html.preview .rise { animation: none; }

/* ---------- Desktop ---------- */
.wm { display: none; }
@media (min-width: 960px) {
  .stage { padding: 48px 56px calc(28px + env(safe-area-inset-bottom, 0px)); min-height: 100vh; min-height: 100dvh; }
  .card { margin-top: 28px; }
  .card-inner { padding: 26px; border-radius: 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
    box-shadow: 0 40px 100px -30px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.12); }
  .card-inner::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.12), transparent 42%); opacity: var(--spot, 0); transition: opacity .4s; }
  .card-inner > * { position: relative; z-index: 1; }
  .card { transform: perspective(1400px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)); transform-style: preserve-3d; }
  .btn { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .bg-grain { opacity: .07; mix-blend-mode: overlay; }

}

@media (prefers-reduced-motion: reduce) {
  .rise, .btn.highlight::after { animation: none !important; }
  .btn, .card, .bg-media { transition: none !important; }
  .bg-video { transition: none; }
}
/* ======================================================================
   Verifiziert-Stern, Preview-Abschnitt, Freundinnen-Boxen, Desktop-Raster
   ====================================================================== */
.name { text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.name .verified { display: inline-block; width: .6em; height: .6em; margin-left: .14em; vertical-align: -0.02em; fill: var(--accent); filter: drop-shadow(0 2px 10px rgb(var(--accent-rgb) / .6)); }
.name .verified .tick { fill: none; stroke: var(--accent-contrast); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html.name-italic .name { font-style: italic; font-weight: 500; letter-spacing: 0; }
.bio { text-shadow: 0 1px 2px rgba(0,0,0,.3); }

/* Preview-Abschnitt */
.gallery { width: 100%; max-width: var(--maxw); margin-top: 26px; }
.gallery:empty { display: none; }

/* Reihenfolge der Blöcke (Mobil) */
.stage > .profile { order: 1; } .stage > .gallery { order: 2; } .stage > .card { order: 3; } .stage > .foot { order: 5; }
html.gallery-below .stage > .gallery { order: 4; }

/* Freundinnen-Boxen */
.card { display: flex; flex-direction: column; gap: 14px; }
.promo-slot { display: flex; flex-direction: column; gap: 14px; }
.promo-slot:empty { display: none; }
html.promo-above .promo-slot { order: -1; }
.promo { --p-accent: var(--accent); --p-accent2: var(--accent2); --p-rgb: var(--accent-rgb); --p-ink: #15121a;
  position: relative; display: block; overflow: hidden; border-radius: calc(var(--radius) + 6px); text-decoration: none; color: #fff; isolation: isolate;
  border: 1px solid rgb(var(--p-rgb) / .45); background: rgba(10,8,14,.6);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.75), 0 12px 44px -16px rgb(var(--p-rgb) / .5);
  transition: transform .35s var(--ease), box-shadow .35s; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.promo-bg { position: absolute; inset: 0; z-index: 0; }
.promo-bg img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) blur(16px) brightness(.5) contrast(1.1); transform: scale(1.25); }
.promo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(var(--p-rgb) / .38) 0%, rgb(var(--p-rgb) / .16) 45%, rgba(8,6,12,.62) 100%); }
.promo-in { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; }
.promo-avatar { flex: none; width: 56px; height: 56px; border-radius: 50%; padding: 2px; background: linear-gradient(135deg, var(--p-accent), var(--p-accent2)); box-shadow: 0 10px 30px -10px rgb(var(--p-rgb) / .85); }
.promo-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid rgba(8,6,12,.75); }
.promo-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.promo-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--p-accent2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.promo-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.name-italic .promo-name { font-style: italic; font-weight: 500; }
.promo-sub { font-size: 12.5px; line-height: 1.35; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo-cta { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  background: linear-gradient(120deg, var(--p-accent), var(--p-accent2)); color: var(--p-ink); box-shadow: 0 10px 24px -10px rgb(var(--p-rgb) / .9); }
.promo-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
/* Schmale Bildschirme: CTA nur als Pfeil-Kreis, damit Name und Text Platz haben */
@media (max-width: 479px) { .promo-cta span { display: none; } .promo-cta { width: 42px; height: 42px; padding: 0; justify-content: center; border-radius: 50%; } .promo-cta svg { width: 18px; height: 18px; } .promo-in { gap: 12px; padding: 13px 13px 13px 14px; } .promo-avatar { width: 52px; height: 52px; } }
@media (hover: hover) { .promo:hover { transform: translateY(-2px); box-shadow: 0 30px 70px -24px rgba(0,0,0,.8), 0 16px 54px -14px rgb(var(--p-rgb) / .65); } .promo:hover .promo-cta svg { transform: translateX(3px); } }
.promo:focus-visible { outline: 2px solid var(--p-accent); outline-offset: 3px; }

/* Desktop: Kopfbereich mit Profilbild links und Name rechts daneben, Preview darunter; rechts Buttons + Promo */
@media (min-width: 960px) {
  html.desktop-split .profile { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: clamp(22px, 2.4vw, 36px); align-items: center; align-content: center; text-align: left; max-width: none; }
  html.desktop-split .avatar-wrap { grid-column: 1; grid-row: 1 / span 3; margin: 0; --avatar: clamp(88px, var(--avatar-cfg, 112px), 160px); align-self: center; }
  /* Schriftgroesse des Namens begrenzt durch die Spaltenbreite (Namenslaenge in --wm-len), damit lange Namen nicht in die Karte laufen */
  html.desktop-split .name { grid-column: 2; grid-row: 1; font-size: min(clamp(32px, 3.1vw, 52px), calc((min(100vw, 1240px) - 760px) * 1.7 / var(--wm-len, 12))); line-height: 1.05; max-width: none; letter-spacing: -.015em; white-space: nowrap; align-self: end; }
  html.desktop-split .handle { grid-column: 2; grid-row: 2; margin-top: 10px; font-size: 13.5px; }
  html.desktop-split .bio { grid-column: 2; grid-row: 3; margin-top: 10px; max-width: 46ch; font-size: 16px; }
  html.desktop-split .stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); grid-template-rows: auto auto auto; column-gap: clamp(40px, 6vw, 110px); align-items: center; align-content: center; justify-content: center; max-width: 1240px; margin: 0 auto; }
  html.desktop-split .profile { grid-column: 1; grid-row: 1; align-self: start; }
  html.desktop-split:not(.has-gallery) .profile { align-self: center; }
  html.desktop-split .gallery { grid-column: 1; grid-row: 2; width: 100%; max-width: none; margin-top: 28px; justify-self: start; align-self: start; }
  /* Rechte Spalte: vertikal zentriert, aber nie ueber den Kopfbereich hinaus (safe center = bei Ueberlauf oben anliegen) */
  html.desktop-split .card { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; max-width: none; align-self: start; align-self: safe center; position: relative; z-index: 1; }
  html.desktop-split:not(.has-gallery) .card { align-self: center; }

  html.desktop-split .foot { grid-column: 1 / -1; grid-row: 3; justify-content: center; padding-top: 40px; }
  /* Stapelhoehe an die Fensterhoehe koppeln (Kopfbereich + Footer ~330px) -> kein Scrollen im Vollbild */
  html.desktop-split .xp { width: 100%; margin-inline: 0; --box-w: calc(min(100vw, 1240px) - 112px - clamp(40px, 6vw, 110px) - 440px); --stack-h: max(300px, calc(100vh - 330px)); }
  html.desktop-split .stage { min-height: 100vh; min-height: 100dvh; }

}

/* Hintergrund-Slideshow */
.bg-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity 1.8s ease;
  filter: blur(var(--blur)) brightness(var(--bright)) saturate(var(--sat)); transform: translateZ(0); }
.bg-slide.on { opacity: 1; }
.bg.slides .bg-poster { visibility: hidden; transition: visibility 0s linear 2s; }
/* ======================================================================
   Exclusive Content Preview: gefaecherter Kartenstapel + Slide-to-unlock
   ====================================================================== */
/* Faecher aus genau 3 Karten: links / Mitte / rechts. Kartenbreite max. 56% der Box, damit die aeusseren Karten je ~22% sichtbar bleiben */
.xp { width: 100%; --box-w: min(calc(100vw - 40px), var(--maxw)); --stack-h: min(62vh, 560px); --card-w: min(calc(var(--stack-h) * var(--g-ratio)), calc(var(--box-w) * .56)); }
.xp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 10px; }
.xp-kicker { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--accent2); white-space: nowrap; }
.xp-kicker span { overflow: hidden; text-overflow: ellipsis; }
.xp-kicker svg { width: 14px; height: 14px; fill: var(--accent); filter: drop-shadow(0 0 8px rgb(var(--accent-rgb) / .7)); }
.xp-count { flex: none; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-variant-numeric: tabular-nums; }
.xp-stage { position: relative; height: calc(var(--card-w) / (var(--g-ratio))); width: 100%; isolation: isolate; touch-action: pan-y; }
.xp-stack { position: absolute; inset: 0; }
/* Karten: gleich grosse 9:16-Karten, gleichmaessig ueber die Breite verteilt, hintereinander */
.xp-card { position: absolute; top: 0; height: 100%; width: var(--card-w); margin: 0; left: calc(50% - var(--card-w) / 2 + (var(--i) - (var(--n, 3) - 1) / 2) * (100% - var(--card-w)) / var(--den, 1));
  border-radius: var(--g-radius); overflow: hidden; background: rgba(255,255,255,.05); z-index: 1; transform-origin: 50% 100%;
  transform: scale(.94) translateY(1.5%); filter: brightness(.72) saturate(.9); cursor: pointer;
  transition: transform .5s var(--ease), filter .9s ease, box-shadow .5s var(--ease);
  box-shadow: 0 30px 70px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.1); }
.xp-card[data-i="1"] { z-index: 2; }
.xp-card.is-front { z-index: 3; transform: scale(1) translateY(0); filter: none; box-shadow: 0 40px 90px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.14), 0 24px 70px -30px rgb(var(--accent-rgb) / .6); }
.xp-card img, .xp-card video { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 1s ease, transform 1s ease; }
/* CTA unten auf jeder Karte */
.xp-cta-bar { position: absolute; left: 0; right: 0; top: 60%; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 14px 24px; text-align: center; color: #fff;
  background: linear-gradient(180deg, rgba(8,6,12,0) 0%, rgba(8,6,12,.55) 40%, rgba(8,6,12,.88) 100%);
  opacity: 0; pointer-events: none; transition: opacity .9s ease; }
/* Button nur auf der vorderen Karte, nach 1 s langsam eingeblendet; gesperrt gar nicht sichtbar */
.xp[data-state="open"] .xp-card.is-front .xp-cta-bar { opacity: 1; pointer-events: auto; transition-delay: 1s; }
.xp-cta-bar > svg { width: 16px; height: 16px; fill: var(--accent2); filter: drop-shadow(0 0 10px rgb(var(--accent-rgb) / .8)); }
.xp-cta-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.2; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
html.name-italic .xp-cta-t { font-style: italic; font-weight: 500; }
.xp-cta-btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 12.5px; white-space: nowrap;
  background: linear-gradient(120deg, var(--accent), var(--accent2)); color: var(--accent-contrast); box-shadow: 0 12px 30px -10px rgb(var(--accent-rgb) / .9); transition: transform .25s var(--ease); }
.xp-cta-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) { .xp-cta-btn:hover { transform: translateY(-1px); } }
/* Gesperrt: alle Karten geblurrt, Schieber mittig darueber */
.xp[data-state="locked"] .xp-card { cursor: default; opacity: .88; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.03); }
.xp[data-state="locked"] .xp-card.is-front { opacity: 1; border-color: rgba(255,255,255,.16); }
.xp[data-state="locked"] .xp-card img, .xp[data-state="locked"] .xp-card video { filter: blur(var(--g-blur, 18px)) brightness(.5) saturate(1); transform: scale(1.12); }
.xp[data-state="locked"] .xp-card.is-front { transform: scale(.97) translateY(0); }
.xp[data-state="unlocking"] .xp-card img, .xp[data-state="unlocking"] .xp-card video { filter: none; transform: scale(1); }
.xp.no-anim, .xp.no-anim * { transition: none !important; }
.xp-unlock { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 70; width: min(92%, 360px); display: flex; flex-direction: column; gap: 10px; align-items: stretch;
  transition: opacity .5s ease, transform .5s var(--ease); }
.xp-unlock-t { text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.6); opacity: .9; }
.xp[data-state="unlocking"] .xp-unlock { opacity: 0; transform: translate(-50%, -50%) scale(.96); }
.xp[data-state="open"] .xp-unlock { display: none; }
.xp-slider { position: relative; height: 56px; border-radius: 999px; background: rgba(10,8,14,.55); border: 1px solid rgba(255,255,255,.22); overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -18px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.1); }
.xp-slider:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.xp-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: linear-gradient(90deg, rgb(var(--accent-rgb) / .6), rgb(var(--accent-rgb) / .25)); transition: width .05s linear; }
.xp-slider:not(.dragging) .xp-fill { transition: width .4s var(--ease); }
.xp-hint { position: absolute; inset: 0; display: grid; place-items: center; padding-left: 40px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em;
  background: linear-gradient(90deg, rgba(255,255,255,.55) 0%, #fff 45%, rgba(255,255,255,.55) 60%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 2.6s linear infinite; }
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -20% 0; } }
.xp-done { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; letter-spacing: .04em; color: #fff; }
.xp-done svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xp[data-state="unlocking"] .xp-hint { display: none; }
.xp[data-state="unlocking"] .xp-done { display: flex; }
.xp[data-state="unlocking"] .xp-fill { width: 100% !important; }
.xp-knob { position: absolute; left: 4px; top: 4px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: grab; color: var(--accent-contrast); touch-action: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 26px -8px rgb(var(--accent-rgb) / .9), inset 0 1px 0 rgba(255,255,255,.4); will-change: transform; }
.xp-slider.dragging .xp-knob { cursor: grabbing; }
.xp-slider:not(.dragging) .xp-knob { transition: transform .4s var(--ease); }
.xp-knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-2px); opacity: .85; } 50% { transform: translateX(3px); opacity: 1; } }
.xp[data-state="unlocking"] .xp-knob { transform: translateX(calc(100% + 1000px)) !important; }
.xp[data-state="unlocking"] .xp-knob svg { animation: none; }
@media (prefers-reduced-motion: reduce) { .xp-hint, .xp-knob svg { animation: none !important; } .xp-card, .xp-card img, .xp-card video, .xp-cta-bar, .xp-unlock, .xp-knob, .xp-fill { transition: none !important; } }

/* Wasserzeichen: Signatur in geschwungener Schrift, rechte Spalte unter den Boxen, unten buendig mit der Preview-Box.
   Position/Groesse/Transparenz kommen aus dem Admin (--wm-x, --wm-y, --wm-scale, --wm-alpha). Grosse Zeilenbox + Innenabstand,
   damit Ober-/Unterlaengen der Script-Schrift innerhalb des Farbverlaufs (background-clip: text) bleiben. */
@media (min-width: 960px) {
  html.watermark .wm { display: block; align-self: center; margin-top: 16px; z-index: 0; text-align: center; pointer-events: none; -webkit-user-select: none; user-select: none;
    font-family: var(--font-wm, 'Great Vibes', cursive); font-weight: 400; line-height: 1.3; letter-spacing: .01em; white-space: nowrap;
    /* Groesse: nach Namenslaenge, maximal 120px, bei niedrigen Fenstern durch die Fensterhoehe begrenzt (Seite soll ohne Scrollen passen) */
    font-size: clamp(34px, min(calc(78vw / var(--wm-len, 12)), calc((100vh - 624px) / 1.75)), 120px);
    opacity: var(--wm-alpha, .6); transform: translate(var(--wm-x, 0%), var(--wm-y, 0px)) scale(var(--wm-scale, 1)); transform-origin: 50% 100%; }
  html.watermark .wm span { display: inline-block; padding: .25em .35em .2em; color: transparent;
    background: linear-gradient(100deg, rgb(var(--accent-rgb) / .95) 0%, rgba(255,255,255,.95) 50%, rgb(var(--accent-rgb) / .95) 100%);
    -webkit-background-clip: text; background-clip: text; filter: drop-shadow(0 0 22px rgb(var(--accent-rgb) / .5)); }
}

@media (min-width: 960px) {
  /* Chip fest unten links; Klick oeffnet die Grossansicht */
  html.has-qr .qr { position: fixed; left: 24px; bottom: 24px; z-index: 5; display: inline-flex; align-items: center; gap: 12px; padding: 6px 14px 6px 6px; border-radius: 16px; text-decoration: none; color: inherit; cursor: pointer;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.7); transition: background-color .25s, transform .3s var(--ease); }
  html.has-qr .qr:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
  html.has-qr .qr:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .qr .code { width: 58px; height: 58px; border-radius: 11px; background: #fff; padding: 5px; display: grid; place-items: center; flex: none; }
  .qr .code svg { width: 100%; height: 100%; display: block; }
  .qr .t { font-size: 12px; line-height: 1.3; text-align: left; opacity: .8; max-width: 160px; }
  .qr .t b { display: block; font-size: 13px; font-weight: 600; opacity: 1; color: var(--text); }
  /* Platz fuer den Chip unter der Preview-Box: Stapel etwas kuerzer, damit nichts ueberlappt und nichts scrollt */
  html.has-qr.desktop-split .xp { --stack-h: max(300px, calc(100vh - 362px)); }
}
/* QR-Grossansicht */
/* nativer <dialog>: Fokusfalle, Escape und oberste Ebene kommen vom Browser */
.qr-modal { position: fixed; inset: 0; z-index: 80; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; border: 0; color: #fff; place-items: center; padding: 24px; background: rgba(6,4,8,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .25s; }
.qr-modal[open] { display: grid; }
.qr-modal::backdrop { background: transparent; }
.qr-modal.show { opacity: 1; }
.qm-card { position: relative; width: min(92vw, 380px); padding: 30px 28px 26px; border-radius: 28px; text-align: center; color: #fff; background: rgba(22,14,22,.84); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7); transform: translateY(12px) scale(.97); transition: transform .3s var(--ease); }
.qr-modal.show .qm-card { transform: none; }
.qm-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.08); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.qm-close:hover { background: rgba(255,255,255,.16); }
.qm-code { width: 240px; height: 240px; margin: 4px auto 20px; padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 24px 60px -20px rgb(var(--accent-rgb) / .7); }
.qm-code svg { width: 100%; height: 100%; display: block; }
.qm-card h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
html.name-italic .qm-card h2, html.name-italic .gate h2 { font-style: italic; font-weight: 500; }
.qm-card p { margin: 8px 0 0; font-size: 14px; opacity: .75; }
/* Scan erkannt: Animation am Desktop */
.qr-done { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(6,4,8,.55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; transition: opacity .4s; cursor: pointer; color: #fff; }
.qr-done.show { opacity: 1; }
.qd-card { position: relative; z-index: 1; width: min(92vw, 440px); padding: 36px 30px 26px; border-radius: 30px; text-align: center; background: rgba(22,14,22,.8); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgb(var(--accent-rgb) / .25), 0 30px 90px -30px rgb(var(--accent-rgb) / .6); transform: translateY(24px) scale(.94); transition: transform .6s var(--ease); }
.qr-done.show .qd-card { transform: none; }
.qd-phone { width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--accent-contrast);
  background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 24px 60px -16px rgb(var(--accent-rgb) / .9); animation: qdpop .7s var(--ease) both; }
.qd-phone svg { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qd-check { stroke-dasharray: 12; stroke-dashoffset: 12; stroke-width: 2.4; animation: qdcheck .5s .5s var(--ease) forwards; }
.qd-card h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1; }
html.name-italic .qd-card h2 { font-style: italic; font-weight: 500; }
.qd-card p { margin: 10px 0 0; font-size: 15px; line-height: 1.5; opacity: .8; }
.qd-hint { display: block; margin-top: 18px; font-size: 11.5px; opacity: .45; }
.qd-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.qd-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 3px; opacity: 0; background: linear-gradient(135deg, var(--accent), var(--accent2));
  animation: qdburst 1.5s calc(var(--k) * 28ms) var(--ease) both; }
@keyframes qdburst { 0% { opacity: 0; transform: rotate(calc(var(--k) * 20deg)) translateY(0) scale(.4); } 12% { opacity: 1; } 100% { opacity: 0; transform: rotate(calc(var(--k) * 20deg)) translateY(-48vmin) scale(1.1) rotate(230deg); } }
@keyframes qdpop { from { transform: scale(.4); opacity: 0; } }
@keyframes qdcheck { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .qd-burst { display: none; } .qd-phone { animation: none; } .qd-check { animation: none; stroke-dashoffset: 0; } .qr-modal, .qm-card, .qr-done, .qd-card { transition: none; } }

/* Niedrige Desktop-Fenster (Laptops 1366x768, 1280x720): engere Abstaende, damit alles ohne Scrollen passt */
@media (min-width: 960px) and (max-height: 820px) {
  .stage { padding-top: 30px; padding-bottom: 18px; }
  .card-inner { padding: 20px; }
  html.desktop-split .gallery { margin-top: 20px; }
  html.desktop-split .xp { --stack-h: max(300px, calc(100vh - 290px)); }
  html.desktop-split .foot { padding-top: 22px; }
  html.desktop-split .avatar-wrap { --avatar: clamp(80px, calc(var(--avatar-cfg, 112px) * .85), 120px); }
  html.watermark .wm { margin-top: 10px; }
  html.has-qr.desktop-split .xp { --stack-h: max(300px, calc(100vh - 322px)); }
  html.has-qr .qr { left: 16px; bottom: 16px; }
  html.has-qr .qr .code { width: 50px; height: 50px; }
}
@media (min-width: 960px) and (max-height: 640px) { html.watermark .wm { display: none; } }



