/* Whisky-Tasting – warme Farben wie die Papierkarte: Creme, Torfbraun, Bernstein */
:root {
  --bg: #f6efe3;
  --paper: #fffaf2;
  --ink: #2b1a10;
  --ink-2: #5b4433;
  --muted: #8a7461;
  --line: #e4d6c1;
  --amber: #d9952a;
  --amber-2: #b8741a;
  --amber-soft: #f6e2bb;
  --peat: #3e2a1c;
  --green: #4f7a3a;
  --red: #a63a2a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(43, 26, 16, .06), 0 6px 20px rgba(43, 26, 16, .06);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--bg);
  background-image:
    repeating-linear-gradient(90deg, rgba(139, 90, 43, .035) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(0deg, rgba(139, 90, 43, .035) 0 2px, transparent 2px 46px);
}
a { color: var(--amber-2); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--peat); }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
code { background: var(--amber-soft); padding: .1em .35em; border-radius: 4px; }
[hidden] { display: none !important; }
.mt { margin-top: 1rem; display: block; }
.mb { margin-bottom: 1rem; }

/* ---------- Kopf & Navigation ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; gap: 1.5rem;
  padding: .55rem clamp(1rem, 3vw, 2rem); background: var(--ink); color: #f3e6cf;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.brand { display: flex; align-items: center; gap: .55rem; color: #f8ecd5; text-decoration: none; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; }
.brand img { width: 34px; height: 34px; }
.mainnav { display: flex; gap: .25rem; }
.mainnav a { display: flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; color: #e8d6b8; text-decoration: none; font-size: .95rem; }
.mainnav a:hover { background: rgba(255, 255, 255, .08); }
.mainnav a.active { background: var(--amber); color: var(--ink); font-weight: 600; }
.topbar-extra { margin-left: auto; display: flex; gap: 1rem; font-size: .9rem; }
.topbar-extra a { color: #cdb894; text-decoration: none; }
.topbar-extra a:hover { color: #fff; }
.wrap { max-width: 1180px; margin: 0 auto; padding: clamp(1rem, 3vw, 2rem); padding-bottom: 6rem; }

/* Icons über CSS-Masken */
.ico { display: inline-block; width: 1.15em; height: 1.15em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; vertical-align: -.2em; flex: none; }
.ico.big { width: 2.6rem; height: 2.6rem; }
.ico-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }
.ico-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11M4 6h.01M4 12h.01M4 18h.01'/%3E%3C/svg%3E"); }
.ico-map { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M9 4L3 6v14l6-2 6 2 6-2V4l-6 2zM9 4v14M15 6v14'/%3E%3C/svg%3E"); }
.ico-radar { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2l9 6.5-3.5 11h-11L3 8.5z'/%3E%3Cpath d='M12 7l4.5 3.3-1.7 5.2H9.2l-1.7-5.2z'/%3E%3C/svg%3E"); }
.ico-camera { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E"); }
.ico-bottle { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M10 2h4v4c0 1 3 2 3 6v9a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-9c0-4 3-5 3-6z'/%3E%3Cpath d='M7 13h10v5H7z'/%3E%3C/svg%3E"); }

/* ---------- Bausteine ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.5rem); box-shadow: var(--shadow); margin-bottom: 1.25rem; }
.card-accent { border-top: 4px solid var(--amber); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.card-head h2 { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 1.25rem; align-items: start; }
.grid-2.tight { gap: 1rem 2rem; }
.grid-2 > .card, .grid-2 > .stack > .card { margin-bottom: 0; }
.grid-2 + .grid-2, .grid-2 + .card, .card + .grid-2 { margin-top: 1.25rem; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.empty { color: var(--muted); font-style: italic; }
.note { display: flex; align-items: center; gap: .6rem; color: var(--ink-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--amber-2); font-weight: 700; margin: 0 0 .3rem; }
.page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.links { display: flex; gap: 1rem; flex-wrap: wrap; }
.source { font-size: .8rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: .6rem; margin-top: 1rem; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: var(--amber-soft); font-size: .85rem; margin: .15rem 0; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; background: var(--amber-soft); color: var(--peat); font-weight: 600; }
.badge-fertig { background: #dfeccf; color: #2f5320; }
.badge-fehler { background: #f4d4cc; color: var(--red); }
.badge-laeuft, .badge-offen { background: #f3e6c4; }

.flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1rem; background: #e5efd8; border: 1px solid #c4d9ab; color: #2f5320; }
.flash-error { background: #f8e0d9; border-color: #e8b5a8; color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .08s, background .15s, box-shadow .15s; min-height: 44px;
}
.btn:hover { background: #fdf4e5; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); border-color: var(--amber-2); color: var(--ink); box-shadow: 0 2px 0 var(--amber-2); }
.btn-primary:hover { background: #e3a43a; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-danger { color: var(--red); border-color: #e8b5a8; background: #fff; }
.btn-small { padding: .3rem .8rem; min-height: 34px; font-size: .85rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1.05rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* Formulare */
label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
input, select, textarea {
  font: 400 1rem var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; width: 100%; min-height: 44px;
}
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; padding: 0; }
.swatch, .chip, .segmented label, .switch { position: relative; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus, .star-input:focus { outline: 3px solid rgba(217, 149, 42, .35); border-color: var(--amber); outline-offset: 0; }
input.filled, select.filled { background: #fff7e3; border-color: var(--amber); transition: background 1s; }
label.check { flex-direction: row; align-items: center; font-weight: 500; gap: .5rem; }
label.check input { width: auto; min-height: 0; }
.field-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem 1rem; }
.field-grid .span-2 { grid-column: span 2; }
.ok-hint { color: var(--green); font-weight: 500; }
.inline-form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; }
.inline-form label { flex: 1; min-width: 200px; }

/* ---------- Anmeldung ---------- */
body.bare .wrap { min-height: 100vh; display: grid; place-items: center; padding-bottom: 2rem; }
.auth-card { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.auth-card form { text-align: left; margin-top: 1rem; }
.auth-logo { width: 72px; height: 72px; margin-bottom: .5rem; }

/* ---------- Übersicht ---------- */
.hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, #3b2416, #2b1a10 60%); color: #f3e6cf; border-radius: 18px; padding: clamp(1.25rem, 4vw, 2.25rem);
  margin-bottom: 1.25rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 149, 42, .35), transparent 70%); }
.hero h1 { color: #fbeed6; }
.hero p { margin: 0; color: #d8c2a0; max-width: 52ch; }
.hero .btn { position: relative; z-index: 1; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); }
.tile b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--amber-2); line-height: 1.1; }
.tile span { color: var(--muted); font-size: .9rem; }

