@font-face { font-family: "Raleway"; font-weight: 400; font-display: swap; src: url("/static/fonts/Raleway-Regular.ttf") format("truetype"); }
@font-face { font-family: "Raleway"; font-weight: 700; font-display: swap; src: url("/static/fonts/Raleway-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Raleway"; font-weight: 800; font-display: swap; src: url("/static/fonts/Raleway-Bold.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-weight: 400; font-display: swap; src: url("/static/fonts/InterTight-Regular.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-weight: 500; font-display: swap; src: url("/static/fonts/InterTight-Medium.ttf") format("truetype"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url("/static/fonts/InterTight-SemiBold.ttf") format("truetype"); }

:root {
  --zeilenraster: 64px minmax(0, 1fr) 120px 120px 130px 84px; --zeilenraster-wunsch: 64px minmax(0, 1fr) 120px 120px 130px;
  --wein-bordeaux: #6b1d34; --wein-bordeaux-700: #561629; --wein-traube-900: #2a1420;
  --wein-papier: #fbf8f4; --wein-papier-2: #f3ede6; --wein-linie: #e7dfd6; --wein-tinte: #24161c; --wein-gold: #b8893a;
  --grund: var(--wein-papier); --flaeche: #ffffff; --flaeche-2: var(--wein-papier-2); --buehne-licht: #ffffff; --linie: var(--wein-linie);
  --text: var(--wein-tinte); --text-leise: #6f5d63; --akzent: var(--wein-bordeaux); --akzent-text: #ffffff;
  --gold: var(--wein-gold); --gold-flaeche: #f6ecd8; --fehler: #b3261e; --fehler-flaeche: #fbe9e7;
  --farbe-rot: #7b1e2e; --farbe-weiss: #e8d98a; --farbe-rose: #e9a3a8; --farbe-schaumwein: #d9c98f; --farbe-suess: #c98a2b; --farbe-orange: #d98b3a;
  --radius-s: 11px; --radius: 16px; --radius-l: 22px;
  --schatten: 0 2px 14px -6px rgba(42, 20, 32, .18);
  --font-kopf: "Raleway", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --leiste-hoehe: 64px; --knopf: #6b1d34; --knopf-hover: #561629; --stern-leer: #9b8b91;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #1b0f15; --flaeche: #2a1a22; --buehne-licht: #46303a; --flaeche-2: #34222b; --linie: #46303a; --text: #f3eae4; --text-leise: #b9a6ad;
    --akzent: #c4506f; --akzent-text: #ffffff; --gold: #d3a955; --gold-flaeche: #3a2d17; --fehler: #ff9a90; --fehler-flaeche: #4a1f1c;
    --schatten: 0 2px 14px -6px rgba(0, 0, 0, .6);
    --knopf: #a83a58; --knopf-hover: #8f2f4a; --stern-leer: #85707a;
    --farbe-rot: #d0566f; --farbe-weiss: #f0e29a; --farbe-rose: #f0b0b5; --farbe-schaumwein: #e4d6a0; --farbe-suess: #d9993a; --farbe-orange: #e89a4a;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 400 16px/1.5 var(--font-text); color: var(--text); background: var(--grund); -webkit-text-size-adjust: 100%; }
h1, h2, h3, button, .knopf, .eyebrow, .badge, .wortmarke { font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
h1 { font-size: 28px; font-weight: 800; margin: 4px 0 6px; letter-spacing: -.01em; line-height: 1.2; }
h2 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
p { margin: 8px 0; }
a { color: var(--akzent); text-underline-offset: 2px; }
img { max-width: 100%; }
.ueberspringen { position: absolute; left: -9999px; }
.ueberspringen:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 12px; background: var(--flaeche); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.rahmen { min-height: 100vh; }
main { max-width: 960px; margin: 0 auto; padding: 4px 16px calc(var(--leiste-hoehe) + 36px + env(safe-area-inset-bottom)); }
.eyebrow { display: inline-block; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); }
.seitenkopf { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.seitenkopf > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.leer { color: var(--text-leise); font-style: italic; }
.klein-text, .unter { color: var(--text-leise); font-size: 14px; }

/* Navigation: mobil Leiste unten, Desktop Seitenleiste */
.seitenleiste { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; background: var(--flaeche); border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom); }
.seitenleiste .wortmarke, .seitenleiste .abmelden { display: none; }
.appkopf { display: flex; align-items: center; gap: 8px; max-width: 960px; margin: 0 auto; padding: calc(6px + env(safe-area-inset-top)) 16px 2px; text-decoration: none; color: var(--text); }
.appkopf img { border-radius: 9px; }
.appkopf .wortmarke { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.wortmarke .gold { color: var(--wein-gold); }
.seitenleiste nav { display: flex; align-items: stretch; justify-content: space-around; height: var(--leiste-hoehe); }
.seitenleiste nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding-bottom: 8px; color: var(--text-leise);
  text-decoration: none; font-size: 11px; font-weight: 500; }
.seitenleiste nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.seitenleiste nav a[aria-current="page"] { color: var(--akzent); font-weight: 700; }
.seitenleiste nav a.plus { position: relative; }
.seitenleiste .seitenlink { display: none; }
@media (max-width: 759px) {
  .seitenleiste nav a[aria-current="true"] { color: var(--akzent); font-weight: 700; }
}

/* Profilbild und Initialen */
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-flaeche); color: var(--text); border: 1px solid var(--gold); object-fit: cover; overflow: hidden;
  font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-weight: 800; font-size: 14px; letter-spacing: .02em; line-height: 1; }
.avatar-gross { width: 96px; height: 96px; font-size: 34px; }
.avatar-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); border-radius: 50%; }
.avatar-link:focus-visible, .verwaltungslink:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.avatar-link[aria-current="page"] .avatar { border-color: var(--akzent); box-shadow: 0 0 0 2px var(--akzent); }
.appkopf-rechts { position: absolute; z-index: 10; top: calc(2px + env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 12px; }
.verwaltungslink { color: var(--text-leise); font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.glocke { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; color: var(--text); border-radius: 50%; text-decoration: none; }
.glocke svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glocke:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.glocke[aria-current="page"] { color: var(--akzent); }
.glocke-zahl { position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--knopf); color: var(--akzent-text);
  font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.profilbild-zeile { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 8px 0 12px; }
.profilbild-zeile form { flex: 1 1 220px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.stapel { display: grid; gap: 12px; }
.stapel .knoepfe { margin-top: 0; }
.stapel > button { justify-self: start; }
@media (max-width: 759px) { .profilbild-zeile form { align-items: stretch; } }
.dateiwahl { display: grid; gap: 6px; }
label.dateiwahl.knopf { display: inline-flex; }
.stapel > h2, .karte > h2:first-child { margin-top: 0; }
.karte > h2 { margin-bottom: 8px; }
.stapel > h2 { margin-bottom: 0; }
.freigabe-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--linie); }
.freigabe-zeile .freigabe-name { flex: 1 1 120px; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.freigabe-zeile form { margin: 0; }
.sammelmail { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); }
.sammelmail p { margin: 0; }
.sammelmail label.haken { align-self: flex-start; }
.lagerliste { list-style: none; padding: 0; margin: 12px 0; }
.lagerliste a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; min-height: 48px; border-bottom: 1px solid var(--linie); color: var(--text); text-decoration: none; }
.lagerliste a:hover { background: var(--flaeche-2); }
.lagerliste a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.lager-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.lager-anzahl { flex: none; color: var(--text-leise); font-size: 14px; }
.seitenleiste nav a.plus svg { position: absolute; top: -12px; left: 50%; margin-left: -22px; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--knopf); color: var(--akzent-text);
  stroke: var(--akzent-text); box-shadow: var(--schatten); }

