/* Aventorian Academy — Mein Profil (blauer Premium-Weltraum-Look, eigenständig vom Lime-Dashboard) */
@font-face { font-family: "Space Grotesk"; src: url("assets/fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg0: #01030a;
  --bg1: #040a1f;
  --bg2: #071433;
  --ink: #eef3ff;
  --muted: #b3c2e2;
  --faint: #8c9dc4;
  --line: rgba(150, 185, 255, .16);
  --line-strong: rgba(150, 195, 255, .32);
  --glass: linear-gradient(165deg, rgba(26, 46, 104, .62), rgba(6, 11, 30, .84));
  --accent: #6fb2ff;
  --accent-2: #8a7dff;
  --ok: #3ee89b;
  --warn: #ffb454;
  --bad: #ff6b7d;
  --focus: #a9d6ff;
  --radius: 22px;
  --primary: #4f8cff;
  --glow: #7cc4ff;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", "Inter", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.pf-body {
  margin: 0; min-height: 100vh; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55;
  background: var(--bg0); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.pf-skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: #0b1a3d; color: var(--ink); text-decoration: none; border: 1px solid var(--line-strong); }
.pf-skip:focus { top: 12px; }

/* ——— Weltraum ——— */
.pf-space {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 18% -8%, rgba(34, 84, 196, .55), transparent 62%),
    radial-gradient(ellipse 60% 50% at 96% 18%, rgba(76, 52, 190, .38), transparent 60%),
    radial-gradient(ellipse 90% 70% at 50% 120%, rgba(18, 60, 150, .5), transparent 60%),
    linear-gradient(180deg, #050d28 0%, #030819 45%, #01030a 100%);
}
.pf-nebula { position: absolute; border-radius: 50%; opacity: .5; will-change: transform, opacity; }
.pf-nebula--a { width: 46vw; height: 46vw; left: -12vw; top: 18vh; background: radial-gradient(circle, rgba(56, 120, 255, .45), rgba(56, 120, 255, .12) 40%, transparent 70%); animation: pf-neb 34s ease-in-out infinite alternate; }
.pf-nebula--b { width: 38vw; height: 38vw; right: -10vw; top: 44vh; background: radial-gradient(circle, rgba(120, 80, 255, .38), rgba(120, 80, 255, .1) 40%, transparent 70%); animation: pf-neb 42s ease-in-out infinite alternate-reverse; }
.pf-nebula--c { width: 30vw; height: 30vw; left: 40vw; top: -12vh; background: radial-gradient(circle, rgba(40, 200, 255, .24), rgba(40, 200, 255, .06) 40%, transparent 70%); animation: pf-neb 50s ease-in-out infinite alternate; }
@keyframes pf-neb { from { transform: translate(0, 0) scale(1); opacity: .38; } to { transform: translate(4vw, -3vh) scale(1.12); opacity: .6; } }
.pf-stars-wrap { position: absolute; left: 0; right: 0; top: -12vh; bottom: -12vh; will-change: transform; }
.pf-stars { position: absolute; left: 0; top: 0; width: 100%; height: calc(100% + var(--tile, 800px)); background-repeat: repeat; background-size: var(--tile, 800px) var(--tile, 800px); will-change: transform; animation: pf-drift var(--dur, 200s) linear infinite; }
@keyframes pf-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, calc(var(--tile, 800px) * -1), 0); } }
.pf-stars--far { --tile: 480px; --dur: 200s; opacity: .7; }
.pf-stars--mid { --tile: 640px; --dur: 120s; opacity: .85; }
.pf-stars--near { --tile: 820px; --dur: 70s; animation-name: pf-drift, pf-twinkle; animation-duration: var(--dur), 7s; animation-timing-function: linear, ease-in-out; animation-iteration-count: infinite, infinite; animation-direction: normal, alternate; }
@keyframes pf-twinkle { from { opacity: .75; } to { opacity: 1; } }
.pf-shooting { position: absolute; top: 12vh; right: -10vw; width: 160px; height: 1.5px; border-radius: 2px; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(190,225,255,.95)); opacity: 0; transform: translate3d(0,0,0) rotate(-24deg); animation: pf-shoot 16s ease-in 5s infinite; }
@keyframes pf-shoot { 0% { opacity: 0; transform: translate3d(0,0,0) rotate(-24deg); } 2% { opacity: 1; } 7% { opacity: 0; transform: translate3d(-55vw, 24vw, 0) rotate(-24deg); } 100% { opacity: 0; transform: translate3d(-55vw, 24vw, 0) rotate(-24deg); } }
.pf-horizon { position: absolute; left: -20%; right: -20%; bottom: -78vh; height: 100vh; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgba(90, 160, 255, .22), rgba(8, 20, 60, .2) 30%, transparent 60%); box-shadow: 0 -1px 0 rgba(140, 200, 255, .22), 0 -30px 120px rgba(60, 130, 255, .18); }