.rank-list { list-style: none; padding: 0; margin: 0; }
.rank-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.rank-list li:last-child { border-bottom: 0; }
.rank-list a { flex: 1; color: var(--ink); text-decoration: none; font-weight: 600; }
.rank-no { width: 1.9rem; height: 1.9rem; flex: none; border-radius: 50%; background: var(--amber-soft); color: var(--peat); display: grid; place-items: center; font: 700 .9rem var(--serif); }
.rank-no:empty { visibility: hidden; }

.recent { list-style: none; padding: 0; margin: 0; }
.recent a { display: flex; align-items: center; gap: .8rem; padding: .5rem 0; color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--line); }
.recent li:last-child a { border-bottom: 0; }
.recent img, .recent .noimg, .ranking img, .ranking .noimg { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; flex: none; background: var(--amber-soft); }
.recent a > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.recent small { color: var(--muted); }
.noimg { display: grid; place-items: center; color: var(--amber-2); background: var(--amber-soft); border-radius: 12px; }
.noimg.big { width: 100%; aspect-ratio: 3 / 4; }
.noimg.big .ico { width: 4rem; height: 4rem; opacity: .5; }

/* Sterne */
.stars { display: inline-flex; gap: 1px; white-space: nowrap; }
.star { display: inline-block; width: 1.05em; height: 1.05em; background: #dccbb3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.star.full { background: var(--amber); }
.star.half { background: linear-gradient(90deg, var(--amber) 50%, #dccbb3 50%); }
.star-input { display: inline-flex; align-items: center; gap: .15rem; padding: .25rem .4rem; border-radius: 10px; cursor: pointer; user-select: none; }
.star-input .star { width: 2.2rem; height: 2.2rem; }
.star-input output { margin-left: .5rem; font: 700 1.1rem var(--serif); color: var(--peat); min-width: 2.2em; }
.star-clear { border: 0; background: none; font-size: 1.3rem; color: var(--muted); cursor: pointer; padding: 0 .4rem; }
.rating-line { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-weight: 600; color: var(--ink-2); margin: .5rem 0 1rem; }
.rating-line.big .star-input .star { width: 2.6rem; height: 2.6rem; }

/* ---------- Neue Verkostung ---------- */
.photo-drop { position: relative; display: block; border: 2px dashed #d7b98b; border-radius: var(--radius); background: #fff8ec; cursor: pointer; overflow: hidden; min-height: 220px; }
.photo-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.photo-drop-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; color: var(--amber-2); text-align: center; padding: 1rem; }
.photo-drop-inner small { color: var(--muted); font-weight: 400; }
.photo-drop img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #2b1a10; }
.photo-drop.has-photo .photo-drop-inner { display: none; }
.photo-drop.has-photo { min-height: 0; }
.photo-drop { cursor: default; }
.photo-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.photo-buttons .btn { cursor: pointer; flex-direction: row; font-weight: 600; color: var(--ink); }
/* Mehrere Fotos */
.photo-picker { display: grid; gap: .75rem; }
.photo-empty { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; padding: 1.4rem 1rem; border: 2px dashed #d7b98b; border-radius: var(--radius); background: #fff8ec; color: var(--amber-2); }
.photo-empty small { color: var(--muted); }
.photo-picker.has-photos .photo-empty { display: none; }
.photo-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; }
.photo-list:empty { display: none; }
.photo-item { position: relative; display: grid; gap: .35rem; background: #fff8ec; border: 1px solid #ead6b4; border-radius: 12px; padding: .4rem; }
.photo-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; background: #2b1a10; display: block; }
.photo-item select { font-size: .85rem; padding: .3rem .4rem; width: 100%; }
.photo-remove { position: absolute; top: .3rem; right: .3rem; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: rgba(43,26,16,.8); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.photo-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; margin-top: .5rem; }
.photo-gallery a { display: block; position: relative; text-decoration: none; }
.photo-manage + h3, .photo-picker-title { margin: 1rem 0 .5rem; }
.photo-gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; background: #2b1a10; }
.photo-gallery span { display: block; font-size: .7rem; color: var(--muted); text-align: center; line-height: 1.2; margin-top: .15rem; }
.photo-manage { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.photo-manage li { display: grid; gap: .35rem; background: #fff8ec; border: 1px solid #ead6b4; border-radius: 12px; padding: .4rem; }
.photo-manage li.is-cover { border-color: var(--amber-2); box-shadow: 0 0 0 2px #e9c58c; }
.photo-manage img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; display: block; background: #2b1a10; }
.photo-manage .row-btns { display: flex; gap: .3rem; flex-wrap: wrap; }
.photo-manage select { font-size: .85rem; padding: .3rem .4rem; width: 100%; }
.ico-image { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E"); }

/* ---------- Tasting-Karte ---------- */
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.form-head h1 { margin: 0; }
.form-head-actions { display: flex; gap: .5rem; }
.form-foot { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.bottle-card { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
.bottle-photo img { width: 100%; border-radius: 12px; display: block; max-height: 420px; object-fit: cover; background: #2b1a10; }
.ai-status { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 10px; background: #fff3d9; border: 1px solid #efd39c; margin-bottom: 1rem; color: var(--ink-2); font-size: .92rem; }
.ai-status.done { background: #e9f2dd; border-color: #c4d9ab; color: #2f5320; }
.spinner { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2.5px solid #efd39c; border-top-color: var(--amber-2); animation: spin .9s linear infinite; flex: none; }
.ok-dot { width: .8rem; height: .8rem; border-radius: 50%; background: var(--green); flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.scale-row { display: flex; align-items: center; gap: .75rem; font-size: .85rem; color: var(--muted); }
.glanz-range { accent-color: var(--amber-2); padding: 0; border: 0; background: none; min-height: 32px; opacity: .55; }
.glanz-range.set { opacity: 1; }
.color-scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: .3rem; }
.swatch { align-items: center; gap: .3rem; cursor: pointer; font-weight: 500; text-align: center; }
.swatch input { position: absolute; opacity: 0; pointer-events: none; }
.swatch span { width: 100%; aspect-ratio: 1 / 1.4; border-radius: 6px 6px 40% 40% / 6px 6px 22% 22%; background: var(--c); border: 1px solid rgba(43, 26, 16, .15); box-shadow: inset 0 -8px 12px rgba(0, 0, 0, .12), inset 0 4px 6px rgba(255, 255, 255, .35); transition: transform .12s; }
.swatch small { font-size: .62rem; line-height: 1.1; color: var(--muted); hyphens: auto; }
.swatch input:checked + span { transform: translateY(-4px); outline: 3px solid var(--peat); outline-offset: 2px; }
.swatch input:checked ~ small { color: var(--peat); font-weight: 700; }
.swatch input:focus-visible + span { outline: 3px solid var(--amber); }

/* Aromen-Rad */
.wheel { margin: .5rem 0 1rem; }
.wheel-svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.wheel-svg .cell { fill: transparent; cursor: pointer; transition: fill .12s; }
.wheel-svg .cell:hover { fill: rgba(217, 149, 42, .12); }
.wheel-svg .cell.lit { fill: rgba(217, 149, 42, .22); }
.wheel-svg .ring { fill: none; stroke: #c8b291; stroke-width: 1; pointer-events: none; }
.wheel-svg .spoke { stroke: #c8b291; stroke-width: 1; pointer-events: none; }
.wheel-svg .value { fill: rgba(184, 116, 26, .35); stroke: var(--amber-2); stroke-width: 2.2; stroke-linejoin: round; pointer-events: none; }
.wheel-svg .dot { fill: var(--amber-2); stroke: #fff; stroke-width: 1.5; pointer-events: none; }
.wheel-svg .dot.zero { opacity: 0; }
.wheel-svg .hub { fill: var(--peat); pointer-events: none; }
.wheel-svg .lbl { font: 600 11.5px var(--sans); fill: var(--muted); cursor: pointer; letter-spacing: .02em; }
.wheel-svg .lbl.on { fill: var(--peat); font-weight: 800; }
.wheel-details { font-size: .85rem; margin-top: .25rem; }
.wheel-details summary { cursor: pointer; color: var(--muted); }
.wheel-fallback { display: grid; gap: .2rem; margin-top: .5rem; }
.wheel-row { flex-direction: row; align-items: center; gap: .6rem; font-weight: 500; }
.wheel-row span { width: 7rem; }
.wheel-row input { padding: 0; border: 0; min-height: 28px; accent-color: var(--amber-2); background: none; }
.wheel-row output { width: 1.2rem; text-align: right; font-weight: 700; }

/* Chips & Segmente */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip input, .segmented input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: .5rem 1rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; min-height: 40px; }
.chip input:checked + span { background: var(--peat); color: #f8ecd5; border-color: var(--peat); }
.chip input:focus-visible + span, .segmented input:focus-visible + span { outline: 3px solid var(--amber); }
.segmented { display: grid; grid-template-columns: repeat(4, 1fr); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.segmented.wide { grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.segmented label { font-weight: 600; }
.segmented span { display: grid; place-items: center; text-align: center; padding: .6rem .3rem; cursor: pointer; border-left: 1px solid var(--line); min-height: 44px; font-size: .9rem; }
.segmented label:first-child span { border-left: 0; }
.segmented input:checked + span { background: var(--amber); color: var(--ink); }

/* Schalter Wasser */
.switch { flex-direction: row; align-items: center; gap: .75rem; font-size: 1.05rem; color: var(--peat); cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 50px; height: 28px; border-radius: 999px; background: #d9cbb6; position: relative; transition: background .2s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .2s; }
.switch input:checked + span { background: #5b8fb0; }
.switch input:checked + span::after { left: 25px; }
.switch input:focus-visible + span { outline: 3px solid var(--amber); }
.water-card { border-left: 4px solid #8db7d1; }
.water-fields { margin-top: 1rem; }

/* ---------- Whisky-Detail ---------- */
.whisky-head { display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem; align-items: start; }
.whisky-head h1 { margin-bottom: .4rem; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.facts span { background: var(--amber-soft); border-radius: 999px; padding: .2rem .8rem; font-size: .9rem; }
.avg-line { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; font-size: 1.3rem; }
.avg-line .muted { font-size: .9rem; }
.actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.official { margin: 0; display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; }
.official dt { font-weight: 700; color: var(--amber-2); font-family: var(--serif); }
.official dd { margin: 0; }
.mini-map { height: 220px; border-radius: 12px; margin: .75rem 0; border: 1px solid var(--line); z-index: 0; }
.mini-map.tall { height: 340px; margin: 0; }
.radar-pair { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.radar-pair figure { margin: 0; text-align: center; flex: 1 1 240px; max-width: 320px; }
.radar-pair figcaption { font: 600 .95rem var(--serif); color: var(--ink-2); }
.radar { width: 100%; max-width: 320px; }
.radar .ring { fill: none; stroke: #dccab0; stroke-width: 1; }
.radar .spoke { stroke: #dccab0; stroke-width: 1; }
.radar text { font: 600 10.5px var(--sans); fill: var(--muted); }
.radar .series { stroke-width: 2; stroke-linejoin: round; }
.radar .s0 { fill: rgba(184, 116, 26, .32); stroke: var(--amber-2); }
.radar .s1 { fill: rgba(91, 143, 176, .25); stroke: #4e7f9f; }
.legend { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.lg { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-left: .5rem; }
.lg.s0 { background: rgba(184, 116, 26, .5); border: 2px solid var(--amber-2); }
.lg.s1 { background: rgba(91, 143, 176, .4); border: 2px solid #4e7f9f; }
.timeline { display: flex; flex-direction: column; gap: 1rem; }
.tasting { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; scroll-margin-top: 80px; }
.tasting:target { box-shadow: 0 0 0 3px var(--amber); }
.tasting header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-bottom: 1px dashed var(--line); padding-bottom: .6rem; margin-bottom: .75rem; }
.tasting-body { display: grid; grid-template-columns: 1fr 240px; gap: 1rem; }
.tasting-facts p { margin: .25rem 0; }
.radar-pair.small { flex-direction: column; }
.dot { display: inline-block; width: 1rem; height: 1rem; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); vertical-align: -.15em; }
.water-box { background: #eef5fa; border-left: 3px solid #8db7d1; border-radius: 6px; padding: .5rem .75rem; margin: .5rem 0; }
.water-box p { margin: .15rem 0; }
blockquote { margin: .6rem 0 0; padding: .5rem .9rem; border-left: 3px solid var(--amber); background: #fff8ec; font-family: var(--serif); font-style: italic; border-radius: 0 8px 8px 0; }
.shop-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.shop { display: flex; flex-direction: column; padding: .8rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .1s; }
.shop:hover { border-color: var(--amber); transform: translateY(-1px); }
.shop small { color: var(--muted); }
.jobs summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.jobs ul { padding-left: 1rem; }
.jobs li { margin: .5rem 0; }

/* ---------- Ranking ---------- */
.ranking { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.ranking a { display: flex; align-items: center; gap: .9rem; padding: .7rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.ranking a:hover { border-color: var(--amber); }
.ranking li:nth-child(1) .rank-no:not(:empty) { background: #e8b730; }
.ranking li:nth-child(2) .rank-no:not(:empty) { background: #cfd3d6; }
.ranking li:nth-child(3) .rank-no:not(:empty) { background: #d79a63; }
.rank-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rank-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-main small, .rank-meta small { color: var(--muted); }
.rank-meta { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }

/* ---------- Karte ---------- */
.map-layout { display: grid; grid-template-columns: 1fr 300px; gap: 1.25rem; }
.map { height: min(72vh, 760px); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 0; }
.map-side { margin: 0; max-height: min(72vh, 760px); overflow: auto; }
.map-list { list-style: none; padding: 0; margin: 0; }
.map-list li { padding: .5rem 0; border-bottom: 1px dashed var(--line); }
.map-list a { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.map-list small { color: var(--muted); }
.pin { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-left: .4rem; }
.pin-tasted { background: #e3a92b; border: 2px solid #5e2c0c; }
.pin-other { background: #d9cfc2; border: 1px solid #8a7a6a; }
.pop ul { padding-left: 1rem; margin: .4rem 0; }
.pop li { margin-bottom: .3rem; }
.leaflet-container { font: 14px/1.4 var(--sans); }

/* ---------- Destillerien ---------- */
.dist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.dist-card { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--ink); }
.dist-card small { color: var(--muted); }
.dist-card.tasted { border-color: var(--amber); background: #fff6e2; }
.dist-card:hover { border-color: var(--amber-2); }
.dist-card .badge { align-self: flex-start; margin-top: .3rem; }

/* ---------- Profil ---------- */
.bars { display: flex; flex-direction: column; gap: .55rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem 1fr 7rem; align-items: center; gap: .75rem; font-size: .92rem; }
.bar { height: 12px; background: #efe4d3; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--amber), var(--amber-2)); border-radius: 999px; }
.bar-row small { color: var(--muted); }
.color-strip { display: grid; grid-template-columns: repeat(9, 1fr); gap: .3rem; align-items: end; height: 140px; }
.color-strip div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: .2rem; }
.color-strip span { width: 100%; height: var(--h); background: var(--c); border-radius: 6px 6px 3px 3px; border: 1px solid rgba(0, 0, 0, .12); }
.color-strip small { color: var(--muted); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .topbar-extra { display: none; }
  .mainnav {
    position: fixed; bottom: 0; left: 0; right: 0; justify-content: space-around; background: var(--ink); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .25); z-index: 1000;
  }
  .mainnav a { flex-direction: column; gap: .1rem; font-size: .7rem; padding: .35rem .6rem; border-radius: 12px; }
  .mainnav a .ico { width: 1.35rem; height: 1.35rem; }
  .topbar { justify-content: space-between; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .map-layout { grid-template-columns: 1fr; }
  .map { height: 60vh; }
  .tasting-body { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bottle-card, .whisky-head { grid-template-columns: 1fr; }
  .bottle-photo { max-width: 260px; margin: 0 auto; width: 100%; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-grid .span-2 { grid-column: span 2; }
  .color-scale { grid-template-columns: repeat(5, 1fr); row-gap: .7rem; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .segmented label:nth-child(3) span { border-left: 0; }
  .segmented label:nth-child(n+3) span { border-top: 1px solid var(--line); }
  .segmented.wide { grid-template-columns: 1fr; }
  .segmented.wide span { border-left: 0; border-top: 1px solid var(--line); }
  .segmented.wide label:first-child span { border-top: 0; }
  .form-head-actions .btn-ghost { display: none; }
  .bar-row { grid-template-columns: 6rem 1fr; }
  .bar-row small { grid-column: 2; }
  .ranking a { padding: .6rem .7rem; gap: .6rem; }
  .rank-meta .stars { font-size: .85rem; }
  .official { grid-template-columns: 1fr; }
  .official dt { margin-top: .4rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }
