@font-face {
    font-family: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(../fonts/fredoka-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: 'Fredoka';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(../fonts/fredoka-latin-ext.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html, body {
    margin: 0;
    overscroll-behavior-y: contain; /* kein Neuladen der ganzen Seite durch Herunterziehen, das macht die App selbst (hamstern.js) */
    color-scheme: dark;
    background: #1E1712;
    font-family: 'Fredoka', 'Roboto', Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

h1:focus { outline: none; }

/* ---- Ladebildschirm ---------------------------------------------------------- */
.splash {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #1E1712;
    color: #FFF3E0;
    font-weight: 500;
}
.splash img { width: 9rem; height: 9rem; animation: hop 1s ease-in-out infinite; }
.splash-text:after { content: var(--blazor-load-percentage-text, "Hamstern wird geladen"); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

#blazor-error-ui {
    color-scheme: dark only;
    background: #3B2E24;
    color: #FFF3E0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, .2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

/* ---- Kopfzeile ----------------------------------------------------------------- */
.hk-appbar { padding-top: env(safe-area-inset-top); }
.hk-brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; }
.hk-logo { width: 2.5rem; height: 2.5rem; }
.hk-title { font-weight: 700; font-size: 1.5rem; letter-spacing: -.3px; }
.hk-appbar .mud-icon-button { padding: .75rem; }
.hk-title span { color: var(--mud-palette-secondary); }
/* Stufen setzt hamstern.js (fitHeader), wenn der Listenname mehr Platz braucht */
.hk-title[data-step="1"] { font-size: 1.1rem; }
.hk-title[data-step="2"] { font-size: .8rem; }
.hk-title[data-step="3"] { display: none; }
.hk-content {
    /* Oben: Die Kopfzeile wird um die Höhe einer Kamera-Aussparung höher (Vollbild auf Android),
       also beginnt der Inhalt darunter um dasselbe tiefer. */
    padding: calc(12px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) calc(48px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
}

/* ---- Anmeldung ----------------------------------------------------------------- */
.hk-login { display: flex; flex-direction: column; align-items: center; padding-top: 8px; }
.hk-hero { width: min(60vw, 220px); height: auto; }
.hk-claim { font-size: 1.4rem; text-align: center; margin: 0 0 16px; color: var(--mud-palette-text-primary); }
.hk-card { width: 100%; }
.hk-code, .hk-code-input input { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .2em; text-transform: uppercase; }
.hk-code { font-size: 1.8rem; text-align: center; width: 100%; }

/* ---- Listen-Reiter -------------------------------------------------------------- */
.hk-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.hk-tabs::-webkit-scrollbar { display: none; }
.hk-tab {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; gap: 6px;
    border: 2px solid var(--mud-palette-divider);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font: inherit; font-weight: 500;
    padding: 6px 14px; border-radius: 999px; cursor: pointer;
}
.hk-tab.active { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.hk-badge {
    background: var(--mud-palette-secondary); color: var(--mud-palette-secondary-text);
    border-radius: 999px; font-size: .75rem; line-height: 1;
    min-width: 1.3rem; padding: 3px 6px; text-align: center;
}

/* ---- Hinzufuegen ------------------------------------------------------------------- */
.hk-add { padding: 12px; margin: 4px 0 8px; border-radius: 20px; }
.hk-add-row { display: flex; gap: 8px; align-items: center; }
.hk-add-name { flex: 1 1 auto; }
.hk-add-qty { flex: 0 0 4.8rem; }
.hk-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hk-suggest {
    display: inline-flex; align-items: center; gap: 6px;
    border: 0; background: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font: inherit; padding: 6px 12px 6px 8px; border-radius: 999px; cursor: pointer;
}
.hk-suggest:hover { background: var(--mud-palette-divider); }
.hk-suggest-emoji { font-size: 1.3rem; }

/* ---- Artikel-Kacheln ---------------------------------------------------------------- */
.hk-cat {
    margin: 18px 4px 8px; font-weight: 600; font-size: .85rem; letter-spacing: .04em;
    text-transform: uppercase; color: var(--mud-palette-text-secondary);
    display: flex; align-items: center; justify-content: space-between;
}

/* Einkaufswagen: ein Wagen-Bild, die abgehakten Artikel liegen lose darin. Antippen zeigt die Kacheln, "Aufräumen" steht darunter. */
.hk-cartbox { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 44px 0 14px; }
.hk-cartpic {
    position: relative; display: block; width: min(100%, 250px); aspect-ratio: 300 / 190; padding: 0;
    border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit;
    -webkit-tap-highlight-color: transparent; transform-origin: 50% 90%;
}
.hk-cartpic:active { transform: scale(.98); }
.hk-cart-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hk-cart-back polygon { fill: color-mix(in srgb, black 25%, var(--mud-palette-surface)); }
.hk-cart-frame { fill: none; stroke: var(--mud-palette-text-secondary); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.hk-cart-mesh { fill: none; stroke: var(--mud-palette-text-secondary); stroke-width: 3; stroke-linecap: round; opacity: .45; }
.hk-cart-wheel { fill: var(--mud-palette-background); stroke: var(--mud-palette-secondary); stroke-width: 5; }
.hk-cart-load {
    position: absolute; left: 14%; right: 14%; bottom: 33%; display: flex; flex-wrap: wrap-reverse;
    justify-content: center; align-content: flex-start; pointer-events: none;
}
.hk-cart-count {
    position: absolute; top: 0; right: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .9rem;
    background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .5);
}
.hk-cart-chevron { display: inline-block; transition: transform .2s; }
.hk-cart-chevron.open { transform: rotate(180deg); }
.hk-tidy { margin-top: 2px; }
/* Je voller der Wagen, desto stärker überlappen sich die Artikel */
.hk-cart-load { --mv: -5px; --mh: -3px; }
.hk-cart-load.full-1 { --mv: -8px; --mh: -6px; }
.hk-cart-load.full-2 { --mv: -11px; --mh: -10px; left: 18%; right: 18%; bottom: 34%; }
.hk-chip { position: relative; display: inline-flex; margin: var(--mv) var(--mh); rotate: var(--r, 0deg); translate: 0 var(--y, 0px); }
.hk-chip-pic {
    display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
    font-size: 29px; line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45));
}
.hk-chip-pic img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.hk-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); }
.hk-tile { position: relative; }
.hk-tile-main {
    width: 100%; height: 100%; min-height: 7rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    padding: .6rem .4rem .5rem;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    border: 2px solid transparent; border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
    font: inherit; cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.hk-tile-main:active { transform: scale(.95); }
.hk-pic { font-size: 2.6rem; line-height: 1.1; height: 2.9rem; display: flex; align-items: center; }
.hk-pic img { max-height: 2.9rem; max-width: 100%; border-radius: 8px; }
.hk-name { font-weight: 500; text-align: center; line-height: 1.15; word-break: break-word; }
.hk-qty {
    font-size: .75rem; padding: 1px 8px; border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-secondary) 22%, transparent);
    color: var(--mud-palette-text-primary);
}
.hk-tile-edit {
    position: absolute; top: 2px; right: 4px; border: 0; background: transparent;
    color: var(--mud-palette-text-secondary); font-size: 1.3rem; line-height: 1;
    padding: 4px 8px; border-radius: 999px; cursor: pointer;
}
.hk-tile.done .hk-tile-main { opacity: .55; box-shadow: none; border-color: var(--mud-palette-divider); }
.hk-tile.done .hk-pic { filter: grayscale(.6); }
.hk-tile.done .hk-name { text-decoration: line-through; }
.hk-check {
    position: absolute; top: 6px; left: 6px; width: 1.4rem; height: 1.4rem; border-radius: 50%;
    background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); font-size: .8rem;
    display: flex; align-items: center; justify-content: center;
}
.hk-dialog-pic { font-size: 3.5rem; text-align: center; }
.hk-dialog-pic img { max-height: 4rem; border-radius: 10px; }

