/* Wishlist – vizuální identita „papírová krabička“
   Barvy: teplý papír, korálová (primární), šalvějová (volné/úspěch), fialová (rezervace), zlatá (priorita). */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/fraunces-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/static/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbf8f4;
  --bg-2: #f4eee6;
  --surface: #ffffff;
  --surface-2: #faf6f1;
  --text: #1f1a17;
  --muted: #6b625b;
  --line: #e9e1d7;
  --line-strong: #d9cdbf;
  --primary: #e2553f;
  --primary-strong: #c8432f;
  --primary-soft: #fde9e4;
  --on-primary: #ffffff;
  --accent: #3e7c6b;
  --accent-soft: #e3f1ec;
  --reserved: #6d5bd0;
  --reserved-soft: #ece9fb;
  --gold: #e5a400;
  --gold-soft: #fff4d6;
  --danger: #c2372b;
  --danger-soft: #fdeae7;
  --warn: #a15c00;
  --warn-soft: #fff1dc;
  --image-bg: #ffffff;
  --shadow-sm: 0 1px 2px rgba(60, 40, 20, .06), 0 1px 1px rgba(60, 40, 20, .04);
  --shadow: 0 2px 4px rgba(60, 40, 20, .05), 0 8px 24px -8px rgba(60, 40, 20, .14);
  --shadow-lg: 0 4px 8px rgba(60, 40, 20, .06), 0 22px 48px -16px rgba(60, 40, 20, .28);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 180ms;
  --container: 1120px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #16131a;
  --bg-2: #1c1821;
  --surface: #211d26;
  --surface-2: #29242f;
  --text: #f3eee9;
  --muted: #b2a9a1;
  --line: #36303d;
  --line-strong: #4a4253;
  --primary: #ff7a63;
  --primary-strong: #ff8f7b;
  --primary-soft: #3a2420;
  --on-primary: #2a0f0a;
  --accent: #79c6b0;
  --accent-soft: #1d332d;
  --reserved: #a597ff;
  --reserved-soft: #2a2545;
  --gold: #ffc53d;
  --gold-soft: #3a3018;
  --danger: #ff8a7d;
  --danger-soft: #3d1f1c;
  --warn: #ffb766;
  --warn-soft: #3b2a14;
  --image-bg: #f6f3ef;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 6px 12px rgba(0, 0, 0, .3), 0 24px 56px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16131a;
    --bg-2: #1c1821;
    --surface: #211d26;
    --surface-2: #29242f;
    --text: #f3eee9;
    --muted: #b2a9a1;
    --line: #36303d;
    --line-strong: #4a4253;
    --primary: #ff7a63;
    --primary-strong: #ff8f7b;
    --primary-soft: #3a2420;
    --on-primary: #2a0f0a;
    --accent: #79c6b0;
    --accent-soft: #1d332d;
    --reserved: #a597ff;
    --reserved-soft: #2a2545;
    --gold: #ffc53d;
    --gold-soft: #3a3018;
    --danger: #ff8a7d;
    --danger-soft: #3d1f1c;
    --warn: #ffb766;
    --warn-soft: #3b2a14;
    --image-bg: #f6f3ef;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 2px 4px rgba(0, 0, 0, .25), 0 10px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 6px 12px rgba(0, 0, 0, .3), 0 24px 56px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ základ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .4em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--primary-soft); }
[hidden] { display: none !important; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 640px; margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--surface); padding: .6rem 1rem; border-radius: var(--radius-xs); box-shadow: var(--shadow); }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.success-text { color: var(--accent); }
.warn-text { color: var(--warn); }
.error-text { color: var(--danger); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-strong); margin-bottom: .4rem; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; fill: none; stroke: currentColor; }
:root .only-dark { display: none; }
:root[data-theme="dark"] .only-dark { display: inline; }
:root[data-theme="dark"] .only-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: inline; }
  :root:not([data-theme="light"]) .only-light { display: none; }
}

