
  /* ── Screen Container ────────────────────────────────── */
  .screen { display: none; min-height: 100vh; }
  .screen.active { display: flex; flex-direction: column; }

  /* ── Screen 1: Foto ──────────────────────────────────── */
  .screen-foto {
    padding: 0 0 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Hero Karte */
  .hero-card {
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 0;
  }

  /* Zettel */
  .hero-zettel {
    width: 100%;
    background: #FEFDF8;
    border-radius: 3px 16px 16px 3px;
    box-shadow: 2px 4px 16px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
    padding: 18px 20px 18px 36px;
    text-align: left;
    border-left: none;
  }
  /* Notizbuch-Linien */
  .hero-zettel-lines {
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
      to bottom,
      transparent,
      transparent 31px,
      #E8EEF5 31px,
      #E8EEF5 32px
    );
    background-position: 0 44px;
    pointer-events: none;
    opacity: 0.7;
  }
  /* Rote Randlinie */
  .hero-zettel-rand {
    position: absolute;
    left: 28px; top: 0; bottom: 0;
    width: 1.5px;
    background: rgba(220,100,80,0.35);
    pointer-events: none;
  }
  .hero-zettel-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .hero-handschrift {
    font-family: 'Caveat', cursive;
    font-size: 28px;
    font-weight: 600;
    color: #2C2C2C;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }
  .hero-handschrift-accent {
    font-size: 32px;
    font-weight: 700;
    color: var(--nav-bg);
  }
  .hero-zettel-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-top: 10px;
    font-weight: 500;
  }
  .hero-kamera-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    margin-top: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 20px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(201,92,69,0.30);
    animation: heroPuls 2.2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
    align-self: flex-start;
  }
  .hero-kamera-btn:active {
    transform: scale(0.97);
    animation: none;
  }
  @keyframes heroPuls {
    0%, 100% { box-shadow: 0 3px 12px rgba(201,92,69,0.30); }
    50%       { box-shadow: 0 3px 22px rgba(201,92,69,0.55); }
  }
  .hero-scan-btn {
    width: 100%; max-width: 360px;
    background: var(--accent); color: white;
    font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 800;
    border: none; border-radius: 16px; cursor: pointer;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.15s;
    min-height: 54px;
  }
  .hero-scan-btn:disabled { background: var(--border2); color: var(--muted); cursor: not-allowed; box-shadow: none; }

  /* Foto Vorschau */
  .foto-preview-wrap {
    width: 100%; max-width: 360px;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    position: relative; cursor: pointer;
  }
  .foto-preview-wrap img { width: 100%; max-height: 220px; object-fit: cover; display: block; }
  .foto-preview-change {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(0,0,0,0.45); color: white;
    font-size: 12px; font-weight: 700; padding: 8px;
    text-align: center;
  }
  .foto-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
    max-width: 360px; width: 100%;
  }
  .foto-thumb {
    position: relative; width: 100px; height: 100px;
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow);
  }
  .foto-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .foto-thumb-del {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%;
    width: 22px; height: 22px; font-size: 12px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
  }

  /* Rezept des Tages — neue große Karte */
  .rezept-section {
    width: 100%; padding: 16px 16px 0;
  }
  .rezept-section-label {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--muted); margin-bottom: 10px;
    font-family: 'Nunito', sans-serif;
  }
  .rezept-hero-card {
    background: white; border-radius: 20px; overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    cursor: pointer;
  }
  .rezept-hero-bild {
    width: 100%; height: 170px; object-fit: cover; display: block;
    background: var(--surface2);
  }
  .rezept-hero-bild-placeholder {
    width: 100%; height: 170px;
    background: linear-gradient(135deg, #8FA882, #6B7F65);
    display: flex; align-items: center; justify-content: center;
  }
  .rezept-hero-body { padding: 14px 16px 16px; }
  .rezept-hero-meta {
    display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap;
  }
  .rezept-hero-titel {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px; font-weight: 700; color: var(--text);
    line-height: 1.3; margin-bottom: 4px;
  }
  .rezept-hero-beschr {
    font-size: 12px; color: var(--muted); line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    margin-bottom: 12px;
  }
  .rezept-hero-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .rezept-zutaten-chips { display: flex; gap: 5px; flex-wrap: wrap; flex: 1; }
  .rezept-zutat-chip {
    background: var(--surface2); border-radius: 20px;
    padding: 3px 10px; font-size: 11px; color: var(--text2); font-weight: 600;
  }
  .btn-rezept-einkaufen {
    background: var(--accent); color: white;
    border: none; border-radius: 12px; padding: 10px 16px;
    font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800;
    cursor: pointer; flex-shrink: 0; white-space: nowrap;
    transition: background 0.15s;
  }
  .btn-rezept-einkaufen:hover { background: var(--accent-hover); }

  .scan-hint {
    margin-top: 10px;
    font-size: 13px; color: var(--muted); text-align: center;
  }

  /* Hidden upload area */
  .upload-area { display: none !important; }
  #previewImg { display: none; }

  /* ── Ladescreen ──────────────────────────────────────── */
  .screen-loading {
    align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px; gap: 32px;
    background: var(--bg);
  }

  /* Kisten-Animation */
  .loading-kiste {
    position: relative;
    animation: kisteFloat 2.4s ease-in-out infinite;
  }
  @keyframes kisteFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-10px); }
  }

  /* Punkte-Animation */
  .loading-dots {
    display: flex; gap: 8px; align-items: center; justify-content: center;
    margin-top: 4px;
  }
  .loading-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--accent); opacity: 0.3;
    animation: dotBounce 1.2s ease-in-out infinite;
  }
  .loading-dot:nth-child(1) { animation-delay: 0s; }
  .loading-dot:nth-child(2) { animation-delay: 0.2s; }
  .loading-dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes dotBounce {
    0%, 100% { opacity: 0.25; transform: scale(0.8); }
    50%       { opacity: 1;    transform: scale(1.2); }
  }

  /* Fortschrittsbalken */
  .loading-progress-wrap {
    width: 100%; max-width: 220px;
    background: var(--border); border-radius: 99px; height: 3px;
    overflow: hidden;
  }
  .loading-progress-bar {
    height: 100%; border-radius: 99px;
    background: var(--accent);
    animation: progressFlow 2.5s ease-in-out infinite;
    transform-origin: left;
  }
  @keyframes progressFlow {
    0%   { width: 5%;  opacity: 1; }
    60%  { width: 85%; opacity: 1; }
    90%  { width: 95%; opacity: 0.7; }
    100% { width: 5%;  opacity: 0; }
  }

  .loading-text { display: flex; flex-direction: column; gap: 6px; align-items: center; }
  .loading-title {
    font-family: 'Lora', Georgia, serif;
    font-size: 20px; font-weight: 700; color: var(--text);
  }
  .loading-sub {
    font-size: 13px; color: var(--muted);
    min-height: 18px; transition: opacity 0.4s ease;
  }

  /* ── Screen 2: Ergebnisse ────────────────────────────── */
  .screen-results { padding: 0 0 calc(180px + env(safe-area-inset-bottom)); background: var(--bg); }

  /* Topbar — schlank */
  .results-topbar {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 40;
  }
  .results-topbar-left { display: flex; flex-direction: column; gap: 1px; }
  .results-topbar-title { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900; color: var(--text); }
  .results-topbar-sub { font-size: 11px; color: var(--muted); }

  /* Topbar Aktions-Buttons — Pill-Stil */
  .btn-rescan:hover { background: rgba(0,0,0,0.13); }

  /* ── Listen-Bereich ─────────────────────────────────── */
  .list-section { margin: 14px 14px 0; }

  .list-section-header {
    display: flex; align-items: center; gap: 8px;
    padding: 6px 4px 8px;
    font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted);
  }

  .list-card {
    background: white; border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
  }

  /* Einzelne Zeile */
  .list-row {
    display: flex; flex-direction: column;
    border-bottom: 1px solid var(--border);
    padding: 0;
  }
  .list-row:last-child { border-bottom: none; }
  .list-row:active { background: var(--bg); }

  /* Keine harten Streifen — dezente Akzente */
  .list-row.row-found { }
  .list-row.row-multi-header { background: #FEF9F0; }
  .list-row.row-multi-option { background: var(--surface); }
  .list-row.row-multi-option.active { background: #F5FAF2; }
  .list-row.row-missed { background: #FEF5F5; opacity: 0.9; }
  .list-row.row-manual { background: #F5FAF2; }
  .list-row.row-add { background: var(--surface2); }

  /* ✕ dezent rund */
  .btn-remove {
    width: 44px; height: 44px; flex-shrink: 0;
    background: var(--surface2); color: var(--muted);
    border: 1px solid var(--border); border-radius: 50%;
    font-size: 11px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
  }
  .btn-remove:hover { background: var(--accent); color: white; border-color: var(--accent); }

  /* Thumbnail */
  .row-thumb {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: 10px; overflow: hidden;
    background: var(--surface2); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
  }
  .row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Artikel-Info */
  .row-info { flex: 1; min-width: 0; }
  .row-name {
    font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px;
    color: var(--text); line-height: 1.3; margin-bottom: 1px;
  }
  .row-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }
  .row-price {
    font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700;
    color: var(--muted); flex-shrink: 0; white-space: nowrap;
  }

  /* Rechte Spalte — alles in einer Zeile */
  /* Mengen-Steuerung — Pill */
  .row-qty {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.07); border-radius: 20px;
    border: none;
  }
  .qty-btn {
    width: 44px; height: 44px; background: transparent; color: var(--text);
    border: none; font-size: 20px; font-weight: 700; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.1s; border-radius: 22px;
  }
  .qty-btn:hover { background: rgba(0,0,0,0.1); }
  .qty-btn:disabled { opacity: 0.35; cursor: not-allowed; }
  .qty-input {
    width: 32px; height: 44px; border: none;
    text-align: center; font-family: 'Nunito', sans-serif;
    font-size: 13px; font-weight: 800; color: var(--text);
    background: transparent; outline: none; -moz-appearance: textfield;
  }
  .qty-input::-webkit-outer-spin-button,
  .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

  /* Preis + i nebeneinander */

  /* Nicht gefunden / Suche */
  .missed-label {
    font-size: 14px; color: var(--text); font-weight: 800;
    font-family: 'Nunito', sans-serif;
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .missed-original { font-size: 11px; color: var(--muted); font-style: italic; margin-top: 2px; }

  /* Mapping Inline */
  .missed-map-btn {
    padding: 7px 12px; background: var(--surface2); color: var(--accent);
    border: 1.5px solid var(--accent); border-radius: 10px;
    font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
    transition: all 0.15s;
  }
  .missed-map-btn:hover { background: var(--accent); color: white; }
  .missed-map-btn.mapped { background: var(--green-light); color: var(--green); border-color: var(--green); cursor: default; }
  .missed-map-panel {
    padding: 10px 14px 12px;
    border-top: 1px dashed var(--border2);
    background: var(--surface2);
  }
  .missed-map-label { font-size: 11px; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
  .missed-map-input {
    width: 100%; background: white; border: 1.5px solid var(--border2);
    border-radius: 9px; padding: 9px 12px; font-size: 14px; color: var(--text);
    outline: none; transition: border-color 0.2s; font-family: 'Nunito Sans', sans-serif;
  }
  .missed-map-input:focus { border-color: var(--accent); }
  .missed-map-results { margin-top: 6px; display: flex; flex-direction: column; }
  .missed-map-hit {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-top: 1px solid var(--border);
    cursor: pointer; transition: background 0.1s;
  }
  .missed-map-hit:hover { background: var(--accent-light); }
  .missed-map-hit-info { flex: 1; min-width: 0; }
  .missed-map-hit-name { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .missed-map-hit-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
  .missed-map-hit-btn {
    padding: 6px 12px; background: var(--accent); color: white;
    border: none; border-radius: 7px; font-family: 'Nunito', sans-serif;
    font-size: 12px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  }
  .missed-map-hit-btn:hover { background: var(--accent-hover); }

  /* Manuelle Suche Block */
  .manual-search-block {
    margin: 10px 12px 0;
    background: white; border: 1.5px solid var(--border);
    border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
  }
  .manual-search-head {
    padding: 12px 14px 10px;
    border-bottom: 1px solid var(--border);
  }
  .manual-search-title {
    font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800;
    color: var(--text); margin-bottom: 8px;
    display: flex; align-items: center; gap: 6px;
  }
  .manual-search-input-row { display: flex; gap: 8px; }
  .manual-search-input {
    flex: 1; background: var(--surface2); border: 1.5px solid var(--border2);
    border-radius: 10px; padding: 10px 12px; font-size: 15px; color: var(--text);
    outline: none; transition: border-color 0.2s; font-family: 'Nunito Sans', sans-serif;
  }
  .manual-search-input:focus { border-color: var(--accent); }
  .manual-results-list { display: flex; flex-direction: column; }
  .manual-hit {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-top: 1px solid var(--border);
    transition: background 0.1s;
  }
  .manual-hit:active { background: var(--surface2); }
  .manual-hit.added { background: var(--green-light); }
  .manual-hit-info { flex: 1; min-width: 0; }
  .manual-hit-name { font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .manual-hit-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
  .btn-add-manual {
    padding: 7px 14px; background: var(--accent); color: white;
    border: none; border-radius: 8px; font-family: 'Nunito', sans-serif;
    font-size: 13px; font-weight: 800; cursor: pointer; white-space: nowrap;
    flex-shrink: 0; transition: background 0.15s;
  }
  .btn-add-manual:hover { background: var(--accent-hover); }
  .btn-add-manual.added { background: var(--green); cursor: default; }

  /* Sticky order bar */
  .order-bar {
    position: fixed; bottom: calc(60px + env(safe-area-inset-bottom)); left: 0; right: 0;
    padding: 10px 16px;
    background: var(--bg); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06); z-index: 200;
    display: flex; align-items: center; gap: 14px;
  }
  .order-bar-info { flex: 1; }
  .order-bar-count { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900; color: var(--text); }
  .order-bar-total { font-size: 12px; color: var(--muted); margin-top: 1px; }
  .btn-order-trash {
    background: none; border: 1.5px solid var(--border); color: var(--muted);
    border-radius: 10px; padding: 8px 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 0.15s;
  }
  .btn-order-trash:hover { border-color: var(--accent); color: var(--accent); }
  .btn-order-main {
    padding: 13px 22px; background: var(--accent); color: white;
    border: none; border-radius: 24px;
    font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900;
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; gap: 8px;
    white-space: nowrap; min-height: 50px;
  }
  .btn-order-main:hover { background: var(--accent-hover); transform: translateY(-1px); }
  .btn-order-main:disabled { background: var(--border2); color: var(--muted); box-shadow: none; transform: none; cursor: not-allowed; }

  /* Vorschläge */
  .suggestions-section {
    margin: 14px 14px 0;
  }
  .suggestions-head {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  }
  .suggestions-head-text { flex: 1; }
  .suggestions-head-title {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.07em; color: var(--muted); font-family: 'Nunito', sans-serif;
  }
  .btn-sugg-reload {
    background: none; border: none; color: var(--muted);
    font-size: 13px; cursor: pointer; padding: 4px;
    font-family: 'Nunito', sans-serif; font-weight: 700;
    transition: color 0.15s;
  }
  .btn-sugg-reload:hover { color: var(--accent); }
  .btn-sugg-reload:disabled { opacity: 0.4; cursor: not-allowed; }
  .suggestions-body-inner { }
  .suggestions-grid {
    background: white; border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
  }
  .sugg-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
  }
  .sugg-card:last-child { border-bottom: none; }
  .sugg-card:active { background: var(--bg); }
  .sugg-card.added { background: #F5FAF2; }
  .sugg-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 13px; color: var(--text); line-height: 1.3; margin-bottom: 1px; }
  .sugg-desc { font-size: 11px; color: var(--muted); line-height: 1.3; }
  .sugg-price { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 700; color: var(--muted); flex-shrink: 0; white-space: nowrap; }
  .sugg-reason { font-size: 11px; color: var(--accent); font-style: italic; margin-top: 2px; line-height: 1.3; }

  /* ── Modal Bestellübersicht ──────────────────────────── */
  .modal-overlay {
    position: fixed; inset: 0;
    background: rgba(45,32,21,0.5);
    backdrop-filter: blur(5px);
    display: none; align-items: flex-end; justify-content: center;
    z-index: 200; padding: 0;
  }
  .modal-overlay.visible { display: flex; }
  .modal {
    background: white; width: 100%; max-width: 560px;
    border-radius: 24px 24px 0 0;
    max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: 0 -8px 40px rgba(45,32,21,0.2);
    animation: slideUp 0.25s cubic-bezier(0.34,1.2,0.64,1);
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes spin { to { transform: rotate(360deg); } }
  .modal-handle {
    width: 40px; height: 4px; background: var(--border2);
    border-radius: 2px; margin: 12px auto 0;
  }
  .modal-header {
    padding: 14px 20px 14px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid var(--border);
    background: white;
    flex-shrink: 0;
  }
  .modal-header-icon {
    width: 40px; height: 40px; background: var(--bg);
    border-radius: 10px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
  }
  .modal-title { font-family: 'Lora', Georgia, serif; font-size: 17px; font-weight: 700; color: var(--text); }
  .modal-subtitle-small { font-size: 11px; color: var(--muted); margin-top: 2px; }
  .modal-close {
    margin-left: auto; width: 44px; height: 44px;
    background: var(--bg); border: 1px solid var(--border); border-radius: 50%;
    font-size: 13px; cursor: pointer; color: var(--muted);
    display: flex; align-items: center; justify-content: center; transition: all 0.15s;
    flex-shrink: 0;
  }
  .modal-close:hover { background: var(--accent); color: white; border-color: var(--accent); }
  .modal-body { padding: 16px 18px; overflow-y: auto; flex: 1; }
  .modal-product-list { display: flex; flex-direction: column; gap: 8px; }
  .modal-product-row {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface2); border: 1.5px solid var(--border);
    border-radius: 12px; padding: 11px 13px;
  }
  .modal-product-code {
    background: var(--accent); color: white;
    font-family: 'Nunito', sans-serif; font-size: 11px; font-weight: 800;
    padding: 4px 9px; border-radius: 7px; white-space: nowrap; flex-shrink: 0;
  }
  .modal-product-info { flex: 1; min-width: 0; }
  .modal-product-name { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .modal-product-desc { font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
  .modal-product-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; flex-wrap: wrap; }
  .modal-product-qty { font-size: 12px; color: var(--muted); font-weight: 600; }
  .modal-product-unit { font-size: 12px; color: var(--muted); }
  .modal-product-total { font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900; color: var(--green); flex-shrink: 0; white-space: nowrap; }
  .modal-summary-bar {
    margin-top: 14px;
    background: var(--accent-light); border: 1.5px solid rgba(26,92,58,0.25);
    border-radius: 14px; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
  }
  .modal-summary-left { font-size: 13px; color: var(--text2); font-weight: 600; }
  .modal-summary-left strong { font-family: 'Nunito', sans-serif; font-weight: 900; color: var(--text); font-size: 15px; display: block; }
  .modal-summary-total { font-family: 'Nunito', sans-serif; font-size: 22px; font-weight: 900; color: var(--accent); }
  .modal-footer {
    padding: 14px 18px; padding-bottom: calc(14px + env(safe-area-inset-bottom));
    border-top: 2px solid var(--border);
    display: flex; gap: 10px; flex-shrink: 0;
  }
  .btn-modal-cancel {
    padding: 14px 18px; background: var(--surface2); color: var(--text2);
    border: 1.5px solid var(--border2); border-radius: 14px;
    font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all 0.15s; min-height: 52px;
  }
  .btn-modal-cancel:hover { background: var(--border2); }
  .btn-modal-confirm {
    flex: 1; padding: 14px 20px;
    background: var(--green); color: white;
    border: none; border-radius: 14px;
    font-family: 'Nunito', sans-serif; font-size: 16px; font-weight: 900;
    cursor: pointer; transition: all 0.15s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: 0 4px 14px rgba(26,92,58,0.3); min-height: 52px;
  }
  .btn-modal-confirm:hover { background: #134a2e; }

  /* Passwort-Sperre */
  .settings-lock-input:focus { border-color: var(--accent); }
  .settings-lock-input.error { border-color: var(--red); animation: shake 0.3s ease; }
  @keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
  }
  .settings-lock-btn:hover { background: var(--accent-hover); }

  /* Supabase Karte */
  .supabase-field label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
  .supabase-input:focus { border-color: var(--accent); }
  .btn-save-supabase:hover { background: var(--accent-hover); }
  .settings-desc a { color: var(--accent); text-decoration: none; }
  .apikey-input:focus { border-color: var(--accent); }
  .apikey-input::placeholder { color: var(--muted); font-family: 'Nunito Sans', sans-serif; }
  .btn-save-key:hover { background: var(--accent-hover); }
  .btn-clear-key:hover { background: var(--red); color: white; border-color: var(--red); }
  .key-status.ok { color: var(--green); }
  .key-status.warn { color: var(--red); }
  .csv-zone:hover { border-color: var(--accent); background: var(--accent-light); }
  .csv-info strong { font-weight: 700; color: var(--text); display: block; margin-bottom: 2px; font-size: 14px; }
  .csv-info span { color: var(--muted); font-size: 12px; }
  .csv-status.ok { color: var(--green); font-weight: 600; }
  .field-group label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.05em; }
  .field-group select {
    width: 100%; background: white; border: 1.5px solid var(--border);
    border-radius: 10px; color: var(--text);
    font-family: 'Nunito Sans', sans-serif; font-size: 13px; padding: 8px 10px;
    outline: none; transition: border-color 0.2s;
  }
  .field-group select:focus { border-color: var(--accent); }
  .btn-save-csv:hover { background: var(--accent-hover); }
  .btn-clear-csv:hover { background: var(--red); color: white; border-color: var(--red); }

  /* ── Info Button ─────────────────────────────────────── */
  .btn-info:hover { background: var(--accent); color: white; border-color: var(--accent); }

  /* ── Nährwert Tabelle ────────────────────────────────── */
  .nutri-table {
    width: 100%; border-collapse: collapse; font-size: 13px;
  }
  .nutri-table tr { border-bottom: 1px solid var(--border); }
  .nutri-table tr:last-child { border-bottom: none; }
  .nutri-table td { padding: 10px 4px; }
  .nutri-table td:first-child { color: var(--text); font-weight: 600; }
  .nutri-table td:last-child {
    text-align: right; font-family: 'Nunito', sans-serif;
    font-weight: 800; color: var(--text);
  }
  .nutri-table tr.nutri-main td { font-size: 13px; font-weight: 700; color: var(--text); }
  .nutri-table tr.nutri-main:first-child td { color: var(--accent); font-size: 14px; }
  .nutri-table tr.nutri-main:first-child td:last-child { color: var(--accent); font-size: 15px; font-weight: 900; }
  .nutri-table tr.nutri-sub td:first-child { padding-left: 14px; color: var(--muted); font-size: 12px; font-weight: 500; }
  .nutri-table tr.nutri-sub td:last-child { color: var(--muted); font-size: 12px; font-weight: 700; }
  .nutri-disclaimer {
    font-size: 11px; color: var(--muted); text-align: center;
    margin-top: 12px; padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .toast {
    position: fixed; top: 80px; left: 50%;
    transform: translateX(-50%) translateY(-30px);
    z-index: 500;
    background: #0f2d1c; color: white;
    border-radius: 50px; padding: 10px 18px 10px 12px;
    display: flex; align-items: center; gap: 10px;
    font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 700;
    box-shadow: 0 8px 28px rgba(0,0,0,0.2);
    opacity: 0; pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s ease;
    max-width: calc(100vw - 32px); white-space: nowrap;
  }
  .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
  .toast-icon {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--green); display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
  }
  .toast-text { display: flex; flex-direction: column; }
  .toast-label { color: white; font-size: 13px; }
  .toast-name { color: #f0d9b5; font-size: 11px; font-weight: 600; margin-top: 1px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }

  /* ── Spinner inline ──────────────────────────────────── */
  .spinner {
    width: 16px; height: 16px;
    border: 2.5px solid rgba(255,255,255,0.4); border-top-color: white;
    border-radius: 50%; animation: spin 0.7s linear infinite; flex-shrink: 0;
  }
  .spinner-dark {
    width: 16px; height: 16px;
    border: 2.5px solid var(--border2); border-top-color: var(--accent);
    border-radius: 50%; animation: spin 0.7s linear infinite;
  }

  /* ── Erfolgs-Screen ──────────────────────────────────── */
  .screen-success {
    align-items: center; justify-content: center;
    text-align: center; padding: 40px 24px; gap: 0;
  }
  .success-circle {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), #2e9460);
    display: flex; align-items: center; justify-content: center;
    font-size: 46px; margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(26,92,58,0.35);
    animation: successPop 0.5s cubic-bezier(0.34,1.56,0.64,1);
  }
  @keyframes successPop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
  }
  .success-title {
    font-family: 'Nunito', sans-serif; font-size: 26px; font-weight: 900;
    color: var(--text); margin-bottom: 10px;
    animation: fadeUp 0.4s ease 0.2s both;
  }
  .success-sub {
    font-size: 15px; color: var(--muted); line-height: 1.6;
    max-width: 280px; margin: 0 auto 28px;
    animation: fadeUp 0.4s ease 0.3s both;
  }
  .success-codes {
    background: var(--surface2); border: 1.5px solid var(--border);
    border-radius: 14px; padding: 14px 18px; margin-bottom: 24px;
    max-width: 340px; width: 100%; text-align: left;
    animation: fadeUp 0.4s ease 0.4s both;
  }
  .success-codes-label {
    font-size: 11px; font-weight: 800; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px;
  }
  .success-codes-value {
    font-family: 'Courier New', monospace; font-size: 13px;
    color: var(--text); word-break: break-all; line-height: 1.6;
  }
  .btn-success-new {
    padding: 16px 32px; background: var(--accent); color: white;
    border: none; border-radius: 16px;
    font-family: 'Nunito', sans-serif; font-size: 17px; font-weight: 900;
    cursor: pointer; box-shadow: 0 6px 20px rgba(26,92,58,0.35);
    transition: all 0.15s; animation: fadeUp 0.4s ease 0.5s both;
  }
  .btn-success-new:hover { background: var(--accent-hover); transform: translateY(-2px); }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ── Kein Artikel gefunden Hinweis ───────────────────── */
  /* ── Kundenbereich Screen ───────────────────────── */
  .screen-kunde { padding: 0 0 40px; }
  .kunde-header {
    background: var(--surface); border-bottom: 1px solid var(--border); color: var(--text);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 0; z-index: 40;
  }
  .kunde-title { font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 900; flex: 1; }
  .kunde-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }

  /* Profil-Karte */
  .kunde-card {
    background: var(--surface); border: 1.5px solid var(--border);
    border-radius: 16px; overflow: hidden; box-shadow: var(--shadow);
  }
  .kunde-card-title {
    font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 900;
    color: var(--text2); letter-spacing: 0.02em;
    padding: 14px 16px 0;
  }
  .kunde-field {
    display: flex; align-items: center; padding: 9px 16px;
    border-top: 1px solid var(--border); gap: 12px;
  }
  .kunde-field:first-of-type { border-top: none; }
  .kunde-field-label { font-size: 11px; color: var(--muted); font-weight: 700; width: 90px; flex-shrink: 0; letter-spacing: 0.02em; }
  .kunde-field-value { font-size: 14px; color: var(--text); font-weight: 700; flex: 1; }
  .kunde-field-input {
    flex: 1; border: none; outline: none; font-size: 14px; color: var(--text);
    font-family: 'Nunito Sans', sans-serif; font-weight: 700; background: transparent;
    padding: 2px 0;
  }
  .btn-kunde-save {
    margin: 10px 14px 14px; width: calc(100% - 28px);
    padding: 12px; background: var(--accent); color: white;
    border: none; border-radius: 12px;
    font-family: 'Nunito', sans-serif; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: background 0.15s;
  }
  .btn-kunde-save:hover { background: var(--accent-hover); }

  /* Bestellhistorie */
  .bestellung-row {
    padding: 12px 16px; border-top: 1px solid var(--border);
    cursor: pointer; transition: background 0.1s;
  }
  .bestellung-row:hover { background: var(--surface2); }
  .bestellung-row:first-child { border-top: none; }
  .bestellung-row-top {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-bottom: 4px;
  }
  .bestellung-datum { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 800; color: var(--text); }
  .bestellung-total { font-family: 'Nunito', sans-serif; font-size: 13px; font-weight: 900; color: var(--green); }
  .bestellung-artikel { font-size: 12px; color: var(--muted); line-height: 1.5; }
  .bestellung-leer { padding: 24px 16px; text-align: center; color: var(--muted); font-size: 14px; }
  .bestellung-status-neu { font-size:10px;font-weight:800;padding:2px 8px;border-radius:20px;background:#e3f2fd;color:#1565c0; }
  .bestellung-status-storniert { font-size:10px;font-weight:800;padding:2px 8px;border-radius:20px;background:var(--red-light);color:var(--red); }
  .bestellung-status-geliefert { font-size:10px;font-weight:800;padding:2px 8px;border-radius:20px;background:var(--green-light);color:var(--green); }
  .btn-bestell-action {
    padding:8px 14px;border:none;border-radius:9px;
    font-family:'Nunito',sans-serif;font-size:12px;font-weight:800;
    cursor:pointer;transition:all 0.15s;white-space:nowrap;
  }
  .btn-nochmal { background:var(--accent-light);color:var(--accent); }
  .btn-storno  { background:var(--red-light);color:var(--red); }

  /* Bestellung Detail Modal */
  .bestellung-detail-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 20px; border-bottom: 1px solid var(--border);
  }
  .bestellung-detail-item:last-child { border-bottom: none; }
  .bestellung-detail-name { flex: 1; font-size: 14px; font-weight: 700; color: var(--text); }
  .bestellung-detail-code { font-size: 11px; color: var(--accent); font-weight: 700; }
  .bestellung-detail-qty {
    font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900;
    color: var(--muted); white-space: nowrap;
  }
  .bestellung-detail-price {
    font-family: 'Nunito', sans-serif; font-size: 14px; font-weight: 900;
    color: var(--green); white-space: nowrap; min-width: 60px; text-align: right;
  }

  /* Profil-Button im Header */
  .btn-profil:hover { background: rgba(255,255,255,0.3); }

  /* ── Impressum Screen ──────────────────────────── */
  .screen-impressum { padding: 0 0 40px; }
  .impressum-header { background: white; border-bottom: 1.5px solid var(--border); color: var(--text); padding: 14px 20px; display: flex; align-items: center; gap: 12px; }
  .impressum-back { background: none; border: none; color: var(--accent); font-size: 22px; cursor: pointer; padding: 0; line-height: 1; }
  .impressum-title { font-family: 'Nunito', sans-serif; font-size: 18px; font-weight: 900; }
  .impressum-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
  .impressum-section { background: white; border: 1.5px solid var(--border); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
  .impressum-section-title { font-family: 'Nunito', sans-serif; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
  .impressum-section p { font-size: 14px; color: var(--text); line-height: 1.8; margin: 0; }
  .impressum-section a { color: var(--accent); text-decoration: none; font-weight: 600; }
  .app-footer { display: flex; justify-content: center; padding: 4px 0 8px; }
  .btn-impressum { font-size: 11px; color: var(--muted); font-weight: 600; background: none; border: none; cursor: pointer; padding: 4px 12px; text-decoration: underline; text-underline-offset: 2px; }

  /* ── Sortiment Screen ──────────────────────────────────── */
  .screen-sortiment { background: var(--bg); padding-bottom: 24px; }
  .screen-sortiment.order-bar-aktiv { padding-bottom: 80px; }

  .sortiment-header {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 10;
  }
  .sortiment-back {
    background: none; border: none; font-size: 20px; cursor: pointer;
    color: var(--text2); padding: 0; line-height: 1;
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  }
  .sortiment-title { font-family:'Nunito',sans-serif; font-size:15px; font-weight:900; color:var(--text); flex:1; display:flex; align-items:center; gap:8px; }

  /* Suchleiste */
  .sortiment-search-wrap {
    padding: 12px 16px; background: white;
    border-bottom: 1px solid var(--border);
    position: relative;
  }
  .sortiment-search {
    width: 100%; padding: 10px 14px 10px 38px;
    border: 1px solid var(--border); border-radius: 24px;
    font-family:'Nunito',sans-serif; font-size:14px;
    background: var(--bg); outline: none; color: var(--text);
    box-sizing: border-box;
  }
  .sortiment-search:focus { border-color: var(--accent); }
  .sortiment-search-icon {
    position: absolute; left: 28px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--muted);
  }

  /* Kategorien Chips — Pill-Stil */
  .sortiment-cats {
    display: flex; gap: 6px; padding: 10px 16px;
    overflow-x: auto; scrollbar-width: none;
    background: white; border-bottom: 1px solid var(--border);
  }
  .sortiment-cats::-webkit-scrollbar { display: none; }
  .kat-chip {
    white-space: nowrap; padding: 6px 14px;
    border-radius: 20px; border: none;
    background: rgba(0,0,0,0.07); color: var(--text);
    font-family:'Nunito',sans-serif; font-size:12px; font-weight:700;
    cursor: pointer; transition: all 0.15s; flex-shrink: 0;
  }
  .kat-chip.aktiv { background: var(--accent); color: white; }

  /* Produkt-Liste statt Grid */
  .sortiment-body { padding: 12px 14px; background: var(--bg); }
  .kat-section { margin-bottom: 20px; }
  .kat-section-title {
    font-family:'Nunito',sans-serif; font-size:11px; font-weight:800;
    color: var(--muted); margin-bottom: 8px; padding: 0 2px;
    text-transform: uppercase; letter-spacing: 0.07em;
    display: flex; align-items: center; gap: 6px;
  }

  /* Produkt — gleiche Zeile wie Warenkorb */
  .produkt-grid {
    background: white; border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    display: flex; flex-direction: column;
  }
  .produkt-kachel {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--border);
  }
  .produkt-kachel:last-child { border-bottom: none; }
  .produkt-kachel:active { background: var(--bg); }
  .produkt-kachel.im-warenkorb { background: #F5FAF2; }

  .produkt-kachel-bild {
    width: 44px; height: 44px; min-width: 44px; flex-shrink: 0;
    border-radius: 10px; background: var(--bg);
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative;
  }
  .produkt-kachel-bild { background: #EDE5D8; border-radius: 9px; position: relative; overflow: hidden; }
  .produkt-kachel-bild img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:9px; display:block; }

  .produkt-kachel-info { flex: 1; min-width: 0; }
  .produkt-kachel-name {
    font-family:'Nunito',sans-serif; font-size:13px; font-weight:800;
    color: var(--text); line-height: 1.3; margin-bottom: 1px;
  }
  .produkt-kachel-preis {
    font-family:'Nunito',sans-serif; font-size:11px; font-weight:700;
    color: var(--muted);
  }

  /* Mengen-Pill — gleich wie Warenkorb */
  .produkt-kachel-qty {
    display: flex; align-items: center;
    background: rgba(0,0,0,0.07); border-radius: 20px; flex-shrink: 0;
  }
  .produkt-kachel-qty button {
    width: 44px; height: 44px; border-radius: 22px;
    border: none; background: none;
    font-size: 16px; cursor: pointer; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: var(--text); line-height: 1; flex-shrink: 0;
    transition: background 0.1s;
  }
  .produkt-kachel-qty button:hover { background: rgba(0,0,0,0.1); }





/* ── Wochenplan ──────────────────────────────────────────────────────────────── */
.wp-day-card {
  background: var(--surface);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  animation: wpFadeUp 0.3s ease both;
}
.wp-day-card:nth-child(1){animation-delay:.04s} .wp-day-card:nth-child(2){animation-delay:.08s}
.wp-day-card:nth-child(3){animation-delay:.12s} .wp-day-card:nth-child(4){animation-delay:.16s}
.wp-day-card:nth-child(5){animation-delay:.20s} .wp-day-card:nth-child(6){animation-delay:.24s}
@keyframes wpFadeUp { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:none} }

.wp-day-header {
  background: var(--nav-bg);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wp-day-name {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 900;
  color: var(--nav-active);
  letter-spacing: 0.01em;
}
.wp-day-kcal {
  font-size: 11px;
  color: var(--nav-text);
  opacity: 0.65;
  font-weight: 600;
}

.wp-day-meals { display: flex; flex-direction: column; }

.wp-meal-row {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  transition: background 0.12s;
  gap: 12px;
  position: relative;
}
.wp-meal-row:active { background: var(--surface2); }
.wp-meal-row.mittag { background: #f8fbf6; }
.wp-meal-row.abend  { background: #fdf9f5; }

.wp-meal-row-left { flex: 1; min-width: 0; }
.wp-meal-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.wp-meal-row-label {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 5px;
}
.wp-meal-row.mittag .wp-meal-row-label { color: #6a9e6a; }
.wp-meal-row.abend  .wp-meal-row-label { color: #b07050; }

.wp-meal-row-name {
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 5px;
}
.wp-meal-row-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wp-meal-row-kcal {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0,0,0,0.05);
  padding: 2px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.wp-meal-row-chevron {
  color: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.wp-meal-divider {
  height: 1px;
  background: var(--border);
  margin: 0 16px;
  opacity: 0.6;
}

/* Modal Anpassungen für Wochenplan */
.wp-modal-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

/* ── Leider nicht dabei — Kacheln ────────────────────────────────────────────── */
.missed-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.missed-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.missed-item-info { flex: 1; min-width: 0; }
.missed-item-name {
  font-family: 'Nunito', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 3px;
}
.missed-item-orig {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 3px;
}
.missed-item-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
.missed-item-hint.mapped {
  color: var(--green);
  font-weight: 700;
}
.missed-map-btn {
  padding: 7px 12px;
  background: var(--surface2);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}
.missed-map-btn:hover { background: var(--accent); color: white; }
.missed-map-btn.mapped { background: var(--green-light); color: var(--green); border-color: var(--green); cursor: default; }
.missed-map-panel { padding: 0 16px 14px; border-top: 1px solid var(--border); }
.missed-map-label { font-size: 12px; font-weight: 700; color: var(--text2); margin-bottom: 8px; padding-top: 12px; }
.missed-map-input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: 13px; font-family: 'Nunito', sans-serif; outline: none; }
.missed-map-input:focus { border-color: var(--accent); }
.missed-map-results { margin-top: 6px; display: flex; flex-direction: column; gap: 4px; }
.missed-map-hit { padding: 8px 10px; background: var(--surface2); border-radius: 8px; cursor: pointer; transition: background .12s; }
.missed-map-hit:hover { background: var(--border); }
.missed-map-hit-name { font-size: 13px; font-weight: 700; color: var(--text); }
.missed-map-hit-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Bottom Tab Bar ──────────────────────────────────────────────────────────── */
.tab-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100%;
  z-index: 100;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  box-shadow: 0 -2px 16px rgba(0,0,0,0.08);
  box-sizing: border-box;
  /* Safe Area für Home Indicator (iPhone X+) */
  padding-bottom: env(safe-area-inset-bottom, 20px);
}

.tab-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  /* 54px = etwas großzügiger als Apple-Minimum */
  height: 54px;
  padding: 0 4px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  min-width: 44px;
}

.tab-btn svg {
  width: 26px;
  height: 26px;
  transition: stroke 0.15s;
  flex-shrink: 0;
}

.tab-btn.aktiv {
  color: var(--text);
}
.tab-btn.aktiv svg {
  stroke: var(--nav-bg);
  stroke-width: 2.5;
}

/* Aktiv-Indikator: Linie oben */
.tab-btn.aktiv::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2.5px;
  background: var(--nav-bg);
  border-radius: 0 0 3px 3px;
}

/* Browser: Standard */
@media (display-mode: browser) {
  .tab-btn {
    height: 54px;
    font-size: 10px;
    gap: 4px;
  }
  .tab-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* PWA Standalone: gleich groß */
@media (display-mode: standalone) {
  .tab-btn {
    height: 54px;
    font-size: 10px;
    gap: 4px;
  }
  .tab-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Screens: Abstand unten = Tab Bar + Safe Area */
.screen {
  padding-bottom: calc(54px + env(safe-area-inset-bottom, 20px)) !important;
}

/* Order Bar floating direkt über Tab Bar */
.order-bar {
  position: fixed;
  bottom: calc(54px + env(safe-area-inset-bottom, 20px));
  left: 0; right: 0;
  z-index: 99;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.10);
}

/* Footer in Tab Bar integrieren — nur noch Impressum/FAQ links */
.app-footer {
  position: fixed;
  bottom: calc(60px + env(safe-area-inset-bottom) + 52px);
  left: 0; right: 0;
  display: none !important;
}

/* ── Desktop / iPad Anpassungen ─────────────────────────────────────────────── */
@media (min-width: 560px) {
  .screen-foto {
    max-width: 560px;
    margin: 0 auto;
  }
  .hero-card {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}
