/* Ladenfunke, Verwaltung: dunkle Fläche, Bronze als Akzent, eine Schrift (Geist), passend zur Startseite.
   Öffentliche Shops bekommen eine helle neutrale Fläche und ihre Markenfarbe --c. */
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap; src: url("/static/fonts/geist-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113; }
@font-face { font-family: "Geist"; font-weight: 400 700; font-display: swap; src: url("/static/fonts/geist-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: dark;
  --bg: #111111; --paper: #1c1c1c; --field: #141414; --ink: #f2f2f2; --muted: #a6a6a6; --line: #ffffff26;
  --accent: #a08672; --on-accent: #111111; --c: #a08672; --radius: 12px;
  --ok: #8fd6a8; --ok-bg: #173a27; --warn: #ecd08a; --warn-bg: #3d3214; --err: #f2aaa2; --err-bg: #44201c;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.55 "Geist", system-ui, sans-serif; color: var(--ink); background: var(--bg); accent-color: var(--accent); caret-color: var(--accent); -webkit-tap-highlight-color: transparent; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { overflow-wrap: anywhere; hyphens: auto; font-weight: 500; line-height: 1.1; letter-spacing: -.03em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); } h2 { font-size: 1.45rem; } h3 { font-size: 1.1rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 .9em; text-wrap: pretty; } a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; } a:hover { text-decoration-thickness: 2px; }
main { max-width: 760px; margin: 0 auto; padding: 32px 24px 72px; } main.wide { max-width: 1160px; }
.muted { color: var(--muted); font-size: .93rem; } .narrow { max-width: 440px; margin: 40px auto; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 9; padding: 10px 14px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius); } .skip:focus { top: 12px; }
button, a, summary, label, input, select { touch-action: manipulation; }

.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; max-width: 1160px; margin: 0 auto; padding: 18px 24px; }
.top nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; } .top nav a, .top nav .link { text-decoration: none; color: var(--ink); } .top nav a:not(.btn):hover, .top nav .link:hover { text-decoration: underline; }
.top nav a.btn { color: var(--on-accent); }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.25rem; letter-spacing: -.03em; text-decoration: none; color: var(--ink); }
.foot, .sfoot { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: center; padding: 28px 24px 36px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); }
.foot a, .sfoot a { color: var(--muted); padding: 6px 0; }

.btn { display: inline-block; padding: 12px 20px; border: 1.5px solid var(--accent); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent); } .btn:active { transform: translateY(1px); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--accent); } .btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); box-shadow: none; }
.btn.small { padding: 8px 14px; font-size: .93rem; } .btn:disabled { opacity: .55; cursor: wait; transform: none; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: .18em; } .link:hover { text-decoration-thickness: 2px; }
.danger { color: var(--err); }
form { margin: 0; } .card form + .muted { margin-top: 20px; } form .btn + .muted { margin-top: 10px; }
label { display: block; font-weight: 500; font-size: .93rem; margin-bottom: 14px; flex: 1; min-width: 150px; }
input, textarea, select { display: block; width: 100%; margin-top: 6px; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--ink) 38%, transparent); border-radius: 8px; font: inherit; background: var(--field); color: var(--ink); }
input:hover, textarea:hover, select:hover { border-color: var(--ink); } ::placeholder { color: color-mix(in srgb, var(--ink) 62%, var(--field)); opacity: 1; }
input[type=color] { padding: 3px; height: 46px; } input[type=file] { padding: 8px; font-size: .88rem; }
.radio { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; } .radio { min-height: 28px; } .radio input { width: 24px; height: 24px; margin: 0; flex: none; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; }
.wait { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 500; animation: pulse 1.2s infinite alternate; }
@keyframes pulse { to { opacity: .55; } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; min-width: 0; overflow-wrap: anywhere; }
.grid2, .grid3, .grid4 { display: grid; gap: 18px; margin-bottom: 18px; } .grid2 > .card, .grid3 > .card, .grid4 > .card { margin: 0; }
.grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); } .grid3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); } .grid4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.flash { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; background: var(--field); border: 1px solid var(--line); }
.flash.err { background: var(--err-bg); border-color: #0000; color: var(--err); } .flash.warn { background: var(--warn-bg); border-color: #0000; color: var(--warn); } .flash.ok { background: var(--ok-bg); border-color: #0000; color: var(--ok); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); font-size: .82rem; font-weight: 500; }
.tag.paid, .tag.bestaetigt { background: var(--ok-bg); color: var(--ok); } .tag.test, .tag.neu, .tag.pending { background: var(--warn-bg); color: var(--warn); } .tag.abgesagt { background: var(--err-bg); color: var(--err); }
.warnt { color: var(--warn); font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } th, td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } th { font-size: .84rem; font-weight: 500; color: var(--muted); }
tr:last-child > td { border-bottom: 0; } .card:has(table) { overflow-x: auto; } .card table:has(th) { min-width: 580px; overflow-wrap: normal; } .tag, td .link { white-space: nowrap; }

