/* Gäste-App im RheinWeinWelt-Design: Anthrazit, RWW-Rot, Roboto Condensed */
@font-face { font-family: "RC"; src: url(fonts/RobotoCondensed-Light.woff2) format("woff2"), url(fonts/RobotoCondensed-Light.ttf); font-weight: 300; font-display: swap; }
@font-face { font-family: "RC"; src: url(fonts/RobotoCondensed-Regular.woff2) format("woff2"), url(fonts/RobotoCondensed-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "RC"; src: url(fonts/RobotoCondensed-Medium.woff2) format("woff2"), url(fonts/RobotoCondensed-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "RC"; src: url(fonts/RobotoCondensed-Bold.woff2) format("woff2"), url(fonts/RobotoCondensed-Bold.ttf); font-weight: 700; font-display: swap; }

:root {
  --anthrazit: #2b2b2e;
  --anthrazit-2: #3a3a3e;
  --rot: #9c0c14;
  --rot-hell: #c5202b;
  --rose: #c25a78;
  --gold: #c9b37e;
  --grau: #8f9093;
  --text: #1f1f21;
  --text-2: #5d5d61;
  --grund: #f4f3f0;
  --karte: #ffffff;
  --linie: #e3e2e0;
  --rand: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--text); font: 300 17px/1.45 "RC", "Roboto Condensed", system-ui, sans-serif; overflow-x: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.kicker { font-weight: 400; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }

/* ---------- Kopf ---------- */
.kopf { position: sticky; top: 0; z-index: 10; background: var(--anthrazit); color: #fff; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.kopf-innen { display: flex; align-items: center; gap: 12px; padding: 12px var(--rand) 8px; max-width: 900px; margin: 0 auto; }
.logo { width: 46px; height: 46px; filter: invert(1); flex: none; }
.titel { flex: 1; min-width: 0; }
.titel .kicker { color: #bdbdc0; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titel h1 { margin: 2px 0 0; font-weight: 700; font-size: 25px; line-height: 1; letter-spacing: .03em; text-transform: uppercase; }
.sprache { display: flex; border: 1px solid #5a5a5f; border-radius: 4px; overflow: hidden; flex: none; }
.sprache button { background: none; border: 0; padding: 7px 6px; font-weight: 500; font-size: 14px; color: #bdbdc0; letter-spacing: .04em; min-width: 34px; min-height: 36px; }
.sprache button[aria-pressed="true"] { background: var(--rot-hell); color: #fff; }

.suche { padding: 0 var(--rand) 10px; max-width: 900px; margin: 0 auto; }
.suche input { width: 100%; border: 0; border-radius: 6px; padding: 11px 14px 11px 40px; font: 400 17px "RC", sans-serif; color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%238f9093' stroke-width='2.2'%3E%3Ccircle cx='7.5' cy='7.5' r='5.5'/%3E%3Cpath d='M12 12l4.5 4.5'/%3E%3C/svg%3E") 13px 50% no-repeat; }
.suche input:focus { outline: 2px solid var(--rot-hell); outline-offset: 1px; }

.raeume { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--rand) 12px; max-width: 900px; margin: 0 auto; scrollbar-width: none; }
.raeume::-webkit-scrollbar { display: none; }
.raeume button { flex: none; background: var(--anthrazit-2); border: 1px solid #4a4a4f; color: #e6e6e8; border-radius: 999px; padding: 6px 14px; font-weight: 400; font-size: 15px; min-height: 36px; white-space: nowrap; }
.raeume button[aria-pressed="true"] { background: #fff; color: var(--anthrazit); border-color: #fff; font-weight: 500; }

/* ---------- Filter ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px var(--rand) 4px; max-width: 900px; margin: 0 auto; }
.filter button { background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 6px 12px; font-size: 15px; font-weight: 400; color: var(--text-2); min-height: 36px; display: inline-flex; align-items: center; gap: 6px; }
.filter button[aria-pressed="true"] { border-color: var(--anthrazit); background: var(--anthrazit); color: #fff; }
.filter .punkt { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.punkt.weiss { background: var(--gold); }
.punkt.rose { background: var(--rose); }
.punkt.rot { background: var(--rot); }
.filter .trenner { width: 100%; height: 0; }
.treffer { padding: 6px var(--rand) 0; max-width: 900px; margin: 0 auto; font-size: 14px; color: var(--text-2); }
.treffer button { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--rot); font-size: 14px; }

/* ---------- Liste ---------- */
main { max-width: 900px; margin: 0 auto; padding: 4px var(--rand) 90px; }
.lade, .leer { text-align: center; color: var(--text-2); padding: 40px 0; }
.raum-titel { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.raum-titel h2 { margin: 0; font-weight: 700; font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }
.raum-titel .kicker { color: var(--grau); }
.raum-titel::after { content: ""; flex: 1; height: 1px; background: #cfcfd2; align-self: center; }

.gut { background: var(--karte); border-radius: 8px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); overflow: hidden; scroll-margin-top: 190px; }
.gut.ziel { outline: 2px solid var(--rot-hell); }
.gut h3 { margin: 0; padding: 12px 14px 4px; font-weight: 500; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.wein { border-top: 1px solid var(--linie); }
.gut h3 + .wein { border-top: 0; }
.wein-kopf { display: grid; grid-template-columns: 5px 1fr auto; gap: 0 12px; padding: 10px 14px 12px; align-items: start; }
.wein-kopf .balken { align-self: stretch; border-radius: 3px; background: var(--gold); }
.wein.rose .balken { background: var(--rose); }
.wein.rot .balken { background: var(--rot); }
.aufklappen { display: block; text-align: left; background: none; border: 0; padding: 0; min-height: 44px; }
.wein-name { display: block; font-weight: 700; font-size: 19px; line-height: 1.2; }
.wein-name .jahr { font-weight: 300; }
.wein.rot .wein-name { color: var(--rot); }
.wein-info { display: block; font-size: 15px; color: var(--text-2); margin-top: 3px; }
.wein-info .farbe { font-weight: 500; }
.wein.rot .wein-info .farbe { color: var(--rot); }
.wein.rose .wein-info .farbe { color: var(--rose); }
.wein-preis { text-align: right; white-space: nowrap; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.wein-preis b { font-weight: 700; font-size: 18px; }
.wein-preis > span:not(.stepper) { font-size: 13px; color: var(--grau); }
.pfeil { display: inline-block; transition: transform .2s; color: var(--grau); font-size: 13px; margin-left: 4px; }
.wein.offen .pfeil { transform: rotate(180deg); }
.wein.gewaehlt { background: #fdf6f6; }
/* Mengenwahl */
.plus { width: 40px; height: 40px; margin-top: 4px; border-radius: 50%; border: 1.5px solid var(--rot-hell); background: #fff; color: var(--rot-hell); font-size: 24px; font-weight: 400; line-height: 1; display: grid; place-items: center; padding: 0 0 2px; }
.plus:active { background: var(--rot-hell); color: #fff; }
.stepper { display: inline-flex; align-items: center; margin-top: 4px; border-radius: 999px; background: var(--rot-hell); color: #fff; }
.stepper button { width: 38px; height: 40px; border: 0; background: none; color: #fff; font-size: 22px; line-height: 1; padding: 0 0 2px; }
.stepper b { min-width: 18px; text-align: center; font-weight: 700; font-size: 17px; }
.wein-text { display: none; padding: 0 14px 14px 31px; }
.wein.offen .wein-text { display: block; }
.wein-text p { margin: 0 0 .6em; }
.wein-text .uebersetzt { font-size: 13px; color: var(--grau); font-style: italic; }
/* ---------- Auswahl ---------- */
.unten-leiste { position: fixed; z-index: 11; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); left: max(16px, env(safe-area-inset-left));
  display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; pointer-events: none; }
.unten-leiste button { pointer-events: auto; }
.probe-knopf { background: var(--anthrazit); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 500; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.probe-knopf b { background: var(--gold); color: var(--anthrazit); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
.merk-knopf {
  background: var(--rot-hell); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 500; font-size: 16px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.merk-knopf b { background: #fff; color: var(--rot-hell); border-radius: 999px; padding: 0 8px; margin-left: 4px; }
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 24px)); max-height: 85vh; color: var(--text); font: inherit; }
dialog::backdrop { background: rgba(20,20,22,.6); }
.dialog-kopf { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--anthrazit); color: #fff; position: sticky; top: 0; }
.dialog-kopf h2 { margin: 0; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: .04em; }
.zu { background: none; border: 0; color: #fff; font-size: 20px; width: 40px; height: 40px; }
dialog .hinweis { margin: 12px 16px; color: var(--text-2); font-size: 15px; }
.merk-zeile { display: grid; grid-template-columns: 5px 1fr auto; gap: 0 12px; padding: 10px 16px; border-top: 1px solid var(--linie); align-items: start; }
.merk-zeile .balken { align-self: stretch; border-radius: 3px; background: var(--gold); }
.merk-zeile.rose .balken { background: var(--rose); }
.merk-zeile.rot .balken { background: var(--rot); }
.merk-zeile .raum { font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rot-hell); }
.merk-zeile .name { font-weight: 500; }
.merk-zeile .gutname { font-size: 14px; color: var(--text-2); }
.merk-zeile .stepper { margin-top: 0; align-self: center; }
.merk-summe { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 2px solid var(--anthrazit); font-weight: 400; }
.merk-summe b { font-weight: 700; font-size: 19px; }
.merk-aktionen { display: grid; gap: 8px; padding: 4px 16px 18px; }
.merk-aktionen button, .breit { width: 100%; min-height: 48px; border-radius: 8px; font-size: 17px; font-weight: 500; border: 1px solid var(--anthrazit); background: #fff; }
.merk-aktionen .haupt, .breit.haupt { background: var(--rot-hell); border-color: var(--rot-hell); color: #fff; }
.merk-aktionen .zweit { background: var(--anthrazit); color: #fff; }
.merk-aktionen .leise { border: 0; background: none; color: var(--text-2); text-decoration: underline; min-height: 40px; font-weight: 400; font-size: 15px; }

/* Große Ansicht für den Tresen */
.tresen-ansicht { width: min(640px, 100vw); max-width: 100vw; max-height: 100dvh; margin: auto; border-radius: 12px; }
@media (max-width: 640px) { .tresen-ansicht { width: 100vw; height: 100dvh; border-radius: 0; } }
#tresenInhalt { padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); }
.tresen-kopf { display: flex; align-items: center; gap: 12px; border-bottom: 2px solid var(--anthrazit); padding-bottom: 12px; }
.tresen-kopf img { width: 52px; height: 52px; }
.tresen-kopf .kicker { color: var(--grau); }
.tresen-kopf h2 { margin: 2px 0 0; font-weight: 700; font-size: 26px; text-transform: uppercase; letter-spacing: .03em; line-height: 1; }
.tresen-hinweis { margin: 12px 0 4px; font-weight: 500; color: var(--rot-hell); letter-spacing: .1em; text-transform: uppercase; font-size: 14px; }
.tresen-tabelle { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 18px; }
.tresen-tabelle td { padding: 10px 4px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tresen-tabelle .anz { font-weight: 700; font-size: 24px; width: 52px; white-space: nowrap; }
.tresen-tabelle b { font-weight: 700; }
.tresen-tabelle tr.rot b { color: var(--rot); }
.tresen-tabelle td span { font-size: 15px; color: var(--text-2); }
.tresen-tabelle .betrag { text-align: right; white-space: nowrap; font-weight: 500; }
.tresen-tabelle tfoot td { border-bottom: 0; border-top: 2px solid var(--anthrazit); font-weight: 700; font-size: 20px; }

/* ---------- Fuß ---------- */
.fuss { background: var(--anthrazit); color: #d6d6d8; text-align: center; padding: 30px var(--rand) calc(90px + env(safe-area-inset-bottom)); font-size: 15px; }
.fuss-logo { width: 70px; filter: invert(1); opacity: .9; }
.fuss b { color: #fff; font-weight: 500; }
.fuss .stand, .fuss .klein { font-size: 13px; color: #a5a5a8; }
.hinweis-band { background: #fff; border-left: 4px solid var(--rot-hell); padding: 10px 14px; margin: 12px 0 0; border-radius: 4px; font-size: 15px; }

@media (min-width: 700px) {
  .titel h1 { font-size: 30px; }
  .logo { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .pfeil { transition: none; } }

.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Notizen zur Probe */
.notiz { margin-top: 12px; padding: 10px 12px 12px; background: var(--grund); border-radius: 8px; }
.notiz-kopf { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.sterne { display: flex; gap: 2px; margin-bottom: 8px; }
.stern { background: none; border: 0; padding: 0; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: #c9c7c2; }
.stern.an { color: var(--gold); }
.stern:focus-visible { outline: 2px solid var(--rot-hell); border-radius: 6px; }
.notiz-text { width: 100%; border: 1px solid var(--linie); border-radius: 6px; padding: 8px 10px; font: 300 16px/1.4 "RC", "Roboto Condensed", sans-serif; color: var(--text); background: #fff; resize: vertical; }
.notiz-text:focus { outline: 2px solid var(--rot-hell); outline-offset: 0; border-color: transparent; }
.mini-sterne { color: var(--gold); letter-spacing: 1px; font-weight: 400; }
.probe-sterne { color: var(--gold); letter-spacing: 1px; }
.probe-notiz { margin: 4px 0 0; font-size: 15px; color: var(--text); font-style: italic; }

/* Hinweis: Wein antippen für Beschreibung & Notiz */
.tipp-band { margin: 12px 0 2px; padding: 10px 14px; background: #fff; border-radius: 8px; border-left: 4px solid var(--gold); font-size: 15px; color: var(--text); }
.mehr-lesen { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 500; color: var(--rot-hell); }
.mehr-lesen .pfeil { color: var(--rot-hell); margin-left: 0; }
