/* Neutrales, helles Erscheinungsbild. Farben und Name an einer Stelle (:root), bis der Inhaber sie festlegt. */
:root { --ink: #16202b; --muted: #5d6875; --line: #dde3ea; --bg: #f3f5f8; --card: #fff; --brand: #1f6feb; --brand-ink: #fff; --ok: #e3f6ec; --ok-ink: #155c39; --err: #fde8e8; --err-ink: #8f1d1d; --warn: #fff4d6; --warn-ink: #5c4500; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.2; }
h2 { margin: 0 0 12px; font-size: 20px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); font-size: 14px; }
.center { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.card { width: 100%; min-width: 0; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: 0 6px 24px rgba(22, 32, 43, .07); }
.card + .card { margin-top: 16px; }
.narrow { max-width: 420px; }
.brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; font-weight: 700; }
.field { display: grid; gap: 6px; min-width: 0; margin-bottom: 14px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
input, select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; }
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, .nav button:focus-visible { outline: 3px solid rgba(31, 111, 235, .35); outline-offset: 1px; }
input:disabled, select:disabled, textarea:disabled { background: #f4f6f8; color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--brand); color: var(--brand-ink); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.link { min-height: 44px; padding: 10px 4px; background: none; color: var(--brand); border-radius: 8px; }
.btn.wide { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.msg.ok { background: var(--ok); color: var(--ok-ink); }
.msg.err { background: var(--err); color: var(--err-ink); }
.msg.warn { background: var(--warn); color: var(--warn-ink); }
.lang { width: auto; min-height: 44px; }
.linkbox { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); overflow-wrap: anywhere; font-size: 14px; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100dvh; }
.side { padding: 18px 12px; background: var(--ink); color: #fff; }
.side .title { padding: 0 10px 14px; font-weight: 800; font-size: 18px; }
.side .tenant { margin: 0 10px 14px; }
.side .tenant select { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.side .tenant option { color: var(--ink); }
.nav { display: grid; gap: 2px; }
.nav button { min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: rgba(255, 255, 255, .82); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.nav button.on { background: rgba(255, 255, 255, .14); color: #fff; }
.nav .sep { height: 1px; margin: 10px; background: rgba(255, 255, 255, .15); }
.main { min-width: 0; padding: 26px 28px 40px; }
.main .head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.list { margin: 0; padding: 0; list-style: none; }
.list li { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li > div { min-width: 0; flex: 1 1 220px; overflow-wrap: anywhere; }
.list strong { display: block; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg); font-size: 12px; font-weight: 700; }
.tag.off { background: var(--err); color: var(--err-ink); }

@media (hover: hover) and (pointer: fine) {
    .btn.primary:hover { filter: brightness(1.08); }
    .btn.secondary:hover { background: var(--bg); }
    .nav button:hover { background: rgba(255, 255, 255, .08); }
}
@media (max-width: 820px) {
    body { font-size: 14px; }
    h1 { font-size: 22px; }
    h2 { font-size: 18px; }
    .muted, .linkbox { font-size: 13px; }
    .shell { grid-template-columns: minmax(0, 1fr); }
    .side { padding: 12px; }
    .side .title { padding-bottom: 10px; }
    .nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; -webkit-overflow-scrolling: touch; gap: 6px; padding-bottom: 4px; }
    .nav .sep { display: none; }
    .main { padding: 18px 14px 32px; }
    .grid2 { grid-template-columns: minmax(0, 1fr); }
    .card { padding: 16px; }
}
