/* ═══════════════════════════════════════════════════════════
   FestFlow Design System
   Primärnavy: #0A2E62 | FestFlow-Grün: #57A631 (Landingpage-Designsystem)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
    --ff-blau:      #0A2E62;
    --ff-blau-d:    #071F44;
    --ff-blau-l:    #EAEFF7;
    --ff-gruen:     #57A631;
    --ff-gruen-d:   #468A26;
    --ff-gruen-l:   #E9F3DF;
    --ff-orange:    #D97706;
    --ff-orange-l:  #FEF3C7;
    --ff-rot:       #DC2626;
    --ff-rot-l:     #FEE2E2;
    --ff-grau-bg:   #F8FAFC;
    --ff-grau-l:    #F1F5F9;
    --ff-grau-m:    #CBD5E1;
    --ff-grau-d:    #64748B;
    --ff-text:      #111827;
    --ff-text-l:    #4B5563;
    --ff-weiss:     #FFFFFF;
    --ff-shadow:    0 2px 12px rgba(17,24,39,.06);
    --ff-shadow-lg: 0 20px 44px -12px rgba(17,24,39,.18);
    --ff-radius:    14px;
    --ff-radius-lg: 20px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    background: var(--ff-grau-bg);
    color: var(--ff-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────── */
.app-header {
    background: var(--ff-blau);
    color: #fff;
    padding: 0 1.25rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.18);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--ff-gruen);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}
.header-inner h1 {
    font-size: 1.15rem;
    font-weight: 700;
    flex: 1;
    text-align: center;
    letter-spacing: -.01em;
}

/* FestFlow Logo im Header */
.ff-logo {
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    flex-shrink: 0;
}
.ff-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--ff-gruen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.ff-logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}
.ff-logo-text span { color: var(--ff-gruen); }

/* ─── Container ─────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1rem 4rem;
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border: none;
    border-radius: 7px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all .18s;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: -.01em;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn:active { transform: scale(.97) translateY(0); box-shadow: none; }

.btn-primary   { background: var(--ff-blau); color: #fff; box-shadow: 0 4px 14px rgba(10,46,98,.28); }
.btn-secondary { background: #fff; color: var(--ff-text); border: 1px solid rgba(17,24,39,.12); box-shadow: 0 2px 8px rgba(17,24,39,.05); }
.btn-success   { background: var(--ff-gruen); color: #fff; }
.btn-danger    { background: var(--ff-rot); color: #fff; }
.btn-outline   { background: transparent; border: 2px solid var(--ff-blau); color: var(--ff-blau); }
.btn-outline:hover { background: var(--ff-blau); color: #fff; }
.btn-outline-light {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,.65);
    color: #fff;
    font-size: .82rem;
    padding: .3rem .8rem;
}
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-sm  { padding: .28rem .65rem; font-size: .8rem; }
.btn-lg  { padding: .75rem 2rem; font-size: 1rem; font-weight: 700; }
.btn-block { width: 100%; justify-content: center; }

/* ─── Forms ─────────────────────────────────────────────── */
.form-control {
    width: 100%;
    padding: .5rem .75rem;
    border: 1.5px solid var(--ff-grau-m);
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
    color: var(--ff-text);
}
.form-control:focus {
    outline: none;
    border-color: var(--ff-gruen);
    box-shadow: 0 0 0 3px rgba(103,181,63,.18);
}
.form-group { display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ff-text-l);
    letter-spacing: .01em;
}
.form-group-inline { display: flex; align-items: center; gap: .5rem; }
.form-group-inline label { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { min-width: 140px; }
.form-section-title {
    font-weight: 700;
    font-size: .9rem;
    color: var(--ff-blau);
    margin: 1rem 0 .5rem;
    padding-bottom: .3rem;
    border-bottom: 2px solid var(--ff-grau-l);
}
.form-hint { font-size: .82rem; color: var(--ff-gruen-d); font-weight: 600; margin: -.3rem 0 .5rem; }
.we-preview {
    background: var(--ff-gruen-l);
    border: 1.5px solid var(--ff-gruen);
    border-radius: 8px;
    padding: .5rem .75rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--ff-gruen-d);
    margin-bottom: .5rem;
}
select.form-control { cursor: pointer; }
input[type="color"].form-control { padding: .2rem; height: 40px; cursor: pointer; }

