:root {
    --bg: #050507;
    --panel: #11111a;
    --panel2: #181824;
    --primary: #8a2cff;
    --accent: #00f5ff;
    --text: #f5f7ff;
    --muted: #b6b7c8;
    --danger: #ff4f7b;
    --success: #35ffad;
    --warning: #ffd700;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(138,44,255,.25), transparent 35%),
        radial-gradient(circle at bottom right, rgba(0,245,255,.16), transparent 30%),
        var(--bg);
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: white; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(5,5,7,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,245,255,.25);
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand {
    font-weight: 900;
    font-size: 1.45rem;
    color: white;
    letter-spacing: .04em;
    text-shadow: 0 0 16px var(--primary);
}

/* ---------- Adaptive Navigation (Priority Plus, siehe assets/js/nav.js) ---------- */
.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 10px;              /* muss zu GAP in nav.js passen */
    flex: 1 1 auto;
    min-width: 0;
    /* Notfall-Verhalten, solange nav.js nicht geladen ist: umbrechen statt abschneiden */
    flex-wrap: wrap;
    overflow: visible;
}

/* Erst wenn nav.js läuft, wird einzeilig umgeschaltet */
.nav.nav-js .nav-items {
    flex-wrap: nowrap;
    overflow: hidden;
}

.nav a {
    padding: .45rem .75rem;
    border: 1px solid rgba(138,44,255,.45);
    border-radius: 999px;
    background: rgba(17,17,26,.75);
    flex: 0 0 auto;
}

.nav-more-btn,
.nav-burger {
    flex: 0 0 auto;
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .8rem;
    font: inherit;
    font-size: .95rem;
    line-height: 1.2;
    color: var(--accent);
    background: rgba(17,17,26,.75);
    border: 1px solid rgba(138,44,255,.45);
    border-radius: 999px;
    cursor: pointer;
}

.nav-more-btn:hover,
.nav-burger:hover { color: #fff; border-color: var(--accent); }

.nav-more { position: relative; flex: 0 0 auto; }
.nav-more[hidden] { display: none; }
.nav-more .chev { transition: transform .15s; font-size: .8em; }
.nav-more.open .chev { transform: rotate(180deg); }

.nav-drop,
.nav.is-mobile.open .nav-items {
    position: absolute;
    right: 0;
    top: calc(100% + .6rem);
    z-index: 60;
    min-width: 200px;
    max-height: 70vh;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: .3rem;
    padding: .5rem;
    background: var(--panel, #11111a);
    background-image: linear-gradient(180deg, rgba(138,44,255,.10), rgba(0,0,0,0));
    border: 1px solid rgba(138,44,255,.55);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,.75), 0 0 26px rgba(138,44,255,.2);
}

.nav-drop { display: none; }
.nav-more.open .nav-drop { display: flex; }

.nav-drop a {
    border-color: transparent;
    background: transparent;
    border-radius: 10px;
    padding: .5rem .7rem;
}
.nav-drop a:hover { background: rgba(138,44,255,.2); color: #fff; }

/* Burger nur auf schmalen Screens */
.nav-burger { display: none; font-size: 1.15rem; }
.nav.is-mobile .nav-burger { display: inline-flex; margin-left: auto; }
.nav.is-mobile .nav-items { display: none; }
.nav.is-mobile.open .nav-items { display: flex; overflow-y: auto; }
.nav.is-mobile.open .nav-items a { border-color: transparent; background: transparent; border-radius: 10px; }
.nav.is-mobile.open .nav-items a:hover { background: rgba(138,44,255,.2); color: #fff; }

.page {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 1rem;
}

.container,
.panel {
    background: rgba(17,17,26,.88);
    border: 1px solid rgba(138,44,255,.5);
    box-shadow: 0 0 30px rgba(138,44,255,.18);
    border-radius: 22px;
    padding: 1rem;
}

.title {
    color: white;
    text-align: center;
    margin: .5rem 0 1rem;
    text-shadow: 0 0 18px var(--accent);
}

.grid,
.bars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: .75rem;
}

input,
select,
textarea,
button {
    width: 100%;
    padding: .85rem;
    border-radius: 14px;
    border: 1px solid rgba(0,245,255,.25);
    background: #0d0d14;
    color: var(--text);
    font: inherit;
}

textarea { min-height: 110px; resize: vertical; }

button,
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #050507;
    font-weight: 800;
    cursor: pointer;
    border-radius: 14px;
    padding: .85rem 1rem;
}

.btn.secondary {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.bar-card,
.card {
    background: linear-gradient(180deg, rgba(24,24,36,.95), rgba(10,10,16,.95));
    border: 1px solid rgba(138,44,255,.45);
    border-radius: 20px;
    padding: 1rem;
    overflow: hidden;
}

.bar-card.premium {
    border-color: var(--accent);
    box-shadow: 0 0 22px rgba(0,245,255,.35);
}

.bar-card img,
.hero-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: .7rem;
    background: #07070a;
}

.badge {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: rgba(0,245,255,.12);
    border: 1px solid rgba(0,245,255,.35);
    color: var(--accent);
    font-size: .82rem;
}

.premium-badge {
    background: rgba(138,44,255,.18);
    border-color: var(--primary);
    color: white;
}

.review {
    border-left: 3px solid var(--primary);
    background: rgba(255,255,255,.03);
    padding: .75rem;
    border-radius: 12px;
    margin: .75rem 0;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th, td {
    padding: .75rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
    text-align: left;
}

th { color: var(--accent); }

.alert {
    border: 1px solid rgba(0,245,255,.35);
    padding: .8rem;
    border-radius: 14px;
    background: rgba(0,245,255,.08);
    margin: .75rem 0;
}

.danger { color: var(--danger); }
.success { color: var(--success); }

.footer {
    text-align: center;
    color: var(--muted);
    padding: 2rem 1rem;
}

@media (min-width: 720px) {
    .site-header {
        grid-template-columns: auto 1fr;
        align-items: center;
    }
    .nav { justify-content: flex-end; }
    .nav-items { justify-content: flex-end; }
    .nav.nav-pos-center .nav-items    { justify-content: center; }
    .nav.nav-pos-left .nav-items      { justify-content: flex-start; }
    .nav.nav-pos-logo-left .nav-items { justify-content: flex-start; }
    .form-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: end;
    }
}

/* ===================== ADMIN BACKEND (Kachel-Design) ===================== */

.admin-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: min(1400px, 100%);
    margin: 0 auto;
}

