/* Kundenbereich — schlicht, ohne Markenauftritt (kundenportal-und-domain.md §1). */
:root {
  color-scheme: light;
  --text: #1d2125; --leise: #5f6b76; --linie: #dfe3e8; --flaeche: #f5f7f9; --weiss: #fff; --eingabe-linie: #c5ccd4;
  --akzent: #24539b; --akzent-dunkel: #1b4079; --link: var(--akzent); --akzent-hell: #e8eef8;
  --ok: #1f7a4d; --ok-hell: #e7f5ee; --ok-text: #14532d; --ok-linie: #b6e0c8;
  --warn: #9a5b00; --warn-hell: #fff4e0; --warn-text: #6b3f00; --warn-linie: #f3d39b;
  --fehler: #b42318; --fehler-hell: #fdecea; --fehler-text: #7a1a12; --fehler-linie: #f5c2bd;
  --leiste: #fff; --leiste-text: #3b434c; --leiste-leise: #6b7580; --leiste-an: #eef1f5; --leiste-linie: #e3e7ec;
  --schluessel: #fff4e0; --radius: 8px;
}
/* Dunkel: wie SiteMade. Ohne Wahl nach Systemeinstellung, sonst nach data-thema. */
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    color-scheme: dark;
    --text: #e6e8eb; --leise: #9aa3ad; --linie: #2a3039; --flaeche: #12151a; --weiss: #1a1e24; --eingabe-linie: #3a414b;
    --link: color-mix(in srgb, var(--akzent) 55%, #fff); --akzent-hell: rgba(120, 160, 230, .14);
    --ok: #5cc98a; --ok-hell: rgba(92, 201, 138, .13); --ok-text: #9be3b8; --ok-linie: rgba(92, 201, 138, .35);
    --warn: #f0b45a; --warn-hell: rgba(240, 180, 90, .13); --warn-text: #f6cf93; --warn-linie: rgba(240, 180, 90, .35);
    --fehler: #f47067; --fehler-hell: rgba(244, 112, 103, .13); --fehler-text: #f9a8a2; --fehler-linie: rgba(244, 112, 103, .35);
    --leiste: #171a1f; --leiste-text: #d4d8de; --leiste-leise: #8b939d; --leiste-an: #252a33; --leiste-linie: #262b33;
    --schluessel: rgba(240, 180, 90, .12);
  }
}
:root[data-thema="dunkel"] {
  color-scheme: dark;
  --text: #e6e8eb; --leise: #9aa3ad; --linie: #2a3039; --flaeche: #12151a; --weiss: #1a1e24; --eingabe-linie: #3a414b;
  --link: color-mix(in srgb, var(--akzent) 55%, #fff); --akzent-hell: rgba(120, 160, 230, .14);
  --ok: #5cc98a; --ok-hell: rgba(92, 201, 138, .13); --ok-text: #9be3b8; --ok-linie: rgba(92, 201, 138, .35);
  --warn: #f0b45a; --warn-hell: rgba(240, 180, 90, .13); --warn-text: #f6cf93; --warn-linie: rgba(240, 180, 90, .35);
  --fehler: #f47067; --fehler-hell: rgba(244, 112, 103, .13); --fehler-text: #f9a8a2; --fehler-linie: rgba(244, 112, 103, .35);
  --leiste: #171a1f; --leiste-text: #d4d8de; --leiste-leise: #8b939d; --leiste-an: #252a33; --leiste-linie: #262b33;
  --schluessel: rgba(240, 180, 90, .12);
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--flaeche); }
a { color: var(--link); }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; }
h2 { font-size: 1.1rem; margin: 2rem 0 .75rem; }
h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
p { margin: 0 0 .75rem; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
pre { background: #1d2125; color: #e8edf2; padding: 12px 14px; border-radius: var(--radius); overflow-x: auto; font-size: .82rem; line-height: 1.5; }

.kopf { background: var(--leiste); border-bottom: 1px solid var(--leiste-linie); }
.kopf .innen { max-width: 1080px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; min-height: 56px; flex-wrap: wrap; }
.kopf .marke { font-weight: 700; color: var(--text); text-decoration: none; }
.kopf nav { display: flex; gap: 18px; flex-wrap: wrap; flex: 1; }
.kopf nav a { color: var(--leise); text-decoration: none; padding: 16px 0; border-bottom: 2px solid transparent; }
.kopf nav a.an { color: var(--text); border-bottom-color: var(--akzent); }
.kopf .wer { color: var(--leise); font-size: .88rem; }

main { max-width: 1080px; margin: 0 auto; padding: 28px 16px 64px; }
.unter { color: var(--leise); margin-bottom: 1.5rem; }
.leise { color: var(--leise); }
.klein { font-size: .86rem; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

table { width: 100%; border-collapse: collapse; background: var(--weiss); }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); font-weight: 600; background: var(--flaeche); }
.tabelle { border: 1px solid var(--linie); border-radius: var(--radius); overflow-x: auto; }
.tabelle table { min-width: 640px; }
tr:last-child td { border-bottom: 0; }

.marke-status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--flaeche); color: var(--leise); }
.marke-status.aktiv { background: var(--ok-hell); color: var(--ok); }
.marke-status.gekuendigt, .marke-status.wartet { background: var(--warn-hell); color: var(--warn); }
.marke-status.gesperrt { background: var(--fehler-hell); color: var(--fehler); }

