/* LOOX Planung – Farben & Schrift nach loox-tv.de (Grautöne, Akzent #993333, Lato / Acumin Pro Condensed) */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/lato-700.woff2) format("woff2"); }

:root {
  /* Es gibt nur den dunklen Modus (fest, unabhängig von der Systemeinstellung) */
  --rot: #c45c5c; --rot-dunkel: #d77070; --rot-hell: #3a2424;
  --text: #e8e8e8; --text-2: #b4b4b4; --text-3: #8a8a8a;
  --linie: #343434; --bg: #161616; --flaeche: #1f1f1f; --flaeche-2: #252525;
  --kopf: #1b1b1b; --schatten: 0 1px 2px rgba(0,0,0,.4);
  /* Ablauf-Farben */
  /* wie in der Triangolo-Projektliste: Digital grau, CUT grün, Vorschnitt türkis, Janus | Master orange */
  --p-dreh: #e3e3e3; --p-digital: #cccccc; --p-vorschnitt: #00ffff; --p-cut: #00ff00;
  --p-aend-int: #00a000; --p-aend-janus: #ffc266; --p-mastern: #ff9900;
  --p-urlaub: #9a9a9a; --p-belegt: #b9b9b9; --p-frei: #6aa874;
  --kopf-font: "acumin-pro-condensed", "Acumin Pro Condensed", "Arial Narrow", "Roboto Condensed", "Lato", sans-serif;
  --opt-gelb: #b8960b; --kal-name: #ffffff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
body[data-rolle="kunde"] [data-nur="loox"], body:not([data-rolle="admin"]) [data-nur="admin"] { display: none !important; }
h1, h2, h3 { font-family: var(--kopf-font); font-weight: 600; letter-spacing: .01em; margin: 0 0 .5em; line-height: 1.15; }
h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.leise { color: var(--text-3); font-size: .9em; }
.fehler { color: var(--rot); min-height: 1.2em; margin: .3em 0; font-size: .92em; }
.spacer { flex: 1; }
a { color: var(--rot); }

/* Bedienelemente */
button, .knopf, input, select, textarea { font: inherit; color: inherit; }
button, .knopf { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: .42em .9em; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; gap: .35em; white-space: nowrap; }
button:hover, .knopf:hover { border-color: var(--text-3); }
button.primaer { background: var(--rot); border-color: var(--rot); color: #fff; font-weight: 700; }
button.primaer:hover { background: var(--rot-dunkel); }
button.gefahr { color: var(--rot); }
button.link { background: none; border: 0; padding: .2em .35em; color: var(--rot); }
button.icon { padding: .35em .6em; }
button:disabled { opacity: .5; cursor: default; }
input, select, textarea { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 4px; padding: .42em .55em; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rot); box-shadow: 0 0 0 2px var(--rot-hell); }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 1px; }
label { display: flex; flex-direction: column; gap: .2em; font-size: .82em; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
label > input, label > select, label > textarea, label > .zeile { color: var(--text); font-size: 1.2em; text-transform: none; letter-spacing: 0; }
label.kurz { flex-direction: row; align-items: center; gap: .45em; color: var(--text); text-transform: none; letter-spacing: 0; font-size: .95em; }
label.kurz > input[type=checkbox] { flex: none; accent-color: var(--rot); width: 1.05em; height: 1.05em; }

/* Kopf */
.kopf { display: flex; align-items: center; gap: 1.2em; background: var(--kopf); border-bottom: 1px solid var(--linie); padding: 0 16px; min-height: 56px; position: sticky; top: 0; z-index: 20; }
.marke { display: flex; align-items: center; gap: .55em; color: var(--text-3); text-decoration: none; }
.marke img { height: 34px; width: auto; display: block; }
.marke span { font-family: "acumin-pro", "Acumin Pro", var(--kopf-font); font-weight: 700; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.kopf nav { display: flex; gap: .1em; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.kopf nav button { background: none; border: 0; border-radius: 0; border-bottom: 3px solid transparent; padding: 0 .8em; color: var(--text-2);
  font-family: "acumin-pro", "Acumin Pro", var(--kopf-font); font-weight: 600; font-size: 1.05rem; letter-spacing: .05em; text-transform: uppercase; }
.kopf nav button:hover { color: var(--text); }
.kopf nav button.aktiv { color: var(--rot); border-bottom-color: var(--rot); }
.nutzer { margin-left: auto; display: flex; align-items: center; gap: .5em; color: var(--text-2); white-space: nowrap;
  font-family: "acumin-pro", "Acumin Pro", var(--kopf-font); font-weight: 600; font-size: 1.05rem; letter-spacing: .03em; }
.nutzer #logout { font: inherit; color: var(--rot); padding: .2em .3em; }
.nutzer #logout:hover { color: var(--rot-dunkel); }
.nutzer .zahnrad { background: none; border: 0; padding: 0 .15em; font-size: 1.7rem; line-height: 1; color: var(--text-2); cursor: pointer; }
.nutzer .zahnrad:hover, .nutzer .zahnrad.aktiv { color: var(--text); }
.ein-reiter { margin: 0 0 14px; }
.badge { display: inline-block; min-width: 1.35em; padding: 0 .35em; border-radius: 99px; background: var(--rot); color: #fff; font: 700 .75rem/1.35 "Lato", sans-serif; text-align: center; letter-spacing: 0; }

main { padding: 16px; max-width: 1700px; margin: 0 auto; }
.werkzeug { display: flex; flex-wrap: wrap; gap: .5em; align-items: center; margin-bottom: 12px; }
.werkzeug .titel { font-family: var(--kopf-font); font-size: 1.6rem; min-width: 8.5em; text-align: center; letter-spacing: .02em; }
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; padding: 16px; box-shadow: var(--schatten); }

/* Ablauf-Farben */
.ph { --c: var(--text-3); }
.ph-dreh { --c: var(--p-dreh); } .ph-digital { --c: var(--p-digital); } .ph-vorschnitt { --c: var(--p-vorschnitt); } .ph-cut { --c: var(--p-cut); }
.ph-aend-int { --c: var(--p-aend-int); } .ph-aend-janus { --c: var(--p-aend-janus); } .ph-mastern { --c: var(--p-mastern); }
.ph-ohne { --c: #fff3a6; } .ph-abgabe { --c: var(--rot); } .ph-urlaub { --c: var(--p-urlaub); } .ph-belegt { --c: var(--p-belegt); } .ph-frei { --c: var(--p-frei); }

/* Termin-Chip */
.chip { display: block; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 13%, var(--flaeche)); color: var(--text);
  border-radius: 3px; padding: 2px 6px; font-size: .8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.chip b { font-weight: 700; color: var(--text); }
/* Kürzel-Schild (digi, vs, cut, ä-int, ä-jan, mast): klein, fett, auf der Schrittfarbe */
.kzl { display: inline-block; background: var(--c); color: #1a1a1a; font: 700 .85em/1.35 "Lato", sans-serif; text-transform: none; letter-spacing: 0;
  border-radius: 3px; padding: 0 .4em; vertical-align: .05em; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.chip.wunsch, .chip.offen { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 14%, var(--flaeche)) 0 6px, var(--flaeche) 6px 10px); border-left-style: dashed; }
.chip.fremd { cursor: default; color: var(--text-3); }
/* Option: schraffiert wie unbestätigte Termine, aber mit dunkelgelben Streifen */
.chip.option { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 22%, var(--flaeche)) 0 6px, var(--opt-gelb) 6px 8px); border-left-style: dashed; text-shadow: 0 0 2px var(--flaeche), 0 0 3px var(--flaeche); }
.tz .opt { font-size: .82rem; }
/* Ziehen auf iPad/Handy */
[data-zieh] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.chip.gezogen, .block.gezogen { opacity: .35; }
.geist { position: fixed; z-index: 90; pointer-events: none; opacity: .92; box-shadow: 0 8px 24px rgba(0,0,0,.3); transform: rotate(-2deg); }
.chip.konflikt { box-shadow: inset 0 0 0 1.5px var(--rot); }
.chip[draggable=true] { cursor: grab; }
.chip .warte { float: right; margin-left: 4px; }
.punkt { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--c); vertical-align: middle; }