.admin-sidebar {
    background: rgba(17,17,26,.9);
    border: 1px solid rgba(138,44,255,.45);
    border-radius: 20px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    height: fit-content;
}

.admin-sidebar .admin-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    text-shadow: 0 0 14px var(--primary);
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem .8rem;
    border-radius: 14px;
    color: var(--text);
    border: 1px solid transparent;
}

.admin-sidebar a:hover {
    background: rgba(0,245,255,.08);
    border-color: rgba(0,245,255,.3);
}

.admin-sidebar a.active {
    background: linear-gradient(135deg, rgba(138,44,255,.35), rgba(0,245,255,.2));
    border-color: var(--accent);
    color: white;
    font-weight: 700;
}

.admin-sidebar .icon {
    font-size: 1.1rem;
    width: 1.4rem;
    text-align: center;
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}

.admin-topbar h1 {
    margin: 0;
    color: white;
    text-shadow: 0 0 16px var(--accent);
    font-size: 1.5rem;
}

.admin-topbar .admin-sub {
    color: var(--muted);
    font-size: .9rem;
    margin-top: .2rem;
}

/* Kachel-Grid für Statistik-Kacheln */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tile {
    position: relative;
    background: linear-gradient(160deg, rgba(24,24,36,.95), rgba(10,10,16,.97));
    border: 1px solid rgba(138,44,255,.4);
    border-radius: 20px;
    padding: 1.1rem 1.2rem;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,245,255,.18);
    border-color: var(--accent);
}

.tile .tile-icon {
    font-size: 1.5rem;
    opacity: .9;
}

.tile .tile-value {
    font-size: 1.9rem;
    font-weight: 900;
    color: white;
    line-height: 1.1;
}

.tile .tile-label {
    color: var(--muted);
    font-size: .85rem;
}

.tile .tile-delta {
    font-size: .78rem;
    font-weight: 700;
    margin-top: .15rem;
}

.tile .tile-delta.up { color: var(--success); }
.tile .tile-delta.down { color: var(--danger); }

.tile.accent-purple { border-color: rgba(138,44,255,.7); }
.tile.accent-cyan { border-color: rgba(0,245,255,.6); }
.tile.accent-pink { border-color: rgba(255,79,123,.55); }
.tile.accent-green { border-color: rgba(53,255,173,.5); }