/* ------------------------------------------------------------------ tlačítka */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-border: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.05rem;
  border: 1px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t) var(--ease), background var(--t), box-shadow var(--t), border-color var(--t), color var(--t);
}
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn--disabled { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn--primary { --btn-bg: var(--primary); --btn-fg: var(--on-primary); --btn-border: transparent; box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn--primary:hover { --btn-bg: var(--primary-strong); border-color: transparent; box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--primary) 90%, transparent); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-border: transparent; }
:root[data-theme="dark"] .btn--accent { --btn-fg: #0d221c; }
.btn--accent:hover { border-color: transparent; filter: brightness(1.05); }
.btn--success { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-border: transparent; }
.btn--ghost { --btn-bg: transparent; }
.btn--ghost:hover { --btn-bg: var(--surface-2); }
.btn--danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-border: transparent; }
.btn--danger:hover { border-color: transparent; filter: brightness(1.06); }
.btn--danger-text { color: var(--danger); }
.btn--block { width: 100%; }
.btn--sm { min-height: 36px; padding: .35rem .8rem; font-size: .875rem; }
.btn--icon { padding: 0; width: 44px; }
.btn--icon.btn--sm { width: 36px; }
.btn--ghost.btn--icon { border-color: transparent; }
.btn--ghost.btn--icon:hover { border-color: var(--line); }
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ formuláře */
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field__label { font-weight: 600; font-size: .9rem; }
.field__help { font-size: .82rem; color: var(--muted); }
input[type=text], input[type=password], input[type=url], input[type=date], input[type=number], input[type=email], textarea, select {
  width: 100%; min-height: 46px; padding: .65rem .9rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: 400 1rem/1.4 var(--font-body);
  transition: border-color var(--t), box-shadow var(--t);
}
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }
input[type=file] { font: inherit; font-size: .9rem; color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: 600 .875rem var(--font-body); padding: .5rem .9rem; margin-right: .75rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.input-with-btn { display: flex; gap: .4rem; }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.input-prefix > span { display: flex; align-items: center; padding: 0 .2rem 0 .85rem; color: var(--muted); font-size: .95rem; }
.input-prefix input { border: 0; min-width: 0; padding-left: .15rem; }
.input-prefix:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.input-prefix input:focus { box-shadow: none; }
.row-2, .row-3 { display: grid; gap: 1rem; }
@media (min-width: 640px) { .row-2 { grid-template-columns: 1fr 1fr; } .row-3 { grid-template-columns: 1.3fr 1fr 1.4fr; } }
.check { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .95rem; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.form-error { display: flex; align-items: flex-start; gap: .5rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-weight: 500; margin: 0 0 1rem; }
.form-error .icon { margin-top: .15em; }
.form-card { padding: clamp(1.25rem, 3vw, 2rem); }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-head h1 { margin: 0; font-size: 1.6rem; }

.radio-cards { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.radio-card { position: relative; display: flex; gap: .6rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); cursor: pointer; transition: border-color var(--t), background var(--t); }
.radio-card input { margin-top: .25rem; accent-color: var(--primary); }
.radio-card span { display: flex; flex-direction: column; }
.radio-card small { color: var(--muted); font-size: .8rem; }
.radio-card:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.switch { display: flex; align-items: flex-start; gap: .85rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { flex: none; position: relative; width: 46px; height: 28px; margin-top: 2px; border-radius: 999px; background: var(--line-strong); transition: background var(--t); }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--t) var(--ease); }
.switch input:checked + .switch__track { background: var(--primary); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid color-mix(in srgb, var(--primary) 70%, transparent); outline-offset: 2px; }
.switch > span:last-child { display: flex; flex-direction: column; }
.switch small { font-size: .85rem; }

.copy-field { display: flex; gap: .5rem; align-items: center; }
.copy-field input { flex: 1; min-width: 0; background: var(--surface-2); }

/* ------------------------------------------------------------------ karty, štítky */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 650; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge .icon { width: 1em; height: 1em; }
.badge--available { background: var(--accent-soft); color: var(--accent); }
.badge--reserved { background: var(--reserved-soft); color: var(--reserved); }
.badge--purchased { background: var(--surface-2); color: var(--muted); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0 0 1rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; font-weight: 550; }
.chips--sm .chip { padding: .25rem .65rem; font-size: .8rem; }
.chip--free { color: var(--accent); }
.chip--reserved { color: var(--reserved); }
.chip--warn { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.chip--vis-hidden { color: var(--muted); }

.stars { display: inline-flex; align-items: center; gap: .35rem; }
.stars__icons { display: inline-flex; gap: 1px; }
.star { width: .95em; height: .95em; color: var(--line-strong); }
.star.on { color: var(--gold); fill: var(--gold); }
.stars__label { font-size: .82rem; font-weight: 600; color: var(--muted); }
.stars.p3 .stars__label { color: var(--primary-strong); }

/* spoiler štít: v admin konzoli skryje stavy rezervací */
.spoiler .status, .spoiler .chip--reserved { visibility: hidden; }
.spoiler .row-item.item--reserved { opacity: 1; }
:root .spoiler-on { display: none; }
:root.spoiler .spoiler-on { display: inline; }
:root.spoiler .spoiler-off { display: none; }
:root.spoiler [data-spoiler-toggle] { color: var(--primary-strong); background: var(--primary-soft); }

/* ------------------------------------------------------------------ flash / toast */
.flash { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; margin: 1rem 0; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); font-weight: 550; animation: pop-in .35s var(--ease); transition: opacity .6s, transform .6s; }
.flash span { flex: 1; }
.flash--error { background: var(--danger-soft); color: var(--danger); }
.flash.is-fading { opacity: .0; transform: translateY(-4px); pointer-events: none; height: 0; padding: 0; margin: 0; overflow: hidden; transition: opacity .5s, height .5s .3s, padding .5s .3s, margin .5s .3s; }
.flash__close { background: none; border: 0; color: inherit; cursor: pointer; padding: .25rem; border-radius: 6px; display: inline-flex; }
.toasts { position: fixed; z-index: 60; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: min(92vw, 420px); }
.toast { padding: .7rem 1.1rem; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s var(--ease), transform .25s var(--ease); text-align: center; }
.toast.is-in { opacity: 1; transform: none; }
.toast--error { background: var(--danger); color: #fff; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ prázdné stavy, chyby */
.empty-state { text-align: center; padding: 3rem 1rem; max-width: 520px; margin: 0 auto; }
.empty-state--page { padding-top: 5rem; }
.empty-state__art { display: inline-grid; place-items: center; width: 84px; height: 84px; margin-bottom: 1.2rem; border-radius: 28px; background: var(--primary-soft); color: var(--primary-strong); transform: rotate(-6deg); box-shadow: var(--shadow); }
.empty-state__art .icon { width: 40px; height: 40px; }
.empty-state p { color: var(--muted); }

/* ------------------------------------------------------------------ patička */
.site-footer { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 2.5rem 1rem calc(2rem + env(safe-area-inset-bottom)); color: var(--muted); font-size: .88rem; }
.site-footer > span { display: inline-flex; align-items: center; gap: .4rem; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }

/* ------------------------------------------------------------------ odemknutí / login */
.unlock-wrap { display: grid; place-items: center; padding: clamp(1.5rem, 6vh, 5rem) 1rem; }
.page-unlock, .page-login { background:
  radial-gradient(1000px 500px at 10% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
  radial-gradient(800px 500px at 110% 10%, color-mix(in srgb, var(--reserved) 14%, transparent), transparent 60%),
  var(--bg); }
.unlock { width: min(100%, 440px); overflow: hidden; box-shadow: var(--shadow-lg); animation: rise .5s var(--ease); }
.unlock__cover { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.unlock__art { display: grid; place-items: center; height: 150px; color: var(--on-primary); background:
  radial-gradient(circle at 30% 20%, rgba(255,255,255,.35), transparent 40%),
  linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 50%, var(--reserved))); }
.unlock__art .icon { width: 64px; height: 64px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.2)); animation: wiggle 3.2s ease-in-out infinite; }
.unlock__body { padding: 1.6rem 1.6rem 1.8rem; }
.unlock__body h1 { font-size: 1.8rem; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(7deg); } 95% { transform: rotate(-4deg); } }