/* ─── Alerts ─────────────────────────────────────────────── */
.alert {
    padding: .8rem 1rem;
    border-radius: var(--ff-radius);
    margin-bottom: 1rem;
    font-size: .9rem;
    font-weight: 500;
    border-left: 4px solid;
}
.alert-danger  { background: var(--ff-rot-l); border-color: var(--ff-rot); color: #7B1818; }
.alert-success { background: var(--ff-gruen-l); border-color: var(--ff-gruen); color: var(--ff-gruen-d); }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .22rem .65rem;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge-success  { background: var(--ff-gruen-l); color: var(--ff-gruen-d); }
.badge-danger   { background: var(--ff-rot-l); color: #7B1818; }
.badge-kat      { color: #fff; }
.badge-getraenk            { background: var(--ff-blau); }
.badge-speise              { background: var(--ff-gruen-d); }
.badge-verbrauchsmaterial  { background: var(--ff-grau-d); }

/* ─── Setup / Login ─────────────────────────────────────── */
.setup-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--ff-blau) 0%, #1565C0 100%);
    padding: 1rem;
}
.setup-box {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    padding: 2.25rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0,0,0,.28);
}
.setup-header { text-align: center; margin-bottom: 1.75rem; }
.setup-header h1 { font-size: 1.9rem; color: var(--ff-blau); font-weight: 800; }
.setup-header p  { color: var(--ff-grau-d); margin-top: .35rem; font-size: .9rem; }

