/* Backoffice-Glow-up: Seitenleiste mit Gruppen, ruhigere Kopfzeile, glasige Karten. Baut auf den Tokens aus style.css auf. */
body { background: radial-gradient(1200px 600px at 85% -10%, color-mix(in srgb, var(--flame) 7%, transparent), transparent 60%), #14100e; }

.adm-app { display: grid; grid-template-columns: 266px minmax(0, 1fr); min-height: 100vh; }
.adm-app.adm-driver { grid-template-columns: minmax(0, 1fr); }
.adm-app.adm-driver .adm-side, .adm-app.adm-driver .adm-burger { display: none; }

/* --- Seitenleiste --- */
.adm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 28px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--card) 70%, var(--bg)) 0%, var(--bg) 100%); scrollbar-width: thin; scrollbar-color: var(--line) transparent; z-index: 70; }
.adm-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 16px; text-decoration: none; color: var(--cream); }
.adm-brand img { border-radius: 10px; }
.adm-brand b { display: block; font-family: var(--font-d); font-size: 1.15rem; line-height: 1.1; }
.adm-brand small { display: block; color: var(--dim); font-size: .72rem; margin-top: 2px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tabs { display: flex; flex-direction: column; gap: 2px; flex-wrap: nowrap; }
.adm-grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--dim); font-weight: 700; padding: 16px 12px 6px; }
.adm-grp:first-child { padding-top: 4px; }
.adm-tabs button { position: relative; display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 11px;
  padding: .52rem .8rem; color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; transition: background .15s, color .15s; }
.adm-tabs button:hover { background: color-mix(in srgb, var(--card2) 70%, transparent); color: var(--cream); }
.adm-tabs button[aria-selected="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--flame) 24%, transparent), color-mix(in srgb, var(--flame) 4%, transparent)); color: var(--cream); border: 0; }
.adm-tabs button[aria-selected="true"]::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--grad); }
.adm-tabs button .badge, .adm-tabs button .count { margin-left: auto; }

/* --- Hauptbereich --- */
.adm-main { min-width: 0; }
.adm-head { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 12px; padding: 12px clamp(14px, 2.4vw, 30px);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
.adm-title { font-family: var(--font-d); font-size: clamp(1.1rem, 2.4vw, 1.45rem); margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-who { font-size: .8rem; color: var(--dim); white-space: nowrap; }
.adm-content { padding: 4px clamp(14px, 2.4vw, 30px) 60px; max-width: 1480px; }
.adm-burger { display: none; }
.adm-backdrop { display: none; }

/* --- Karten & Tabellen --- */
.kpi { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 92%, var(--flame)), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: transform .18s, border-color .18s; }
.kpi:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.kpi b { font-size: 1.7rem; }
table.adm { border-collapse: separate; border-spacing: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
table.adm th { background: color-mix(in srgb, var(--card) 70%, var(--bg)); }
table.adm tbody tr:hover td { background: color-mix(in srgb, var(--gold) 5%, transparent); }
table.adm tr:last-child td { border-bottom: 0; }
.col, .ocard, .drv-card { border-radius: 18px; }
.ocard { box-shadow: 0 8px 24px -16px rgba(0,0,0,.7); transition: border-color .15s, transform .15s; }
.ocard:hover { transform: translateY(-1px); }
.field input:focus, .field textarea:focus, .field select:focus, .search-box:focus { border-color: var(--flame); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame) 22%, transparent); outline: none; }
.adm-content h2 { font-family: var(--font-d); }
.adm-content h3 { font-size: 1.05rem; }
.adm-content a { color: var(--gold); }
.adm-content .btn-primary, .adm-content .btn-ghost { text-decoration: none; }

/* neue Tabs (SEO, Zahlarten, Marke & Lizenz) */
.seo-box { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 94%, var(--flame)), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.seo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.seo-box code, .adm-content code { background: color-mix(in srgb, var(--card2) 80%, transparent); border-radius: 6px; padding: .05rem .35rem; font-size: .82em; }
.search-box { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 12px; padding: .6rem .85rem; font: inherit; }

