/* Qkemi – Geschenke-Laden für Albaner (Beschluss 15). Farben aus dem Logo (Beschluss 10). */
@font-face { font-family: "Inter"; src: url("schriften/Inter-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  --rot: #B8202C; --dunkelrot: #961622; --creme: #FAF7F2;
  --text: #1b1b1b; --grund: var(--creme); --flaeche: #fff; --leise: #6b625c; --linie: #e8e0d6;
  --akzent: var(--rot); --akzent-dunkel: var(--dunkelrot); --auf-akzent: #fff;
  --schatten: 0 1px 2px rgba(60, 20, 20, .06), 0 4px 14px rgba(60, 20, 20, .07);
  --rund: 14px;
  --titel-schrift: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --text: #f3ece6; --grund: #1a1314; --flaeche: #251b1c; --leise: #b9aca4; --linie: #3a2c2d;
          --akzent: #e0414d; --akzent-dunkel: #B8202C; --schatten: 0 1px 2px rgba(0, 0, 0, .4); color-scheme: dark; }
}

* { box-sizing: border-box; }
body { margin: 0; padding: 0 16px; font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
       color: var(--text); background: var(--grund); }
main { max-width: 1040px; margin: 0 auto; padding-block: 24px 48px; }
h1, h2, h3, .titel, button, .knopf, legend { font-family: var(--titel-schrift); }
h1 { font-size: clamp(26px, 5vw, 36px); line-height: 1.15; letter-spacing: -.01em; margin-block: 0 12px; }
a { color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent-dunkel); }
:focus-visible { outline: 3px solid var(--akzent); outline-offset: 2px; border-radius: 4px; }

/* Kopf: Wortmarke QKEMI mittig (Beschluss 33), Warenkorb und Sprache rechts, links frei für ein späteres Menü */
.fuss { max-width: 1040px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 8px 16px;
        justify-content: space-between; align-items: center; }
.kopf { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px;
        align-items: center; min-height: 62px; padding-block: 11px; border-bottom: 1px solid var(--linie); }
.marke { grid-column: 2; display: block; line-height: 0; text-decoration: none; color: var(--text); }
.marke:hover { color: var(--text); }
.wortmarke { display: block; height: 40px; width: auto; }
.kopf nav { grid-column: 3; justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end;
            gap: 8px; align-items: center; font-weight: 600; }
.kopf nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--flaeche);
              border: 1px solid var(--linie); color: var(--text); }
.zum-korb { display: inline-flex; align-items: center; gap: 6px; }
.korb-bild { display: block; flex: none; }
.sprache-kurz { display: none; }
.kopf nav a:hover { border-color: var(--akzent); color: var(--akzent); }
.zaehler { display: inline-block; min-width: 1.5em; padding: 0 6px; border-radius: 999px; text-align: center;
           background: var(--akzent); color: var(--auf-akzent); font-size: 13px; line-height: 1.5em; }

/* Fuß */
.fuss { padding-block: 24px; border-top: 1px solid var(--linie); font-size: 14px; justify-content: flex-start; color: var(--leise); }
.fuss a { color: var(--leise); }
.fuss a:hover { color: var(--akzent); }

/* Produkte */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 20px; }
.karte { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 14px; text-decoration: none; color: var(--text);
         background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); transition: transform .15s ease; }
.karte:hover { transform: translateY(-2px); color: var(--text); }
.karte img, .produkt img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--linie); }
.karte .titel { margin-top: 6px; }
.titel { font-weight: 700; }
.preis { color: var(--akzent); font-weight: 700; }
.produkt { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 32px; }

/* Formulare und Knöpfe */
label { display: block; margin-block: 12px; }
select, input { font: inherit; padding: 10px 12px; max-width: 100%; border: 1px solid var(--linie); border-radius: 10px;
                background: var(--flaeche); color: var(--text); }