@media (min-width: 760px) {
  .abmelden-mobil { display: none; }
  .appkopf, .appkopf-rechts { display: none; }
  main .suchleiste { margin: 0 0 16px; padding: 8px 0 12px; }
  main { padding: 32px 32px 48px 272px; max-width: none; }
  main > * { max-width: 960px; }
  .seitenleiste { top: 0; right: auto; bottom: 0; width: 240px; display: flex; flex-direction: column; border-top: 0; border-right: 1px solid var(--linie);
    padding: 24px 16px; background: var(--wein-traube-900); }
  .seitenleiste .wortmarke { display: flex; align-items: center; gap: 10px; margin: 0 8px 24px; color: #fbf8f4; font-weight: 800; font-size: 20px; text-decoration: none; }
  .seitenleiste nav { flex-direction: column; justify-content: flex-start; height: auto; gap: 4px; }
  .seitenleiste nav a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s);
    font-size: 15px; color: rgba(251, 248, 244, .75); }
  .seitenleiste nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .seitenleiste nav a[aria-current="page"] { background: var(--wein-bordeaux); color: #fff; }
  .seitenleiste nav a.plus span { display: inline; }
  .seitenleiste nav a.plus svg { position: static; width: 22px; height: 22px; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; stroke: currentColor; }
  .seitenleiste .seitenlink { display: flex; }
  .seitenleiste .verwaltungslink { align-items: center; gap: 12px; margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-s); font-size: 15px; color: rgba(251, 248, 244, .75); }
  .seitenleiste .verwaltungslink:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .seitenleiste .verwaltungslink[aria-current="page"] { background: var(--wein-bordeaux); color: #fff; }
  .seitenleiste .verwaltungslink svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .seitenleiste .glocke.seitenlink { width: auto; height: auto; justify-content: flex-start; gap: 12px; margin: 16px 0 0; padding: 10px 12px; border-radius: var(--radius-s);
    font-size: 15px; color: rgba(251, 248, 244, .75); }
  .seitenleiste .glocke.seitenlink:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .seitenleiste .glocke.seitenlink[aria-current="page"] { background: var(--wein-bordeaux); color: #fff; }
  .seitenleiste .glocke.seitenlink svg { width: 22px; height: 22px; }
  .seitenleiste .glocke.seitenlink .glocke-zahl { position: static; margin-left: auto; }
  .seitenleiste .lagerlink + .verwaltungslink { margin-top: 4px; }
  .seitenleiste .avatar-link { margin: auto 0 12px; padding: 4px 8px; border-radius: var(--radius-s); color: rgba(251, 248, 244, .9); font-size: 14px; font-weight: 500; }
  .seitenleiste .avatar-link:hover { background: rgba(255, 255, 255, .08); }
  .seitenleiste .avatar-name { min-width: 0; overflow-wrap: anywhere; }
  .seitenleiste .abmelden { display: block; margin: 0 8px; }
  .seitenleiste .abmelden button { width: 100%; background: transparent; color: rgba(251, 248, 244, .8); border-color: rgba(255, 255, 255, .25); }
}

/* Knoepfe */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; line-height: 1;
  padding: 12px 18px; min-height: 44px; border-radius: var(--radius-s); cursor: pointer; text-decoration: none; background: var(--flaeche); color: var(--akzent);
  border: 1px solid var(--linie); }
