/* admin.looops.at · Sicherung · Gestaltung wie Lumen (web/stil.css Variablen, body.v3 aus web/bausteine.css; Klickdummy „admin.looops.at – Sicherung“).
   Farben nur für Bedeutung. Karten 16 px Radius, weicher Schatten auf --grund. Schriften: Plus Jakarta Sans, JetBrains Mono. */
:root {
  --grund:#F9F8F5; --kasten:#FFFFFF; --flaeche:#F2F0EB; --text:#1D1A17; --text2:#46403A; --leise:#5E574F; --null:#8E867D;
  --gold-rand:rgba(185,138,62,.45); --gruen-rand:rgba(94,140,106,.45);
  --linie:rgba(40,30,20,.12); --linie-fein:rgba(40,30,20,.06); --linie-knopf:rgba(40,30,20,.14); --linie-chip:rgba(40,30,20,.14);
  --gruen:#2F5D3B; --gruen-text:#2F5D3B; --gruen-flaeche:#F2F7F3;
  --gold:#8A6524; --gold-text:#7A561B; --gold-flaeche:#FDFAF3;
  --blau:#3E5A69; --blau-text:#3E5A69; --blau-flaeche:#F1F5F8;
  --rot:#A3402B; --rot-text:#8F3522; --rot-flaeche:#FDF4F1;
  --schatten:0 1px 2px rgba(40,30,20,.06), 0 6px 18px rgba(40,30,20,.05);
  --r-kasten:16px; --r-knopf:8px; --r-innen:12px;
  --sans:'Plus Jakarta Sans', system-ui, sans-serif; --mono:'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--grund); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
button { font-family: inherit; color: inherit; }
a { color: var(--blau); } a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.nur-lesen { position: absolute; left: -9999px; }

/* ── Hülle: Icon-Leiste, Spalten, Griffe ───────────────────────────────────────────────────── */
.huelle { display: flex; align-items: stretch; height: 100vh; padding: 12px; gap: 0; min-width: 0; }
.huelle > .spalte, .huelle > .detail { min-width: 0; }
.menue { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; margin-right: 6px; }
.menue-punkt { position: relative; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text2); background: none; border: 0; cursor: pointer; text-decoration: none; }
.menue-punkt:hover { background: var(--flaeche); color: var(--text); }
.menue-punkt[aria-current="page"] { color: var(--text); background: var(--kasten); box-shadow: var(--schatten); }
.menue-punkt[aria-disabled="true"] { opacity: .42; cursor: default; } .menue-punkt[aria-disabled="true"]:hover { background: none; color: var(--text2); }
.menue-zahl { position: absolute; top: 0; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--text); color: #fff; font-family: var(--mono); font-size: 11px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--grund); }
.menue-strich { width: 28px; border-top: 1px solid var(--linie); margin: 6px 0; }
.menue-platz { flex: 1; min-height: 24px; }

.spalte, .detail { background: var(--kasten); border-radius: var(--r-kasten); box-shadow: var(--schatten); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.spalte-ansichten { flex: 0 0 var(--w-ansichten, 240px); }
.spalte-liste { flex: 0 0 var(--w-liste, 320px); }
.detail { flex: 1 1 0; }
.spalte-rechts { flex: 0 0 var(--w-rechts, 340px); }
.rolle { overflow-y: auto; flex: 1; min-height: 0; }
.griff { flex: 0 0 12px; cursor: col-resize; touch-action: none; position: relative; }
.griff::after { content: ""; position: absolute; top: 50%; left: 5px; width: 2px; height: 36px; margin-top: -18px; border-radius: 2px; background: transparent; }
.griff:hover::after, .griff:focus-visible::after, .griff.zieht::after { background: var(--linie-knopf); }

.spalten-kopf { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--linie-fein); flex: none; min-height: 60px; }
.spalten-kopf h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spalten-kopf .nummer { font-family: var(--mono); font-size: 13px; color: var(--leise); white-space: nowrap; }
.quadrat { width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--linie-knopf); background: var(--grund); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.quadrat:hover { background: var(--flaeche); }
.quadrat-schlicht { border: 0; background: none; color: var(--text2); }