/* ---- Allgemeine Liste (To-do): eine Zeile pro Eintrag, Abgehaktes unten unter „Abgeschlossen“ ---------- */
.hk-todo { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.hk-todo-row { position: relative; display: flex; align-items: center; }
.hk-todo-main {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; text-align: left;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35); transition: transform .1s, opacity .1s;
}
.hk-todo-main:active { transform: scale(.98); }
.hk-todo-box {
    flex: 0 0 1.5rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    border: 2px solid var(--mud-palette-text-secondary);
    display: flex; align-items: center; justify-content: center; font-size: .85rem; line-height: 1;
}
.hk-todo-name { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.hk-todo-edit {
    flex: 0 0 auto; margin-left: 4px; border: 0; background: transparent;
    color: var(--mud-palette-text-secondary); font-size: 1.3rem; line-height: 1;
    padding: 6px 10px; border-radius: 999px; cursor: pointer;
}
.hk-todo-row.done .hk-todo-main { opacity: .6; box-shadow: none; }
.hk-todo-row.done .hk-todo-box { background: var(--mud-palette-primary); border-color: var(--mud-palette-primary); color: var(--mud-palette-primary-text); }
.hk-todo-row.done .hk-todo-name { text-decoration: line-through; }
.hk-todo-row.arriving { animation: hk-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
.hk-todo-row.leaving { animation: hk-leave .21s ease-in both; pointer-events: none; }
.hk-todo-row.vanishing { animation: hk-poof .34s calc(var(--i, 0) * 45ms) ease-in both; pointer-events: none; }
.hk-cat-done { margin-top: 26px; }

/* ---- Leere Liste ---------------------------------------------------------------------- */
.hk-empty { text-align: center; margin-top: 24px; color: var(--mud-palette-text-secondary); }
.hk-empty img { width: min(55vw, 200px); height: auto; }
.hk-empty p { margin: 6px 0 0; }

body { background: var(--mud-palette-background, #1E1712); }

/* ---- Offline ----------------------------------------------------------------------- */
.hk-offline { margin: 4px 0 8px; border-radius: 16px; }
.hk-appbar .mud-chip { margin-right: 4px; cursor: pointer; }

/* ---- Bewegung ------------------------------------------------------------------------ */
/* Neu hinzugefügt (oder von jemand anderem): aufpoppen mit Federn */
.hk-tile.arriving, .hk-chip.arriving { animation: hk-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes hk-pop {
    0%   { transform: scale(.4); opacity: 0; }
    55%  { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* In den Einkaufswagen gelegt: Kachel verlässt ihren Platz (schrumpft und sinkt), landet unten mit Hüpfer */
.hk-tile.leaving { animation: hk-leave .21s ease-in both; pointer-events: none; }
@keyframes hk-leave { to { transform: translateY(12px) scale(.82); opacity: 0; } }

.hk-tile.dropping, .hk-chip.dropping { animation: hk-drop .45s ease-out both; }
@keyframes hk-drop {
    0%   { transform: translateY(-14px) scale(1.04); opacity: 0; }
    60%  { transform: translateY(2px) scale(.99); opacity: 1; }
    100% { transform: none; opacity: 1; }
}
.hk-tile.dropping .hk-check { animation: hk-pop .5s .18s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Funkenregen beim Landen */
.hk-burst { position: absolute; inset: 0; pointer-events: none; }
.hk-burst i {
    position: absolute; left: 50%; top: 45%;
    width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
    background: var(--c);
    animation: hk-spark .5s .1s ease-out both;
}
@keyframes hk-spark {
    0%   { transform: rotate(var(--a)) translateY(-10px) scale(.6); opacity: .9; }
    100% { transform: rotate(var(--a)) translateY(-30px) scale(0); opacity: 0; }
}

/* Löschen: schrumpft, dreht sich leicht und verschwindet. Beim Aufräumen nacheinander (--i). */
.hk-tile.vanishing, .hk-chip.vanishing { animation: hk-poof .34s calc(var(--i, 0) * 45ms) ease-in both; pointer-events: none; }
@keyframes hk-poof {
    0%   { transform: scale(1) rotate(0); opacity: 1; }
    30%  { transform: scale(1.08) rotate(-4deg); opacity: 1; }
    100% { transform: scale(0) rotate(14deg); opacity: 0; }
}

/* Der Einkaufswagen wippt, wenn etwas hineinkommt. Zwei gleiche Animationen mit wechselndem Namen, damit sie jedes Mal neu startet. */
.hk-bump-0 { animation: hk-bump-a .45s ease-out; }
.hk-bump-1 { animation: hk-bump-b .45s ease-out; }
@keyframes hk-bump-a { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06) rotate(-3deg); } 65% { transform: scale(1.03) rotate(2deg); } }
@keyframes hk-bump-b { 0%, 100% { transform: scale(1) rotate(0); } 30% { transform: scale(1.06) rotate(-3deg); } 65% { transform: scale(1.03) rotate(2deg); } }

/* Im Menü auf "Animationen: aus" gestellt (Klasse am <html> setzt hamstern.js). Die Systemeinstellung wird bewusst ignoriert. */
html.hk-no-motion .hk-tile, html.hk-no-motion .hk-tile *, html.hk-no-motion .hk-chip, html.hk-no-motion .hk-chip *,
html.hk-no-motion .hk-cartpic, html.hk-no-motion .hk-cart-chevron, html.hk-no-motion .splash img {
    animation: none !important; transition: none !important;
}

/* ---- Meldungen (Snackbar) im Stil der App ----------------------------------------------- */
/* Statt der blauen/roten Standardbalken: helle Karte wie die Kacheln, die Schwere zeigt der farbige Rand. */
.mud-snackbar {
    --hk-accent: var(--mud-palette-primary);
    background: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-primary) !important;
    border: 2px solid var(--hk-accent);
    border-radius: 20px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .5) !important;
    font-weight: 500;
}
.mud-snackbar.mud-alert-filled-info    { --hk-accent: var(--mud-palette-primary); }
.mud-snackbar.mud-alert-filled-success { --hk-accent: var(--mud-palette-primary); }
.mud-snackbar.mud-alert-filled-warning { --hk-accent: var(--mud-palette-secondary); }
.mud-snackbar.mud-alert-filled-error   { --hk-accent: var(--mud-palette-error); }
.mud-snackbar .mud-snackbar-icon { color: var(--hk-accent); }
.mud-snackbar .mud-snackbar-action-button {
    border-radius: 999px; white-space: nowrap; min-width: 0; padding: 6px 16px; line-height: 1.2;
    background: var(--hk-accent) !important; color: #1E1712 !important;
}

/* "Neue Version verfügbar": mit Baby Kai statt Symbol */
.mud-snackbar.hk-update .mud-snackbar-icon svg { display: none; }
.mud-snackbar.hk-update .mud-snackbar-icon::before {
    content: ""; display: block; width: 40px; height: 40px;
    background: url(../img/hammi.svg) center / contain no-repeat;
}


/* ---- Kopfbereich bleibt beim Scrollen stehen ---------------------------------------------- */
:root { --hk-bar: 3.5rem; --mud-appbar-height: var(--hk-bar); } /* Die Kopfzeile wächst mit der Anzeigegröße */
.mud-appbar.hk-appbar { height: calc(var(--hk-bar) + env(safe-area-inset-top)) !important; }
.mud-appbar.hk-appbar .mud-toolbar { height: var(--hk-bar) !important; min-height: var(--hk-bar) !important; }
.mud-main-content { padding-top: var(--hk-bar) !important; }
@media (min-width: 600px) { :root { --hk-bar: 4rem; } }
/* Reiter und Eingabefeld unter der Kopfzeile festhalten. Der Hintergrund deckt die Kacheln beim Darunterscrollen ab. */
.hk-sticky {
    position: sticky; top: calc(var(--hk-bar) + env(safe-area-inset-top)); z-index: 5;
    margin: 0 -12px; padding: 0 12px 6px;
    background: var(--mud-palette-background);
}

/* ---- Zum Aktualisieren ziehen ------------------------------------------------------------------ */
.hk-ptr {
    position: fixed; left: 50%; top: calc(var(--hk-bar) + env(safe-area-inset-top) + 6px); z-index: 1050;
    width: 46px; height: 46px; margin-left: -23px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--mud-palette-surface); border: 2px solid var(--mud-palette-divider);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .5);
    transform: translateY(var(--pull, -60px)); opacity: 0; pointer-events: none;
    transition: transform .25s ease, opacity .2s ease, border-color .15s;
}
.hk-ptr img { width: 32px; height: 32px; transform: rotate(var(--turn, 0deg)); }
.hk-ptr.dragging { transition: none; }
.hk-ptr.ready { border-color: var(--mud-palette-primary); }
.hk-ptr.loading img { animation: hop .6s ease-in-out infinite; transform: none; }
.hk-ptr.failed { border-color: var(--mud-palette-error); animation: hk-ptr-shake .4s; }
@keyframes hk-ptr-shake { 25% { margin-left: -29px; } 75% { margin-left: -17px; } }
html.hk-no-motion .hk-ptr, html.hk-no-motion .hk-ptr img { animation: none !important; transition: none !important; }


/* ---- Listenauswahl in der Kopfzeile -------------------------------------------------------- */
.hk-brand { flex: none; }
.hk-listmenu { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.hk-listmenu .mud-menu-activator { min-width: 0; display: flex; }
.hk-listmenu .mud-button-root {
    display: inline-flex; align-items: center; gap: 2px; min-width: 0; max-width: 100%;
    border-radius: 999px; border: 2px solid var(--mud-palette-divider); background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary); font-weight: 600; padding: 2px 6px 2px 10px; white-space: nowrap;
}
.hk-listmenu .mud-button-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hk-listmenu .mud-button-root::after { content: "\25BE"; flex: none; font-size: .9em; color: var(--mud-palette-text-secondary); }


/* ---- Artikel verwalten ----------------------------------------------------------------------- */
.hk-catalog-head { display: flex; align-items: center; gap: 4px; margin: 0 0 6px -8px; padding-top: 2px; }
.hk-catalog-title { font-weight: 700; font-size: 1.25rem; flex: 1; }
.hk-catalog-count { padding: 2px 10px; border-radius: 999px; background: var(--mud-palette-surface); color: var(--mud-palette-text-secondary); font-size: .85rem; }
.hk-catalog-hint { margin: 4px 2px 10px; color: var(--mud-palette-text-secondary); font-size: .9rem; }
.hk-catrow {
    display: flex; align-items: center; gap: 12px; width: 100%; min-height: 3.5rem; margin: 4px 0; padding: 0 14px;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    border: 2px solid transparent; border-radius: 16px; cursor: pointer; font: inherit; text-align: left;
}
.hk-catrow:active { transform: scale(.98); }
.hk-catrow-emoji { font-size: 1.7rem; width: 2rem; text-align: center; }
.hk-catrow-name { flex: 1; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hk-catrow-edit { color: var(--mud-palette-text-secondary); }
.hk-bigemoji {
    display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto; padding: 8px 20px;
    background: transparent; border: 2px dashed var(--mud-palette-divider); border-radius: 20px; cursor: pointer;
    color: var(--mud-palette-text-secondary); font: inherit;
}
.hk-bigemoji span { font-size: 3.5rem; line-height: 1.1; }
.hk-bigemoji img { max-height: 3.5rem; border-radius: 10px; }
.hk-emoji-scroll { max-height: 52vh; overflow-y: auto; }
.hk-emoji-title { margin: 10px 2px 4px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.hk-emoji-grid { display: flex; flex-wrap: wrap; gap: 4px; }
.hk-emoji { width: 46px; height: 46px; font-size: 1.6rem; line-height: 1; background: transparent; border: 2px solid transparent; border-radius: 12px; cursor: pointer; }
.hk-emoji:hover { background: var(--mud-palette-surface); }
.hk-emoji.current { border-color: var(--mud-palette-primary); }
.hk-emoji-use {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 14px;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    border: 2px solid var(--mud-palette-primary); border-radius: 16px; cursor: pointer; font: inherit; font-weight: 600;
}
.hk-emoji-use span { font-size: 1.8rem; line-height: 1; }
.hk-emoji-none { margin: 12px 4px; color: var(--mud-palette-text-secondary); }


/* ---- Anzeigegröße: Klein (wie bisher), Mittel, Groß ------------------------------------------------ */
/* Die Wurzel-Schriftgröße wächst, alle Maße in rem (Schrift, Kacheln, Bilder, Eingabefelder) wachsen mit.
   Nur der Einkaufswagen bleibt in fester Größe. Klassen setzt hamstern.js (setSize) und ein Skript in index.html. */
html.hk-z-m { font-size: 20px; }
html.hk-z-l { font-size: 24px; }
/* Groß: Der Name steht allein in der ersten Zeile, Menge und Plus darunter (sonst ist für „Was fehlt?“ kein Platz). */
html.hk-z-l .hk-add-row { flex-wrap: wrap; }
html.hk-z-l .hk-add-name { flex: 1 1 100%; }
html.hk-z-l .hk-add-qty { flex: 1 1 0; min-width: 0; }

/* Auswahl im Dialog "Größe" */
.hk-size-hint { margin: 0 0 12px; }
.hk-size-options { display: flex; gap: 10px; }
.hk-size-opt {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; padding: 10px 6px;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    border: 2px solid var(--mud-palette-divider); border-radius: 16px; cursor: pointer; font: inherit; font-weight: 600;
}
.hk-size-opt.on { border-color: var(--mud-palette-primary); background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--mud-palette-surface)); }
.hk-size-small .hk-size-a { font-size: 18px; }
.hk-size-medium .hk-size-a { font-size: 26px; }
.hk-size-large .hk-size-a { font-size: 36px; }
.hk-size-a { line-height: 1.1; font-weight: 700; }

/* ---- Über Hamstern, Teilen ------------------------------------------------------------------- */
.hk-login-links { margin: 18px 0 0; text-align: center; font-size: .85rem; }
.hk-login-links a { color: var(--mud-palette-text-secondary); }
.hk-about { padding-bottom: 24px; }
.hk-about-hero { display: flex; align-items: center; gap: 16px; margin: 8px 0 4px; }
.hk-about-hero img { width: 5.5rem; height: 5.5rem; flex: none; }
.hk-about-name { font-weight: 700; font-size: 2rem; line-height: 1.1; letter-spacing: -.02em; }
.hk-about-name span { color: var(--mud-palette-secondary); }
.hk-about-claim { color: var(--mud-palette-text-secondary); }
.hk-about-h { margin: 26px 2px 8px; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--mud-palette-text-secondary); }
.hk-about p { margin: 6px 2px; }
.hk-about-small { font-size: .9rem; color: var(--mud-palette-text-secondary); }
.hk-about-address { font-style: normal; margin: 6px 2px 10px; line-height: 1.5; }
.hk-about-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 6px 2px; }
.hk-about-facts dt { color: var(--mud-palette-text-secondary); }
.hk-about-facts dd { margin: 0; }
.hk-about-link { color: var(--mud-palette-secondary); }
.hk-share-lines { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 16px; }
.hk-share-line {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 3rem; cursor: pointer;
    background: var(--mud-palette-surface); border-radius: 14px;
}
.hk-share-line input { width: 1.3rem; height: 1.3rem; flex: none; accent-color: var(--mud-palette-primary); }
.hk-share-actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---- Anmeldung: Sprechblase und Umschalter mit sichtbarer Auswahl ----------------------------------- */
.hk-bubble {
    position: relative; margin: 14px 0 6px; padding: 10px 18px; max-width: 100%; text-align: center;
    background: var(--mud-palette-surface); color: var(--mud-palette-text-primary);
    border: 2px solid var(--mud-palette-secondary); border-radius: 20px; font-weight: 600; font-size: 1.15rem;
}
.hk-bubble::before { /* Spitze zeigt nach oben zu Baby Kai */
    content: ""; position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; margin-left: -7px;
    background: var(--mud-palette-surface); border-left: 2px solid var(--mud-palette-secondary); border-top: 2px solid var(--mud-palette-secondary);
    transform: rotate(45deg);
}
.hk-seg { display: flex; width: 100%; padding: 4px; gap: 4px; background: var(--mud-palette-background); border: 2px solid var(--mud-palette-divider); border-radius: 999px; }
.hk-seg button {
    flex: 1; min-height: 2.6rem; padding: 6px 12px; border: 0; border-radius: 999px; cursor: pointer;
    background: transparent; color: var(--mud-palette-text-secondary); font: inherit; font-weight: 600; transition: background .15s, color .15s;
}
.hk-seg button.on { background: var(--mud-palette-primary); color: var(--mud-palette-primary-text); box-shadow: 0 2px 8px rgba(0, 0, 0, .4); }
.hk-seg-orange button.on { background: var(--mud-palette-secondary); color: var(--mud-palette-secondary-text); }
.hk-seg-small button { min-height: 2.2rem; font-size: .9rem; }
html.hk-no-motion .hk-seg button { transition: none; }

