/* ---------------------------------------------------------------
   BOX-QR – Gestaltung
   Am Telefon entworfen: Wer vor dem Regal steht, hält kein Notebook.
   --------------------------------------------------------------- */
:root {
  --bq-navy:  #0b2a6b;
  --bq-blau:  #1f6feb;
  --bq-rand:  #e3e9f4;
  --bq-grau:  #5a6b8a;
  --bq-hell:  #f4f7fc;
}

body { background: var(--bq-hell); padding-bottom: 5.5rem; }

/* --- Kopfzeile --- */
.bq-kopf { background: var(--bq-navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.bq-kopf-innen {
  max-width: 1140px; margin: 0 auto; padding: .7rem 1rem;
  display: flex; align-items: center; gap: .8rem;
}
.bq-marke {
  display: flex; align-items: center; gap: .5rem; color: #fff;
  text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
}
.bq-marke-akzent { color: #7fb0ff; }
.bq-marke-zeichen {
  width: 30px; height: 30px; border-radius: 9px; background: var(--bq-blau);
  display: grid; place-items: center; font-size: 1rem;
}
.bq-haushalt { margin-left: auto; }
.bq-haushalt .form-select { max-width: 12rem; font-size: .85rem; }
.bq-haushalt-name { margin-left: auto; font-size: .85rem; opacity: .8; }
.bq-abmelden { color: rgba(255,255,255,.8); font-size: 1.2rem; text-decoration: none; }
.bq-abmelden:hover { color: #fff; }

/* --- Suche: das wichtigste Element der Anwendung --- */
.bq-suche { margin: .5rem 0 1.5rem; }
.bq-suche-feld { position: relative; }
.bq-suche-feld > .bi-search {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--bq-grau); font-size: 1.15rem; pointer-events: none;
}
.bq-suche-feld input {
  width: 100%; box-sizing: border-box; border: 1px solid var(--bq-rand);
  border-radius: 16px; padding: 1rem 3rem 1rem 3.1rem; font-size: 1.05rem;
  background: #fff; box-shadow: 0 1px 2px rgba(7,29,77,.05), 0 8px 24px rgba(7,29,77,.06);
}
.bq-suche-feld input:focus { outline: none; border-color: var(--bq-blau); }
.bq-suche-loeschen {
  position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--bq-grau); text-decoration: none;
}
.bq-suche-ort { margin-top: .6rem; border-radius: 12px; }

.bq-treffer-zahl { color: var(--bq-grau); font-size: .9rem; margin: 0 0 .8rem; }
.bq-abschnitt { font-size: 1rem; font-weight: 600; margin: 1.5rem 0 .8rem; }

/* --- Kistenkacheln --- */
/* inline-block statt Grid: funktioniert in jeder Engine gleich,
   auch in älteren Browsern und in der Druckansicht. */
.bq-kisten { font-size: 0; margin: 0 -.4rem; }
.bq-kisten > .bq-kiste { display: inline-flex; width: 100%; font-size: 1rem;
                          margin: 0 .4rem .8rem; vertical-align: top; }
@media (min-width: 700px)  { .bq-kisten > .bq-kiste { width: calc(50% - .8rem); } }
@media (min-width: 1100px) { .bq-kisten > .bq-kiste { width: calc(33.333% - .8rem); } }
.bq-kiste {
  box-sizing: border-box; background: #fff; border: 1px solid var(--bq-rand);
  border-radius: 14px; padding: .8rem; text-decoration: none; color: inherit;
  box-shadow: 0 1px 2px rgba(7,29,77,.04);
}
.bq-kiste:hover { border-color: var(--bq-blau); }
.bq-kiste-bild {
  width: 68px; height: 68px; flex: none; margin-right: .9rem; border-radius: 10px; overflow: hidden;
  background: var(--bq-hell); display: grid; place-items: center;
  color: #b4c0d4; font-size: 1.6rem;
}
.bq-kiste-bild img { width: 100%; height: 100%; object-fit: cover; }
.bq-kiste-text { min-width: 0; flex: 1; }
.bq-kiste-kopf { display: flex; align-items: center; gap: .5rem; margin-bottom: .15rem; }
.bq-nummer { font-family: ui-monospace, Menlo, monospace; font-size: .78rem; color: var(--bq-grau); }
.bq-kiste-name { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bq-kiste-inhalt { font-size: .88rem; color: var(--bq-grau); line-height: 1.4; overflow-wrap: anywhere; }
.bq-kiste-fuss { margin-top: .35rem; font-size: .78rem; color: var(--bq-grau); }
.bq-kiste-fuss span { display: inline-block; margin-right: .8rem; }

/* --- Zahlen auf der Startseite --- */
.bq-zahlen { font-size: 0; margin: 0 -.4rem 1.5rem; }
.bq-zahl {
  display: inline-block; box-sizing: border-box; width: calc(33.333% - .8rem);
  margin: 0 .4rem; vertical-align: top; font-size: 1rem;
  background: #fff; border: 1px solid var(--bq-rand); border-radius: 14px;
  padding: 1rem .6rem; text-align: center; text-decoration: none; color: inherit;
}
.bq-zahl:hover { border-color: var(--bq-blau); }
.bq-zahl strong { display: block; font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.bq-zahl span { font-size: .8rem; color: var(--bq-grau); }

.bq-start-hilfe {
  background: #fff; border: 1px solid var(--bq-rand); border-radius: 14px; padding: 1.2rem;
}
.bq-start-hilfe ol { padding-left: 1.2rem; margin-bottom: 0; }
.bq-start-hilfe li { margin-bottom: .4rem; }

.bq-leer { text-align: center; padding: 2.5rem 1rem; color: var(--bq-grau); }
.bq-leer .bi { font-size: 2.5rem; opacity: .35; display: block; margin-bottom: .8rem; }

/* --- Untere Leiste --- */
.bq-leiste {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: #fff; border-top: 1px solid var(--bq-rand);
  font-size: 0; padding-bottom: env(safe-area-inset-bottom);
}
.bq-leiste-punkt {
  display: inline-block; width: 20%; box-sizing: border-box; text-align: center; padding: .5rem .2rem .45rem; text-decoration: none;
  color: var(--bq-grau); font-size: .68rem;
}
.bq-leiste-punkt .bi { display: block; font-size: 1.35rem; margin-bottom: .1rem; }
.bq-leiste-punkt.aktiv { color: var(--bq-blau); }
.bq-scan .bi { color: var(--bq-blau); }

/* --- Schmale Seiten (Anmeldung) --- */
.bq-schmal {
  background: linear-gradient(160deg, var(--bq-navy), #0d3a8f);
  min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; padding-bottom: 1.5rem;
}
.bq-schmal-innen { width: 100%; max-width: 26rem; }

/* --- Etikettenbogen --- */
.bq-bogen { padding: 8mm 6mm; }
.bq-etikett {
  display: inline-block; vertical-align: top; box-sizing: border-box;
  width: 63.5mm; height: 33.9mm; margin: 0 2.5mm 0 0; padding: 2.5mm;
  border: .2mm dashed #ccc; overflow: hidden;
}
.bq-etikett-innen { display: flex; gap: 2mm; height: 100%; align-items: center; }
.bq-etikett svg { width: 26mm; height: 26mm; flex: none; }
.bq-etikett-text { min-width: 0; }
.bq-etikett-marke { font-size: 3mm; font-weight: 700; color: #0b2a6b; letter-spacing: -.02em; }
.bq-etikett-code { font-family: ui-monospace, monospace; font-size: 4mm; font-weight: 700; }
.bq-etikett-hinweis { font-size: 2.4mm; color: #666; line-height: 1.3; }

@media (max-width: 480px) {
  .bq-zahlen { gap: .5rem; }
  .bq-zahl { padding: .8rem .4rem; }
  .bq-zahl strong { font-size: 1.3rem; }
}


/* --- Impressum und Datenschutz --- */
.bq-recht { padding-bottom: 2rem; }
.bq-recht h2 { font-weight: 600; letter-spacing: -.01em; }
.bq-recht p, .bq-recht li { line-height: 1.7; }
.bq-recht ul { padding-left: 1.3rem; }
.bq-recht li { margin-bottom: .35rem; }
.bq-block {
  background: #fff; border: 1px solid var(--bq-rand); border-radius: 12px;
  padding: 1rem 1.2rem; line-height: 1.7;
}