/* ------------------------------------------------------------------ veřejná stránka */
.hero { position: relative; overflow: hidden; color: var(--text); padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem); background:
  radial-gradient(900px 380px at 0% 0%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 65%),
  radial-gradient(700px 380px at 100% 20%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 60%),
  radial-gradient(600px 300px at 60% 120%, color-mix(in srgb, var(--reserved) 16%, transparent), transparent 70%),
  var(--bg-2); }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40px; background: linear-gradient(to bottom, transparent, var(--bg)); }
.hero--cover { color: #fff; min-height: clamp(260px, 42vw, 420px); display: flex; align-items: flex-end; }
.hero--cover::after { display: none; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: zoom 18s ease-out both; }
.hero--cover::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20, 12, 8, .82), rgba(20, 12, 8, .25) 55%, rgba(20, 12, 8, .05)); }
@keyframes zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__inner { position: relative; z-index: 2; animation: rise .55s var(--ease); }
.hero__kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(8px); font-weight: 650; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-strong); }
.hero--cover .hero__kicker { background: rgba(255, 255, 255, .18); color: #fff; }
.hero__title { font-size: clamp(2.1rem, 1.3rem + 4vw, 3.6rem); font-weight: 700; margin: .6rem 0 .3rem; max-width: 20ch; text-wrap: balance; }
.hero--cover .hero__title { text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.hero__date { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; margin: .3rem 0 0; opacity: .92; }

.intro { padding: 1.5rem 0 .5rem; }
.intro__desc { font-size: 1.1rem; max-width: 65ch; color: var(--text); white-space: pre-line; }
.intro__how { display: flex; gap: .5rem; align-items: flex-start; max-width: 70ch; }
.intro__how .icon { margin-top: .2em; color: var(--primary); }

.mine { padding: 1.1rem 1.25rem; margin: 0 0 1.5rem; border-color: color-mix(in srgb, var(--reserved) 35%, var(--line)); background: linear-gradient(0deg, var(--surface), color-mix(in srgb, var(--reserved-soft) 60%, var(--surface))); }
.mine__head { display: flex; align-items: center; gap: .6rem; }
.mine__head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.15rem; color: var(--reserved); }
.mine__list { margin: .6rem 0; padding-left: 1.3rem; }
.mine__list a { color: var(--text); }
.mine__link summary { cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; font-weight: 600; font-size: .9rem; color: var(--reserved); }
.mine__link p { margin: .5rem 0; }

.toolbar { position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; align-items: center; padding: .75rem 0; margin-bottom: .5rem; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.segmented { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.segmented__btn { min-height: 38px; padding: .3rem 1rem; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .9rem var(--font-body); cursor: pointer; transition: background var(--t), color var(--t); }
.segmented__btn.is-active { background: var(--text); color: var(--bg); }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap .icon { position: absolute; left: .8rem; color: var(--muted); pointer-events: none; }
.select-wrap select { padding-left: 2.3rem; min-height: 44px; border-radius: 999px; width: auto; }

.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.item { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease), opacity .25s; animation: rise .5s var(--ease) both; }
.item:nth-child(2) { animation-delay: 40ms; } .item:nth-child(3) { animation-delay: 80ms; } .item:nth-child(4) { animation-delay: 120ms; }
.item:nth-child(5) { animation-delay: 160ms; } .item:nth-child(n+6) { animation-delay: 200ms; }
@media (hover: hover) { .item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }
.item:target { box-shadow: 0 0 0 3px var(--primary), var(--shadow-lg); }
.item__media { position: relative; aspect-ratio: 4 / 3; background: var(--image-bg); border-bottom: 1px solid var(--line); }
.item__media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .4s var(--ease); }
@media (hover: hover) { .item:hover .item__media img { transform: scale(1.04); } }
.item__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: color-mix(in srgb, var(--primary) 55%, transparent); background:
  radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--primary-soft) 90%, transparent), transparent 60%),
  radial-gradient(circle at 70% 80%, color-mix(in srgb, var(--gold-soft) 90%, transparent), transparent 60%), var(--surface-2); }