.section-heading {
    color: white;
    font-size: 1.05rem;
    margin: 1.6rem 0 .8rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.settings-group {
    border: 1px solid rgba(138,44,255,.35);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(17,17,26,.7);
    margin-bottom: 1rem;
}

.settings-group h3 {
    margin: 0 0 .8rem;
    color: var(--accent);
    font-size: 1rem;
}

.settings-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .4rem;
    margin-bottom: .8rem;
}

.settings-row label {
    font-size: .82rem;
    color: var(--muted);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: .4rem;
    height: 160px;
    padding: .5rem;
}

.chart-bars .bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: .3rem;
    height: 100%;
}

.chart-bars .bar-fill {
    width: 100%;
    max-width: 28px;
    border-radius: 6px 6px 0 0;
    background: linear-gradient(180deg, var(--accent), var(--primary));
    min-height: 2px;
}

.chart-bars .bar-col small {
    color: var(--muted);
    font-size: .68rem;
    writing-mode: horizontal-tb;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}

.progress-bar > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.toggle-switch {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

@media (min-width: 960px) {
    .admin-shell {
        grid-template-columns: 250px 1fr;
        align-items: start;
    }
    .settings-row {
        grid-template-columns: 220px 1fr;
        align-items: center;
    }
    .panel-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== SETTINGS TABS ===== */
.settings-tabs {
    display: flex;
    gap: .5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--muted);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.settings-tabs .tab {
    padding: .8rem 1.2rem;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-weight: 500;
}

.settings-tabs .tab:hover {
    color: var(--text);
}

.settings-tabs .tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* ===== THEME CUSTOMIZATION ===== */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.theme-card {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1rem;
    border: 2px solid var(--muted);
    border-radius: 12px;
    background: var(--panel);
    cursor: pointer;
    transition: all 0.3s;
}

.theme-card:hover {
    border-color: var(--accent);
    background: rgba(0,245,255,.05);
    transform: translateY(-2px);
}

.theme-card input[type="radio"] {
    cursor: pointer;
    accent-color: var(--accent);
}

.theme-card strong {
    color: var(--text);
}

.theme-card div:has(> div[style*="border-radius"]) {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Color preview squares in theme cards */
.theme-card div > div[style*="width: 20px"] {
    flex: 0 0 20px;
    width: 20px !important;
    height: 20px !important;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 0 8px rgba(0,0,0,.3);
    transition: transform 0.3s;
}

.theme-card:hover div > div[style*="width: 20px"] {
    transform: scale(1.1);
}

/* ===== PAGINATION ===== */
.pagination {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--muted);
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.page-num,
.page-dots {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.page-num {
    border: 1px solid var(--muted);
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

.page-num:hover {
    background: var(--panel);
    border-color: var(--accent);
    color: var(--accent);
}

.page-num.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg);
    font-weight: bold;
}

.page-dots {
    cursor: default;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-small.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.color-grid > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.color-grid label {
    font-weight: 600;
    color: var(--text);
}

.color-grid input[type="color"],
.color-grid input[type="text"] {
    border: 2px solid var(--muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.color-grid input[type="color"]:hover {
    border-color: var(--accent);
}

.color-grid input[type="text"]:focus {
    border-color: var(--accent);
    outline: none;
}

.color-grid input[type="text"]::placeholder {
    color: var(--muted);
}

.color-grid code {
    background: var(--panel);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* Quick Color Presets */
form[style*="display: contents"] button {
    transition: all 0.3s ease;
}

form[style*="display: contents"] button:hover {
    border-color: var(--accent) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

form[style*="display: contents"] button:active {
    transform: translateY(-2px);
}

/* Ad Placements */
.ad-placement {
    margin: 1rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ad-placement-top {
    margin-bottom: 1.5rem;
}

.ad-placement-bottom {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.ad-item {
    background: var(--panel);
    border: 1px solid var(--muted);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.ad-item:hover {
    border-color: var(--accent);
    box-shadow: 0 5px 15px rgba(0, 245, 255, 0.1);
}

.ad-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Responsive Ad Sizes */
@media (max-width: 768px) {
    .ad-placement {
        margin: 0.75rem auto;
    }
    
    .ad-item {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        min-height: 250px;
    }
}

/* ===== DASHBOARD v2 ===== */
.dash-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 960px) {
    .dash-layout {
        grid-template-columns: 1fr 320px;
    }
}
.dash-main { min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: 1rem; }

.dash-chart-panel {
    background: rgba(17,17,26,.9);
    border: 1px solid rgba(138,44,255,.4);
    border-radius: 18px;
    padding: 1.25rem;
}
.dash-chart-panel h3 {
    margin: 0 0 1rem;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Inline SVG Chart */
.dash-svg-chart { width: 100%; overflow: visible; }

/* KPI Tiles kompakter */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .6rem;
    margin-bottom: .75rem;
}
.kpi-tile {
    background: rgba(17,17,26,.88);
    border: 1px solid rgba(138,44,255,.35);
    border-radius: 14px;
    padding: .85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    text-decoration: none;
    color: var(--text);
    transition: transform .12s, border-color .12s;
}
.kpi-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.kpi-tile .kv { font-size: 1.6rem; font-weight: 900; color: #fff; line-height: 1; }
.kpi-tile .kl { font-size: .72rem; color: var(--muted); }
.kpi-tile .kd { font-size: .68rem; font-weight: 700; margin-top: .1rem; }
.kpi-tile.kp { border-color: rgba(138,44,255,.6); }
.kpi-tile.kc { border-color: rgba(0,245,255,.5); }
.kpi-tile.kg { border-color: rgba(53,255,173,.45); }
.kpi-tile.kr { border-color: rgba(255,79,123,.5); }

/* Activity Feed */
.activity-feed {
    background: rgba(17,17,26,.9);
    border: 1px solid rgba(138,44,255,.35);
    border-radius: 18px;
    padding: 1.25rem;
}
.activity-feed h3 {
    margin: 0 0 .75rem;
    font-size: .85rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.activity-feed h3 a { font-size: .72rem; color: var(--primary); text-transform: none; letter-spacing: 0; font-weight: 400; }
.af-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.af-item:last-child { border-bottom: none; }
.af-dot {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.af-text { flex: 1; min-width: 0; }
.af-title { font-size: .8rem; font-weight: 500; line-height: 1.3; }
.af-time { font-size: .68rem; color: var(--muted); margin-top: 2px; }

/* Quick-Action Buttons */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.qa-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .85rem;
    background: rgba(17,17,26,.88);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    color: var(--muted);
    font-size: .78rem;
    text-decoration: none;
    transition: all .15s;
}
.qa-btn:hover { border-color: var(--primary); color: var(--text); background: rgba(138,44,255,.08); }
.qa-btn span { font-size: 1rem; }

/* Pending Reviews Badge */
.pending-badge {
    background: var(--danger);
    color: #fff;
    border-radius: 99px;
    font-size: .65rem;
    padding: 1px 6px;
    font-weight: 700;
    margin-left: auto;
}

/* ===== BAR CARD minimal (Startseite) ===== */
.bar-card-mini {
    background: rgba(17,17,26,.9);
    border: 1px solid rgba(138,44,255,.4);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .12s, border-color .12s, box-shadow .12s;
    text-decoration: none;
    color: var(--text);
}
.bar-card-mini:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(0,245,255,.12);
}
.bar-card-mini.premium { border-color: var(--accent); box-shadow: 0 0 18px rgba(0,245,255,.2); }
.bar-card-mini .bcm-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: #0a0a14;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,.2);
}
.bar-card-mini .bcm-img img { width: 100%; height: 100%; object-fit: cover; }
.bar-card-mini .bcm-body {
    padding: .75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: .15rem;
    flex: 1;
}
.bar-card-mini .bcm-name {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.bar-card-mini .bcm-location {
    font-size: .78rem;
    color: var(--muted);
}
.bar-card-mini .bcm-badge {
    font-size: .65rem;
    padding: 2px 7px;
    border-radius: 99px;
    background: rgba(138,44,255,.2);
    color: var(--accent);
    border: 1px solid rgba(0,245,255,.3);
    align-self: flex-start;
    margin-top: .25rem;
}
.bars-grid-mini {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
    padding: 0;
}

/* ===== DRINK CATALOG ===== */
.autocomplete-wrap { position: relative; }
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #11111a;
    border: 1px solid rgba(138,44,255,.5);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 100;
    max-height: 220px;
    overflow-y: auto;
    display: none;
}
.autocomplete-list.open { display: block; }
.ac-item {
    padding: .6rem .85rem;
    cursor: pointer;
    font-size: .85rem;
    border-bottom: 1px solid rgba(255,255,255,.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ac-item:hover { background: rgba(138,44,255,.15); }
.ac-item .ac-cat { font-size: .7rem; color: var(--muted); }

/* ===== BACKUP PAGE ===== */
.backup-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem;
    background: rgba(17,17,26,.8);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    margin-bottom: .5rem;
}
.backup-item .bi-icon { font-size: 1.5rem; }
.backup-item .bi-info { flex: 1; min-width: 0; }
.backup-item .bi-name { font-size: .88rem; font-weight: 600; }
.backup-item .bi-meta { font-size: .72rem; color: var(--muted); }

/* ===================== FEHLERPROTOKOLL (admin/health.php) ===================== */

.log-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .4rem;
}

.log-count {
    display: inline-block;
    margin-left: .5rem;
    padding: 1px 9px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--warning);
    background: rgba(255,215,0,.14);
    border: 1px solid rgba(255,215,0,.35);
    vertical-align: middle;
}

.log-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
}

.log-lbl { font-size: .78rem; color: var(--muted); }

.log-select {
    width: auto;
    min-width: 80px;
    padding: .4rem .6rem;
    font: inherit;
    font-size: .82rem;
    color: var(--text);
    background: var(--panel2, #181824);
    border: 1px solid rgba(138,44,255,.45);
    border-radius: 10px;
}

.log-tools .btn { width: auto; padding: .4rem .7rem; font-size: .8rem; }
.log-clear { color: var(--danger) !important; border-color: rgba(255,79,123,.45) !important; }

.log-hint { color: var(--muted); font-size: .82rem; margin: .1rem 0 .8rem; }

.log-empty {
    color: var(--muted);
    font-size: .85rem;
    padding: 1.1rem;
    text-align: center;
    background: rgba(5,5,7,.55);
    border: 1px dashed rgba(138,44,255,.35);
    border-radius: 14px;
}

.log-box {
    max-height: 560px;
    overflow-y: auto;
    padding: .5rem;
    background: #0b0b14;
    border: 1px solid rgba(138,44,255,.35);
    border-radius: 14px;
}

.log-entry {
    padding: .55rem .7rem;
    margin-bottom: .4rem;
    border-radius: 10px;
    border-left: 3px solid var(--muted);
    background: rgba(255,255,255,.03);
}
.log-entry:last-child { margin-bottom: 0; }

.log-entry.lv-error  { border-left-color: var(--danger);  background: rgba(255,79,123,.07); }
.log-entry.lv-warn   { border-left-color: var(--warning); background: rgba(255,215,0,.06); }
.log-entry.lv-notice { border-left-color: var(--accent);  background: rgba(0,245,255,.05); }

.log-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: .3rem;
    font-size: .72rem;
    color: var(--muted);
}

.log-time { font-variant-numeric: tabular-nums; color: var(--text); }
.log-tz   { opacity: .65; }

.log-badge {
    padding: 0 7px;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid currentColor;
}
.lv-error  .log-badge { color: var(--danger); }
.lv-warn   .log-badge { color: var(--warning); }
.lv-notice .log-badge { color: var(--accent); }
.lv-info   .log-badge { color: var(--muted); }

.log-text {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .log-head { align-items: flex-start; }
    .log-tools { width: 100%; }
    .log-box { max-height: 420px; }
}

/* ===================== WARTUNGS-PANELS (admin/health.php) ===================== */

.check-list {
    list-style: none;
    margin: .6rem 0 0;
    padding: 0;
    font-size: .85rem;
}

.check-list li {
    position: relative;
    padding: .6rem 0 .6rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
    line-height: 1.45;
}
.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
    position: absolute;
    left: 0;
    top: .55rem;
    font-weight: 700;
}
.check-list li.ok::before   { content: "✓"; color: var(--success); }
.check-list li.no::before   { content: "✕"; color: var(--danger); }
.check-list li.warn::before { content: "!"; color: var(--warning); }
.check-list li.dot::before  { content: "•"; color: var(--muted); }

.notice-box {
    border-left: 4px solid var(--warning);
    background: rgba(255,215,0,.08);
    border-radius: 0 12px 12px 0;
    padding: .9rem 1rem;
    font-size: .85rem;
    line-height: 1.55;
    color: var(--text);
}
.notice-box.ok {
    border-left-color: var(--success);
    background: rgba(53,255,173,.08);
    color: var(--muted);
}
.notice-box code { color: var(--accent); }

.btn.danger-btn {
    width: auto;
    background: linear-gradient(135deg, #c0392b, var(--danger));
    color: #fff;
}