/* Sicherheitswarnung (Standardpasswörter) */
#weakPassBar { border-radius: 0; }

/* --- Mobil: Seitenleiste als Schublade --- */
@media (max-width: 980px) {
  .adm-app { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .adm-side.open { transform: none; }
  .adm-burger { display: inline-grid; place-items: center; }
  .adm-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(8,5,3,.6); z-index: 65; }
  .adm-who { display: none; }
}
@media (prefers-reduced-motion: reduce) { .adm-side, .kpi, .ocard { transition: none; } }

/* Zahlstatus auf den Board-Karten: grün = schon bezahlt (nichts zu tun), orange = Fahrer/Theke muss kassieren */
.pay-pill { display: inline-block; border-radius: 999px; padding: .12rem .6rem; font-size: .72rem; font-weight: 700; border: 1px solid currentColor; }
.pay-pill.paid { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.pay-pill.collect { color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }

/* 🌐 Sprachen & Übersetzungen */
.lg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.lg-card { transition: opacity .2s, border-color .2s; }
.lg-card.off { opacity: .62; }
.lg-card input:not([type=checkbox]):not([type=radio]), .lg-card select, #lgBody > div > select, #lgBody > div > input { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .45rem .7rem; font: inherit; }
#lgBody select, #lgBody input[type=search] { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .45rem .7rem; font: inherit; }
.lg-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; cursor: pointer; }
.lg-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.lg-switch span { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--line) 80%, transparent); transition: background .2s; }
.lg-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.lg-switch input:checked + span { background: var(--green); }
.lg-switch input:checked + span::after { transform: translateX(20px); }
.lg-switch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.lg-chip { background: var(--card); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: .45rem .95rem; font-weight: 600; font-size: .84rem; cursor: pointer; }
.lg-chip[aria-pressed="true"] { background: var(--grad); color: #1d0e02; border-color: transparent; }
.lg-tblwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--bg2); }
table.lg-tbl { width: 100%; border-collapse: collapse; font-size: .86rem; }
table.lg-tbl th { text-align: left; color: var(--dim); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: 9px 12px; border-bottom: 1px solid var(--line); }
table.lg-tbl td { padding: 9px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent); vertical-align: top; }
table.lg-tbl tr:last-child td { border-bottom: 0; }
.lg-badge { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 16%, var(--card)); color: var(--gold); font-weight: 800; font-size: .9rem; letter-spacing: .04em; flex: none; }

