/* ------------------------------------------------------------------ */
/* Tokens                                                              */
/* ------------------------------------------------------------------ */

:root {
  --bg: #f7f1e3;
  --surface: #fffcf5;
  --surface-2: #f2e8d3;
  --text: #2b1d14;
  --muted: #6b5847;
  --border: #e5d6ba;
  --accent: #a51c24;
  --accent-hover: #861219;
  --accent-contrast: #fff8ec;
  --primary: #a51c24;
  --primary-hover: #861219;
  --primary-contrast: #fff8ec;
  --beer: #e2a42a;
  --foam: #fff8e8;
  --pine: #1d4a36;
  --pine-deep: #123528;
  --pine-soft: #dfeadf;
  --red: #b3202a;
  --danger: #b42318;
  --danger-soft: #fbe5e2;
  --star: #d99d16;
  --star-off: #e0d1b4;
  --gold: #c9a227;
  --silver: #9aa3ab;
  --bronze: #b46e35;
  --snow: rgb(29 74 54 / .16);
  --shadow: 0 1px 2px rgb(40 30 10 / .06), 0 6px 20px -8px rgb(40 30 10 / .2);
  --radius: 14px;
  --radius-sm: 9px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1a15;
    --surface: #142520;
    --surface-2: #1c3229;
    --text: #f3ead8;
    --muted: #b5b09b;
    --border: #2a4237;
    --accent: #f08a8e;
    --accent-hover: #f6aeb1;
    --accent-contrast: #2a0a0b;
    --primary: #b8262f;
    --primary-hover: #cf3640;
    --primary-contrast: #fff4ea;
    --beer: #e2a42a;
    --foam: #fff3d9;
    --pine: #8fd0ab;
    --pine-deep: #0a2219;
    --pine-soft: #183026;
    --red: #c8323a;
    --danger: #f2877b;
    --danger-soft: #3a1814;
    --star: #f0b63d;
    --star-off: #36483f;
    --snow: rgb(255 255 255 / .55);
    --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 8px 24px -10px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1a15;
  --surface: #142520;
  --surface-2: #1c3229;
  --text: #f3ead8;
  --muted: #b5b09b;
  --border: #2a4237;
  --accent: #f08a8e;
  --accent-hover: #f6aeb1;
  --accent-contrast: #2a0a0b;
  --primary: #b8262f;
  --primary-hover: #cf3640;
  --primary-contrast: #fff4ea;
  --beer: #e2a42a;
  --foam: #fff3d9;
  --pine: #8fd0ab;
  --pine-deep: #0a2219;
  --pine-soft: #183026;
  --red: #c8323a;
  --danger: #f2877b;
  --danger-soft: #3a1814;
  --star: #f0b63d;
  --star-off: #36483f;
  --snow: rgb(255 255 255 / .55);
  --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 8px 24px -10px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ */
/* Basis                                                               */
/* ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: 1120px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 600; color: var(--muted); margin: 0 0 .25rem; }
.visually-hidden { position: absolute !important; top: 0; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

/* ------------------------------------------------------------------ */
/* Buttons & Formulare                                                 */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .6rem 1.1rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn.primary { background: var(--accent); color: var(--accent-contrast); }
.btn.primary:hover { background: var(--accent-hover); color: var(--accent-contrast); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: .35rem .8rem; font-size: .85rem; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.field { display: grid; gap: .3rem; margin-bottom: 1rem; }
.field > span { font-weight: 600; font-size: .9rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input[type="text"], input[type="password"], input[type="number"], input[type="date"], textarea {
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .75rem; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 0; border-color: var(--accent); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.check small { display: block; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: var(--radius-sm); padding: .5rem .75rem; margin-bottom: 1rem; font-size: .9rem; }

/* ------------------------------------------------------------------ */
/* Kopfzeile + Podium                                                  */
/* ------------------------------------------------------------------ */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; min-width: 0; }
.brand:hover { color: var(--text); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--text); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: .4rem .75rem; border-radius: 999px; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.user-menu { display: flex; gap: 6px; }

.podium-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px 10px; }
.podium { display: grid; grid-template-columns: auto repeat(3, minmax(0, 1fr)); gap: 8px; align-items: stretch; }
.podium-label { align-self: center; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding-right: 4px; }
.podium-empty { grid-column: 2 / -1; align-self: center; color: var(--muted); font-size: .9rem; }
.podium-item {
  display: flex; align-items: center; gap: .55rem; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: .3rem .8rem .3rem .3rem; text-decoration: none; color: var(--text);
  overflow: hidden;
}
a.podium-item:hover { border-color: var(--accent); color: var(--text); }
.podium-item.is-empty { color: var(--muted); border-style: dashed; background: transparent; }
.podium-text { display: grid; min-width: 0; line-height: 1.2; }
.podium-name { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-score { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.medal {
  --medal: var(--star-off);
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-weight: 800; font-size: .85rem; color: #fff;
  background: var(--medal);
  box-shadow: inset 0 -2px 0 rgb(0 0 0 / .18);
}
.medal.r1 { --medal: var(--gold); }
.medal.r2 { --medal: var(--silver); }
.medal.r3 { --medal: var(--bronze); }
.medal.rn { --medal: var(--surface-2); color: var(--muted); box-shadow: none; }

@media (max-width: 760px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .user-menu { margin-left: auto; }
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .podium-label { display: none; }
  .podium-empty { grid-column: 1 / -1; font-size: .85rem; }
  .podium-item { padding: .25rem .5rem .25rem .25rem; gap: .4rem; }
  .medal { width: 24px; height: 24px; font-size: .75rem; }
  .podium-name { font-size: .8rem; }
  .podium-score { font-size: .72rem; }
  .podium-count { display: none; }
}

/* ------------------------------------------------------------------ */
/* Sterne                                                              */
/* ------------------------------------------------------------------ */

.stars { display: inline-flex; align-items: center; gap: 2px; }
.star { position: relative; cursor: pointer; color: var(--star-off); line-height: 0; padding: 2px; border-radius: 6px; transition: transform .1s, color .1s; }
.star svg { width: 30px; height: 30px; fill: currentColor; }
.star input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.star.on { color: var(--star); }
.star:hover { transform: scale(1.12); }
.star:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.stars-val { margin-left: .4rem; min-width: 2.2em; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--muted); font-weight: 600; }

/* Statische Anzeige mit Teilfüllung */
.rating-static {
  --v: 0;
  display: inline-block; letter-spacing: 1px; line-height: 1; font-size: 1rem;
  background: linear-gradient(90deg, var(--star) calc(var(--v) / 5 * 100%), var(--star-off) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.score { display: inline-flex; align-items: center; gap: .35rem; font-variant-numeric: tabular-nums; }
.score b { font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Login                                                               */
/* ------------------------------------------------------------------ */

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-head { text-align: center; margin-bottom: 1.25rem; }
.auth-head svg { width: 64px; height: 64px; margin: 0 auto .5rem; color: var(--text); }
.auth-head p { color: var(--muted); }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 999px; margin-bottom: 1.25rem; }
.tabs a, .tabs button {
  flex: 1; text-align: center; text-decoration: none; font: inherit; font-weight: 600; font-size: .9rem;
  color: var(--muted); padding: .45rem .8rem; border-radius: 999px; border: 0; background: transparent; cursor: pointer;
  white-space: nowrap;
}
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.notice { background: var(--pine-soft); color: var(--pine); border-radius: var(--radius-sm); padding: .6rem .8rem; font-size: .9rem; margin-bottom: 1rem; }

/* ------------------------------------------------------------------ */
/* Kalender                                                            */
/* ------------------------------------------------------------------ */

.hero { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px 24px; margin-bottom: 20px; }
.hero p { color: var(--muted); margin: 0; }
.progress { min-width: 220px; flex: 0 1 300px; }
.progress-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.progress-bar span { display: block; height: 100%; background: var(--beer); border-radius: inherit; }

.calendar { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 960px) { .calendar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .calendar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

.door {
  position: relative; aspect-ratio: 4 / 5;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.door::after {
  content: ""; position: absolute; inset: 6px; border-radius: calc(var(--radius) - 5px);
  border: 1px dashed color-mix(in srgb, var(--border) 80%, var(--muted)); pointer-events: none; opacity: .7;
}
a.door:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--text); }
.door-num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); line-height: 1; }
.door-body { display: grid; gap: 2px; min-width: 0; }
.door-name { font-weight: 700; font-size: .92rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.door-meta { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.door-foot { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; min-height: 1.3em; }
.door-foot .rating-static { font-size: .8rem; }
.door .pill { position: relative; z-index: 1; }

.door.is-locked {
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 10px, color-mix(in srgb, var(--surface-2) 70%, var(--bg)) 10px 20px);
  box-shadow: none; color: var(--muted);
}
.door.is-locked .door-num { opacity: .75; }
.door.is-locked svg { width: 14px; height: 14px; fill: currentColor; }
.door.is-today { border: 2px solid var(--beer); box-shadow: 0 0 0 4px color-mix(in srgb, var(--beer) 22%, transparent), var(--shadow); }
.door.is-open:not(.is-rated) .door-foot { color: var(--accent); font-weight: 600; }
.door.is-rated .door-num { color: var(--pine); }

.pill { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 999px; background: var(--beer); color: #2a1a05; }
.pill.soft { background: var(--surface-2); color: var(--muted); }
.door-top { display: flex; justify-content: space-between; align-items: start; gap: 4px; }

@media (max-width: 600px) {
  .door { padding: 9px; }
  .door::after { inset: 4px; }
  .door-meta { display: none; }
  .door-name { font-size: .8rem; }
  .door-foot { font-size: .7rem; }
  .door .pill { font-size: .6rem; padding: .1rem .35rem; }
}

/* ------------------------------------------------------------------ */
/* Tagesansicht                                                        */
/* ------------------------------------------------------------------ */

.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.day-nav .center { text-align: center; font-weight: 600; color: var(--muted); font-size: .9rem; }
.day-nav .btn.is-placeholder { visibility: hidden; }

.day-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
@media (max-width: 860px) { .day-grid { grid-template-columns: minmax(0, 1fr); } }

.beer-card { padding: 0; overflow: hidden; }
.beer-visual {
  aspect-ratio: 16 / 10; background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden;
}
.beer-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
/* ganzes Bild zeigen, Ränder mit weichgezeichneter Version desselben Bildes füllen */
.beer-visual.has-img { position: relative; isolation: isolate; aspect-ratio: 4 / 3; max-height: 480px; width: 100%; }
.beer-visual.has-img::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: var(--img) center / cover no-repeat; filter: blur(26px) saturate(1.15); opacity: .55;
}
.beer-visual .placeholder { width: 32%; max-width: 140px; color: var(--muted); }
.beer-info { padding: 20px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: .75rem 0 1rem; padding: 0; }
.facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: .35rem .7rem; }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; font-size: .92rem; }
.description p:last-child { margin-bottom: 0; }

.rate-card h2 { margin-bottom: 1rem; }
.rate-row { display: flex; justify-content: space-between; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.rate-row:last-of-type { border-bottom: 0; }
.rate-label { font-weight: 600; display: block; }
.rate-hint { color: var(--muted); font-size: .8rem; display: block; }
.rate-total { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); border-radius: var(--radius-sm); padding: .6rem .8rem; margin: .5rem 0 1rem; font-weight: 600; }
.rate-card .field { margin-top: .5rem; }
.form-note { color: var(--muted); font-size: .8rem; margin: .75rem 0 0; }

@media (max-width: 420px) {
  .star svg { width: 26px; height: 26px; }
}
/* Handy: Sterne immer unter dem Text, auch bei kurzen Kategorien wie „Geruch“ */
@media (max-width: 600px) {
  .rate-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.community-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-bottom: 1rem; }
.cat-bars { display: grid; gap: 8px; margin-bottom: 1.25rem; }
.cat-bar { display: grid; grid-template-columns: 110px 1fr 3em; align-items: center; gap: 12px; font-size: .9rem; }
.cat-bar .track { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.cat-bar .fill { display: block; height: 100%; background: var(--beer); border-radius: inherit; }
.cat-bar .val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.comment { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--bg); }
.comment.is-me { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.comment-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; align-items: center; margin-bottom: .35rem; }
.comment-user { font-weight: 700; }
.comment-scores { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); margin-bottom: .35rem; }
.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.empty { color: var(--muted); text-align: center; padding: 24px 12px; }

.locked-panel { text-align: center; max-width: 520px; margin: 40px auto; padding: 36px 24px; }
.locked-panel svg { width: 48px; height: 48px; fill: var(--muted); margin: 0 auto 12px; }

/* ------------------------------------------------------------------ */
/* Rangliste & Tabellen                                                */
/* ------------------------------------------------------------------ */

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; }
.page-head .tabs { margin: 0; min-width: 260px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rank-table tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.rank-table .beer-cell a { font-weight: 700; text-decoration: none; color: var(--text); }
.rank-table .beer-cell a:hover { color: var(--accent); }
.rank-table .beer-cell small { display: block; color: var(--muted); }
.rank-table tr.top td { background: color-mix(in srgb, var(--beer) 7%, transparent); }
.overall { font-weight: 800; }

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */

.admin-beers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-beer {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px;
}
.admin-beer .day-badge { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.admin-beer.is-filled .day-badge { background: var(--beer); color: #2a1a05; }
.admin-beer .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-beer .title.is-empty { color: var(--muted); font-weight: 500; font-style: italic; }
.admin-beer .meta { font-size: .8rem; color: var(--muted); }
.admin-summary { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; color: var(--muted); }
.admin-summary b { color: var(--text); }

.img-edit { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.img-preview { width: 120px; aspect-ratio: 16/10; border-radius: var(--radius-sm); background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--muted); font-size: .75rem; }
.img-preview { position: relative; }
.img-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.settings-card { max-width: 620px; }

.user-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 600px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid .span-2 { grid-column: auto; }
  .admin-beer { grid-template-columns: 40px minmax(0, 1fr); }
  .admin-beer .btn { grid-column: 1 / -1; }
  .admin-beer .day-badge { width: 40px; height: 40px; }
}

/* ------------------------------------------------------------------ */
/* Dialog & Toast                                                      */
/* ------------------------------------------------------------------ */

.dialog {
  width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); padding: 0; box-shadow: 0 20px 60px -10px rgb(0 0 0 / .45);
}
.dialog::backdrop { background: rgb(20 12 5 / .55); }
.dialog form { padding: 20px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 1rem; }
.dialog-head h2 { margin: 0; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--text); color: var(--bg); padding: .65rem 1.1rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }

.loading { color: var(--muted); padding: 40px 0; text-align: center; }
.error-box { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius); padding: 16px 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Nutzerliste: auf dem Handy als Karten statt Tabelle */
@media (max-width: 600px) {
  .users-wrap { overflow: visible; }
  .users-table thead { display: none; }
  .users-table, .users-table tbody, .users-table tr { display: block; width: 100%; }
  .users-table tr { padding: 12px 14px; border-bottom: 1px solid var(--border); }
  .users-table tbody tr:last-child { border-bottom: 0; }
  .users-table td { display: block; border: 0; padding: 2px 0; text-align: left; }
  .users-table td:first-child, .users-table td:nth-child(2) { display: inline-block; margin-right: 8px; }
  .users-table td.num { text-align: left; }
  .users-table td[data-label] { display: inline-block; margin-right: 12px; color: var(--muted); font-size: .85rem; }
  .users-table td[data-label]::before { content: attr(data-label) ": "; }
  .users-table .user-actions { justify-content: flex-start; margin-top: 8px; }
}

/* ------------------------------------------------------------------ */
/* Neue Funktionen                                                     */
/* ------------------------------------------------------------------ */

.section { margin-bottom: 28px; }
.section > h2 { margin-bottom: 12px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.plain-list { margin: 0; padding-left: 1.2rem; display: grid; gap: 6px; }
.nav-finale { color: var(--accent) !important; }

/* Wer fehlt noch? */
.missing-line { font-size: .9rem; color: var(--muted); margin: .5rem 0 0; }
.missing-line b { color: var(--text); font-weight: 600; }
.missing-line .is-me-name { color: var(--accent); }
.missing-line.is-done { color: var(--pine); font-weight: 600; }
.community-head + .missing-line, .rebuy-line + .missing-line { margin: -.25rem 0 1rem; }
.rebuy-line { margin: -.25rem 0 .5rem; font-size: .92rem; }

/* Verdeckte Wertungen */
.concealed { text-align: center; padding: 16px 12px 8px; border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg); margin-bottom: 12px; }
.concealed-icon { font-size: 2.2rem; line-height: 1; margin-bottom: .5rem; }
.concealed p { margin-bottom: .4rem; }
.concealed-cell { text-align: center !important; font-size: .85rem; }
.concealed-cell a { color: var(--muted); text-decoration: none; }
.concealed-cell a:hover { color: var(--accent); }

