/* Stil nach dem Canvas "Stulz Backoffice" (12.10.2026).
   Schwarz/Weiss wie das Logo, Akzent nur Petrol #1E9499, Ueberschriften Versal.
   Keine Web-Fonts: der Prototyp laedt nichts von fremden Servern.
   Jost aus dem Canvas wird durch Futura/Avenir ersetzt (auf dem Mac vorhanden). */
:root {
  --ink: #111214;
  --paper: #FFFFFF;
  --ground: #F3F5F5;
  --ground-portal: #F7F8F8;
  --line: #E1E6E6;
  --line-strong: #C9D1D1;
  --muted: #5E6868;
  --petrol: #1E9499;
  --petrol-dark: #0E6B67;
  --focus: #168F8A;
  --ok-bg: #E3F1EA; --ok: #1F6B44;
  --warn-bg: #FBF0DC; --warn: #8A5A0B;
  --crit-bg: #FBE5E3; --crit: #A1271B;
  --info-bg: #E2F0EF; --info: #0E6B67;
  --mute-bg: #EEF1F1;
  --head: "Jost", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.45; }
body.portal { background: var(--ground-portal); }
a { color: var(--petrol-dark); }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.cap { font-family: var(--head); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 500; color: var(--muted); }
.h { font-family: var(--head); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; margin: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.kursiv { font-style: italic; color: var(--muted); margin: 0; }
.rechts { text-align: right; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 4px; font-weight: 700; font-size: 14px; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; font-family: inherit; background: var(--paper); color: var(--ink); }
.btn.p { background: var(--ink); color: var(--paper); }
.btn.p:hover { background: var(--petrol-dark); border-color: var(--petrol-dark); color: var(--paper); }
.btn.g:hover { background: #E4ECEB; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.klein { min-height: 36px; padding: 0 12px; font-size: 13px; }

.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok); }
.warn { background: var(--warn-bg); color: var(--warn); }
.crit { background: var(--crit-bg); color: var(--crit); }
.info { background: var(--info-bg); color: var(--info); }
.mute { background: var(--mute-bg); color: var(--muted); }

