/* Habitué (by TENMEI, habitue.tenmei.ch). Visual language «Editorial-Split» (concept C, approved 01 Oct 2026): warm paper and stone,
   ink, one rosewood accent, hairlines, frosted-glass cards, serif names and numbers, sans for data.
   System fonts only (no webfonts, no network). Tokens only in :root. */
:root {
  --paper: #EEE8DF;
  --paper-2: #F3EEE6;
  --paper-3: #E8E1D6;
  --ink: #16130F;
  --ink2: #2E2924;
  --mute: #5A5248;
  --rose: #8C3B1E;
  --rose-dark: #6E2E17;
  --rose-soft: #C98C6A;
  --rose-tint: #F3E4DA;
  --white: #FFFDFA;
  --hair: rgba(22, 19, 15, .14);
  --hair-strong: rgba(22, 19, 15, .24);
  --card: rgba(255, 253, 250, .72);
  --card-weak: rgba(255, 253, 250, .42);
  --error: #9a2d1c;
  --ok: #2F5A3A;
  --shadow: 0 1px 2px rgba(40, 30, 20, .05), 0 10px 26px -18px rgba(40, 30, 20, .35);
  --shadow-on: 0 0 0 1.5px var(--rose), 0 24px 46px -26px rgba(90, 40, 20, .45);
  --radius: 12px;
  --radius-l: 20px;
  --top-h: 64px;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  /* old token names, kept for the dashboard partials and charts.py */
  --bg: var(--paper);
  --panel: var(--white);
  --line: var(--hair);
  --line-strong: var(--hair-strong);
  --accent: var(--rose);
  --accent-dark: var(--rose-dark);
  --accent-soft: var(--rose-tint);
  --on-accent: var(--white);
  --toast-bg: var(--ink);
  --toast-ink: var(--white);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html { background: var(--paper) linear-gradient(90deg, #F3EEE6 0%, #EEE8DF 48%, #E8E1D6 100%); min-height: 100%; }
body {
  margin: 0; color: var(--ink); font: 17px/1.45 var(--sans); overflow-x: hidden; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 12px; letter-spacing: .005em; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 19px; }
p { margin: 0 0 12px; }
a { color: var(--rose); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mute { color: var(--mute); }
.small { font-size: 15px; }
.grow { flex: 1 1 auto; min-width: 0; }
.error { color: var(--error); font-weight: 600; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; border: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.count { font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--mute); margin-left: 6px; }
svg.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- header: a frosted strip, serif shop name, tabs with a rosewood rule */
header.top {
  position: relative; z-index: 6;
  display: flex; align-items: center; gap: 18px; height: var(--top-h); padding: 0 24px 0 28px;
  border-bottom: 1px solid var(--hair); background: rgba(243, 238, 230, .82);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
}
.shopname { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-right: 10px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tabs { display: flex; gap: 2px; flex: 1 1 auto; height: 100%; }
.tabs a {
  display: inline-flex; align-items: center; height: 100%; min-height: 48px; padding: 0 16px;
  color: var(--ink2); text-decoration: none; font-size: 17px; font-weight: 500; border-bottom: 2px solid transparent;
}
.tabs a[aria-current="page"] { color: var(--rose); border-bottom-color: var(--rose); font-weight: 600; }
.plain {
  background: none; border: 0; min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer;
  color: var(--rose); text-decoration: underline; text-underline-offset: 3px; font-size: 16px;
}

main { padding: 20px 24px 96px; max-width: 1500px; margin: 0 auto; }

/* ---------- surfaces and controls */
.panel {
  background: var(--card); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-l);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 20px 22px; min-width: 0;
}
.panel.narrow { max-width: 560px; margin: 40px auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 6px 16px; border-radius: var(--radius);
  border: 1px solid rgba(22, 19, 15, .18); background: var(--white); color: var(--ink);
  font-size: 16px; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2;
  transition: transform .12s, border-color .2s, background .2s;
}
.btn:hover { border-color: var(--rose); }
.btn:active { transform: scale(.97); }
.btn[aria-pressed="true"] { background: var(--rose-tint); border-color: var(--rose); color: var(--rose-dark); font-weight: 600; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
.btn.primary:hover { background: var(--ink2); }
.btn.big { min-height: 56px; font-size: 19px; padding: 0 28px; }
.btn.wide { width: 100%; }
.btn.quiet { background: transparent; border-color: transparent; color: var(--rose); padding: 6px 10px; }
.btn.quiet:hover { border-color: var(--hair-strong); }
.btn.strike { color: var(--ink2); }
.btn.light { background: transparent; color: var(--white); border-color: rgba(255, 253, 250, .5); }
.ico {
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  width: 48px; height: 44px; border-radius: var(--radius); border: 1px solid rgba(22, 19, 15, .18);
  background: var(--white); color: var(--ink); cursor: pointer; transition: transform .12s;
}
.ico:active { transform: scale(.96); }
.ico[aria-pressed="true"] { background: var(--rose-tint); border-color: var(--rose); color: var(--rose-dark); }
.ico svg { display: block; }
.rate { display: inline-flex; gap: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.actions form { margin: 0; }
/* an earlier visit's Tester / purchase in words next to the buttons (those buttons are pressed for today only) */
.act-note { flex-basis: 100%; font-size: 15px; color: var(--mute); }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field > span { font-size: 15px; color: var(--mute); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 8px 14px; border: 1px solid rgba(22, 19, 15, .2); border-radius: var(--radius);
  background: var(--white); width: 100%; font-size: 17px; box-shadow: inset 0 1px 2px rgba(40, 30, 20, .05);
}
.field textarea { resize: vertical; }
.field.big input { min-height: 60px; font-size: 26px; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--serif); }
.field.big input::placeholder { text-transform: none; letter-spacing: normal; color: var(--mute); font-family: var(--sans); font-size: 20px; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--rose); outline-offset: 2px;
}
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--rose); }

.mark {
  display: inline-block; font-size: 15px; line-height: 1.3; padding: 2px 9px;
  border: 1px solid var(--hair-strong); border-radius: 999px; color: var(--mute); background: var(--white);
  white-space: nowrap;
}
.mark.joker { border-color: var(--rose); color: var(--rose-dark); font-weight: 600; }
.mark.best { border-color: var(--rose); background: var(--rose-tint); color: var(--rose-dark); font-weight: 600; }
.mark.out { border-style: dashed; }
.mark.in { color: var(--ok); border-color: rgba(47, 90, 58, .45); }
.mark.price { color: var(--ink2); font-variant-numeric: tabular-nums; }
.mark.price.unknown { border-style: dashed; color: var(--mute); font-style: italic; }

/* placeholder tile: colour of the main Duftrichtung + brand initials, the same everywhere */
.tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; border-radius: var(--radius); color: #2a2723;
  font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(22, 19, 15, .08);
}
.tile-s { width: 40px; height: 40px; font-size: 15px; border-radius: 9px; }
.tile-l { width: 104px; height: 104px; font-size: 32px; border-radius: 16px; }
/* demo bottle image: white product shot on a white field, hairline edge */
.tile-img { background: #fff; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.tile-l.tile-img { width: 160px; height: 160px; }

.head-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.head-row h1 { margin: 0; }

/* ---------- login = the TENMEI front door (Lars 05 Oct: «cooler», TENMEI type, one login for every shop, the
   shop-tuned system behind it). tenmei.ch dawn behind a paper card; Chakra Petch + JetBrains Mono, self-hosted
   (static/fonts, OFL; no Google request from the shops' iPads). Only this page uses them, so only it loads them. */
@font-face { font-family: "Chakra Petch"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/ChakraPetch-700i-latin.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ChakraPetch-500-latin.woff2") format("woff2"); }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ChakraPetch-600-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/JetBrainsMono-400-latin.woff2") format("woff2"); }
.login-page {
  --t-night: #060d1c; --t-navy: #0a1628; --t-violet: #2d1b55; --t-gold: #feda84; --t-gold-ink: #9a6f1c;
  --t-disp: "Chakra Petch", var(--sans); --t-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  min-height: 100vh;
  background:
    radial-gradient(120% 55% at 50% 108%, rgba(254, 218, 132, .95) 0%, rgba(252, 123, 92, .78) 26%, rgba(45, 27, 85, 0) 62%),
    linear-gradient(180deg, var(--t-night) 0%, var(--t-navy) 34%, var(--t-violet) 72%, #5a2f5c 100%);
  background-attachment: fixed;
}
/* a few fixed stars in the night part, drawn once (no animation, nothing per frame) */
.login-page::before {
  content: ""; position: fixed; inset: 0 0 45% 0; pointer-events: none; opacity: .75;
  background-image:
    radial-gradient(1.4px 1.4px at 8% 14%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 19% 31%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 27% 9%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 47% 6%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 58% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 66% 33%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 11%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 83% 26%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 91% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 13% 44%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 88% 47%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 39%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 4% 58%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 96% 62%, #fff 50%, transparent 51%);
}
.login-page main { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login {
  max-width: 440px; width: 100%; margin: 40px auto; display: flex; flex-direction: column; gap: 4px; padding: 34px 34px 26px;
  background: linear-gradient(180deg, #FFFDFA 0%, #FBF7F0 100%); border: 1px solid rgba(254, 218, 132, .7); border-radius: 18px;
  box-shadow: 0 30px 80px -30px rgba(6, 13, 28, .75), 0 0 0 1px rgba(10, 22, 40, .04);
}
.login .gate-mark { margin: 0; font-family: var(--t-disp); font-style: italic; font-weight: 700; font-size: 56px; line-height: 1;
  letter-spacing: .005em; color: var(--t-navy); text-align: center; }
.login .say { margin: 10px 0 0; text-align: center; font-family: var(--t-mono); font-size: 13.5px; letter-spacing: .02em; color: var(--mute); }
.login .say i { font-style: normal; letter-spacing: .08em; color: var(--t-gold-ink); }
/* the slogan (Lars 05 Oct: «Kunden verwalten, Kunden behalten»): two short sentences, no ornaments */
.login .tagline { margin: 16px 0 20px; text-align: center; font-family: var(--t-disp); font-weight: 500; font-size: 20px;
  letter-spacing: .01em; color: var(--t-navy); }
.login form { display: flex; flex-direction: column; gap: 14px; }
.login .field > span { font-family: var(--t-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.login .field input:focus { outline: 2px solid var(--t-gold); outline-offset: 1px; border-color: var(--t-navy); }
.login .btn.primary { margin-top: 4px; background: var(--t-navy); border-color: var(--t-navy); color: var(--t-gold);
  font-family: var(--t-disp); font-weight: 600; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }
.login .btn.primary:hover, .login .btn.primary:active { background: var(--t-violet); border-color: var(--t-violet); }
.login .error { text-align: center; }
.login .tagline { white-space: nowrap; }
@media (max-width: 480px) {
  .login { padding: 30px 22px 22px; }
  .login .gate-mark { font-size: 50px; }
  .login .tagline { font-size: 17px; }
}
.login .variant { color: var(--rose); font-style: italic; font-weight: inherit; }
/* «by» + the TENMEI sun (wordmark only, no «Tomorrow is»), one line. The sun sits exactly on the card's centre
   axis (Lars 05 Oct): the svg box is symmetric around the disc, «by» hangs to its left outside the flow */
.login .producer { position: relative; margin-top: 18px; display: flex; justify-content: center; font-size: 15px; font-style: italic; color: var(--mute); }
.login .producer img { display: block; height: 38px; width: auto; }
.login .producer .by { position: absolute; right: calc(50% + 28.5px + 6px); top: 50%; transform: translateY(-50%); }

/* ---------- Beratung start: no panels, one heading style (Lars, 04 Oct: «möglichst lean»). Left = open a
   customer (code or today's list), right = new customer. */
.start { display: grid; gap: 32px 64px; grid-template-columns: 1fr; padding: 12px 8px 0; max-width: 1180px; margin: 0 auto; }
@media (min-width: 760px) { .start { grid-template-columns: 1fr 1fr; } }
.start h1, .start h2 { font-size: 24px; margin: 0 0 14px; }
.start .s-today { margin-top: 36px; }
.open-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.open-form .field { flex: 1 1 220px; }
.new-form { display: grid; gap: 14px 12px; grid-template-columns: 1fr 1fr; align-items: end; }
.new-form .btn { grid-column: 1 / -1; justify-self: start; }
.new-form + p, .new-form + .error { margin-top: 14px; }
@media (max-width: 520px) { .new-form { grid-template-columns: 1fr; } }
.rows { display: flex; flex-direction: column; }
.rows > li + li { border-top: 1px solid var(--hair); }
.row { display: flex; align-items: center; gap: 16px; min-height: 52px; color: var(--ink); text-decoration: none; padding: 4px 4px; }
.row .code { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: 0.04em; min-width: 72px; }
.checkins { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }

/* ======================================================================================================
   Kunde: Editorial-Split. Landscape = two columns (0.8 : 1.2): the workflow left (her scents, the cards that
   open in place), the Duftkarte + Steckbrief of whatever is tapped right. Portrait = the map sticks to the top,
   the list scrolls underneath.
   Lean pass (Lars, 04 Oct: «möglichst lean ohne Infos zu omitten»): one style per role.
     name / heading  serif 22        voice (reason, question, comparison)  serif italic 17
     body            sans 17         small (brand, year, group, captions)  sans 15 mute
     label + quiet link  sans 15 semibold rose      button  sans 15 semibold
   No frames inside frames; the rarely used switches (Düfte für, Budget, Erweitert) fold into one line.
   ====================================================================================================== */
.page-kunde main { padding: 0; max-width: none; }
.kunde { --ink2: var(--ink); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); }
.kunde .btn { font-size: 15px; font-weight: 600; }
.col-l { min-height: 0; overflow-y: auto; overflow-x: hidden; border-right: 1px solid var(--hair); scrollbar-width: thin;
  padding-bottom: 28px; }
.col-r { position: relative; display: flex; flex-direction: column; min-height: 0; padding: 20px 28px 18px 30px; }

/* name bar (sticks in landscape), then the masthead: open tester questions, her scents as chips + «Duft hinzufügen» */
.m1 { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 4; padding: 12px 20px 8px 24px;
  background: linear-gradient(90deg, rgba(243, 238, 230, .96), rgba(239, 233, 224, .96));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mast { padding: 0 20px 12px 24px; border-bottom: 1px solid var(--hair); }
.m1 h1 { flex: 1 1 auto; margin: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 28px; line-height: 1.1; }
.m1 .code { font-weight: 600; letter-spacing: .02em; }
.m1 .nm { font-style: italic; font-weight: 400; }
.m1 form { margin: 0; }
.questions { margin-top: 4px; background: var(--rose-tint); border-radius: 14px; padding: 4px 6px; }
.q-row { display: flex; align-items: flex-start; gap: 10px; padding: 2px 0; }
.q-row > .q { flex: 1 1 auto; min-width: 0; }
.q-row > .rate { flex: none; margin-top: 3px; }
.own.q > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 3px 8px;
  border-radius: 12px; border: 1px solid transparent; background: none; cursor: pointer; }
.q > summary::-webkit-details-marker { display: none; }
.q-row .q-text { font: italic 400 17px/1.35 var(--serif); color: var(--ink); }
.q-row .ico { background: var(--white); }
/* opened question: no frame inside the rose band (no box in a box), the question turns rose */
.own.q[open] > summary { border-color: transparent; background: none; box-shadow: none; }
.q[open] .q-text { color: var(--rose-dark); }
.q .own-more { padding: 6px 2px 4px 3px; }
/* her scents: chips as wide as their name, two lines (name + version, then the list it stands in) */
.owned { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 8px; margin-top: 10px; align-items: center; }
.owned .block:not(.add) { display: contents; }
.owned > .add[open] { grid-column: 1 / -1; }
.own-w { position: relative; min-width: 0; }
.own-w:has(> .own[open]) { grid-column: 1 / -1; }
.own { position: relative; min-width: 0; }
.own > summary {
  list-style: none; display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 4px 12px 4px 4px;
  border-radius: 12px; border: 1px solid var(--hair); background: rgba(255, 253, 250, .6); cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.own-w:has(> .own[open]) > .own > summary { display: inline-flex; min-width: 176px; max-width: 100%; }
.own > summary::-webkit-details-marker { display: none; }
.own-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.own .tile-s { width: 32px; height: 40px; border-radius: 8px; }
.own-t b { font-weight: 600; font-size: 15px; }
.own-t small { font-size: 15px; color: var(--mute); }
.own[open] > summary { border-color: var(--rose); background: var(--white); box-shadow: 0 0 0 1px var(--rose); }
.list-dislike .own > summary { border-style: dashed; }
.own-more { padding: 8px 2px 2px; }
.own:not([open]) > .own-more, .c-det:not([open]) > .c-more, .fd:not([open]) > .fd-panel { display: none; }
.own-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.own-acts form { margin: 0; }
.go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 10px; color: var(--rose); text-decoration: none; }
.go:hover { background: var(--rose-tint); }
.go:active { transform: scale(.96); }
.empties { margin: 12px 0 0; font-size: 15px; }
.add { margin: 0; }
.add > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px;
  border-radius: 999px; color: var(--rose); font-size: 15px; font-weight: 600; cursor: pointer;
}
.add > summary::-webkit-details-marker { display: none; }
.add .plus { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rose);
  font-size: 19px; line-height: 1; }
.add[open] > summary .plus { background: var(--rose); color: var(--white); }
.search { display: flex; gap: 8px; align-items: flex-end; margin-top: 6px; }
.search .field { flex: 1 1 auto; }
.results { margin-top: 10px; }
.hits { display: flex; flex-direction: column; }
.hit { padding: 10px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 8px; }
.hit-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.hit-t { display: flex; flex-direction: column; line-height: 1.25; }
.hit .nm { font-weight: 600; }
.hit .nm .ver { font: inherit; color: inherit; }
.hit-meta { color: var(--mute); }
.hit-meta .mark { display: inline; border: 0; background: none; padding: 0; border-radius: 0; font-size: 15px; color: var(--mute); }
.hit-meta .mark::before { content: " · "; }
/* the thumbs and the three record buttons as two joined groups, one row */
.hit .actions { gap: 0; flex-wrap: wrap; row-gap: 8px; }
.hit .actions .rate { margin-right: 8px; }
.hit .actions > form:not(.rate) .btn { border-radius: 0; padding: 6px 13px; }
.hit .actions > form:not(.rate) + form .btn { margin-left: -1px; }
.hit .actions > .rate + form .btn { border-radius: var(--radius) 0 0 var(--radius); }
.hit .actions > form:last-of-type .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.kunde .rate { gap: 0; }
.kunde .rate .ico { border-radius: 0; width: 46px; }
.kunde .rate .ico + .ico { margin-left: -1px; }
.kunde .rate .ico:first-of-type { border-radius: var(--radius) 0 0 var(--radius); }
.kunde .rate .ico:last-of-type { border-radius: 0 var(--radius) var(--radius) 0; }
.kunde .rate .ico[aria-pressed="true"], .hit .actions .btn[aria-pressed="true"] { position: relative; z-index: 1; }

/* list head: «Empfehlungen» + the current Für · Budget · Katalog in words; a tap opens the three switches */
.lh { padding: 8px 20px 4px 24px; }
.fd > summary { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 2px 12px; min-height: 48px; cursor: pointer; }
.fd > summary::-webkit-details-marker { display: none; }
.lh h2 { margin: 0; font-size: 22px; flex: 1 1 auto; }
.fd-sum { color: var(--rose); font-size: 15px; font-weight: 600; }
.fd-chev { color: var(--rose); flex: none; transition: transform .2s; }
.fd[open] .fd-chev { transform: rotate(180deg); }
.fd-panel { display: flex; flex-direction: column; gap: 12px; padding: 4px 0 10px; }
.sw { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 600;
  color: var(--ink); text-decoration: none; }
.sw .track { width: 50px; height: 30px; border-radius: 15px; background: rgba(22, 19, 15, .16); position: relative; flex: none; transition: background .25s; }
.sw .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .25s; }
.sw[aria-checked="true"] .track { background: var(--ink); }
.sw[aria-checked="true"] .track::after { transform: translateX(20px); }
.sw-t { display: flex; flex-direction: column; line-height: 1.2; }
.sw small { display: block; font-weight: 400; color: var(--mute); font-size: 15px; }
.filt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin: 0; }
.f-lab { font-size: 15px; font-weight: 600; color: var(--rose); }
.filt .seg button { padding: 0 12px; font-size: 15px; font-weight: 600; }
.fd-panel .list-note { margin: -4px 0 0; }

/* cards: glass, open in place; rank = position + one word */
.cards { padding: 4px 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.list-note { font-size: 15px; color: var(--mute); margin: 2px 24px 8px; }
.hint { margin: 4px 22px 12px 24px; }
/* «Eher …»: one wrapped row of the Duftkarte directions above the cards, pressed = ink like the switches */
.eher { display: flex; flex-direction: column; gap: 6px; margin: 2px 18px 10px 24px; }
.eh-ch { display: flex; flex-wrap: wrap; gap: 6px; }
.eh-ch button { min-height: 44px; padding: 0 14px; border: 1px solid rgba(22, 19, 15, .18); border-radius: var(--radius);
  background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.eh-ch button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.card {
  position: relative; border-radius: var(--radius-l); background: var(--card); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: box-shadow .3s, background .3s;
}
.card.joker { background: var(--card-weak); border: 1.5px dashed rgba(140, 59, 30, .4); }
.card.on, .card:has(> details[open]) { background: var(--white); box-shadow: var(--shadow-on); }
.c-det > summary { list-style: none; }
.c-det > summary::-webkit-details-marker { display: none; }
.c-hit { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 4px 14px; align-items: start; padding: 14px 14px 14px 18px;
  border-radius: var(--radius-l); cursor: pointer; }
.c-main { min-width: 0; display: flex; flex-direction: column; }
.c-main > span { display: block; }
.c-rank .mark { border: 0; background: none; padding: 0; font-size: 15px; font-weight: 600; color: var(--rose); border-radius: 0; }
.c-name { font: 500 22px/1.15 var(--serif); margin: 2px 0 0; }
/* cards and catalogue rows: the version gets its own line under the name, as dark as the name (Lars, 04 Oct);
   inline it would wrap as a stray «· Eau de Toilette» line in the narrow rows */
.c-name .ver, .cat-row .ver { display: block; margin-top: 2px; white-space: normal; }
.c-name .ver::before, .cat-row .ver::before { content: none; }
.c-name .ver { font: 400 17px/1.3 var(--sans); color: var(--ink); }
/* brand · year · price class · marks: one quiet line; «Preis unbekannt» stays visibly marked (italic) */
.c-brand { font-size: 15px; color: var(--mute); margin-top: 3px; }
.c-hit .tile { width: 58px; height: 66px; }
.c-hit .tile-img { box-shadow: none; }
.c-more { padding: 0 14px 14px 18px; }
.c-det[open] .c-more { animation: open .35s ease both; }
@keyframes open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
/* «Warum» row of a card's Steckbrief: the reason line in the voice style, then the talking points */
.st-why .reason { font: italic 400 17px/1.35 var(--serif); color: var(--ink); margin: 0; }
.st-why .points { margin-top: 3px; }
.points { list-style: none; display: grid; gap: 3px; margin: 0; padding: 0; }
.points li { position: relative; padding-left: 20px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.points li::before { content: "–"; position: absolute; left: 2px; color: var(--rose); font-weight: 600; }
/* actions: the three reactions, then Tester · Gekauft · ✕ Nicht im Laden (as wide as its words) in one row */
.acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.acts form { margin: 0; }
.acts .acts-react { display: contents; }
.acts-2 { grid-column: 1 / -1; display: flex; gap: 6px; }
.a-tester, .a-buy { flex: 1 1 0; min-width: 0; display: flex; }
.a-strike { flex: none; display: flex; }
.a-btn { width: 100%; min-height: 48px; border-radius: var(--radius); display: flex; flex-direction: row; align-items: center; justify-content: center;
  gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.1; background: var(--white); border: 1px solid rgba(22, 19, 15, .18);
  color: var(--ink); padding: 6px 4px; text-align: center; cursor: pointer; transition: transform .12s; }
.a-btn:active { transform: scale(.97); }
.a-ico svg { width: 20px; height: 20px; display: block; }
.a-tester .a-btn { border-color: var(--rose); color: var(--rose); }
.a-buy .a-btn { background: var(--ink); color: var(--white); border-color: var(--ink); }
.a-strike .btn { min-height: 48px; padding: 6px 8px; white-space: nowrap; }
.btn.strike { color: var(--ink); }
.card.on .acts, .c-det[open] .acts { position: sticky; bottom: 0; z-index: 2; background: var(--white); padding: 6px 0 4px;
  border-radius: 0 0 var(--radius-l) var(--radius-l); }
.c-det[open] .acts::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px;
  background: linear-gradient(rgba(255, 253, 250, 0), var(--white)); pointer-events: none; }
.right-foot { height: 4px; }

/* the Duftkarte */
.map-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.map-h h2 { margin: 0; font-size: 22px; }
.legend-k { display: flex; gap: 16px; font-size: 15px; color: var(--mute); flex-wrap: wrap; }
.lg { display: inline-flex; align-items: center; gap: 7px; }
.lg svg { width: 30px; height: 15px; flex: none; }
.lg-prof rect { fill: rgba(22, 19, 15, .06); stroke: #16130F; stroke-width: 1.6; stroke-dasharray: 4 3; }
.lg-scent rect { fill: url(#hatchLg); stroke: #8C3B1E; stroke-width: 1.8; }
.radar-wrap { flex: 1; min-height: 0; position: relative; margin-top: 4px; }
#radar { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--sans); }
.read { border-top: 1px solid var(--hair); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.read p { margin: 0; font: italic 400 17px/1.35 var(--serif); color: var(--ink); min-height: 1.35em; }
.read small { font-size: 15px; color: var(--mute); }
.rd-ring { fill: none; stroke: rgba(22, 19, 15, .16); stroke-width: 1; }
.rd-ring-max { stroke: rgba(22, 19, 15, .4); stroke-width: 1.2; }
.rd-spoke { stroke: rgba(22, 19, 15, .12); stroke-width: 1; }
.rd-disc-bg { filter: drop-shadow(0 18px 30px rgba(60, 40, 20, .14)); }
.rd-lab { font-size: 16px; font-weight: 600; fill: #16130F; paint-order: stroke; stroke: #EEE8DF; stroke-width: 4px; stroke-linejoin: round; }
.rd-lab.on { fill: #8C3B1E; font-weight: 750; }
/* the direction of «Eher …»: underlined in rose, whatever scent is shown */
.rd-lab.lean { fill: #8C3B1E; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rd-prof-fill { fill: rgba(22, 19, 15, .06); }
.rd.has-scent .rd-prof-fill { fill: none; }
.rd-prof-line { fill: none; stroke: #16130F; stroke-width: 1.8; stroke-dasharray: 6 5; stroke-linejoin: round; }
.rd-prof circle { fill: #FFFDFA; stroke: #16130F; stroke-width: 1.6; }
/* B's warm glow under the tapped scent's shape (blurred copy of the shape, SVG filter #rdGlow), then the hatched shape */
.rd-glow { fill: rgba(214, 140, 90, .5); stroke: rgba(214, 140, 90, .55); stroke-width: 10; stroke-linejoin: round; }
.rd-scent-shape { fill: url(#rdHatch); stroke: #8C3B1E; stroke-width: 2.4; stroke-linejoin: round; }
.rd-scent circle { fill: #8C3B1E; stroke: #FFFDFA; stroke-width: 1.5; }

/* Steckbrief of the tapped scent under the Duftkarte (Lars, 04 Oct): the map gets smaller, the Steckbrief scrolls.
   Lean: brand, name + version, one meta line in words, then one label column; marks and chips read as plain text. */
.steck-box { display: none; }
.col-r.has-steck .steck-box { display: block; flex: 1 1 0; min-height: 0; overflow-y: auto; scrollbar-width: thin;
  margin-top: 8px; padding: 10px 4px 6px 0; border-top: 1px solid var(--hair-strong); }
.col-r.has-steck .radar-wrap { flex: 0 0 auto; height: 27vh; height: 27dvh; min-height: 215px; }
/* the reading hint belongs to the map alone; with a Steckbrief the comparison line says it */
.col-r.has-steck .read { display: none; }   /* its line is the Steckbrief's «Vergleich» row */
/* map + Steckbrief: title and legend sit in the empty top-left corner of the map, so the Steckbrief keeps the
   height for its «Warum» row (Lars, 04 Oct: «leaner», nothing dropped) */
.col-r.has-steck .map-h { position: absolute; z-index: 2; top: 20px; left: 30px; max-width: 150px; flex-direction: column;
  align-items: flex-start; gap: 4px; pointer-events: none; }
.col-r.has-steck .legend-k { flex-direction: column; gap: 3px; }
.col-r.has-steck .radar-wrap { margin-top: 0; }
.st-head { display: flex; gap: 12px; align-items: flex-start; }
.st-name { margin: 3px 0 0; font: 500 22px/1.25 var(--serif); }
.st-name .ver { font: 400 17px/1.25 var(--sans); color: var(--ink); }
.st-go { flex: none; gap: 2px; padding-right: 4px; margin-top: -4px; }
.st-meta { margin: 2px 0 0; font-size: 15px; color: var(--mute); }
.st-meta > * + *::before { content: " · "; font-style: normal; }
.steck .st-meta .mark { display: inline; border: 0; background: none; padding: 0; border-radius: 0; font: inherit; color: inherit; white-space: normal; }
.steck .st-meta .mark.price.unknown { font-style: italic; }
.st-spec { margin: 8px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 18px; }
.st-spec > div { display: contents; }
.st-spec dt { color: var(--rose); font-size: 15px; font-weight: 600; padding-top: 2px; }
.st-spec dd { margin: 0; min-width: 0; }
.st-dirs span + span::before { content: " · "; }
.steck .lf-anlass { display: block; }
.steck .lf-chips { display: inline; }
.steck .lf-chips li, .steck .lf-chips.ideal li { display: inline; border: 0; background: none; padding: 0; border-radius: 0; font: inherit; color: inherit; }
.steck .lf-chips li + li::before { content: " · "; }
.steck .g-lead { margin-right: 6px; }
.steck .g-also { margin-left: 10px; }
.steck .lf-seasons { gap: 2px 10px; }
.steck .s-icons { gap: 2px; }
.steck .s-ico { width: 28px; height: 28px; }
.steck .s-ico svg { width: 20px; height: 20px; }
.steck .s-text { font: 400 17px/1.35 var(--sans); color: var(--ink); }
/* «Eindruck»: what the reviews agree on, in the voice style (serif italic) like the reason lines */
.konsens { font: italic 400 17px/1.35 var(--serif); color: var(--ink); }
.konsens-box .konsens { font-size: 19px; margin: 0 0 6px; }

/* portrait: the scent map sticks to the top, the list scrolls underneath it */
@media (max-aspect-ratio: 1/1) {
  .kunde { display: flex; flex-direction: column; height: auto; min-height: calc(100vh - var(--top-h)); }
  .col-l { display: contents; }
  .m1 { order: 0; position: static; padding: 14px 22px 6px 24px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mast { order: 0; padding: 0 22px 12px 24px; }
  .col-r { order: 1; position: sticky; top: 0; z-index: 5; height: 490px; padding: 12px 22px 10px;
    background: rgba(238, 232, 223, .97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hair); box-shadow: 0 12px 24px -20px rgba(40, 30, 20, .4); }
  .map-h { align-items: center; }
  .lh { order: 2; }
  .hint, .list-note, .eher { order: 2; }
  .cards { order: 3; padding-bottom: 40px; }
  .right-foot { order: 4; }
  .c-hit { grid-template-columns: minmax(0, 1fr) 64px; }
}

/* ---------- Katalog + Duft */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters .field.grow { flex: 1 1 260px; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); column-gap: 22px; }
.catalog > li { border-top: 1px solid var(--hair); }
.cat-row { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 10px 4px; color: var(--ink); text-decoration: none;
  border-radius: 14px; transition: background .2s; }
.cat-row:hover { background: rgba(255, 253, 250, .7); }
.cat-row .grow { display: flex; flex-direction: column; }
.cat-row .nm { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.2; }
/* version next to a scent name (duftcore.version): written out and dark, not a grey footnote (Lars, 04 Oct) */
.ver { font-family: var(--sans); font-weight: 500; font-size: max(15px, .9em); color: var(--ink2); white-space: nowrap; }
.ver::before { content: " · "; white-space: pre; }
.nowrap { white-space: nowrap; }
.cat-row .marks { flex: none; }
.duft { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .duft { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.back { display: inline-flex; align-items: center; min-height: 44px; }
.for-cust .back { margin-top: 6px; }
.duft-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 14px; }
.duft-head h1 { margin: 2px 0 4px; font-size: 36px; }
.duft-head .marks { margin-top: 10px; }
.desc { font-size: 19px; font-family: var(--serif); font-style: italic; color: var(--ink2); }
.pyramid { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 18px 0; }
.lvl { border: 1px solid var(--hair); border-radius: 14px; background: var(--white); padding: 10px 14px; text-align: center; }
.lvl h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--rose); margin: 0 0 2px; }
.lvl p { margin: 0; }
.lvl.top { width: 62%; }
.lvl.heart { width: 81%; }
.lvl.base { width: 100%; }
.lvl.flat { width: 100%; }
.duft .sub { font-size: 21px; margin: 20px 0 8px; }
.dir-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.dir-chips li { font-size: 15px; line-height: 1.3; padding: 3px 11px; border-radius: 999px; color: #2a2723; box-shadow: inset 0 0 0 1px rgba(22, 19, 15, .08); }
.dir-chips li.main { font-weight: 600; }
/* Leitfaden (leitfaden.py, Duft page + opened card): community data as words, never a percentage or a score.
   Anlass chips, four season symbols (fitting ones in the accent, the others faint) + one sentence, Wirkung words,
   Bekanntheit tier as a mark. */
.lf-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lf-chips li { font-size: 15px; line-height: 1.3; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--hair-strong);
  background: var(--white); color: var(--ink2); }
.lf-chips.ideal li { background: var(--rose-tint); border-color: rgba(140, 59, 30, .32); color: var(--rose-dark); font-weight: 600; }
.lf-anlass { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.g-lead, .g-also { font-size: 15px; color: var(--mute); }
.lf-seasons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.s-icons { display: inline-flex; gap: 4px; flex: none; }
.s-ico { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: var(--mute); opacity: .32; border: 1px solid transparent; }
.s-ico.on { opacity: 1; color: var(--rose); background: var(--rose-tint); border-color: rgba(140, 59, 30, .28); }
.s-ico svg { display: block; width: 22px; height: 22px; }
.s-text { font: italic 400 17px/1.3 var(--serif); color: var(--ink2); }
.mark.fame { border-color: rgba(140, 59, 30, .45); color: var(--rose-dark); font-weight: 600; }
.spec { margin: 14px 0; display: flex; flex-direction: column; gap: 0; }
.spec > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.spec dt { color: var(--rose); font-size: 15px; font-weight: 600; padding-top: 2px; }
.spec dd { margin: 0; min-width: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 15px; line-height: 1.3; padding: 2px 10px; border: 1px solid var(--hair-strong); border-radius: 999px; background: var(--white); }
.eans li { font-variant-numeric: tabular-nums; }
.layer .mute:empty { display: none; }
.for-cust { background: var(--rose-tint); border: 1px solid rgba(140, 59, 30, .35); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.for-cust h2 { font-size: 20px; color: var(--rose-dark); }
.for-cust p { margin: 10px 0 0; }
.inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Laden */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid rgba(22, 19, 15, .18); border-radius: var(--radius); overflow: hidden;
  background: var(--white); }
.seg a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink); text-decoration: none; background: var(--white); }
.seg a + a { border-left: 1px solid var(--hair); }
.seg a[aria-current="true"] { background: var(--ink); color: var(--white); font-weight: 600; }
/* «Düfte für», «Budget»: the same segmented look, as buttons (customer page) and radios (new customer) */
.seg button, .seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--ink);
  background: var(--white); border: 0; font: inherit; cursor: pointer; white-space: nowrap; }
.seg button + button, .seg label + label span { border-left: 1px solid var(--hair); }
.seg button[aria-pressed="true"], .seg input:checked + span { background: var(--ink); color: var(--white); font-weight: 600; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.seg label { display: inline-flex; position: relative; }
.fuer-new { border: 0; padding: 0; margin: 0; grid-column: 1 / -1; min-width: 0; }
.fuer-new .seg { align-self: flex-start; }
.fuer-new legend { padding: 0; margin-bottom: 6px; font-size: 15px; color: var(--mute); }
.figures { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.fig .num { font-family: var(--serif); font-size: 48px; font-weight: 400; line-height: 1.05; font-variant-numeric: lining-nums;
  color: var(--rose); padding-top: 4px; }
.fig .lbl { font-size: 17px; font-weight: 600; }
.fig .sub { font-size: 15px; color: var(--mute); margin-top: 4px; }
.fig.accent { border-color: rgba(140, 59, 30, .45); box-shadow: var(--shadow), inset 0 0 0 1px rgba(140, 59, 30, .25); }
.fig.accent .num { color: var(--rose); }
.laden-grid { columns: 3 320px; column-gap: 18px; }
.laden-grid > .panel { break-inside: avoid; margin-bottom: 18px; }
.laden-pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); align-items: start; margin-bottom: 18px; }
.laden-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sortiment .brands { grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); max-height: 440px; overflow-y: auto; }
.brand-filter { display: block; max-width: 360px; margin: 4px 0 10px; }
.more { margin-top: 12px; }
.laden-grid h3 { margin-top: 18px; }
.laden-grid .panel > h2 + h2, .laden-grid ul + h2, .laden-grid p + h2 { margin-top: 20px; }
.inline-ico svg { width: 18px; height: 18px; vertical-align: -3px; }
.bars { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 14px; }
.bar-row { display: grid; grid-template-columns: 76px 1fr 1fr; gap: 10px; align-items: center; min-height: 30px; }
.bar-row.head { font-size: 15px; color: var(--mute); }
.bc { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bar { display: block; height: 16px; border-radius: 4px; flex: none; max-width: calc(100% - 44px); }
.bar.like { background: var(--rose-soft); }
.bar.buy { background: var(--rose); }
.bv { font-size: 15px; font-variant-numeric: tabular-nums; }
.joker-line { margin: 0; }
.kv { display: flex; flex-direction: column; }
.kv > li { display: flex; gap: 4px 12px; align-items: center; min-height: 48px; border-top: 1px solid var(--hair); padding: 2px 0; }
.kv > li > .mute:last-child { margin-left: auto; text-align: right; flex: 0 1 auto; }
.kv > li > a { color: var(--ink); text-decoration: none; min-height: 44px; min-width: 0; flex: 1 1 0; display: inline-flex; align-items: center; gap: 0 6px; flex-wrap: wrap; }
.kv form { margin: 0; }
ol.kv { counter-reset: n; }
ol.kv > li::before { counter-increment: n; content: counter(n, decimal-leading-zero); color: var(--rose); font-family: var(--serif); min-width: 28px; }
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; margin-bottom: 8px; }
.brands form { margin: 0; }
.check-btn {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 4px 6px;
  background: none; border: 0; cursor: pointer; text-align: left; border-radius: 10px;
}
.check-btn .box { width: 22px; height: 22px; border: 1.5px solid var(--mute); border-radius: 6px; flex: none; background: #fff; position: relative; }
.check-btn[aria-checked="true"] .box { background: var(--ink); border-color: var(--ink); }
.check-btn[aria-checked="true"] .box::after {
  content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.house-form { display: flex; flex-direction: column; gap: 12px; }
.house-form .btn { align-self: flex-start; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  border: 1px solid var(--hair-strong); border-radius: 999px; background: #fff; cursor: pointer;
}
.facts { margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.facts > div { display: flex; gap: 12px; }
.facts dt { color: var(--mute); min-width: 100px; }
.facts dd { margin: 0; }

/* ---------- charts (Laden) */
.chart-panel { margin-bottom: 18px; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 8px; }
.chart-head h2 { margin: 0; }
.chart-sub { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--rose); margin: 14px 0 4px; }
.chart-pair { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); align-items: start; }
.chart-pair > .panel { margin-bottom: 18px; }
.chart { margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 2px 16px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 15px; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .key { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.plot-wrap { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 190px; }
.yticks { display: flex; flex-direction: column; justify-content: space-between; font-size: 15px; color: var(--mute);
  text-align: right; line-height: 1; transform: translateY(-.5em); height: calc(100% + 1em); margin-bottom: -1em; }
.plot { position: relative; border-bottom: 1px solid var(--hair-strong); }
.plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.plot .grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.plot .grid span { border-top: 1px dashed var(--hair); }
.plot .grid span:last-child { border: 0; }
.plot .dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--white); }
.xlabels { position: relative; height: 24px; margin: 4px 0 0 calc(var(--ytick-w, 2.2em) + 8px); font-size: 15px; color: var(--mute); }
.xlabels span { position: absolute; transform: translateX(-50%); white-space: nowrap; top: 2px; }
.xlabels span.first { transform: none; }
.xlabels span.last { transform: translateX(-100%); }
.line-chart .plot-wrap { grid-template-columns: 2.2em 1fr; }
.cols .col-row { display: flex; align-items: flex-end; gap: 4px; height: 130px; border-bottom: 1px solid var(--hair-strong); }
.cols .col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cols .col-bar { display: block; width: 100%; max-width: 40px; background: #DDBCA6; border-radius: 6px 6px 0 0; min-height: 0; }
.cols .col.peak .col-bar { background: var(--rose); }
.cols .col-v { font-size: 15px; color: var(--mute); line-height: 1.4; }
.cols .col.peak .col-v { color: var(--rose-dark); font-weight: 600; }
.cols .col-labels { display: flex; gap: 4px; font-size: 15px; color: var(--mute); margin-top: 4px; }
.cols .col-labels span { flex: 1 1 0; min-width: 0; text-align: center; }
.donuts { display: grid; gap: 18px 16px; grid-template-columns: repeat(auto-fit, minmax(min(265px, 100%), 1fr)); }
.donut { display: flex; align-items: center; gap: 12px; }
.donut .ring { position: relative; width: 84px; height: 84px; flex: none; }
.donut .legend li { white-space: nowrap; }
.donut .ring svg { width: 100%; height: 100%; transform: rotate(0deg); }
.donut .ring-c { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.donut figcaption { min-width: 0; }
.donut .ring-t { font-weight: 600; }
.donut .legend { flex-direction: column; gap: 0; margin-top: 2px; }
.seasons { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.season { border: 1px solid var(--hair); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; background: rgba(255, 253, 250, .55); }
.season.now { border: 1.5px solid var(--rose); padding: 11.5px 13.5px; background: var(--white); }
.season-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.season-name { font-family: var(--serif); font-size: 21px; font-weight: 500; }
.season-nums { display: flex; gap: 14px; flex-wrap: wrap; }
.season-bar { height: 8px; background: var(--hair); border-radius: 4px; overflow: hidden; }
.season-bar span { display: block; height: 100%; background: var(--rose); }
.stackbar { display: flex; height: 14px; border-radius: 4px; overflow: hidden; margin-top: 6px; }
.stackbar span { display: block; height: 100%; }
.stackbar span + span { border-left: 1px solid var(--white); }
.small-legend { margin-top: 2px; gap: 0 12px; }
.season-top { margin: 4px 0 0; padding: 0; list-style: none; }
.season-top li { display: flex; align-items: center; gap: 6px; }
.season-top a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
/* narrow season cards: the version goes under the name instead of running out of the card */
.season-top a { flex-direction: column; align-items: flex-start; justify-content: center; }
.season-top .ver { font-size: 15px; white-space: normal; }
.season-top .ver::before { content: none; }
.more a { display: inline-flex; align-items: center; min-height: 44px; }
.plan { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  border: 1.5px solid var(--rose); background: var(--rose-tint); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
.plan-name { font-weight: 700; }
.plan-price { color: var(--rose-dark); font-weight: 600; }
.bands { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.bands form { margin: 0; display: flex; }
.band {
  display: flex; align-items: center; justify-content: space-between; gap: 4px 12px; flex-wrap: wrap; width: 100%;
  min-height: 52px; padding: 8px 14px; border: 1px solid var(--hair-strong); border-radius: var(--radius);
  background: var(--white); cursor: pointer; text-align: left;
}
.band[aria-pressed="true"] { border: 2px solid var(--rose); background: var(--rose-tint); padding: 7px 13px; }
.band-name { font-weight: 700; }
.band-who { font-size: 15px; font-weight: 400; color: var(--mute); margin-left: 8px; }
.band-price { color: var(--ink); }
.band[aria-pressed="true"] .band-price { color: var(--rose-dark); font-weight: 600; }
dialog {
  border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-l); background: var(--white); color: var(--ink);
  max-width: 480px; width: calc(100% - 40px); padding: 24px; box-shadow: 0 30px 60px -20px rgba(40, 30, 20, .45);
}
dialog::backdrop { background: rgba(22, 19, 15, .35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog form { margin: 0; }

/* ---------- toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 16px; max-width: calc(100% - 32px); width: max-content;
  background: var(--ink); color: var(--white); border-radius: 14px; padding: 8px 8px 8px 20px; font-size: 16px; font-weight: 500;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .45); z-index: 10; animation: toast-in .3s ease-out;
}
.toast.is-static { position: static; transform: none; margin: 20px auto 0; animation: none; }
.toast form { margin: 0; }
.toast.error { background: var(--error); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- portrait / narrow */
@media (max-width: 999px) {
  main { padding: 16px 16px 96px; }
  header.top { padding: 0 14px 0 18px; gap: 10px; }
}
@media (max-width: 640px) {
  .figures { grid-template-columns: 1fr; }
  .two { grid-template-columns: 1fr; }
  .catalog { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* portrait + Steckbrief: the map keeps sticking above the list, a little smaller, the Steckbrief scrolls under it */
@media (max-aspect-ratio: 1/1) {
  .col-r.has-steck { height: 70vh; height: 70dvh; }
  .col-r.has-steck .radar-wrap { height: 270px; min-height: 0; }
  .col-r.has-steck .map-h { top: 12px; left: 22px; }
  .col-r.has-steck .steck-box { margin-top: 8px; padding-top: 10px; }
}