/* ── Ansichten-Spalte ───────────────────────────────────────────────────────────────────────── */
.ansichten-titel { display: flex; align-items: baseline; gap: 6px; padding: 18px 18px 6px; }
.ansichten-titel h1 { margin: 0; font-size: 18px; font-weight: 600; } .ansichten-titel span { color: var(--leise); font-size: 14px; }
.gruppenkopf { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); padding: 16px 18px 6px; }
.ansicht { display: flex; align-items: center; gap: 8px; width: calc(100% - 16px); margin: 1px 8px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; font-size: 14.5px; cursor: pointer; text-align: left; }
.ansicht:hover { background: var(--grund); }
.ansicht[aria-current="true"] { background: var(--kasten); box-shadow: inset 0 0 0 2px var(--text); font-weight: 600; }
.ansicht .zeichen { width: 16px; color: var(--leise); text-align: center; flex: none; }
.ansicht .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ansicht .zahl { font-family: var(--mono); font-size: 13px; color: var(--text); } .ansicht .zahl.null { color: var(--null); }
.ansicht .zahl.pille { background: var(--flaeche); border-radius: 6px; padding: 0 6px; }
.unter { margin: 0 8px 0 26px; padding-left: 8px; border-left: 1px solid var(--linie); }
.anpassen { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border: 0; border-top: 1px solid var(--linie-fein); background: none; color: var(--text2); font-size: 14px; cursor: default; width: 100%; text-align: left; margin-top: auto; opacity: .6; }
.anpassen svg { flex: none; }