button:hover, .knopf:hover { border-color: var(--akzent); background: var(--flaeche-2); }
button.primaer, .knopf.primaer { background: var(--knopf); color: var(--akzent-text); border-color: var(--knopf); }
button.primaer:hover { background: var(--knopf-hover); }
button.sekundaer { background: var(--gold-flaeche); color: var(--text); border-color: var(--gold); }
button.klein, .knopf.klein { padding: 7px 12px; min-height: 34px; font-size: 13px; }
.knoepfe, .aktionen { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.knoepfe { grid-column: 1 / -1; }
@media (max-width: 759px) { .karte .knoepfe > button.primaer { flex: 1 1 100%; } .karte .knoepfe.zweiteilig > button.primaer { flex: 1 1 auto; padding-left: 12px; padding-right: 12px; } }
form { margin: 0; }
div.gefahr { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--linie); }

/* Meldungszeile nach schreibenden Aktionen */
.meldung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: 8px 0 12px; padding: 10px 14px;
  background: var(--gold-flaeche); border: 1px solid var(--gold); border-radius: var(--radius-s); }
.meldung form { margin: 0; }

/* Feste Aktionsleiste: Hauptknoepfe bleiben sichtbar */
.festleiste { position: sticky; bottom: calc(var(--leiste-hoehe) + env(safe-area-inset-bottom)); z-index: 10; display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin: 16px -16px 0; padding: 10px 16px; background: var(--grund); border-top: 1px solid var(--linie); }
.festleiste > * { flex: 1 1 auto; }
@media (min-width: 760px) { .festleiste { bottom: 0; margin-left: 0; margin-right: 0; } }
.knopf.gefahr, button.gefahr { color: var(--fehler); border-color: var(--fehler); }
.loeschvorschau { display: flex; align-items: center; gap: 12px; }
.loeschvorschau img { border-radius: var(--radius-s); object-fit: contain; background: var(--flaeche-2); }

/* Karten und Formulare */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 16px; box-shadow: var(--schatten); margin: 12px 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 16px; }
.raster .breit, details.breit { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 500; color: var(--text-leise); }
label.haken { flex-direction: row; align-items: center; gap: 8px; align-self: end; min-height: 44px; }
input, select, textarea { font: inherit; font-size: 16px; color: var(--text); background: var(--grund); border: 1px solid var(--linie); border-radius: var(--radius-s);
  padding: 10px 12px; min-height: 44px; width: 100%; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--knopf); width: 20px; height: 20px; min-height: 0; flex: none; padding: 0; }
input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
label, .raster > * { min-width: 0; }
input[type="file"] { padding: 8px; }
textarea { min-height: 80px; resize: vertical; }
details > summary { cursor: pointer; font-weight: 700; font-family: var(--font-kopf); font-variant-numeric: lining-nums; padding: 8px 0; font-feature-settings: "lnum" 1; }
.fehler { background: var(--fehler-flaeche); color: var(--fehler); border: 1px solid var(--fehler); border-radius: var(--radius-s); padding: 10px 14px; }
.hinweis { background: var(--gold-flaeche); border: 1px solid var(--gold); border-radius: var(--radius-s); padding: 10px 14px; margin: 12px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fehler[hidden] { display: none; }

/* Badges und Farbpunkte */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--flaeche-2); color: var(--text); border: 1px solid var(--linie); white-space: nowrap; }
.badge.vivino { background: var(--gold-flaeche); border-color: var(--gold); }
.vivino-wert { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; }
.vivino-wert .sterne { color: var(--gold); letter-spacing: 2px; }
.badge.warn { background: var(--gold-flaeche); border-color: var(--gold); }
.badge[class*="farbe-"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--punkt, var(--linie)); }
.farbe-rot { --punkt: var(--farbe-rot); } .farbe-weiss { --punkt: var(--farbe-weiss); } .farbe-rose { --punkt: var(--farbe-rose); }
.farbe-schaumwein { --punkt: var(--farbe-schaumwein); } .farbe-suess { --punkt: var(--farbe-suess); } .farbe-orange { --punkt: var(--farbe-orange); }

