/* Bätz Haustechnik – Verwaltung */
:root {
  /* Farben aus dem Logo: Flammenblau #24498F, Schriftgrau #373736, Flammenorange #E8500F */
  --blau: #24498f; --blau-dunkel: #1a3569; --blau-hell: #eaf0f9; --orange: #e8500f;
  --text: #2a2a29; --grau: #5d5f63; --linie: #dde0e5; --hg: #f3f4f6; --weiss: #fff;
  --ok: #1d7a46; --fehler: #b3261e; --info: #24498f;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 var(--schrift); color: var(--text); background: var(--hg); }
a { color: var(--blau); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blau); color: #fff; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: 1rem; }
code { background: #eef2f6; padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; color: var(--blau-dunkel); }
h3 { font-size: 1.02rem; margin: .2rem 0 .4rem; }

/* Rahmen */
.app { display: flex; min-height: 100vh; }
.marke-icon { background: #fff; border-radius: 9px; padding: 3px; }
.seitenleiste { width: 245px; flex: none; background: #2a2a29; border-right: 4px solid var(--blau); color: #d8d8d6; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.marke { display: flex; gap: .6rem; align-items: center; padding: 1.1rem 1rem; }
.marke strong { display: block; line-height: 1.15; } .seitenleiste .marke strong { color: #fff; } .marke small { color: #9fb6cc; }
.seitenleiste ul { list-style: none; margin: 0; padding: 0 .5rem 1rem; }
.seitenleiste .gruppe { text-transform: uppercase; font-size: .72rem; letter-spacing: .08em; color: #a3a3a0; padding: 1rem .7rem .3rem; }
.seitenleiste a { display: flex; align-items: center; gap: .6rem; color: #e6eef6; text-decoration: none; padding: .5rem .7rem; border-radius: 7px; }
.seitenleiste a:hover { background: rgba(255,255,255,.08); }
.seitenleiste a[aria-current="page"] { background: #fff; color: var(--blau-dunkel); font-weight: 600; }
.seitenleiste .ic { width: 1.3rem; text-align: center; }
.zahl { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; font-size: .75rem; padding: 0 .45rem; font-weight: 700; }
.leiste-fuss { margin-top: auto; padding: 1rem; font-size: .85rem; } .leiste-fuss a { color: #bcd0e3; padding: 0; }
.rechts { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.oben { display: flex; align-items: center; gap: 1rem; background: #fff; border-bottom: 1px solid var(--linie); padding: .7rem 1.5rem; position: sticky; top: 0; z-index: 5; }
.oben h1 { font-size: 1.25rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ich { display: flex; gap: 1rem; align-items: center; font-size: .9rem; }
.ich a { text-decoration: none; }
.menue-knopf { display: none; font-size: 1.3rem; background: none; border: 1px solid var(--linie); border-radius: 7px; padding: .2rem .6rem; cursor: pointer; }
.haupt { padding: 1.4rem 1.5rem 3rem; max-width: 1300px; width: 100%; }
.unten { padding: 1rem 1.5rem; color: var(--grau); font-size: .8rem; margin-top: auto; }

/* Bausteine */
.meldung { padding: .75rem 1rem; border-radius: 8px; margin: 0 0 1rem; border: 1px solid; }
.meldung-ok { background: #e9f6ee; border-color: #b6dcc4; color: #134d2d; }
.meldung-fehler { background: #fdeceb; border-color: #f0b8b4; color: #7c1a14; }
.meldung-info { background: var(--blau-hell); border-color: #bcd4ea; color: #0b3a62; }
.karte-weiss { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.karte-weiss > h2:first-child, .karte-weiss > h3:first-child { margin-top: 0; }
.karte-weiss summary { cursor: pointer; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.zwei-spalten.breit-links { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
.karten-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1rem; }
.werkzeuge { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.werkzeuge p { margin: 0; color: var(--grau); }
.filter { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.knopfreihe { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline, .inline-form { display: inline; }
.inline-form { display: flex; gap: .5rem; align-items: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.gruss { font-size: 1.1rem; margin-top: 0; }
.leer { color: var(--grau); font-style: italic; }
.liste { padding-left: 1.2rem; } .liste li { margin: .3rem 0; }
.gefahr { margin-top: 1.5rem; }

/* Formularelemente */
input, select, textarea { font: inherit; color: var(--text); }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], input[type=tel], select, textarea {
  border: 1px solid #b1bcc8; border-radius: 7px; padding: .5rem .6rem; background: #fff; width: 100%; }
input[readonly] { background: #f3f5f7; color: var(--grau); }
input:focus, select:focus, textarea:focus { border-color: var(--blau); outline: 3px solid rgba(36,73,143,.2); outline-offset: 0; }
.filter input, .filter select { width: auto; }
.form-stapel { display: flex; flex-direction: column; gap: .8rem; }
.form-stapel > label, .form-raster > label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; font-size: .9rem; }
.form-raster { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.2rem; }
.form-raster .voll { grid-column: 1 / -1; }
.schmal { max-width: 640px; }
.check { display: flex !important; flex-direction: row !important; gap: .5rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; }
.check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; flex: none; accent-color: var(--blau); }
fieldset { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .9rem .9rem; display: flex; flex-direction: column; gap: .5rem; }
legend { font-weight: 700; padding: 0 .3rem; }
.knopf { display: inline-block; font: inherit; font-weight: 600; border: 1px solid #b1bcc8; background: #fff; color: var(--text); border-radius: 7px; padding: .5rem 1rem; cursor: pointer; text-decoration: none; }
.knopf:hover { border-color: var(--blau); color: var(--blau); }
.knopf-haupt { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf-haupt:hover { background: var(--blau-dunkel); color: #fff; }
.knopf-gefahr { color: var(--fehler); border-color: #e3a8a3; }
.knopf-gefahr:hover { background: var(--fehler); color: #fff; border-color: var(--fehler); }
.knopf-breit { width: 100%; padding: .7rem; }
.link { background: none; border: 0; color: var(--blau); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.hilfe { color: var(--grau); font-size: .82rem; font-weight: 400; }
.klein { font-size: .84rem; color: var(--grau); }
.eingabe-prefix { display: flex; align-items: center; } .eingabe-prefix span { padding: 0 .4rem; color: var(--grau); }

/* Tabellen */
.tabelle-rahmen { overflow-x: auto; background: #fff; border: 1px solid var(--linie); border-radius: 10px; }
.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { padding: .6rem .8rem; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.tabelle th { background: #f7f9fb; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); white-space: nowrap; }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tbody tr:hover { background: #fafcfe; }
.tabelle .ist-neu td:first-child { box-shadow: inset 4px 0 0 var(--orange); font-weight: 700; }
.tabelle .inaktiv { color: var(--grau); }
.matrix td, .matrix th { font-size: .85rem; padding: .4rem .6rem; }
.matrix-gruppe th { background: var(--blau-hell); color: var(--blau-dunkel); text-transform: none; font-size: .85rem; }
.zentriert { text-align: center !important; }
.blaettern { display: flex; gap: 1rem; justify-content: center; margin: 1rem 0; }
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-neu { background: #fff0e2; color: #8a3c00; }
.badge-offen { background: var(--blau-hell); color: var(--blau-dunkel); }
.badge-zu { background: #e8ecef; color: #47525e; }
.badge-recht { background: #f3e9fb; color: #5d2c86; }

/* Marken, Medien */
.reiter { display: flex; gap: .3rem; border-bottom: 2px solid var(--linie); margin-bottom: 1rem; flex-wrap: wrap; }
.reiter a { padding: .5rem 1rem; text-decoration: none; color: var(--grau); border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; }
.reiter a[aria-current="page"] { color: var(--blau); border-bottom-color: var(--blau); }
.medien-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.medium { display: flex; flex-direction: column; gap: .4rem; padding: .7rem; margin: 0; }
.medium img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eef1f4; }
.medium code { word-break: break-all; user-select: all; }
.medium .inline-form { margin: 0; flex-wrap: nowrap; } .medium .inline-form input { min-width: 0; }
.marken-logo { height: 60px; display: flex; align-items: center; } .marken-logo img { max-height: 48px; max-width: 100%; }
.logo-vorschau { display: flex; align-items: center; gap: 1rem; background: #f7f7f5; padding: .8rem; border-radius: 8px; }
input[type=color] { height: 42px; padding: .2rem; }

.team-bild { aspect-ratio: 4 / 5 !important; object-position: top; }
.team-vorschau { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; }
.medium.inaktiv { opacity: .55; }

/* Übersicht */
.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.kachel { background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: .2rem; position: relative; }
.kachel:hover { border-color: var(--blau); box-shadow: 0 4px 14px rgba(36,73,143,.1); }
.kachel-ic { font-size: 1.4rem; } .kachel-zahl { font-size: 2rem; font-weight: 800; color: var(--blau); line-height: 1.1; } .kachel-unter { color: var(--grau); font-size: .88rem; }
.kachel .badge { position: absolute; top: .8rem; right: .8rem; }

/* Vorgang */
.detail-kopf { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; color: var(--grau); }
.angaben { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: .35rem 1rem; margin: 0; }
.angaben dt { color: var(--grau); font-size: .88rem; } .angaben dd { margin: 0; overflow-wrap: anywhere; }
.dateien { padding-left: 1.1rem; }
.verlauf { list-style: none; margin: 0; padding: 0; }
.verlauf li { border-left: 3px solid var(--linie); padding: .3rem 0 .6rem .8rem; margin-bottom: .3rem; }
.verlauf-kopf { font-size: .8rem; color: var(--grau); }
.verlauf-notiz { border-color: var(--orange) !important; } .verlauf-mail { border-color: var(--ok) !important; } .verlauf-status { border-color: var(--blau) !important; }

/* Rechte */
.rechte-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.rechte-gruppe { margin: 0; } .rechte-gruppe legend { color: var(--blau-dunkel); }
.rechte-gruppe [data-alle] { align-self: flex-end; font-size: .8rem; }

/* Editor */
.editor-feld { display: flex; flex-direction: column; gap: .3rem; } .editor-feld .label { font-weight: 600; font-size: .9rem; }
.ed-leiste { display: flex; flex-wrap: wrap; gap: .25rem; padding: .4rem; border: 1px solid #b1bcc8; border-bottom: 0; border-radius: 7px 7px 0 0; background: #f7f9fb; position: sticky; top: 56px; z-index: 3; }
.ed-leiste button, .ed-leiste select { font: inherit; font-size: .85rem; border: 1px solid transparent; background: none; border-radius: 5px; padding: .25rem .5rem; cursor: pointer; width: auto; }
.ed-leiste button:hover { background: #fff; border-color: #c9d2dc; }
.ed-leiste button[aria-pressed="true"] { background: var(--blau); color: #fff; }
.ed-leiste .trenner { width: 1px; background: #c9d2dc; margin: 0 .2rem; }
.ed-flaeche { min-height: 420px; border: 1px solid #b1bcc8; border-radius: 0 0 7px 7px; padding: 1rem 1.2rem; background: #fff; overflow: auto; line-height: 1.6; }
.ed-flaeche:focus { outline: 3px solid rgba(36,73,143,.2); border-color: var(--blau); }
.ed-flaeche h2 { color: var(--blau); } .ed-flaeche .hinweis { background: var(--blau-hell); border-left: 4px solid var(--blau); padding: .5rem .8rem; }
.ed-flaeche .hinweis-warnung { background: #fff4e8; border-left-color: var(--orange); }
.ed-flaeche .karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; } .ed-flaeche .karte { border: 1px dashed #b1bcc8; padding: .5rem .7rem; border-radius: 6px; }
.ed-flaeche .button { display: inline-block; background: var(--blau); color: #fff; padding: .3rem .9rem; border-radius: 999px; text-decoration: none; }
.ed-flaeche .spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .ed-flaeche .spalten > div { border: 1px dashed #c9d2dc; padding: .4rem; }
textarea.ed-quelltext { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; min-height: 420px; border-radius: 0 0 7px 7px; }

/* Anmeldung */
body.einfach { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1rem; background: linear-gradient(135deg, #2a2a29 0%, #373736 55%, var(--blau-dunkel) 100%); }
.karte-anmeldung { background: #fff; border-radius: 14px; padding: 1.8rem; width: 100%; max-width: 430px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.karte-anmeldung .marke { padding: 0 0 1rem; flex-direction: column; align-items: flex-start; gap: .2rem; border-bottom: 3px solid var(--blau); margin-bottom: 1rem; }
.karte-anmeldung .marke img { height: 60px; width: auto; } .karte-anmeldung .marke small { color: var(--grau); }
.karte-anmeldung h1 { font-size: 1.3rem; margin: .2rem 0 1rem; }
.abbrechen { margin-top: 1rem; text-align: center; }
.qr { width: 220px; height: 220px; margin: .5rem auto; } .qr svg { width: 100%; height: 100%; display: block; }
.schluessel { font-size: 1rem; letter-spacing: .05em; user-select: all; word-break: break-all; }
.text { max-width: 820px; }

@media (max-width: 960px) {
  .seitenleiste { position: fixed; left: -260px; z-index: 30; transition: left .2s; box-shadow: 0 0 30px rgba(0,0,0,.3); }
  .seitenleiste.offen { left: 0; }
  .menue-knopf { display: block; }
  .zwei-spalten, .zwei-spalten.breit-links, .form-raster { grid-template-columns: 1fr; }
  .haupt { padding: 1rem; }
  .ich a { display: none; }
}

/* Kacheln und Referenzen (1.3.0) */
.kachel-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kachel-raster-liste { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.kachel-admin { display: flex; flex-direction: column; gap: .45rem; padding: .8rem; margin: 0; }
.kachel-admin img, .kachel-admin .kein-bild { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #eef1f4; display: grid; place-items: center; color: var(--grau); }
.kachel-admin.inaktiv { opacity: .55; }
.kachel-admin strong a { text-decoration: none; color: inherit; }
.kachel-aktionen { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.kachel-aktionen form { display: flex; gap: .3rem; align-items: center; }
.klein-knopf { padding: .25rem .6rem; font-size: .9rem; min-height: 0; }
.kachel-neu { align-items: center; justify-content: center; text-decoration: none; color: var(--blau); border: 2px dashed var(--linie); background: transparent; min-height: 160px; font-weight: 600; }
.kachel-neu span { font-size: 2.2rem; line-height: 1; }
.kachel-neu:hover { border-color: var(--blau); }
.kennzahl-admin { font-size: 1.4rem; font-weight: 700; color: var(--blau); }
.reiter-klein a { padding: .35rem .8rem; font-size: .95rem; }
code.kopieren { cursor: copy; background: #eef1f4; padding: .1rem .4rem; border-radius: 4px; }
details.karte-weiss summary { cursor: pointer; font-weight: 600; }
details.karte-weiss[open] summary { margin-bottom: .8rem; }
.bildwahl { border: 1px solid var(--linie); border-radius: 8px; padding: .7rem; margin: .4rem 0 .8rem; }
.bw-auswahl { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .6rem; }
.bw-bild { position: relative; width: 130px; }
.bw-bild img { width: 130px; height: 98px; object-fit: cover; border-radius: 6px; display: block; }
.bw-titel img { outline: 3px solid var(--blau); outline-offset: 1px; }
.bw-titel::after { content: "Titelbild"; position: absolute; left: 4px; top: 4px; background: var(--blau); color: #fff; font-size: .7rem; padding: 0 .35rem; border-radius: 3px; }
.bw-knopf { position: relative; margin: .25rem .25rem 0 0; border: 1px solid var(--linie); background: #fff; border-radius: 4px; padding: .1rem .5rem; cursor: pointer; }
.bw-pool { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .4rem; max-height: 340px; overflow-y: auto; padding-top: .5rem; }
.bw-wahl { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.bw-wahl:hover, .bw-wahl:focus-visible { border-color: var(--blau); }
.bw-wahl img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; display: block; }
.schnellwahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; margin-bottom: 1.4rem; }
.schnellwahl a { display: block; padding: .9rem 1rem; text-decoration: none; color: inherit; }
.schnellwahl a strong { display: block; color: var(--blau); }
.schnellwahl a:hover { outline: 2px solid var(--blau); }
/* Team je Marke (1.3.1) */
.marken-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: .8rem; }
.marke-team { display: flex; flex-direction: column; gap: .5rem; margin: 0; padding: .8rem; }

/* Piktogramm-Auswahl (1.3.4) */
.symbolwahl { display: flex; flex-wrap: wrap; gap: .4rem; border: 1px solid var(--linie); border-radius: 8px; padding: .6rem; }
.symbolwahl legend { font-weight: 600; padding: 0 .3rem; }
.sym { position: relative; cursor: pointer; }
.sym input { position: absolute; opacity: 0; }
.sym .sym-bild, .sym .sym-kein { display: grid; place-items: center; width: 3rem; height: 3rem; padding: .45rem; border: 2px solid var(--linie); border-radius: 8px; color: var(--blau); background: #fff; font-size: .8rem; }
.sym input:checked + .sym-bild, .sym input:checked + .sym-kein { border-color: var(--blau); background: var(--blau-hell); }
.sym input:focus-visible + * { outline: 3px solid var(--orange); outline-offset: 1px; }
.kachel-kopf-admin { display: flex; justify-content: space-between; align-items: center; }
.kachel-kopf-admin .sym-bild { width: 2rem; height: 2rem; color: var(--blau); }
.hilfe.zu-lang { color: var(--fehler); font-weight: 600; }
.symbolwahl > .sym { display: inline-block; width: auto; margin: 0; }
fieldset.symbolwahl { flex-direction: row; flex-wrap: wrap; align-items: center; }

/* Formular-Editor (1.4.0) */
.formular-kachel { text-decoration: none; color: inherit; gap: .6rem; }
.formular-kachel:hover { outline: 2px solid var(--blau); }
.fk-icon { font-size: 1.6rem; }
.formular-status { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.formular-status .knopfreihe form { margin: 0; }
.schritt-liste { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; counter-reset: none; }
.schritt-karte { margin: 0; padding: 1rem 1.2rem; }
.schritt-karte-kopf { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.schritt-sym { width: 2.4rem; height: 2.4rem; color: var(--blau); flex: none; }
.schritt-titel { flex: 1; min-width: 12rem; display: flex; flex-direction: column; gap: .15rem; }
.schritt-titel strong { font-size: 1.15rem; }
.schritt-karte-kopf form { margin: 0; }
.weiche-badge { display: inline-block; font-size: .8rem; color: #7a4b00; background: #fff4e0; border: 1px solid #f1d29a; border-radius: 4px; padding: .05rem .45rem; margin-top: .15rem; }
.feld-liste { list-style: none; margin: .9rem 0 0; padding: 0; border-top: 1px solid var(--linie); }
.feld-zeile { display: grid; grid-template-columns: 9.5rem 1fr auto; gap: .8rem; align-items: start; padding: .6rem 0; border-bottom: 1px solid var(--linie); }
.feld-typ { font-size: .75rem; color: var(--grau); background: var(--hg); border-radius: 4px; padding: .15rem .4rem; align-self: center; }
.feld-frage { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.feld-frage > a { font-weight: 600; text-decoration: none; }
.antwort-chips { display: flex; flex-wrap: wrap; gap: .3rem; width: 100%; }
.chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; background: var(--blau-hell); border-radius: 999px; padding: .1rem .55rem .1rem .3rem; }
.chip img, .chip-sym { width: 1.1rem; height: 1.1rem; border-radius: 3px; object-fit: cover; color: var(--blau); }
.feld-aktionen { display: flex; gap: .3rem; align-items: center; margin: 0; flex-wrap: wrap; justify-content: flex-end; }
.feld-aktionen select { font-size: .85rem; padding: .25rem; max-width: 9rem; }
.feld-neu { padding: .8rem 0 0; display: flex; gap: .4rem; flex-wrap: wrap; }
.schritt-fuss { display: flex; justify-content: space-between; gap: 1rem; margin-top: .6rem; font-size: .9rem; }
.schritt-fuss form { margin: 0; }
.schritt-ende { opacity: .75; border-style: dashed; }
.weiche { gap: .4rem; }
.weiche-frage { border: 1px solid var(--linie); border-radius: 6px; padding: .4rem .7rem; }
.weiche-frage summary { cursor: pointer; font-weight: 600; }
.weiche-frage .optionen { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: .4rem 0; }
.antworten { gap: .5rem; }
.antwort-liste { display: grid; gap: .4rem; }
.antwort-zeile { display: grid; grid-template-columns: 2.6rem minmax(10rem, 1.4fr) minmax(8rem, 1fr) minmax(8rem, 1fr) auto; gap: .4rem; align-items: center; }
.antwort-vorschau { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 1px solid var(--linie); border-radius: 6px; color: var(--blau); overflow: hidden; }
.antwort-vorschau .sym-bild { width: 1.7rem; height: 1.7rem; }
.antwort-vorschau img { width: 100%; height: 100%; object-fit: cover; }
.antwort-knoepfe { display: flex; gap: .25rem; align-items: center; white-space: nowrap; }
.angaben dt.angaben-abschnitt { grid-column: 1 / -1; font-weight: 700; color: var(--blau); margin-top: .6rem; border-bottom: 1px solid var(--linie); }
dd.angaben-abschnitt { display: none; }
@media (max-width: 800px) { .feld-zeile { grid-template-columns: 1fr; } .feld-aktionen { justify-content: flex-start; } .antwort-zeile { grid-template-columns: 2.6rem 1fr; } }
/* ================= Intranet & Handbuch (1.5.0) ================= */
.in-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.in-kopf .gruss { margin: 0; }
.in-kopf-rechts { display: flex; gap: .5rem; align-items: center; }
.in-suche { min-width: 16rem; padding: .55rem .8rem; border: 1px solid var(--linie); border-radius: 8px; font: inherit; }
.in-sec { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--grau); border-bottom: 1px solid var(--linie); padding-bottom: .4rem; margin: 1.4rem 0 .8rem; }
.in-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.in-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem .45rem .6rem; background: #fff; border: 1px solid var(--linie); border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .92rem; }
.in-chip:hover { border-color: var(--blau); color: var(--blau); }
.in-chip .chip-sym { width: 1.25rem; height: 1.25rem; color: var(--blau); }
.in-bereich { margin-top: 1.8rem; }
.in-bereich-titel { display: flex; align-items: center; gap: .8rem; font-size: 1.25rem; margin: 0 0 .9rem; padding-bottom: .5rem; border-bottom: 3px solid var(--c, var(--blau)); }
.in-bereich-titel small { display: block; font-size: .85rem; font-weight: 400; color: var(--grau); }
.in-bereich-sym { width: 2rem; height: 2rem; color: var(--c, var(--blau)); flex: none; }
.in-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.in-karte { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--linie); border-top: 3px solid var(--c, var(--blau)); border-radius: 10px; text-decoration: none; color: var(--text); transition: transform .12s, box-shadow .12s; }
.in-karte:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.in-karte strong { color: var(--c, var(--blau)); font-size: 1.05rem; }
.in-karte-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.in-sym { width: 2rem; height: 2rem; color: var(--c, var(--blau)); }
.in-go { margin-top: auto; font-weight: 600; font-size: .9rem; color: var(--orange); }
.in-fuss { margin-top: 2rem; }
.bereich-pfeile { margin: .5rem 0 0; }
.hb { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; align-items: start; }
.hb-nav { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 1rem; font-size: .92rem; }
.hb-nav input { width: 100%; padding: .5rem .7rem; border: 1px solid var(--linie); border-radius: 6px; font: inherit; }
.hb-nav h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grau); margin: 1rem 0 .3rem; }
.hb-nav ul { list-style: none; margin: 0; padding: 0; }
.hb-nav li a { display: block; padding: .25rem .3rem; border-radius: 4px; text-decoration: none; }
.hb-nav li a:hover { background: var(--blau-hell); }
.hb-nav .nr, .hb-text .nr { color: var(--orange); font-weight: 700; }
.hb-geplant { color: var(--grau); font-style: italic; margin: 0 .3rem; }
.hb-pflege { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.hb-bereich { font-size: 1.35rem; font-weight: 700; margin: 2rem 0 .6rem; padding-bottom: .4rem; border-bottom: 3px solid var(--blau); }
.hb-bereich small { font-size: .9rem; font-weight: 400; color: var(--grau); }
.hb-kapitel { background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 1.3rem 1.5rem; margin-bottom: 1.2rem; scroll-margin-top: 1rem; }
.hb-kapitel-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.hb-kapitel h2 { margin: 0 0 .3rem; font-size: 1.45rem; }
.hb-kurz { color: var(--grau); margin: 0 0 1rem; font-size: 1.02rem; }
.hb-inhalt { line-height: 1.6; }
.hb-inhalt h3 { margin: 1.4rem 0 .4rem; font-size: 1.12rem; color: var(--blau); }
.hb-inhalt li { margin: .25rem 0; }
.hb-inhalt .path, .hb-inhalt code { font-family: Consolas, monospace; font-size: .9em; background: var(--hg); border: 1px solid var(--linie); border-radius: 4px; padding: 0 .3rem; }
.hb-inhalt .note, .hb-inhalt .hinweis { background: #fff8ec; border-left: 4px solid var(--orange); padding: .7rem 1rem; border-radius: 4px; margin: 1rem 0; }
.hb-inhalt .stand { font-size: .82rem; color: var(--grau); margin: 0; }
.hb-inhalt figure.shot, .hb-inhalt figure { margin: .8rem 0 1rem; }
.hb-inhalt img { max-width: 100%; height: auto; border: 1px solid var(--linie); border-radius: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.hb-inhalt figcaption { font-size: .85rem; color: var(--grau); margin-top: .3rem; }
.hb-inhalt table { border-collapse: collapse; width: 100%; margin: .8rem 0; font-size: .95rem; }
.hb-inhalt th, .hb-inhalt td { border: 1px solid var(--linie); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.hb-inhalt th { background: var(--hg); }
.hb-inhalt mark, .hb mark { background: #ffe58a; padding: 0 1px; }
.hb-fuss { margin: 1rem 0 0; text-align: right; }
@media (max-width: 900px) { .hb { grid-template-columns: 1fr; } .hb-nav { position: static; max-height: none; } }
@media print { .seitenleiste, .oben, .hb-nav, .hb-kapitel-kopf .knopf, .unten { display: none !important; } .hb { display: block; } .hb-kapitel { break-inside: avoid-page; border: 0; } }.hb-inhalt .path, .hb-inhalt code { overflow-wrap: anywhere; word-break: break-word; }
.hb-text { min-width: 0; }

/* Intranet-Ansicht ohne Verwaltungsmenü (Kurzlink /intranet) */
body.intranet-modus { background: var(--hg); }
.im-kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding: .6rem 1.5rem; background: #fff; border-bottom: 1px solid var(--linie); }
.im-marke { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); }
.im-marke span { display: flex; flex-direction: column; line-height: 1.15; }
.im-marke small { color: var(--orange); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .7rem; }
.im-kopf nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.im-kopf nav a { padding: .45rem .9rem; border-radius: 999px; text-decoration: none; color: var(--text); font-weight: 600; }
.im-kopf nav a:hover { background: var(--blau-hell); }
.im-kopf nav a[aria-current="page"] { background: var(--blau); color: #fff; }
.im-ich { margin-left: auto; display: flex; align-items: center; gap: 1rem; font-size: .92rem; flex-wrap: wrap; }
.im-ich form { margin: 0; }
.im-haupt { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }
.im-titel { font-size: 1.6rem; margin: 0 0 1rem; }
.im-fuss { text-align: center; }
@media (max-width: 700px) { .im-kopf { padding: .5rem .8rem; gap: .6rem; } .im-ich { margin-left: 0; width: 100%; justify-content: space-between; } .im-haupt { padding: 1rem .8rem; } }body.intranet-modus .hb-nav { top: 4.6rem; max-height: calc(100vh - 5.6rem); }
