/* Paketverfolgung polarhub.de/pakete/ (ergänzt /shared/polar.css) */
[hidden] { display: none !important; }
.hero { padding-bottom: 24px; }
.reihe { display: flex; gap: 10px 14px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.klein { font-size: .88rem; }
.section > .klein { margin-top: 12px; }
.btn.klein { padding: 6px 12px; font-size: .9rem; }
.meldung { margin-top: 12px; border-left-color: var(--err); }

/* Eingabe */
.eingabe { max-width: 720px; }
.eingabe label { display: block; margin-bottom: 6px; font-weight: 600; }
.eingabe textarea {
    display: block; width: 100%; min-height: 96px; padding: 14px 16px; resize: vertical;
    font: 1.05rem/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text);
    background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius);
}
.eingabe textarea:focus { outline: none; border-color: var(--accent); }

/* Liste der Sendungen */
.titel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.titel .btn { margin-left: auto; }
.pakete { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.paket { padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.paket.fertig { opacity: .6; box-shadow: none; }
.kopf { display: flex; align-items: flex-start; gap: 14px; }
.mitte { flex: 1; min-width: 0; }
.name { width: 100%; padding: 2px 6px; margin-left: -6px; font: inherit; font-weight: 600; color: var(--text); background: none; border: 1px solid transparent; border-radius: 8px; }
.name:hover, .name:focus { border-color: var(--line); background: var(--bg); }
.zeile { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 2px; font-size: .92rem; }
.zeile code { font-size: 1rem; }
.zeile select { padding: 3px 8px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.weg { border: 0; background: none; color: var(--muted); font: inherit; font-size: 1.3rem; line-height: 1; padding: 2px 8px; border-radius: 8px; cursor: pointer; }
.weg:hover { color: var(--err); background: var(--bg); }

/* Stand der Sendung (nur mit Konto, kommt aus status.php) */
#livehinweis { max-width: 720px; margin-top: 20px; }
.live { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--muted); border-radius: 8px; background: var(--bg); font-size: .95rem; }
p.live { margin-bottom: 0; }
.live p { display: flex; gap: 2px 10px; flex-wrap: wrap; align-items: baseline; }
.live small { font-size: .84rem; }
.live.s-unterwegs { border-left-color: var(--accent); } .live.s-unterwegs strong { color: var(--accent); }
.live.s-zugestellt { border-left-color: var(--ok); } .live.s-zugestellt strong { color: var(--ok); }
.live.s-problem { border-left-color: var(--err); } .live.s-problem strong { color: var(--err); }
.live .abruf { justify-content: space-between; align-items: center; margin-top: 4px; }
.live .abruf .weg { font-size: .88rem; color: var(--accent); padding: 2px 6px; }
.live summary { margin-top: 6px; cursor: pointer; color: var(--accent); font-weight: 500; }
.live ol { margin: 8px 0 2px; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--line); display: grid; gap: 8px; }
.live li { display: grid; }

/* Kennfarben der Paketdienste (feste Farben, hell wie dunkel) */
.dienst { flex: none; width: 108px; padding: 6px 4px; border-radius: 8px; font-size: .82rem; font-weight: 700; line-height: 1.3; text-align: center; }
.punkt { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; }
.d-dhl, .d-post { background: #ffcc00; color: #b00410; }
.d-express { background: #d40511; color: #fff; }
.d-dpd { background: #dc0032; color: #fff; }
.d-ups { background: #351c15; color: #ffb500; }
.d-chronopost { background: #0d5ea8; color: #fff; }
.d-hermes { background: #0079b0; color: #fff; }
.d-gls { background: #061ab1; color: #ffd100; }
.d-fedex { background: #4d148c; color: #fff; }
.d-amazon { background: #232f3e; color: #ff9900; }
.d-welt { background: #5b6472; color: #fff; }

.dienste li { padding: 0; }
.dienste a { display: flex; align-items: center; padding: 7px 14px; color: var(--text); text-decoration: none; border-radius: 999px; }
.dienste a:hover { color: var(--accent); background: var(--accent-soft); }

@media (max-width: 520px) {
    .paket { padding: 14px; }
    .kopf { flex-wrap: wrap; }
    .dienst { width: auto; padding: 6px 10px; }
    .mitte { order: 3; flex-basis: 100%; }
    .weg { margin-left: auto; }
}

/* Fenster: Code scannen, Abholcode eingeben, Abholcode groß zeigen */
.dlg { width: min(94vw, 560px); max-height: 94vh; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.dlg::backdrop { background: rgba(0, 0, 0, .65); }
.dlg h2 { margin-bottom: 12px; overflow-wrap: anywhere; }
.dlg label { display: block; margin-bottom: 6px; font-weight: 600; }
.dlg input[type=text] { display: block; width: 100%; padding: 11px 14px; font: 1.1rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--text); background: var(--bg); border: 2px solid var(--line); border-radius: 10px; }
.dlg input[type=text]:focus { outline: none; border-color: var(--accent); }
.dlg .btn.klein { margin: 0; }
.dlg label.btn { margin-bottom: 0; display: inline-block; }
.art { display: flex; gap: 8px 24px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; border: 0; }
.art legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.art label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; cursor: pointer; }
#scan-video { display: block; width: 100%; max-height: 62vh; aspect-ratio: 4 / 3; object-fit: cover; background: #000; border-radius: 10px; }
#scan-status { min-height: 1.5em; margin-top: 10px; }

/* Abholcode groß: immer schwarz auf weiß, auch im dunklen Modus, damit Scanner ihn lesen */
.gross { --text: #000; --surface: #fff; --line: #ccc; --accent: #0b5fd0; --accent-soft: #e8f0fc; --muted: #444; width: min(98vw, 1100px); background: #fff; color: #000; text-align: center; }
#gross-bild { display: flex; justify-content: center; }
#gross-bild.qr svg { display: block; width: min(86vw, 62vh, 720px); height: auto; }
#gross-bild.strich svg { display: block; width: min(92vw, 1000px); height: min(42vh, 320px); }
.code-text { margin-top: 12px; font: 700 clamp(1.3rem, 6vw, 2.2rem) ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .08em; overflow-wrap: anywhere; color: #000; }
.gross .reihe { justify-content: center; }
.gross .klein { margin-top: 12px; }
#gelesen { margin-top: 12px; max-width: 720px; }

/* Breite Bildschirme: Sendungen in zwei Spalten */
@media (min-width: 900px) { .pakete { grid-template-columns: 1fr 1fr; align-items: start; } }
@media (min-width: 1300px) { .pakete { grid-template-columns: repeat(3, 1fr); } }