/* Kennzahlen und Listen */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.kennzahlen .karte { margin: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; min-height: 112px; }
.kennzahlen a.karte { color: var(--text); text-decoration: none; }
.kennzahlen a.karte:hover { border-color: var(--akzent); background: var(--flaeche-2); }
.kennzahlen a.karte:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.kennzahlen .eyebrow { line-height: 1.35; hyphens: auto; }
.kennzahlen b { font-family: var(--font-kopf); font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "lnum" 1; }
.kennzahlen .karte.null b { color: var(--text-leise); font-weight: 700; }
.kennzahlen .karte.betont { background: var(--gold-flaeche); border-color: var(--gold); }
/* Kennzahlen kompakt */
@media (max-width: 759px) {
  .kennzahlen { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kennzahlen .karte { flex-direction: column-reverse; justify-content: flex-end; gap: 4px; min-height: 0; padding: 12px; }
  .kennzahlen .eyebrow { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; color: var(--text-leise); }
  .kennzahlen b { font-size: 26px; }
}
.farbanteile { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.weinliste, .liste { list-style: none; padding: 0; margin: 12px 0; }
.liste li { padding: 8px 0; border-bottom: 1px solid var(--linie); }
.liste li:last-child { border-bottom: 0; }
.liste + div.gefahr { margin-top: 16px; }
.weinzeile a { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "bild wein bestand" "bild name name" "bild badges badges";
  column-gap: 14px; row-gap: 4px; align-items: start; padding: 12px 14px; margin-bottom: 8px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--schatten); }
.weinzeile.ohne-bestand a { grid-template-areas: "bild wein wein" "bild name name" "bild badges badges"; }
.weinzeile a:hover { border-color: var(--akzent); }
.weinzeile img, .weinzeile .ohnebild { grid-area: bild; width: 64px; height: 64px; border-radius: var(--radius-s); object-fit: contain; background: var(--flaeche-2); }
.ohnebild { display: flex; align-items: center; justify-content: center; color: var(--text-leise); }
.ohnebild svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; opacity: .55; }
.weinzeile img.frei, .trunkkarte img.frei { padding: 4px; object-fit: contain; background: var(--flaeche-2); }
.weinzeile .text { display: contents; overflow-wrap: anywhere; }
.weinzeile .weingut { grid-area: wein; min-width: 0; overflow-wrap: anywhere; }
.weinzeile .zeile2 { grid-area: name; min-width: 0; overflow-wrap: anywhere; color: var(--text-leise); font-size: 14px; }
.weinzeile .zusatz { grid-area: badges; }
.weinzeile .badges { grid-area: badges; display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 4px; }
.weinzeile .zusatz + .badges { margin-top: 28px; }
.spalte.leer { display: none; color: var(--text-leise); }
.spalte.bestand { grid-area: bestand; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; font-family: var(--font-kopf);
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; white-space: nowrap; padding-top: 2px; }
.spalte.bestand b { font-weight: 800; font-size: 20px; }
.spalte.bestand small { font-size: 11px; color: var(--text-leise); }
.spalte.bestand.leer-zahl { font-size: 13px; color: var(--text-leise); }
.weinkopfzeile { display: none; }
.weinliste .weinzeile .badge { max-width: 100%; }
@media (min-width: 760px) {
  .weinzeile a { grid-template-columns: var(--zeilenraster); grid-template-areas: none; align-items: center; row-gap: 0; }
  .weinzeile.ohne-bestand a { grid-template-columns: var(--zeilenraster-wunsch); grid-template-areas: none; }
  .weinzeile a > img, .weinzeile a > .ohnebild, .weinzeile a .weingut, .weinzeile a .zeile2, .weinzeile a .zusatz, .weinzeile a .badges, .weinzeile a .spalte.bestand { grid-area: auto; }
  .weinzeile .text { display: block; min-width: 0; }
  .weinzeile .weingut, .weinzeile .zeile2 { display: block; }
  .weinzeile .badges { display: contents; }
  .weinzeile .zusatz + .badges { margin-top: 0; }
  .spalte.leer { display: block; }
  .spalte.bestand { align-items: center; }
  .weinkopfzeile { display: grid; grid-template-columns: var(--zeilenraster); column-gap: 12px; padding: 0 11px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-leise); font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
  .weinkopfzeile.ohne-bestand { grid-template-columns: var(--zeilenraster-wunsch); }
  .weinkopfzeile span:last-child:not(:nth-child(2)) { text-align: center; }
}
.badge.reife-jetzt { background: var(--flaeche-2); }
.badge.reife-spaeter { color: var(--text-leise); }
.badge.reife-bald { background: var(--gold-flaeche); border-color: var(--gold); }
.badge.reife-drueber { color: var(--text-leise); font-weight: 500; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--flaeche-2);
  border: 1px solid var(--linie); color: var(--text); text-decoration: none; font-size: 14px; }
