/* ccm-kundenportal: ein Stylesheet für Kunden- und Adminbereich, ohne fremde Schriften oder Dateien */
:root { --blau: #1a7ea8; --dunkel: #12303f; --grau: #5b6b75; --linie: #d8e0e5; --hell: #f4f7f9; --rot: #b3261e; --gruen: #2e7d32; --gelb: #8a6100; }
* { box-sizing: border-box; }
html { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c262c; background: var(--hell); }
body { margin: 0; }
a { color: var(--blau); }
header { background: var(--dunkel); color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; padding: .6rem 1rem; }
header.admin { background: #3b2a12; }
header .marke { font-weight: 600; color: #fff; text-decoration: none; margin-right: .5rem; }
header nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; flex: 1; }
header nav a { color: #cfe3ee; text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; }
header nav a.aktiv { color: #fff; border-color: #fff; }
header form { display: flex; align-items: center; gap: .6rem; margin: 0; font-size: .9rem; }
main { max-width: 68rem; margin: 0 auto; padding: 1rem; }
main.schmal { max-width: 28rem; }
h1 { font-size: 1.45rem; margin: .4rem 0 .8rem; }
h2 { font-size: 1.1rem; margin: 1.6rem 0 .5rem; }
section, .karte { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: 1rem; margin: 0 0 1rem; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .82rem; color: var(--grau); font-weight: 600; white-space: nowrap; }
.tabelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: 8px; margin-bottom: 1rem; background: #fff; }
.tabelle table tr:last-child td { border-bottom: 0; }
label { display: block; font-size: .88rem; color: var(--grau); margin: .7rem 0 .15rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: .5rem .6rem; border: 1px solid #b6c2ca; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 7rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid #7cc0de; outline-offset: 1px; }
button, .knopf { font: inherit; padding: .5rem .9rem; border-radius: 6px; border: 1px solid var(--blau); background: var(--blau); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.zweit, .knopf.zweit { background: #fff; color: var(--blau); }
button.gefahr { background: var(--rot); border-color: var(--rot); }
button.klein { padding: .2rem .55rem; font-size: .85rem; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.reihe { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.reihe > * { flex: 1 1 10rem; }
.reihe > button, .reihe > .fest { flex: 0 0 auto; }
.knoepfe { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.knoepfe form { margin: 0; }
.meldung, .fehler, .hinweis { border-radius: 6px; padding: .6rem .8rem; margin: 0 0 1rem; border: 1px solid; }
.meldung { background: #e8f5e9; border-color: #a5d6a7; }
.fehler { background: #fdecea; border-color: #f1aaa5; color: #7a1a14; }
.hinweis { background: #fff8e1; border-color: #f0d68a; color: #5c4300; }
.marke-s { display: inline-block; font-size: .78rem; padding: .05rem .45rem; border-radius: 999px; border: 1px solid; white-space: nowrap; }
.an { color: var(--gruen); border-color: #a5d6a7; background: #e8f5e9; }
.aus { color: var(--grau); border-color: var(--linie); background: var(--hell); }
.warn { color: var(--gelb); border-color: #f0d68a; background: #fff8e1; }
.schlecht { color: var(--rot); border-color: #f1aaa5; background: #fdecea; }
.leise { color: var(--grau); font-size: .88rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; word-break: break-all; }
.codes { columns: 2; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.05rem; padding-left: 1.2rem; }
.zahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.zahlen div { background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .7rem .9rem; }
.zahlen b { display: block; font-size: 1.5rem; }
details summary { cursor: pointer; color: var(--blau); margin: .4rem 0; }
img.qr { display: block; width: 13rem; height: 13rem; margin: .5rem 0; }
footer { text-align: center; color: var(--grau); font-size: .8rem; padding: 1.5rem 1rem; }
@media (max-width: 40rem) { .codes { columns: 1; } th, td { padding: .4rem; } }
label.haken { display: inline-block; margin: 0 1rem 0 0; color: inherit; }
section h2:first-child, .karte h2:first-child { margin-top: 0; }
pre.befehl { background: #12222b; color: #e6eef2; padding: .7rem .9rem; border-radius: 6px; overflow-x: auto; font: .85rem/1.5 ui-monospace, Menlo, Consolas, monospace; margin: .3rem 0 .6rem; white-space: pre; user-select: all; }
h3 { font-size: .98rem; margin: 1rem 0 .2rem; }

/* Konsole */
main.breit { max-width: 96rem; }
.konsole { height: calc(100vh - 17rem); min-height: 24rem; background: #1b1b1b; border: 1px solid var(--linie); border-radius: 8px; overflow: hidden; }
.konsole.aus { opacity: .45; }
.konsole:fullscreen { height: 100vh; border: 0; border-radius: 0; }
.konsole-leiste { align-items: center; margin: 0 0 .8rem; }
#k-status { margin-left: .4rem; }
#k-status.schlecht { color: #a11; font-weight: 600; }

/* Auslastung */
.auslastung { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 1rem; margin-bottom: .6rem; }
.auslastung figure { margin: 0; background: #fff; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .8rem; }
.auslastung figcaption { font-size: .88rem; margin-bottom: .4rem; }
.diagramm { display: block; width: 100%; height: 9rem; background: #f7f9fb; border-radius: 4px; }
.diagramm polyline { fill: none; stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.diagramm .l1 { stroke: var(--blau); }
.diagramm .l2 { stroke: #c2570a; }
.diagramm .raster { stroke: var(--linie); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 4 4; }
.marke-l1 { color: var(--blau); font-weight: 600; }
.marke-l2 { color: #c2570a; font-weight: 600; }
.zeitwahl { margin: 0 0 .8rem; }

.konsole-dialog { border: 1px solid var(--linie); border-radius: 8px; padding: 1.2rem; max-width: 34rem; width: calc(100% - 2rem); }
.konsole-dialog::backdrop { background: rgba(10, 25, 40, .55); }
.konsole-dialog h2 { margin-top: 0; }
.konsole-dialog textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; }
/* Netzplan (Rechenzentrum): Server als Kästen, Netze als Schienen */
.plan-rahmen { overflow-x: auto; background: #f7f9fb; border: 1px solid var(--linie); border-radius: 8px; margin-bottom: 1rem; }
.plan { display: block; max-width: none; font: 13px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.plan .schiene { stroke-width: 4; stroke-linecap: round; }
.plan .leitung { stroke-width: 2; }
.plan .leitung.getrennt { stroke: var(--rot); stroke-dasharray: 5 4; }
.plan .leitung.offen { stroke: var(--grau); stroke-dasharray: 2 3; }
.plan .kreuz { stroke: var(--rot); stroke-width: 2.5; fill: none; }
.plan .knoten { stroke: #fff; stroke-width: 1.5; }
.plan .kasten { fill: #fff; stroke: var(--linie); stroke-width: 1.5; }
.plan .kasten.an { stroke: #a5d6a7; }
.plan a:hover .kasten, .plan a:focus .kasten { stroke: var(--blau); stroke-width: 2.5; }
.plan .lampe.an { fill: var(--gruen); }
.plan .lampe.aus { fill: #b6c2c9; }
.plan .vmname { font-weight: 600; fill: #1c262c; }
.plan .vmzeile, .plan .netzname, .plan .fragezeichen { fill: var(--grau); font-size: 12px; }
.plan .n0 { stroke: #1a7ea8; fill: #1a7ea8; } .plan .n1 { stroke: #c2570a; fill: #c2570a; } .plan .n2 { stroke: #6a4fb3; fill: #6a4fb3; } .plan .n3 { stroke: #2e7d32; fill: #2e7d32; }
.plan .n4 { stroke: #a8326b; fill: #a8326b; } .plan .n5 { stroke: #5b6b75; fill: #5b6b75; } .plan .n6 { stroke: #8a6100; fill: #8a6100; } .plan .n7 { stroke: #00796b; fill: #00796b; }
.netzfarbe { display: inline-block; width: 1.4rem; height: .3rem; border-radius: 2px; vertical-align: middle; }
.netzfarbe.n0 { background: #1a7ea8; } .netzfarbe.n1 { background: #c2570a; } .netzfarbe.n2 { background: #6a4fb3; } .netzfarbe.n3 { background: #2e7d32; }
.netzfarbe.n4 { background: #a8326b; } .netzfarbe.n5 { background: #5b6b75; } .netzfarbe.n6 { background: #8a6100; } .netzfarbe.n7 { background: #00796b; }
td.eng { white-space: nowrap; }
/* Kontingent: Balken je Obergrenze */
.kontingent { display: grid; gap: .45rem; margin-bottom: .6rem; }
.kzeile { display: grid; grid-template-columns: 9rem minmax(6rem, 22rem) auto; gap: .8rem; align-items: center; }
.kname { color: var(--grau); font-size: .9rem; }
.kbalken { display: block; width: 100%; height: .7rem; border-radius: 999px; }
.kbalken .grund { fill: #e3e9ed; }
.kbalken .fuellung { fill: var(--blau); }
.kbalken.knapp .fuellung { fill: #c2570a; }
.kbalken.ueber .fuellung { fill: var(--rot); }
.kzahl { font-variant-numeric: tabular-nums; }
@media (max-width: 40rem) { .kzeile { grid-template-columns: 1fr; gap: .15rem; } }
/* Freigabe einer Aktion (MCP): Bezeichnung links, Wert rechts */
table.werte { margin: 0 0 1rem; }
table.werte th { width: 9rem; text-align: left; vertical-align: top; }

/* ---------------------------------------------------------------- Gestaltung ab 0.21.0
   Überschreibt die Grundregeln oben: ruhigere Flächen, Karten mit leichtem Schatten, Kopfzeile mit Bildmarke,
   Anmeldeseite mit Bild, Server als Kacheln. Weiter ohne fremde Schriften, Skripte oder Dateien. */
:root { --blau: #1a7ea8; --blau-dunkel: #14658a; --dunkel: #0f2a38; --grau: #586973; --linie: #dbe3e8; --hell: #f3f6f8;
        --flaeche: #fff; --schatten: 0 1px 2px rgba(15, 42, 56, .06), 0 4px 14px rgba(15, 42, 56, .06); --rund: 12px; }
html { background: var(--hell); color: #17232a; }
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; width: 100%; padding: 1.5rem 1.25rem 2rem; }
h1 { font-size: 1.6rem; letter-spacing: -.01em; margin: .2rem 0 1rem; }
h2 { font-size: 1.12rem; }
header { background: linear-gradient(90deg, #0f2a38, #14394c); padding: .7rem 1.25rem; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 2px 10px rgba(15, 42, 56, .18); }
header.admin { background: linear-gradient(90deg, #33240f, #4a3414); }
header .marke { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.02rem; }
header .marke svg { width: 1.5rem; height: 1.5rem; flex: none; }
header nav { gap: .2rem .35rem; }
header nav a { padding: .3rem .65rem; border: 0; border-radius: 999px; color: #c9dde8; transition: background .15s, color .15s; }
header nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
header nav a.aktiv { background: rgba(255, 255, 255, .16); color: #fff; }
header form span { color: #c9dde8; }
header button.klein.zweit { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
header button.klein.zweit:hover { background: rgba(255, 255, 255, .12); }
section, .karte, .tabelle, .zahlen div, .auslastung figure { border-radius: var(--rund); box-shadow: var(--schatten); border-color: var(--linie); }
section, .karte { padding: 1.15rem 1.25rem; }
.tabelle table tbody tr:hover { background: #f7fafb; }
th { text-transform: uppercase; letter-spacing: .04em; font-size: .72rem; padding-top: .6rem; padding-bottom: .6rem; background: #f8fafb; }
td { padding: .6rem; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea { border-radius: 8px; border-color: #bcc8cf; padding: .55rem .7rem; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(26, 126, 168, .22); }
button, .knopf { border-radius: 8px; font-weight: 600; padding: .55rem 1rem; transition: background .15s, box-shadow .15s, transform .05s; }
button:hover:not([disabled]), .knopf:hover { background: var(--blau-dunkel); border-color: var(--blau-dunkel); }
button.zweit:hover:not([disabled]), .knopf.zweit:hover { background: #eef6fa; color: var(--blau-dunkel); }
button.gefahr:hover:not([disabled]) { background: #96201a; border-color: #96201a; }
button:active:not([disabled]) { transform: translateY(1px); }
button.klein { font-weight: 500; }
.meldung, .fehler, .hinweis { border-radius: 10px; }
footer { padding: 1.25rem 1rem 1.75rem; }

/* Anmeldeseite: Formular links, Bild rechts; auf schmalen Bildschirmen nur das Formular */
main.anmeldung { max-width: 62rem; display: grid; grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 0; align-content: center; padding-top: 2.5rem; }
main.anmeldung > section { margin: 0; border-radius: var(--rund) 0 0 var(--rund); padding: 2rem 2rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }
main.anmeldung .buehne { position: relative; min-height: 34rem; border-radius: 0 var(--rund) var(--rund) 0; overflow: hidden; background: #12303f url(/static/img/anmeldung.jpg) center / cover no-repeat; box-shadow: var(--schatten); }
main.anmeldung .buehne div { position: absolute; left: 0; right: 0; top: 0; padding: 2rem 2rem 4rem; color: #fff; background: linear-gradient(180deg, rgba(10, 30, 41, .78), rgba(10, 30, 41, 0)); }
main.anmeldung .buehne b { display: block; font-size: 1.5rem; letter-spacing: -.01em; margin-bottom: .35rem; }
main.anmeldung .buehne span { color: #cfe3ee; }
main.anmeldung .wortmarke { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--dunkel); margin-bottom: 1.2rem; }
main.anmeldung .wortmarke svg { width: 2rem; height: 2rem; }
@media (max-width: 52rem) { main.anmeldung { grid-template-columns: minmax(0, 1fr); max-width: 28rem; } main.anmeldung .buehne { display: none; } main.anmeldung > section { border-radius: var(--rund); } }

/* Server als Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kachel { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); padding: 1rem 1.1rem; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .1s; border-top: 3px solid #b6c2c9; }
.kachel.an { border-top-color: var(--gruen); }
.kachel:hover, .kachel:focus-visible { border-color: var(--blau); box-shadow: 0 2px 4px rgba(15, 42, 56, .08), 0 10px 24px rgba(15, 42, 56, .12); transform: translateY(-1px); outline: 0; }
.kachel .kopf { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .5rem; }
.kachel .kbeschr { margin: -.2rem 0 .5rem; color: var(--grau); font-size: .9rem; overflow-wrap: anywhere; }
.vmbeschr { margin-top: -.4rem; color: var(--grau); overflow-wrap: anywhere; }
.reihe .breit { flex: 2 1 20rem; }
.kachel .name { font-weight: 650; font-size: 1.05rem; overflow-wrap: anywhere; }
.kachel .zeile { display: flex; justify-content: space-between; gap: .8rem; color: var(--grau); font-size: .88rem; margin-top: .25rem; }
.kachel .zeile b { color: #17232a; font-weight: 500; }
.kachel .kbalken { margin-top: .6rem; height: .45rem; }
.plan-rahmen { border-radius: var(--rund); }

/* Gruppen von Servern */
.leiste { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: center; margin: 0 0 1rem; }
section.gruppe { background: transparent; border: 1px dashed transparent; box-shadow: none; padding: .4rem .6rem .2rem; margin: 0 -.6rem .6rem; transition: background .15s, border-color .15s; }
section.gruppe.ziel { background: #e7f3f9; border-color: var(--blau); }
.gruppe-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .6rem; }
.gruppe-kopf h2 { margin: 0; }
.gruppe-kopf .knoepfe { margin: 0; }
.gruppe-pflege { margin-bottom: .8rem; }
.kachel-rahmen[draggable] { cursor: grab; }
.kachel-rahmen.gezogen { opacity: .45; }
.kachel-rahmen .kachel { height: 100%; }
.kachel-ordnen { display: flex; gap: .4rem; margin-top: .4rem; }
.kachel-ordnen select { flex: 1; padding: .3rem .4rem; }
.ablage { grid-column: 1 / -1; border: 1px dashed var(--linie); border-radius: var(--rund); padding: 1rem; margin: 0; text-align: center; }
main.schmal.breiter { max-width: 44rem; }
.knopf.klein { padding: .2rem .55rem; font-size: .85rem; font-weight: 500; }
form.sicht { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding: .55rem 0; border-top: 1px solid var(--linie); }
form.sicht:first-of-type { border-top: 0; }

/* Tabellen mit vielen Spalten (Protokoll, Server der Kunden): Sie passen sich der Breite an, statt rechts aus dem
   Rahmen zu laufen. Dafür bricht die letzte Spalte (Einzelheit) auch mitten im Wort um, ebenso Adressen; Nummern und Marken bleiben in einer Zeile. */
.tabelle.umbruch td:last-child { overflow-wrap: anywhere; }
.tabelle.umbruch td .mono, .tabelle.umbruch td.mono { word-break: normal; overflow-wrap: anywhere; }
/* eine IP-Adresse bricht nicht mitten in der Zahl um */
.tabelle td.adresse, .tabelle.umbruch td.adresse { white-space: nowrap; word-break: normal; overflow-wrap: normal; }
.tabelle.umbruch td:first-child, .tabelle.umbruch .marke-s { white-space: nowrap; overflow-wrap: normal; }

/* Versionen */
.release ul, ul.knapp { margin: .3rem 0 0; padding-left: 1.2rem; }
ul.knapp li { margin-bottom: .2rem; }
.release h2 .leise { font-size: .85rem; font-weight: 400; margin-left: .4rem; }
tr.aktuell td { background: #f2f9f4; }
footer a { color: inherit; }

/* Leistungen */
.bericht-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.bericht-kopf h2 { margin: 0 0 .3rem; font-size: 1.05rem; }
.bericht-kopf h2 .leise { font-weight: 400; font-size: .9rem; margin-left: .3rem; }
.berichttext { white-space: pre-line; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- Gestaltung ab 2026.49.5 (Konzept Abschnitt 30)
   Seitenleiste mit Symbolen, Kennzahl-Kacheln, Diagramme als SVG mit Klassen (die CSP erlaubt keine Inline-Stile),
   Dunkelmodus nach der Einstellung des Systems. Farben nur über die Variablen unten. */
:root { color-scheme: light; --text: #17232a; --flaeche: #fff; --flaeche2: #f8fafb; --linie: #dbe3e8; --hell: #f3f6f8; --grau: #55636c;
        --akzent: #1a7ea8; --akzent-weich: #e3f1f8; --akzent-text: #135e7e; --spur: #e6ecf0; --leiste: #12303f; --leiste-text: #cfe3ee;
        --leiste-gruppe: #8fb3c6; --orange: #d9822b; --orange-text: #8a4a0c; --orange-weich: #fdeedd; --gruen-weich: #e8f4e9;
        --ring-neu: #8ccbe6; --ring-arbeit: #1a7ea8; --ring-wartet: #d9822b; --ring-erledigt: #b9c7cf; --eingabe: #fff; --eingabe-rand: #bcc8cf; }
html { background: var(--hell); color: var(--text); }
body { display: block; }
.rahmen { display: flex; flex-wrap: wrap; min-height: 100vh; }
.seitenleiste { flex: 1 1 15rem; max-width: 100%; background: var(--leiste); padding: 1rem .75rem; display: flex; flex-direction: column; gap: .1rem; }
.rahmen.admin .seitenleiste { --leiste: #3b2a12; --leiste-text: #ecdcc4; --leiste-gruppe: #c9ad86; }
.seitenleiste a { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; min-height: 2.5rem; border-radius: 8px; color: var(--leiste-text); text-decoration: none; font-size: .92rem; }
.seitenleiste a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.seitenleiste a.aktiv { background: rgba(255, 255, 255, .15); color: #fff; font-weight: 600; }
.seitenleiste a.marke { color: #fff; font-weight: 650; font-size: 1rem; margin-bottom: .4rem; }
.seitenleiste a.marke svg { width: 1.5rem; height: 1.5rem; flex: none; }
.seitenleiste .gruppe { font-size: .7rem; letter-spacing: .07em; text-transform: uppercase; color: var(--leiste-gruppe); margin: 1rem .75rem .3rem; }
.seitenleiste .unten { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.seitenleiste .zaehler { margin-left: auto; background: var(--orange); color: #1c1208; font-size: .75rem; border-radius: 999px; padding: .05rem .5rem; }
.sym { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button .sym, .knopf .sym { width: 1.05rem; height: 1.05rem; vertical-align: -.2rem; margin-right: .35rem; }
.inhalt { flex: 999 1 36rem; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.inhalt main { flex: 1; max-width: 76rem; margin: 0; padding: 1rem 1.75rem 2rem; }
.inhalt main.schmal { max-width: 28rem; margin: 0 auto; }
.inhalt main.schmal.breiter { max-width: 44rem; }
.inhalt main.anmeldung { max-width: 62rem; margin: 0 auto; padding-top: 2.5rem; }
.rahmen .inhalt main.schmal { margin: 0; }
.inhalt main.breit { max-width: 110rem; }
header.kopfzeile { background: transparent; box-shadow: none; padding: .9rem 1.75rem 0; justify-content: flex-end; }
header.kopfzeile form { color: var(--grau); }
header.kopfzeile .person { display: inline-flex; align-items: center; gap: .5rem; color: var(--grau); }
header.kopfzeile .kuerzel { width: 2rem; height: 2rem; border-radius: 50%; background: var(--akzent-weich); color: var(--akzent-text); display: inline-grid; place-items: center; font-size: .85rem; }
header.kopfzeile button.klein.zweit { background: var(--flaeche); color: var(--akzent); border-color: var(--linie); }
header.kopfzeile button.klein.zweit:hover { background: var(--akzent-weich); color: var(--akzent-text); }
header.schlicht { justify-content: space-between; }
header.schlicht .marke { display: inline-flex; align-items: center; gap: .55rem; color: #fff; font-weight: 600; }
header.schlicht .marke svg { width: 1.5rem; height: 1.5rem; }
.inhalt > footer { text-align: left; padding: 1rem 1.75rem 1.5rem; }
@media (max-width: 52rem) {
  .seitenleiste { flex-direction: row; flex-wrap: wrap; padding: .5rem; gap: .2rem; }
  .seitenleiste .gruppe { display: none; }
  .seitenleiste a { min-height: 2.75rem; padding: .4rem .6rem; }
  .seitenleiste a.marke { flex: 1 1 100%; margin: 0; }
  .seitenleiste .unten { display: contents; }
  .inhalt main { padding: 1rem; }
  header.kopfzeile { padding: .6rem 1rem 0; }
}

/* Kopf einer Seite mit Knopf rechts */
.seitenkopf { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-bottom: 1rem; }
.seitenkopf h1 { margin: 0; flex: 1 1 14rem; }
.seitenkopf .leise { margin: .1rem 0 0; }
/* Kopfbild je Bereich (Abschnitt 33): dunkles Motiv, links freigelegt für die Überschrift */
.seitenkopf.mit-bild { position: relative; min-height: 7.5rem; padding: 1.4rem 1.6rem; border-radius: var(--rund); box-shadow: var(--schatten);
  background-color: #12303f; background-repeat: no-repeat; background-position: right center; background-size: cover; color: #fff; }
.seitenkopf.mit-bild h1 { color: #fff; text-shadow: 0 1px 12px rgba(5, 20, 28, .55); }
.seitenkopf.mit-bild .knopf { box-shadow: 0 2px 10px rgba(5, 20, 28, .35); }
.b-uebersicht { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-uebersicht.webp); }
.b-tickets { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-tickets.webp); }
.b-leistungen { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-leistungen.webp); }
.b-rechnungen { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-rechnungen.webp); }
.b-server { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-server.webp); }
.b-benutzer { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-benutzer.webp); }
.b-konto { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-konto.webp); }
.b-admin { background-image: linear-gradient(90deg, rgba(18, 48, 63, .95) 0%, rgba(18, 48, 63, .6) 40%, rgba(18, 48, 63, 0) 75%), url(/static/img/k-admin.webp); }
@media (max-width: 720px) { .seitenkopf.mit-bild { min-height: 5.5rem; padding: 1rem 1.1rem; } }
.knopf .sym, button .sym { stroke: currentColor; }

/* Kennzahl-Kacheln */
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kennzahl { display: block; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--rund); box-shadow: var(--schatten); padding: .9rem 1.1rem; color: inherit; text-decoration: none; }
a.kennzahl:hover { border-color: var(--akzent); }
.kennzahl .name { font-size: .85rem; color: var(--grau); }
.kennzahl .wert { display: flex; align-items: flex-end; gap: .4rem; font-size: 1.9rem; font-weight: 700; line-height: 1.25; color: var(--akzent); }
.kennzahl .zusatz { font-size: .8rem; color: var(--grau); }
.kennzahl.wartet { border-color: var(--orange); }
.kennzahl.wartet .wert { color: var(--orange-text); }
.kennzahl.gut .wert { color: var(--gruen); }
.verlauf { width: 6rem; height: 2rem; flex: none; }
.verlauf polyline { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

/* Karten der Übersicht */
.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); gap: 1rem; align-items: start; }
.karten > section { margin: 0; }
.kartenkopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .6rem; }
.kartenkopf h2 { margin: 0; }
.kartenkopf a { font-size: .85rem; }
.ringzeile { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; }
.ring { width: 7.5rem; height: 7.5rem; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .spur { stroke: var(--spur); }
.ring .s-neu { stroke: var(--ring-neu); } .ring .s-arbeit { stroke: var(--ring-arbeit); } .ring .s-wartet { stroke: var(--ring-wartet); } .ring .s-erledigt { stroke: var(--ring-erledigt); }
.ring text { fill: var(--text); font-weight: 700; font-size: 10px; text-anchor: middle; }
.ring text.klein { fill: var(--grau); font-weight: 400; font-size: 4px; }
.legende { display: grid; gap: .3rem; font-size: .88rem; flex: 1 1 10rem; margin: 0; padding: 0; list-style: none; }
.legende li { display: flex; align-items: center; gap: .5rem; }
.legende b { margin-left: auto; }
.punkt { width: .65rem; height: .65rem; border-radius: 3px; flex: none; display: inline-block; }
.punkt.p-neu { background: var(--ring-neu); } .punkt.p-arbeit { background: var(--ring-arbeit); } .punkt.p-wartet { background: var(--ring-wartet); } .punkt.p-erledigt { background: var(--ring-erledigt); }
ul.zeilen { list-style: none; margin: .8rem 0 0; padding: 0; border-top: 1px solid var(--linie); }
ul.zeilen li { border-bottom: 1px solid var(--linie); }
ul.zeilen a, ul.zeilen .zeile-inhalt { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; color: inherit; text-decoration: none; min-height: 2.75rem; }
ul.zeilen a:hover .titel { color: var(--akzent); }
ul.zeilen .nr { font-size: .8rem; color: var(--grau); width: 4.5rem; flex: none; }
ul.zeilen .titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status { font-size: .75rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; white-space: nowrap; }
.status.neu { background: var(--akzent-weich); color: var(--akzent-text); }
.status.arbeit { background: var(--akzent-weich); color: var(--akzent-text); }
.status.wartet { background: var(--orange-weich); color: var(--orange-text); }
.status.erledigt { background: var(--spur); color: var(--grau); }
.status.bearbeitung { background: var(--orange-weich); color: var(--orange-text); }
.balken { display: block; width: 100%; height: 9rem; overflow: visible; }
.balken rect { fill: var(--akzent); }
.balken rect.jetzt { fill: var(--ring-neu); }
.balken text { fill: var(--grau); font-size: 11px; text-anchor: middle; }
.balken line { stroke: var(--linie); stroke-width: 1; vector-effect: non-scaling-stroke; }
.balken.flach { height: 5rem; }
.termin { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--linie); }
.datumsblock { width: 3rem; flex: none; text-align: center; border-radius: 8px; background: var(--akzent-weich); color: var(--akzent-text); padding: .2rem 0; line-height: 1.15; }
.datumsblock b { display: block; font-size: 1.1rem; }
.datumsblock span { font-size: .72rem; }
.plaketten { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.plakette { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; padding: .35rem .75rem; border-radius: 8px; background: var(--spur); color: var(--grau); }
.plakette.gut { background: var(--gruen-weich); color: var(--gruen); }
.plakette.schlecht { background: #fdecea; color: var(--rot); }
.betraege { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: .75rem; }
.betraege b { display: block; font-size: 1.5rem; }
.betraege span { font-size: .85rem; color: var(--grau); }
.lizenzkacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin-top: .75rem; }
.lizenzkacheln div { border: 1px solid var(--linie); border-radius: 10px; padding: .55rem .75rem; display: flex; gap: .6rem; align-items: center; }
.lizenzkacheln .sym { color: var(--akzent); }
.lizenzkacheln span { display: block; font-size: .8rem; color: var(--grau); }

/* Reiter (Filter der Ticketliste) */
.reiter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.reiter a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .3rem .9rem; border-radius: 999px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); text-decoration: none; font-size: .9rem; }
.reiter a[aria-current] { background: var(--leiste); border-color: var(--leiste); color: #fff; }
.reiter a b { font-weight: 700; }

/* Ticket: Verlauf als Zeitleiste */
.zeitleiste { list-style: none; margin: .5rem 0 0 .55rem; padding: 0 0 0 1.2rem; border-left: 2px solid var(--linie); display: grid; gap: 1rem; }
.zeitleiste li { position: relative; }
.zeitleiste li::before { content: ""; position: absolute; left: -1.75rem; top: .15rem; width: 1rem; height: 1rem; border-radius: 50%; background: var(--akzent); border: 3px solid var(--flaeche); box-sizing: border-box; }
.zeitleiste li.mail::before { background: var(--orange); }
.zeitleiste li.leistung::before { background: var(--ring-arbeit); }
.zeitleiste li.kunde::before { background: var(--ring-neu); }
.zeitleiste .kopf { font-size: .8rem; color: var(--grau); }
.zeitleiste .text { white-space: pre-line; overflow-wrap: anywhere; }
.tickettext { white-space: pre-line; overflow-wrap: anywhere; background: var(--flaeche2); border-radius: 8px; padding: .75rem .9rem; }

/* Illustrationen */
.leer { text-align: center; padding: 1.5rem 1rem; color: var(--grau); }
.leer p { margin: .4rem 0 0; }
.leer .titel { font-weight: 600; color: var(--text); }
.bild { width: 10rem; height: auto; display: inline-block; }
/* Zustandsbilder (Abschnitt 33): schmückend, der Text daneben trägt die Aussage */
.foto { display: block; width: min(20rem, 100%); height: auto; aspect-ratio: 3 / 2; object-fit: cover; margin: 0 auto .6rem; border-radius: var(--rund); box-shadow: var(--schatten); background: #12303f; }
.fehlerseite .foto { width: min(24rem, 100%); }
.bild.gross { width: 14rem; }
.bild .b-schatten { fill: var(--spur); }
.bild .b-flaeche { fill: var(--flaeche); }
.bild .b-rand { fill: none; stroke: var(--akzent); stroke-width: 2.5; }
.bild .b-flaeche.b-rand { fill: var(--flaeche); }
.bild .b-hell { fill: var(--ring-neu); }
.bild .b-okgrund { fill: var(--gruen-weich); }
.bild .b-ok { fill: none; stroke: var(--gruen); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bild .b-warnung { fill: var(--orange-weich); }
.bild .b-warnstrich { fill: none; stroke: var(--orange-text); stroke-width: 3.5; stroke-linecap: round; }
.bild .b-strahl { fill: none; stroke: var(--ring-neu); stroke-width: 2.5; stroke-linecap: round; }
.fehlerseite { text-align: center; }
.fehlerseite .bild { margin-bottom: .5rem; }

/* Admin: Braucht Aufmerksamkeit */
ul.aufmerksam { list-style: none; margin: 0; padding: 0; }
ul.aufmerksam li { display: flex; gap: .75rem; align-items: flex-start; padding: .6rem 0; border-top: 1px solid var(--linie); }
ul.aufmerksam .zeichen { width: 2rem; height: 2rem; border-radius: 8px; flex: none; display: grid; place-items: center; }
ul.aufmerksam .zeichen.schlecht { background: #fdecea; color: var(--rot); }
ul.aufmerksam .zeichen.warn { background: var(--orange-weich); color: var(--orange-text); }
ul.aufmerksam .zeichen.info { background: var(--akzent-weich); color: var(--akzent-text); }
ul.aufmerksam .zeichen.gut { background: var(--gruen-weich); color: var(--gruen); }
ul.aufmerksam .leise { display: block; }

/* Dunkelmodus nach Systemeinstellung */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --text: #e6edf1; --flaeche: #17252d; --flaeche2: #1d2d36; --linie: #2a3a44; --hell: #0f1a20; --grau: #a3b3bc;
          --akzent: #5ab8e0; --akzent-weich: #1b3a4a; --akzent-text: #9fd6ee; --spur: #24343d; --leiste: #0a161c; --blau: #5ab8e0; --blau-dunkel: #3d9fcb;
          --orange-text: #f0a35e; --orange-weich: #3d2a14; --gruen: #7fd18a; --gruen-weich: #183326; --rot: #ff8a80; --gelb: #f0c674;
          --ring-neu: #a9dcf0; --ring-arbeit: #3d9fcb; --ring-wartet: #f0a35e; --ring-erledigt: #5d7280; --eingabe: #101c22; --eingabe-rand: #3a4c57;
          --schatten: 0 1px 2px rgba(0, 0, 0, .3); }
  .rahmen.admin .seitenleiste { --leiste: #241808; }
  section, .karte, .tabelle, .zahlen div, .auslastung figure, .kachel, table, .kennzahl { background: var(--flaeche); color: var(--text); }
  th { background: var(--flaeche2); color: var(--grau); }
  .tabelle table tbody tr:hover { background: var(--flaeche2); }
  tr.aktuell td { background: #183326; }
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=search], input[type=tel], select, textarea { background: var(--eingabe); color: var(--text); border-color: var(--eingabe-rand); }
  button, .knopf { background: var(--blau-dunkel); border-color: var(--blau-dunkel); color: #fff; }
  button.zweit, .knopf.zweit { background: transparent; color: var(--akzent); border-color: var(--eingabe-rand); }
  button.zweit:hover:not([disabled]), .knopf.zweit:hover { background: var(--akzent-weich); color: var(--akzent-text); }
  button.gefahr { background: #b3261e; border-color: #b3261e; }
  .meldung { background: #183326; border-color: #2e5c3a; color: #c8ecd0; }
  .fehler { background: #3a1714; border-color: #6e2a24; color: #ffc9c3; }
  .hinweis { background: #352a10; border-color: #6a5420; color: #f3dfa8; }
  .an { color: var(--gruen); border-color: #2e5c3a; background: #183326; }
  .aus { color: var(--grau); border-color: var(--linie); background: var(--flaeche2); }
  .warn { color: var(--gelb); border-color: #6a5420; background: #352a10; }
  .schlecht, .plakette.schlecht, ul.aufmerksam .zeichen.schlecht { color: #ffb4ab; border-color: #6e2a24; background: #3a1714; }
  .diagramm, .plan-rahmen { background: var(--flaeche2); }
  .plan .kasten { fill: var(--flaeche); }
  .plan .vmname { fill: var(--text); }
  .kbalken .grund { fill: var(--spur); }
  .kachel .zeile b { color: var(--text); }
  section.gruppe.ziel { background: var(--akzent-weich); }
  pre.befehl { background: #081116; }
  main.anmeldung .wortmarke { color: var(--text); }
  a { color: var(--akzent); }
}

/* Neues Ticket */
.ticketform input[type=text], .ticketform textarea { width: 100%; }
.ticketform textarea { font-family: inherit; font-size: 1rem; min-height: 12rem; }
.ticketform .reihe > div { flex: 1 1 12rem; }
.ticketform .reihe select { width: 100%; }
.tickettext-kurz { white-space: pre-line; overflow-wrap: anywhere; }

/* Mandanten im Adminbereich: Reiter und Liste (Konzept Abschnitt 35b) */
.reiterflaeche[hidden] { display: none; }
#mandant-reiter { position: sticky; top: 0; z-index: 2; background: var(--hell); padding: .5rem 0; margin-bottom: .5rem; }
form.suche { align-items: flex-end; }
form.suche #neuer-mandant { margin-left: auto; }
details#neu > summary, details#kontingent-allgemein > summary { font-weight: 600; margin: 1rem 0 .5rem; }
.leer-bild { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.leer-bild .foto { width: 9rem; height: auto; flex: none; margin: 0; border-radius: var(--rund); }
.leer-bild p { flex: 1 1 14rem; margin: 0; text-align: left; }
.zahlenleiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: .6rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.zahlenleiste li { display: flex; flex-direction: column; font-size: .8rem; color: var(--grau); }
.zahlenleiste li b { margin: 0; font-size: 1.15rem; color: var(--text); }
.kennzahlen.eng { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
form.suche > div:first-child { flex: 1 1 18rem; }
form.suche > div:first-child input { width: 100%; }
form.suche .knopf, form.suche button { flex: none; }
#mandant-kopf { margin-bottom: .6rem; }
a.sortieren { color: inherit; text-decoration: none; white-space: nowrap; }
a.sortieren:hover { text-decoration: underline; }
p.filter { margin: .4rem 0; }
p.filter a.marke-s { text-decoration: none; }
/* gewählter Reiter im Dunkelmodus: die Farbe der Seitenleiste hebt sich vom dunklen Grund nicht ab */
@media (prefers-color-scheme: dark) { .reiter a[aria-current] { background: var(--akzent); border-color: var(--akzent); color: #06141b; } }
/* Handy: Reiter der Mandantenseite in einer Zeile zum Wischen, damit die klebende Leiste nicht den halben Bildschirm füllt */
@media (max-width: 720px) {
  #mandant-reiter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  #mandant-reiter a { flex: none; }
}

/* Ansprechpartner in TANSS anlegen (Konzept Abschnitt 35f) */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form.kontakt-anlegen { margin-top: .3rem; gap: .4rem; flex-wrap: wrap; }
form.kontakt-anlegen input { width: 11em; }
/* Vorschläge aus dem Kunden-Wiki beim Anlegen eines Tickets (Abschnitt 37) */
.wiki-vorschlag { border: 1px solid var(--linie); border-radius: 8px; padding: .5rem .9rem; margin: .4rem 0 .8rem; background: var(--hell); }
.wiki-vorschlag h2 { font-size: 1rem; margin: .2rem 0 .4rem; }
.wiki-vorschlag ul { margin: 0; padding-left: 1.1rem; }
.wiki-vorschlag li { margin: .25rem 0; }
.wiki-vorschlag li .leise { font-size: .85rem; }
#funktionen input.zahl-eng { width: 4.5rem; }
#funktionen td, #verdeckte td { vertical-align: middle; }