.meldung { padding: 12px 14px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.meldung.ok { background: var(--ok-hell); border-color: var(--ok-linie); color: var(--ok-text); }
.meldung.fehler { background: var(--fehler-hell); border-color: var(--fehler-linie); color: var(--fehler-text); }
.meldung.warn { background: var(--warn-hell); border-color: var(--warn-linie); color: var(--warn-text); }

label { display: block; font-weight: 600; font-size: .88rem; margin: 0 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--eingabe-linie); border-radius: 6px; font: inherit; background: var(--weiss); color: var(--text);
}
textarea { min-height: 90px; }
.feld { margin-bottom: 14px; }
.feld .hilfe { font-size: .82rem; color: var(--leise); margin-top: 4px; }
.reihe { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.reihe > .feld { flex: 1; min-width: 160px; }
.haken { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.haken input { margin-top: 4px; }

.knopf { display: inline-block; padding: 9px 16px; border-radius: 6px; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.knopf:hover { background: var(--akzent-dunkel); }
.knopf.zweit { background: var(--weiss); color: var(--link); border-color: var(--link); }
.knopf.zweit:hover { background: var(--akzent-hell); }
.knopf.gefahr { background: var(--weiss); color: var(--fehler); border-color: var(--fehler-linie); }
.knopf.gefahr:hover { background: var(--fehler-hell); }
.knopf.klein { padding: 5px 10px; font-size: .85rem; }
form.inline { display: inline; }

.wahl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.wahl label { font-weight: 400; border: 1px solid var(--linie); border-radius: var(--radius); padding: 14px; background: var(--weiss); cursor: pointer; display: block; }
.wahl input { margin-right: 6px; }
.wahl label:has(input:checked) { border-color: var(--akzent); box-shadow: 0 0 0 1px var(--akzent); }
.wahl .preis { font-size: 1.15rem; font-weight: 700; margin: 6px 0 2px; }

.schluessel { font-family: ui-monospace, Menlo, monospace; font-size: 1rem; background: var(--schluessel); border: 1px dashed #d9a441; padding: 10px 12px; border-radius: 6px; word-break: break-all; }

.zugang { max-width: 420px; margin: 8vh auto; }
.fuss { max-width: 1080px; margin: 0 auto; padding: 24px 16px; color: var(--leise); font-size: .85rem; display: flex; gap: 18px; }
.fuss a { color: var(--leise); }
.vertrag h2 { margin-top: 1.75rem; } .vertrag { max-width: 760px; }
@media (max-width: 640px) { main { padding-top: 20px; } .kopf nav { gap: 12px; } }

/* Websites */
.preis-gross { font-size: 1.35rem; font-weight: 700; margin: 2px 0; }
.leistungen { margin: 8px 0 0; padding-left: 1.2rem; }
.leistungen li { margin: 2px 0; }
.marke-status.live, .marke-status.bestellt, .marke-status.erledigt { background: var(--ok-hell); color: var(--ok); }
.marke-status.in_arbeit, .marke-status.angeboten { background: var(--warn-hell); color: var(--warn); }
.unternav { display: flex; gap: 16px; flex-wrap: wrap; margin: -8px 0 20px; font-size: .9rem; }
.unternav a { color: var(--leise); text-decoration: none; }
.unternav a.an { color: var(--text); font-weight: 600; }
.vertrag th { color: var(--leise); }
.angebote { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.kopierfeld { width: 100%; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
dl.daten { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.daten dt { color: var(--leise); }
dl.daten dd { margin: 0; }

/* Flotte: Ampel je Installation */
.ampel { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #c4cad1; margin-right: 7px; vertical-align: baseline; }
.ampel.gruen { background: var(--ok); }
.ampel.gelb { background: #d99a00; }
.ampel.rot { background: var(--fehler); }
.marke-status.vorschau { background: var(--warn-hell); color: var(--warn); }
.marke-status.freigegeben { background: var(--ok-hell); color: var(--ok); }

/* Tabellen in Handbuch und Vertragstexten (Markdown) */
.vertrag table { display: block; overflow-x: auto; margin: 12px 0 20px; font-size: .92rem; border: 1px solid var(--linie, #dfe3e8); border-radius: 6px; }
.vertrag th { text-align: left; background: var(--flaeche); }
.vertrag th, .vertrag td { vertical-align: top; }
.vertrag pre { margin: 10px 0 16px; }

/* Marke (Bestellseiten und Kundenbereich unter einer Marke) */
.kopf .marke { display: flex; align-items: center; gap: 10px; }
.marke-logo { height: 24px; width: auto; display: block; }
.marke-zusatz { font-weight: 600; color: var(--leise); font-size: .85rem; border-left: 1px solid var(--linie); padding-left: 10px; }
.fuss { flex-wrap: wrap; }

/* Neuigkeiten */
.neuigkeiten-raster { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 20px; align-items: start; }
.neuigkeit h3 { font-size: 1rem; margin: 14px 0 6px; }
.neuigkeit ul { margin: 0 0 8px; padding-left: 20px; }
@media (max-width: 760px) { .neuigkeiten-raster { grid-template-columns: 1fr; } }

/* Meldungen */
.marke-status.meldung-neu { background: var(--warn-hell); color: var(--warn); }
.marke-status.meldung-bestaetigt, .marke-status.meldung-geplant { background: var(--akzent-hell); color: var(--link); }
.marke-status.meldung-erledigt { background: var(--ok-hell); color: var(--ok); }

/* ── Rahmen mit Seitenleiste (angemeldet), im Stil von SiteMade ───────── */
.icon { flex: 0 0 auto; display: block; }
.mit-leiste { --leiste-breite: 264px; }
.rahmen { display: flex; min-height: 100vh; }
.leiste { width: var(--leiste-breite); flex: 0 0 var(--leiste-breite); background: var(--leiste); color: var(--leiste-text); border-right: 1px solid var(--leiste-linie);
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; padding: 18px 12px 12px; }
.leiste-marke { display: flex; align-items: center; gap: 10px; padding: 4px 10px 22px; font-weight: 700; font-size: 1.12rem; color: var(--leiste-text); text-decoration: none; letter-spacing: -.01em; }
.leiste-marke .marke-logo { height: 28px; }
.leiste-zeichen { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--akzent); color: #fff; }
.leiste-zeichen .icon { width: 18px; height: 18px; }
.leiste-nav { display: flex; flex-direction: column; gap: 2px; }
.leiste-nav a, .leiste-gruppe > summary { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--leiste-text); text-decoration: none; font-size: .95rem; cursor: pointer; }
.leiste-nav a .icon, .leiste-gruppe > summary .icon { color: var(--leiste-leise); }
.leiste-nav a:hover, .leiste-gruppe > summary:hover { background: var(--leiste-an); }
.leiste-nav a.an { background: var(--leiste-an); font-weight: 600; }
.leiste-nav a.an .icon { color: var(--leiste-text); }
.leiste-gruppe { margin-top: 14px; }
.leiste-gruppe > summary { list-style: none; font-weight: 600; }
.leiste-gruppe > summary::-webkit-details-marker { display: none; }
.leiste-gruppe > summary span { flex: 1; }
.leiste-gruppe > summary .pfeil { width: 16px; height: 16px; transition: transform .15s; }
.leiste-gruppe[open] > summary .pfeil { transform: rotate(180deg); }
.leiste-gruppe > a { padding-left: 24px; font-size: .92rem; }
.leiste .fuss { margin: auto 0 0; padding: 18px 10px 4px; border-top: 1px solid var(--leiste-linie); display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; max-width: none; }
.leiste .fuss a { color: var(--leiste-leise); text-decoration: none; }
.leiste .fuss a:hover { color: var(--leiste-text); }
.leiste .fuss span { width: 100%; color: var(--leiste-leise); }

.spalte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oben { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 20px; background: var(--leiste); border-bottom: 1px solid var(--leiste-linie); }
.oben-rechts { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--leiste-leise); cursor: pointer; padding: 0; text-decoration: none; }
.symbol:hover, .symbol.an { background: var(--leiste-an); color: var(--leiste-text); }
.wer { display: flex; align-items: center; gap: 10px; margin: 0 4px 0 10px; color: var(--leiste-text); font-size: .92rem; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--leiste-an); color: var(--leiste-text); font-weight: 600; font-size: .85rem; letter-spacing: .02em; border: 1px solid var(--leiste-linie); }
.wer-name { font-weight: 500; }
.abzeichen { font-size: .72rem; padding: 2px 8px; border-radius: 6px; background: var(--leiste-an); color: var(--leiste-leise); }
.leiste-knopf { display: none; }
.leiste-schleier { display: none; }
.mit-leiste main { max-width: 1120px; width: 100%; margin: 0; padding: 28px 28px 64px; }
/* Ein Icon je Thema */
.nur-dunkel { display: none; }
:root[data-thema="dunkel"] .nur-dunkel { display: block; } :root[data-thema="dunkel"] .nur-hell { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .nur-dunkel { display: block; } :root:not([data-thema="hell"]) .nur-hell { display: none; }
}
/* Logos sind meist für hellen Grund gemacht */
:root[data-thema="dunkel"] .marke-logo { background: #fff; padding: 4px 8px; border-radius: 6px; box-sizing: content-box; }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) .marke-logo { background: #fff; padding: 4px 8px; border-radius: 6px; box-sizing: content-box; } }
/* … außer die Marke hat ein eigenes Logo für dunklen Grund: dann das, ohne Fläche */
.marke-logo.marke-logo-dunkel { display: none; }
:root[data-thema="dunkel"] .marke-logo.hat-dunkel { display: none; }
:root[data-thema="dunkel"] .marke-logo.marke-logo-dunkel { display: block; background: none; padding: 0; }
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) .marke-logo.hat-dunkel { display: none; }
  :root:not([data-thema="hell"]) .marke-logo.marke-logo-dunkel { display: block; background: none; padding: 0; }
}

@media (max-width: 900px) {
  .leiste { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .leiste-offen .leiste { transform: none; }
  .leiste-offen .leiste-schleier { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(0, 0, 0, .45); }
  .leiste-knopf { display: grid; }
  .oben { padding: 8px 12px; }
  .mit-leiste main { padding: 20px 16px 48px; }
}
@media (max-width: 560px) { .wer-name, .abzeichen { display: none; } .wer { margin-left: 4px; } }

/* Reiter (Kontoeinstellungen) */
.reiter { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; margin: 4px 0 20px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; }
.reiter a { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 9px; color: var(--leise); text-decoration: none; font-size: .92rem; }
.reiter a .icon { width: 17px; height: 17px; }
.reiter a:hover { color: var(--text); }
.reiter a.an { background: var(--flaeche); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--linie); }
.karte.schmal { max-width: 640px; }
.knopf .icon { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }
.raster { align-items: start; }
@media (max-width: 640px) { .reiter { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; } .reiter a { white-space: nowrap; } }
/* Rechtliches unten in der Leiste: kleiner Link, klappt nach oben auf */
.leiste .fuss { position: relative; }
.rechtliches { width: 100%; }
.rechtliches > summary { list-style: none; cursor: pointer; color: var(--leiste-leise); font-size: .78rem; display: inline-flex; align-items: center; gap: 4px; }
.rechtliches > summary::-webkit-details-marker { display: none; }
.rechtliches > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(-45deg); margin: 3px 0 0 3px; }
.rechtliches[open] > summary::after { transform: rotate(135deg); margin-top: -3px; }
.rechtliches > summary:hover { color: var(--leiste-text); }
.rechtliches-liste { position: absolute; left: 6px; right: 6px; bottom: calc(100% - 8px); display: flex; flex-direction: column; gap: 2px; padding: 6px;
  background: var(--leiste); border: 1px solid var(--leiste-linie); border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.leiste .rechtliches-liste a { padding: 7px 10px; border-radius: 7px; font-size: .85rem; color: var(--leiste-text); }
.leiste .rechtliches-liste a:hover { background: var(--leiste-an); }
.meldung.info { background: var(--akzent-hell); border-color: color-mix(in srgb, var(--link) 35%, transparent); color: var(--text); }
.marke-status.aufbau { background: var(--akzent-hell); color: var(--link); }
.knopf[disabled] { opacity: .5; cursor: not-allowed; }

.schritte { padding-left: 22px; margin: 0 0 16px; }
.schritte li { margin-bottom: 6px; }

/* Preissumme auf Kauf- und Buchungsseiten */
.preis-summe { border: 1px solid var(--akzent); background: var(--akzent-hell); border-radius: var(--radius); padding: 16px 18px; margin: 4px 0 16px; }
.preis-summe-titel { font-size: .85rem; font-weight: 600; color: var(--link); text-transform: uppercase; letter-spacing: .04em; }
.preis-summe-betrag { margin: 2px 0 4px; line-height: 1.15; }
.preis-summe-betrag [data-je] { font-size: 2rem; font-weight: 800; }
.preis-summe-takt { font-size: 1.05rem; font-weight: 600; }
.preis-summe [data-gesamt] { margin: 2px 0 4px; }
.preis-summe-alternativ { font-size: .92rem; margin-bottom: 4px; }
.preis-summe-alternativ:empty { display: none; }

/* Formatierte Freitexte (Service\Textformat) und Formatleiste über Textfeldern */
.formatiert > :first-child { margin-top: 0; }
.formatiert > :last-child { margin-bottom: 0; }
.formatiert p { margin: 0 0 .7em; }
.formatiert ul, .formatiert ol { margin: 0 0 .7em; padding-left: 1.3em; }
.formatiert li { margin: .15em 0; }
.format-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.format-leiste button { font: inherit; font-size: .82rem; line-height: 1; padding: 5px 9px; border: 1px solid var(--linie); border-radius: 5px; background: var(--weiss); color: var(--text); cursor: pointer; }
.format-leiste button:hover { border-color: var(--akzent); }
.format-leiste .leise { margin-left: 6px; }
.formatiert a.video { display: inline-block; padding: 6px 12px; margin: 2px 0; border: 1px solid var(--akzent); border-radius: 6px; text-decoration: none; font-weight: 600; }
.formatiert a.video:hover { background: var(--akzent-hell); }

/* Karten untereinander (z. B. Installation → Aktionen); Reihenfolge über style="order:n" */
.stapel { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.stapel > .karte { margin: 0; }

/* Installationen als Karten (Verwaltung → Installationen) */
.inst-liste { display: grid; gap: 10px; }
.inst { position: relative; background: var(--weiss); border: 1px solid var(--linie); border-left: 4px solid var(--linie); border-radius: var(--radius); padding: 12px 16px; transition: border-color .15s, box-shadow .15s; }
.inst-gruen { border-left-color: var(--ok); }
.inst-gelb { border-left-color: #d99a00; }
.inst-rot { border-left-color: var(--fehler); }
.inst:hover { border-color: color-mix(in srgb, var(--akzent) 45%, var(--linie)); box-shadow: 0 1px 6px rgba(0, 0, 0, .06); }
.inst-kopf { display: flex; align-items: center; gap: 10px; }
.inst-kopf .ampel { margin: 0; flex: 0 0 auto; }
.inst-titel { flex: 1; min-width: 0; }
.inst-name { font-weight: 700; font-size: 1.02rem; color: var(--text); text-decoration: none; }
a.inst-name::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* ganze Karte klickbar */
.inst-domain { font-size: .86rem; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inst-marken { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.inst-marken:empty { display: none; }
.inst-fakten { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 8px 0 0 20px; font-size: .84rem; color: var(--leise); }
.inst-fakten a, .inst-marken [title] { position: relative; z-index: 1; } /* über dem Kartenlink */
.inst-hinweise { margin: 8px 0 0 20px; padding: 8px 12px; list-style: none; background: var(--fehler-hell); border-radius: 6px; font-size: .84rem; color: var(--fehler-text); }
.inst-hinweise li + li { margin-top: 3px; }
.inst-hinweise.warn { background: var(--warn-hell); color: var(--warn-text); }
.inst-aus { opacity: .7; }
/* Lizenzen als Karten (Verwaltung → Konto): Fuss mit Hauptknopf und zwei Menüs */
.inst-domain-inline { margin-left: 6px; font-size: .9rem; color: var(--leise); }
.inst-hinweise > div + div { margin-top: 3px; }
.inst-hinweis-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.inst-hinweis-zeile form { margin: 0; }
.inst-fuss { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0 20px; }
.inst-menues { position: relative; display: flex; gap: 8px; margin-left: auto; }
.inst-menue > summary { list-style: none; cursor: pointer; user-select: none; }
.inst-menue > summary::-webkit-details-marker { display: none; }
.inst-menue > summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); }
.inst-menue[open] > summary::after { margin-bottom: -2px; transform: rotate(225deg); }
.inst:has(.inst-menue[open]) { z-index: 3; }
.menue-tafel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 220px; display: grid; gap: 2px; padding: 6px; background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.menue-tafel.breit { width: min(400px, calc(100vw - 48px)); gap: 14px; padding: 14px; }
.menue-tafel form { margin: 0; }
.menue-tafel hr { margin: 4px 0; border: 0; border-top: 1px solid var(--linie); }
.menue-punkt { display: block; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; font: inherit; font-size: .9rem; text-align: left; color: var(--text); cursor: pointer; }
.menue-punkt:hover { background: var(--flaeche); }
.menue-punkt.gefahr { color: var(--fehler); }
.menue-punkt.gefahr:hover { background: var(--fehler-hell); }
.menue-feld { display: grid; gap: 5px; }
.menue-reihe { display: flex; gap: 6px; }
.menue-reihe input, .menue-reihe select, .menue-feld > select { padding: 6px 9px; font-size: .88rem; min-width: 0; }
.menue-reihe input, .menue-reihe select { flex: 1; }
.menue-reihe .knopf { flex: 0 0 auto; }
@media (max-width: 640px) {
    .inst { padding: 12px; }
    .inst-kopf { flex-wrap: wrap; }
    .inst-marken { width: 100%; justify-content: flex-start; padding-left: 20px; }
    .inst-fakten { gap: 2px 12px; }
    .inst-fuss { margin-left: 0; }
    .inst-domain-inline { display: block; margin-left: 0; }
}

/* Web-App (Home-Bildschirm): Neu-laden-Symbol und Herunterziehen */
html:not(.webapp) .nur-webapp { display: none !important; }
.ziehen-neu { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 8px); left: 50%; z-index: 100; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--weiss); border: 1px solid var(--linie); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); color: var(--leise); opacity: 0; transform: translate(-50%, 0); transition: opacity .15s, color .15s; pointer-events: none; }
.ziehen-neu.bereit { color: var(--akzent); }
.ziehen-neu.laedt svg { animation: ziehen-dreh .8s linear infinite; }
@keyframes ziehen-dreh { to { transform: rotate(360deg); } }

/* Fehlerprotokoll: Meldungen umbrechen, lange aufklappbar */
.protokoll-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; white-space: pre-wrap; word-break: break-word; }
.protokoll-text summary { cursor: pointer; list-style: none; }
.protokoll-text summary::-webkit-details-marker { display: none; }

/* Angebot: Ergebnis von Hand — aufgeklapptes Formular über die ganze Breite */
.ergebnis-menue > summary { list-style: none; cursor: pointer; }
.ergebnis-menue > summary::-webkit-details-marker { display: none; }
.ergebnis-menue[open] { flex-basis: 100%; order: -1; }

/* config/config.yaml im Kundenbereich */
textarea.yaml-editor { width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; line-height: 1.5; tab-size: 2; white-space: pre; overflow-x: auto; }
pre.yaml-ansicht { margin: 6px 0 0; padding: 10px 12px; background: var(--flaeche); border-radius: 8px; font-size: .8rem; line-height: 1.45; max-height: 320px; overflow: auto; white-space: pre; }

/* Aufgabenleiste unten rechts: laufende und wartende Server-Aufträge (base.html.twig) */
.aufgaben { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: min(340px, calc(100vw - 32px)); background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .14); font-size: .88rem; }
.aufgaben[hidden] { display: none; }
.aufgaben-kopf { display: flex; align-items: center; }
.aufgaben-titel { flex: 1; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.aufgaben-titel::after { content: ""; width: 7px; height: 7px; margin-left: auto; border-right: 2px solid var(--leise); border-bottom: 2px solid var(--leise); transform: rotate(45deg) translate(-2px, -2px); }
.aufgaben.eingeklappt .aufgaben-titel::after { transform: rotate(-135deg) translate(-2px, -2px); }
.aufgaben-zahl { color: var(--leise); font-weight: 400; }
.aufgaben-zu { border: 0; background: none; color: var(--leise); font-size: 1.15rem; line-height: 1; padding: 6px 12px 8px 4px; cursor: pointer; }
.aufgaben-zu:hover { color: var(--text); }
.aufgaben-dreh { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid var(--ok-linie); background: var(--ok-hell); }
.aufgaben-dreh.an { border: 2px solid var(--akzent-hell); border-top-color: var(--akzent); background: none; animation: aufgabe-dreh .8s linear infinite; }
.aufgaben-liste { list-style: none; margin: 0; padding: 0 0 4px; max-height: 50vh; overflow-y: auto; border-top: 1px solid var(--linie); }
.aufgaben.eingeklappt .aufgaben-liste { display: none; }
.aufgabe { display: flex; gap: 10px; align-items: flex-start; padding: 7px 12px; line-height: 1.4; }
.aufgabe + .aufgabe { border-top: 1px solid var(--linie); }
.aufgabe-zeichen { width: 16px; height: 16px; flex: none; margin-top: 3px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; }
.aufgabe.laeuft .aufgabe-zeichen { border: 2px solid var(--akzent-hell); border-top-color: var(--akzent); animation: aufgabe-dreh .8s linear infinite; }
.aufgabe.wartet .aufgabe-zeichen { border: 2px dotted var(--leise); }
.aufgabe.erledigt .aufgabe-zeichen { background: var(--ok-hell); color: var(--ok); }
.aufgabe.fehler .aufgabe-zeichen { background: var(--fehler-hell); color: var(--fehler); }
.aufgabe-text { flex: 1; display: grid; grid-template-columns: 1fr auto; column-gap: 8px; min-width: 0; color: var(--text); text-decoration: none; }
a.aufgabe-text:hover strong { text-decoration: underline; }
.aufgabe-wo { grid-column: 1 / -1; color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aufgabe-status { color: var(--leise); font-size: .8rem; white-space: nowrap; align-self: center; }
.aufgabe.fehler .aufgabe-status { color: var(--fehler); }
.aufgabe.wartet { opacity: .8; }
@keyframes aufgabe-dreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aufgaben-dreh.an, .aufgabe.laeuft .aufgabe-zeichen { animation-duration: 2.4s; } }
@media print { .aufgaben, .auftrag-fertig { display: none !important; } }
.auftrag-fertig { position: fixed; right: 16px; bottom: 16px; z-index: 50; margin: 0; max-width: 360px; box-shadow: 0 4px 18px rgba(0, 0, 0, .15); display: flex; gap: 10px; align-items: center; transition: opacity .4s; }
.auftrag-fertig.weg { opacity: 0; }

/* Hosting im Kundenbereich: Status, Eckdaten, Speicherbalken, Vorschauadresse */
.stapel.voll { max-width: none; }
.hosting-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hosting-kopf h2 { margin: 0; }
.hosting-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--ok-hell); color: var(--ok-text); font-size: .85rem; font-weight: 600; }
.hosting-status .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.hosting-status.endet { background: var(--warn-hell); color: var(--warn-text); }
.hosting-status.endet .punkt { background: var(--warn); box-shadow: none; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 18px 0; }
.fakt { margin: 0; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; min-width: 0; }
.fakt dt { color: var(--leise); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.fakt dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.speicher-zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.speicher-zeile span { color: var(--leise); }
.speicher-zeile span strong { color: var(--text); }
.speicher-balken { height: 10px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 99px; overflow: hidden; }
.speicher-balken span { display: block; height: 100%; background: var(--akzent); border-radius: 99px; transition: width .4s; }
.speicher-balken.knapp span { background: var(--warn); }
.speicher-balken.voll span { background: var(--fehler); }
.adresse { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; }
.adresse > a { min-width: 0; overflow-wrap: anywhere; text-decoration: none; }
.adresse > a:hover { text-decoration: underline; }
.adresse-knoepfe { display: inline-flex; gap: 6px; flex: none; }
.zugang-zeile { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--linie); }
.zugang-zeile form { flex: none; }
@media (max-width: 640px) { .zugang-zeile { flex-direction: column; align-items: flex-start; gap: 10px; } }