.item__placeholder .icon { width: 56px; height: 56px; }
.item__badges { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; justify-content: space-between; gap: .5rem; }
.item__badges .stars { padding: .3rem .5rem; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.item__badges .star:not(.on) { color: #d9cfc3; }
.item__badges .badge { box-shadow: var(--shadow-sm); }
.item__badges .stars:only-child { margin-right: auto; }
.item__body { padding: 1rem 1.1rem .25rem; flex: 1; }
.item__meta { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-bottom: .35rem; }
.item__meta .stars__icons { display: none; }
.item__shop, .dot { font-size: .82rem; color: var(--muted); }
.item__title { font-family: var(--font-body); font-size: 1.05rem; font-weight: 650; line-height: 1.35; margin: 0 0 .35rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.item__price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin: 0 0 .4rem; font-variant-numeric: tabular-nums; }
.item__note { display: flex; gap: .4rem; align-items: flex-start; font-size: .9rem; padding: .45rem .65rem; border-radius: var(--radius-xs); background: var(--gold-soft); color: color-mix(in srgb, var(--text) 85%, var(--gold)); }
.item__note .icon { margin-top: .2em; flex: none; }
.item__desc summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--muted); }
.item__desc p { font-size: .9rem; color: var(--muted); margin-top: .4rem; white-space: pre-line; }
.item__actions { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.1rem 1.1rem; }
.item__actions > * { flex: 1 1 auto; }
.item__actions .btn { width: 100%; }
.item--reserved .item__media, .item--purchased .item__media { filter: saturate(.55); }
.item--purchased { opacity: .72; }
.item--mine { border-color: color-mix(in srgb, var(--reserved) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--reserved) 30%, transparent), var(--shadow-sm); }
.item--mine .item__media { filter: none; }
.mine-actions { display: flex; flex-direction: column; gap: .5rem; width: 100%; }
.reserve { width: 100%; }
.reserve > summary { list-style: none; width: 100%; }
.reserve > summary::-webkit-details-marker { display: none; }
.reserve[open] > summary { --btn-bg: var(--surface-2); --btn-fg: var(--text); --btn-border: var(--line-strong); box-shadow: none; }
.reserve__form { margin-top: .8rem; padding: .9rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); animation: pop-in .25s var(--ease); }
.reserve__form .small { display: flex; gap: .4rem; align-items: flex-start; margin: 0; }
.reserve__form .small .icon { margin-top: .15em; }
.empty-filter { text-align: center; padding: 2rem 0; }