/* Verwaltung */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: .92rem; cursor: pointer; transition: background-color .15s, border-color .15s; } .chip:hover { border-color: var(--ink); background: var(--field); }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: var(--c); margin-right: 8px; }
.biz { text-decoration: none; color: var(--ink); border-top: 6px solid var(--c); transition: transform .2s var(--ease), box-shadow .2s var(--ease); } .biz:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -18px #000; } .biz .dot { display: none; }
.bizhead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; } .bizhead h1 { display: inline; }
.tabs { display: flex; gap: 2px 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs a { padding: 10px 10px; white-space: nowrap; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; font-size: .95rem; } .tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--ink); }
.stat span { display: block; color: var(--muted); font-size: .88rem; } .stat b { font-size: 2rem; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.check { list-style: none; padding: 0; margin: 0; } .check li { padding: 6px 0; } .check li.ok, .check li.ok a { color: var(--ok); }
.card ul, .card ol { padding-left: 1.2em; margin: 0 0 1em; }
details > summary { cursor: pointer; list-style: none; display: flex; gap: 16px; align-items: center; min-height: 28px; } details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 18px; } summary h3, summary p { margin: 0; }
.cover { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.cover.ex { position: relative; overflow: hidden; } .cover.ex img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover.ex small { position: absolute; left: 8px; bottom: 8px; padding: 2px 8px; border-radius: 99px; background: rgb(0 0 0 / .62); color: #fff; font-size: .72rem; font-weight: 500; letter-spacing: .01em; }
.prod summary .cover.ex small { display: none; } [data-layout="liste"] .sprod .cover.ex small { left: 4px; bottom: 4px; padding: 1px 5px; font-size: .6rem; }
.cover.gen { display: grid; place-items: center; font-size: 3rem; background: color-mix(in srgb, var(--c) 16%, var(--field)); }
.prod summary .cover { width: 76px; flex: none; font-size: 1.7rem; } .prod summary > div { min-width: 0; }
.post.done { opacity: .6; }
/* Reiter Design: Auswahlfelder */
.dz fieldset { border: 1px solid var(--line); } .dz legend { padding: 0 8px; font-weight: 500; font-size: 1.05rem; }
.dz-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.dz-opt { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-width: 0; transition: border-color .15s, background-color .15s; }
.dz-opt:hover { border-color: var(--ink); } .dz-opt:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dz-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; } .dz-opt:has(:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.dz-opt b { font-weight: 500; } .dz-opt small { color: var(--muted); font-size: .85rem; font-weight: 400; }
.dz-font { font-size: 1.9rem; line-height: 1.1; } .dz-pal { display: flex; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); } .dz-pal i { flex: 1; }
.dz-pal[data-p="hell"] i:nth-child(1) { background: #faf9f6; } .dz-pal[data-p="hell"] i:nth-child(2) { background: #1c1b1f; } .dz-pal i:nth-child(3) { background: var(--c); }
.dz-pal[data-p="papier"] i:nth-child(1) { background: #f3ecdf; } .dz-pal[data-p="papier"] i:nth-child(2) { background: #2a241c; }
.dz-pal[data-p="dunkel"] i:nth-child(1) { background: #121214; } .dz-pal[data-p="dunkel"] i:nth-child(2) { background: #f3f2ee; }
.dz-pal[data-p="farbig"] i:nth-child(1) { background: color-mix(in oklab, var(--c) 11%, #fff); } .dz-pal[data-p="farbig"] i:nth-child(2) { background: #19181c; }
.dz-pal[data-p="kontrast"] i:nth-child(1) { background: #fff; } .dz-pal[data-p="kontrast"] i:nth-child(2) { background: #000; }
.dz-pal[data-p="pastell"] i:nth-child(1) { background: color-mix(in oklab, var(--c) 20%, #fff); } .dz-pal[data-p="pastell"] i:nth-child(2) { background: color-mix(in oklab, var(--c) 38%, #000); }
.dz-save { position: sticky; bottom: 0; padding: 14px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.brandrow { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; } .brandrow p { margin: 8px 0 0; }
.brandimg { display: block; width: 150px; height: 150px; border-radius: 12px; } .brandimg.wide { width: auto; height: 96px; max-width: 100%; background: #f6efe2; padding: 10px 14px; }
.swatch { display: block; width: 150px; height: 150px; border-radius: 12px; background: var(--c); border: 1px solid var(--line); }
.made { border-color: var(--accent); } .madegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.madegrid a { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .18s var(--ease); } .madegrid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.madegrid b { display: block; font-weight: 500; font-size: 1.05rem; } .madegrid span { color: var(--muted); font-size: .9rem; } .adimg { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 8px; margin-bottom: 14px; }
.steps ol { margin: 14px 0 0; padding-left: 1.3em; } .steps li { margin-bottom: 10px; } .steps > summary { min-height: 0; } .ad form { margin-top: 12px; } .empty { text-align: center; padding: 40px 24px; } .empty p:last-child { margin: 0; }
.card td:last-child:not(:first-child) { text-align: right; } .card table:has(th) td:last-child { text-align: left; }
.bars { display: flex; gap: 6px; align-items: flex-end; height: 160px; } .bars div { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars i { display: block; width: 100%; min-height: 2px; background: var(--accent); border-radius: 4px 4px 0 0; } .bars span { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.meter { height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; margin-bottom: 18px; } .meter i { display: block; height: 100%; background: var(--accent); }

.price { font-size: 2.4rem; font-weight: 500; letter-spacing: -.04em; line-height: 1; margin: 0 0 .4em; font-variant-numeric: tabular-nums; }
/* Öffentlicher Shop: neutrale Fläche, Markenfarbe des Shops als Akzent */
.store { color-scheme: light; --ok: #17603a; --ok-bg: #d5ecd9; --warn: #6d4c00; --warn-bg: #f6e3a8; --err: #8c1d18; --err-bg: #f6d5cf; --bg: #f8f6f1; --paper: #fff; --field: #fff; --ink: #1c1b1f; --muted: #5f5d68; --line: #1c1b1f24; --accent: var(--c); --on-accent: #fff; }
.store main { max-width: 1080px; }
.shead { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); } .shead a { color: var(--ink); text-decoration: none; font-size: 1.25rem; letter-spacing: -.03em; } .shead span { color: var(--muted); }
.shero { padding: clamp(36px, 7vw, 80px) 0 clamp(28px, 5vw, 56px); } .shero h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); letter-spacing: -.04em; line-height: 1; } .shero p { font-size: 1.2rem; color: var(--muted); max-width: 48ch; }
.sprod { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; padding: 14px; transition: transform .2s var(--ease), box-shadow .2s var(--ease); } .sprod:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -20px #0006; }
.sprod .cover { transition: transform .4s var(--ease); } .sprod:hover .cover { transform: scale(1.02); } .sprod h2, .sprod p { margin: 0; } .sprod h2 { margin-top: 6px; font-size: 1.1rem; letter-spacing: -.015em; line-height: 1.25; } .sprod b { font-size: 1.1rem; font-weight: 500; margin-top: auto; padding-top: 6px; font-variant-numeric: tabular-nums; }
.card table.plans { min-width: 0; } .plans th, .plans td { padding-inline: 4px; }
.card table.sum { min-width: 0; margin: 4px 0 14px; } .sum td:last-child { text-align: right; white-space: nowrap; } .sum th { color: var(--ink); font-size: 1rem; } .sum tr:last-child > * { border-bottom: 0; } .radio span { flex: 1; }
.pdetail { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(24px, 4vw, 48px); align-items: start; }

@media (max-width: 860px) {
}
@media (max-width: 520px) {
  body { font-size: 16px; } main { padding: 20px 18px 56px; } .top { padding: 14px 18px; } .top nav { gap: 14px; }
  .card { padding: 18px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; } .tabs::-webkit-scrollbar { display: none; }
  .grid4 { grid-template-columns: 1fr 1fr; gap: 12px; } .stat b { font-size: 1.6rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
