/* Schaufenster – Gestaltung „Kontaktbogen“: Die Seite ist der Negativstreifen eines Modeshootings. Schriften selbst gehostet. */
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/noto-sans-thai-thai.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/noto-sans-thai-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Kanit"; font-style: normal; font-weight: 800; font-display: swap; src: url("/static/fonts/kanit-800-thai.woff") format("woff"); }

:root {
  --plum:#2B0640; --grape:#5A1A8A; --violet:#8338C6; --orchid:#C99BF0; --haze:#EFE2FA;
  --grund:#faf7fd; --karte:#fff; --tinte:var(--plum); --leise:#6a5580; --fehler:#8a1230; --rot:#b3122f; --gruen:#1b6b3a;
  --griff:44px;
  --schrift:"Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --kopf:"Kanit", "Noto Sans Thai", system-ui, sans-serif;
  --loch:repeating-linear-gradient(90deg, var(--grund) 0 7px, transparent 7px 14px);
  --loch-k:repeating-linear-gradient(90deg, var(--karte) 0 3px, transparent 3px 7px);
}

*, *::before, *::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:var(--schrift); font-size:1rem; line-height:1.7; color:var(--tinte); background:var(--grund); overflow-wrap:anywhere; }
[hidden] { display:none !important; }
img { display:block; max-width:100%; }
a { color:var(--grape); }
:focus-visible { outline:3px solid var(--violet); outline-offset:2px; }
h1, h2, h3 { font-family:var(--kopf); font-weight:800; line-height:1.4; margin:0 0 .5rem; }
h1 { font-size:1.75rem; }
h2 { font-size:1.25rem; margin-top:1.5rem; }
p { margin:0 0 .75rem; }
main { max-width:72rem; margin:0 auto; padding:1rem; overflow-x:clip; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.sprung { position:absolute; left:.5rem; top:-4rem; background:var(--plum); color:#fff; padding:.5rem 1rem; z-index:10; }
.sprung:focus { top:.5rem; }

/* Kopf: schmal, klebt nicht */
.vorschau { margin:0; padding:.35rem 1rem; background:var(--orchid); color:var(--plum); text-align:center; font-size:.875rem; line-height:1.6; }
.kopf { display:flex; align-items:center; gap:.5rem; padding:.35rem .75rem; background:var(--grape); }
.marke { display:flex; align-items:center; flex:0 1 9.5rem; min-width:6.5rem; min-height:var(--griff); margin-right:auto; }
.marke svg { display:block; width:100%; height:auto; max-height:30px; }
.tuete-link { display:inline-flex; align-items:center; min-height:var(--griff); padding:0 .9rem; font-family:var(--kopf); font-weight:800; font-size:.95rem; line-height:1.5; white-space:nowrap; color:var(--plum); background:var(--orchid); border-radius:999px; text-decoration:none; box-shadow:0 0 0 2px var(--plum), 0 0 0 4px var(--orchid); margin:0 .25rem; }
.kopf a:focus-visible { outline-color:var(--haze); }
.sprache { display:flex; }
.sprache a { display:inline-flex; align-items:center; justify-content:center; min-width:var(--griff); min-height:var(--griff); font-size:.875rem; color:var(--orchid); text-decoration:none; border-radius:6px; }
.sprache a[aria-current] { color:#fff; background:var(--violet); }

/* Knöpfe und Felder */
label { display:block; font-size:.9rem; color:var(--leise); }
input[type="text"], input[type="tel"], input[type="file"], select, textarea { width:100%; min-height:3rem; padding:.5rem .75rem; font:inherit;
  color:var(--tinte); background:var(--karte); border:1.5px solid var(--orchid); border-radius:10px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid var(--violet); outline-offset:1px; border-color:var(--violet); }
textarea { min-height:7rem; resize:vertical; }
button, .knopf { display:inline-flex; align-items:center; justify-content:center; min-height:var(--griff); padding:.4rem 1.2rem; font-family:var(--kopf);
  font-weight:800; font-size:1rem; line-height:1.5; color:#fff; background:var(--grape); border:1.5px solid var(--grape); border-radius:10px;
  text-decoration:none; cursor:pointer; }
button:hover, .knopf:hover { background:var(--plum); border-color:var(--plum); }
button:disabled { opacity:.5; }
.zweit { color:var(--grape); background:var(--karte); }
.zweit:hover { color:#fff; }
.knopf.gross, .reservieren button { width:100%; min-height:3.5rem; font-size:1.25rem; }
.knoepfe { display:flex; flex-wrap:wrap; gap:.5rem; margin:0 0 .75rem; }
.meldung { margin:.6rem 0 0; color:var(--fehler); font-weight:600; }
.fehler { margin:0 0 1rem; padding:.6rem 1rem .6rem 2rem; background:#f8e7e2; border-left:4px solid var(--fehler); border-radius:6px; color:var(--fehler); font-weight:600; }
.haken { display:flex; align-items:center; gap:.5rem; min-height:var(--griff); color:var(--tinte); }
.haken input { flex:none; width:1.5rem; height:1.5rem; accent-color:var(--grape); }

/* Codesuche */
.suche { margin:1rem -1rem 1.25rem; padding:1.6rem 1rem 1.5rem; background:var(--plum); }
main > .suche:first-child { margin-top:-1rem; }
.suche-titel { margin:0 0 .9rem; font-family:var(--kopf); font-weight:800; font-size:clamp(1.3rem, 5.6vw, 1.65rem); line-height:1.4; color:#fff; text-wrap:balance; }
.suchzeile { display:flex; gap:.5rem; }
.suchzeile input { flex:1 1 auto; min-width:0; min-height:4rem; padding:0 1rem; font-family:var(--kopf); font-weight:800; font-size:1.75rem;
  line-height:1.4; text-transform:uppercase; letter-spacing:.06em; color:var(--plum); background:#fff; border:0; border-radius:12px; }
.suchzeile input::placeholder { color:var(--leise); opacity:1; }
.suchzeile button { flex:none; width:4.5rem; min-height:4rem; padding:0; color:var(--plum); background:var(--orchid); border-color:var(--orchid); border-radius:12px; }
.suchzeile button:hover { background:#fff; border-color:#fff; }
.pfeil { display:block; width:16px; height:16px; border:solid var(--plum); border-width:4px 4px 0 0; transform:translateX(-4px) rotate(45deg); }
.suche .meldung { display:inline-block; padding:.35rem .75rem; background:#fff; border-radius:8px; }

/* Filter-Chips, Leiste scrollt in sich */
.filter { display:flex; align-items:center; gap:.5rem; margin:0 -1rem 1rem; padding:.25rem 1rem; overflow-x:auto; scrollbar-width:none; overscroll-behavior-x:contain; }
.filter::-webkit-scrollbar { display:none; }
.filter label { flex:none; display:flex; align-items:center; gap:.3rem; min-height:var(--griff); padding:0 .3rem 0 .9rem; font-size:.875rem; color:var(--plum); background:var(--karte); border:1.5px solid var(--orchid); border-radius:999px; white-space:nowrap; }
.filter select { width:auto; min-height:40px; padding:0 .4rem; font-size:.875rem; font-weight:600; border:0; background:transparent; }
.filter .haken { padding:0 .9rem; gap:.4rem; }
.filter .haken input { width:1.25rem; height:1.25rem; }
.filter button { flex:none; font-size:.95rem; border-radius:999px; }
.anzahl { margin:0 0 .75rem; font-size:.875rem; color:var(--leise); }
.leer { padding:2rem 0; text-align:center; color:var(--leise); }

/* Filmfenster: Perforation nur aus Verläufen */
.bild, .bildrahmen { display:block; position:relative; padding:17px 8px; border-radius:4px; background:
  var(--loch) 5px 4px / calc(100% - 10px) 9px no-repeat, var(--loch) 5px calc(100% - 4px) / calc(100% - 10px) 9px no-repeat, var(--plum); }
.fenster { display:block; position:relative; aspect-ratio:4 / 5; overflow:hidden; background:var(--haze); }
.fenster img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.fenster .ohne-foto { position:absolute; inset:0; }
.ohne-foto { display:flex; align-items:center; justify-content:center; width:100%; height:100%; padding:.5rem; font-size:.875rem; line-height:1.7; text-align:center; color:var(--leise); background:var(--haze); }
@supports not (aspect-ratio: 4 / 5) { .fenster { height:0; padding-bottom:125%; } }

/* Raster: jede 5. Karte (.gross) belegt 2 Spalten, ab 768 px auch 2 Zeilen */
.raster { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); grid-auto-flow:dense; gap:1.25rem .6rem; }
.karte.gross { grid-column:span 2; }
.karte a { display:flex; flex-direction:column; height:100%; color:inherit; text-decoration:none; }
.karte .zeile { display:flex; justify-content:space-between; align-items:baseline; gap:.5rem; margin-top:.45rem; font-family:var(--kopf); font-weight:800; font-size:1rem; line-height:1.5; }
.karte .code { color:var(--grape); letter-spacing:.08em; }
.karte .code::after { content:""; display:inline-block; margin-left:.4rem; border:solid transparent; border-width:4px 0 4px 6px; border-left-color:var(--violet); }
.karte .name { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.9375rem; line-height:1.7; }
.karte .klein { display:block; font-size:.875rem; line-height:1.6; color:var(--leise); }
.karte a:hover .bild { box-shadow:0 0 0 3px var(--orchid); }
.karte.vergeben .fenster img { opacity:.5; filter:grayscale(.7) brightness(.8); }
.karte.vergeben .preis { color:var(--leise); text-decoration:line-through; }
.schild { position:absolute; left:50%; top:50%; transform:translate(-50%, -50%) rotate(-12deg); padding:.1rem .8rem; font-family:var(--kopf); font-weight:800; font-size:1.25rem; line-height:1.5; white-space:nowrap; letter-spacing:.06em; color:var(--rot); background:rgba(255, 255, 255, .92); border:3px solid var(--rot); border-radius:6px; }
.seiten { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:.75rem; margin:2rem 0 1rem; }

/* Artikelseite */
.zurueck-link { margin:0; }
.zurueck-link a { display:inline-flex; align-items:center; min-height:var(--griff); }
.artikel { display:grid; gap:1rem; }
.bilder { display:grid; gap:.5rem; align-content:start; margin:0 -1rem; }
.streifen { display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; overscroll-behavior-x:contain; background:var(--plum); border-radius:4px; }
.streifen::-webkit-scrollbar { display:none; }
.streifen .bildrahmen { flex:0 0 52%; scroll-snap-align:start; border-radius:0; }
.bilder .ohne-foto { aspect-ratio:4 / 5; }
.artikel.vergeben .fenster img { opacity:.5; filter:grayscale(.7) brightness(.8); }
.code-gross { margin:0; font-family:var(--kopf); font-weight:800; font-size:3.5rem; line-height:1.25; letter-spacing:.05em; color:var(--grape); }
.artikel h1 { font-size:1.5rem; margin:0; }
.einzel { margin:.25rem 0 0; font-size:.9375rem; color:var(--leise); }
.preis-zeile { margin:.75rem 0 0; }
.preis-gross { font-family:var(--kopf); font-weight:800; font-size:2.5rem; line-height:1.4; }
.versand { font-size:.9375rem; color:var(--leise); }
.artikel.vergeben .preis-gross { color:var(--leise); text-decoration:line-through; }
.vergeben-hinweis { display:inline-block; padding:.25rem .9rem; font-family:var(--kopf); font-weight:800; color:#fff; background:var(--plum); border-radius:8px; }
.daten { margin:1rem 0; }
.daten div { display:flex; gap:.75rem; padding:.5rem 0; border-bottom:1px solid var(--haze); }
.daten dt { flex:0 0 6.5rem; color:var(--leise); }
.daten dd { margin:0; font-weight:600; }
.in-tuete { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; padding:.5rem .75rem; background:var(--haze); border-left:4px solid var(--violet); border-radius:6px; }
/* damit das Formular am Rand des ganzen Angaben-Blocks kleben kann */
.chat { display:contents; }
.reservieren { position:sticky; bottom:0; z-index:3; margin:.5rem -1rem; padding:.6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); background:var(--grund); border-top:2px solid var(--plum); }
.rueckgabe { margin:1.5rem 0 0; padding-top:1rem; border-top:1px solid var(--haze); font-size:.9375rem; }
.rueckgabe h2 { margin-top:0; font-size:1.05rem; }

/* Tüte, Bestell- und Zahlseite */
.tuete { list-style:none; margin:0 0 1rem; padding:0; display:grid; gap:.5rem; }
.tuete-zeile { display:flex; align-items:center; gap:.75rem; padding:.5rem; background:var(--karte); border:1px solid var(--haze); border-radius:12px; }
.tuete-bild { flex:none; width:56px; padding:8px 4px; border-radius:3px; background:
  var(--loch-k) 3px 2px / calc(100% - 6px) 4px no-repeat, var(--loch-k) 3px calc(100% - 2px) / calc(100% - 6px) 4px no-repeat, var(--plum); }
.tuete-bild img { width:100%; height:auto; aspect-ratio:4 / 5; object-fit:cover; }
.tuete-bild .ohne-foto { aspect-ratio:4 / 5; font-size:.75rem; line-height:1.3; padding:.1rem; }
.tuete-text { flex:1 1 auto; min-width:0; display:grid; }
.code-mittel { font-family:var(--kopf); font-weight:800; font-size:1.6rem; line-height:1.4; letter-spacing:.05em; color:var(--grape); text-decoration:none; }
.tuete-name { font-size:.9375rem; }
.tuete-preis { font-family:var(--kopf); font-weight:800; font-variant-numeric:tabular-nums; }
.tuete-entfernen { flex:none; margin:0; }
.tuete-entfernen button { font-family:var(--schrift); font-weight:600; font-size:.875rem; }
.summen { margin:0 0 1rem; }
.summen div { display:flex; justify-content:space-between; gap:.75rem; padding:.4rem 0; border-bottom:1px solid var(--haze); }
.summen dt { color:var(--leise); }
.summen dd { margin:0; font-weight:600; font-variant-numeric:tabular-nums; }
.summen .gesamt { border:0; border-top:3px solid var(--plum); align-items:baseline; }
.summen .gesamt dt, .summen .gesamt dd { font-family:var(--kopf); font-weight:800; font-size:1.75rem; line-height:1.5; color:var(--tinte); }
.frist { margin:0 0 .4rem; font-weight:600; }
.balken { display:block; width:100%; height:6px; margin:0 0 1.25rem; border:0; border-radius:3px; appearance:none; background:var(--haze); color:var(--violet); }
.balken::-webkit-progress-bar { background:var(--haze); border-radius:3px; }
.balken::-webkit-progress-value { background:var(--violet); border-radius:3px; }
.balken::-moz-progress-bar { background:var(--violet); border-radius:3px; }
/* QR: schwarz auf Weiß mit Ruhezone */
.qr { width:min(22rem, 100%); min-width:220px; margin:0 auto 1rem; padding:1rem; background:#fff; border:2px solid var(--plum); border-radius:12px; filter:none; }
.qr svg { display:block; width:100%; height:auto; }
.ok { color:var(--gruen); }
.angaben-form label { margin-bottom:.75rem; font-weight:600; color:var(--plum); }
.angaben-form label.haken { margin-bottom:0; font-weight:400; }
.angaben-form button { width:100%; min-height:3.25rem; }
fieldset { min-width:0; margin:0 0 1rem; padding:.5rem .75rem; border:1.5px solid var(--orchid); border-radius:10px; }
legend { padding:0 .25rem; font-size:.9rem; font-weight:600; color:var(--plum); }
.beleg #belegknopf { width:100%; min-height:3.25rem; }
.datenschutz { margin:1rem 0; padding:.75rem 1rem; background:var(--haze); border-radius:12px; font-size:.875rem; line-height:1.7; }
.datenschutz h3 { margin:0 0 .25rem; font-size:1rem; }
.datenschutz ul { margin:.25rem 0 0; padding-left:1.25rem; }
.verantwortlich .v-text { display:block; white-space:pre-line; }
.vorschau-hinweis { padding:.5rem .75rem; background:var(--haze); border-left:4px solid var(--orchid); border-radius:6px; }
details.aendern { margin:1rem 0; }
details.aendern summary { display:flex; align-items:center; min-height:var(--griff); cursor:pointer; font-weight:600; color:var(--grape); }

/* Fuß: dunkel, ruhig */
.fuss { margin-top:2rem; padding:1.5rem 1rem; background:var(--plum); color:var(--haze); }
.fuss a { color:var(--orchid); display:inline-flex; align-items:center; min-height:var(--griff); margin-right:1rem; }
.fuss p { margin:0 0 .25rem; }
.fuss .gebraucht { font-weight:600; }
.verkaeufer { margin-top:.75rem; font-size:.9375rem; }
.verkaeufer h2 { margin:0; font-size:1rem; color:var(--orchid); }
.v-name { font-weight:600; }
.v-text { white-space:pre-line; }

@media (min-width: 768px) {
  .raster { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:1.75rem 1rem; }
  .karte.gross { grid-row:span 2; }
  .karte.gross .bild { flex:1 1 auto; display:flex; min-height:20rem; }
  .karte.gross .fenster { flex:1 1 auto; aspect-ratio:auto; }
  .artikel { grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:2rem; }
  .bilder { margin:0; }
  .streifen .bildrahmen { flex-basis:38%; }
  .reservieren { position:static; margin:.5rem 0; padding:0; background:none; border:0; }
  .suche-titel { font-size:2rem; }
}
@media (min-width: 1100px) { .raster { grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) {
  .suche { margin-inline:0; padding:2.5rem 2rem; border-radius:16px; }
  main > .suche:first-child { margin-top:0; }
  .filter { margin-inline:0; padding-inline:0; }
}

/* Bewegung nur ohne „reduzierte Bewegung“; ohne JS fehlt .js-ein, alles bleibt sichtbar */
@media (prefers-reduced-motion: no-preference) {
  @keyframes ein { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:none; } }
  .js-ein .ein { animation:ein .3s ease-out both; }
  .i2 { animation-delay:.04s; } .i3 { animation-delay:.08s; } .i4 { animation-delay:.12s; } .i5 { animation-delay:.16s; }
  .i6 { animation-delay:.2s; } .i7 { animation-delay:.24s; } .i8 { animation-delay:.28s; } .i9 { animation-delay:.32s; }
  .i10 { animation-delay:.36s; } .i11 { animation-delay:.4s; } .i12 { animation-delay:.44s; }
  button, .knopf { transition:transform .1s, background-color .15s; }
}
button:active, .knopf:active { transform:scale(.97); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}