/* ── Liste der Systeme ──────────────────────────────────────────────────────────────────────── */
.zeile { display: flex; flex-direction: column; gap: 3px; width: 100%; border: 0; border-top: 1px solid var(--linie-fein); padding: 11px 16px; cursor: pointer; background: var(--kasten); text-align: left; }
.zeile:first-child { border-top: 0; }
.zeile:hover { background: var(--grund); } .zeile[aria-current="true"] { background: var(--flaeche); }
.zeile .kopf { display: flex; align-items: baseline; gap: 8px; }
.zeile .titel { font-weight: 600; font-size: 14px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeile .meta { font-family: var(--mono); font-size: 11px; color: var(--leise); white-space: nowrap; }
.zeile .unter-text { font-size: 13px; color: var(--text2); }
.zeile .fuss { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.zeile .zhinweis { flex: 1; min-width: 0; font-size: 12.5px; color: var(--gold-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.marke { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--linie-chip); white-space: nowrap; text-transform: uppercase; background: var(--kasten); }
.leer { padding: 28px 18px; color: var(--leise); font-size: 14px; }

/* ── Detail ─────────────────────────────────────────────────────────────────────────────────── */
.detail-kopf { padding: 14px 20px 12px; border-bottom: 1px solid var(--linie-fein); flex: none; }
.detail-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.detail-zeile h2 { margin: 0; font-size: 18px; font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.meta-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 6px; font-size: 13px; color: var(--text2); }
.inhalt { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--leise); margin-bottom: 8px; }
.hinweis { border: 1px dashed var(--gold-rand); background: var(--gold-flaeche); color: var(--gold-text); border-radius: var(--r-innen); padding: 10px 14px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hinweis > span { flex: 1; min-width: 200px; }
.info { background: var(--blau-flaeche); color: var(--blau-text); border-radius: var(--r-innen); padding: 14px; font-size: 14px; line-height: 1.5; }
.fehlerkasten { background: var(--rot-flaeche); color: var(--rot-text); border-radius: var(--r-innen); padding: 12px 14px; font-size: 14px; }
.kasten { border: 1px solid var(--linie); border-radius: var(--r-innen); padding: 14px; }
.raster { display: flex; flex-wrap: wrap; gap: 12px; } .raster > * { flex: 1 1 240px; min-width: 0; }
.tabelle-rahmen { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--leise); font-size: 12px; font-weight: 500; padding: 8px 6px; white-space: nowrap; }
td { padding: 8px 6px; border-top: 1px solid var(--linie-fein); vertical-align: middle; }
.mono { font-family: var(--mono); font-size: 12.5px; } td.mono { color: var(--text2); }
.knopf { min-height: 36px; padding: 0 14px; border-radius: var(--r-knopf); border: 1px solid var(--linie-knopf); background: var(--kasten); font-size: 13.5px; cursor: pointer; }
.knopf:hover { background: var(--grund); } .knopf:disabled { opacity: .5; cursor: default; }
.knopf-haupt { min-height: 42px; padding: 0 18px; border: 0; background: var(--text); color: #fff; font-size: 14.5px; font-weight: 600; }
.knopf-haupt:hover { background: #000; }
.knopf-gold { border-color: var(--gold-rand); color: var(--gold-text); background: var(--kasten); }
.knopf-klein { min-height: 32px; padding: 0 12px; font-size: 13px; }
.textlink { background: none; border: 0; padding: 0; font-weight: 500; font-size: 14px; color: var(--text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--linie); text-underline-offset: 3px; }
.textlink:hover { text-decoration-color: var(--text); }

.werkzeuge { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 14px 20px 6px; }
.feld { min-height: 36px; padding: 0 10px; border-radius: 9px; border: 1px solid var(--linie-chip); background: var(--kasten); font-family: inherit; font-size: 13.5px; color: var(--text); }
.feld-suche { flex: 1 1 100%; min-width: 0; }
.gruppe { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.gruppe .feld { max-width: 170px; }
.werkzeuge label { font-size: 12.5px; color: var(--leise); white-space: nowrap; }
.feld-stand-alt { border: 1.5px solid var(--gold); background: var(--gold-flaeche); color: var(--gold-text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 20px 4px; }
.chip { min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; cursor: pointer; background: var(--kasten); border: 1px solid var(--linie-knopf); }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.chip .n { font-family: var(--mono); font-size: 12px; opacity: .8; margin-left: 4px; }
.kaestchen { width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; background: var(--kasten); color: #fff; border: 1.5px solid rgba(40,30,20,.3); }
.kaestchen[aria-checked="true"] { background: var(--text); border-color: var(--text); }
.kaestchen:disabled { opacity: .35; cursor: default; }
tr.gewaehlt td { background: var(--grund); }
.seiten { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 16px; font-size: 13px; color: var(--leise); }
.seiten .text { flex: 1; font-family: var(--mono); }
.seiten .knopf { min-width: 40px; }

.versionen { display: flex; flex-direction: column; gap: 6px; }
.version { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; min-height: 52px; padding: 8px 12px; border-radius: var(--r-innen); cursor: pointer; font-size: 14px; border: 1px solid var(--linie); background: var(--kasten); width: 100%; }
.version[aria-checked="true"] { border: 1.5px solid var(--text); background: var(--grund); }
.version small { font-size: 12px; color: var(--leise); }
.vergleich { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; font-size: 13.5px; }
.vergleich > div { background: var(--grund); border-radius: var(--r-innen); padding: 12px; min-width: 0; }
.vergleich .kopfzeile { font-size: 12px; color: var(--leise); margin-bottom: 6px; }
.diff { border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; overflow-wrap: anywhere; }
.diff b { font-weight: 600; } .diff-alt { background: var(--gruen-flaeche); color: var(--gruen-text); } .diff-neu { background: var(--rot-flaeche); color: var(--rot-text); }
details.json { margin-top: 12px; font-size: 13px; } details.json summary { cursor: pointer; color: var(--blau); }
pre { background: var(--grund); border-radius: 8px; padding: 12px; overflow: auto; font-family: var(--mono); font-size: 12px; max-height: 420px; margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.aktion { border-top: 1px solid var(--linie); padding: 14px 20px; background: var(--kasten); flex: none; }
.aktion-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; } .aktion-zeile > .text { flex: 1; min-width: 200px; font-size: 14px; color: var(--text2); }
.formular { border: 1px solid var(--linie); border-radius: var(--r-innen); padding: 14px; }
.formular .label { text-transform: none; letter-spacing: 0; font-size: 12px; margin-bottom: 10px; }
.formular fieldset { border: 0; padding: 0; margin: 0 0 12px; } .formular legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.formular fieldset { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; } .formular legend { float: left; margin: 0 18px 0 0; }
.formular label.radio { display: flex; gap: 8px; font-size: 14px; margin-bottom: 0; }
.formular textarea { width: 100%; border: 1px solid var(--linie-knopf); border-radius: 8px; padding: 10px; font-family: inherit; font-size: 14px; }
.formular .knoepfe { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.anfragen { display: flex; flex-direction: column; }
.anfrage { padding: 14px 16px; border-top: 1px solid var(--linie-fein); display: flex; flex-direction: column; gap: 6px; }

/* ── Rechte Spalte ──────────────────────────────────────────────────────────────────────────── */
.reiter { display: flex; align-items: center; gap: 18px; flex: 1; }
.reiter button { border: 0; background: none; padding: 6px 0; font-size: 16px; cursor: pointer; color: var(--leise); font-weight: 600; }
.reiter button[aria-selected="true"] { color: var(--text); }
.rechts-titel { padding: 16px 18px; border-bottom: 1px solid var(--linie-fein); }
.rechts-titel .name { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 600; } .rechts-titel .name span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rechts-titel .unter-text { font-size: 14px; color: var(--text2); margin-top: 4px; }
.abschnitt { border-bottom: 1px solid var(--linie-fein); }
.abschnitt-kopf { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 0 18px; border: 0; background: none; cursor: pointer; text-align: left; }
.abschnitt-kopf .z { width: 18px; color: var(--leise); text-align: center; } .abschnitt-kopf .t { flex: 1; font-size: 15.5px; font-weight: 600; } .abschnitt-kopf .n { font-family: var(--mono); font-size: 13px; color: var(--leise); } .abschnitt-kopf .p { font-size: 11px; color: var(--leise); }
.abschnitt-inhalt { padding: 0 18px 14px; display: flex; flex-direction: column; gap: 6px; }
.abschnitt-inhalt .zl { display: flex; gap: 12px; font-size: 14px; } .abschnitt-inhalt .zl span:first-child { flex: 0 0 120px; color: var(--leise); } .abschnitt-inhalt .zl span:last-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.claude-box { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.claude-box textarea { width: 100%; border: 1px solid var(--linie-knopf); border-radius: 12px; padding: 10px; font-family: inherit; font-size: 14px; background: var(--grund); }
.leise-box { background: var(--grund); border-radius: var(--r-innen); padding: 12px; font-size: 14px; color: var(--text2); }

/* ── Anmeldung ──────────────────────────────────────────────────────────────────────────────── */
.tor { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: #FBFAF8; }
.tor-inhalt { width: min(460px, 100%); display: flex; flex-direction: column; gap: 16px; }
.tor-ueber { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; color: var(--leise); }
.tor-titel { margin: 0; font-size: clamp(48px, 7vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.tor-punkt { display: inline-block; width: .17em; height: .17em; border-radius: 50%; background: #8A847C; margin-left: .03em; font-size: inherit; color: transparent; overflow: hidden; vertical-align: baseline; }
.tor-text { margin: 0 0 4px; font-size: 16px; color: var(--text2); }
.tor-ms { align-self: flex-start; display: inline-flex; align-items: center; gap: 14px; border: 0; border-radius: 14px; padding: 0 24px; min-height: 52px;
  background: linear-gradient(180deg, #3A3530, #1D1A17); color: #fff; font-family: inherit; font-size: 16px; font-weight: 600; box-shadow: 0 10px 24px rgba(29,26,23,.22), inset 0 1px 0 rgba(255,255,255,.08); cursor: pointer; }
.tor-ms:hover { background: #1D1A17; }
.tor-ms:disabled { opacity: .6; cursor: default; }
.tor-ms-logo { flex: none; }

/* ── Handy: Spalten untereinander ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .huelle { flex-direction: column; height: auto; min-height: 100vh; padding: 10px 16px 16px; gap: 10px; }
  .menue { flex: none; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; margin: 0; padding: 0; gap: 2px; }
  .menue-strich { width: 0; height: 28px; border-top: 0; border-left: 1px solid var(--linie); margin: 0 6px; } .menue-platz { display: none; }
  .griff { display: none; }
  .spalte-ansichten, .spalte-liste, .spalte-rechts, .detail { flex: none; width: 100%; }
  .spalte, .detail { overflow: visible; } .rolle { overflow: visible; }
  .spalte-liste .rolle { max-height: 46vh; overflow-y: auto; }
  .inhalt { padding: 14px 16px; } .werkzeuge, .chips, .seiten, .aktion { padding-left: 16px; padding-right: 16px; }
  .aktion { position: sticky; bottom: 0; border-radius: 0 0 var(--r-kasten) var(--r-kasten); }
}