.chip:hover { border-color: var(--akzent); }
.chip[class*="farbe-"]::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--punkt, var(--linie)); }
.chip b { font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.leerlinks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.trunkkarte a { display: flex; align-items: center; gap: 12px; padding: 10px; margin-bottom: 8px; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); color: var(--text); text-decoration: none; box-shadow: var(--schatten); }
.trunkkarte a:hover { border-color: var(--akzent); }
.trunkkarte img, .trunkkarte .ohnebild { width: 56px; height: 56px; border-radius: var(--radius-s); object-fit: contain; flex: none; background: var(--flaeche-2); }
.trunkkarte .datum, .trunkkarte .menge { font-size: 13px; color: var(--text-leise); }
.trunkkarte .sterne { color: var(--gold); letter-spacing: 1px; }
.trunkkarte .zeile1 { justify-content: flex-start; flex-wrap: wrap; align-items: center; }
.filter { align-items: end; }

/* Detailseite */
.fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin: 12px 0; }
.fotos figure { margin: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px; }
.fotos img { display: block; width: 100%; height: auto; border-radius: var(--radius-s); }
.fotos img.frei { height: 180px; object-fit: contain; background: var(--flaeche-2); padding: 8px; }
.fotos figcaption { font-size: 13px; color: var(--text-leise); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.felder { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 16px 0; }
.felder dt { color: var(--text-leise); font-size: 14px; }
.felder dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* Anmeldung */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
.login-karte { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-l); }
.login-karte h1 { margin: 0; }
.login-marke { align-self: flex-start; }
.rechtliches { text-align: center; margin: 16px auto 0; color: var(--text-leise); }
.rechtliches a { color: inherit; }
@media (prefers-color-scheme: dark) {
  .appkopf img, .login-marke, .seitenleiste .wortmarke img { background: #3a2430; box-shadow: 0 0 0 1px rgba(243, 234, 228, .18); }
  .login-marke { border-radius: 14px; }
  .seitenleiste .wortmarke img { border-radius: 10px; }
}

/* Foto-Auswahl */
.versteckt { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
label.knopf { cursor: pointer; flex-direction: row; font-size: 14px; color: var(--akzent); }
label.knopf.primaer { color: var(--akzent-text); }
label.knopf:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.knopf.gross { min-height: 56px; font-size: 17px; flex: 1 1 200px; }
.fotowahl-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
@media (min-width: 760px) {
  .knopf.gross { flex: 0 0 auto; min-height: 44px; font-size: 15px; padding-left: 22px; padding-right: 22px; }
  .fotowahl-knoepfe { align-items: center; }
}
.fotowahl-mobil { display: contents; }
.fotowahl-desktop { display: none; }
@media (hover: hover) and (pointer: fine) {
  .fotowahl-mobil { display: none; }
  .fotowahl-desktop { display: flex; }
  p.fotowahl-desktop { display: block; margin: 8px 0 0; }
}
@media (hover: none) and (pointer: coarse) {
  .fotowahl-desktop { display: none; }
}
.fotowahl { border: 2px dashed transparent; border-radius: var(--radius); padding: 6px; margin: -6px; }
.fotowahl.zieht { border: 2px dashed var(--akzent); background: var(--gold-flaeche); }
.vorschau { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.vorschau:empty { display: none; }
.vorschau li { display: flex; flex-direction: column; gap: 4px; }
.vorschau img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-s); border: 1px solid var(--linie); }

/* Detailseite: Titelbild und Aktionen */
.weinseite { display: block; }
.weinfoto { display: block; margin-bottom: 12px; }
.titelbild { display: block; width: auto; max-width: 100%; height: auto; max-height: 180px; margin: 0 auto; object-fit: contain; border-radius: var(--radius); }
.weinfoto.buehne { display: flex; align-items: center; justify-content: center; padding: 20px 16px 24px; border: 1px solid var(--linie); border-radius: var(--radius-l);
  background: radial-gradient(ellipse 70% 60% at 50% 35%, var(--buehne-licht) 0%, var(--flaeche-2) 100%); }
.buehne .titelbild { filter: drop-shadow(0 14px 14px rgba(42, 20, 32, .28)); }
h1 .weingut { display: block; font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--text-leise); }
h1 .weinname { display: block; }
.bestandzahl.neu { animation: aufleuchten 1.6s ease-out 1; border-radius: 6px; }
@keyframes aufleuchten { from { background: var(--gold-flaeche); box-shadow: 0 0 0 4px var(--gold-flaeche); } to { background: transparent; box-shadow: 0 0 0 4px transparent; } }
@media (prefers-reduced-motion: reduce) { .bestandzahl.neu { animation: none; } }
.pruefhinweis { margin: 4px 0 12px; }
@media (min-width: 1024px) {
  .weinseite { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 0 32px; align-items: start; }
  .weinkopf { grid-column: 2; grid-row: 1; }
  .weinfoto { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .weinfoto .titelbild { max-height: 480px; }
  .weinfoto.buehne { position: sticky; top: 24px; align-self: start; min-height: 560px; }
  .weinrest { grid-column: 2; grid-row: 2; }
  .weinseite.ohnefoto { grid-template-columns: minmax(0, 1fr); }
  .weinseite.ohnefoto .weinkopf, .weinseite.ohnefoto .weinrest { grid-column: 1; }
}
.bestandzeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 18px; margin: 4px 0 12px; }
details.aktion { min-width: 0; }
details.aktion > summary { list-style: none; width: 100%; text-align: center; }
details.aktion > summary::-webkit-details-marker { display: none; }
details.aktion > summary.knopf { padding: 12px 6px; min-height: 48px; white-space: nowrap; }
details.aktion > summary::after { content: ""; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 2px; }
details.aktion[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }
details.aktion[open] > summary.knopf.primaer { background: var(--flaeche); color: var(--text); border-color: var(--akzent); }
details.aktion[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
details.aktion > form { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Bestand: Suche und einklappbare Filter */
/* Bestand: kompakte Suchleiste, bleibt beim Scrollen oben */
.suchleiste { position: sticky; top: 0; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 -16px 12px; padding: calc(8px + env(safe-area-inset-top)) 16px 8px; background: var(--grund); border-bottom: 1px solid var(--linie); }
.suchzeile { display: flex; gap: 8px; align-items: center; flex: 1 1 auto; min-width: 0; }
.suchzeile input { flex: 1; min-width: 0; }
.lupe { width: 44px; min-height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.lupe svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.suchleiste .filterbox { margin: 0; flex: 0 0 auto; }
.suchleiste .filterbox > summary { list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--linie);
  border-radius: var(--radius-s); background: var(--flaeche); }
.suchleiste .filterbox > summary::-webkit-details-marker { display: none; }
.suchleiste .filterbox[open] > summary { border-color: var(--akzent); }
.suchleiste .filterbox .raster { position: absolute; left: 0; right: 0; top: 100%; margin: 0; padding: 16px; background: var(--flaeche);
  border-bottom: 1px solid var(--linie); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 16px 32px -12px rgba(42, 20, 32, .35);
  max-height: calc(100vh - 260px); overflow-y: auto; }
.suchleiste .filterbox[open]::after { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(27, 15, 21, .35); pointer-events: none; }
.filterzahl { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 6px;
  border-radius: 999px; background: var(--knopf); color: var(--akzent-text); font-size: 12px; font-weight: 700; }
.filterbox { margin-top: 12px; }
.filterbox > summary { cursor: pointer; font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-weight: 700; padding: 8px 0; color: var(--akzent); font-feature-settings: "lnum" 1; }
.filterbox .raster { margin-top: 8px; }

/* Fotoansicht und Zuschneiden */
.fotogross { display: block; width: auto; max-width: 100%; height: auto; max-height: 60vh; margin: 12px auto; object-fit: contain; border-radius: var(--radius); }
.fotogross.frei { width: 100%; padding: 24px; border: 1px solid var(--linie); border-radius: var(--radius-l);
  background: radial-gradient(ellipse 70% 60% at 50% 35%, var(--buehne-licht) 0%, var(--flaeche-2) 100%); }
.foto-zustaende { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; }
.zurueck { display: inline-flex; align-items: center; min-height: 44px; font-weight: 500; }
.zuschnittflaeche { max-width: 100%; height: 50vh; margin: 12px 0; background: var(--flaeche-2); border-radius: var(--radius); overflow: hidden; }
.zuschnittflaeche img { display: block; max-width: 100%; }
.profilbild-zuschnitt .cropper-view-box, .profilbild-zuschnitt .cropper-face { border-radius: 50%; }

/* Cropper.js in den Farben der App, Anfasser gross genug fuer den Finger */
html .cropper-view-box { outline: 2px solid var(--wein-gold); outline-color: var(--wein-gold); }
html .cropper-line { background-color: var(--wein-gold); }
html .cropper-point { background-color: var(--wein-gold); width: 14px; height: 14px; opacity: 1; border-radius: 50%; }
html .cropper-point.point-se { width: 22px; height: 22px; }
html .cropper-point.point-nw { left: -7px; top: -7px; } html .cropper-point.point-ne { right: -7px; top: -7px; }
html .cropper-point.point-sw { left: -7px; bottom: -7px; } html .cropper-point.point-se { right: -11px; bottom: -11px; }
html .cropper-point.point-n { top: -7px; margin-left: -7px; } html .cropper-point.point-s { bottom: -7px; margin-left: -7px; }
html .cropper-point.point-e { right: -7px; margin-top: -7px; } html .cropper-point.point-w { left: -7px; margin-top: -7px; }

/* Entnehmen: Stepper und Sterne */
.schnell { display: flex; align-items: flex-end; gap: 12px; }
.schnell > label { flex: 0 0 auto; }
.schnell > button { flex: 1 1 auto; min-height: 48px; }
.stepper { display: inline-flex; align-items: stretch; gap: 0; }
.stepper input { width: 64px; text-align: center; }
.stepper:has(button:not([hidden])) input { border-radius: 0; border-left: 0; border-right: 0; background: var(--flaeche); }
.stepper button { min-width: 44px; padding: 0; }
.stepper button:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
.stepper button:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.stepper svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; }
details.mehr { margin-top: 12px; }
.sternwahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.sternwahl legend { font-size: 13px; font-weight: 500; color: var(--text-leise); padding: 0; margin-bottom: 4px; }
.sterne-reihe { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.sterne-reihe input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sterne-reihe label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 28px; color: var(--stern-leer); cursor: pointer; flex-direction: row; }
.sterne-reihe input:checked ~ label, .sterne-reihe label:hover, .sterne-reihe label:hover ~ label { color: var(--gold); }
.sterne-reihe input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.sternwahl .keine { display: inline-flex; margin-left: 12px; vertical-align: middle; }

/* Fotoleiste mit Kachel "+ Foto" */
details.fotoplus { min-width: 0; }
details.fotoplus > summary { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; border: 1px dashed var(--akzent); border-radius: var(--radius);
  color: var(--akzent); list-style: none; padding: 0; text-align: center; }
details.fotoplus > summary::-webkit-details-marker { display: none; }
details.fotoplus[open] { grid-column: 1 / -1; }
details.fotoplus[open] > summary { aspect-ratio: auto; min-height: 44px; margin-bottom: 8px; }
.aktionsleiste { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; align-items: start; }
.aktionsleiste details.aktion[open] { grid-column: 1 / -1; }
.aktionsleiste details.aktion:only-child { grid-column: 1 / -1; }
.bearbeiten-link { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Filterfeld: Pillen und feste Leiste im Panel */
.pillen { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pillen legend { font-size: 13px; font-weight: 500; color: var(--text-leise); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.pille { position: relative; display: inline-flex; flex-direction: row; }
.pille input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pille span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche-2);
  color: var(--text); font-size: 14px; font-weight: 500; cursor: pointer; }
.pille[class*="farbe-"] span::before { content: ""; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: var(--punkt, var(--linie)); flex: none; }
.pille input:checked + span { background: var(--knopf); border-color: var(--knopf); color: var(--akzent-text); font-weight: 700; }
.pille input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.karte > .festleiste { grid-column: 1 / -1; margin: 16px -16px -16px; background: var(--flaeche); border-radius: 0 0 var(--radius) var(--radius); }
.filterbox .festleiste { position: sticky; bottom: 0; margin: 4px -16px -16px; grid-column: 1 / -1; z-index: 1; background: var(--flaeche); }
details.weitere { grid-column: 1 / -1; }
:is(details.aufklapper, details.weitere, details.mehr, details.vivino-link) > summary { color: var(--akzent); list-style: none; display: flex; align-items: center; gap: 8px; }
:is(details.aufklapper, details.weitere, details.mehr, details.vivino-link) > summary::-webkit-details-marker { display: none; }
:is(details.aufklapper, details.weitere, details.mehr, details.vivino-link) > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }
:is(details.aufklapper, details.weitere, details.mehr, details.vivino-link)[open] > summary::after { transform: rotate(-135deg); margin-top: 3px; }

/* Erfassen und Bearbeiten */
.hinweis-klein { color: var(--text-leise); font-size: 12px; font-weight: 400; }
.mitknopf { display: flex; gap: 8px; align-items: stretch; }
.mitknopf input { flex: 1; }
details.weitere > .raster { margin-top: 8px; }
.bearbeiten-form fieldset.gruppe { border: 1px solid var(--linie); margin: 12px 0; min-width: 0; }
.bearbeiten-form legend { font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-weight: 700; padding: 0 8px; font-size: 16px; }

/* Einheitlicher Seitenanfang: kompakte Kopfzeile auf allen Seiten */
@media (max-width: 759px) {
  main > .seitenkopf:first-child, main > h1:first-child { margin-top: 12px; }
  .weinkopf { padding-top: 12px; }
}
.seitenkopf > .knopf { align-self: flex-end; }
.seitenkopf h1 { font-size: 28px; margin: 0; }
.seitenkopf.listenkopf h1 { font-size: 24px; }
.lagerzeile { margin: 0 0 16px; }
.aenderungen { list-style: none; margin: 12px 0 8px; padding: 0; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.aenderungen li + li { border-top: 1px solid var(--linie); }
.aenderungen a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 52px; color: var(--text); text-decoration: none; }
.aenderungen a:hover { background: var(--flaeche-2); }
.aenderungen a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
.aenderung-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; line-height: 1.35; }
.aenderung-datum { flex: none; color: var(--text-leise); font-size: 13px; }
.aenderungen .menge, .aenderungen .symbol { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--flaeche-2); }
.aenderungen .menge { font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-weight: 800; font-size: 14px; line-height: 1; }
.aenderungen .menge.plus { color: var(--akzent); }
.aenderungen .menge.minus { color: var(--text-leise); }
.aenderungen .symbol svg { width: 18px; height: 18px; fill: none; stroke: var(--akzent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.abmelden-mobil { text-align: center; margin-top: 32px; }
.linkknopf { background: none; border: 0; color: var(--text-leise); text-decoration: underline; font-weight: 400; font-family: var(--font-text); }
.linkknopf:hover { background: none; color: var(--akzent); }
a.abmelden-link, .abmelden-mobil a { color: var(--text-leise); }

.verwaltungszeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.verwaltungsinfo { display: flex; flex-direction: column; gap: 2px; flex: 1 1 200px; min-width: 0; overflow-wrap: anywhere; }
.verwaltungsaktionen { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.verwaltungsaktionen form { margin: 0; }
.meldung span { overflow-wrap: anywhere; }

.runde h2 { margin-top: 24px; }
.runde .schnitt { margin: 12px 0 4px; font-weight: 700; font-size: 18px; font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.runde-liste { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 12px; }
.runde-liste li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.runde-liste li > div { min-width: 0; flex: 1; }
.runde-kopf { margin: 0; display: flex; flex-wrap: nowrap; align-items: baseline; gap: 2px 8px; }
.runde-kopf > b { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.runde-kopf > .klein-text { flex: none; }
.runde-kopf .sterne { flex: none; color: var(--gold); letter-spacing: 1px; }
.runde-kopf form { flex: none; margin: -12px 0 -12px auto; }
.runde-kopf .linkknopf { min-height: 44px; padding: 4px 8px; font-size: 14px; }
.knoepfe .linkknopf { min-height: 44px; padding: 4px 2px; font-size: 14px; }
.kommentar-text { margin: 2px 0 4px; white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.bewertungsform { display: grid; gap: 10px; }
.bewertungsform input[name="text"], .runde textarea { width: 100%; box-sizing: border-box; }
.badge.runde { background: var(--flaeche-2); }

.neuigkeiten-liste { list-style: none; margin: 12px 0; padding: 0; }
.neuigkeit { margin-bottom: 8px; }
.neuigkeit a { position: relative; display: flex; flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  color: var(--text); text-decoration: none; min-height: 44px; }
.neuigkeit a:hover { border-color: var(--akzent); }
.neuigkeit.ungelesen a { background: var(--flaeche); border-color: var(--linie); }
.neuigkeit.ungelesen a::before { content: ""; position: absolute; top: 16px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--knopf); }
.neuigkeit-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-right: 16px; }
.neuigkeit .sterne { color: var(--gold); letter-spacing: 1px; }
.neuigkeit-zeit { font-size: 13px; color: var(--text-leise); }

.leerzustand { text-align: center; padding: 40px 16px; color: var(--text-leise); }
.leerzustand svg { width: 48px; height: 48px; stroke: var(--gold); fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.leerzustand p { font-style: normal; margin: 8px 0 0; }
.leerzustand .knopf { margin-top: 12px; }
.leerzustand .leerlinks { justify-content: center; align-items: center; margin-top: 12px; }
.leerzustand .leerlinks .knopf { margin-top: 0; }

/* Preissuche */
.preissuche h2 { margin-top: 24px; }
.preissuche h3 { font-size: 15px; margin: 16px 0 6px; }
.preissuche-laeuft { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.angebote { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.angebot { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "preis link" "text text"; gap: 6px 12px; align-items: center;
  padding: 12px 14px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); }
.angebot-preis { grid-area: preis; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.angebot-preis b { font-family: var(--font-kopf); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; font-size: 20px; }
.angebot-text { grid-area: text; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.angebot-haendler { overflow-wrap: anywhere; font-weight: 500; }
.angebot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--text-leise); font-size: 14px; }
.angebot-link { grid-area: link; }
.badge.jahrgang-abweichend { background: var(--gold-flaeche); border-color: var(--gold); color: var(--text); }
.jahrgangwahl { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.jahrgangwahl legend { padding: 0; font-size: 13px; font-weight: 500; color: var(--text-leise); margin-bottom: 4px; }
.jahrgangwahl label.haken { align-self: stretch; color: var(--text); font-size: 16px; font-weight: 400; }
@media (min-width: 760px) {
  .angebot { grid-template-columns: 150px minmax(0, 1fr) auto; grid-template-areas: "preis text link"; }
  .jahrgangwahl { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; align-items: center; }
  .jahrgangwahl legend { width: 100%; }
}