/* Kalender (Monat) */
.monat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--linie); gap: 1px; border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; box-shadow: var(--schatten); }
.monat .wt { background: var(--flaeche-2); padding: 6px 8px; font-family: var(--kopf-font); text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-size: .9rem; }
.tag { background: var(--flaeche); min-height: 118px; padding: 4px 5px 6px; display: flex; flex-direction: column; gap: 3px; cursor: cell; min-width: 0; }
.tag.anders { background: var(--flaeche-2); }
.tag.anders .nr { color: var(--text-3); }
.tag.we { background: color-mix(in srgb, var(--flaeche-2) 60%, var(--flaeche)); }
.tag .nr { font-weight: 700; font-size: .85rem; color: var(--text-2); display: flex; justify-content: space-between; }
.tag.heute .nr span:first-child { background: var(--rot); color: #fff; border-radius: 99px; padding: 0 .45em; }
.tag.drop { outline: 2px dashed var(--rot); outline-offset: -3px; }
.tag .mehr { font-size: .75rem; color: var(--text-3); }

/* Projektübersicht (Zeitleiste) */
.projwahl { display: flex; flex-wrap: wrap; gap: .35em; margin-bottom: 12px; align-items: center; }
.projwahl button { border-radius: 99px; padding: .25em .8em; font-size: .88rem; }
.projwahl select { max-width: 14em; border-radius: 99px; padding: .25em .7em; font-size: .88rem; }
.projwahl button.an { background: var(--text); color: var(--flaeche); border-color: var(--text); }
.zeitleiste-wrap { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; box-shadow: var(--schatten); }
.zeitleiste { border-collapse: collapse; min-width: 100%; }
.zeitleiste th, .zeitleiste td { border-left: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: 0; }
.zeitleiste thead th { font-size: .72rem; color: var(--text-3); font-weight: 400; text-align: center; padding: 4px 0; min-width: 34px; background: var(--flaeche-2); position: sticky; top: 0; }
.zeitleiste thead th.we { color: var(--text-3); background: color-mix(in srgb, var(--flaeche-2) 50%, var(--linie)); }
.zeitleiste thead th.heute { color: #fff; background: var(--rot); }
.zeitleiste thead th.kw { text-align: left; padding-left: 6px; font-family: var(--kopf-font); letter-spacing: .05em; }
.zeitleiste .pname { position: sticky; left: 0; z-index: 2; background: var(--flaeche); text-align: left; padding: 8px 10px; min-width: 230px; max-width: 260px; border-left: 0; }
.pname strong { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ablauf { display: flex; gap: 3px; margin-top: 4px; }
.ablauf span { flex: 1; height: 6px; border-radius: 2px; background: var(--linie); }
.ablauf span.ja { background: var(--c); }
.zeitleiste td.z { vertical-align: top; height: 52px; cursor: cell; }
.zeitleiste td.z.we { background: var(--flaeche-2); }
.zeitleiste td.z.drop { outline: 2px dashed var(--rot); outline-offset: -2px; }
.block { display: block; margin: 2px 1px; padding: 1px 0; border-radius: 3px; background: var(--c); color: #1a1a1a; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); font-size: .68rem; font-weight: 700;
  text-align: center; white-space: nowrap; overflow: hidden; cursor: grab; text-shadow: 0 0 2px var(--c), 0 0 2px var(--c), 0 0 3px var(--c); }
.legende { display: flex; flex-wrap: wrap; gap: .4em 1em; margin-top: 10px; font-size: .82rem; color: var(--text-2); }
.legende span { display: inline-flex; align-items: center; gap: .35em; }

/* Liste */
.tabelle-wrap { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 6px; box-shadow: var(--schatten); }
table.liste { border-collapse: collapse; width: 100%; }
.liste th, .liste td { padding: .5em .6em; border-bottom: 1px solid var(--linie); text-align: left; white-space: nowrap; }
.liste th { position: sticky; top: 0; background: var(--flaeche-2); cursor: pointer; user-select: none; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; }
.liste th.auf::after { content: " ▲"; } .liste th.ab::after { content: " ▼"; }
.liste tbody tr { cursor: pointer; } .liste tbody tr:hover { background: var(--flaeche-2); }
.liste tr.fremd { cursor: default; color: var(--text-3); }
.liste tr.abgelehnt td { text-decoration: line-through; color: var(--text-3); }
.liste td.c-notiz { white-space: normal; min-width: 12em; }
.liste td.c-dauer_min { text-align: right; font-variant-numeric: tabular-nums; }
.liste tfoot td { border: 0; color: var(--text-2); }
.leer { text-align: center; padding: 2em; color: var(--text-3); }
.warn { color: var(--rot); font-weight: 700; }

/* Belegung */
#raster th, #raster td { text-align: center; padding: .3em .25em; font-size: .8rem; min-width: 2.1em; border-left: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
#raster .sticky { position: sticky; left: 0; background: var(--flaeche); text-align: left; min-width: 8em; z-index: 1; }
#raster td { cursor: pointer; font-weight: 700; color: #fff; }
#raster td.konflikt { outline: 2px solid var(--rot); outline-offset: -2px; }
#raster td.c { background: var(--c); }

/* Verwaltung / Prüfen / Einstellungen */
.spalten { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.spalten .breit { grid-column: 1 / -1; }
.eintrag { display: flex; justify-content: space-between; align-items: center; gap: .5em; padding: .45em 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.eintrag:last-child { border-bottom: 0; }
.eintrag.inaktiv { opacity: .5; }
.zeile { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; }
.zeile > input { flex: 1; min-width: 8em; }
.karte form.zeile, .karte > .zeile { margin-top: .8em; }
.raster2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7em; }
.raster2 .breit { grid-column: 1 / -1; }
.pruef { display: grid; grid-template-columns: 8.5em 1fr auto; gap: .3em 1em; align-items: center; padding: .6em 0; border-bottom: 1px solid var(--linie); }
.pruef:last-child { border-bottom: 0; }
.pruef .titel { font-weight: 700; }
.pruef .aktion { display: flex; gap: .4em; flex-wrap: wrap; align-items: center; }
.pruef .aktion input[name=stichwort] { width: 8em; }
.regeln { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.stichwoerter { display: flex; flex-wrap: wrap; gap: .3em; margin-top: .4em; }
.stichwoerter span { background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 99px; padding: .05em .2em .05em .65em; font-size: .85rem; }
.stichwoerter button { border: 0; background: none; padding: 0 .3em; color: var(--text-3); }
details > summary { cursor: pointer; color: var(--rot); }
.kal { display: flex; gap: .8em; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: .55em 0; border-bottom: 1px solid var(--linie); }
.kal:last-child { border-bottom: 0; }
.schalter { display: flex; flex-wrap: wrap; gap: .4em 1.4em; margin: .4em 0 .8em; }
code { font-size: .82em; background: var(--flaeche-2); padding: .1em .35em; border-radius: 3px; word-break: break-all; }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: min(360px, 100%); display: grid; gap: .9em; }
.login img { width: 90px; margin: 0 auto .4em; display: block; }
.login h1 { text-align: center; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); font-size: 1.4rem; }

/* Dialog */
dialog { border: 0; border-radius: 8px; padding: 20px; width: min(720px, calc(100vw - 24px)); background: var(--flaeche); color: var(--text); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(20, 20, 20, .45); }
dialog .knoepfe { display: flex; gap: .5em; flex-wrap: wrap; align-items: center; margin-top: 1em; }
.phasen { display: flex; flex-wrap: wrap; gap: .3em; }
.phasen label { flex-direction: row; text-transform: none; letter-spacing: 0; font-size: .88rem; }
.phasen input { position: absolute; opacity: 0; pointer-events: none; }
.phasen span { border: 1px solid var(--linie); border-radius: 99px; padding: .3em .8em; cursor: pointer; color: var(--text); display: inline-flex; gap: .4em; align-items: center; }
.phasen input:checked + span { background: color-mix(in srgb, var(--c) 45%, var(--flaeche)); border: 2px solid #fff; color: #fff; font-weight: 700; }
.phasen input:focus-visible + span { outline: 2px solid var(--text-2); outline-offset: 1px; }
#dlgTitel:focus { outline: none; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--flaeche); padding: .6em 1.1em; border-radius: 6px; z-index: 99; font-size: .92rem; box-shadow: var(--schatten); display: flex; align-items: center; gap: 12px; }

/* Handy */
@media (max-width: 760px) {
  .kopf { flex-wrap: wrap; gap: 0 .6em; padding: 6px 12px 0; }
  .kopf nav { order: 3; width: 100%; } .kopf nav button { padding: .6em .7em; }
  .marke span { display: none; }
  main { padding: 12px; }
  .werkzeug .titel { min-width: 0; font-size: 1.3rem; }
  .monat { display: block; background: none; border: 0; box-shadow: none; }
  .monat .wt, .tag.leer-tag, .tag.anders { display: none; }
  .tag { min-height: 0; border: 1px solid var(--linie); border-radius: 6px; margin-bottom: 6px; padding: 8px; }
  .chip { font-size: .9rem; padding: 4px 8px; white-space: normal; }
  .pruef { grid-template-columns: 1fr; }
  .regeln { grid-template-columns: 1fr; }
}

.kz input { width: 9em; } .kz .bsp { color: var(--text-2); font-size: .85rem; }
.taet { display: inline-flex; gap: .3em; align-items: center; font-size: .88rem; }
.taet input { width: 6.5em; }
.fest { color: var(--rot); font-weight: 700; }
#projKuerzel td { white-space: nowrap; } #projKuerzel tbody tr { cursor: default; }

/* Projektakte */
dialog.akte { width: min(1240px, calc(100vw - 16px)); max-height: calc(100vh - 16px); padding: 0; }
.akte form { display: flex; flex-direction: column; max-height: calc(100vh - 16px); }
.akte-kopf { padding: 18px 20px 12px; border-bottom: 1px solid var(--linie); background: var(--flaeche); }
.akte-grund { display: grid; grid-template-columns: 9em 1fr 10em 10em auto; gap: .6em; }
#akteSchritte { overflow-y: auto; padding: 12px 20px; display: grid; gap: 12px; background: var(--bg); }
.akte-fuss { padding: 12px 20px; border-top: 1px solid var(--linie); margin: 0 !important; background: var(--flaeche); }
.schritt { background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--c); border-radius: 6px; padding: 0 14px; }
.schritt[open] { padding-bottom: 12px; }
.schritt-kopf { display: flex; align-items: baseline; gap: .4em 1em; flex-wrap: wrap; padding: 10px 0; cursor: pointer; list-style: none; }
.schritt-kopf::-webkit-details-marker { display: none; }
.schritt-kopf::before { content: '▸'; color: var(--text-3); width: .8em; transition: transform .15s; }
.schritt[open] > .schritt-kopf::before { transform: rotate(90deg); }
.schritt-kopf h3 { margin: 0; color: var(--text); min-width: 11em; }
.zusammen { display: flex; flex-wrap: wrap; gap: .2em .5em; font-size: .88rem; color: var(--text-2); flex: 1; }
.zusammen .zf + .zf::before { content: '·'; margin-right: .5em; color: var(--text-3); }
.schritt[open] > .schritt-kopf .zusammen { display: none; }
.bemerkung { margin-top: 6px; } .bemerkung textarea { width: 100%; resize: vertical; }
.tz .zuteilung { font-size: .95rem; font-weight: 700; }
.tz .verkn { grid-column: 1 / -1; font-size: .78rem; margin-top: -2px; }
.tz .frei.kunde { display: block; } .tz .frei.kunde .namen { color: var(--text-2); margin-top: 1px; }
dialog.spfrage { max-width: 460px; } .spfrage ul { padding-left: 1.2em; } .spfrage li { margin: .25em 0; }
.zeilen { display: grid; gap: 6px; }
.tz { display: grid; grid-template-columns: 9.5em 9.5em 5.5em minmax(8em, 1fr) 6.5em 6.5em 7em 4em 5.5em 2em; gap: 6px; align-items: center; }
.tz.kopfzeile { text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.tz.kopfzeile > span { font-size: .72rem; }   /* Spaltenbreiten in em: Schriftgröße nur an den Texten ändern, sonst verrutschen die Überschriften */
.tz select:disabled, .tz input:disabled { background: var(--flaeche-2); color: var(--text-3); border-style: dashed; }
.tz .st { font-size: .78rem; white-space: nowrap; }
.tz .st.wunsch { color: var(--text-3); } .tz .st.fest { color: #1f8a3a; font-weight: 700; } .tz .st.wartet { color: var(--rot); }
.tz .weg { border: 0; background: none; color: var(--text-3); font-size: 1.1rem; padding: 0; }
.dreh-felder { display: grid; grid-template-columns: minmax(9em, 1fr) 9.5em minmax(10em, 1.3fr) 9.5em auto; gap: 8px; align-items: end; }
.wahl { display: flex; gap: .3em; }
.wahl label { flex-direction: row; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); }
.wahl input { position: absolute; opacity: 0; }
.wahl span { border: 1px solid var(--linie); border-radius: 99px; padding: .35em .8em; cursor: pointer; }
.wahl input:checked + span { background: var(--text); color: var(--flaeche); border-color: var(--text); }
.neuZeile { justify-self: start; margin-top: 2px; }
.marker { display: block; font-size: .65rem; text-align: center; color: var(--rot); font-weight: 700; line-height: 1.3; }
.pname { cursor: pointer; } .pname:hover strong { color: var(--rot); }
@media (max-width: 860px) {
  .akte-grund { grid-template-columns: 1fr 1fr; } .akte-grund .breit2 { grid-column: 1 / -1; }
  .tz { grid-template-columns: 1fr 1fr; padding: 8px 0; border-bottom: 1px solid var(--linie); } .tz.kopfzeile { display: none; }
  .dreh-felder { grid-template-columns: 1fr 1fr; }
}

/* Belegung in der Projektakte */
select.warnung { border-color: var(--rot); color: var(--rot); }
.tz .frei { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .3em; align-items: center; font-size: .78rem; margin: -2px 0 4px; }
.tz .frei span:not(.leise) { border: 1px solid var(--linie); border-radius: 99px; padding: .05em .6em; }
.tz .frei span.bel { color: var(--text-3); background: var(--flaeche-2); opacity: .55; pointer-events: none; }
.vorschlag { margin: .4em 0; font-size: .88rem; line-height: 1.9; }
.chipknopf { border-radius: 99px; padding: .15em .8em; font-size: .85rem; border: 1px solid var(--c, var(--linie)); background: var(--flaeche); cursor: pointer; }
.chipknopf:hover { background: var(--flaeche-2); }
.feiertag { font-size: .68rem; color: var(--text-3); font-weight: 400; }

/* Großer Kalender für Datumsfelder */
.datum-knopf { width: 100%; text-align: left; min-height: 2.45em; display: flex; justify-content: space-between; align-items: center; gap: .4em; white-space: nowrap; box-sizing: border-box; height: auto; line-height: 1.25; padding: .42em .55em; }
.datum-knopf::after { content: '▦'; color: var(--text-3); }
input.datum-knopf { cursor: text; padding-right: 2em; background-repeat: no-repeat; background-position: right .55em center; background-size: 1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%238a8a8a' stroke-width='1.4'%3E%3Crect x='1.5' y='2.5' width='13' height='12' rx='1.5'/%3E%3Cpath d='M1.5 6h13M5 1v3M11 1v3'/%3E%3C/svg%3E"); }
input.datum-knopf.falsch { border-color: var(--rot); }
input.datum-knopf::placeholder { color: var(--text-3); }
.datum-knopf.leer { color: var(--text-3); }
.kalpop { position: fixed; z-index: 50; width: 380px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,.28); padding: 12px; }
.kalpop.unten { left: 0; right: 0; bottom: 0; top: auto; width: auto; border-radius: 16px 16px 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.kp-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 1.1rem; }
.kp-kopf button { border: 0; background: none; font-size: 1.6rem; padding: 0 .5em; line-height: 1; }
.kp-raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kp-wt { text-align: center; font-size: .75rem; color: var(--text-3); text-transform: uppercase; padding-bottom: 2px; }
.kp-raster { justify-items: center; }
.kp-raster button { width: 42px; height: 42px; min-width: 0; padding: 0; border-radius: 50%; border: 0; background: none; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; line-height: 1; }
.kp-raster button:hover:not(:disabled) { background: var(--flaeche-2); }
.kp-raster button.frei { color: var(--text-3); }
.kp-raster button.anders { opacity: .45; }
.kp-raster button.heute { box-shadow: inset 0 0 0 1.5px var(--rot); }
.kp-raster button.gewaehlt { background: var(--rot); color: #fff; font-weight: 700; }
.kp-raster button.markiert { font-weight: 700; color: var(--text); }
.kp-raster button:disabled { opacity: .25; cursor: default; }
.kp-fuss { display: flex; gap: .5em; margin-top: 10px; }
.tz .datum-knopf:disabled { background: var(--flaeche-2); color: var(--text-3); border-style: dashed; opacity: 1; }
label > .datum-knopf { color: var(--text); font-size: 1.2em; text-transform: none; letter-spacing: 0; }
label > .datum-knopf.leer { color: var(--text-3); }

/* Dreh verschieben: Abfrage und Hinweise */
dialog.drehfrage { max-width: 560px; }
.drehfrage table.plan { width: 100%; border-collapse: collapse; margin: .6em 0; font-size: .92rem; }
.drehfrage .plan td { padding: .3em .4em; border-bottom: 1px solid var(--linie); vertical-align: top; }
.drehfrage .plan tr.warn td { background: var(--rot-hell); }
.hinweis, .pruef-hinweis { color: var(--rot); font-size: .82rem; }
.tz .pruef-hinweis { grid-column: 1 / -1; font-weight: 700; }
.tz.pruefen { outline: 2px solid var(--rot); outline-offset: 3px; border-radius: 4px; }
.zusammen .zf.warn { color: var(--rot); font-weight: 700; }
.marker.abgabe, .chip.ph-abgabe { cursor: grab; }

/* Kalender: Projekteintrag = farbiges Kürzel + Projektname */

/* Liste: Umfang */
.umfang { display: inline-block; border-radius: 99px; padding: 0 .55em; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.umfang.halb { background: color-mix(in srgb, var(--p-vorschnitt) 30%, var(--flaeche)); }
.umfang.ganz { background: color-mix(in srgb, var(--p-cut) 30%, var(--flaeche)); }
.mehr { font-size: .82rem; font-weight: 700; color: var(--rot); white-space: nowrap; }

/* Abgabe: Kürzel "Abg" auf Rot, weiße Schrift */
.marker.abgabe { display: block; width: fit-content; background: var(--rot); color: #fff; border-radius: 3px; padding: 0 .35em; margin: 2px auto; font-size: .68rem; }
/* Projektübersicht: Kürzel auf schraffierten Blöcken lesbar halten */
.block.wunsch, .block.offen { background: repeating-linear-gradient(135deg, var(--c) 0 5px, color-mix(in srgb, var(--c) 60%, #000) 5px 8px); }
.block.option { background: repeating-linear-gradient(135deg, var(--c) 0 5px, var(--opt-gelb) 5px 7px); }

/* Kalender: [Kürzel] Projektname [Realisator:in - Cutter:in] */
.chip.kalchip { --kz: 2.3rem; display: flex; align-items: stretch; gap: 0; padding: 0; border: 0; background: none; border-radius: 3px; overflow: hidden; white-space: nowrap; text-shadow: none; box-shadow: none; }
.chip.kalchip .kz, .chip.kalchip .wer { background: var(--c); color: #1a1a1a; font: 700 .68rem/1 "Lato", sans-serif; display: flex; align-items: center; border-radius: 3px; }
.chip.kalchip .kz { flex: none; padding: 0 .3em 0 .18em; justify-content: flex-start; }
.chip.kalchip .wer { flex: 0 1 auto; min-width: 0; max-width: 38%; padding: 0 .3em; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 1.95; }
.chip.kalchip .nm { flex: 1 1 auto; min-width: 45%; overflow: hidden; text-overflow: ellipsis; padding: 2px 4px; text-align: center;
  font-size: .95rem; line-height: 1.3; font-weight: 700; color: var(--kal-name); background: none; }
.chip.kalchip.stand .nm, .chip.kalchip.option .nm, .chip.kalchip.beides .nm { text-shadow: 0 0 2px #000, 0 0 3px #000; }
.chip.kalchip.stand .nm { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, var(--flaeche)) 0 6px, var(--flaeche) 6px 11px); }
.chip.kalchip.option .nm { background: repeating-linear-gradient(135deg, var(--opt-gelb) 0 6px, var(--flaeche) 6px 11px); }
.chip.kalchip.beides .nm { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, var(--flaeche)) 0 6px, var(--opt-gelb) 6px 12px); }
.chip.kalchip.ph-abgabe .kz { color: #fff; }
.chip.kalchip .nm .warn { color: var(--rot); }
@media (max-width: 760px) { .chip.kalchip .nm { font-size: 1rem; padding-top: 4px; padding-bottom: 4px; } }
select option.belegt { color: #8a8a8a; }

/* Umschalter Woche | Monat (Apple-Stil) */
.seg { display: inline-flex; background: #2a2a2a; border-radius: 8px; padding: 2px; gap: 0; }
.seg button { border: 0; background: none; color: var(--text-2); border-radius: 6px; padding: .3em .9em; }
.seg button.an { background: #4a4a4a; color: #fff; font-weight: 700; }
/* Wochenansicht: Tagesspalten, Sa/So schmaler */
.monat.woche { grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .55fr)); }
.monat.woche .tag { min-height: 420px; padding: 6px 6px 10px; gap: 8px; cursor: cell; }
.monat.woche .tag.wochenende { background: #1a1a1a; }
.monat.woche .tk { color: var(--text-2); font-size: .8rem; padding: 0 2px 2px; }
.monat.woche .tk b { font-size: 1.35rem; color: var(--text); font-weight: 400; margin-left: 4px; }
.monat.woche .tag.heute .tk b { background: var(--rot); color: #fff; border-radius: 99px; padding: 0 .3em; }
.chip.wk { display: flex; flex-direction: column; gap: 0; background: #262626; border: 0; border-radius: 9px; padding: 0; white-space: normal; overflow: hidden;
  color: var(--text); text-shadow: none; box-shadow: none; font-size: .9rem; line-height: 1.25; min-height: 96px; }
/* oben und unten je eine farbige Leiste über die ganze Breite */
.chip.wk .kz, .chip.wk .wer { background: var(--c); color: #1a1a1a; font: 700 .72rem/1.4 "Lato", sans-serif; padding: 2px .45em; }
.chip.wk .kz { text-align: left; }
.chip.wk .wer { text-align: center; }
.chip.wk.ph-abgabe .kz { color: #fff; }
/* Uhrzeiten beide linksbündig, Projektname mittig/mittig */
.chip.wk .von { align-self: flex-start; background: #3a3a3a; color: #fff; font-weight: 700; font-size: .8rem; padding: 0 .35em; border-radius: 4px; margin: 5px 6px 0; }
.chip.wk .nm { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 1.05rem; color: #fff;
  padding: 7px 5px; line-height: 1.2; overflow-wrap: anywhere; }
.chip.wk .bis { align-self: flex-start; color: var(--text-2); font-size: .8rem; font-weight: 700; margin: 0 6px 5px; }
.chip.wk.stand .nm, .chip.wk.option .nm, .chip.wk.beides .nm { text-shadow: 0 0 2px #000, 0 0 3px #000; }
.chip.wk.stand .nm { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #262626) 0 6px, #262626 6px 11px); }
.chip.wk.option .nm { background: repeating-linear-gradient(135deg, var(--opt-gelb) 0 6px, #262626 6px 11px); }
.chip.wk.beides .nm { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 45%, #262626) 0 6px, var(--opt-gelb) 6px 12px); }
.chip.wk .warn { color: var(--rot); }
.monat.woche .chip:not(.wk) { white-space: normal; }
@media (max-width: 760px) { .monat.woche { display: block; } .monat.woche .tag { min-height: 0; } }
/* Kalender-Navigation kompakt */
#tab-kalender .werkzeug .titel { font-size: 1.3rem; min-width: 7.5em; }
#tab-kalender .werkzeug .titel.kurz { min-width: 3.6em; }
#tab-kalender .werkzeug button.icon { padding: .3em .55em; }

/* Mitteilungen-Knopf: nur sichtbar, wenn es etwas gibt */
#mittBtn { font-weight: 700; display: inline-flex; align-items: center; gap: .45em; }
#mittBtn.an { background: #e8e8e8; color: #111; border-color: #e8e8e8; }
.zahl { background: var(--rot); color: #fff; border-radius: 99px; min-width: 1.5em; height: 1.5em; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; padding: 0 .4em; }
/* Kalender + Seitenleiste nebeneinander */
.kalsplit.mit-seite { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 14px; align-items: start; }
.seite { background: #202020; border: 1px solid #333; border-radius: 12px; padding: 14px; position: sticky; top: 10px; max-height: calc(100vh - 20px); overflow: auto; display: flex; flex-direction: column; gap: 8px; }
.seite h2 { margin: 2px 0; font-size: 1.15rem; }
.seite-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.seite .x { font-size: 1.2rem; color: var(--text-3); }
.seite-fuss { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.seite .klein, button.klein { font-size: .8rem; padding: .2em .6em; }
.mz { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; padding: 9px 6px; border-top: 1px solid #333; align-items: start; border-radius: 6px; cursor: pointer; }
.mz:hover { background: #2a2a2a; }
.mz b { color: #fff; font-weight: 700; }
.mz.gelesen { opacity: .4; } .mz.gelesen b { color: var(--text-2); }
.pz { display: grid; grid-template-columns: auto 1fr; gap: 8px; padding: 8px; border-radius: 8px; background: #262626; }
.pz.akt { background: #2f2f2f; box-shadow: inset 3px 0 0 #fff; }
.pz1 { font-weight: 700; } .pz2 { color: var(--text-2); font-size: .82rem; margin: 2px 0 5px; }
.pz .ok { color: #5fd06f; font-weight: 700; }
.pz .wahl { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; margin-top: 3px; }
.pz select { font-size: .82rem; padding: .2em .4em; }
.pliste { display: flex; flex-direction: column; gap: 8px; }
/* Hervorheben im Kalender */
.chip.hl { box-shadow: 0 0 0 2px #fff, 0 0 16px 4px rgba(255,255,255,.35) !important; position: relative; z-index: 1; }
.chip.dim { opacity: .35; }
.chip.puls { animation: puls 1.2s ease-in-out 3; }
@keyframes puls { 50% { box-shadow: 0 0 0 3px #fff, 0 0 26px 8px rgba(255,255,255,.55); } }
.chip.projhl { box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
/* Fenster „Seit deinem letzten Besuch“ */
.neuDlg { max-width: 560px; }
.neuDlg h2 { margin: 0 0 4px; }
@media (max-width: 1000px) { .kalsplit.mit-seite { grid-template-columns: 1fr; } .seite { position: fixed; right: 8px; left: 8px; bottom: 8px; top: auto; max-height: 70vh; z-index: 40; box-shadow: 0 -10px 40px rgba(0,0,0,.6); } }
.pz > .kzl, .mz > .kzl { align-self: start; }

/* Mein Kalender: Anleitung */
#meinKalKarte .tabs { display: flex; gap: 6px; margin: 8px 0 12px; flex-wrap: wrap; }
#meinKalKarte .tabs button { border-radius: 99px; padding: .3em 1em; }
#meinKalKarte .tabs button.an { background: #e8e8e8; color: #111; border-color: #e8e8e8; font-weight: 700; }
#meinKalKarte h4 { margin: .2em 0 .6em; }
.schritt-k { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linie); }
.schritt-k .nr { background: var(--rot); color: #fff; font-weight: 700; border-radius: 99px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.linkbox { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #181818; border: 1px solid #333; border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px; }
.linkbox code { overflow-wrap: anywhere; font-size: .8rem; color: #fff; flex: 1; min-width: 12em; }
.warnhinweis { background: #3a3120; border: 1px solid #6b5a2a; border-radius: 8px; padding: 8px 10px; color: #f1e3b5; font-size: .88rem; }
#appleForm { margin: 4px 0 8px 38px; }

/* Meldung mit Knopf (Rückgängig / Wiederherstellen) */
.toastknopf { background: none; border: 1px solid rgba(255,255,255,.5); color: inherit; border-radius: 6px; padding: .2em .7em; font-weight: 700; }
/* Übersicht „Offen“ */
#offenBtn { font-weight: 700; display: inline-flex; align-items: center; gap: .45em; }
#offenBtn.allesgut { color: #5fd06f; border-color: #2f6b3a; font-weight: 400; }
#offenBtn.an { background: #e8e8e8; color: #111; border-color: #e8e8e8; }
.zahl.orange { background: #d9822b; }
.offenproj { display: block; width: 100%; text-align: left; background: #262626; border: 0; border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; color: var(--text); }
.offenproj:hover { background: #2f2f2f; }
.offenzeile { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 5px; font-size: .86rem; }
.allesok { font-size: 1.4rem; font-weight: 700; color: #5fd06f; margin: 18px 0 6px; }
.pz .bearb { color: #fff; font-size: 1.05rem; padding: 0 .3em; opacity: .9; } .pz .bearb:hover { opacity: 1; }
#eForm.urlaub .raster2 > label:not([data-urlaub]), #eForm.urlaub fieldset.ist, #eForm.urlaub #phasen, #eForm.urlaub #optWrap { display: none; }

/* Verwaltung: Projekt-Tabellen */
.ptab { box-shadow: none; }
.ptab table { font-size: .85rem; }
.ptab td, .ptab th { padding: .3em .4em; vertical-align: middle; }
.ptab select, .ptab input:not([type=checkbox]) { font-size: .82rem; padding: .15em .3em; max-width: 9.5em; }
.ptab input:not([type=checkbox]) { width: 8em; }
.ptab .mitte { text-align: center; } .ptab .rechts { white-space: nowrap; text-align: right; }
.ptab .pname-link { color: var(--text); text-align: left; padding: 0; font-weight: 700; }
.ptab tr.inaktiv { opacity: .45; }
.ptab tr.hl-transf > td { background: color-mix(in srgb, var(--opt-gelb) 30%, var(--flaeche)); }
details.archiv { margin-top: .8em; } details.archiv summary { cursor: pointer; color: var(--text-2); font-weight: 700; }

/* Kacheln: einklappen + frei skalieren */
.spalten > .karte { flex: 1 1 320px; min-width: 260px; }
.spalten > .karte.breit { flex-basis: 100%; }
.spalten > .karte[style*="width"] { flex: 0 0 auto; }
.pruefbereich { display: contents; }
.skalierbar { resize: both; overflow: auto; }
.karte.skalierbar { min-height: 48px; }
.karte > h3.klappe { cursor: pointer; user-select: none; display: flex; align-items: center; gap: .4em; }
.karte > h3.klappe::before { content: '▾'; color: var(--text-3); font-size: .9em; transition: transform .15s; }
.karte.zu > h3.klappe::before { transform: rotate(-90deg); }
.karte.zu > :not(h3) { display: none !important; }
.karte.zu { resize: none; height: auto !important; padding-bottom: 10px; }
.karte.zu > h3 { margin-bottom: 0; }
.unterblocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.unterblock { border-top: 1px solid var(--linie); padding-top: 10px; }
.unterblock h4 { margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; font-size: .85rem; color: var(--text-2); }
#monat.skalierbar, .zeitleiste-wrap.skalierbar, .tabelle-wrap.skalierbar { min-height: 120px; min-width: 300px; }
.pruefbereich > .karte { flex: 1 1 320px; min-width: 260px; }
.pruefbereich > .karte.breit { flex-basis: 100%; }
.pruefbereich > .karte[style*="width"] { flex: 0 0 auto; }

/* Sichtbare Scrollleisten (für alle Geräte) */
.sleiste { position: fixed; z-index: 30; background: rgba(255,255,255,.45); border-radius: 99px; pointer-events: none; transition: background .2s; }
.sleiste.v { width: 5px; } .sleiste.h { height: 5px; }
.sleiste.oben { z-index: 100; }
.sleiste[hidden] { display: none; }
/* zusätzlich die normalen Leisten sichtbar und dunkel gestalten */
* { scrollbar-color: #5a5a5a transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* Erfasste Zeiten (Cutter:innen) */
fieldset.ist { border: 1px solid var(--linie); border-radius: 4px; padding: .3em .7em .6em; margin: 0; display: flex; flex-wrap: wrap; gap: .5em 1em; }
fieldset.ist legend { font-size: .85rem; color: var(--text-2); padding: 0 .3em; }
fieldset.ist label { flex: 1 1 7em; }
span.ist { font-weight: 700; } span.ist::after { content: " ✓"; color: var(--text-3); font-weight: 400; font-size: .85em; }
/* Projekt- und Kürzel-Tabellen: Links weiß (lesbar auch auf gelb/orange), OK grün */
.ptab button.link:not(.pname-link), #projKuerzel button.link { color: var(--text); font-weight: 700; }
.ptab button.link:not(.pname-link):hover, #projKuerzel button.link:hover { text-decoration: underline; }
#projKuerzel button[data-kz-speichern] { color: var(--p-cut); }
.ptab tr.hl-transf > td { color: #fff; }
.ptab tr.hl-transf .leise { color: #e6e6e6; }
#projKuerzel .warn { color: var(--text); font-weight: 700; }

/* Abrechnung in der Liste (nach Kunde / nach Cutter:in) */
.liste td.r, .liste th.r { text-align: right; font-variant-numeric: tabular-nums; }
.liste tr.abr-kopf td { background: #2a2a2a; font-weight: 700; font-size: 1.05rem; border-top: 2px solid #444; cursor: default; }
.liste tr.abr-kopf td .leise { font-weight: 400; font-size: .85rem; margin-left: .5em; }
.liste tr.abr-sum td { background: #1c241c; color: var(--text-2); cursor: default; }
.liste tr.abr-raus td { color: var(--text-3); } .liste tr.abr-raus td.nm { text-decoration: line-through; }
.liste tr.abr-unfest td.nm { text-decoration: none; }
/* Passwort anzeigen (Auge) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 2.6em; }
.pw-auge { position: absolute; right: .25em; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .3em; color: var(--text-3); line-height: 0; cursor: pointer; }
.pw-auge:hover, .pw-auge.an { color: var(--text); }
label > .pw-wrap > input { color: var(--text); font-size: 1.2em; text-transform: none; letter-spacing: 0; }

/* Sammel-Aktionen in den Prüf-Listen */
.sammel { padding: .4em 0 .7em; border-bottom: 1px solid var(--linie); margin-bottom: .3em; gap: .6em; flex-wrap: wrap; align-items: center; }
#fremdListe .eintrag input[type=checkbox] { margin-right: .4em; vertical-align: middle; }

.fehler.hinweis { color: var(--text-2); }

/* Exchange: Kalender ankreuzen */
#zielWahl .zw { align-items: center; gap: 1em; }
#zielWahl .zw select { max-width: 22em; }

/* Projekte: abgerechnet (€) und „zu löschen“ */
.abr-voll { display: inline-block; min-width: 1.8em; background: #2f8f46; color: #fff; font-weight: 700; border-radius: 4px; padding: 0 .35em; }
.abr-teil { display: inline-block; min-width: 1.8em; border: 2px solid #2f8f46; color: #8fd19e; font-weight: 700; border-radius: 4px; padding: 0 .3em; }
.ptab .zl { display: inline-flex; align-items: center; gap: .2em; white-space: nowrap; text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--text-2); }
.ptab .zl.an { color: #fff; font-weight: 700; }

/* ausgewählter Termin im Kalender (Entf/Backspace löscht) und anklickbare Zeilen in der Seitenleiste */
.chip.gewaehlt { outline: 2px solid #fff; outline-offset: 1px; border-radius: 4px; }
#seite .pz { cursor: pointer; }

/* Kunde: Verschiebung durch LOOX bestätigen */
.kpruef { background: color-mix(in srgb, #f0c040 18%, var(--flaeche)); border-left: 3px solid #f0c040; padding: .6em .8em; margin: .4em 0 .6em; border-radius: 6px; font-size: .92rem; }
.kpruef .zeile { display: flex; gap: .5em; margin-top: .5em; flex-wrap: wrap; }

/* Mitteilung angetippt → Ziel-Karte kurz hervorheben */
.puls-karte { outline: 2px solid #f0c040; outline-offset: 3px; transition: outline-color .4s; }

#neuListe [data-mitt] { cursor: pointer; }
#neuListe [data-mitt]:hover { background: var(--flaeche-2); }
.ptab .zl { white-space: nowrap; }

/* Geist: gewünschter neuer Termin eines Verschiebewunsches – blass, ohne Rahmen */
.chip.geist { opacity: .42; cursor: pointer; }
.chip.geist:hover { opacity: .7; }

/* Projekt komplett abgerechnet: ganze Zeile grün */
.ptab tr.hl-abr > td { background: color-mix(in srgb, #2f8f46 32%, var(--flaeche)); color: #fff; }
.ptab tr.hl-abr .leise { color: #e6e6e6; }

/* Outlook-/Kalender-Einträge, die man als Buchung übernehmen kann */
.chip.fremd.uebernehmbar { cursor: pointer; }
.chip.fremd.uebernehmbar:hover { color: var(--text); }

/* Abrechnung pauschal nach Tagen */
.tagumfang { align-items: center; gap: .8em; }
.pausch { white-space: nowrap; margin-left: .3em; }
.pausch .link { padding: 0 .25em; color: var(--text-3); font-weight: 700; }
.pausch .link.an { color: #fff; background: var(--flaeche-2); border-radius: 3px; }

/* Termin-Fenster: Auswahl mit „+“ daneben */
.mitplus { display: flex; gap: .4em; align-items: stretch; }
.mitplus select { flex: 1; min-width: 0; }
button.plus { min-width: 2.4em; padding: 0 .6em; font-weight: 700; font-size: 1.1rem; }