.meldung { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 6px; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.karte { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.reihe { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.spalte { display: flex; flex-direction: column; gap: 6px; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld label { font-weight: 700; font-size: 14px; }
.fld input, .fld select, .fld textarea, input.feld { min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; background: var(--paper); color: var(--ink); }
.fld textarea { padding: 10px 12px; min-height: 72px; }
input.zahl { width: 72px; text-align: center; font-family: var(--mono); }
input.nr { width: 140px; min-height: 36px; font-family: var(--mono); font-size: 13px; }
input.nr.leer { border-color: var(--crit); }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }

table.tab { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tab th { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; color: var(--muted); font-weight: 500; text-align: left; padding: 8px 10px; }
table.tab td { padding: 10px; border-top: 1px solid var(--line); vertical-align: middle; }
table.tab tr.summe td { border-top: 2px solid var(--ink); font-weight: 700; }
table.tab tr.sel td { background: var(--info-bg); }
table.tab tr.fehler td { background: var(--crit-bg); }
.tabbox { overflow-x: auto; }

/* --- Kundenportal --- */
.kopf { background: var(--paper); border-bottom: 1px solid var(--line); }
.kopf-oben { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 22px 48px; }
.logo { display: flex; align-items: flex-end; gap: 6px; text-decoration: none; color: var(--ink); }
.logo span { font-family: var(--head); font-weight: 500; letter-spacing: .09em; line-height: 1.15; font-size: 18px; }
.top { font-family: var(--head); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--ink); text-decoration: none; padding: 8px 0; }
.top:hover { color: var(--petrol-dark); }
.subnav { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0 48px; }
.sub { font-size: 14px; color: var(--muted); text-decoration: none; padding: 14px 0; border-bottom: 2px solid transparent; }
.sub:hover { color: var(--ink); }
.sub.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.inhalt { width: 100%; max-width: 1240px; margin: 0 auto; padding: 36px 48px 56px; display: flex; flex-direction: column; gap: 32px; }
.fuss { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--paper); }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.schritte li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #7C8787; }
.schritte li.an { color: var(--ink); }
.schritte li span { height: 4px; border-radius: 2px; background: var(--line); }
.schritte li.fertig span { background: var(--ink); }
.schritte li.jetzt span { background: var(--petrol); }
.abruf { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.abruf .k { width: 28px; color: var(--muted); }
.abruf .n { flex: 1; min-width: 0; }

.login { display: flex; flex-wrap: wrap; min-height: calc(100vh - 160px); }
.login-links { flex: 1 1 420px; min-width: 0; background: var(--ink); color: var(--paper); padding: 72px 56px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-rechts { flex: 1 1 420px; min-width: 0; padding: 72px 56px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.login-spalte { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; }
.login-spalte > form { display: flex; flex-direction: column; gap: 20px; }
.strich { width: 40px; height: 2px; background: var(--petrol); display: block; }

/* --- Backoffice --- */
.bo { display: flex; flex-wrap: wrap; min-height: 100vh; }
.seitenleiste { flex: 1 1 220px; max-width: 260px; background: var(--ink); padding: 28px 18px; display: flex; flex-direction: column; gap: 28px; }
.seitenleiste .logo span { color: var(--paper); font-size: 16px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 6px; color: var(--line-strong); text-decoration: none; font-size: 14px; }
.nav:hover { background: #1E2124; color: var(--paper); }
.nav.on { background: var(--paper); color: var(--ink); font-weight: 700; }
.nav.aus { color: #7C8787; cursor: default; }
.nav.aus:hover { background: transparent; color: #7C8787; }
.bo-inhalt { flex: 999 1 560px; min-width: 0; padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 24px; }
.ablauf { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ablauf li { display: flex; align-items: center; gap: 10px; flex: 1 1 180px; min-width: 0; padding: 14px 16px; background: var(--paper); border-radius: 6px; font-size: 14px; }
.ablauf li.jetzt { outline: 2px solid var(--ink); outline-offset: -2px; }
.punkt { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex: none; background: var(--line); color: var(--ink); }
.punkt.fertig { background: var(--ok); color: var(--paper); }
.punkt.stopp { background: var(--crit); color: var(--paper); }
.punkt.jetzt { background: var(--ink); color: var(--paper); }
.vorschau { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); }
details.protokoll pre { font-family: var(--mono); font-size: 12px; background: var(--mute-bg); padding: 12px; border-radius: 4px; overflow-x: auto; white-space: pre-wrap; }


/* --- Ergaenzungen fuer das ganze Portal --- */
.springen { position: absolute; left: -9999px; }
.springen:focus { left: 16px; top: 8px; z-index: 10; background: var(--paper); padding: 8px 12px; border: 2px solid var(--focus); }
.sr { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.kopf-rechts { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.zahl-chip { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--petrol); color: var(--paper); font-size: 12px; font-weight: 700; align-items: center; justify-content: center; font-family: var(--body); letter-spacing: 0; }
.zahl-chip.warn { background: var(--warn); }
.chip.demo { background: #F1E8F7; color: #5B2C86; }
.rot { color: var(--crit); }
.klein { font-size: 12px; }
.kopfzeile { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
header.kopfzeile { align-items: flex-end; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.zeile:first-of-type { border-top: 0; }
.zeile.ungelesen { font-weight: 700; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.qa { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); min-height: 96px; }
.qa span { font-size: 13px; color: var(--muted); }
.qa:hover { border-color: var(--ink); }
.qa.achtung { border-color: var(--warn); }
.qa.achtung span { color: var(--warn); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fil { min-height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); text-decoration: none; font-size: 14px; }
.fil.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
select.feld { min-height: 36px; }
dl.liste { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 18px; font-size: 14px; }
dl.liste dt { color: var(--muted); }
dl.liste dd { margin: 0; }
fieldset.gruppe { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
fieldset.gruppe legend { padding: 0 0 12px; font-size: 16px; }
.kachelwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 76px; border-radius: 4px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; }
.tile span { font-size: 12px; color: var(--muted); }
.tile input, .pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile:has(input:checked) { border: 2px solid var(--ink); padding: 13px 15px; background: var(--ground); }
.tile:has(input:focus-visible), .pill:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pillen { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-size: 14px; }
.pill:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.karte.dunkel { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.karte.link { text-decoration: none; }
.karte.link:hover { background: #24282B; }
.karte.gewinner { border: 2px solid var(--ink); }
.angebot { display: flex; flex-direction: column; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.angebot.aktuell { border: 2px solid var(--ink); border-radius: 6px; padding: 16px; }
.preis { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.knoepfe form { margin: 0; }
.haken { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; min-height: 44px; }
.haken input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.haken.klein { min-height: 36px; align-items: center; }
textarea.feld { padding: 10px 12px; min-height: 96px; border: 1px solid var(--line-strong); border-radius: 4px; font: inherit; }
.kennzahlen { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kennzahlen .cap { overflow-wrap: anywhere; letter-spacing: .08em; }
.kennzahlen a { background: var(--paper); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.kennzahlen a:hover { background: var(--ground); }
.gross { font-size: 30px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.spalte-board { background: #E9EDED; border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.spalte-board h2 { margin: 0; display: flex; justify-content: space-between; }
.jobkarte { display: flex; flex-direction: column; gap: 4px; padding: 12px; background: var(--paper); border-radius: 4px; border-left: 4px solid var(--ink); text-decoration: none; color: var(--ink); font-size: 14px; box-shadow: 0 1px 2px rgba(17,18,20,.06); }
.jobkarte:hover { outline: 1px solid var(--ink); }
.jobkarte.quelle-portal, .jobkarte.portalkarte { border-left-color: var(--petrol); }
.jobkarte .mono { font-size: 12px; }
.navgruppe { display: flex; flex-direction: column; gap: 4px; }
.navcap { padding: 0 14px 6px; color: #7C8787; }
.navfuss { margin-top: auto; color: #7C8787; font-size: 12px; padding: 0 14px; }
.demozugang { font-size: 14px; border-top: 1px solid var(--line); padding-top: 16px; }
.demozugang summary { cursor: pointer; font-weight: 700; min-height: 32px; }
table.tab.klein td, table.tab.klein th { padding: 6px 8px; font-size: 12px; }
.vorteile { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; font-size: 14px; color: #C9D1D1; }
.vorteile li { display: flex; flex-direction: column; gap: 4px; }
.vorteile b { color: var(--paper); }
code.mono { background: var(--paper); padding: 6px 8px; border-radius: 4px; }

@media (max-width: 720px) {
  .kopf-oben, .subnav, .fuss { padding-left: 16px; padding-right: 16px; }
  .inhalt { padding: 24px 16px 40px; }
  .bo-inhalt { padding: 24px 16px 40px; }
  .seitenleiste { max-width: none; flex-basis: 100%; padding: 14px 12px; gap: 10px; }
  .seitenleiste { min-width: 0; }
  .navgruppe { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; max-width: 100%; min-width: 0; }
  .navcap, .navfuss { display: none; }
  .nav { white-space: nowrap; padding: 8px 12px; }
  .kopf-rechts { gap: 4px 16px; }
  .vorteile { grid-template-columns: 1fr; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; }
  .login-links, .login-rechts { padding: 40px 16px; }
  .schritte { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Lange Woerter in Versal-Ueberschriften und Pfade duerfen umbrechen (Handy). */
.h, .cap, p .mono, .kursiv { overflow-wrap: anywhere; }
.jobkarte .chip, .spalte > .chip { align-self: flex-start; }
.direkt { display: flex; flex-direction: column; gap: 8px; border: 1px dashed var(--line-strong); border-radius: 6px; padding: 12px; }
.direkt-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.direkt-knoepfe form { margin: 0; }

/* Login: Passwort anzeigen, Abmelden als Formular-Knopf (POST) */
.pw-feld { position: relative; display: flex; }
.pw-feld input { flex: 1; padding-right: 96px; }
.pw-zeigen { position: absolute; right: 4px; top: 4px; bottom: 4px; padding: 0 12px; border: 0; border-radius: 3px; background: transparent; color: var(--petrol-dark); font: 700 13px/1 inherit; cursor: pointer; }
.pw-zeigen:hover, .pw-zeigen:focus-visible { background: var(--line); }
form.abmelden { display: contents; }
:where(form.abmelden) button { background: none; border: 0; cursor: pointer; font: inherit; text-align: left; }
