/* ========= Design-Variablen: hier zentral anpassen ========= */
:root {
  --bg: #f0eee8;            /* warmes Off-White (Vorlage) */
  --ink: #111111;
  --ink-soft: #55524b;
  --coral: #ff4d4d;         /* Signalfarbe der Vorlage */
  --coral-dark: #e23a3a;
  --black: #000000;
  --white: #ffffff;
  --line: #d9d5ca;
  --ok: #1f9d55; --warn: #e8890c; --danger: #d62828; --sim: #5f3dc4;
  --gap: 20px;              /* schwarze Stege zwischen Motiven */
  --pad: clamp(16px, 3vw, 40px);
  --font: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 0px;            /* Vorlage: eckig */
}
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url(/fonts/Lato-Regular.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url(/fonts/Lato-Bold.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-display: swap; src: url(/fonts/Lato-Black.woff2) format("woff2"); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; margin: 0; }
.muted { color: var(--ink-soft); font-size: .92rem; }
main { min-height: 60vh; }
.wrap { padding: var(--pad); max-width: 1100px; margin: 0 auto; }

/* ---------- Kopf / Fuß ---------- */
.sim-banner { background: var(--coral); color: #fff; text-align: center; padding: 6px 12px; font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.sim-tag { display: inline-block; background: var(--sim); color: #fff; padding: 2px 8px; font-size: .7rem; font-weight: 900; letter-spacing: .08em; vertical-align: middle; }
.top { background: var(--bg); position: sticky; top: 0; z-index: 20; border-bottom: 2px solid var(--ink); }
.bar { display: flex; align-items: center; gap: 12px 28px; padding: 12px var(--pad); flex-wrap: wrap; }
.brand { font-weight: 900; font-size: 1.35rem; text-transform: uppercase; letter-spacing: -.03em; text-decoration: none; color: var(--coral); white-space: nowrap; }
.bar nav { display: flex; gap: 6px 22px; flex-wrap: wrap; flex: 1; }
.bar nav a, .bar .who a { text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .08em; }
.bar nav a:hover { color: var(--coral); }
.who { font-size: .8rem; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }

/* ---------- Typografie der Vorlage ---------- */
.display { color: var(--coral); font-weight: 900; text-transform: uppercase; line-height: .9; letter-spacing: -.04em; white-space: nowrap; font-size: clamp(3.4rem, 14.2vw, 17rem); padding: clamp(28px, 6vw, 80px) var(--pad) clamp(20px, 3vw, 40px); overflow: hidden; }
.display .ch { display: inline-block; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
.display .arrow { font-weight: 400; margin-right: .12em; }
.display small { font-size: .22em; letter-spacing: 0; vertical-align: top; color: var(--ink); font-weight: 700; margin-left: .6em; }

/* ---------- Buttons / Formulare ---------- */
button, .btn { font: 700 .9rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; border: 2px solid var(--ink); background: transparent; color: var(--ink); padding: 14px 20px; border-radius: var(--radius); cursor: pointer; text-decoration: none; display: inline-block; transition: background .15s, color .15s, transform .1s; }
button:hover, .btn:hover { background: var(--ink); color: var(--bg); }
button.primary, .btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
button.primary:hover, .btn.primary:hover { background: var(--ink); border-color: var(--ink); }
button.big { width: 100%; padding: 20px; font-size: 1.05rem; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
label { display: block; font-weight: 700; margin: 14px 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea { font: inherit; width: 100%; padding: 12px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); }
input[type=checkbox] { width: auto; }
.row { display: flex; gap: 12px; flex-wrap: wrap; } .row > * { flex: 1; min-width: 140px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; } .checks label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; text-transform: none; letter-spacing: 0; font-size: 1rem; }

/* ---------- Boxen / Hinweise ---------- */
.card { background: #fff; border: 2px solid var(--ink); padding: var(--pad); }
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.error { background: var(--danger); color: #fff; padding: 12px 16px; margin: 12px 0; font-weight: 700; }
.notice { background: #ffe66d; padding: 12px 16px; margin: 12px 0; font-weight: 700; }
.badge { display: inline-block; padding: 3px 10px; font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; background: var(--line); }
.badge.active { background: var(--ok); color: #fff; } .badge.redeemed { background: var(--ink); color: #fff; } .badge.expired, .badge.blocked { background: var(--danger); color: #fff; }
table { width: 100%; border-collapse: collapse; } th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; } th { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }

/* ---------- Werbemotiv (Bild + Text) ---------- */
.media { position: relative; overflow: hidden; background: var(--coral); color: #fff; isolation: isolate; }
.media img.pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; z-index: -2; transform: scale(var(--zoom, 1)); }
a.offer:hover .media img.pic { transform: scale(calc(var(--zoom, 1) * 1.035)); }
.media.noimg { background: linear-gradient(135deg, var(--coral), #ff8a4d); }
.media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 38%, rgba(0,0,0,0) 62%); pointer-events: none; }
.motif { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; padding: clamp(16px, 2.2vw, 34px); }
.motif h2, .motif h3 { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,.35); font-size: clamp(1.9rem, 4.2vw, 4rem); max-width: 14ch; line-height: .92; }
.motif .hh { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; border: 2px solid #fff; padding: 5px 10px; color: #fff; }
.motif .pricerow { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.pricetag { background: var(--coral); color: #fff; font-weight: 900; font-size: clamp(1.6rem, 3vw, 2.6rem); padding: 4px 14px 6px; letter-spacing: -.02em; transform: rotate(-2deg); line-height: 1; box-shadow: 4px 4px 0 var(--ink); }
.was { color: #fff; opacity: .85; text-decoration: line-through; font-weight: 700; font-size: 1.05rem; }
.off { background: #fff; color: var(--ink); font-weight: 900; padding: 4px 10px; font-size: .95rem; }
.tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.tag { font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; background: #fff; color: var(--ink); }
.tag.demo { background: var(--coral); color: #fff; } .tag.spons { background: #fff; color: var(--ink); border: 2px solid var(--ink); }

/* Hauptangebot */
.hero { display: block; text-decoration: none; background: var(--black); }
.hero .media { height: clamp(520px, 82vh, 860px); }
.hero .motif h2 { font-size: clamp(2.6rem, 8.6vw, 9rem); max-width: 11ch; }
.hero .pricetag { font-size: clamp(2.2rem, 5.2vw, 5rem); }
.infostrip { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 20px 40px; padding: 26px var(--pad); background: var(--bg); align-items: center; border-bottom: 2px solid var(--ink); }
.infostrip dt, .facts dt { font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.infostrip dd, .facts dd { margin: 2px 0 0; font-weight: 700; }
.infostrip .cta { justify-self: end; }

/* Raster mit schwarzen Stegen (Vorlage) - Mobile First! */
.wall { background: var(--black); padding: var(--gap); display: grid; gap: var(--gap); grid-template-columns: 1fr; }
.wall a.offer { text-decoration: none; display: flex; flex-direction: column; background: var(--bg); }
.wall a.s2 { grid-column: span 2; } .wall a.s3 { grid-column: span 3; } .wall a.s4 { grid-column: span 4; } .wall a.s6 { grid-column: span 6; }
.wall a.s2 .media { aspect-ratio: 4 / 5; } .wall a.s3 .media { aspect-ratio: 1 / 1; } .wall a.s4 .media { aspect-ratio: 16 / 10; } .wall a.s6 .media { aspect-ratio: 21 / 9; }
.wall a.s4 .motif h3, .wall a.s6 .motif h3 { font-size: clamp(2.2rem, 5vw, 5rem); }
.wall a.s3 .motif h3 { font-size: clamp(2rem, 4.4vw, 4.4rem); }
.cardinfo { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cardinfo .merchant { font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.cardinfo .svc { font-weight: 700; font-size: 1.1rem; line-height: 1.25; }
.cardinfo dl, .facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.cardinfo dt { font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding-top: 3px; }
.cardinfo dd { margin: 0; }
.cardinfo .go { margin-top: auto; padding-top: 6px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; color: var(--coral); }
.empty { padding: 60px var(--pad); }

/* Angebotsdetail */
.detail-hero .media { height: clamp(420px, 72vh, 760px); }
.detail-hero .motif h2 { font-size: clamp(2.4rem, 7vw, 7rem); max-width: 12ch; }
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(24px, 5vw, 72px); padding: clamp(24px, 5vw, 64px) var(--pad); max-width: 1300px; margin: 0 auto; align-items: start; }
.detail h2.sect { font-size: 1.1rem; color: var(--coral); margin: 28px 0 8px; letter-spacing: .02em; } .detail h2.sect:first-child { margin-top: 0; }
.detail p { margin: 0 0 12px; }
.facts { grid-template-columns: 1fr; gap: 14px; }
.buy { background: #fff; border: 2px solid var(--ink); padding: 24px; position: sticky; top: 80px; box-shadow: 8px 8px 0 var(--coral); }
.buy .price { font-size: 3rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; } .buy .price s { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); margin-left: 10px; letter-spacing: 0; }
.buy .left { color: var(--coral); font-weight: 900; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; margin: 8px 0 0; }
.mobilebar { display: none; }
details summary { cursor: pointer; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; }

/* Gutschein / Scanner */
.qr { background: #fff; padding: 14px; max-width: 340px; margin: 12px auto; border: 2px solid var(--ink); } .qr svg { width: 100%; height: auto; display: block; }
.code { font: 900 1.5rem ui-monospace, monospace; text-align: center; letter-spacing: .08em; }
.result { padding: 28px; text-align: center; color: #fff; margin: 16px 0; }
.result.green { background: var(--ok); } .result.red { background: var(--danger); } .result.yellow { background: var(--warn); }
.result h2 { font-size: 2.2rem; margin-bottom: 8px; }
video { width: 100%; max-height: 320px; background: #000; }

/* Händler: Bild-Editor */
.editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.editor .src { position: relative; cursor: crosshair; background: #000; user-select: none; } .editor .src img { width: 100%; max-height: 420px; object-fit: contain; margin: 0 auto; }
.editor .pt { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px #000, 0 0 12px rgba(0,0,0,.6); pointer-events: none; }
.editor .prev { display: grid; gap: 12px; } .editor .prev .media { width: 100%; }
.editor .prev .p-hero .media { aspect-ratio: 16 / 9; } .editor .prev .p-card .media { aspect-ratio: 4 / 5; max-width: 260px; }
.editor .prev .motif h3, .editor .prev .motif h2 { font-size: 1.5rem; }

/* ---------- Suche auf der Startseite ---------- */
.search { display: grid; grid-template-columns: 2fr 1.4fr 1.1fr auto auto; gap: 10px; align-items: stretch; padding: 18px var(--pad) 10px; }
.search button { white-space: nowrap; }
.search button.on { background: var(--ink); color: var(--bg); }
.search-reset { grid-column: 1 / -1; font-weight: 700; font-size: .85rem; }
.search-head { padding: 14px var(--pad) 18px; }
@media (max-width: 900px) {
  .search { grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; }
  .search input, .search button.primary { grid-column: 1 / -1; }
  .search select, .search button { min-width: 0; padding-left: 10px; padding-right: 10px; }
}
.search-toggle { display: none; }
@media (max-width: 700px) {
  .search .search-toggle { display: block; order: 2; }
  .search button[type=button] { order: 1; }
  .search input, .search select, .search button.primary { order: 3; grid-column: 1 / -1; }
  .search-reset { order: 4; }
  .search:not(.open) input, .search:not(.open) select, .search:not(.open) button.primary { display: none; }
}

/* ---------- Kopfleiste: Symbole rechts (Warenkorb mit Anzahl, Profil, Abmelden) ---------- */
.tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink); text-decoration: none; }
.iconbtn:hover, .iconbtn.on { background: none; color: var(--coral); }
.iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.badge-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 900; line-height: 18px; text-align: center; }
@media (max-width: 700px) { .bar nav.guest { display: none; } .tools .acct { border: 0; background: none; } .tools .acct:hover { color: var(--coral); } }

/* ---------- Responsive: Mobile First ---------- */
/* Mobile (default): 1 Spalte - schon in .wall Regel oben! */

/* Tablet (ab 768px): 2 Spalten */
/* Nur Tablet: 2 Spalten. Auf dem PC gilt das 6er-Raster aus wallSpans (höchstens 3 Angebote pro Reihe). */
@media (min-width: 768px) and (max-width: 1199px) {
  .wall { grid-template-columns: 1fr 1fr; }
  .wall a.offer { grid-column: span 1 !important; } .wall a.offer .media { aspect-ratio: 4 / 5 !important; }
  .wall a.offer:nth-child(3n+1) { grid-column: span 2 !important; } .wall a.offer:nth-child(3n+1) .media { aspect-ratio: 16 / 10 !important; }
  .wall a.offer:last-child:nth-child(3n+2) { grid-column: span 2 !important; } .wall a.offer:last-child:nth-child(3n+2) .media { aspect-ratio: 16 / 10 !important; }
}
@media (min-width: 768px) {
  .infostrip { grid-template-columns: 1fr 1fr; } .infostrip .cta { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .detail { grid-template-columns: 1fr; } .buy { position: static; }
  .editor { grid-template-columns: 1fr; }
}

/* Desktop (ab 1200px): 6 Spalten */
@media (min-width: 1200px) {
  .wall { grid-template-columns: repeat(6, 1fr); }
  /* Schrift auf dem Bild nach Kartenbreite statt Bildschirmbreite: schmale Karten bekommen kleinere Titel */
  .wall a.offer .media { container-type: inline-size; }
  /* Gleiche Bildhöhe in jeder Reihe, damit die Infoboxen bündig beginnen (Bilder schneiden per object-fit zu) */
  .wall a.offer:nth-child(n):nth-last-child(n) .media { aspect-ratio: auto !important; height: clamp(300px, 21vw, 400px); }
  .wall a.offer .motif { padding: clamp(14px, 6cqi, 34px); gap: clamp(8px, 2.5cqi, 12px); }
  .wall a.offer .motif h3 { font-size: clamp(1.1rem, 8.5cqi, 3rem); max-width: 16ch; }
  .wall a.offer .pricetag { font-size: clamp(1.3rem, 6cqi, 2.2rem); }
}

/* Kleine Mobile-Anpassungen (optional) */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .bar nav { order: 3; flex-basis: 100%; gap: 6px 16px; }
  .wall { padding: 12px; gap: 12px; }
  .wall a.offer, .wall a.offer:nth-child(n) { grid-column: span 1 !important; }
  .wall a.offer .media, .wall a.offer:nth-child(n) .media { aspect-ratio: 4 / 5 !important; }
  .hero .media { height: min(78svh, 640px); min-height: 440px; }
  .detail-hero .media { height: min(70svh, 560px); }
  .detail { grid-template-columns: 1fr !important; gap: 24px !important; }
  .infostrip { grid-template-columns: 1fr; }
  .motif h2, .motif h3, .wall a.offer .motif h3 { font-size: clamp(2.2rem, 11vw, 3.4rem) !important; }
  .pricetag { font-size: 2rem; }
  .mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; gap: 12px; align-items: center; background: #fff; border-top: 2px solid var(--ink); padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); }
  .mobilebar .p { font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1; white-space: nowrap; } .mobilebar button { flex: 1; padding: 16px 12px; }
  .tags { top: 10px; left: 10px; }
}
@media (prefers-reduced-motion: reduce) { .media img.pic { transition: none; } }

/* ---------- Verwaltung: Tabs, Dialoge, Meldungen ---------- */
.wrap.wide { max-width: 1280px; }
h1.ph { font-size: clamp(2rem, 6vw, 4.2rem); color: var(--coral); margin-bottom: 8px; letter-spacing: -.03em; }
h2.sect { font-size: 1.1rem; color: var(--coral); margin: 0 0 10px; letter-spacing: .02em; }
.tabs { display: flex; gap: 4px 6px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin: 14px 0 22px; }
.tabs a { text-decoration: none; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; padding: 12px 16px; border: 2px solid transparent; border-bottom: 0; margin-bottom: -2px; }
.tabs a:hover { color: var(--coral); } .tabs a.on { background: var(--ink); color: var(--bg); }
button.sm, .btn.sm { padding: 8px 12px; font-size: .74rem; }
button.danger { background: var(--danger); border-color: var(--danger); color: #fff; } button.danger:hover { background: #8b1616; border-color: #8b1616; color: #fff; }
.acts { white-space: nowrap; } .acts > * { margin: 2px 4px 2px 0; }
.bar2 { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }
.actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; margin-top: 20px; } .actions.left { justify-content: flex-start; }
.fld { margin-bottom: 4px; } .fld .muted { margin-top: 4px; font-size: .8rem; }
/* Passwortfeld mit Augen-Knopf (Anzeigen/Verbergen). Farbe vom Feld, damit es in jedem Händlerdesign passt. */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-wrap input::-ms-reveal, .pw-wrap input::-ms-clear { display: none; }  /* kein zweites Auge in Edge */
.pw-wrap button.pw-eye { position: absolute; top: 2px; right: 2px; bottom: 2px; width: 46px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: var(--radius);
  background: transparent; color: inherit; display: flex; align-items: center; justify-content: center; text-transform: none; letter-spacing: 0; opacity: .7; }
.pw-wrap button.pw-eye:hover, .pw-wrap button.pw-eye[aria-pressed=true] { background: transparent; color: inherit; opacity: 1; }
.pw-wrap button.pw-eye:focus-visible { opacity: 1; outline: 3px solid currentColor; outline-offset: -5px; }
.pw-wrap button.pw-eye:active { transform: none; }
.pw-wrap .pw-eye svg { width: 22px; height: 22px; pointer-events: none; }
.row.win { align-items: center; margin-bottom: 8px; } .row.win > * { min-width: 90px; }
.thumb { width: 72px; height: 48px; object-fit: cover; } img.cur { max-width: 420px; width: 100%; border: 2px solid var(--ink); }
.sim-tag.dark { background: var(--ink); margin-left: 6px; } td .sim-tag { margin-left: 6px; }
.chk { display: flex; gap: 8px; align-items: center; text-transform: none; letter-spacing: 0; font-weight: 400; font-size: 1rem; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 100; display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--bg); border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--coral); max-width: 520px; width: 100%; padding: 28px; max-height: 92vh; overflow: auto; }
.dialog h2 { font-size: 1.6rem; margin-bottom: 12px; }
#toasts { position: fixed; z-index: 120; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 14px 18px; font-weight: 700; border-left: 8px solid var(--ok); box-shadow: 4px 4px 0 rgba(0,0,0,.25); }
.toast.error { border-left-color: var(--danger); } .toast.warn { border-left-color: var(--warn); }
@media (max-width: 620px) { .dialog { padding: 20px; } #toasts { left: 16px; right: 16px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); } .acts { white-space: normal; } .tabs a { padding: 10px 12px; } }


/* =====================================================================
   Mobile First für den angemeldeten Bereich (Händler, Plattform, Scanner)
   Basis = Smartphone; größere Bildschirme ergänzen weiter unten.
   ===================================================================== */
html { overflow-x: hidden; }
body { overflow-wrap: break-word; }
main, .wrap, .card, .dialog, td, th { min-width: 0; }
td, th, h1, h2, h3, .muted, .notice, .error { overflow-wrap: anywhere; }
button, .btn, a, summary, select, label.chk { touch-action: manipulation; }
.bnav, .acct, .sheetlink, .sheetclose { display: none; }

/* ---------- Smartphone ≤ 700 px ---------- */
@media (max-width: 700px) {
  :root { --pad: 16px; --bnav: calc(64px + env(safe-area-inset-bottom)); }
  body { font-size: 17px; }
  input, select, textarea { font-size: 16px; min-height: 48px; padding: 12px 14px; }  /* 16 px verhindert Auto-Zoom in iOS */
  textarea { min-height: 96px; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; min-height: 0; flex: none; }
  input[type=range] { min-height: 44px; padding: 0; accent-color: var(--coral); }
  input[type=file] { padding: 14px; min-height: 56px; background: #fff; }
  button, .btn { min-height: 48px; padding: 14px 18px; }
  button.sm, .btn.sm { min-height: 44px; padding: 10px 14px; font-size: .8rem; }
  .row > * { min-width: 100%; flex-basis: 100%; }
  .row.win { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
  .row.win > select { grid-column: 1 / -1; } .row.win > * { min-width: 0; }
  .row.win > button { grid-column: 1 / -1; }
  .checks { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .checks label, label.chk { min-height: 48px; padding: 8px 12px; background: #fff; border: 2px solid var(--line); gap: 12px; }
  .actions, .actions.left { flex-direction: column-reverse; align-items: stretch; } .actions > *, .bar2 > * { width: 100%; text-align: center; }
  .bar2 { flex-direction: column; align-items: stretch; }
  .card { padding: 16px; border-width: 2px; }
  h1.ph { font-size: clamp(1.8rem, 9vw, 2.4rem); }
  .wrap.wide { padding-top: 12px; }

  /* Kopfleiste schmal, Hauptmenü unten */
  body.has-bnav { padding-bottom: var(--bnav); }
  body.has-bnav .bar { flex-wrap: nowrap; justify-content: space-between; padding: 8px var(--pad); min-height: 56px; }
  .acct { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 50%; } .acct svg { width: 26px; height: 26px; }
  .bnav { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; background: #fff; border-top: 2px solid var(--ink); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a, .bnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; padding: 6px 2px; border: 0; background: none; color: var(--ink-soft);
    font: 700 .68rem/1.1 var(--font); letter-spacing: .02em; text-transform: none; text-decoration: none; text-align: center; border-radius: 0; min-width: 0; }
  .bnav a span, .bnav button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bnav a.on, .bnav button.on { color: var(--coral); box-shadow: inset 0 3px 0 var(--coral); }
  .bnav svg, .sheetlink svg, .acct svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bnav a:hover, .bnav button:hover { background: none; color: var(--coral); }
  body.has-bnav .mobilebar { bottom: var(--bnav); padding-bottom: 10px; }
  #toasts { bottom: calc(var(--bnav) + 12px) !important; }

  /* Unterbereiche: alle sichtbar, 2 pro Zeile, große Touch-Flächen, kein Seitwärts-Scrollen */
  .tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 6px; border-bottom: 0; margin: 10px 0 16px; }
  .tabs a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: 6px 4px; margin: 0; border: 2px solid var(--ink); font-size: .74rem; letter-spacing: .03em; line-height: 1.1; }

  /* Tabellen werden zu Karten: Beschriftung links, Wert rechts, Aktionen unten über volle Breite */
  .table-wrap { overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr:has(> th) { display: none; }
  tr { background: #fff; border: 2px solid var(--ink); margin: 0 0 12px; padding: 4px 14px 12px; }
  td { display: grid; grid-template-columns: minmax(84px, 36%) 1fr; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 1rem; align-items: start; }
  td[data-label=""] { grid-template-columns: 1fr; }
  td[data-label]:not([data-label=""])::before { content: attr(data-label); font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding-top: 3px; }
  td:last-child { border-bottom: 0; }
  td.acts, td:has(> button:only-child) { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
  td.acts > *, td:has(> button:only-child) > * { flex: 1 1 140px; margin: 0; text-align: center; }
  td .thumb { width: 120px; height: 80px; }
  td > .badge, td > .sim-tag { justify-self: start; }
  summary { display: flex; align-items: center; min-height: 48px; }
  .sim-banner { font-size: .66rem; padding: 5px 10px; letter-spacing: .04em; }
  .muted { font-size: .95rem; }
  td .sim-tag { margin-left: 0; margin-right: 6px; }

  /* Dialoge als Bottom-Sheet */
  .overlay { place-items: end center; padding: 0; }
  .dialog { max-width: none; border-width: 3px 0 0; box-shadow: none; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 92dvh; }
  .dialog.sheet { display: grid; gap: 10px; }
  .sheetlink, .sheetclose { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 14px; background: #fff; border: 2px solid var(--ink); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; font-size: .9rem; }
  .sheetclose { justify-content: center; background: none; }

  /* Bild-Editor */
  .editor { display: flex; flex-direction: column; gap: 16px; }
  .editor .src { touch-action: none; } .editor .src img { max-height: 55vh; }
  .editor .pt { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .editor .prev .p-card .media { max-width: none; }
  img.cur, .thumb { max-width: 100%; }

  /* Scanner und Ergebnis */
  video { max-height: 60vh; object-fit: cover; }
  .result { padding: 22px 16px; } .result h2 { font-size: 1.9rem; }
  .code { font-size: 1.25rem; }
}

/* Sehr schmale Geräte (≤ 360 px) */
@media (max-width: 360px) {
  :root { --pad: 12px; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .bnav a, .bnav button { font-size: .62rem; }
  td { grid-template-columns: 1fr; }
  td[data-label]:not([data-label=""])::before { padding-top: 0; }
}

/* Tablet 701–1024 px: Kopfleiste bleibt, Tabs in einer Zeile umbrechend, Karten/Editor zweispaltig */
@media (min-width: 701px) and (max-width: 1024px) {
  .tabs a { padding: 12px 14px; }
  .editor { grid-template-columns: 1fr; }
  .bar { flex-wrap: wrap; }
  button, .btn { min-height: 44px; }
  input, select, textarea { min-height: 44px; }
}

/* KI-Bilder */
.aibox { border: 2px solid var(--ink); background: #fff; padding: 12px 16px; margin: 16px 0; } .aibox summary { min-height: 44px; display: flex; align-items: center; }
.aiprice { margin: 8px 0; } .aires img { width: 100%; max-height: 420px; object-fit: contain; background: #000; }
.aigrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .aithumb { display: grid; gap: 6px; } .aithumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- Eigene Händlerwebsite (/haendler/:slug): ohne HappyHour-Navigation, drei Designs ---- */
body.site-mode header.top, body.site-mode footer.foot, body.site-mode #sim, body.site-mode #bnav { display: none !important; }
body.site-mode main#app { padding: 0; max-width: none; }
.hs { --hs-bg: #f7f5f0; --hs-ink: #171717; --hs-accent: #171717; --hs-accent-ink: #f7f5f0; --hs-muted: #6b6b6b; --hs-line: #dedbd3;
  min-height: 100vh; background: var(--hs-bg); color: var(--hs-ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
.hs * { box-sizing: border-box; }
.hs-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hs-head { padding: 56px 0 32px; }
.hs-kicker { margin: 0 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-muted); }
.hs-title { margin: 0; font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; font-weight: 900; }
.hs-main { padding-top: 8px; padding-bottom: 48px; }
.hs-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 720px) { .hs-grid { grid-template-columns: 1fr 1fr; } }
.hs-card { display: block; color: inherit; text-decoration: none; }
.hs-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--hs-line); }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(var(--zoom, 1)); transform-origin: var(--hs-origin, center); }
.hs-info { padding-top: 14px; }
.hs-info h3 { margin: 0 0 4px; font-size: 1.2rem; }
.hs-svc { margin: 0 0 8px; color: var(--hs-muted); font-size: .95rem; }
.hs-price { display: flex; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.hs-price strong { font-size: 1.1rem; }
.hs-price s { color: var(--hs-muted); font-size: .9rem; }
.hs-cta { display: inline-block; padding: 12px 18px; background: var(--hs-accent); color: var(--hs-accent-ink); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.hs-empty { color: var(--hs-muted); padding: 48px 0; }
.hs-foot h2 { color: var(--hs-ink); font-size: 1.1rem; margin: 0 0 12px; }
.hs-impressum p { margin: 0 0 6px; color: var(--hs-ink); }
.hs-impressum a { color: var(--hs-ink); }

/* Editorial: großes Titelbild, markante Serifen-Typografie, großzügige Abstände */
.hs-editorial { --hs-bg: #f5f1ea; --hs-ink: #1b1a17; --hs-accent: #1b1a17; --hs-accent-ink: #f5f1ea; --hs-muted: #7a7266; --hs-line: #d9d2c5; font-family: Georgia, "Times New Roman", serif; }
.hs-editorial .hs-head { padding: 96px 0 64px; }
.hs-editorial .hs-title { font-size: clamp(3rem, 11vw, 7.5rem); font-weight: 400; letter-spacing: -.02em; }
.hs-editorial .hs-grid { gap: 80px; }
.hs-editorial .hs-card:first-child { grid-column: 1 / -1; }
.hs-editorial .hs-card:first-child .hs-img { aspect-ratio: 16 / 9; }
.hs-editorial .hs-card:first-child h3 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; }
.hs-editorial .hs-info h3 { font-size: 1.7rem; font-weight: 400; }
.hs-editorial .hs-svc { font-style: italic; }
.hs-editorial .hs-cta { letter-spacing: .14em; }

/* Boutique: heller Auftritt, ruhiges Raster, große Produktbilder */
.hs-boutique { --hs-bg: #ffffff; --hs-ink: #111111; --hs-accent: #111111; --hs-accent-ink: #ffffff; --hs-muted: #777777; --hs-line: #ececec; }
.hs-boutique .hs-head { text-align: center; padding: 72px 0 44px; border-bottom: 1px solid var(--hs-line); margin-bottom: 44px; }
.hs-boutique .hs-title { font-size: clamp(1.8rem, 5vw, 2.8rem); letter-spacing: .18em; text-transform: uppercase; font-weight: 300; }
.hs-boutique .hs-grid { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
@media (min-width: 900px) { .hs-boutique .hs-grid { grid-template-columns: repeat(3, 1fr); gap: 56px 28px; } }
.hs-boutique .hs-img { aspect-ratio: 1 / 1; }
.hs-boutique .hs-info h3 { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hs-boutique .hs-cta { background: transparent; color: var(--hs-ink); border: 1px solid var(--hs-ink); }
.hs-boutique .hs-impressum { max-width: 520px; margin: 0 auto; }

/* Bistro: warme Farben, einladendes Hauptmotiv, appetitliche Angebotskarten */
.hs-bistro { --hs-bg: #fff4e3; --hs-ink: #3b1d0c; --hs-accent: #c2410c; --hs-accent-ink: #fff8ee; --hs-muted: #8a5a3c; --hs-line: #f1d7b5; }
.hs-bistro .hs-head { background: var(--hs-accent); color: #fff8ee; padding: 64px 0 52px; text-align: center; border-radius: 0 0 48px 48px; }
.hs-bistro .hs-kicker { color: #fdd7b4; }
.hs-bistro .hs-title { font-family: Georgia, serif; font-style: italic; font-weight: 400; color: #fff8ee; }
.hs-bistro .hs-main { padding-top: 36px; }
.hs-bistro .hs-grid { gap: 36px 24px; }
.hs-bistro .hs-card { background: #fff; border-radius: 28px; padding: 14px; box-shadow: 0 8px 0 var(--hs-line); }
.hs-bistro .hs-card:first-child { grid-column: 1 / -1; }
.hs-bistro .hs-card:first-child .hs-img { aspect-ratio: 21 / 9; }
.hs-bistro .hs-img { border-radius: 20px; }
.hs-bistro .hs-info { padding: 14px 6px 6px; }
.hs-bistro .hs-info h3 { font-family: Georgia, serif; font-size: 1.3rem; }
.hs-bistro .hs-price strong { color: var(--hs-accent); font-size: 1.4rem; }
.hs-bistro .hs-cta { border-radius: 999px; padding: 12px 22px; }
.hs-bistro .hs-foot { background: #fff; border-top: 0; border-radius: 48px 48px 0 0; }

/* Ohne Design (schlichte Händlerseite) */
.hs-standard .hs-grid { gap: 24px; }

/* Galerie (Fotos 2 bis 4) auf der Angebotsseite und in der Portal-Bearbeitung */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0; }
.photo-slot { border: 1px dashed var(--line, #ccc); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 140px; }
.photo-slot.locked { justify-content: center; background: transparent; }
.photo-slot .thumb { width: 100%; height: 90px; }
@media (max-width: 620px) { .photo-slots { grid-template-columns: 1fr; } }

/* Vorschau der Händlerwebsite im Portal: begrenzte Höhe, scrollbar */
.hs-embed { border: 1px solid var(--line, #ccc); max-height: 620px; overflow: auto; margin-top: 8px; }
.hs-embed .hs { min-height: 0; }
.hs-embed .hs-head { padding: 36px 0 24px; }
.hs-embed .hs-editorial .hs-head { padding: 56px 0 36px; }

/* Nachtlounge: dunkel, Goldakzente, Serif, schmale Goldrahmen */
.hs-nachtlounge { --hs-bg: #111015; --hs-ink: #f3ead7; --hs-accent: #d4af37; --hs-accent-ink: #111015; --hs-muted: #a39a88; --hs-line: #2e2a33; font-family: Georgia, "Times New Roman", serif; }
.hs-nachtlounge .hs-head { text-align: center; padding: 88px 0 56px; border-bottom: 1px solid var(--hs-accent); }
.hs-nachtlounge .hs-kicker { color: var(--hs-accent); letter-spacing: .3em; }
.hs-nachtlounge .hs-title { font-weight: 400; letter-spacing: .06em; font-size: clamp(2.2rem, 6vw, 4.2rem); }
.hs-nachtlounge .hs-main { padding-top: 48px; }
.hs-nachtlounge .hs-grid { gap: 48px; }
.hs-nachtlounge .hs-card { border: 1px solid var(--hs-accent); padding: 12px; }
.hs-nachtlounge .hs-img { aspect-ratio: 4 / 5; }
.hs-nachtlounge .hs-info { text-align: center; padding-top: 18px; }
.hs-nachtlounge .hs-info h3 { font-weight: 400; font-size: 1.35rem; letter-spacing: .04em; }
.hs-nachtlounge .hs-price { justify-content: center; }
.hs-nachtlounge .hs-price strong { color: var(--hs-accent); }
.hs-nachtlounge .hs-cta { background: transparent; color: var(--hs-accent); border: 1px solid var(--hs-accent); }
.hs-nachtlounge .hs-foot { border-top-color: var(--hs-accent); }
.hs-nachtlounge .hs-impressum a { color: var(--hs-accent); }

/* Riviera: luftig in Blau und Weiß, große Kopfzeile, weiche Karten */
.hs-riviera { --hs-bg: #f3f8fa; --hs-ink: #0e3a4a; --hs-accent: #1f7a99; --hs-accent-ink: #ffffff; --hs-muted: #5b7c88; --hs-line: #cfe3ea; }
.hs-riviera .hs-head { background: linear-gradient(135deg, #1f7a99, #4fb3c9); color: #fff; padding: 72px 0 56px; border-radius: 0 0 32px 32px; }
.hs-riviera .hs-kicker { color: #d7f1f8; }
.hs-riviera .hs-title { color: #fff; font-weight: 900; }
.hs-riviera .hs-grid { gap: 28px; }
@media (min-width: 720px) { .hs-riviera .hs-grid { grid-template-columns: 1fr 1fr; } }
.hs-riviera .hs-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(14, 58, 74, .08); }
.hs-riviera .hs-card:first-child { grid-column: 1 / -1; }
.hs-riviera .hs-img { aspect-ratio: 16 / 10; }
.hs-riviera .hs-card:first-child .hs-img { aspect-ratio: 21 / 9; }
.hs-riviera .hs-info { padding: 18px 20px 22px; }
.hs-riviera .hs-price strong { color: var(--hs-accent); font-size: 1.25rem; }
.hs-riviera .hs-cta { border-radius: 999px; }

/* Landhaus: erdig und behaglich, Holzrahmen-Charme, Serif */
.hs-landhaus { --hs-bg: #f2ede3; --hs-ink: #2f3b2a; --hs-accent: #4e6b3a; --hs-accent-ink: #f5f0e6; --hs-muted: #6f6a5b; --hs-line: #d6cdb8; font-family: Georgia, "Times New Roman", serif; }
.hs-landhaus .hs-head { text-align: center; padding: 64px 0 40px; margin: 24px 16px 0; border: 2px solid var(--hs-accent); border-radius: 4px; }
.hs-landhaus .hs-title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
.hs-landhaus .hs-main { padding-top: 40px; }
.hs-landhaus .hs-grid { gap: 40px; }
@media (min-width: 720px) { .hs-landhaus .hs-grid { grid-template-columns: 1fr 1fr; } }
.hs-landhaus .hs-img { aspect-ratio: 5 / 4; border: 8px solid #fff; box-shadow: 0 2px 0 var(--hs-line); }
.hs-landhaus .hs-info::before { content: ""; display: block; width: 40px; height: 2px; background: var(--hs-accent); margin-bottom: 12px; }
.hs-landhaus .hs-info h3 { font-size: 1.35rem; }
.hs-landhaus .hs-cta { background: var(--hs-accent); }
.hs-landhaus .hs-foot { background: #e7dfcc; margin-top: 16px; }

/* ---- Händlerauftritt: Unterseiten (Warenkorb, Kasse, Bestätigung, Angebot, Impressum) im Design des Händlers ---- */
.hs { --bg: var(--hs-bg); --ink: var(--hs-ink); --ink-soft: var(--hs-muted); --coral: var(--hs-accent); --coral-dark: var(--hs-accent);
  --line: var(--hs-line); --white: var(--hs-bg); color: var(--hs-ink); }
.hs .wrap, .hs .detail, .hs .checkout, .hs .cart, .hs .confirm, .hs .impressum-page { color: var(--hs-ink); background: transparent; }
.hs .card { background: transparent; border-color: var(--hs-line); color: var(--hs-ink); }
.hs button.primary, .hs .btn.primary, .hs .buy button.primary { background: var(--hs-accent); border-color: var(--hs-accent); color: var(--hs-accent-ink); }
.hs button, .hs .btn { color: var(--hs-ink); border-color: var(--hs-ink); }
.hs a { color: var(--hs-ink); }
.hs-bar { border-bottom: 1px solid var(--hs-line); padding: 16px 0; }
.hs-bar-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.hs-brand { font-weight: 900; font-size: 1.2rem; color: var(--hs-ink); text-decoration: none; }
.hs-main { padding-top: 32px; padding-bottom: 40px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hs-line); }
.cart-qty { display: flex; gap: 8px; align-items: center; }
.cart-qty input { width: 72px; }
.cart-sum { float: right; margin-left: 16px; font-weight: 700; }
.cart-opts { display: grid; gap: 8px; margin: 8px 0 16px; }
.cart-opt { display: block; padding: 12px 14px; border: 1px solid var(--hs-line); }
.cart-opt.off { opacity: .55; }
.cart-pickup { margin: 8px 0 16px; }
.cart-total p { display: flex; justify-content: space-between; margin: 6px 0; }
.cart-total .total { border-top: 1px solid var(--hs-line); padding-top: 10px; font-size: 1.1rem; }
.delivery-facts { margin-top: 24px; }
.delivery-facts dl { margin: 0; }
.confirm .card p, .checkout .card p { margin: 6px 0; }
.checkout label { display: block; margin-top: 10px; font-size: .85rem; }
.checkout input { width: 100%; }
@media (max-width: 620px) { .cart-line { grid-template-columns: 1fr; } .cart-sum { float: none; margin: 4px 0 0; } }
.impressum-page .hs-impressum { max-width: 640px; }

/* Legal pages (impressum, datenschutz) */
.legal-page { max-width: 760px; margin: 0 auto; }
.legal-page h2 { color: var(--coral); margin: 28px 0 10px; letter-spacing: .02em; font-size: 1.1rem; }

/* Händlerlogo (Kopf und Startseite des Auftritts) und Vorschau im Profil */
.hs-logo { display: inline-block; margin-right: 14px; vertical-align: middle; }
.hs-logo img { display: block; max-height: 56px; width: auto; max-width: 180px; height: auto; object-fit: contain; }
.hs-head .hs-logo img { max-height: 84px; max-width: 240px; margin-bottom: 10px; }
.merchant-logo-preview { display: block; max-height: 96px; max-width: 240px; margin: 8px 0 14px; object-fit: contain; }

/* Händlerauftritt: Lesbarkeit auf hellen Flächen (Hinweisfeld, Kaufbox). Die HappyHour-Hauptseite bleibt unverändert. */
.hs .notice, .hs .notice a { color: #1b1b1b; }
.hs .notice a { text-decoration: underline; }
.hs .buy { color: #1b1b1b; }
.hs .buy label, .hs .buy .price, .hs .buy .left { color: #1b1b1b; }
.hs .buy .muted, .hs .buy s { color: #5a5a5a; }
.hs .buy input { color: #1b1b1b; background: #fff; }
/* Dunkles Design: Felder sind weiß, die Designschrift ist hell → dunkle Feldschrift (sonst unlesbar), Auge ebenso */
.hs-nachtlounge input, .hs-nachtlounge select, .hs-nachtlounge textarea, .hs-nachtlounge .pw-wrap { color: #1b1b1b; }

/* Warenkorb, Kasse und Bestätigung: sauberer Abstand zwischen Überschriften und Karten (beide Designs) */
.cart h2.sect, .checkout h2.sect, .confirm h2.sect { margin: 28px 0 10px; }
.cart .card, .checkout .card, .confirm .card { margin: 14px 0; }
.cart .cart-opts label, .cart .cart-opt { margin: 8px 0; }

/* Zahlungsformular: Abstand zwischen Überschrift und Zahlungsoptionen */
.payment-box h2 { margin-bottom: 20px; }

/* Händlerauftritt: Knöpfe mit lesbarer Schrift, bei Mouse-over Farbwechsel (nicht schwarz auf schwarz) */
.hs button:not(.primary):not(.hs-linkbtn):not(.pw-eye):not(.hs-iconbtn) { color: var(--hs-ink); background: transparent; border: 1px solid var(--hs-ink); padding: 8px 14px; font: inherit; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.hs button:not(.primary):not(.hs-linkbtn):not(.pw-eye):not(.hs-iconbtn):hover, .hs button:not(.primary):not(.hs-linkbtn):not(.pw-eye):not(.hs-iconbtn):focus-visible { background: var(--hs-ink); color: var(--hs-bg); }
.hs a.btn:not(.primary):hover, .hs a.btn:not(.primary):focus-visible { background: var(--hs-ink); color: var(--hs-bg); }
.hs .hs-linkbtn:hover { color: var(--hs-accent); }
.hs .site-order { border-color: var(--hs-line); }

/* Wartezustand nach Zahlung (Händlerauftritt) */
.pay-wait { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 50vh; padding: 48px 16px; }
.pay-wait__title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pay-wait__text { margin: 0; font-size: 0.95rem; color: var(--ink-soft, #55524b); }
.pay-wait__ring { display: block; width: 28px; height: 28px; margin-bottom: 18px; border: 3px solid var(--hs-line, #d9d6cc); border-top-color: var(--hs-accent, var(--coral)); border-radius: 50%; animation: pay-wait-spin 0.9s linear infinite; }
@keyframes pay-wait-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pay-wait__ring { animation-duration: 3s; } }

/* ================= Footer (Hauptseite und Händlerauftritte) =================
   Desktop: Marke links, kompakte Linkgruppe rechts, Breite wie der Seiteninhalt.
   Handy (≤ 700 px): Marke oben, darunter 2 × 2-Raster, Links ≥ 44 px hoch. */

/* Kurze Seiten: Footer unten halten, ohne ihn über den Inhalt zu legen */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
body > main { flex: 1 0 auto; }

/* --- HappyHour-Hauptseite --- */
/* Hintergrund dezent dunkler als --coral: Weiß auf #ff4d4d hat nur 3,3:1, auf #dc3030 4,7:1 (WCAG AA für Normaltext) */
.foot { --foot-bg: #dc3030; background: var(--foot-bg); color: #fff; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); }
.foot-in { max-width: 1100px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 2px; }
.foot-logo { font-weight: 900; font-size: 1.15rem; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.foot-note { font-size: .8rem; }
.foot-note:empty { display: none; }
.foot-nav ul { list-style: none; margin: 0 -12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: #fff; text-decoration: none;
  font-weight: 700; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.foot-nav a:hover { text-decoration-line: underline; }
.foot-nav a:focus-visible { outline: 3px solid #fff; outline-offset: -3px; text-decoration-line: underline; }

@media (max-width: 700px) {
  .foot { padding: 28px 0 calc(24px + env(safe-area-inset-bottom)); }
  .foot-in { padding: 0 20px; flex-direction: column; align-items: stretch; gap: 8px; }
  .foot-nav ul { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .foot-nav a { display: flex; padding: 0; font-size: .9375rem; letter-spacing: .06em; }
  .foot-nav a:focus-visible { outline-offset: 2px; }
}
/* Feste Leisten unten (Kaufleiste ≤ 620 px, Hauptmenü ≤ 700 px) dürfen keine Footerlinks verdecken.
   Das Hauptmenü reserviert seinen Platz schon über body { padding-bottom }, die Kaufleiste braucht ihn hier. */
@media (max-width: 620px) {
  body.has-mobilebar { --mbar: calc(76px + env(safe-area-inset-bottom)); }
  body.has-bnav.has-mobilebar { --mbar: 76px; }
  body.has-mobilebar .foot { padding-bottom: calc(24px + var(--mbar)); }
}

/* --- Händlerauftritte: gleiches Prinzip, Farben/Schrift des jeweiligen Designs --- */
.hs-site { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hs-site > .hs-main { flex: 1 0 auto; width: 100%; }
.hs-foot { border-top: 1px solid var(--hs-line); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--hs-muted); font-size: .92rem; }
.hs-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 40px; flex-wrap: wrap; }
.hs-foot-brand { min-width: 0; }
.hs-foot-name { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--hs-ink); font-weight: 700; font-size: 1.05rem; }
.hs-foot-name .hs-logo { margin: 0; }
.hs-foot-name .hs-logo img { max-height: 40px; max-width: 120px; }
.hs-foot-line { margin: 4px 0 0; }
/* Gedämpfte Designfarbe erreicht in einigen Designs nur ~4,1:1 → leicht zur Schriftfarbe hin mischen (≥ 4,5:1) */
.hs-foot-line { color: color-mix(in srgb, var(--hs-muted) 70%, var(--hs-ink)); }
.hs-foot a { color: var(--hs-ink); text-decoration: none; text-underline-offset: 4px; }
.hs-foot a:hover, .hs-foot a:focus-visible { text-decoration-line: underline; }
.hs-foot a:focus-visible { outline: 2px solid var(--hs-ink); outline-offset: 2px; }
.hs-foot-back { display: inline-flex; align-items: center; min-height: 44px; }
.hs-foot-nav ul { list-style: none; margin: 0 -10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.hs-foot-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
@media (max-width: 700px) {
  .hs-foot { padding: 28px 0 calc(24px + env(safe-area-inset-bottom)); font-size: .94rem; }
  .hs-foot-in { padding: 0 20px; flex-direction: column; align-items: stretch; gap: 4px; }
  .hs-foot-nav ul { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .hs-foot-nav a { display: flex; padding: 0; font-size: 1rem; }
  .hs-bistro .hs-foot { border-radius: 28px 28px 0 0; }
}
@media (max-width: 620px) { body.has-mobilebar .hs-foot { padding-bottom: calc(24px + var(--mbar)); } }

/* ================= Kopf der Händlerauftritte =================
   Textlinks (Alle Angebote, Meine Bestellungen) + Symbole (Warenkorb mit Anzahl, Mein Profil, Abmelden/Anmelden).
   Startseite: Symbole oben rechts im Kopf. Unterseiten: Marke links, Links und Symbole rechts;
   auf dem Handy Marke + Symbole in einer Zeile, Links darunter. Farben kommen aus dem jeweiligen Design. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hs-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.hs-nav a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.hs-nav a:hover, .hs-nav a[aria-current=page] { text-decoration-line: underline; }
.hs-nav a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hs-head .hs-nav { margin-top: 12px; }
.hs-boutique .hs-head .hs-nav, .hs-bistro .hs-head .hs-nav, .hs-nachtlounge .hs-head .hs-nav, .hs-landhaus .hs-head .hs-nav { justify-content: center; }

.hs-tools { display: flex; align-items: center; gap: 2px; }
.hs .hs-iconbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: inherit; text-decoration: none; cursor: pointer; transition: background .15s; }
.hs .hs-iconbtn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hs .hs-iconbtn:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: inherit; }
.hs .hs-iconbtn:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; background: transparent; color: inherit; }
.hs .hs-iconbtn:active { transform: none; }
.hs .hs-iconbtn[aria-current=page]::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; background: currentColor; border-radius: 1px; }
.hs-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--hs-accent); color: var(--hs-accent-ink);
  font: 700 .68rem/18px var(--font); letter-spacing: 0; text-align: center; box-shadow: 0 0 0 2px var(--hs-bg); }

/* Unterseiten */
.hs-bar { color: var(--hs-ink); padding: 8px 0; }
.hs-bar-in { flex-wrap: nowrap; gap: 8px 28px; min-height: 56px; }
.hs-bar .hs-brand { display: inline-flex; align-items: center; min-width: 0; margin-right: auto; }
.hs-bar .hs-brand .hs-logo img { max-height: 40px; }
.hs-bar .hs-tools { margin-right: -10px; }

/* Startseite: Symbole oben rechts, bündig mit dem Inhalt */
.hs-head { position: relative; color: var(--hs-ink); }
.hs-head > .hs-tools { position: absolute; top: 12px; right: calc(max(0px, (100% - 1120px) / 2) + 6px); z-index: 2; }
.hs-landhaus .hs-head > .hs-tools { top: 8px; right: 8px; }
/* Farbige Köpfe: Links und Symbole in der Kopfschrift (statt dunkel auf Farbe), Badge hell */
.hs-bistro .hs-head { color: #fff8ee; } .hs-riviera .hs-head { color: #fff; }
.hs-bistro .hs-head .hs-badge, .hs-riviera .hs-head .hs-badge { background: #fff; color: var(--hs-accent); box-shadow: none; }
.hs-nachtlounge .hs-head .hs-badge, .hs-nachtlounge .hs-bar .hs-badge { box-shadow: 0 0 0 2px var(--hs-bg); }

@media (max-width: 700px) {
  .hs-bar-in { flex-wrap: wrap; gap: 0 12px; padding-top: 4px; }
  .hs-bar .hs-brand { flex: 1; font-size: 1.1rem; }
  .hs-bar .hs-nav { order: 3; flex-basis: 100%; gap: 0 20px; }
  .hs-head > .hs-tools { top: 8px; right: 6px; }
}