/* ⚙️ Einstellungen (neu) */
.st-top { margin-top: 18px; }
.st-search input { width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 999px; padding: .65rem 1.1rem; font: inherit; }
.st-wrap { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 22px; margin-top: 16px; align-items: start; }
.st-nav { position: sticky; top: 14px; display: grid; gap: 4px; }
.st-nav button { text-align: left; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 12px; padding: .6rem .85rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; display: flex; gap: .55rem; align-items: center; }
.st-nav button:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); color: var(--cream); }
.st-nav button[aria-current="true"] { background: color-mix(in srgb, var(--flame) 16%, var(--card)); border-color: color-mix(in srgb, var(--flame) 45%, transparent); color: var(--cream); }
.st-card { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 94%, var(--flame)), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin-bottom: 16px; }
.st-card[hidden] { display: none; }
.st-card h3 { margin: 0 0 4px; display: flex; gap: .5rem; align-items: center; font-size: 1.08rem; }
.st-desc { color: var(--dim); font-size: .84rem; line-height: 1.55; margin: 4px 0 12px; max-width: 62rem; }
.st-body { display: grid; gap: 12px; }
.st-body .field label { font-size: .78rem; color: var(--dim); }
.st-hint { display: block; color: var(--dim); font-size: .74rem; margin-top: 3px; }
.st-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.st-actions .btn-primary[disabled] { opacity: .45; cursor: not-allowed; }
.st-state { font-size: .8rem; color: var(--dim); }
.st-state.dirty { color: var(--gold); }
.st-state.ok { color: var(--green); }
.st-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.st-row b { display: block; font-weight: 600; }
.st-row small { display: block; color: var(--dim); font-size: .76rem; margin-top: 2px; }
.sw { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; width: 100%; height: 100%; }
.sw > span { position: absolute; inset: 0; border-radius: 99px; background: color-mix(in srgb, var(--line) 80%, transparent); transition: background .2s; }
.sw > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); transition: transform .2s; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.sw-mini { display: inline-flex; }
.st-hours { display: grid; gap: 6px; }
.st-hday { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .45rem .75rem; flex-wrap: wrap; }
.st-hday b { width: 6.2rem; font-weight: 600; font-size: .88rem; }
.st-hday input[type=time] { background: var(--bg2); border: 1px solid var(--line); color: var(--cream); border-radius: 8px; padding: .3rem .4rem; font: inherit; }
.st-hday input[type=time]:disabled { opacity: .35; }
.st-dash { color: var(--dim); }
.st-closed { color: var(--dim); }
.st-color { width: 74px; height: 44px; padding: 2px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.st-tile { display: flex; gap: .8rem; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 14px; padding: .8rem .95rem; color: var(--cream); font: inherit; cursor: pointer; }
.st-tile:hover { border-color: var(--gold); }
.st-tile b { display: block; font-size: .92rem; }
.st-tile small { display: block; color: var(--dim); font-size: .78rem; margin-top: 2px; line-height: 1.35; }
.st-tile-i { font-size: 1.4rem; }
.st-tile.ok { border-left-color: var(--green); } .st-tile.warn { border-left-color: var(--gold); } .st-tile.bad { border-left-color: var(--red); }
.st-pausebox { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: .85rem 1rem; background: var(--card); }
.st-pausebox.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--card)); }
.st-pausebox small { display: block; color: var(--dim); font-size: .8rem; margin-top: 2px; }
.st-combo { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .9rem; font-size: .88rem; }
.st-combo small { color: var(--dim); } .st-combo div { color: var(--dim); font-size: .8rem; margin-top: 2px; }
.st-url { display: flex; gap: 8px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .55rem .8rem; flex-wrap: wrap; }
.st-url code { flex: 1; overflow-x: auto; white-space: nowrap; }
.st-url .btn-ghost { padding: .35rem .8rem; text-decoration: none; }
.pause-admin { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-top: 14px; padding: .55rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; }
.pause-admin.on { border-color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--card)); }
.pause-admin button { margin-left: auto; }
@media (max-width: 900px) {
  .st-wrap { grid-template-columns: 1fr; }
  .st-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .st-nav button { white-space: nowrap; }
}

