:root {
    color-scheme: light;
    --paper: #faf8f5;
    --surface: #fffefb;
    --ink: #103c40;
    --muted: #50686a;
    --petrol: #075456;
    --deep: #003e40;
    --line: #cbd9d5;
    --mist: #e4efec;
    --coral: #ed705e;
    --focus: #136c82;
}
* { box-sizing: border-box; }
body {
    margin: 0; background: var(--paper); color: var(--ink);
    font: 400 1rem/1.55 "Inter Variable", Arial, sans-serif;
    -webkit-font-smoothing: antialiased; overflow-wrap: anywhere;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.032em; font-weight: 690; }
h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); margin-bottom: 1.2rem; }
h2 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h3 { font-size: 1.15rem; }
a, .text-button { color: var(--petrol); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
svg { width: 20px; height: 20px; flex-shrink: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--selection, #bde0dc); }
[hidden] { display: none !important; }
.skip { position: fixed; top: -80px; left: 10px; background: white; padding: 12px; z-index: 5; }
.skip:focus { top: 8px; }
.masthead { border-bottom: 1px solid var(--line); }
.mast-inner, .container, .account-layout {
    max-width: 1176px; margin: auto; padding-inline: clamp(16px, 5vw, 60px);
}
.mast-inner, .overview-head, .section-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.mast-inner { min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 1.4rem; letter-spacing: -.04em; font-weight: 735; }
.actions, .meta, .claim { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.back:hover { text-decoration: underline; }
.text-button { background: none; border: 0; padding: 4px; min-height: 44px; color: #983d3a; text-decoration: underline; }
.container { padding-block: clamp(26px, 4vw, 52px) 72px; }
.overview-head h1, .section-head h1 { margin: 0; }
.collection { margin-top: clamp(28px, 4vw, 44px); }
.collection h2 { margin-bottom: 16px; }
.count { display: inline-block; vertical-align: middle; padding: 2px 8px; border-radius: 12px; margin-left: 4px; color: var(--petrol); background: var(--mist); font: 600 .8rem/1.45 "Inter Variable", sans-serif; letter-spacing: normal; }
.list-grid, .wish-grid { display: grid; gap: 16px; }
.list-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.list-card {
    position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) clamp(64px, 25%, 132px);
    min-height: 140px; color: var(--ink); text-decoration: none; border-radius: 12px;
}
.list-card::before {
    content: ""; z-index: -1; position: absolute; inset: 0; border-radius: inherit; background: var(--tag, #dcecea);
    clip-path: polygon(18px 0, 100% 0, 100% 100%, 18px 100%, 0 calc(100% - 25px), 0 25px);
}
.list-card::after {
    content: ""; position: absolute; top: calc(50% - 5px); left: 12px; width: 10px; height: 10px;
    background: var(--paper); border-radius: 50%;
}
.tag-copy { align-self: center; display: grid; padding: 21px 14px 21px 38px; font-size: .9rem; }
.tag-copy h3 { margin-bottom: 6px; }
.tag-copy small { margin-top: 6px; }
.account-ribbon { background: #94cacc url('geschenkband.svg') center / cover no-repeat; }
.tag-band { position: relative; overflow: hidden; border-radius: 0 12px 12px 0; background: var(--band-ground, #94cacc); }
.tag-band svg { position: absolute; width: 100%; height: 100%; }
.tone-1 .tag-band svg { transform: scale(1.44); transform-origin: 70% 79%; }
.tone-2 .tag-band svg { transform: scale(1.75); transform-origin: 25% 35%; }
.list-card:hover h3, .wish-copy h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.empty { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px dashed var(--control-line, #9cb5b0); border-radius: 12px; color: var(--muted); }
.empty svg { width: 28px; height: 28px; color: var(--petrol); }
.wish-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.wish-grid > .empty { grid-column: 1 / -1; }
.card, .wish-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.card { padding: clamp(18px, 3.5vw, 32px); }
.wish-card { overflow: hidden; }
.wish-image-link { display: block; }
.wish-image-link:focus-visible { outline-offset: -4px; }
.wish-photo { display: block; width: 100%; aspect-ratio: 4/3; object-fit: contain; background: white; }
.fallback { display: grid; place-items: center; background: var(--tag, #deedeb); color: var(--petrol); }
.fallback svg { width: 44px; height: 44px; stroke-width: 1.4; }
.wish-copy { display: grid; gap: 12px; padding: 18px; }
.wish-copy h3 a { text-decoration: none; color: inherit; }
.shop { width: max-content; font-size: .93rem; }
.excerpt, .intro, small, .muted { color: var(--muted); }
.excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .94rem; }
.meta:empty { display: none; }
.priority { color: #7a3028; background: #f9e3dc; padding: 3px 8px; border-radius: 6px; font-size: .82rem; }
.claim { font-size: .9rem; color: #345747; }
.claim span { font-weight: 600; }
.section-head { margin-bottom: 18px; }
.section-head.collection h2 { margin: 0; }
.eyebrow { color: var(--muted); font-size: .9rem; margin-bottom: 5px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; font-size: .92rem; color: var(--muted); text-decoration: none; }
.intro { margin: 0 0 20px; max-width: 65ch; }
.lines { white-space: pre-line; }
.account-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 84px); min-height: calc(100svh - 75px); padding-block: 36px; }
.account-ribbon { aspect-ratio: 4/5; border-radius: 14px; }
.account-layout .auth-card { margin: auto; width: 100%; max-width: 420px; border: 0; background: none; padding: 0; }
.container > .auth-card { max-width: 560px; margin: auto; }
.auth-card p { margin: 16px 0; }
.auth-card .form-stack > .primary { width: 100%; }
.auth-providers { display: grid; gap: 8px; }
.theme-picker { margin: 0; padding: 0; border: 0; }
.theme-picker legend { padding: 0; font-size: 1.15rem; font-weight: 690; }
.theme-picker h2 { margin: 16px 0 6px; color: var(--muted); font-size: .85rem; letter-spacing: normal; }
.theme-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr)); gap: 7px; }
.theme-option {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px;
    border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: .92rem;
}
.theme-option:has(:checked) { background: var(--mist); border-color: var(--petrol); font-weight: 600; }
.theme-option input { margin: 0; }
.theme-swatch {
    width: 28px; height: 16px; flex: none; border-radius: 3px 8px 3px 3px;
    background: linear-gradient(115deg, var(--swatch-primary) 40%, var(--swatch-ribbon) 40% 67%, var(--swatch-tint) 67%);
}
.editor { max-width: 720px; margin: auto; }
.form-stack { display: grid; gap: 18px; }
.form-stack > *, .detail-grid > * { min-width: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .95rem; font-weight: 600; }
small { font-weight: 400; font-size: .86rem; }
input:not([type=checkbox],[type=radio]), textarea, select {
    border: 1px solid var(--control-line, #819892); border-radius: 7px; background: white; color: var(--ink);
    padding: 10px 12px; min-height: 44px; width: 100%; min-width: 0; font-size: 1rem; font-weight: 400;
}
input[type=checkbox], input[type=radio] { accent-color: var(--petrol); }
textarea { resize: vertical; }
.pair { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.button, .import-panel button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
    padding: 10px 16px; border: 1px solid var(--control-line, #9ab0aa); border-radius: 8px; background: var(--surface);
    color: var(--ink); text-decoration: none; font-size: .94rem; font-weight: 600; line-height: 1.3;
}
.button:hover, .import-panel button:hover { background: var(--mist); }
.button.primary, .import-panel .primary { color: white; background: var(--petrol); border-color: var(--petrol); }
.button.primary:hover, .import-panel .primary:hover { background: var(--deep); }
button:disabled { opacity: .55; cursor: default; }
.notice { padding: 14px 16px; background: var(--mist); border-radius: 8px; margin: 14px 0; }
.notice[role=alert] { color: #742d28; background: #f9e1d9; }
.notice ul { padding-left: 20px; margin: 0; }
.danger-zone { margin-top: 20px; }
.member-row { margin-block: 12px; display: grid; gap: 10px; }
.member-row select { width: auto; max-width: 100%; }
.search-results { display: grid; gap: 3px; }
.search-results button { min-height: 44px; border: 1px solid var(--line); border-radius: 5px; text-align: left; background: white; padding: 9px; color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 62px); align-items: start; }
.detail-grid p, .detail-grid .form-stack { margin-top: 18px; }
.gallery img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 12px; }
.gallery .fallback { border-radius: 12px; }
.image-options { display: flex; flex-wrap: wrap; gap: 12px; }
.image-options img, .import-panel img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; display: block; }
.import-panel .import-preview-image { width: 100%; max-width: 260px; height: 190px; object-fit: contain; background: white; padding: 8px; }
.import-panel { background: var(--mist); border-radius: 10px; padding: 16px; }
.import-panel:empty { display: none; }
.import-panel > * + * { margin-top: 12px; }

@media (max-width: 720px) {
    .mast-inner { min-height: 56px; gap: 4px; }
    .brand { gap: 5px; font-size: 1.06rem; }
    .brand img { width: 26px; height: auto; }
    .account-layout { display: block; min-height: 0; padding-block: 30px; }
    .account-ribbon { display: none; }
    .detail-grid { grid-template-columns: 1fr; }
    .gallery img, .gallery .fallback { max-height: 44svh; object-fit: contain; }
    .container { padding-top: 22px; }
    h1 { font-size: 1.5rem; }
    .collection { margin-top: 26px; }
    .collection h2 { margin-bottom: 12px; }
    .tag-copy { padding-block: 15px; }
    .list-card { min-height: 106px; }
    .section-head .actions { gap: 6px; }
}
@media (max-width: 460px) {
    .list-grid, .wish-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .overview-head .button { width: 100%; }
    .wish-add span { display: none; }
    .wish-add { min-width: 44px; padding-inline: 12px; }
}
.view-switcher{display:flex;width:max-content;max-width:100%;gap:3px;padding:3px;margin:0 0 18px auto;border:1px solid var(--line);border-radius:10px;background:var(--surface)}
.view-choice{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:0;border-radius:7px;background:transparent;color:var(--muted);font-size:.86rem;font-weight:600}
.view-choice:hover{background:var(--mist)}.view-choice[aria-pressed=true]{background:var(--petrol);color:#fff}.view-choice svg{width:18px;height:18px}
.wish-grid[data-view=list]{grid-template-columns:minmax(0,1fr);gap:0;border-top:1px solid var(--line)}
.wish-grid[data-view=list] .wish-card{display:grid;grid-template-columns:80px minmax(0,1fr);gap:18px;padding:18px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.wish-grid[data-view=list] .wish-image-link{align-self:start;display:block;margin-top:3px;border-radius:8px}
.wish-grid[data-view=list] .wish-photo{width:80px;height:80px;aspect-ratio:1;object-fit:contain;background:var(--surface);border:1px solid var(--line);border-radius:8px}
.wish-grid[data-view=list] .fallback svg{width:32px;height:32px}
.wish-grid[data-view=list] .wish-copy{padding:0;grid-template-columns:minmax(0,1fr) auto;gap:4px 18px;align-content:start;align-items:start}
.wish-grid[data-view=list] .wish-copy h3{grid-column:1;grid-row:1;font:600 1.05rem/1.4 "Inter Variable",Arial,sans-serif;letter-spacing:0}
.wish-grid[data-view=list] .wish-copy h3 a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wish-grid[data-view=list] .meta{grid-column:2;grid-row:1;justify-content:flex-end;font-variant-numeric:tabular-nums}
.wish-grid[data-view=list] .excerpt{grid-column:1;grid-row:2;-webkit-line-clamp:1}
.wish-grid[data-view=list] .shop{grid-column:2;grid-row:2;min-height:44px;display:inline-flex;align-items:center}
.wish-grid[data-view=list] .wish-copy>form,.wish-grid[data-view=list] .wish-copy>.claim{grid-column:1/-1;margin-top:4px}
@media(max-width:720px){.wish-grid[data-view=list] .wish-card{grid-template-columns:64px minmax(0,1fr);gap:12px;padding-block:16px}.wish-grid[data-view=list] .wish-photo{width:64px;height:64px}.wish-grid[data-view=list] .wish-copy{column-gap:8px}.wish-grid[data-view=list] .wish-copy h3{grid-column:1/-1}.wish-grid[data-view=list] .wish-copy h3 a{min-height:44px}.wish-grid[data-view=list] .meta{grid-column:1;grid-row:2;justify-content:flex-start;gap:5px 8px;font-size:.9rem}.wish-grid[data-view=list] .shop{grid-column:2;grid-row:2;font-size:.86rem}.wish-grid[data-view=list] .excerpt{display:none}.wish-grid[data-view=list] .claim{font-size:.82rem;gap:6px}.wish-grid[data-view=list] .wish-copy>form .button{font-size:.84rem;padding-inline:11px}}