/* Nochmal kaufen? */
.choices { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: block; padding: .3rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.choice input:checked + span { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.rebuy-row { border-bottom: 0; padding-top: 0; }

/* Prost */
.comment-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: .35rem; }
.prost-btn {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: .2rem .65rem; display: inline-flex; gap: .35rem; align-items: center;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.prost-btn:hover { border-color: var(--accent); color: var(--text); }
.prost-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--beer) 22%, var(--surface)); border-color: var(--beer); color: var(--text); }
.prost-btn.pop { transform: scale(1.18) rotate(-6deg); }
.prost-n:empty { display: none; }
.prost-count { font-size: .82rem; color: var(--muted); }

/* Türchen-Animation */
.door-reveal { position: fixed; inset: 0; z-index: 60; display: flex; perspective: 1600px; cursor: pointer; animation: door-fade 1.9s ease forwards; }
.door-leaf {
  flex: 1; position: relative; display: grid; place-items: center;
  background:
    repeating-linear-gradient(90deg, rgb(0 0 0 / .06) 0 2px, transparent 2px 40px),
    linear-gradient(160deg, #a5521a, #6e3410);
  border: 3px solid #4d230a; box-shadow: inset 0 0 0 10px rgb(255 220 160 / .12);
}
.door-leaf.left { z-index: 2; transform-origin: left center; animation: door-left 1.3s .35s cubic-bezier(.6, .05, .3, 1) forwards; justify-content: end; }
.door-leaf.right { transform-origin: right center; animation: door-right 1.3s .35s cubic-bezier(.6, .05, .3, 1) forwards; justify-content: start; }
.door-leaf span {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 22vw, 12rem); color: #ffe7b8;
  text-shadow: 0 4px 0 rgb(0 0 0 / .25); transform: translateX(50%);
}
.door-leaf .knob { width: 22px; height: 22px; border-radius: 50%; background: #e9a227; box-shadow: 0 2px 0 #7a4a08; transform: translate(28px, 110px); }
@keyframes door-left { to { transform: rotateY(-100deg); } }
@keyframes door-right { to { transform: rotateY(100deg); } }
@keyframes door-fade { 0%, 75% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }

/* Statistik */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.award { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.award-emoji { font-size: 1.9rem; line-height: 1; flex: none; }
.award-body { min-width: 0; }
.award-title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.award-winner { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; overflow-wrap: anywhere; }
.award-text { font-size: .82rem; color: var(--muted); }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.person.is-me { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.person-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--beer); color: #2a1a05; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.person .progress-bar { margin: 0 0 12px; }
.person-stats { margin: 0; display: grid; gap: 6px; }
.person-stats div { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.person-stats dt { color: var(--muted); flex: none; }
.person-stats dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.person-stats a { color: var(--text); font-weight: 600; text-decoration: none; }
.person-stats a:hover { color: var(--accent); }

/* Finale */
.finale-head { text-align: center; margin: 8px 0 24px; }
.finale-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.podest-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 760px; margin: 0 auto 20px; }
.podest { display: flex; flex-direction: column; align-items: stretch; text-align: center; }
.podest-top { min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; padding: 8px 4px; }
.podest-q { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--star-off); }
.podest-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1rem, 2.6vw, 1.35rem); line-height: 1.2; overflow-wrap: anywhere; }
.podest-meta { font-size: .78rem; color: var(--muted); }
.podest.shown .podest-top { animation: podest-in .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes podest-in { from { opacity: 0; transform: translateY(16px) scale(.9); } to { opacity: 1; transform: none; } }
.podest-block {
  border-radius: 12px 12px 4px 4px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; color: #fff; text-shadow: 0 2px 0 rgb(0 0 0 / .2);
  box-shadow: inset 0 -6px 0 rgb(0 0 0 / .15);
}
.p1 .podest-block { height: 170px; background: linear-gradient(var(--gold), color-mix(in srgb, var(--gold) 75%, #000)); }
.p2 .podest-block { height: 125px; background: linear-gradient(var(--silver), color-mix(in srgb, var(--silver) 75%, #000)); }
.p3 .podest-block { height: 95px; background: linear-gradient(var(--bronze), color-mix(in srgb, var(--bronze) 75%, #000)); }
.p1.shown .podest-name { font-size: clamp(1.15rem, 3.2vw, 1.6rem); }
.finale-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
@media (max-width: 600px) {
  .podest-row { gap: 6px; }
  .podest-top { min-height: 110px; }
  .p1 .podest-block { height: 120px; }
  .p2 .podest-block { height: 90px; }
  .p3 .podest-block { height: 70px; }
  .podest-block { font-size: 1.8rem; }
  .podest .score .rating-static { display: none; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.tile-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.1; }
.tile-label { color: var(--muted); font-size: .85rem; }
.highlights { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; padding: 14px; }
.hl-emoji { font-size: 1.8rem; line-height: 1; }
.hl-title { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.highlight a { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; }
.highlight a:hover { color: var(--accent); }
.cat-winners h3 { margin-bottom: .6rem; }

.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* Admin: Import */
.admin-summary { align-items: center; }
.admin-summary-actions { margin-left: auto; display: inline-flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .admin-summary-actions { margin-left: 0; } }
.import-table { margin: 0 0 1rem; max-height: 280px; overflow: auto; box-shadow: none; }
.import-table th, .import-table td { padding: .4rem .55rem; font-size: .82rem; }
.dialog { width: min(760px, calc(100vw - 32px)); }

.install-hint { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.install-hint p { margin: .35rem 0 0; }

/* Feinschliff */
.nav a { white-space: nowrap; }
@media (max-width: 760px) {
  .nav { gap: 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: .35rem .6rem; font-size: .9rem; }
}
.podest-name { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }

/* ================================================================== */
/* Weihnachtliches Design                                              */
/* ================================================================== */

:root {
  --heading: #173f2e;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23c9a227' fill-opacity='.16'%3E%3Cpath d='M20 14l1.6 4.4L26 20l-4.4 1.6L20 26l-1.6-4.4L14 20l4.4-1.6z'/%3E%3Cpath d='M95 58l1.2 3.3 3.3 1.2-3.3 1.2L95 67l-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3Cpath d='M48 104l1.4 3.8 3.8 1.4-3.8 1.4L48 114.4l-1.4-3.8-3.8-1.4 3.8-1.4z'/%3E%3Ccircle cx='120' cy='118' r='1.6'/%3E%3Ccircle cx='66' cy='30' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --heading: #f3ead8;
    --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23e9c66a' fill-opacity='.12'%3E%3Cpath d='M20 14l1.6 4.4L26 20l-4.4 1.6L20 26l-1.6-4.4L14 20l4.4-1.6z'/%3E%3Cpath d='M95 58l1.2 3.3 3.3 1.2-3.3 1.2L95 67l-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3Cpath d='M48 104l1.4 3.8 3.8 1.4-3.8 1.4L48 114.4l-1.4-3.8-3.8-1.4 3.8-1.4z'/%3E%3Ccircle cx='120' cy='118' r='1.6'/%3E%3Ccircle cx='66' cy='30' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  --heading: #f3ead8;
  --bg-pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%23e9c66a' fill-opacity='.12'%3E%3Cpath d='M20 14l1.6 4.4L26 20l-4.4 1.6L20 26l-1.6-4.4L14 20l4.4-1.6z'/%3E%3Cpath d='M95 58l1.2 3.3 3.3 1.2-3.3 1.2L95 67l-1.2-3.3-3.3-1.2 3.3-1.2z'/%3E%3Cpath d='M48 104l1.4 3.8 3.8 1.4-3.8 1.4L48 114.4l-1.4-3.8-3.8-1.4 3.8-1.4z'/%3E%3Ccircle cx='120' cy='118' r='1.6'/%3E%3Ccircle cx='66' cy='30' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
}

body { background-color: var(--bg); background-image: var(--bg-pattern); background-size: 140px 140px; }
h1, h2, h3 { color: var(--heading); }
#main, .site-footer { position: relative; z-index: 1; }

.btn.primary { background: var(--primary); color: var(--primary-contrast); }
.btn.primary:hover { background: var(--primary-hover); color: var(--primary-contrast); }
.pill { background: var(--gold); color: #2a1a05; }
.progress-bar span, .cat-bar .fill { background: linear-gradient(90deg, var(--beer), var(--gold)); }

/* ---------- Kopfzeile in Tannengrün mit Lichterkette ---------- */
.topbar {
  background: linear-gradient(180deg, color-mix(in srgb, var(--pine-deep) 92%, #000), var(--pine-deep));
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border-bottom: 2px solid var(--gold);
  color: #fbf3e2;
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 12px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 40%, #f6c443 0 3.2px, transparent 3.8px) 0 0 / 66px 12px repeat-x,
    radial-gradient(circle at 50% 40%, #e0484f 0 3.2px, transparent 3.8px) 22px 0 / 66px 12px repeat-x,
    radial-gradient(circle at 50% 40%, #5fcf8f 0 3.2px, transparent 3.8px) 44px 0 / 66px 12px repeat-x;
  filter: drop-shadow(0 0 4px rgb(255 214 120 / .8));
  animation: twinkle 2.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .7; } to { opacity: 1; } }

.brand { color: #fbf3e2; gap: .6rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-text #brand-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-family: var(--font); font-size: .66rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #e9c66a; }

.topbar .nav a { color: rgb(251 243 226 / .75); }
.topbar .nav a:hover, .topbar .nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / .12); }
.topbar .nav-finale { color: #f6c443 !important; }
.topbar .btn.ghost { color: #fbf3e2; border-color: rgb(251 243 226 / .3); }
.topbar .btn.ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }
.topbar :focus-visible { outline-color: #f6c443; }

.podium-wrap { padding-bottom: 12px; }
.podium-label { color: #e9c66a; }
.podium-empty { color: rgb(251 243 226 / .8); }
.podium-item { border-color: rgb(201 162 39 / .45); }
a.podium-item:hover { border-color: #f6c443; }
.podium-item.is-empty { color: rgb(251 243 226 / .7); border-color: rgb(251 243 226 / .3); background: transparent; }

/* ---------- Kalender-Türchen ---------- */
.hero h1 { display: flex; align-items: center; gap: .5rem; }
.hero h1 .hero-star { color: var(--gold); font-size: .8em; }

.door { --door: #b3202a; --door-dark: #861a20; }
.door.c-g { --door: #1f5a40; --door-dark: #133b2a; }
.door.c-y { --door: #9a6f1a; --door-dark: #6f4f12; }

.door.is-locked {
  color: #fbf3e2; border: 1px solid var(--door-dark); box-shadow: var(--shadow);
  background:
    radial-gradient(120% 70% at 20% 0%, rgb(255 255 255 / .16), transparent 60%),
    linear-gradient(160deg, var(--door), var(--door-dark));
}
.door.is-locked::after { border-color: rgb(233 198 106 / .55); opacity: 1; }
.door.is-locked .door-num { opacity: 1; color: #fbe7b0; text-shadow: 0 2px 0 rgb(0 0 0 / .25); }
.door.is-locked .door-foot { color: rgb(251 243 226 / .85); }
.door.is-locked svg { fill: #e9c66a; }
/* goldener Stern oben rechts */
.door.is-locked::before {
  content: "✦"; position: absolute; top: 9px; right: 12px; z-index: 1;
  color: #e9c66a; font-size: 1.05rem; line-height: 1; text-shadow: 0 0 8px rgb(246 196 67 / .6);
}

.door.is-open { border-top: 5px solid var(--door); }
.door.is-today {
  border: 2px solid var(--gold); border-top-width: 5px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent), 0 0 24px -4px color-mix(in srgb, var(--gold) 70%, transparent), var(--shadow);
  animation: today-glow 2.8s ease-in-out infinite alternate;
}
@keyframes today-glow { to { box-shadow: 0 0 0 6px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 32px -2px color-mix(in srgb, var(--gold) 85%, transparent), var(--shadow); } }
.door.is-rated .door-num { color: var(--pine); }

/* ---------- Tür-Animation in Rot mit Goldrahmen ---------- */
.door-leaf {
  background:
    radial-gradient(circle at 50% 18%, rgb(255 255 255 / .12), transparent 55%),
    linear-gradient(160deg, #b3202a, #7d1219);
  border: 3px solid #5e0d12;
  box-shadow: inset 0 0 0 10px #c9a227, inset 0 0 0 12px #8a6d12, inset 0 0 0 28px rgb(0 0 0 / .08);
}
.door-leaf span { color: #fbe7b0; }

/* ---------- Schneefall ---------- */
.snow { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.snow span {
  position: absolute; top: -2rem; color: var(--snow); user-select: none;
  animation: snowfall linear infinite;
}
@keyframes snowfall { to { transform: translate3d(var(--drift, 20px), 112vh, 0) rotate(260deg); } }
@media (prefers-reduced-motion: reduce) {
  .snow { display: none; }
  .topbar::after, .door.is-today { animation: none; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 24px; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.footer-inner {
  max-width: 1120px; margin: 0 auto; padding: 22px 16px 28px;
  display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap;
}
.footer-logo { width: 64px; height: 64px; flex: none; }
.footer-text { display: grid; gap: 2px; margin-right: auto; }
.footer-text b { font-family: var(--font-display); font-size: 1.05rem; color: var(--heading); }
.footer-text span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.made { margin: 0; color: var(--muted); font-size: .95rem; display: inline-flex; align-items: center; gap: .35rem; }
.made b { color: var(--text); letter-spacing: .04em; }
/* Animation liegt auf der Form, nicht auf dem <svg>: Safari zeichnet ein animiertes <svg> sonst nach Umbrüchen an der alten Stelle. */
.heart { width: 18px; height: 18px; flex: none; fill: var(--red); overflow: visible; }
.heart path { animation: heartbeat 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes heartbeat { 0%, 60%, 100% { transform: scale(1); } 15% { transform: scale(1.22); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .heart path { animation: none; } }
.snow-toggle { font: inherit; font-size: .82rem; color: var(--muted); background: transparent; border: 1px solid var(--border); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; }
.snow-toggle:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 600px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-text { margin-right: 0; width: 100%; }
  /* Schnee-Knopf und Version zuerst, darunter „made with ❤ in SLF“ */
  .made { order: 3; width: 100%; justify-content: center; }
}

/* ---------- Login mit Logo ---------- */
.auth { min-height: calc(100vh - 140px); }
.auth-logo { width: 150px; height: 150px; margin: -4px auto 10px; display: block; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .18)); }
.auth-card { border-top: 5px solid var(--red); }

/* ---------- Fotos der Teilnehmenden ---------- */
.photo-field { margin-top: .25rem; }
.photo-preview { width: 96px; aspect-ratio: 1; font-size: 1.6rem; }
.comment-body.has-photo { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: start; margin: .2rem 0 .1rem; }
.comment-photo {
  width: 96px; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in;
  background: var(--surface-2); box-shadow: 0 0 0 1px var(--border);
}
.comment-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.comment-photo:hover img { transform: scale(1.06); }
@media (max-width: 420px) {
  .comment-body.has-photo { grid-template-columns: 72px minmax(0, 1fr); }
  .comment-photo { width: 72px; }
}
.lightbox, .changelog { padding: 20px; }
.lightbox img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius-sm); background: var(--surface-2); }
.lightbox-caption { margin: .75rem 0 0; font-style: italic; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.lightbox .form-actions { margin-top: 1rem; }

/* ---------- Countdown ---------- */
.card.countdown {
  position: relative; overflow: hidden; text-align: center; margin: 0 0 20px; padding: 22px 16px 20px;
  color: #fbf3e2; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: radial-gradient(120% 90% at 50% 0%, #24573f 0%, #163d2c 55%, #10301f 100%);
}
.card.countdown::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--bg-pattern); background-size: 140px; opacity: .9;
}
.countdown > * { position: relative; }
.cd-kicker { margin: 0 0 12px; font-size: .75rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #e9c66a; }
.cd-grid { display: flex; justify-content: center; gap: 10px; }
.cd-unit {
  min-width: 84px; padding: 12px 8px 9px; border-radius: var(--radius-sm);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(233 198 106 / .35); box-shadow: inset 0 -3px 0 rgb(0 0 0 / .18);
}
.cd-unit b { display: block; font: 700 2.6rem/1 var(--font-display); color: #f6d77a; font-variant-numeric: tabular-nums; }
.cd-unit span { display: block; margin-top: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(251 243 226 / .8); }
.cd-note { margin: 14px 0 0; color: rgb(251 243 226 / .88); }
.countdown.is-compact { margin: 0 0 1.25rem; padding: 14px 10px 12px; }
.countdown.is-compact .cd-kicker { margin-bottom: 8px; font-size: .68rem; }
.countdown.is-compact .cd-grid { gap: 6px; }
.countdown.is-compact .cd-unit { min-width: 0; flex: 1; padding: 8px 4px 6px; }
.countdown.is-compact .cd-unit b { font-size: 1.6rem; }
.countdown.is-compact .cd-unit span { font-size: .6rem; letter-spacing: .1em; }
.countdown.is-compact .cd-note { margin-top: 8px; font-size: .82rem; }
@media (max-width: 480px) {
  .cd-grid { gap: 6px; }
  .cd-unit { min-width: 0; flex: 1; padding: 10px 4px 7px; }
  .cd-unit b { font-size: 1.9rem; }
  .cd-unit span { font-size: .62rem; letter-spacing: .08em; }
}

/* ---------- Prost für Fotos ---------- */
.comment-photo { position: relative; }
.photo-prost-badge {
  position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; line-height: 1.5; color: #2a1a05;
  background: rgb(255 248 232 / .92); box-shadow: 0 1px 3px rgb(0 0 0 / .3);
}
.photo-prost-badge.is-mine { background: var(--gold); }
.lightbox-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 1rem; }
.lightbox-actions .prost-btn { font-size: .95rem; padding: .4rem .9rem; }
.lightbox-hint { margin: .5rem 0 0; }
.photo-highlight img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: var(--radius-sm); }
.hl-name { font-weight: 700; color: var(--text); }
.highlight .hl-name { display: block; font-size: 1.05rem; }
.highlight .small .hl-name, .highlight .small a { display: inline; font-size: inherit; }

/* ---------- Ruhmeshalle ---------- */
.page-head h1 + p { margin: .2rem 0 0; }
.seasons { display: grid; gap: 12px; }
.season { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 18px; }
.season-year {
  font: 700 2rem/1 var(--font-display); color: var(--gold); text-align: center; padding: 14px 0 12px;
  border-radius: var(--radius-sm); background: var(--pine-deep); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 55%, transparent);
}
.season-body { display: grid; gap: .5rem; justify-items: start; min-width: 0; }
.season-body p { margin: 0; }
.season-podium, .hof-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; }
.season-podium li, .hof-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.season-podium li span, .hof-main { display: grid; min-width: 0; line-height: 1.25; }
.season-podium small, .hof-main small { color: var(--muted); font-size: .8rem; }
.season-podium li:first-child b { font-family: var(--font-display); font-size: 1.15rem; }
.season-note { font-style: italic; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.season-awards { display: flex; flex-wrap: wrap; gap: 6px; }
.season-awards span { font-size: .78rem; background: var(--surface-2); border-radius: 999px; padding: .2rem .6rem; }
.hof-list li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.hof-list li:last-child { border-bottom: 0; }
.hof-main { flex: 1; }
.hof-medals { display: inline-flex; gap: 6px; white-space: nowrap; font-size: .9rem; }
.season-beers { display: grid; gap: 8px; }
.season-beer { padding: 0; }
.season-beer summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; }
.season-beer summary::-webkit-details-marker { display: none; }
.season-beer summary::after { content: "▾"; color: var(--muted); margin-left: 4px; transition: transform .2s; }
.season-beer[open] summary::after { transform: rotate(180deg); }
.season-beer .comments { padding: 0 14px 14px; margin: 0; }
@media (max-width: 600px) {
  .season { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .season-year { font-size: 1.5rem; padding: 8px 14px; justify-self: start; }
  .season-beer summary .score .rating-static { display: none; }
}

/* Admin: Jahrgänge */
.card-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .5rem; }
.card-head-row h2 { margin: 0; }
.season-admin-list { list-style: none; margin: 0; padding: 0; }
.season-admin-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.sa-year { font: 700 1.25rem/1 var(--font-display); color: var(--heading); min-width: 3.2rem; }
.sa-main { flex: 1; min-width: 140px; display: grid; }
.sa-main small { color: var(--muted); font-size: .78rem; }
.sa-actions { display: inline-flex; gap: 6px; }
.podium-input { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px 12px; margin: 0 0 .8rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.podium-input legend { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; padding: 0 4px; }
.podium-input .medal { width: 22px; height: 22px; font-size: .7rem; }
.podium-input input { width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .5rem .65rem; }
@media (max-width: 480px) { .podium-input { grid-template-columns: 1fr; } }

/* ---------- Version & Update ---------- */
.app-version { font: inherit; font-size: .78rem; color: var(--muted); background: transparent; border: 0; padding: .3rem .4rem; cursor: pointer; font-variant-numeric: tabular-nums; }
.app-version:hover { color: var(--text); text-decoration: underline; }
.update-banner {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 80;
  display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px);
  background: var(--pine-deep); color: #fbf3e2; border: 1px solid var(--gold); border-radius: 999px;
  padding: 8px 8px 8px 18px; box-shadow: 0 10px 30px -10px rgb(0 0 0 / .5); font-size: .92rem;
}
.update-banner[hidden] { display: none; }
.changelog-entry + .changelog-entry { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.changelog-entry h3 { margin: 0 0 .4rem; font-size: 1.05rem; }
.changelog-entry ul { margin: 0; padding-left: 1.2rem; }
.changelog-entry li { margin: .2rem 0; }

/* ---------- Rollen ---------- */
.pill.super { background: var(--red); color: #fff8ec; }
.role-help { margin: -.25rem 0 1rem; padding-left: 1.1rem; }
.role-help li { margin: .15rem 0; }
.role-select {
  font: inherit; font-size: .85rem; color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 999px; padding: .3rem .6rem; cursor: pointer;
}
.role-select:disabled { opacity: .6; }

/* ---------- Profil ---------- */
#account-btn { position: relative; }
.acc-av { margin-right: .35rem; font-size: 1em; line-height: 1; }
#account-btn.has-reminder::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: #e0484f; box-shadow: 0 0 0 2px var(--pine-deep), 0 0 8px rgb(224 72 79 / .8);
  animation: reminder-pulse 1.8s ease-in-out infinite;
}
@keyframes reminder-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { #account-btn.has-reminder::after { animation: none; } }
#account-btn[aria-current="page"] { background: rgb(255 255 255 / .16); border-color: var(--gold); }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.avatar-lg { width: 72px; height: 72px; font-size: 2rem; font-family: var(--font-display); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--gold) 60%, transparent); }
.profile-id { flex: 1; min-width: 0; }
.profile-id h2 { margin: 0 0 .15rem; overflow-wrap: anywhere; }
.profile-id p { margin: 0 0 .5rem; }
.profile-id .progress-bar { margin-top: .35rem; }
.profile-open { margin-bottom: 16px; }
.profile-open h2 { margin-bottom: .25rem; }
.open-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .5rem; }
.open-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: .3rem .7rem .3rem .35rem; border-radius: 999px;
  background: var(--surface-2); color: var(--text); text-decoration: none; font-size: .85rem; border: 1px solid var(--border);
}
.open-chip b { display: inline-grid; place-items: center; min-width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--red); color: #fff8ec; font-size: .75rem; }
.open-chip:hover { border-color: var(--accent); color: var(--text); }
.taste-legend { display: flex; gap: 14px; margin: .25rem 0 .75rem; color: var(--muted); }
.taste-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.mine, .taste .fill.mine { background: linear-gradient(90deg, var(--beer), var(--gold)); }
.dot.group, .taste .fill.group { background: color-mix(in srgb, var(--pine) 55%, var(--surface-2)); }
.taste { display: grid; gap: 10px; }
.taste-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: .9rem; }
.taste-bars { display: grid; gap: 3px; }
.taste .track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; display: block; }
.taste .fill { display: block; height: 100%; border-radius: inherit; }
.taste-vals { display: grid; text-align: right; font-variant-numeric: tabular-nums; line-height: 1.15; font-size: .85rem; }
.my-ratings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.my-ratings li { display: flex; align-items: center; gap: 10px; }
.my-rating {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.my-rating:hover { border-color: var(--accent); color: var(--text); }
.my-rating-main { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.my-rating-main small { color: var(--muted); font-size: .8rem; }
.my-rating-comment { color: var(--muted); font-size: .85rem; font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-card { margin-bottom: 8px; }
.install-card p { margin: .25rem 0 0; }
@media (max-width: 600px) {
  .profile-head { gap: 12px; }
  .avatar-lg { width: 56px; height: 56px; font-size: 1.5rem; }
  .my-rating { padding: 9px 10px; gap: 8px; }
  .my-rating .score .rating-static { display: none; }
  .taste-row { grid-template-columns: 78px minmax(0, 1fr) auto; gap: 8px; }
}
/* Mittlere Breiten: Navigation etwas enger, damit der Titel nicht abgeschnitten wird */
@media (min-width: 761px) and (max-width: 1180px) {
  .topbar-inner { gap: 10px; }
  .nav { gap: 0; }
  .nav a { padding: .4rem .55rem; font-size: .9rem; }
}
/* Tablet-Breite: Navigation in eigene Zeile, damit der Titel ganz zu sehen ist */
@media (min-width: 761px) and (max-width: 1000px) {
  .topbar-inner { flex-wrap: wrap; gap: 8px 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; scrollbar-width: none; }
  .user-menu { margin-left: auto; }
}

/* ---------- Profil-Emoji, Erinnerung, Geschmackszwilling ---------- */
.avatar.has-emoji { background: var(--surface-2); font-size: 1.35rem; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.avatar-lg.has-emoji { font-size: 2.4rem; }
.avatar-btn { position: relative; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; flex: none; }
.avatar-btn:hover .avatar { filter: brightness(1.05); }
.avatar-edit {
  position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #fff8ec; font-size: .75rem; box-shadow: 0 0 0 2px var(--surface);
}
.comment-av { margin-right: .3rem; }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: .75rem; }
.avatar-grid button {
  aspect-ratio: 1; font-size: 1.6rem; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); border: 2px solid transparent; color: var(--text); font-weight: 800; font-family: var(--font-display);
}
.avatar-grid button:hover { border-color: var(--border); transform: scale(1.06); }
.avatar-grid button.is-current { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 20%, var(--surface)); }
.avatar-picker { padding: 20px; }
.reminder-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding: 12px 16px; border-radius: var(--radius);
  background: linear-gradient(135deg, #b3202a, #861a20); color: #fff8ec; text-decoration: none; box-shadow: var(--shadow);
}
.reminder-banner:hover { color: #fff; filter: brightness(1.05); }
.reminder-banner span:first-of-type { flex: 1; min-width: 180px; }
.reminder-go { font-weight: 700; white-space: nowrap; }
.twin-card { margin-bottom: 28px; }
.twin-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: .5rem 0 1rem; }
.twin-pick { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--gold) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.twin-pick.is-opposite { background: var(--surface-2); border-color: var(--border); }
.twin-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.twin-who { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-family: var(--font-display); }
.twin-list { list-style: none; margin: 0 0 .75rem; padding: 0; display: grid; gap: 8px; }
.twin-list li { display: grid; grid-template-columns: 32px minmax(70px, 140px) minmax(0, 1fr) 3.2em; align-items: center; gap: 10px; font-size: .9rem; }
.twin-list .avatar { width: 32px; height: 32px; font-size: .9rem; }
.twin-list .avatar.has-emoji { font-size: 1.05rem; }
.twin-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.twin-list .track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; display: block; }
.twin-list .fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--beer), var(--gold)); }
.twin-pct { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Icons (Lucide) ---------- */
.icon {
  width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
h1 .h-icon, h2 .h-icon { color: var(--gold); margin-right: .45rem; vertical-align: -.14em; width: 1em; height: 1em; stroke-width: 2.2; }
.dialog-head h2 .h-icon { margin-right: .35rem; }
.award-emoji, .hl-emoji { color: var(--gold); }
.award-emoji .icon { width: 2rem; height: 2rem; stroke-width: 1.8; }
.hl-emoji .icon { width: 1.8rem; height: 1.8rem; stroke-width: 1.8; }
.highlight:nth-child(3n+2) .hl-emoji { color: var(--pine); }
.highlight:nth-child(3n) .hl-emoji { color: var(--red); }
.award:nth-child(3n+2) .award-emoji { color: var(--pine); }
.award:nth-child(3n) .award-emoji { color: var(--red); }
.concealed-icon { color: var(--muted); }
.concealed-icon .icon { width: 2.4rem; height: 2.4rem; stroke-width: 1.6; }
.season-awards .icon { color: var(--gold); }
.prost-btn .icon, .prost-count .icon, .photo-prost-badge .icon { width: 1em; height: 1em; vertical-align: -.15em; }
.photo-preview .icon { width: 2rem; height: 2rem; color: var(--muted); stroke-width: 1.6; }
.missing-line .icon, .rebuy-line .icon { color: var(--gold); }
.missing-line.is-done .icon { color: var(--pine); }
.avatar-edit .icon { width: 13px; height: 13px; stroke-width: 2.4; }
.acc-av .icon { width: 1em; height: 1em; vertical-align: -.15em; }
.nav-finale .icon { width: 1em; height: 1em; vertical-align: -.14em; }
.snow-toggle .icon { width: 1em; height: 1em; vertical-align: -.15em; }
.update-banner .icon { color: var(--gold); }
.reminder-banner > .icon { width: 1.3em; height: 1.3em; }
.hof-medals > span { display: inline-flex; align-items: center; gap: 3px; }
.hof-medals .medal { width: 22px; height: 22px; font-size: .7rem; }
.notice .icon { vertical-align: -.2em; }
.cd-note .icon { color: #f6d77a; }

/* ---------- Spruch des Tages ---------- */
.quote-card {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 16px 20px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.quote-icon { color: var(--gold); flex: none; margin-top: 2px; }
.quote-icon .icon { width: 1.7rem; height: 1.7rem; stroke-width: 1.8; }
.quote-card.is-fact { border-left-color: var(--pine); }
.quote-card.is-fact .quote-icon { color: var(--pine); }
.quote-body { min-width: 0; display: grid; gap: 4px; }
.quote-kicker { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote-card blockquote { margin: 0; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; color: var(--heading); font-style: italic; overflow-wrap: anywhere; }
.quote-card.is-fact blockquote { font-style: normal; font-size: 1.08rem; }
.quote-card figcaption { color: var(--muted); font-size: .88rem; }
.quote-card.is-compact { margin: 1.25rem 0 0; padding: 12px 14px; box-shadow: none; background: var(--surface-2); border-color: transparent; border-left-color: var(--gold); }
.quote-card.is-compact.is-fact { border-left-color: var(--pine); }
.quote-card.is-compact blockquote { font-size: 1.02rem; }
.quote-card.is-compact .quote-icon .icon { width: 1.3rem; height: 1.3rem; }
@media (max-width: 600px) {
  .quote-card { padding: 14px; gap: 10px; }
  .quote-card blockquote { font-size: 1.08rem; }
}

/* ---------- Profilbild ---------- */
.avatar.has-img { overflow: hidden; background: var(--surface-2); padding: 0; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 45%, transparent); }
.avatar.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.acc-av.has-img { display: inline-block; width: 1.45em; height: 1.45em; vertical-align: -.4em; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1.5px var(--gold); }
.acc-av.has-img img { width: 100%; height: 100%; object-fit: cover; }
.avatar.comment-av { width: 26px; height: 26px; font-size: .95rem; margin-right: .1rem; vertical-align: middle; display: inline-grid; }
.avatar.comment-av.has-emoji { font-size: .95rem; background: transparent; box-shadow: none; }
.comment-user { display: inline-flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.picker-title { display: flex; align-items: center; gap: .4rem; font-size: 1rem; margin: 1rem 0 .5rem; }
.picker-title .icon { color: var(--gold); }
.picker-photo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
@media (max-width: 420px) { .btn { white-space: normal; text-align: center; } }

/* ---------- Profile anderer ---------- */
.person-link { color: inherit; text-decoration: none; }
a.person-link:hover, a.person-link:hover b { color: var(--accent); }
a.person-link .avatar { transition: transform .15s; }
a.person-link:hover .avatar { transform: scale(1.06); }
.twin-list li.is-me .twin-name { color: var(--accent); }
.twin-notice { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.lightbox img.avatar-full { width: min(100%, 320px); height: auto; max-height: none; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin: 0 auto; background: none; box-shadow: 0 0 0 3px var(--gold); }