/* FestFlow Login Branding */
.ff-setup-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 1rem;
}
.ff-setup-logo-icon {
    width: 48px;
    height: 48px;
    background: var(--ff-blau);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
.ff-setup-logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ff-blau);
    letter-spacing: -.03em;
}
.ff-setup-logo-text span { color: var(--ff-gruen); }
.ff-setup-claim {
    font-size: .82rem;
    color: var(--ff-grau-d);
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ─── Standort-Grid ─────────────────────────────────────── */
.page-title { margin-bottom: 1.5rem; }
.page-title h2 { font-size: 1.4rem; color: var(--ff-blau); font-weight: 800; }
.page-title p  { color: var(--ff-grau-d); margin-top: .3rem; font-size: .88rem; }

.standort-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1rem;
}
.standort-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem 1rem;
    border-radius: var(--ff-radius-lg);
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s, box-shadow .2s;
    box-shadow: var(--ff-shadow);
}
.standort-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ff-shadow-lg);
}
.standort-bar      { background: linear-gradient(135deg, var(--ff-blau) 0%, #1565C0 100%); color: #fff; }
.standort-essen    { background: linear-gradient(135deg, var(--ff-gruen-d) 0%, var(--ff-gruen) 100%); color: #fff; }
.standort-eintritt { background: linear-gradient(135deg, #5B21B6, #7C3AED); color: #fff; }
.standort-icon { font-size: 2.6rem; margin-bottom: .55rem; }
.standort-name { font-size: 1rem; }
.standort-typ  { font-size: .78rem; opacity: .8; font-weight: 400; margin-top: .2rem; }

/* ─── Admin Section ─────────────────────────────────────── */
.admin-section {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ff-shadow);
    margin-bottom: 1.5rem;
}
.admin-section h2 {
    font-size: 1.05rem;
    color: var(--ff-blau);
    font-weight: 700;
    margin-bottom: 1rem;
}
.sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
}
.sec-header h2, .sec-header h3 {
    font-size: 1rem;
    color: var(--ff-blau);
    font-weight: 700;
}

/* ─── Tabs ───────────────────────────────────────────────── */
.tab-nav {
    display: flex;
    gap: .3rem;
    margin-bottom: 1.5rem;
    background: #fff;
    padding: .4rem;
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow);
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
    flex-shrink: 0;
    text-align: center;
    padding: .55rem .85rem;
    border-radius: 7px;
    border: none;
    background: transparent;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ff-text-l);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
    white-space: nowrap;
    font-family: inherit;
}
.tab-btn.active { background: var(--ff-blau); color: #fff; }
.tab-btn:hover:not(.active) { background: var(--ff-grau-l); color: var(--ff-blau); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* ─── Action Bar ─────────────────────────────────────────── */
.action-bar { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; align-items: center; }
.action-bar-bottom { text-align: center; margin-top: 1.5rem; }

/* ─── KPI Grid ───────────────────────────────────────────── */
.kpi-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.kpi-card {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    padding: 1.2rem 1.25rem;
    box-shadow: var(--ff-shadow);
    display: flex;
    flex-direction: column;
    gap: .3rem;
    border-top: 3px solid transparent;
    transition: box-shadow .2s, transform .2s;
}
.kpi-card:hover { box-shadow: var(--ff-shadow-lg); transform: translateY(-2px); }
.kpi-card.kpi-blau  { border-top-color: var(--ff-blau); }
.kpi-card.kpi-gruen { border-top-color: var(--ff-gruen); }
.kpi-card.kpi-orange{ border-top-color: var(--ff-orange); }
.kpi-card.kpi-rot   { border-top-color: var(--ff-rot); }
.kpi-label { font-size: .75rem; font-weight: 700; color: var(--ff-grau-d); text-transform: uppercase; letter-spacing: .05em; }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--ff-blau); line-height: 1.1; }
.kpi-sub   { font-size: .78rem; color: var(--ff-grau-d); }

/* ─── Kategorie-Gruppen ──────────────────────────────────── */
.kat-typ-header {
    padding: .6rem 1rem;
    border-radius: var(--ff-radius);
    margin: 1.2rem 0 .5rem;
    font-size: .95rem;
    color: #fff;
    font-weight: 700;
}
.kat-getraenk           { background: var(--ff-blau); }
.kat-speise             { background: var(--ff-gruen-d); }
.kat-verbrauchsmaterial { background: var(--ff-grau-d); }
.kat-sonstiges          { background: #7C3AED; }
.kat-gruppe { margin-bottom: 1rem; }
.kat-name {
    font-size: .78rem;
    font-weight: 700;
    color: var(--ff-grau-d);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: .3rem 0;
}

/* ─── Inventur Table ─────────────────────────────────────── */
.inv-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--ff-radius); }
.inv-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--ff-radius);
    box-shadow: var(--ff-shadow);
    font-size: .88rem;
    margin-bottom: .5rem;
}
.inv-table th {
    background: var(--ff-blau);
    color: #fff;
    padding: .55rem .75rem;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.inv-table td {
    padding: .48rem .75rem;
    border-bottom: 1px solid var(--ff-grau-l);
    vertical-align: middle;
}
.inv-table tr:last-child td { border-bottom: none; }
.inv-table tr:nth-child(even) td { background: rgba(245,247,250,.6); }
.inv-table tr:hover td { background: var(--ff-blau-l); }
.artikel-name { font-weight: 600; color: var(--ff-blau); }
.artikel-info { font-size: .75rem; color: var(--ff-grau-d); margin-top: .1rem; }
.inv-menge { width: 90px; text-align: center; font-size: 16px; }
.inv-notiz { width: 130px; font-size: .82rem; }

/* ─── Admin Table ────────────────────────────────────────── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--ff-radius);
    overflow: hidden;
    box-shadow: var(--ff-shadow);
    font-size: .88rem;
}
.admin-table th {
    background: var(--ff-blau);
    color: #fff;
    padding: .55rem .75rem;
    text-align: left;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
}
.admin-table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--ff-grau-l);
    vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:nth-child(even) td { background: rgba(245,247,250,.5); }
.admin-table tr:hover td { background: var(--ff-blau-l); transition: background .12s; }

/* ─── Qty Controls ───────────────────────────────────────── */
.qty-control { display: flex; align-items: center; gap: .3rem; }
.btn-qty {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 7px;
    background: var(--ff-grau-l);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    flex-shrink: 0;
    color: var(--ff-blau);
}
.btn-qty:hover { background: var(--ff-blau); color: #fff; }
.vk-menge { width: 70px; text-align: center; font-size: 16px; }

/* ─── Menu / Logistiker Home ─────────────────────────────── */
.menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.75rem 1rem;
    border-radius: var(--ff-radius-lg);
    text-decoration: none;
    color: #fff;
    min-height: 140px;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
    box-shadow: var(--ff-shadow);
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--ff-shadow-lg); }
.menu-card.primary { background: linear-gradient(135deg, var(--ff-blau) 0%, #1565C0 100%); }
.menu-card.green   { background: linear-gradient(135deg, var(--ff-gruen-d) 0%, var(--ff-gruen) 100%); }
.menu-card.purple  { background: linear-gradient(135deg, #5B21B6, #7C3AED); }
.mc-icon   { font-size: 2.8rem; margin-bottom: .55rem; }
.mc-title  { font-size: 1.35rem; font-weight: 800; margin-bottom: .3rem; }
.mc-desc   { font-size: .95rem; opacity: .85; text-align: center; }
.mc-status { font-size: .9rem; margin-top: .5rem; font-weight: 600; }
.badge-count {
    background: var(--ff-orange);
    color: #fff;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    font-size: 2rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: .75rem;
    vertical-align: middle;
    box-shadow: 0 0 0 6px rgba(232,160,32,.35);
}

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--ff-blau);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 25px;
    font-size: .9rem;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(0,0,0,.2);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
    z-index: 9999;
    white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-success { background: var(--ff-gruen); }
.toast-error   { background: var(--ff-rot); }
.toast-warn    { background: var(--ff-orange); }

/* ─── Loading ────────────────────────────────────────────── */
.loading { text-align: center; padding: 3rem; color: var(--ff-grau-d); font-size: 1rem; }

/* ─── Tab Description ────────────────────────────────────── */
.tab-description {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    background: var(--ff-blau-l);
    border-left: 4px solid var(--ff-blau);
    border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}
.tab-description strong { color: var(--ff-blau); }
.tab-description span   { color: var(--ff-text-l); }

.badge-lief {
    display: inline-block;
    background: var(--ff-orange);
    color: #fff;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 800;
    padding: .05rem .45rem;
    margin-left: .3rem;
    vertical-align: middle;
}
.muted-cell { color: var(--ff-grau-d); font-size: .85rem; }
.verkauft-cell { font-weight: 700; font-size: .95rem; color: var(--ff-gruen-d); }

/* ─── Kasse ──────────────────────────────────────────────── */
.kasse-form {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ff-shadow);
    margin-bottom: 1.5rem;
}
.kasse-form h3 { font-size: 1rem; color: var(--ff-blau); margin-bottom: 1rem; font-weight: 700; }
.kasse-uebersicht {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--ff-shadow);
}
.kasse-uebersicht h3 { font-size: 1rem; color: var(--ff-blau); font-weight: 700; }
.kasse-summe {
    font-size: 1rem;
    color: var(--ff-blau);
    margin-bottom: 1rem;
    padding: .7rem 1rem;
    background: var(--ff-orange-l);
    border-radius: var(--ff-radius);
    border-left: 4px solid var(--ff-orange);
}
.kasse-summe strong { font-size: 1.2rem; }
.kasse-maske {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    box-shadow: var(--ff-shadow);
    padding: 1.5rem;
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

/* ─── Kassenbuch Admin ───────────────────────────────────── */
.standort-tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.standort-tab-btn {
    padding: .45rem 1rem;
    border-radius: var(--ff-radius);
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ff-text-l);
    background: #fff;
    border: 1.5px solid var(--ff-grau-m);
    transition: all .15s;
}
.standort-tab-btn.active,
.standort-tab-btn:hover { background: var(--ff-blau); color: #fff; border-color: var(--ff-blau); }

.kasse-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.kasse-gesamt-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--ff-blau);
    color: #fff;
    border-radius: var(--ff-radius);
    padding: .9rem 1.2rem;
    margin-top: 1.2rem;
}
.kasse-gesamt-box strong { font-size: 1.5rem; }