/* 👥 Team (neu) */
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: 1fr; } }
.tm-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.tm-bar input[type=search] { flex: 1; min-width: 12rem; max-width: 22rem; background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 999px; padding: .55rem 1rem; font: inherit; }
.tm-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.tm-card { background: linear-gradient(160deg, color-mix(in srgb, var(--card) 94%, var(--flame)), var(--card)); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.tm-card.off { opacity: .6; }
.tm-card header { display: flex; gap: 12px; align-items: center; }
.tm-name { min-width: 0; flex: 1; } .tm-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tm-name small { color: var(--dim); font-size: .78rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-av { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 16px; font-weight: 800; font-size: 1rem; flex: none; color: #1d0e02; background: var(--grad); }
.tm-av.driver { background: linear-gradient(135deg, #6fb7ff, #3d7fd1); } .tm-av.staff { background: linear-gradient(135deg, #7be0a8, #3aa86c); } .tm-av.admin { background: linear-gradient(135deg, #ffd27a, #e8913a); }
.tm-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-chip { background: color-mix(in srgb, var(--line) 55%, transparent); border-radius: 999px; padding: .15rem .65rem; font-size: .74rem; color: var(--muted); }
.tm-wage { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; } .tm-wage b { font-size: 1.35rem; color: var(--gold); font-family: var(--font-d); } .tm-wage small { color: var(--dim); font-size: .78rem; } .tm-wage span { color: var(--dim); font-size: .85rem; }
.tm-month { font-size: .82rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.tm-contact { display: flex; gap: .8rem; flex-wrap: wrap; font-size: .8rem; } .tm-contact a { color: var(--muted); text-decoration: none; } .tm-contact a:hover { color: var(--gold); }
.tm-card footer { display: flex; gap: 8px; flex-wrap: wrap; }
.tm-card footer .btn-primary { padding: .5rem 1.1rem; font-size: .86rem; flex: 1 1 100%; white-space: nowrap; } .tm-card footer .btn-ghost { padding: .45rem .9rem; font-size: .8rem; }
.tm-modal { width: min(780px, 100%); max-height: 94vh; overflow: auto; gap: 12px; }
.tm-mh { display: flex; gap: 12px; align-items: center; }
.tm-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tm-pane { display: grid; gap: 12px; }
.tm-pane[hidden] { display: none; }
.tm-sum { background: color-mix(in srgb, var(--gold) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: 12px; padding: .65rem .9rem; font-size: .86rem; line-height: 1.55; }
.tm-hrow { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.tm-hrow input { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .4rem .6rem; font: inherit; }
.tm-hrow input[inputmode] { width: 7rem; }
.tm-mf { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.tm-pane input:not([type=checkbox]), .tm-pane select { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .5rem .7rem; font: inherit; width: 100%; }
.tm-pane .tm-hrow input { width: auto; }

/* 🍕 Speisekarte (neu) */
.mn-wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 20px; margin-top: 18px; align-items: start; }
.mn-cats { position: sticky; top: 14px; display: grid; gap: 4px; }
.mn-cat { display: flex; gap: .6rem; align-items: center; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 12px; padding: .55rem .8rem; font: inherit; font-size: .9rem; cursor: pointer; text-align: left; }
.mn-cat b { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-cat small { color: var(--dim); background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 99px; padding: 0 .5rem; font-size: .72rem; }
.mn-cat:hover { background: color-mix(in srgb, var(--gold) 7%, transparent); color: var(--cream); }
.mn-cat[aria-current="true"] { background: color-mix(in srgb, var(--flame) 16%, var(--card)); border-color: color-mix(in srgb, var(--flame) 45%, transparent); color: var(--cream); }
.mn-cat.off { opacity: .55; }
.mn-addcat { margin-top: 4px; padding: .45rem .9rem !important; font-size: .82rem !important; }
.mn-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mn-bar input[type=search], .mn-bar select { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .88rem; }
.mn-bar input[type=search] { min-width: 12rem; }
.mn-bar .btn-ghost { padding: .45rem .95rem; font-size: .82rem; }
.mn-list { display: grid; gap: 8px; }
.mn-row { display: flex; gap: 12px; align-items: center; background: linear-gradient(160deg, color-mix(in srgb, var(--card) 94%, var(--flame)), var(--card)); border: 1px solid var(--line); border-radius: 14px; padding: .55rem .8rem; }
.mn-row.off { opacity: .55; }
.mn-thumb { width: 3.4rem; height: 3.4rem; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg2); padding: 0; cursor: pointer; display: grid; place-items: center; font-size: 1.2rem; }
.mn-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mn-info { flex: 1; min-width: 0; display: grid; gap: 1px; cursor: pointer; }
.mn-info b { font-size: .95rem; }
.mn-info small { color: var(--dim); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-catname { color: var(--gold) !important; }
.mn-meta { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; font-size: .78rem; color: var(--dim); }
.mn-meta b { color: var(--gold); font-size: .9rem; }
.mn-al { border: 1px solid var(--line); border-radius: 6px; padding: 0 .35rem; }
.mn-acts { display: flex; gap: 6px; align-items: center; flex: none; }
.mn-ico { padding: .25rem .6rem !important; font-size: .85rem !important; min-width: 2rem; }
.mn-ico[disabled] { opacity: .3; cursor: default; }
.mn-als { display: flex; flex-wrap: wrap; gap: 6px; }
.mn-alchip { cursor: pointer; }
.mn-alchip input { position: absolute; opacity: 0; pointer-events: none; }
.mn-alchip span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; color: var(--muted); background: var(--card); }
.mn-alchip input:checked + span { background: var(--grad); color: #1d0e02; border-color: transparent; }
.mn-alchip input:focus-visible + span { outline: 2px solid var(--gold); }
@media (max-width: 860px) { .mn-wrap { grid-template-columns: 1fr; } .mn-cats { position: static; display: flex; overflow-x: auto; gap: 6px; } .mn-cat { white-space: nowrap; } .mn-acts .mn-ico:not([data-mnedit]) { display: none; } }

/* ---------- Testdaten bereinigen (Einstellungen → Daten & Sicherheit) ---------- */
.cl-panel { width: min(780px, 100%); max-height: 94vh; overflow: auto; gap: 12px; display: grid; align-content: start; }
.cl-warn { margin: 0; padding: .7rem .9rem; border-radius: 12px; font-size: .84rem; line-height: 1.5; background: color-mix(in srgb, var(--red) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--red) 40%, transparent); }
.cl-step { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cl-step small { display: block; color: var(--dim); font-size: .8rem; margin-top: 2px; }
.cl-groups { display: grid; gap: 8px; }
.cl-g, .cl-a { display: flex; gap: 10px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; cursor: pointer; }
.cl-g input, .cl-a input { margin-top: .25rem; accent-color: var(--flame); flex: none; }
.cl-g > span, .cl-a > span:first-of-type { flex: 1; min-width: 0; }
.cl-g small { display: block; color: var(--dim); font-size: .78rem; margin-top: 2px; }
.cl-g em { font-style: normal; color: var(--gold); font-size: .82rem; white-space: nowrap; }
.cl-tabs { display: block; color: var(--muted); font-size: .76rem; margin-top: 4px; }
.cl-empty { opacity: .5; cursor: default; }
.cl-accwrap summary { cursor: pointer; font-weight: 600; padding: .3rem 0; }
.cl-accs { display: grid; gap: 6px; max-height: 260px; overflow: auto; margin-top: 6px; }
.cl-a { padding: .4rem .7rem; font-size: .84rem; align-items: center; }
.cl-a small { color: var(--dim); }
.cl-flag { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.cl-prot { opacity: .6; cursor: default; }
.cl-msg { margin: 0; font-size: .86rem; }
.cl-actions { display: flex; gap: 8px; justify-content: flex-end; }
.cl-done { margin: 0; padding-left: 1.2rem; line-height: 1.7; }
.cl-desc { margin: 0; color: var(--dim); }

/* ---------- Webadresse (Domain) ---------- */
.dm-body { display: grid; gap: 6px; }
.dm-row { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.dm-row > span:first-child { color: var(--dim); min-width: 15rem; }
.dm-row b { color: var(--cream); word-break: break-all; }
.dm-auto { margin: 6px 0 0; padding-left: 1.1rem; line-height: 1.65; font-size: .82rem; color: var(--muted); }
.dm-auto b { color: var(--cream); font-weight: 600; }
.cl-panel input:not([type=checkbox]) { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .5rem .7rem; font: inherit; }
.cl-panel input:not([type=checkbox]):focus { outline: 2px solid color-mix(in srgb, var(--flame) 60%, transparent); outline-offset: 1px; }

/* ---------- Start-Check (Einstellungen → Überblick) ---------- */
.lc-bar { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; }
.lc-bar span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .4s; }
.lc-list { display: grid; gap: 6px; }
.lc-item { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; padding: .5rem .8rem; }
.lc-item.ok { border-left-color: var(--green); } .lc-item.warn { border-left-color: var(--gold); } .lc-item.bad { border-left-color: var(--red); }
.lc-item > div { flex: 1; min-width: 0; } .lc-item b { display: block; font-size: .9rem; } .lc-item small { display: block; color: var(--dim); font-size: .8rem; }
.lc-item .btn-ghost { padding: .35rem .8rem; font-size: .8rem; white-space: nowrap; }

/* ---------- Team → Lohn-Übersicht ---------- */
.wg-viewbar { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.wg-alerts { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.wg-alert { border: 1px solid var(--line); background: var(--card); color: var(--cream); border-radius: 999px; padding: .35rem .85rem; font: inherit; font-size: .83rem; cursor: pointer; }
.wg-alert b { font-size: .95rem; margin-right: 2px; }
.wg-alert.bad { border-color: color-mix(in srgb, var(--red) 55%, transparent); background: color-mix(in srgb, var(--red) 12%, var(--card)); }
.wg-alert.warn { border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: color-mix(in srgb, var(--gold) 10%, var(--card)); }
.wg-alert.ok { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.wg-table th.r, .wg-table td.r { text-align: right; white-space: nowrap; }
.wg-table tfoot td { border-top: 2px solid var(--line); padding-top: .6rem; }
.wg-sort { all: unset; cursor: pointer; font-weight: 600; white-space: nowrap; }
.wg-sort:hover, .wg-sort:focus-visible { color: var(--gold); }
.wg-next { color: var(--green); font-weight: 600; }
.dim { color: var(--dim); }
.flag.warn { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.wg-empty { margin-top: 18px; padding: 1.2rem; border: 1px dashed var(--line); border-radius: 14px; }
.wg-panel { width: min(760px, 100%); max-height: 94vh; overflow: auto; display: grid; gap: 12px; align-content: start; }
.wg-dates { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.wg-dates input[type=date], .wg-panel input:not([type=checkbox]), .wg-panel select { background: var(--card); border: 1px solid var(--line); color: var(--cream); border-radius: 10px; padding: .5rem .7rem; font: inherit; }
.wg-who { border: 1px solid var(--line); border-radius: 12px; padding: .6rem .7rem; }
.wg-whohead { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.wg-list { display: grid; gap: 4px; max-height: 280px; overflow: auto; }
.wg-who-row { display: grid; grid-template-columns: auto 1fr auto auto minmax(8rem, auto); gap: 8px; align-items: center; padding: .3rem .4rem; border-radius: 8px; cursor: pointer; font-size: .86rem; }
.wg-who-row:hover { background: color-mix(in srgb, var(--line) 40%, transparent); }
.wg-who-row.off { opacity: .55; }
.wg-n small { display: block; color: var(--dim); font-size: .74rem; }
.wg-arrow { color: var(--dim); } .wg-new { text-align: right; } .wg-new .up { color: var(--green); } .wg-new .down { color: var(--red); }
@media (max-width: 640px) { .wg-who-row { grid-template-columns: auto 1fr auto; } .wg-arrow, .wg-old { display: none; } .wg-new { grid-column: 2 / 4; text-align: left; } }
/* Lohn-Übersicht: kompaktere Tabelle, hidden gewinnt, Dialog-Fußzeile immer erreichbar */
.wg-table th, .wg-table td { padding: .5rem .55rem; font-size: .85rem; }
.wg-table th { font-size: .7rem; }
.wg-panel [hidden] { display: none !important; }
.wg-panel .tm-mf { position: sticky; bottom: -1px; padding: 10px 0 2px; background: inherit; z-index: 2; }
.wg-list { max-height: 230px; }
.wg-panel select { max-width: 100%; }
.wg-table td.wg-hint { min-width: 13rem; max-width: 20rem; }
.wg-table td.wg-hint .flag { display: block; margin: 0 0 3px; white-space: normal; line-height: 1.3; }
.wg-table td:last-child { white-space: nowrap; }
.wg-table small { white-space: nowrap; }
.wg-name { color: inherit; text-decoration: none; } .wg-name:hover b { color: var(--gold); text-decoration: underline; }
.wg-done { margin: 0; padding-left: 1.2rem; line-height: 1.8; } .wg-done .up { color: var(--green); }
/* Team-Karten: Knöpfe bündig am Kartenboden, egal wie viel Inhalt die Karte hat */
.tm-card { display: flex; flex-direction: column; }
.tm-card footer { margin-top: auto; padding-top: 6px; }
