/* Jobtop Booking – Farben von jobtop.at: Rot #b50b3a, Dunkelgrau #464848, Grau #5b5b5b, Hellgrau #efefef, Graublau #8fa4ba */
:root {
    --marke: #b50b3a; --marke2: #b3042d; --marke-fl: #f9e7ec; --graublau: #8fa4ba;
    --text: #3c3c3c; --grau: #5b5b5b; --linie: #e1e1e1; --flaeche: #efefef; --karte: #fff; --feld: #fff;
    --akzent: var(--marke); --knopf-primaer: var(--marke);
    --rot: #b91c1c; --rot-fl: #fde8e8; --gelb: #8a5300; --gelb-fl: #fef3c7; --gruen: #15803d; --gruen-fl: #e7f6ec;
    --leiste: #464848; --leiste-text: #f1f1f1; --leiste-grau: #b1b0b1; --leiste-hover: rgba(255, 255, 255, .09);
    --schatten: 0 1px 2px rgba(0, 0, 0, .06);
    --st-neu: #5b5b5b; --st-gebucht: #b50b3a; --st-beendet: #8a5300; --st-abgeschlossen: #15803d; --st-storniert: #8fa4ba;
    color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
    :root {
        --marke: #f06a8c; --marke2: #e0456d; --marke-fl: #3a1520; --graublau: #8fa4ba;
        --text: #e8e8e8; --grau: #a6a6a6; --linie: #3a3c3d; --flaeche: #1c1d1e; --karte: #262829; --feld: #1f2122;
        --knopf-primaer: #b50b3a;
        --rot: #f08a8a; --rot-fl: #3a1c1f; --gelb: #f3c969; --gelb-fl: #352a10; --gruen: #7fd69b; --gruen-fl: #13301e;
        --leiste: #2e3030; --leiste-text: #ececec; --leiste-grau: #9a9a9a;
        --schatten: none;
        --st-neu: #a6a6a6; --st-gebucht: #f06a8c; --st-beendet: #f3c969; --st-abgeschlossen: #7fd69b; --st-storniert: #8fa4ba;
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.5 Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--flaeche); }
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Rahmen mit Seitenleiste ---------- */
.mit-leiste { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.leiste { background: var(--leiste); color: var(--leiste-text); padding: .8rem .7rem 1.5rem; overscroll-behavior: contain; position: sticky; top: 0; height: 100vh; overflow-y: auto; grid-row: 1 / span 2; }
.leiste-marke { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 700; font-size: 1.02rem; padding: .2rem .5rem .9rem; }
.leiste-marke:hover { text-decoration: none; }
.leiste-marke .logo { width: 30px; height: 30px; flex: none; border-radius: 6px; background: #fff; }
.leiste-info { display: block; background: rgba(255, 255, 255, .1); border-radius: 8px; padding: .5rem .65rem; margin-bottom: .4rem; color: #fff; font-size: .86rem; line-height: 1.35; }
.leiste-info:hover { background: rgba(255, 255, 255, .16); text-decoration: none; }
.leiste-info small { display: block; color: var(--leiste-grau); font-size: .75rem; }
.leiste h4 { font-size: .66rem; text-transform: uppercase; letter-spacing: .09em; color: var(--leiste-grau); margin: .85rem .6rem .15rem; font-weight: 700; }
.leiste nav a { display: block; color: var(--leiste-text); padding: .26rem .65rem; border-radius: 6px; font-size: .92rem; }
.leiste nav a:hover { background: var(--leiste-hover); text-decoration: none; }
.leiste nav a.aktiv { background: #fff; color: var(--marke); font-weight: 600; }
.rahmen { min-width: 0; display: flex; flex-direction: column; }
.oben { display: flex; align-items: center; gap: 1rem; padding: .55rem 1.75rem; background: var(--karte); border-bottom: 1px solid var(--linie); font-size: .88rem; position: sticky; top: 0; z-index: 3; }
.oben form { margin: 0; }
.oben-titel { display: none; font-weight: 600; }
.ich { margin-left: auto; display: flex; align-items: center; gap: .5rem; color: var(--grau); }
.ich i { width: 26px; height: 26px; border-radius: 50%; background: var(--marke2); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .72rem; font-weight: 700; }
.menue-knopf, .menue-schleier { display: none; }
input.menue-schalter { display: none !important; }

main { padding: 1.5rem 1.75rem 3rem; width: 100%; }
main.schmal { max-width: 46rem; }
main.breit { max-width: 80rem; }

/* Handy / schmale Fenster: Leiste als ausfahrbares Menü */
@media (max-width: 900px) {
    .mit-leiste { display: block; }
    .leiste { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 20; transform: translateX(-100%); transition: transform .2s ease; height: auto; }
    .menue-schalter:checked ~ .leiste { transform: none; }
    .menue-schalter:checked ~ .menue-schleier { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 15; }
    .menue-knopf { display: block; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--marke); padding: .2rem .3rem; }
    .oben { padding: .5rem 1rem; }
    .oben-titel { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ich span { display: none; }
    main { padding: 1rem 1rem 3rem; }
}

/* Anmeldung (ohne Leiste) */
main.gast { max-width: 26rem; margin: 0 auto; padding: 12vh 1rem 3rem; }
.gast-marke { display: flex; align-items: center; gap: .7rem; justify-content: center; margin-bottom: 1.25rem; color: var(--grau); font-size: 1.05rem; }
.gast-marke .logo { width: 40px; height: 40px; border-radius: 8px; background: #fff; box-shadow: var(--schatten); }
.gast-marke b { color: var(--marke); margin-right: .25rem; }
.gast-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 14px; padding: 1.5rem; box-shadow: var(--schatten); }
.gast-karte h1 { font-size: 1.25rem; }

/* ---------- Typografie ---------- */
h1 { font-size: 1.45rem; line-height: 1.25; margin: 0 0 1rem; color: var(--marke); font-weight: 700; }
h2 { font-size: 1.05rem; margin: 2rem 0 .6rem; color: var(--marke); }
h3 { font-size: .98rem; margin: 0 0 .5rem; }
.klein { font-size: .84rem; color: var(--grau); }
.vorformatiert { white-space: pre-line; }
.vorher { color: var(--grau); }
code.hash { font-size: .75rem; word-break: break-all; }
.codes { columns: 2; font-size: 1.1rem; }
.codes code { font-family: ui-monospace, Menlo, monospace; }

/* ---------- Meldungen ---------- */
.hinweis, .warnung, .fehler-box { padding: .65rem .9rem; border-radius: 10px; margin: 0 0 1rem; }
.hinweis { background: var(--gruen-fl); color: var(--gruen); }
.warnung { background: var(--gelb-fl); color: var(--gelb); }
.fehler-box { background: var(--rot-fl); color: var(--rot); }
ul.fehler-box, ul.fehler { padding-left: 2rem; }
.fehler { color: var(--rot); }

/* ---------- Knöpfe ---------- */
button, .knopf { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; font: inherit; font-size: .92rem; line-height: 1.3; padding: .48rem .9rem; border-radius: 8px; border: 1px solid var(--linie); background: var(--karte); color: var(--text); cursor: pointer; text-decoration: none; white-space: nowrap; box-shadow: var(--schatten); }
button:hover, .knopf:hover { border-color: var(--graublau); text-decoration: none; }
button.primaer, .primaer-klein, a.primaer-klein, button.primaer-klein { background: var(--knopf-primaer); border-color: var(--knopf-primaer); color: #fff; }
button.primaer:hover, .primaer-klein:hover { filter: brightness(1.08); border-color: var(--knopf-primaer); }
button.primaer { width: 100%; padding: .7rem; font-weight: 600; }
button:disabled { opacity: .6; cursor: wait; }
button.link { border: 0; background: none; padding: 0; color: var(--akzent); box-shadow: none; font-size: inherit; }
button.link:hover { text-decoration: underline; }
button.gefahr, .knopf.gefahr { color: var(--rot); }
.aktionen { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.aktionen form { margin: 0; }
.kopfzeile .aktionen { margin: 0; }

/* ---------- Formulare ---------- */
label { display: block; margin: 0 0 1rem; font-weight: 500; font-size: .9rem; }
input, select, textarea { font: inherit; color: inherit; background: var(--feld); border: 1px solid var(--linie); border-radius: 8px; }
input, textarea { display: block; width: 100%; margin-top: .25rem; padding: .5rem .65rem; }
select { padding: .46rem .55rem; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--marke2) 35%, transparent); outline-offset: 0; border-color: var(--marke2); }
input:disabled, select:disabled, textarea:disabled { background: var(--flaeche); color: var(--grau); }
input[type="checkbox"], input[type="radio"] { display: inline-block; width: auto; margin: 0; accent-color: var(--marke2); }
label select { display: block; width: 100%; margin-top: .25rem; }
label.haken { display: flex; gap: .45rem; align-items: center; font-weight: 400; }
label.haken input { width: auto; margin: 0; }
label.inline { display: flex; gap: .3rem; align-items: center; margin: 0; font-weight: 400; }
label.inline input { width: auto; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0 1rem; }
.raster .breit { grid-column: 1 / -1; }
.zeile { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.zeile input { flex: 1 1 14rem; width: auto; margin: 0; }
.zeile .fehler { flex-basis: 100%; }
.zeile.eng { margin: 0; }
.zeile.eng input { flex-basis: 10rem; }
.filter { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin: 0; }
.filter input { margin: 0; width: 16rem; max-width: 100%; }
form.ap fieldset { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .5rem; }
form.ap input { width: auto; flex: 1 1 9rem; margin: 0; }
fieldset.position { border-top: 1px solid var(--linie); padding: .6rem 0; }
.pos-zeile { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; margin-bottom: .3rem; }
.pos-zeile input, .pos-zeile select, .pos-zeile textarea { margin: 0; width: auto; }
.pos-zeile .lang { flex: 3 1 14rem; }
.pos-zeile .schmal { flex: 0 1 8rem; }
.pos-zeile .zahl { flex: 0 1 6rem; }
.pos-zeile textarea { flex: 1 1 20rem; }
.pos-nr { width: 1.5rem; color: var(--grau); text-align: right; }

/* ---------- Kopfzeile, Reiter, Karten ---------- */
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kopfzeile h1, .kopfzeile h2, .kopfzeile h3 { margin: 0; }
.reiter { display: inline-flex; background: var(--karte); border: 1px solid var(--linie); border-radius: 9px; padding: 3px; gap: 2px; }
.reiter a { padding: .3rem .8rem; border-radius: 6px; color: var(--grau); font-size: .9rem; }
.reiter a:hover { text-decoration: none; color: var(--text); }
.reiter a.aktiv { background: var(--marke-fl); color: var(--marke); font-weight: 600; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--schatten); }
.karte h2 { margin-top: 0; }
.karte table { border: 0; box-shadow: none; border-radius: 0; }
.karte .kopfzeile { margin-bottom: .6rem; }
section { overflow-x: auto; }
section.karte .zeile.eng { margin: .2rem 0; }
details summary { cursor: pointer; margin: .4rem 0; color: var(--akzent); }
dl.details { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; margin: 0 0 1.25rem; }
dl.details dt { color: var(--grau); }
dl.details dd { margin: 0; }
.marke-klein { display: inline-block; font-size: .74rem; font-weight: 600; padding: .1rem .6rem; border-radius: 999px; background: var(--marke-fl); color: var(--marke); white-space: nowrap; }

/* Status als farbige Pille (Klasse status-<wert>) */
.status { display: inline-block; font-size: .74rem; font-weight: 600; padding: .08rem .55rem; border-radius: 999px; white-space: nowrap; background: var(--marke-fl); color: var(--marke); }
.status-entwurf, .status-offen, .status-erstellt, .status-teilweise { background: var(--gelb-fl); color: var(--gelb); }
.status-gebucht, .status-bezahlt, .status-zugeordnet, .status-abgegeben, .status-geliefert, .status-gesendet { background: var(--gruen-fl); color: var(--gruen); }
.status-storniert, .status-fehler, .status-gesperrt, .status-ueberfaellig { background: var(--rot-fl); color: var(--rot); }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; overflow: hidden; box-shadow: var(--schatten); margin-bottom: 1.25rem; }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
th { font-size: .72rem; text-transform: uppercase; letter-spacing: .045em; color: var(--grau); font-weight: 600; background: var(--flaeche); white-space: nowrap; }
tbody tr:last-child td, tbody:last-child tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--marke-fl) 45%, transparent); }
td.nr, th.nr { font-variant-numeric: tabular-nums; white-space: nowrap; }
td:first-child > a { white-space: nowrap; font-weight: 600; }
th.betrag, td.betrag, input.betrag { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.datum { white-space: nowrap; font-variant-numeric: tabular-nums; }
tr.inaktiv td { color: var(--grau); }
tr.summe td { font-weight: 600; border-top: 2px solid var(--linie); background: var(--flaeche); }
table.klein td { color: var(--text); font-size: .88rem; }
table.eingabe input { margin: 0; }
table.eingabe td { vertical-align: middle; }
table.journal tbody { border-bottom: 2px solid var(--linie); }
table.journal tbody td { border-bottom: 0; padding-top: .15rem; padding-bottom: .15rem; }
table.journal tbody tr:last-child td { border-bottom: 1px solid var(--linie); padding-bottom: .55rem; }
table.journal tr.kopf td { font-weight: 600; padding-top: .7rem; }
table.journal td.konto { color: var(--grau); padding-left: 1.4rem; }
tbody.storniert, tbody.storno { opacity: .6; }
td.aenderung { word-break: break-word; max-width: 28rem; }

/* Seitenweise blättern */
nav[role="navigation"] { margin-top: 1rem; }
.seiten { display: flex; gap: 1rem; margin-top: 1rem; color: var(--grau); }

@media print {
    .leiste, .oben, button, .aktionen, .menue-schleier { display: none !important; }
    .mit-leiste { display: block; }
    body { background: #fff; }
    table, .karte, dl.details { box-shadow: none; }
}

/* Ausklappmenü (details/summary, ohne JavaScript) */
.ausklapp { position: relative; }
.ausklapp summary { list-style: none; margin: 0; }
.ausklapp summary::-webkit-details-marker { display: none; }
.ausklapp summary::after { content: "▾"; font-size: .75em; opacity: .85; }
.ausklapp-menue { position: absolute; right: 0; top: calc(100% + 4px); min-width: 13rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; box-shadow: 0 10px 28px rgba(15, 23, 42, .14); padding: .3rem; z-index: 10; }
.ausklapp-menue a { display: block; padding: .42rem .7rem; border-radius: 6px; color: var(--text); }
.ausklapp-menue a:hover { background: var(--marke-fl); text-decoration: none; }
.werkzeug { margin: 0 0 1rem; }
.werkzeug input { width: 20rem; }
td.art { font-size: .74rem; font-weight: 700; letter-spacing: .05em; color: var(--graublau); }
/* Buchungsstatus: farbiger Rand links und Pille (Klasse st-<status>) */
tr.st-neu { --st: var(--st-neu); } tr.st-gebucht { --st: var(--st-gebucht); } tr.st-beendet { --st: var(--st-beendet); }
tr.st-abgeschlossen { --st: var(--st-abgeschlossen); } tr.st-storniert { --st: var(--st-storniert); }
tr[class*="st-"] td:first-child { box-shadow: inset 4px 0 0 var(--st); }
.status.st-neu { background: color-mix(in srgb, var(--st-neu) 14%, transparent); color: var(--st-neu); }
.status.st-gebucht { background: color-mix(in srgb, var(--st-gebucht) 14%, transparent); color: var(--st-gebucht); }
.status.st-beendet { background: color-mix(in srgb, var(--st-beendet) 16%, transparent); color: var(--st-beendet); }
.status.st-abgeschlossen { background: color-mix(in srgb, var(--st-abgeschlossen) 14%, transparent); color: var(--st-abgeschlossen); }
.status.st-storniert { background: color-mix(in srgb, var(--st-storniert) 18%, transparent); color: var(--st-storniert); text-decoration: line-through; }
.art-pille { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; white-space: nowrap;
    color: var(--art); background: color-mix(in srgb, var(--art) 13%, transparent); border: 1px solid color-mix(in srgb, var(--art) 30%, transparent); }

/* Handy: Tabellen seitlich scrollen statt umbrechen */
@media (max-width: 900px) {
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    th, td { white-space: nowrap; }
    td.aenderung { white-space: normal; min-width: 16rem; }
    .werkzeug input { width: 100%; }
    dl.details { grid-template-columns: 1fr; gap: 0 1rem; }
    dl.details dd { margin-bottom: .4rem; }
}

/* Kennzahlen-Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.kachel { display: block; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: .8rem 1rem; color: var(--text); box-shadow: var(--schatten); }
a.kachel:hover { border-color: var(--graublau); text-decoration: none; }
.kachel span { display: block; color: var(--grau); font-size: .8rem; }
.kachel b { display: block; font-size: 1.35rem; color: var(--marke); font-variant-numeric: tabular-nums; line-height: 1.3; }
.kachel small { color: var(--grau); font-size: .78rem; }
.kachel.warn b { color: var(--rot); }

/* Formular-Abschluss: Knöpfe bleiben beim Scrollen unten sichtbar */
.fussleiste { position: sticky; bottom: 0; z-index: 2; background: color-mix(in srgb, var(--flaeche) 92%, transparent); backdrop-filter: blur(6px); padding: .7rem 0; margin: 0; border-top: 1px solid var(--linie); }
.karte > label:last-child { margin-bottom: 0; }
.karte .klein { margin-top: 0; }
fieldset.position:first-of-type { border-top: 0; }

/* Belegseite */
.beleg-kopf h1 { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .15rem; }
.beleg-betrag { text-align: right; }
.beleg-betrag span { display: block; font-size: .78rem; color: var(--grau); }
.beleg-betrag b { font-size: 1.55rem; color: var(--marke); font-variant-numeric: tabular-nums; }
tr.gesamt td { font-size: 1.05rem; color: var(--marke); border-top: 2px solid var(--marke2); }
.saldo { margin-left: auto; color: var(--grau); font-size: .88rem; }
.saldo b { color: var(--marke); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.kopfzeile .saldo + .knopf { margin-left: 0; }
.aktionen .zeile.eng { flex-wrap: nowrap; gap: .4rem; }
.aktionen .zeile.eng input, .aktionen .zeile.eng select { width: auto; flex: 0 1 auto; margin: 0; }
.pos-zeile input:not([type="date"]), .pos-zeile select { width: 0; min-width: 0; }
.pos-zeile .schmal { flex: 1 1 7rem; }
.pos-zeile .lang { flex: 4 1 14rem; }
.pos-zeile .zahl { flex: 1 1 4.5rem; }
.pos-zeile select { flex: 1 1 10rem; }

/* Formulare und Abschnitte direkt auf der Seite automatisch als Karte */
main:not(.gast) > form:has(label, .raster, table.eingabe):not(.filter):not(.werkzeug),
main:not(.gast) > section:not(.karte):not(:has(> table:only-child)) {
    background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; box-shadow: var(--schatten);
}
main:not(.gast) > section:not(.karte) > h2:first-child { margin-top: 0; }
main:not(.gast) > form table, main:not(.gast) > section:not(.karte) table { box-shadow: none; }
main:not(.gast) > form > .aktionen:last-child, main:not(.gast) > form > button:last-child { margin-bottom: 0; }

/* Startseite: Mandanten */
.mandanten { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1rem; }
.mandant-kachel { display: flex; align-items: center; gap: .9rem; background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; padding: 1rem; color: var(--text); box-shadow: var(--schatten); }
.mandant-kachel:hover { border-color: var(--marke2); text-decoration: none; }
.mandant-kachel .kurz { width: 42px; height: 42px; border-radius: 10px; background: var(--marke); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.mandant-kachel .text { flex: 1; min-width: 0; }
.mandant-kachel b { display: block; color: var(--marke); }
.mandant-kachel small { color: var(--grau); }

/* Änderungsprotokoll: Feld → Wert */
dl.diff { display: grid; grid-template-columns: max-content 1fr; gap: 0 .7rem; margin: 0; font-size: .82rem; }
dl.diff dt { color: var(--grau); }
dl.diff dd { margin: 0; word-break: break-word; }
dl.diff del { color: var(--rot); text-decoration-color: color-mix(in srgb, var(--rot) 50%, transparent); }

/* Vorschau einer Mail/Signatur: so, wie sie beim Empfänger aussieht (immer hell) */
.mail-vorschau { background: #fff; color: #000; border: 1px solid var(--linie); border-radius: 10px; padding: 1rem 1.2rem; margin: .5rem 0 1rem; font-family: Aptos, Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; line-height: 1.35; }
.mail-vorschau a { color: #0563C1; }
.mail-vorschau p { margin: 0; }
.mail-vorschau b > span:first-child { color: #2F5597; }
textarea.kursiv { font-style: italic; font-weight: 600; }
.mandant-zeile { display: flex; flex-direction: column; gap: .25rem; }
.mandant-zeile form { margin: 0 0 0 .25rem; }
.mandant-zeile.ist-ausgeblendet .mandant-kachel { opacity: .6; }

/* Knöpfe in Tabellenzeilen */
td.zeilen-aktionen { white-space: nowrap; text-align: right; }
td.zeilen-aktionen form { display: inline; margin: 0; }
.klein-knopf, button.klein-knopf { padding: .2rem .55rem; font-size: .8rem; box-shadow: none; }
h1 .klein { font-weight: 400; font-size: .95rem; }
a.saldo-guthaben { color: var(--gruen); }
form.ap input.plz { flex: 0 1 5rem; }
form.ap select { flex: 1 1 12rem; margin: 0; }

/* Dienstleistung: Favoriten-Schnellwahl */
.favoriten { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 1rem; }
.chip { display: inline-block; padding: .25rem .7rem; border-radius: 999px; background: var(--marke-fl); color: var(--marke); font-size: .85rem; font-weight: 600; }
.chip:hover { text-decoration: none; filter: brightness(.97); }
.kunde-zeile { display: flex; gap: .5rem; align-items: center; margin-top: .25rem; }
.kunde-zeile select { flex: 1; margin: 0; }
.seiten-oben { margin: 0 0 .6rem; }

/* Zweiter Faktor */
.qr { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 6px; border-radius: 8px; }
code.geheimnis { font-size: 1rem; letter-spacing: .05em; user-select: all; }
input.code-feld { font-size: 1.4rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
textarea { resize: vertical; }
form.inline { display: inline-flex; gap: .3rem; align-items: center; margin: 0; }
form.inline input.zahl { width: 4.5rem; margin: 0; }
.mengen-knoepfe { display: inline-flex; align-items: center; gap: .35rem; }
.mengen-knoepfe form { display: inline; margin: 0; }
button.mini { padding: 0 .45rem; min-width: 1.6rem; line-height: 1.5; font-weight: 700; border-radius: 6px; }
button.mini:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- jobtop Booking ---------- */
form.ap { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .5rem; }
form.ap input { flex: 1 1 9rem; width: auto; margin: 0; }
form.ap select { flex: 0 1 6rem; }
.filter input.plz { width: 6.5rem; }
.filter select { width: auto; }
.filter input[type="date"] { width: auto; }
dl.info { display: grid; grid-template-columns: max-content 1fr; gap: .2rem 1rem; margin: 0; font-size: .9rem; }
dl.info dt { color: var(--grau); }
dl.info dd { margin: 0; white-space: pre-line; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); gap: 0 1.25rem; }
.status-leiste { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.status-leiste form { margin: 0; }
.betrag-gross { font-size: 1.25rem; font-weight: 700; color: var(--marke); font-variant-numeric: tabular-nums; }
.preisvergleich td.bester { font-weight: 700; color: var(--gruen); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.gesperrt-hinweis { font-size: .78rem; color: var(--grau); font-weight: 400; }
td.notiz { max-width: 22rem; white-space: pre-line; }
form.inline { display: inline; margin: 0; }
tfoot th { text-transform: none; letter-spacing: 0; font-size: .85rem; color: var(--text); }
@media (min-width: 901px) { body.mit-leiste { background: linear-gradient(to right, var(--leiste) 236px, var(--flaeche) 236px); } }
main.breit table { table-layout: auto; }
td .knopf.klein-knopf { white-space: nowrap; }
.karte { overflow-x: auto; }
details.notfall { margin: 1.4rem 0 .6rem; padding-top: .8rem; border-top: 1px solid var(--linie); }
[hidden] { display: none !important; }