.stueck-section-title {
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ff-grau-d);
    margin: 1rem 0 .4rem;
}
.stueck-grid { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .25rem; }
.stueck-zeile { display: grid; grid-template-columns: 70px 16px 70px 16px 90px; align-items: center; gap: .4rem; }
.stueck-label    { font-weight: 700; font-size: .9rem; color: var(--ff-blau); }
.stueck-x, .stueck-gleich { color: var(--ff-grau-m); font-weight: 700; text-align: center; }
.stueck-anzahl   { text-align: center; padding: .3rem .4rem; font-size: 16px; }
.stueck-ergebnis { font-weight: 700; color: var(--ff-gruen-d); font-size: .9rem; text-align: right; }

.entnahme-card { border: 1.5px solid var(--ff-grau-l); border-radius: var(--ff-radius); margin-bottom: .75rem; overflow: hidden; }
.entnahme-header { display: flex; justify-content: space-between; align-items: flex-start; padding: .7rem 1rem; background: var(--ff-grau-bg); gap: .5rem; }
.entnahme-meta { font-size: .8rem; color: var(--ff-grau-d); margin-left: .3rem; }
.stueck-detail-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.stueck-detail-table td { padding: .3rem .8rem; border-top: 1px solid var(--ff-grau-l); }
.pos-indent { color: var(--ff-text-l); }
.text-right { text-align: right; }
.stueck-summe-row td { background: var(--ff-blau-l); font-weight: 700; border-top: 2px solid var(--ff-grau-m); }
.pos-cell { font-size: .78rem; }
.pos-pill { display: inline-block; background: var(--ff-grau-l); border-radius: 20px; padding: .1rem .5rem; margin: .1rem; white-space: nowrap; }
.kpi-row { display: flex; justify-content: space-between; align-items: center; padding: .3rem .4rem; font-size: .85rem; background: var(--ff-grau-bg); border-radius: 5px; margin-bottom: .25rem; }
.kpi-total { display: flex; justify-content: space-between; align-items: center; padding: .55rem .75rem; font-size: 1rem; font-weight: 700; background: var(--ff-blau); color: #fff; border-radius: var(--ff-radius); margin-top: .4rem; }
.kassen-liste .kassen-item { display: flex; justify-content: space-between; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--ff-grau-l); font-size: .88rem; }