/* ---- Listen: Hintergrundfarbe und Farbwahl -------------------------------------------- */
/* Die Farbe der offenen Liste (--hk-tint) füllt die Seite. Flächen werden dunkler als sie, die Schrift ist weiß. */
.hk-tinted {
    background: var(--hk-tint);
    transition: background-color .3s ease;
    --mud-palette-text-primary: #FFFFFF;
    --mud-palette-text-secondary: rgba(255, 255, 255, .82);
    --mud-palette-surface: color-mix(in srgb, var(--hk-tint), black 22%);
    --mud-palette-background: color-mix(in srgb, var(--hk-tint), black 40%);
    --mud-palette-divider: rgba(255, 255, 255, .22);
}
html.hk-no-motion .hk-tinted { transition: none; }
/* Kopfzeile und Eingabebereich folgen der Listenfarbe, sonst bleibt ein dunkler Rand um das Eingabefeld. */
.mud-appbar.hk-appbar.hk-appbar-tinted { background-color: var(--hk-tint) !important; transition: background-color .3s ease; }
html.hk-no-motion .hk-appbar-tinted { transition: none; }
.hk-tinted .hk-sticky { background: var(--hk-tint); }
.mud-layout.hk-tinted-layout { min-height: 100vh; min-height: 100dvh; background: var(--hk-tint); transition: background-color .3s ease; }
html.hk-no-motion .hk-tinted-layout { transition: none; }
.hk-dot {
    display: inline-block; width: .9rem; height: .9rem; margin-right: .5rem; vertical-align: -.1rem;
    border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, .35);
}
.hk-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; margin: 18px 0 6px; justify-items: center; }
.hk-swatch {
    width: 2.75rem; height: 2.75rem; padding: 0; cursor: pointer; border-radius: 50%;
    background: var(--c); border: 3px solid transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .12);
    transition: transform .15s, border-color .15s;
}
.hk-swatch:hover { transform: scale(1.06); }
.hk-swatch.selected { border-color: #FFF3E0; transform: scale(1.08); }
.hk-swatch:focus-visible { outline: 2px solid #FFF3E0; outline-offset: 3px; }
.hk-private { margin-top: 10px; }