/* ------------------------------------------------------------------ admin */
.topbar { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand .icon { width: 34px; height: 34px; padding: 6px; border-radius: 11px; background: var(--primary); color: var(--on-primary); transform: rotate(-6deg); transition: transform .3s var(--ease); }
.brand:hover .icon { transform: rotate(4deg) scale(1.05); }
.topbar__nav { display: flex; align-items: center; gap: .35rem; }
.topbar__nav form { display: contents; }
.page-admin main { padding-top: 1.5rem; padding-bottom: 4rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.page-head h1 { margin: 0; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: 1rem; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.back-link:hover { color: var(--text); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2rem 0 .8rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; display: flex; align-items: center; gap: .3rem; }

.wl-grid { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.wl-card { overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.wl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.wl-card__link { display: block; color: inherit; text-decoration: none; }
.wl-card__cover { aspect-ratio: 16 / 7; background:
  radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--primary) 35%, transparent), transparent 55%),
  radial-gradient(circle at 85% 70%, color-mix(in srgb, var(--gold) 35%, transparent), transparent 55%), var(--bg-2); display: grid; place-items: center; overflow: hidden; }
.wl-card__cover img { width: 100%; height: 100%; object-fit: cover; }
.wl-card__art .icon { width: 48px; height: 48px; color: var(--primary-strong); transform: rotate(-8deg); }
.wl-card__body { padding: 1rem 1.1rem 1.1rem; }
.wl-card__title { font-size: 1.25rem; margin: 0 0 .15rem; }
.wl-card__body .chips { margin: .7rem 0 0; }
.wl-card--archived { opacity: .7; }
.archive-section summary { cursor: pointer; display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; color: var(--muted); margin: 1rem 0; }

.wl-head { display: flex; gap: 1.25rem; padding: 1.25rem; align-items: stretch; flex-wrap: wrap; }
.wl-head__cover { width: 180px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); }
.wl-head__body { flex: 1; min-width: min(100%, 280px); }
.wl-head__title { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.wl-head__title h1 { margin: 0 0 .5rem; }
.copy-field--link { flex-wrap: wrap; }
.copy-field--link input { flex: 1 1 240px; }

.add-card { padding: clamp(1rem, 3vw, 1.5rem); margin-top: 1.25rem; border-style: dashed; border-width: 1.5px; border-color: var(--line-strong); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.add-card h2 { display: flex; align-items: center; gap: .5rem; }
.url-row { display: flex; gap: .6rem; align-items: flex-end; }
.url-row .btn { flex: none; }
.add-fields { display: flex; gap: 1.25rem; align-items: flex-start; }
.add-preview { flex: none; width: 150px; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--image-bg); border: 1px solid var(--line); overflow: hidden; animation: pop-in .3s var(--ease); }
.add-preview img { width: 100%; height: 100%; object-fit: contain; padding: .5rem; }
.more-fields > summary, .import > summary { cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--muted); display: inline-flex; align-items: center; gap: .4rem; }
.more-fields[open] > summary { margin-bottom: 1rem; }
.more-fields > summary .icon { transition: transform .2s ease; }
.more-fields[open] > summary .icon { transform: rotate(45deg); }
.more-fields > summary:hover, .import > summary:hover { color: var(--text); }
.import { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.import[open] > summary { margin-bottom: 1rem; }

.sortable { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.row-item { display: flex; align-items: center; gap: .75rem; padding: .6rem .8rem .6rem .35rem; transition: box-shadow .2s, transform .2s var(--ease), background .2s; }
.row-item:target { box-shadow: 0 0 0 3px var(--primary); }
.drag-handle { flex: none; display: grid; place-items: center; width: 36px; height: 52px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: grab; touch-action: none; }
.drag-handle:hover { background: var(--surface-2); color: var(--text); }
.drag-handle:active { cursor: grabbing; }
.row-item__thumb { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--radius-xs); background: var(--image-bg); border: 1px solid var(--line); overflow: hidden; color: var(--primary); }
.row-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.row-item__main { flex: 1; min-width: 0; }
.row-item__title { display: block; font-weight: 650; color: var(--text); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-item__title:hover { color: var(--primary-strong); }
.row-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; margin: .2rem 0 0; font-size: .85rem; color: var(--muted); }
.row-item__price { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.row-item__shop { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .2rem; }
.row-item__shop .icon { width: .9em; height: .9em; }
.row-item.item--purchased { opacity: .65; }
.row-item.is-ghost { opacity: .35; background: var(--primary-soft); border-style: dashed; }
.row-item.is-chosen { box-shadow: var(--shadow-lg); transform: scale(1.01); }
.row-item.is-dragging { opacity: .95; }
.row-item__actions { display: flex; align-items: center; gap: .15rem; }
.move { display: flex; gap: .1rem; }
.prio { display: flex; gap: 0; }
.prio__star { display: grid; place-items: center; width: 34px; height: 40px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--line-strong); border-radius: 8px; transition: transform .15s var(--ease), color .15s; }
.prio__star:hover { transform: scale(1.18); color: var(--gold); }
.prio__star.on { color: var(--gold); }
.prio__star.on .icon { fill: var(--gold); }
.prio__star .icon { width: 20px; height: 20px; }

.edit-layout { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 900px) { .edit-layout { grid-template-columns: minmax(0, 1fr) 320px; } }
.side-card { padding: 1.25rem; }
.side-card h2 { font-size: 1.1rem; margin: 0; }
.side-card .small { margin: -.4rem 0 0; }
.side-card--danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.image-field__row { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; }
.image-field__preview { flex: none; display: grid; place-items: center; width: 120px; height: 120px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--image-bg); overflow: hidden; color: var(--muted); }
.image-field__preview img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.image-field__preview .icon { width: 36px; height: 36px; }
.cover-preview { border-radius: var(--radius-sm); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.share { text-align: center; align-items: stretch; }
.share__art { align-self: center; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; background: var(--accent-soft); color: var(--accent); transform: rotate(-6deg); }
.share__art .icon { width: 36px; height: 36px; }
.share .field { text-align: left; }

/* ------------------------------------------------------------------ mobil */
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .url-row { flex-direction: column; align-items: stretch; }
  .add-fields { flex-direction: column; align-items: stretch; }
  .add-preview { width: 100%; max-width: 220px; align-self: center; }
  .row-item { flex-wrap: wrap; padding: .55rem .6rem .55rem .2rem; gap: .5rem .6rem; }
  .row-item__thumb { width: 54px; height: 54px; }
  .row-item__main { flex-basis: calc(100% - 110px); }
  .prio { margin-left: 42px; }
  .row-item__actions { margin-left: auto; }
  .toolbar { gap: .5rem; }
  .segmented { flex: 1 1 100%; }
  .segmented__btn { flex: 1; padding: .3rem .5rem; }
  .select-wrap { flex: 1 1 100%; }
  .select-wrap select { width: 100%; }
  .wl-head__cover { width: 100%; }
  .topbar__inner { min-height: 58px; }
  .brand span { font-size: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