/* ─── Tagesverwaltung ────────────────────────────────────── */
.tage-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; }
.tag-card {
    background: #fff;
    border-radius: var(--ff-radius-lg);
    box-shadow: var(--ff-shadow);
    border: 2px solid transparent;
    overflow: hidden;
    transition: box-shadow .2s;
}
.tag-card:hover { box-shadow: var(--ff-shadow-lg); }
.tag-card.tag-aktiv { border-color: var(--ff-gruen); box-shadow: 0 4px 20px rgba(103,181,63,.2); }
.tag-card.tag-abgeschlossen { opacity: .8; }
.tag-card-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 1rem; border-bottom: 1.5px solid var(--ff-grau-l); }
.tag-nr { font-size: 1.1rem; font-weight: 800; color: var(--ff-blau); }
.tag-datum { font-size: .82rem; color: var(--ff-grau-d); margin-top: .15rem; }
.tag-info { padding: .6rem 1rem; display: flex; flex-direction: column; gap: .25rem; }
.tag-info-label { font-size: .72rem; color: var(--ff-grau-d); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tag-info-val { font-size: .88rem; font-weight: 700; color: var(--ff-blau); margin-left: .5rem; }
.tag-kpis { padding: .5rem 1rem; background: var(--ff-grau-bg); border-top: 1px solid var(--ff-grau-l); }
.tag-kpi-row { display: flex; justify-content: space-between; align-items: center; padding: .22rem 0; font-size: .82rem; color: var(--ff-text-l); }
.tag-actions { display: flex; gap: .5rem; padding: .75rem 1rem; border-top: 1.5px solid var(--ff-grau-l); flex-wrap: wrap; }

/* ─── Role Hint ──────────────────────────────────────────── */
.role-hint {
    background: var(--ff-blau-l);
    border-left: 4px solid var(--ff-blau);
    border-radius: 0 var(--ff-radius) var(--ff-radius) 0;
    padding: .75rem 1rem;
    margin-bottom: 1.5rem;
    font-size: .88rem;
    color: var(--ff-text-l);
}
.role-hint a { color: var(--ff-blau); font-weight: 700; }

/* ─── Portionen / Lager ──────────────────────────────────── */
.portionen-cell { font-weight: 700; font-size: .9rem; color: var(--ff-grau-d); }
.portionen-cell.text-success { color: var(--ff-gruen); }
.gebinde-info strong { color: var(--ff-blau); }

/* ─── Reset Grid ─────────────────────────────────────────── */
.reset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.reset-card {
    background: var(--ff-grau-bg);
    border: 1.5px solid var(--ff-grau-m);
    border-radius: var(--ff-radius);
    padding: 1.1rem;
}
.reset-card h3 { font-size: .95rem; color: var(--ff-blau); margin-bottom: .4rem; font-weight: 700; }
.reset-card p { font-size: .85rem; color: var(--ff-grau-d); margin-bottom: .75rem; }

/* ─── Text Utilities ─────────────────────────────────────── */
.text-right   { text-align: right; }
.text-success { color: var(--ff-gruen) !important; }
.text-danger  { color: var(--ff-rot) !important; }
.text-muted   { color: var(--ff-grau-d); }
.row-inactive { opacity: .55; }

/* ─── iOS Zoom Fix ───────────────────────────────────────── */
input[type='text'],
input[type='number'],
input[type='email'],
input[type='password'],
select, textarea,
.form-control,
.inv-menge,
.inv-gebinde,
.inv-anbruch,
.inv-notiz,
.stueck-inp { font-size: 16px !important; }

/* ─── Mobile Responsive ──────────────────────────────────── */
@media (max-width: 640px) {
    .kpi-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .form-row { flex-direction: column; }
    .inv-notiz { width: 90px; }
    .admin-table { font-size: .78rem; }
    .admin-table td, .admin-table th { padding: .4rem .5rem; }
    .menu-grid { grid-template-columns: 1fr !important; }
    .menu-card { min-height: 120px !important; }
    .kasse-layout { grid-template-columns: 1fr; }
    .tage-grid { grid-template-columns: 1fr; }
    .container { padding: 1rem .5rem 4rem; }
    .stueck-zeile { grid-template-columns: 60px 14px 60px 14px 1fr; gap: .25rem; }
}

@media (max-width: 480px) {
    .kpi-grid-4 { grid-template-columns: 1fr 1fr; }
    .kasse-gesamt-box strong { font-size: 1.2rem; }
}

/* ── Standort Mobile ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Tab-Nav: untereinander */
  #standort-tabs {
    flex-direction: column !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
  }
  #standort-tabs .tab-btn {
    width: 100% !important;
    text-align: left !important;
    flex-shrink: 0 !important;
  }

  /* KPI-Grid: 2x2 */
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Auswertung Tabellen: horizontales Scrollen */
  .inv-table-wrap {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

/* ─── Mobile Barchef Karten ──────────────────────────────── */
@media (max-width: 640px) {
    .inv-table-wrap { overflow-x: visible !important; }
    .inv-table thead { display: none; }
    .inv-table tbody tr {
        display: block;
        background: #fff;
        border: 1.5px solid var(--ff-grau-l);
        border-radius: var(--ff-radius);
        margin-bottom: .65rem;
        padding: .65rem .75rem;
        box-shadow: var(--ff-shadow);
    }
    .inv-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: .3rem 0;
        border: none;
        font-size: .9rem;
        border-bottom: 1px solid var(--ff-grau-l);
        min-height: 2.4rem;
    }
    .inv-table tbody td:last-child { border-bottom: none; }
    .inv-table tbody td:first-child {
        display: block;
        border-bottom: 1px solid var(--ff-grau-m);
        padding-bottom: .4rem;
        margin-bottom: .2rem;
        font-size: 1.1rem;
    }
}