button, .knopf { font-weight: 700; font-size: 16px; padding: 13px 22px; border: 0; border-radius: 999px;
                 background: var(--akzent); color: var(--auf-akzent); cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .knopf:hover { background: var(--akzent-dunkel); color: var(--auf-akzent); }
button:disabled { opacity: .5; cursor: not-allowed; }

/* Warenkorb und Angaben */
.posten { width: 100%; border-collapse: collapse; margin-block: 12px; }
.posten td { padding: 10px 4px; border-bottom: 1px solid var(--linie); }
.posten td.zahl { text-align: right; white-space: nowrap; }
.klein { font-size: 14px; color: var(--leise); }
.fehler { color: var(--akzent); font-weight: 600; }
.platzhalter { background: #fff3cd; color: #5c4400; padding: 8px; border-radius: 8px; }
.widerruf-link { font-weight: 700; }
fieldset { border: 1px solid var(--linie); border-radius: var(--rund); padding: 8px 16px 16px; margin: 16px 0; background: var(--flaeche); }
legend { font-weight: 700; padding-inline: 4px; }
fieldset input, fieldset select { width: 100%; }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: 14px; margin-top: 24px; }
.angaben dt { font-weight: 700; }
.angaben dd { margin: 0; }

/* Rechtsseiten (rechtsseite() in bauen.py) */
.rechtstext { max-width: 720px; }
.rechtstext h2 { font-size: 22px; margin-block: 32px 8px; }
.rechtstext h3 { font-size: 18px; margin-block: 24px 6px; }
.rechtstext h4 { font-size: 16px; margin-block: 16px 4px; }
.rechtstext p, .rechtstext ul, .rechtstext ol { margin-block: 0 12px; }
.rechtstext ul, .rechtstext ol { padding-left: 1.4em; }
.rechtstext li { margin-block: 4px; }
.rechtstext a { overflow-wrap: anywhere; }
.platzhalter { border-left: 4px solid var(--akzent); }

/* Amtliche EU-Gewährleistungsgrafik (DVO (EU) 2025/1960): nur als Ganzes verkleinern, nie zuschneiden, immer farbig */
.eu-gewaehrleistung { display: block; margin: 16px 0; max-width: 480px; }
.eu-gewaehrleistung img, img.gewaehrleistung-grafik { display: block; width: 100%; height: auto; border-radius: 0; object-fit: contain;
                          aspect-ratio: auto; background: #fff; border: 2px solid #0D47A1; box-shadow: var(--schatten); }
img.gewaehrleistung-grafik { max-width: min(480px, 100%); margin: 16px 0; }
.eu-gewaehrleistung img.gewaehrleistung-grafik { max-width: 100%; margin: 0; }
.eu-gewaehrleistung.klein { max-width: 180px; }
.eu-gewaehrleistung.klein a { font-size: 14px; }

/* Bestellung verfolgen (sendung.html, Kundenbereich) */
.s-form { max-width: 480px; padding: 8px 20px 20px; margin-block: 16px; background: var(--flaeche);
          border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); }
.s-form input { display: block; width: 100%; margin-top: 4px; }
.s-form input:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px rgba(184, 32, 44, .18); }
.s-senden { width: 100%; margin-top: 8px; }
.s-antwort { max-width: 480px; }
.s-antwort:not(:empty) { padding: 12px 20px; border-left: 4px solid var(--akzent); background: var(--flaeche);
                         border-radius: 0 var(--rund) var(--rund) 0; }
.s-antwort p { margin: 4px 0; }
.s-antwort p:first-child { font-family: var(--titel-schrift); font-weight: 700; }

/* Newsletter (Kundenbereich): Fuß, eigene Seite, Kästchen auf der Bestellseite */
.nl-fuss { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px;
           padding: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); }
.nl-fuss label { flex: 1 1 260px; display: flex; gap: 8px; align-items: center; margin: 0; }
.nl-fuss .nl-mail { flex: 1 1 auto; min-width: 0; }
.nl-fuss .nl-senden { padding: 10px 18px; }
.nl-fuss .nl-hinweis, .nl-fuss .nl-antwort { flex-basis: 100%; margin: 0; }
.nl-hinweis { font-size: 13px; color: var(--leise); }
.nl-seite { max-width: 480px; padding: 8px 20px 20px; margin-block: 16px; background: var(--flaeche);
            border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); }
.nl-seite .nl-mail { display: block; width: 100%; margin-block: 8px; }
.nl-seite .nl-senden, .nl-bestaetigen-knopf { width: 100%; }
.nl-bestaetigen { max-width: 480px; margin-block: 16px; }
.nl-antwort:not(:empty) { margin-top: 8px; padding: 8px 12px; border-left: 4px solid var(--akzent); font-weight: 600; }
.nl-kaestchen { display: flex; gap: 10px; align-items: flex-start; margin-block: 16px; cursor: pointer; }
.nl-kaestchen input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--akzent); }

@media (max-width: 480px) {
  .wortmarke { height: 30px; }
  .kopf { gap: 4px; }
  .kopf nav { flex-wrap: nowrap; gap: 2px; }
  .kopf nav a { padding: 8px 6px; font-size: 14px; white-space: nowrap; background: none; border-color: transparent; }
  /* Am Handy nur Korb-Bild mit Zähler und Sprachkürzel; die Wörter bleiben für Screenreader */
  .sprache-kurz { display: inline; }
  .korb-wort, .sprache-lang { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .karte { transition: none; } .karte:hover { transform: none; } }
