[hidden]{display:none!important}
:root{--bg:#f4f7fb;--ink:#162231;--muted:#536274;--card:#fff;--line:#e1e8f0;--accent:#2b5fa6;--accent-dark:#1f4a84;--accent-soft:#e2ecf8;--shadow:0 1px 2px rgba(20,35,60,.05),0 8px 24px rgba(20,35,60,.07);--ok:#2e7d32;--okbg:#e6f3e6;--bad:#9b2323;--badbg:#f8e3e3;--warn:#fff4e0;--warnink:#7a4b00}
*{box-sizing:border-box}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font-family:"Atkinson Hyperlegible",system-ui,sans-serif;font-size:16px;-webkit-text-size-adjust:100%}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--accent)}
:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.toast{position:fixed;left:50%;bottom:calc(20px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);background:var(--ink);color:#fff;border-radius:10px;padding:10px 16px;font-size:14px;z-index:30;max-width:90vw}
body.has-nav .toast{bottom:calc(90px + env(safe-area-inset-bottom,0px))}

.wrap{max-width:640px;margin:0 auto;padding-inline:16px;padding-block:calc(16px + env(safe-area-inset-top,0px)) 48px;display:flex;flex-direction:column;gap:14px}
body.has-nav .wrap{padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.top{display:flex;align-items:center;gap:10px;padding:2px 2px 4px}
.logo{width:30px;height:30px;border-radius:8px;background:url(../icon.svg) center/contain no-repeat;flex:none}
.top h1{font-size:20px;margin:0;flex:1;letter-spacing:-.01em;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top h1 span{font-weight:400;color:var(--muted)}
.link{background:none;border:0;padding:4px;color:var(--muted);font-size:13px;text-decoration:underline}
.card{background:var(--card);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.card h2{font-size:18px;margin:0;letter-spacing:-.01em}
.hint{font-size:13px;color:var(--muted);margin:0;line-height:1.45}
.err{font-size:14px;color:var(--bad);margin:0}
.row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
input[type=text],input[type=email],input[type=password]{border:1px solid #cdd8e4;border-radius:12px;padding:12px;background:#fff;width:100%;min-width:0;color:var(--ink);font-size:16px}
label.f{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted);font-weight:700;min-width:0}
label.tog{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.4}
label.tog input{width:20px;height:20px;flex:none;margin-top:1px}
.primary{border:0;border-radius:12px;padding:13px 18px;font-weight:700;background:var(--accent);color:#fff;box-shadow:0 4px 12px rgba(43,95,166,.22);text-align:center;text-decoration:none}
.primary:hover{background:var(--accent-dark)}
.primary:disabled,.ghost:disabled{opacity:.55;cursor:default}
.ghost{border:1px solid #c6d3e2;border-radius:12px;padding:11px 14px;background:#fff;font-weight:700;text-align:center;text-decoration:none;color:var(--ink)}
.danger{border:1px solid #e8c4c4;color:var(--bad);border-radius:12px;padding:11px 14px;background:#fff;font-weight:700}
.pg{display:flex;flex-direction:column;gap:14px}

/* Navigation unten */
.tabs{position:fixed;left:0;right:0;bottom:0;z-index:5;display:grid;grid-template-columns:repeat(3,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px max(8px,calc((100vw - 640px)/2)) calc(6px + env(safe-area-inset-bottom,0px))}
.tabs button{border:0;background:transparent;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;font-size:12px;font-weight:700;color:var(--muted);border-radius:12px}
.tabs svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;padding:2px 10px;box-sizing:content-box;border-radius:999px}
.tabs button.on{color:var(--accent)}
.tabs button.on svg{background:var(--accent-soft)}

/* Liste */
.kopfkarte{background:linear-gradient(140deg,#3a72bf 0%,#2b5fa6 45%,#1f4a84 100%);color:#fff;border-radius:24px;padding:18px 20px 16px;display:flex;flex-direction:column;gap:8px;box-shadow:0 10px 30px rgba(31,74,132,.28);position:relative;overflow:hidden}
.kopfkarte::after{content:"";position:absolute;right:-40px;top:-50px;width:170px;height:170px;border-radius:50%;background:rgba(255,255,255,.08)}
.kk-oben{display:flex;align-items:center;justify-content:space-between;gap:10px;font-weight:700;font-size:15px;opacity:.95}
.kk-oben>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kk-live{display:inline-flex;align-items:center;gap:6px;font-size:12px;background:rgba(255,255,255,.16);border-radius:999px;padding:4px 10px;flex:none}
.kk-live i{width:7px;height:7px;border-radius:50%;background:#7ee08a;box-shadow:0 0 0 3px rgba(126,224,138,.25)}
.kk-zahl{display:flex;align-items:baseline;gap:10px}
.kk-zahl strong{font-size:46px;line-height:1;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.kk-zahl span{font-size:16px;opacity:.9}
.kk-bar{height:8px;border-radius:99px;background:rgba(255,255,255,.2);overflow:hidden;margin-top:4px}
.kk-bar i{display:block;height:100%;width:0;background:#fff;border-radius:99px;transition:width .4s ease}
.kopfkarte small{font-size:13px;opacity:.85}

.eingabe{display:flex;align-items:center;gap:6px;background:#fff;border-radius:18px;padding:6px 6px 6px 16px;box-shadow:var(--shadow);border:1px solid transparent}
.eingabe:focus-within{border-color:var(--accent)}
.eingabe input[type=text]{flex:1;border:0;padding:10px 0;background:transparent;font-size:17px;outline:none}
.eingabe button{flex:none;width:48px;height:48px;padding:0;border-radius:14px;display:grid;place-items:center}
.eingabe svg{width:24px;height:24px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round}
.schnell{display:flex;flex-wrap:wrap;gap:8px;padding:2px 0 4px}
.schnell button{flex:none;display:inline-flex;align-items:center;gap:6px;border:0;background:#fff;border-radius:999px;padding:8px 14px 8px 10px;font-weight:700;font-size:15px;box-shadow:0 1px 2px rgba(20,35,60,.06),0 2px 8px rgba(20,35,60,.06);white-space:nowrap}
.schnell button:active{background:var(--accent-soft);transform:scale(.97)}
.schnell .sym{font-size:18px;line-height:1}

.gruppen{display:flex;flex-direction:column;gap:16px}
.gruppe{display:flex;flex-direction:column;gap:8px}
.gruppe-kopf{display:flex;align-items:center;gap:8px;padding:0 6px}
.gruppe-kopf h3{margin:0;font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);flex:1}
.g-sym{font-size:16px}
.g-zahl{font-size:12px;font-weight:700;color:var(--muted);background:#e6ecf3;border-radius:999px;padding:1px 8px}
.gruppe .card{padding:4px 8px 4px 12px;gap:0}
.wagen .g-sym{color:var(--ok);font-weight:700}
.wagen .link{padding:0 4px;font-weight:700;color:var(--accent);text-decoration:none;font-size:14px}
.list{display:flex;flex-direction:column}
.art{display:flex;align-items:center;gap:6px;padding:6px 0;border-top:1px solid var(--line)}
.art:first-child{border-top:0}
.art .main{flex:1;min-width:0;display:flex;align-items:center;gap:12px;background:none;border:0;padding:4px 0;text-align:left}
.sym{display:grid;place-items:center;flex:none}
.art .sym{width:42px;height:42px;border-radius:13px;background:var(--accent-soft);font-size:22px;line-height:1}
.art .txt{flex:1;min-width:0;display:flex;flex-direction:column}
.art .name{font-weight:700;font-size:17px;overflow-wrap:anywhere}
.art .sub{font-size:12px;color:var(--muted)}
.art .menge{font-weight:700;color:#fff;background:var(--accent);border-radius:999px;padding:3px 10px;font-size:14px;flex:none}
.art .haken{width:34px;height:34px;border-radius:50%;border:2px solid #b7c6d8;background:#fff;flex:none;display:grid;place-items:center;padding:0;transition:background .15s,border-color .15s}
.art .haken svg{width:18px;height:18px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.art .haken:hover{border-color:var(--ok)}
.art.done .haken{background:var(--ok);border-color:var(--ok)}
.art.done .sym{background:#eef1f5;filter:grayscale(1);opacity:.6}
.art.done .name{text-decoration:line-through;color:var(--muted);font-weight:400}
.art.done .menge{background:#c9d3df}
.art .weg{background:none;border:0;color:#9aa8b8;padding:6px;flex:none;display:grid;place-items:center;border-radius:10px}
.art .weg svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.art .weg:hover{color:var(--bad);background:var(--badbg)}
.leer{align-items:center;text-align:center;padding:28px 18px;gap:6px}
.sym.gross{font-size:40px;width:72px;height:72px;border-radius:22px;background:var(--accent-soft);margin-bottom:6px}
.empty{color:var(--muted);font-size:14px;padding:6px 0}

/* Mehr */
.tasten{display:flex;flex-wrap:wrap;gap:6px}
.taste{display:inline-flex;align-items:center;gap:4px;border-radius:999px;background:var(--accent-soft);color:var(--accent-dark);font-weight:700;padding:5px 6px 5px 12px;font-size:14px}
.taste button{background:none;border:0;color:inherit;font-size:18px;line-height:1;padding:0 4px}
.code{font-size:34px;font-weight:700;letter-spacing:.12em;font-variant-numeric:tabular-nums;color:var(--accent-dark)}
.mitglied{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid var(--line);font-size:15px}
.mitglied:first-child{border-top:0}
.mitglied span{flex:1;min-width:0}
.mitglied small{color:var(--muted)}
.liste-wahl{display:flex;gap:6px;flex-wrap:wrap}

/* Knopf-Gerät */
body.knopf{background:#14202e;color:#fff;min-height:100dvh}
.kn{padding:calc(14px + env(safe-area-inset-top,0px)) 14px calc(14px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;gap:12px;min-height:100dvh}
.kn h1{margin:0;font-size:22px;text-align:center;font-weight:700;color:#cfe0f5}
.kgrid{flex:1;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));grid-auto-rows:minmax(96px,1fr);gap:12px}
.kgrid button{hyphens:auto;-webkit-hyphens:auto;border:0;border-radius:22px;background:#2b5fa6;color:#fff;font-size:clamp(20px,5.5vw,34px);font-weight:700;padding:10px;overflow-wrap:anywhere}
.kgrid button.hit{background:#2e7d32}
.kgrid button:active{transform:scale(.98)}
.kn .pair{max-width:420px;margin:auto;display:flex;flex-direction:column;gap:14px;text-align:center}
.kn .pair input{font-size:34px;text-align:center;letter-spacing:.2em;border-radius:14px;border:0;padding:14px;width:100%}
.kn .pair p{color:#b8c7d9;margin:0;line-height:1.45}
.kn .fuss{font-size:13px;color:#8fa3ba;text-align:center}

/* Offline-Anzeige in der Kopfkarte */
.kk-live.aus{background:rgba(255,196,92,.22)}
.kk-live.aus i{background:#ffc45c;box-shadow:0 0 0 3px rgba(255,196,92,.3)}

/* Vorschläge aus dem Verlauf */
.vorschlag-box{display:flex;flex-direction:column;gap:6px}
.vs-titel{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;padding:0 6px}
.schnell.vorschlag button{background:transparent;box-shadow:none;border:1.5px dashed #b9c8da;color:var(--accent-dark)}

/* Marke und Foto */
.art .notiz{font-size:13px;color:var(--accent-dark);font-weight:700}
.art .sym.foto{background:#fff;overflow:hidden;border:1px solid var(--line)}
.art .sym.foto img{width:100%;height:100%;object-fit:cover}
dialog.blatt{border:0;padding:12px 20px calc(20px + env(safe-area-inset-bottom,0px));width:100%;max-width:520px;margin:auto auto 0;border-radius:24px 24px 0 0;display:none;flex-direction:column;gap:12px;color:var(--ink);background:var(--card);box-shadow:0 -10px 40px rgba(20,35,60,.2)}
dialog.blatt[open]{display:flex}
dialog.blatt::backdrop{background:rgba(15,25,40,.45)}
@media (min-width:600px){dialog.blatt{margin:auto;border-radius:24px}}
.blatt-griff{width:40px;height:5px;border-radius:99px;background:#d5dde7;align-self:center}
.blatt h2{margin:0;font-size:22px}
.d-bild{height:170px;border-radius:18px;background:var(--accent-soft);display:grid;place-items:center;overflow:hidden}
.d-bild img{width:100%;height:100%;object-fit:contain;background:#fff}
.d-foto{cursor:pointer}

/* Geschäfte in der Nähe */
.umkreis{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);font-weight:700;margin-left:auto}
.umkreis select{border:1px solid #cdd8e4;border-radius:10px;padding:9px 8px;background:#fff;font-size:15px}
.filter{display:flex;flex-wrap:wrap;gap:6px}
.filter:empty{display:none}
.filter button{border:0;background:#fff;border-radius:999px;padding:7px 12px;font-weight:700;font-size:14px;box-shadow:0 1px 2px rgba(20,35,60,.06),0 2px 8px rgba(20,35,60,.06)}
.filter button.on{background:var(--accent);color:#fff}
#lListe{padding:4px 12px}
.laden{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.laden:first-child{border-top:0}
.laden .sym{width:42px;height:42px;border-radius:13px;background:var(--accent-soft);font-size:22px}
.laden .txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.laden .name{font-weight:700;font-size:16px}
.laden .sub{font-size:13px;color:var(--muted)}
.oeffnung{font-size:13px;font-weight:700}
.oeffnung.auf{color:var(--ok)}
.oeffnung.zu{color:var(--bad)}
.laden .route{flex:none;padding:8px 12px;font-size:14px}
.plz-zeile{display:flex;gap:10px;margin-bottom:12px}
.plz-zeile input{flex:1;min-width:0;margin:0}
.plz-zeile button{width:auto;margin:0;padding:0 22px;flex:none}
.tipp{margin-top:8px;padding:6px;display:flex;flex-direction:column;gap:2px}
.tipp-titel{font-size:13px;font-weight:700;color:var(--muted);padding:6px 10px 2px}
.tipp-zeile{display:flex;align-items:center;gap:12px;width:100%;background:transparent;box-shadow:none;border:0;border-radius:12px;padding:8px 10px;text-align:left;color:inherit;font-weight:600;min-height:52px}
.tipp-zeile:hover,.tipp-zeile:focus-visible{background:#eef3f9}
.tipp-zeile .sym{flex:none;width:38px;height:38px;border-radius:10px;background:#eef3f9;display:grid;place-items:center;font-size:20px;overflow:hidden}
.tipp-zeile .sym img{width:100%;height:100%;object-fit:cover}
.tipp-zeile .txt{flex:1;display:flex;flex-direction:column;min-width:0}
.tipp-zeile .name{font-size:17px}
.tipp-zeile .notiz{font-size:14px;color:var(--muted);font-weight:500}
.tipp-zeile .plus{flex:none;width:34px;height:34px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:22px;font-weight:700;line-height:1}