/* ─── Mobile Schriftgrößen ───────────────────────────────── */
@media (max-width: 640px) {
    .mc-icon  { font-size: 3rem; }
    .mc-title { font-size: 1.5rem; }
    .mc-desc  { font-size: 1.05rem; }
    .mc-status{ font-size: 1rem; }
    .tab-btn  { font-size: .92rem; padding: .6rem .9rem; }
}

/* ── Nachbestellen Akkordeon (nlf) ─────────────────────────────────────── */
.nlf-akkordeon { display: flex; flex-direction: column; gap: .5rem; }

.nlf-kat {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 5px rgba(10,46,98,.07);
}
.nlf-kat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background .12s;
}
.nlf-kat-head:active { background: #F8FAFC; }
.nlf-kat-name { font-size: .88rem; font-weight: 700; color: #0A2E62; }
.nlf-kat-count { font-size: .7rem; color: #94A3B8; margin-left: .25rem; }
.nlf-kat-arrow {
  font-size: .9rem; color: #94A3B8;
  transition: transform .2s;
  font-weight: 300;
}
.nlf-kat.nlf-open .nlf-kat-arrow { transform: rotate(90deg); }
.nlf-kat-body {
  display: none;
  border-top: 1px solid #F1F5F9;
}
.nlf-kat.nlf-open .nlf-kat-body { display: block; }

.nlf-artikel-row {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .85rem;
  border-bottom: 1px solid #F8FAFC;
}
.nlf-artikel-row:last-child { border: none; }

.nlf-artikel-info { flex: 1; min-width: 0; }
.nlf-artikel-name {
  font-size: .82rem; font-weight: 600; color: #0A2E62;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nlf-artikel-sub { font-size: .65rem; color: #64748B; margin-top: .05rem; }

.nlf-lager-chip {
  font-size: .65rem; font-weight: 700;
  padding: .2rem .5rem; border-radius: 10px;
  white-space: nowrap; flex-shrink: 0;
}
.nlf-lager-ok   { background: #F0FDF4; color: #15803D; }
.nlf-lager-warn { background: #FFF3DC; color: #92400E; }
.nlf-lager-leer { background: #FEE2E2; color: #991B1B; }

.nlf-qty {
  display: flex; align-items: center; gap: .3rem; flex-shrink: 0;
}
.nlf-qty-btn {
  width: 28px; height: 28px;
  background: #EFF6FF; border: none; border-radius: 7px;
  font-size: 1rem; font-weight: 700; color: #0A2E62;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .1s;
}
.nlf-qty-btn:active { background: #0A2E62; color: #fff; }
.nlf-qty-inp {
  width: 38px; text-align: center;
  font-size: .9rem; font-weight: 700; color: #0A2E62;
  border: 1.5px solid #E2E8F0; border-radius: 6px;
  padding: .25rem 0; background: #fff;
  -moz-appearance: textfield;
}
.nlf-qty-inp::-webkit-outer-spin-button,
.nlf-qty-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
.nlf-qty-inp:focus { outline: none; border-color: #0A2E62; }

/* Sticky Bar */
.nlf-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1.5px solid #E2E8F0;
  padding: .7rem 1rem;
  display: none;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 -4px 16px rgba(10,46,98,.1);
  z-index: 100;
}
#tab-nachlieferung.active .nlf-sticky-bar {
  display: flex;
}
.nlf-sticky-info { flex: 1; }
.nlf-sticky-info strong {
  display: block; font-size: .85rem;
  color: #0A2E62; font-weight: 700;
}
.nlf-sticky-info span { font-size: .75rem; color: #64748B; }
.nlf-bestellen-btn {
  background: #94A3B8;
  color: #fff; border: none; border-radius: 10px;
  padding: .65rem 1.1rem;
  font-size: .85rem; font-weight: 800;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.nlf-bestellen-btn.nlf-btn-aktiv {
  background: linear-gradient(160deg, #0A2E62, #0B2D5C);
  box-shadow: 0 4px 14px rgba(10,46,98,.3);
}
.nlf-bestellen-btn:active { transform: scale(.97); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  padding: 1rem;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1.5px solid #E2E8F0;
}
.modal-header h3 { font-size: 1rem; font-weight: 700; color: #0A2E62; }
.modal-close {
  background: none; border: none; font-size: 1.2rem;
  color: #94A3B8; cursor: pointer; padding: .2rem .4rem;
  border-radius: 6px; line-height: 1;
}
.modal-close:hover { background: #F1F5F9; color: #0A2E62; }
.modal-box form { padding: 1.25rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1.5px solid #E2E8F0;
  margin-top: 1rem;
}
.form-section-title {
  font-size: .78rem;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 1rem 0 .5rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid #E2E8F0;
}
.form-hint {
  font-size: .8rem;
  color: #2A7D4F;
  background: #F0FDF4;
  border-radius: 6px;
  padding: .4rem .7rem;
  margin: .4rem 0;
}
.we-preview {
  font-size: .8rem;
  color: #0A2E62;
  background: #EFF6FF;
  border-radius: 6px;
  padding: .4rem .7rem;
  margin: .4rem 0;
}

/* ── Admin Navigation ───────────────────────────────────────────────────── */
.admin-nav { margin-bottom: 1rem; }

/* Desktop: beide Zeilen sichtbar */
.admin-nav-row {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .3rem;
}
.admin-nav-mobile { display: none; }
.hamburger-menu   { display: none; }

/* ── Mobile Navigation ≤768px ───────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Desktop-Zeilen verstecken */
  .admin-nav-stammdaten,
  .admin-nav-betrieb { display: none; }

  /* Mobile-Leiste: Betrieb-Tabs + Hamburger */
  .admin-nav-mobile {
    display: flex;
    align-items: center;
    gap: .3rem;
    margin-bottom: .4rem;
  }
  .admin-nav-mobile-betrieb {
    display: flex;
    flex: 1;
    gap: .25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .admin-nav-mobile-betrieb::-webkit-scrollbar { display: none; }
  .admin-nav-mobile-betrieb .tab-btn {
    flex-shrink: 0;
    padding: .45rem .6rem;
    font-size: .75rem;
  }

  /* Hamburger-Button */
  .hamburger-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--ff-blau);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
  }

  /* Aufklapp-Menü */
  .hamburger-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(10,46,98,.18);
    padding: .75rem;
    position: absolute;
    top: auto;
    right: 1rem;
    left: 1rem;
    z-index: 500;
    margin-top: .25rem;
  }
  .hamburger-menu.open { display: flex; }

  .hamburger-section-title {
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94A3B8;
    padding: .3rem .5rem;
    margin-top: .25rem;
  }
  .hamburger-link {
    display: block;
    padding: .6rem .75rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    color: #0A2E62;
    transition: background .12s;
  }
  .hamburger-link:hover,
  .hamburger-link.active {
    background: #EFF6FF;
    color: var(--ff-blau);
  }

  /* Container braucht position:relative für das Dropdown */
  main.container { position: relative; }
}

/* ── Mobile Karten ──────────────────────────────────────────────────────── */

/* Tabellen auf Mobile verstecken */
@media (max-width: 768px) {
  .admin-table { display: none; }
  .mobile-cards { display: flex; flex-direction: column; gap: .6rem; }
}

/* Karten auf Desktop verstecken */
@media (min-width: 769px) {
  .mobile-cards { display: none; }
}

.mobile-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(10,46,98,.08);
  overflow: hidden;
}
.mobile-card-inactive { opacity: .6; }

.mobile-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: .75rem .85rem .5rem;
  gap: .5rem;
}
.mobile-card-title {
  font-size: .92rem;
  font-weight: 700;
  color: #0A2E62;
  line-height: 1.35;
}
.mobile-card-actions {
  display: flex;
  gap: .35rem;
  flex-shrink: 0;
}

.mobile-card-rows {
  border-top: 1px solid #F1F5F9;
  padding: .4rem .85rem .65rem;
}
.mobile-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .28rem 0;
  font-size: .8rem;
  border-bottom: 1px solid #F8FAFC;
}
.mobile-card-row:last-child { border: none; }
.mobile-card-row span:first-child { color: #64748B; }
.mobile-card-row span:last-child,
.mobile-card-row strong { color: #0A2E62; font-weight: 600; }

/* ── Lager Mobile ───────────────────────────────────────────────────────── */
.lager-header-actions {
  display: flex;
  gap: .3rem;
  flex-shrink: 0;
}
.lager-header-actions .btn {
  white-space: nowrap;
  flex-shrink: 0;
  width: auto !important;
}

.lager-quick-btns {
  display: flex;
  gap: .5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  /* KPI-Grid: 2x2 auf Mobile */
  .kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Lager-Tabellen ausblenden */
  #lager-uebersicht .admin-table,
  #anfang-tables .admin-table,
  #ausgabe-tables .admin-table { display: none; }

  /* Lager Mobile Cards sichtbar */
  #lager-uebersicht .mobile-cards,
  .lager-hist-card { display: block; }

  /* Historie: Tabelle verstecken */
  #historie-content table { display: none; }
  .lager-hist-card { margin-bottom: .5rem; }
}

@media (min-width: 769px) {
  #lager-uebersicht .mobile-cards { display: none; }
  .lager-hist-card { display: none; }
}

/* ── Lager Tab-Nav Mobile ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  #lager-tabs {
    display: flex;
    flex-direction: column;
    gap: .3rem;
  }
  #lager-tabs .tab-btn {
    text-align: left;
    font-size: .88rem;
    padding: .6rem .9rem;
    border-radius: 10px;
    white-space: nowrap;
  }
}

/* ── Admin Dashboard ─────────────────────────────────────────────────────── */
#admin-dashboard {
  background: #F4F7FB;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Dashboard Header – Login Style */
.dash-login-header {
  background: #0A2E62;
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  color: #fff;
}

/* Dashboard Body */
.dash-body { padding: 16px; }

/* Section Label */
.dash-section-label {
  font-size: .7rem; font-weight: 700; color: #64748B;
  text-transform: uppercase; letter-spacing: .07em;
  margin: 0 0 8px;
}

/* Status Grid */
.dash-status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
@media (min-width: 600px) {
  .dash-status-grid { grid-template-columns: repeat(4, 1fr); }
}

.dash-stat-card {
  background: #fff;
  border: 0.5px solid #E2E8F0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 2px;
  cursor: default;
  transition: border-color .15s;
}
.dash-stat-card[onclick] { cursor: pointer; }
.dash-stat-card[onclick]:hover { border-color: #0A2E62; }
.dash-stat-card.ds-warn { border-color: #EF9F27; background: #FAEEDA; }
.dash-stat-card.ds-ok   { border-color: #97C459; background: #EAF3DE; }
.dash-stat-card.ds-neu  { border-color: #AFA9EC; background: #EEEDFE; }
.dash-stat-card.ds-info { border-color: #85B7EB; background: #E6F1FB; }

.dash-stat-label {
  font-size: .7rem; font-weight: 600;
  color: #64748B;
}
.ds-warn .dash-stat-label { color: #633806; }
.ds-ok   .dash-stat-label { color: #27500A; }
.ds-neu  .dash-stat-label { color: #3C3489; }
.ds-info .dash-stat-label { color: #0C447C; }

.dash-stat-value {
  font-size: 1.4rem; font-weight: 700; color: #0A2E62;
  line-height: 1.2;
}
.ds-warn .dash-stat-value { color: #854F0B; }
.ds-ok   .dash-stat-value { color: #3B6D11; }
.ds-neu  .dash-stat-value { color: #534AB7; }
.ds-info .dash-stat-value { color: #185FA5; }

.dash-stat-sub { font-size: .7rem; color: #94A3B8; }
.ds-warn .dash-stat-sub { color: #854F0B; }
.ds-ok   .dash-stat-sub { color: #3B6D11; }
.ds-neu  .dash-stat-sub { color: #534AB7; }

/* Accordion */
.dash-accordion {
  background: #fff;
  border: 0.5px solid #E2E8F0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}
.dash-acc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; cursor: pointer;
}
.dash-acc-head:hover { background: #F8FAFC; }
.dash-acc-title {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 700; color: #0A2E62;
}
.dash-acc-arrow {
  font-size: 1rem; color: #94A3B8;
  transition: transform .2s; display: inline-block;
}
.dash-acc-arrow.open { transform: rotate(90deg); }
.dash-acc-body {
  display: none;
  border-top: 1px solid #F1F5F9;
  padding: 10px 14px;
}
.dash-acc-body.open { display: block; }

/* Lager Liste */
.dash-lager-legend {
  display: flex; gap: 1rem; font-size: .7rem;
  color: #64748B; margin-bottom: 8px;
  flex-wrap: wrap;
}
.dash-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 2px; margin-right: 3px; vertical-align: middle;
}
.dash-lager-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  border-bottom: 0.5px solid #F1F5F9;
}
.dash-lager-item:last-child { border: none; }
.dash-lager-name {
  font-size: .78rem; color: #0A2E62;
  min-width: 130px; max-width: 130px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dash-bar-wrap { flex: 1; height: 6px; background: #F1F5F9; border-radius: 3px; overflow: hidden; }
.dash-bar { height: 100%; border-radius: 3px; }
.dash-lager-pct { font-size: .72rem; font-weight: 700; min-width: 30px; text-align: right; }
.dash-badge-rot  { background: #FEE2E2; color: #991B1B; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }
.dash-badge-gelb { background: #FFF3DC; color: #92400E; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 8px; white-space: nowrap; }

/* Betrieb Grid */
.dash-betrieb-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 8px; margin-bottom: 8px;
}
.dash-betrieb-card {
  background: #fff; border: 0.5px solid #E2E8F0;
  border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; gap: 5px;
  text-decoration: none;
  transition: border-color .15s;
}
.dash-betrieb-card:hover { border-color: #0A2E62; }
.dash-betrieb-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.dash-betrieb-title { font-size: .88rem; font-weight: 700; color: #0A2E62; }
.dash-betrieb-sub   { font-size: .72rem; color: #64748B; }

/* Stammdaten Grid */
.dash-stamm-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
}
@media (max-width: 400px) {
  .dash-stamm-grid { grid-template-columns: repeat(3, 1fr); }
}
.dash-stamm-link {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px;
  border: 0.5px solid #E2E8F0; border-radius: 8px;
  text-decoration: none; text-align: center;
  transition: background .12s;
}
.dash-stamm-link:hover { background: #F1F5F9; }
.dash-stamm-link svg  { flex-shrink: 0; }
.dash-stamm-link span { font-size: .65rem; color: #64748B; }