/* ——— Kopfzeile ——— */
.pf-top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1320px; margin: 0 auto; padding: 18px 28px; }
.pf-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 10px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); background: rgba(12, 22, 50, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: color .2s, border-color .2s, transform .2s; }
.pf-back svg { width: 18px; height: 18px; }
.pf-back:hover { color: var(--ink); border-color: var(--line-strong); transform: translateX(-2px); }
.pf-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pf-brand img { border-radius: 9px; box-shadow: 0 0 20px rgba(80, 150, 255, .35); }
.pf-brand span { display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-size: 15px; }
.pf-brand small { font-family: var(--mono); font-weight: 500; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 3px; }
.pf-top-user { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 999px; background: rgba(12, 22, 50, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); max-width: 240px; }
.pf-top-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ——— Hero ——— */
.pf-hero { position: relative; max-width: 1320px; margin: 0 auto; padding: 34px 28px 46px; }
.pf-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #a8ccff; }
.pf-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #7cc4ff; box-shadow: 0 0 12px #7cc4ff; animation: pf-blip 2.4s ease-in-out infinite; }
@keyframes pf-blip { 0%, 100% { opacity: .45; transform: scale(.85); } 50% { opacity: 1; transform: scale(1.15); } }
.pf-hero h1 { margin: 0; max-width: 16ch; font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.pf-grad { background: linear-gradient(100deg, #cfe6ff 0%, #7cc4ff 30%, #7a8cff 62%, #c9a8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-lead { max-width: 58ch; margin: 18px 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); }
.pf-sweep { position: absolute; left: 50%; bottom: 8px; width: 100vw; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(140, 190, 255, .16) 20%, rgba(140, 190, 255, .16) 80%, transparent); overflow: hidden; }
.pf-sweep::after { content: ""; position: absolute; top: -1px; left: 0; width: 34%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, rgba(160, 215, 255, .2) 30%, #eaf6ff 50%, rgba(160, 215, 255, .2) 70%, transparent); box-shadow: 0 0 18px rgba(140, 200, 255, .9); opacity: 0; transform: translateX(-110%); animation: pf-sweep 2.1s cubic-bezier(.55, .08, .3, 1) .45s 1 forwards; }
@keyframes pf-sweep { 0% { opacity: 0; transform: translateX(-110%); } 8% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(310%); } }

/* ——— Layout ——— */
.pf-layout { position: relative; z-index: 2; max-width: 1320px; margin: 0 auto; padding: 0 28px 70px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 460px); grid-template-areas: "editor preview"; gap: 34px; align-items: start; }
.pf-editor { grid-area: editor; min-width: 0; outline: none; }
.pf-preview { grid-area: preview; position: sticky; top: 22px; min-width: 0; display: grid; gap: 18px; }
#pf-form { display: grid; gap: 16px; }

/* ——— Glas-Panels ——— */
.pf-panel { position: relative; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 4, 20, .45), inset 0 1px 0 rgba(200, 225, 255, .08); overflow: hidden; }
.pf-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, rgba(120, 180, 255, .1), transparent 30%); opacity: 0; transition: opacity .35s; }
.pf-panel.is-open::before { opacity: 1; }
.pf-panel-h { margin: 0; font-size: inherit; }
.pf-panel-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; cursor: pointer; text-align: left; border-radius: var(--radius); }
.pf-panel-btn:focus-visible { outline-offset: -3px; }
.pf-panel-num { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: #bfe0ff; background: rgba(60, 110, 220, .18); border: 1px solid rgba(120, 180, 255, .3); box-shadow: 0 0 18px rgba(80, 150, 255, .18), inset 0 0 12px rgba(120, 190, 255, .12); }
.pf-panel.is-open .pf-panel-num { color: #04102a; background: linear-gradient(140deg, #bfe2ff, #6fa8ff); border-color: transparent; box-shadow: 0 0 22px rgba(110, 180, 255, .55); }
.pf-panel-title { flex: 1; min-width: 0; display: flex; flex-direction: column; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.pf-panel-title small { font-family: var(--font); font-weight: 500; font-size: 13px; letter-spacing: 0; color: var(--faint); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-chev { width: 22px; height: 22px; color: var(--faint); transition: transform .35s cubic-bezier(.3, .7, .2, 1); }
.pf-panel.is-open .pf-chev { transform: rotate(180deg); color: var(--ink); }
.pf-panel-body { padding: 4px 20px 22px; }
.pf-panel-body:not([hidden]) { animation: pf-open .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes pf-open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ——— Felder ——— */
.pf-field + .pf-field { margin-top: 18px; }
.pf-field > label, .pf-sublabel { display: block; margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #c4d4f2; }
.pf-input-wrap { position: relative; display: flex; align-items: center; gap: 8px; border-radius: 16px; background: rgba(3, 8, 24, .66); border: 1px solid var(--line-strong); transition: border-color .25s, box-shadow .25s; }
.pf-input-wrap:focus-within { border-color: rgba(140, 200, 255, .75); box-shadow: 0 0 0 4px rgba(100, 170, 255, .16), 0 0 28px rgba(90, 160, 255, .22); }
.pf-input-wrap--user[data-state="ok"], .pf-input-wrap--user[data-state="own"] { border-color: rgba(62, 232, 155, .55); }
.pf-input-wrap--user[data-state="taken"] { border-color: rgba(255, 107, 125, .6); }
.pf-input-wrap--user[data-state="invalid"] { border-color: rgba(255, 180, 84, .6); }
.pf-at { padding-left: 16px; font-family: var(--mono); font-weight: 700; color: #8fc3ff; }
.pf-input-wrap input, .pf-input-wrap textarea { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: none; padding: 14px 16px 14px 0; font-size: 17px; color: var(--ink); }
.pf-input-wrap textarea { padding: 14px 16px; resize: vertical; min-height: 92px; line-height: 1.5; }
.pf-input-wrap input::placeholder, .pf-input-wrap textarea::placeholder { color: #7f90b6; }
.pf-user-status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; background: rgba(140, 160, 200, .1); color: #b9c6e2; transition: background .3s, color .3s; }
.pf-pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pf-pulse-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; opacity: 0; }
.pf-user-status[data-state="ok"], .pf-user-status[data-state="own"] { color: var(--ok); background: rgba(62, 232, 155, .12); }
.pf-user-status[data-state="taken"] { color: var(--bad); background: rgba(255, 107, 125, .12); }
.pf-user-status[data-state="invalid"] { color: var(--warn); background: rgba(255, 180, 84, .12); }
.pf-user-status[data-state="checking"] { color: #9fd0ff; background: rgba(120, 180, 255, .12); }
.pf-user-status[data-state="ok"] .pf-pulse-dot::after, .pf-user-status[data-state="own"] .pf-pulse-dot::after, .pf-user-status[data-state="taken"] .pf-pulse-dot::after { animation: pf-ping 1.6s cubic-bezier(0, .5, .5, 1) infinite; }
.pf-user-status[data-state="checking"] .pf-pulse-dot { animation: pf-blip 1s ease-in-out infinite; }
@keyframes pf-ping { 0% { opacity: .75; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
.pf-hint { margin: 8px 2px 0; font-size: 13.5px; color: var(--faint); }
.pf-hint--top { margin: 0 2px 14px; }
.pf-hint code { font-family: var(--mono); font-size: 12.5px; color: #cfe2ff; background: rgba(120, 170, 255, .12); padding: 1px 5px; border-radius: 5px; }
.pf-suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; animation: pf-open .35s ease; }
.pf-suggest-label { font-size: 13.5px; color: var(--muted); }
.pf-suggest-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-suggest-list button { padding: 7px 13px; border-radius: 999px; border: 1px solid rgba(62, 232, 155, .4); background: rgba(62, 232, 155, .08); color: #bff5da; font-family: var(--mono); font-size: 13px; cursor: pointer; transition: transform .2s, background .2s; }
.pf-suggest-list button:hover { transform: translateY(-1px); background: rgba(62, 232, 155, .16); }
.pf-counter { margin: 8px 2px 0; text-align: right; font-family: var(--mono); font-size: 13px; color: var(--faint); transition: color .25s; }
.pf-counter[data-state="warn"] { color: var(--warn); }
.pf-counter[data-state="max"] { color: var(--bad); font-weight: 700; }

/* ——— Avatar-Raster ——— */
.pf-avgrid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; perspective: 900px; }
.pf-avcard { position: relative; border-radius: 20px; cursor: pointer; outline: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.pf-avcard-float { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 6px 11px; border-radius: 20px; background: linear-gradient(160deg, rgba(60, 100, 190, .24), rgba(6, 12, 30, .7)); border: 1px solid rgba(140, 185, 255, .16); box-shadow: 0 14px 30px rgba(0, 4, 20, .45), inset 0 1px 0 rgba(200, 225, 255, .08); animation: pf-float 7s ease-in-out infinite; animation-delay: var(--fd, 0s); transition: border-color .3s, box-shadow .3s, background .3s; }
@keyframes pf-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pf-avcard:hover { transform: translateY(-4px) scale(1.02); }
.pf-avcard:hover .pf-avcard-float { border-color: rgba(150, 200, 255, .45); box-shadow: 0 20px 40px rgba(0, 6, 30, .55), 0 0 26px color-mix(in srgb, var(--glow) 30%, transparent); }
.pf-avcard:focus-visible .pf-avcard-float { outline: 2px solid var(--focus); outline-offset: 3px; }
.pf-avcard-av { display: grid; place-items: center; transition: transform .45s cubic-bezier(.2, .9, .25, 1.2); }
.pf-avcard[aria-checked="true"] .pf-avcard-av { transform: scale(1.08); }
.pf-avcard[aria-checked="true"] .pf-avcard-float { border-color: color-mix(in srgb, var(--glow) 80%, transparent); background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 30%, rgba(10, 20, 50, .6)), rgba(6, 12, 30, .7)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 55%, transparent), 0 0 32px color-mix(in srgb, var(--glow) 45%, transparent), 0 18px 36px rgba(0, 4, 20, .5); }
.pf-avcard-name { font-size: 12.5px; font-weight: 600; color: #c8d6f2; text-align: center; line-height: 1.2; min-height: 2.4em; display: flex; align-items: center; padding: 0 2px; }
.pf-avcard[aria-checked="true"] .pf-avcard-name { color: #fff; }
.pf-avcard-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: #04102a; font-size: 12px; font-weight: 900; box-shadow: 0 0 14px var(--glow); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.pf-avcard[aria-checked="true"] .pf-avcard-check { opacity: 1; transform: scale(1); }
.pf-burst { position: absolute; left: 50%; top: 44%; width: 0; height: 0; pointer-events: none; z-index: 3; }
.pf-burst i { position: absolute; left: -2.5px; top: -2.5px; width: 5px; height: 5px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 8px var(--glow); opacity: 0; animation: pf-burst .75s cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes pf-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-18px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--d, 60px) * -1)) scale(.3); } }

/* ——— Paletten & Picker ——— */
.pf-palettes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pf-chip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px 10px; border-radius: 16px; cursor: pointer; background: rgba(6, 12, 30, .45); border: 1px solid transparent; transition: border-color .25s, background .25s, transform .25s; outline: none; }
.pf-chip:hover { transform: translateY(-2px); background: rgba(20, 36, 80, .45); }
.pf-chip:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-chip-dot { position: relative; width: 38px; height: 38px; border-radius: 50%; background: conic-gradient(from 210deg, var(--c1), var(--c2), var(--c1)); box-shadow: 0 0 16px color-mix(in srgb, var(--c2) 60%, transparent), inset 0 0 0 2px rgba(255, 255, 255, .18); transition: box-shadow .3s, transform .3s; }
.pf-chip:hover .pf-chip-dot { box-shadow: 0 0 26px color-mix(in srgb, var(--c2) 85%, transparent), inset 0 0 0 2px rgba(255, 255, 255, .3); }
.pf-chip[aria-checked="true"] { border-color: color-mix(in srgb, var(--c2) 70%, transparent); background: rgba(20, 40, 90, .5); }
.pf-chip[aria-checked="true"] .pf-chip-dot { transform: scale(1.08); box-shadow: 0 0 0 3px #040a1f, 0 0 0 5px var(--c2), 0 0 30px var(--c2); }
.pf-chip-name { font-size: 12px; font-weight: 600; color: #c8d6f2; text-align: center; line-height: 1.2; }
.pf-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.pf-picker { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: rgba(3, 8, 24, .6); border: 1px solid var(--line-strong); cursor: pointer; transition: border-color .25s; }
.pf-picker:focus-within { border-color: rgba(140, 200, 255, .75); box-shadow: 0 0 0 4px rgba(100, 170, 255, .16); }
.pf-picker-swatch { position: relative; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 18px rgba(120, 180, 255, .35), inset 0 0 0 2px rgba(255, 255, 255, .2); }
.pf-picker-swatch input { position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); border: 0; padding: 0; cursor: pointer; background: none; }
.pf-picker-text { display: flex; flex-direction: column; min-width: 0; }
.pf-picker-text strong { font-size: 14px; }
.pf-picker-text code { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* ——— Hintergründe ——— */
.pf-bggrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pf-bgtile { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 18px; cursor: pointer; outline: none; background: rgba(6, 12, 30, .4); border: 1px solid transparent; transition: transform .25s, border-color .25s, background .25s; }
.pf-bgtile:hover { transform: translateY(-2px); background: rgba(20, 36, 80, .45); }
.pf-bgtile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-bgtile[aria-checked="true"] { border-color: color-mix(in srgb, var(--glow) 70%, transparent); background: rgba(20, 40, 90, .5); box-shadow: 0 0 24px color-mix(in srgb, var(--glow) 30%, transparent); }
.pf-bgtile-name { font-size: 12.5px; font-weight: 600; color: #c8d6f2; }

/* ——— Speichern ——— */
.pf-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pf-save { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-width: 220px; padding: 16px 30px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: #031029; background: linear-gradient(110deg, #d4ecff 0%, #8cc8ff 38%, #6f9dff 100%); box-shadow: 0 10px 30px rgba(70, 140, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7); transition: transform .2s, box-shadow .25s, filter .25s; }
.pf-save:hover { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(70, 140, 255, .6), inset 0 1px 0 rgba(255, 255, 255, .7); }
.pf-save:active { transform: translateY(0); }
.pf-save[disabled] { cursor: progress; filter: saturate(.7); }
.pf-save-glow { position: absolute; top: 0; bottom: 0; left: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-120%) skewX(-20deg); animation: pf-btnsheen 5s ease-in-out 1.5s infinite; }
@keyframes pf-btnsheen { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 90%, 100% { transform: translateX(320%) skewX(-20deg); } }
.pf-save-label { position: relative; }
.pf-dirty { margin: 0; font-size: 14px; color: var(--faint); display: inline-flex; align-items: center; gap: 8px; }
.pf-dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.pf-dirty[data-state="dirty"] { color: #ffd199; }
.pf-dirty[data-state="dirty"]::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.pf-dirty[data-state="local"] { color: #cfe0ff; }
.pf-dirty[data-state="local"]::before { background: #7cc4ff; box-shadow: 0 0 10px #7cc4ff; }
.pf-save-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; font-size: 14.5px; background: rgba(255, 107, 125, .1); border: 1px solid rgba(255, 107, 125, .35); color: #ffd3d9; }
.pf-save-note[data-kind="info"] { background: rgba(120, 180, 255, .1); border-color: rgba(120, 180, 255, .35); color: #d6e8ff; }

/* ——— Holo-Karte (Live-Vorschau) ——— */
.pf-holo-stage { perspective: 1200px; }
.pf-holo { --rx: 0deg; --ry: 0deg; --mx: 50%; position: relative; overflow: hidden; padding: 22px 24px 26px; border-radius: 30px; text-align: center; background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--primary) 26%, transparent), transparent 60%), linear-gradient(170deg, rgba(18, 34, 84, .8), rgba(4, 8, 24, .92)); border: 1px solid color-mix(in srgb, var(--glow) 36%, rgba(150, 190, 255, .2)); box-shadow: 0 40px 90px rgba(0, 4, 24, .6), 0 0 60px color-mix(in srgb, var(--glow) 16%, transparent), inset 0 1px 0 rgba(220, 235, 255, .14); transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.pf-holo.is-tilting { transition: transform .12s linear; }
.pf-holo-sheen { position: absolute; inset: -40%; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(140, 220, 255, .14) 45%, rgba(255, 140, 240, .1) 50%, rgba(140, 255, 220, .08) 54%, transparent 62%); transform: translateX(var(--sx, 0%)); transition: transform .5s ease; mix-blend-mode: screen; }
.pf-holo-grid { position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(140, 190, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 190, 255, .06) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); mask: radial-gradient(ellipse at 50% 30%, #000, transparent 75%); }
.pf-holo-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pf-holo-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #cfe6ff; background: rgba(90, 150, 255, .14); border: 1px solid rgba(130, 190, 255, .28); }
.pf-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5d7a; box-shadow: 0 0 10px #ff5d7a; animation: pf-blip 1.6s ease-in-out infinite; }
.pf-holo-id { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.pf-holo-avatar { --av: 232px; position: relative; display: grid; place-items: center; width: calc(var(--av) + 56px); height: calc(var(--av) + 56px); margin: 10px auto 6px; }
.pf-orbit { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.pf-orbit--a { inset: 4px; border: 1px dashed color-mix(in srgb, var(--glow) 40%, transparent); animation: aav-spin 60s linear infinite; }
.pf-orbit--b { inset: 14px; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); border-top-color: color-mix(in srgb, var(--glow) 90%, transparent); animation: aav-spinr 18s linear infinite; }
.pf-orbit--b::after { content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.pf-big-av { position: relative; z-index: 1; }
.pf-holo-meta { position: relative; }
.pf-holo-name { margin: 6px 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -.03em; word-break: break-all; background: linear-gradient(100deg, #fff, color-mix(in srgb, var(--glow) 70%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-holo-bio { margin: 8px auto 0; max-width: 34ch; min-height: 1.5em; color: #d2def5; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.pf-holo-bio.is-empty { color: #8fa0c6; font-style: italic; }
.pf-holo-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.pf-holo-tags li { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #d5e4ff; background: rgba(100, 150, 255, .12); border: 1px solid rgba(140, 190, 255, .22); }
.pf-holo-tags li:first-child { color: #04102a; background: color-mix(in srgb, var(--glow) 45%, #fff); border-color: transparent; }
.pf-saved-msg { position: absolute; left: 50%; top: 50%; z-index: 4; margin: 0; padding: 10px 18px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 16px; white-space: nowrap; color: #04102a; background: linear-gradient(110deg, #eef8ff, color-mix(in srgb, var(--glow) 40%, #fff)); box-shadow: 0 0 40px color-mix(in srgb, var(--glow) 60%, transparent); opacity: 0; transform: translate(-50%, -50%) scale(.9); pointer-events: none; }
.pf-saved-msg:empty { display: none; }
.pf-saved-msg.is-show { animation: pf-savedmsg 1.15s cubic-bezier(.2, .8, .2, 1) forwards; }
.pf-saved-msg.is-error { color: #fff; background: linear-gradient(110deg, #ff7b8d, #d94a64); box-shadow: 0 0 30px rgba(255, 90, 120, .5); }
@keyframes pf-savedmsg { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.9); } 16% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 76% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.98); } }

/* Speichern-Effekt: Ring lädt auf → Lichtpuls + Funken */
.pf-savefx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.pf-charge i { position: absolute; left: 50%; top: 50%; width: 2px; height: calc(var(--av) * .05); margin: calc(var(--av) * -.025) 0 0 -1px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 6px var(--glow); opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--av) * -.575)); }
.pf-savefx.is-charging .pf-charge i { animation: pf-tick .18s ease-out forwards; animation-delay: var(--d); }
.pf-savefx.is-burst .pf-charge i { opacity: 1; animation: pf-tickout .5s ease-out .15s forwards; }
@keyframes pf-tick { from { opacity: 0; } to { opacity: 1; } }
@keyframes pf-tickout { from { opacity: 1; } to { opacity: 0; } }
.pf-pulse { position: absolute; left: 50%; top: 50%; width: calc(var(--av) * 1.04); height: calc(var(--av) * 1.04); margin: calc(var(--av) * -.52) 0 0 calc(var(--av) * -.52); border-radius: 50%; border: 2px solid var(--glow); box-shadow: 0 0 30px var(--glow), inset 0 0 30px color-mix(in srgb, var(--glow) 60%, transparent); opacity: 0; }
.pf-savefx.is-burst .pf-pulse { animation: pf-pulse .7s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes pf-pulse { 0% { opacity: .95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
.pf-sparks i { position: absolute; left: 50%; top: 50%; width: 2px; height: calc(var(--av) * .07); margin-left: -1px; border-radius: 2px; background: linear-gradient(#fff, var(--glow)); opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--av) * -.56)); }
.pf-savefx.is-burst .pf-sparks i { animation: pf-spark .65s cubic-bezier(.15, .7, .3, 1) forwards; animation-delay: var(--d); }
@keyframes pf-spark { 0% { opacity: 1; transform: rotate(var(--a)) translateY(calc(var(--av) * -.56)) scaleY(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--av) * -.86)) scaleY(.3); } }
.pf-savefx.is-fade .pf-charge i, .pf-savefx.is-fade .pf-sparks i { display: none; }

/* ——— Mini-Vorschauen ——— */
.pf-minis { display: grid; gap: 12px; padding: 18px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); }
.pf-minis-title { margin: 0 0 2px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pf-mini { display: grid; gap: 8px; }
.pf-mini-label { font-size: 12px; font-weight: 700; color: var(--faint); }
.pf-fakenav { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 14px; background: #101218; border: 1px solid rgba(255, 255, 255, .1); }
.pf-fakenav-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #d7f36a; color: #101218; font-weight: 900; font-size: 13px; }
.pf-fakenav-links { flex: 1; display: flex; gap: 8px; }
.pf-fakenav-links i { height: 6px; width: 34px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.pf-fakenav-user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; color: #f4f3ef; }
.pf-fakenav-user span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.pf-comment { display: flex; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(4, 9, 26, .7); border: 1px solid var(--line); text-align: left; }
.pf-comment-body { min-width: 0; }
.pf-comment-head { margin: 0; font-size: 14px; color: var(--faint); }
.pf-comment-head strong { color: var(--ink); word-break: break-all; }
.pf-comment-text { margin: 3px 0 6px; font-size: 14px; color: #d8e3f8; }
.pf-comment-actions { display: flex; gap: 14px; margin: 0; font-size: 12.5px; color: var(--faint); }
.pf-minis--inline { display: none; margin-bottom: 18px; }

/* ——— Fußzeile ——— */
.pf-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; max-width: 1320px; margin: 0 auto; padding: 24px 28px 40px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.pf-foot a { color: var(--muted); }

/* ——— Responsiv ——— */
@media (max-width: 1180px) {
  .pf-layout { grid-template-columns: minmax(0, 1fr) minmax(340px, 400px); gap: 26px; }
  .pf-avgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pf-holo-avatar { --av: 196px; }
}
@media (max-width: 900px) {
  .pf-top { padding: 14px 16px; }
  .pf-brand small { display: none; }
  .pf-top-user { display: none; }
  .pf-hero { padding: 16px 16px 26px; }
  .pf-lead { font-size: 15.5px; }
  .pf-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "preview" "editor"; gap: 18px; padding: 0 14px 50px; }
  .pf-preview { position: sticky; top: 0; z-index: 20; margin: 0 -14px; padding: 8px 14px 10px; background: linear-gradient(180deg, rgba(3, 8, 24, .97) 0%, rgba(3, 8, 24, .9) 80%, rgba(3, 8, 24, 0) 100%); }
  .pf-preview > .pf-minis { display: none; }
  .pf-minis--inline { display: grid; }
  .pf-holo { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 22px; text-align: left; transform: none !important; }
  .pf-holo-head, .pf-holo-tags, .pf-orbit--a { display: none; }
  .pf-holo-avatar { --av: 76px; margin: 0; width: calc(var(--av) + 16px); height: calc(var(--av) + 16px); }
  .pf-orbit--b { inset: 0; }
  .pf-holo-name { margin: 0; font-size: 20px; }
  .pf-holo-bio { margin: 2px 0 0; font-size: 13.5px; max-width: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
  .pf-saved-msg { font-size: 14px; padding: 8px 14px; }
  .pf-panel-btn { padding: 15px 14px; gap: 12px; }
  .pf-panel-body { padding: 2px 14px 18px; }
  .pf-avgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pf-palettes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pf-bggrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .pf-pickers { grid-template-columns: 1fr; }
  .pf-save { width: 100%; }
  .pf-input-wrap--user { flex-wrap: wrap; }
  .pf-foot { padding: 20px 16px 32px; }
}
@media (max-width: 420px) {
  .pf-chip-name, .pf-bgtile-name { font-size: 11px; }
  .pf-avcard-name { font-size: 11.5px; }
  .pf-user-status { font-size: 12px; padding: 5px 9px; }
}

/* ——— Reduzierte Bewegung ——— */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pf-body *, .pf-body *::before, .pf-body *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .pf-stars, .pf-nebula, .pf-shooting, .pf-orbit, .pf-avcard-float, .pf-save-glow, .pf-eyebrow-dot, .pf-live-dot { animation: none !important; }
  .pf-sweep::after { display: none; }
  .pf-holo { transform: none !important; }
  .pf-saved-msg.is-show { animation: pf-fadeonly 1.2s linear forwards !important; animation-duration: 1.2s !important; }
  @keyframes pf-fadeonly { 0% { opacity: 0; transform: translate(-50%, -50%); } 15%, 80% { opacity: 1; transform: translate(-50%, -50%); } 100% { opacity: 0; transform: translate(-50%, -50%); } }
}

/* Eingebettet im Member-Dashboard (iframe, Klasse von profil.html gesetzt): ohne eigene Kopf- und Fußzeile */
.pf-embed .pf-top, .pf-embed .pf-foot { display: none; }
