/* ================= Farben: Hell (Tag) und Dunkel (Nacht) ================= */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --seite: #fbfbfd;
  --gitter: rgba(23, 43, 77, .06);
  --brett: rgba(243, 244, 247, .9);
  --karte: #ffffff;
  --karte-rand: #dcdfe4;
  --flaeche: #f4f5f7;
  --flaeche-stark: #e7e9ee;
  --text: #172b4d;
  --leise: #5b6b86;
  --linie: #dfe1e6;
  --akzent: #0c66e4;
  --akzent-hover: #0055cc;
  --akzent-text: #ffffff;
  --link: #0055cc;
  --eingabe: #ffffff;
  --eingabe-rand: #b3bac6;
  --fokus: #1d7afc;
  --knopf-hover: #eef0f4;
  --rot: #ae2e24;
  --rot-hell: #ffeceb;
  --rot-linie: #e2483d;
  --gruen: #1f845a;
  --gruen-hell: #dcfff1;
  --gruen-text: #164b35;
  --gelb-linie: #f5b800;
  --prio-normal: #cf9f02;
  --prio-hoch: #c9372c;
  --typ: #0c66e4;
  --schatten: 0 1px 1px rgba(9, 30, 66, .22), 0 0 1px rgba(9, 30, 66, .26);
  --schatten-hoch: 0 6px 16px rgba(9, 30, 66, .18), 0 0 1px rgba(9, 30, 66, .3);
  --schatten-brett: 0 1px 3px rgba(9, 30, 66, .12), 0 0 1px rgba(9, 30, 66, .2);
  --marke-bg: #eceef2;
  --marke-text: #3b4a68;
  /* Stand Etiketten */
  --st-neu-bg: #f1f2f4; --st-neu-rand: #b3b9c4; --st-neu-text: #292a2e;
  --st-arbeit-bg: #cfe1fd; --st-arbeit-rand: #579dff; --st-arbeit-text: #09326c;
  --st-wartet-bg: #fdd0ec; --st-wartet-rand: #e774bb; --st-wartet-text: #50253f;
  --st-fertig-bg: #baf3db; --st-fertig-rand: #4bce97; --st-fertig-text: #164b35;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --seite: #15191d;
  --gitter: rgba(255, 255, 255, .05);
  --brett: rgba(29, 33, 37, .92);
  --karte: #22272b;
  --karte-rand: #3a444e;
  --flaeche: #1d2125;
  --flaeche-stark: #2c333a;
  --text: #dee4ea;
  --leise: #9fadbc;
  --linie: #38414a;
  --akzent: #579dff;
  --akzent-hover: #85b8ff;
  --akzent-text: #101214;
  --link: #85b8ff;
  --eingabe: #1d2125;
  --eingabe-rand: #596773;
  --fokus: #85b8ff;
  --knopf-hover: #2c333a;
  --rot: #fd9891;
  --rot-hell: #42221f;
  --rot-linie: #f15b50;
  --gruen: #4bce97;
  --gruen-hell: #1c3329;
  --gruen-text: #7ee2b8;
  --gelb-linie: #e2b203;
  --prio-normal: #e2b203;
  --prio-hoch: #f87168;
  --typ: #579dff;
  --schatten: 0 1px 1px rgba(3, 4, 4, .5), 0 0 1px rgba(3, 4, 4, .5);
  --schatten-hoch: 0 8px 18px rgba(3, 4, 4, .55), 0 0 1px rgba(3, 4, 4, .6);
  --schatten-brett: 0 1px 3px rgba(3, 4, 4, .5), 0 0 1px rgba(3, 4, 4, .5);
  --marke-bg: #2c333a;
  --marke-text: #b6c2cf;
  --st-neu-bg: #2c333a; --st-neu-rand: #596773; --st-neu-text: #b6c2cf;
  --st-arbeit-bg: #1c2b41; --st-arbeit-rand: #1d7afc; --st-arbeit-text: #85b8ff;
  --st-wartet-bg: #421f34; --st-wartet-rand: #cd519d; --st-wartet-text: #f797d2;
  --st-fertig-bg: #1c3329; --st-fertig-rand: #2abb7f; --st-fertig-text: #7ee2b8;
}

/* ================= Grundlagen ================= */
* { box-sizing: border-box; }
html { font-size: 19px; }
body {
  margin: 0;
  background-color: var(--seite);
  /* sehr zartes Karomuster wie in einem Schulheft */
  background-image:
    linear-gradient(var(--gitter) 1px, transparent 1px),
    linear-gradient(90deg, var(--gitter) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--text);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1 { font-size: 1.75rem; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 8px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
p { margin: 0 0 12px; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.sym { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ================= Kopfleiste ================= */
.leiste { background: var(--karte); border-bottom: 1px solid var(--linie); }
.leiste-innen { max-width: 1560px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marke-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1.15rem; }
.logo { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, #1d7afc, #0055cc); color: #fff; display: grid; place-items: center; }
.logo .sym { width: 24px; height: 24px; stroke-width: 3; }
.rechts { display: flex; align-items: center; gap: 14px; }
.wer { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.design-schalter { min-height: 44px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; }
.design-schalter .sym { width: 1.25em; height: 1.25em; }

.seite { max-width: 1560px; margin: 0 auto; padding: 28px 24px 90px; }
.titelzeile { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.krume { display: inline-block; font-size: .85rem; color: var(--leise); margin-bottom: 6px; text-decoration: none; }
.krume:hover { text-decoration: underline; }
.krume::before { content: "‹ "; }
.unter { color: var(--leise); margin: 4px 0 0; }

/* ================= Knöpfe ================= */
button {
  font: inherit; font-weight: 600; cursor: pointer;
  min-height: 48px; padding: 8px 20px;
  border-radius: 10px; border: 1px solid var(--eingabe-rand);
  background: var(--karte); color: var(--text);
}
button:hover:not(:disabled) { background: var(--knopf-hover); }
button.haupt { background: var(--akzent); border-color: var(--akzent); color: var(--akzent-text); display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
button.haupt:hover:not(:disabled) { background: var(--akzent-hover); border-color: var(--akzent-hover); }
button.gefahr { color: var(--rot); border-color: var(--rot-linie); }
button.gefahr:hover:not(:disabled) { background: var(--rot-hell); }
button.gross { min-height: 54px; font-size: 1.05rem; padding: 12px 26px; }
button.schlicht { width: 100%; border-style: dashed; color: var(--leise); background: transparent; }
button:disabled { opacity: .5; cursor: default; }

/* ================= Zahlen ================= */
.zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.zahl { background: var(--karte); border-radius: 12px; box-shadow: var(--schatten); padding: 16px 20px; border-left: 6px solid var(--akzent); }
.zahl b { display: block; font-size: 2.1rem; line-height: 1.1; }
.zahl span { color: var(--leise); font-size: .88rem; }
.zahl.rot { border-left-color: var(--rot-linie); }
.zahl.rot b { color: var(--rot); }
.zahl.gruen { border-left-color: var(--gruen); }
.zahl.grau { border-left-color: var(--eingabe-rand); }

/* ================= Brett (ein großer Block wie im Vorbild) ================= */
.board {
  background: var(--brett);
  border: 1px solid var(--linie);
  border-radius: 22px;
  box-shadow: var(--schatten-brett);
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 26px 22px;
  align-items: start;
}
@media (min-width: 1100px) { .board { grid-template-columns: repeat(4, 1fr); } }
.spalte { min-height: 220px; border-radius: 14px; padding: 4px; margin: -4px; transition: background .12s; }
.spalte.ziel { background: color-mix(in srgb, var(--akzent) 12%, transparent); outline: 2px dashed var(--akzent); outline-offset: 0; }
.spalten-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; margin: 0 0 14px; font-size: 1rem; }
.spalten-links { display: flex; align-items: center; gap: 10px; }
.anz { color: var(--leise); font-weight: 600; font-size: .95rem; }
.einklappen { min-height: 36px; width: 36px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 8px; color: var(--leise); }
.einklappen .sym { transition: transform .15s; }
.spalte.zu .einklappen .sym { transform: rotate(-90deg); }
.spalte.zu .spalten-inhalt { display: none; }
.leer { color: var(--leise); padding: 14px 8px; font-size: .92rem; text-align: center; border: 2px dashed var(--linie); border-radius: 12px; }
.verlauf .leer, .dialog-innen .leer { border: 0; text-align: left; padding: 4px 0; }

/* Stand Etiketten mit Rahmen wie im Vorbild */
.etikett { display: inline-block; white-space: nowrap; font-weight: 600; font-size: .9rem; padding: 2px 11px; border-radius: 7px; line-height: 1.5; border: 2px solid; }
.st-neu { background: var(--st-neu-bg); color: var(--st-neu-text); border-color: var(--st-neu-rand); }
.st-in_arbeit { background: var(--st-arbeit-bg); color: var(--st-arbeit-text); border-color: var(--st-arbeit-rand); }
.st-wartet { background: var(--st-wartet-bg); color: var(--st-wartet-text); border-color: var(--st-wartet-rand); }
.st-erledigt { background: var(--st-fertig-bg); color: var(--st-fertig-text); border-color: var(--st-fertig-rand); }

/* ================= Karten ================= */
.aufgabe {
  display: block; margin: 0 0 12px; cursor: pointer;
  background: var(--karte); border: 1px solid var(--karte-rand); border-radius: 8px; box-shadow: var(--schatten);
  padding: 14px 16px 12px; color: var(--text);
  user-select: none; -webkit-user-select: none;
}
.aufgabe:hover { box-shadow: var(--schatten-hoch); }
.aufgabe[draggable="true"] { cursor: grab; }
.aufgabe.zieht { opacity: .45; cursor: grabbing; }
.aufgabe.akzent-gelb { border: 2px solid var(--gelb-linie); padding: 13px 15px 11px; }
.aufgabe.akzent-rot { border: 2px solid var(--rot-linie); padding: 13px 15px 11px; }
.aufgabe .titel { display: block; font-weight: 500; font-size: 1.02rem; line-height: 1.4; overflow-wrap: anywhere; }
.aufgabe .info { display: block; color: var(--leise); font-size: .8rem; margin-top: 4px; }
.marken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.marke { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 2px 9px; border-radius: 6px; background: var(--marke-bg); color: var(--marke-text); }
.marke.rot { background: var(--rot-hell); color: var(--rot); }
.marke.gruen { background: var(--gruen-hell); color: var(--gruen-text); }
.fuss { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; }
.nummer { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .85rem; color: var(--leise); white-space: nowrap; }
.nummer .typ { color: var(--typ); width: 1.3em; height: 1.3em; stroke-width: 2.2; }
.fuss-rechts { display: inline-flex; align-items: center; gap: 6px; }
.prio { width: 1.4em; height: 1.4em; stroke-width: 2.6; }
.prio.normal { color: var(--prio-normal); }
.prio.hoch { color: var(--prio-hoch); }
.avatare { display: inline-flex; }
.avatare .avatar + .avatar { margin-left: -6px; }
.aufgabe .avatar { box-shadow: 0 0 0 2px var(--karte); }

/* ================= Avatare ================= */
.avatar { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: .72rem; font-weight: 700; background: #5e6c84; letter-spacing: .02em; }
.avatar.klein { width: 24px; height: 24px; font-size: .62rem; }
.avatar.gross { width: 40px; height: 40px; font-size: .9rem; }
.leiste .avatar { width: 36px; height: 36px; font-size: .85rem; }
.av0 { background: #0c66e4; } .av1 { background: #1f845a; } .av2 { background: #c25100; } .av3 { background: #6e5dc6; }
.av4 { background: #ae2e24; } .av5 { background: #206a83; } .av6 { background: #7f5f01; } .av7 { background: #943d73; }

/* ================= Verlauf ================= */
.verlauf { margin-top: 36px; }
.verlauf ul { list-style: none; margin: 0; padding: 0; background: var(--karte); border-radius: 12px; box-shadow: var(--schatten); }
.verlauf li { display: flex; gap: 14px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--linie); }
.verlauf li:last-child { border-bottom: 0; }
.verlauf ul.offen { max-height: 560px; overflow-y: auto; }
.verlauf .erweitern { margin-top: 12px; background: var(--karte); border-style: solid; color: var(--link); }
.verlauf time { color: var(--leise); font-size: .85rem; display: block; }

/* ================= Projekte ================= */
.projekte { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.projekt { background: var(--karte); border-radius: 16px; box-shadow: var(--schatten); padding: 22px; text-decoration: none; color: var(--text); display: block; border-top: 5px solid var(--akzent); }
.projekt:hover { box-shadow: var(--schatten-hoch); }
.projekt h2 { font-size: 1.3rem; margin-bottom: 14px; }
.projekt-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.projekt-zahlen b { display: block; font-size: 1.8rem; line-height: 1.1; }
.projekt-zahlen span { color: var(--leise); font-size: .8rem; }
.projekt-zahlen .rot b { color: var(--rot); }

/* ================= Dialoge ================= */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(660px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--karte); color: var(--text); box-shadow: 0 12px 40px rgba(9, 30, 66, .4); }
dialog::backdrop { background: rgba(9, 30, 66, .55); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px 12px 26px; position: sticky; top: 0; background: var(--karte); border-bottom: 1px solid var(--linie); z-index: 1; }
.dialog-kopf h2 { margin: 0; font-size: 1.3rem; }
.dialog-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.zu-knopf { width: 46px; height: 46px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; border-radius: 50%; }
.zu-knopf .sym { width: 22px; height: 22px; }
.dialog-innen { padding: 8px 26px 26px; }
.aufgaben-titel { font-size: 1.4rem; margin: 14px 0 4px; overflow-wrap: anywhere; }
.dialog-innen label { display: block; font-weight: 700; margin: 18px 0 6px; font-size: .95rem; }
.dialog-innen input[type=text], .dialog-innen input[type=date], .dialog-innen textarea, .dialog-innen select {
  font: inherit; width: 100%; padding: 11px 14px; min-height: 50px; border: 2px solid var(--eingabe-rand); border-radius: 10px; background: var(--eingabe); color: var(--text);
}
.dialog-innen textarea { min-height: 130px; resize: vertical; }
.dialog-innen textarea.kurz { min-height: 90px; }
.dialog-innen input:focus, .dialog-innen textarea:focus, .dialog-innen select:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, transparent); }
.dialog-innen .haken { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-top: 18px; }
.dialog-innen .haken input { width: 26px; height: 26px; accent-color: var(--akzent); }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.aktionen.ohne-abstand { margin-top: 0; }
.aktionen.zwischen { justify-content: space-between; margin-top: 28px; }
.stand-knopf { border-width: 2px; }
.stand-knopf.st-neu { border-color: var(--st-neu-rand); background: var(--st-neu-bg); color: var(--st-neu-text); }
.stand-knopf.st-in_arbeit { border-color: var(--st-arbeit-rand); background: var(--st-arbeit-bg); color: var(--st-arbeit-text); }
.stand-knopf.st-wartet { border-color: var(--st-wartet-rand); background: var(--st-wartet-bg); color: var(--st-wartet-text); }
.stand-knopf.st-erledigt { border-color: var(--st-fertig-rand); background: var(--st-fertig-bg); color: var(--st-fertig-text); }
.angaben { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 14px 0 6px; padding: 14px 16px; background: var(--flaeche); border-radius: 12px; }
.angaben dt { color: var(--leise); font-size: .88rem; align-self: center; }
.angaben dd { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.beschreibung { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--flaeche); border-radius: 12px; padding: 14px 16px; margin-top: 12px; }
.kommentar { display: flex; gap: 12px; margin: 12px 0; align-items: flex-start; }
.kommentar > div { background: var(--flaeche-stark); border-radius: 12px; padding: 10px 14px; flex: 1; overflow-wrap: anywhere; }
.kommentar small { color: var(--leise); display: block; margin-bottom: 2px; }
.fehler { background: var(--rot-hell); color: var(--rot); border-radius: 10px; padding: 10px 14px; margin-top: 14px; font-weight: 600; }
.abstand-oben { margin-top: 28px; }

/* ================= Meldung unten, Hinweis, Zugänge ================= */
.meldung { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--rot-hell); color: var(--rot); border: 1px solid var(--rot-linie); border-radius: 12px; padding: 12px 20px; font-weight: 600; box-shadow: var(--schatten-hoch); z-index: 20; max-width: calc(100vw - 32px); }
.hinweis { background: var(--karte); border-radius: 16px; box-shadow: var(--schatten); padding: 28px; max-width: 640px; margin: 40px auto; border-top: 5px solid var(--gelb-linie); }
.zugaenge { background: var(--karte); border-radius: 12px; box-shadow: var(--schatten); padding: 6px 20px; }
.zugang { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linie); }
.zugang:last-child { border-bottom: 0; }
.zugang-name { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; }
.zugang-name small { display: block; color: var(--leise); }
.zugang input { flex: 2 1 260px; font: inherit; font-size: .8rem; padding: 10px; border: 1px solid var(--eingabe-rand); border-radius: 8px; min-height: 44px; background: var(--eingabe); color: var(--text); }

/* ================= Handy ================= */
@media (max-width: 700px) {
  html { font-size: 18px; }
  .leiste-innen { padding: 8px 14px; }
  .seite { padding: 18px 14px 80px; }
  .wer span, .design-schalter span { display: none; }
  .design-schalter { padding: 6px 10px; }
  .zahlen { gap: 8px; }
  .zahl { padding: 10px 12px; border-left-width: 5px; }
  .zahl b { font-size: 1.6rem; }
  .zahl span { font-size: .72rem; line-height: 1.25; display: block; }
  button.gross { width: 100%; }
  .titelzeile { align-items: stretch; }
  .board { padding: 14px; border-radius: 18px; gap: 22px; }
  .dialog-innen { padding: 6px 18px 22px; }
  .dialog-kopf { padding: 12px 12px 10px 18px; }
  .angaben { grid-template-columns: 1fr; gap: 2px; }
  .angaben dd { margin-bottom: 8px; }
  .projekt-zahlen b { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ================= Kunden Logo in der Kopfzeile ================= */
.projekt-logo img { height: 36px; width: auto; display: block; }
.marke-logo.kunde { gap: 14px; }
.marke-logo.kunde .logo-text { font-size: 1.2rem; letter-spacing: .01em; }
:root[data-theme="dark"] .logo-hell, :root:not([data-theme="dark"]) .logo-dunkel { display: none; }

/* Knöpfe in der Kopfzeile */
.knopf-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px; border: 1px solid var(--eingabe-rand); border-radius: 10px; background: var(--karte); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.knopf-link:hover { background: var(--knopf-hover); }
.knopf-link .sym { width: 1.25em; height: 1.25em; }
.leiste .wer { min-height: 44px; padding: 4px 10px 4px 4px; border: 0; background: transparent; color: var(--text); border-radius: 999px; }
.leiste .wer:hover { background: var(--knopf-hover); }

/* ================= Profilbilder ================= */
img.avatar { display: inline-block; object-fit: cover; object-position: center 20%; background: var(--flaeche-stark); }
.profil-vorschau { display: flex; align-items: center; gap: 16px; margin: 16px 0; }
.profil-vorschau .avatar { width: 96px; height: 96px; font-size: 2rem; }
.profil-vorschau b { font-size: 1.2rem; }

/* ================= Reiter ================= */
.reiter { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--linie); margin: 0 0 24px; }
.reiter-link { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; min-height: 48px; text-decoration: none; color: var(--leise); font-weight: 600; border-bottom: 4px solid transparent; margin-bottom: -2px; border-radius: 8px 8px 0 0; }
.reiter-link:hover { color: var(--text); background: var(--knopf-hover); }
.reiter-link.aktiv { color: var(--link); border-bottom-color: var(--akzent); }
.zaehler { background: var(--flaeche-stark); color: var(--text); border-radius: 999px; min-width: 26px; height: 26px; display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; padding: 0 7px; }
.reiter-link.aktiv .zaehler { background: var(--akzent); color: var(--akzent-text); }

/* ================= Ideen ================= */
.ideen { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.idee { background: var(--karte); border: 1px solid var(--karte-rand); border-radius: 12px; box-shadow: var(--schatten); padding: 16px 18px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--gelb-linie); }
.idee:hover { box-shadow: var(--schatten-hoch); }
.idee.umgewandelt { border-top-color: var(--gruen); opacity: .85; }
.idee-kopf { display: flex; gap: 10px; align-items: flex-start; }
.idee-symbol { color: var(--prio-normal); width: 1.4em; height: 1.4em; margin-top: 2px; }
.idee .titel { font-weight: 600; font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.idee-text { color: var(--leise); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere; }
.von { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--leise); font-size: .82rem; }
.idee .fuss { margin-top: auto; padding-top: 6px; }
.gross-leer { padding: 40px 20px; font-size: 1rem; background: var(--brett); }
.gruen-hinweis { background: var(--gruen-hell); color: var(--gruen-text); border-radius: 10px; padding: 10px 14px; font-weight: 600; margin-top: 14px; }

/* ================= Papierkorb ================= */
.korb { display: grid; gap: 12px; }
.korb-zeile { background: var(--karte); border: 1px solid var(--karte-rand); border-radius: 12px; box-shadow: var(--schatten); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.korb-text { flex: 1 1 320px; display: grid; gap: 6px; justify-items: start; }
.korb-titel { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.korb-text .unter { margin: 0; font-size: .88rem; }

/* ================= Personen ================= */
.stufen { display: grid; gap: 6px; background: var(--karte); border-radius: 12px; box-shadow: var(--schatten); padding: 16px 20px; margin-bottom: 22px; font-size: .92rem; color: var(--leise); }
.stufen b { color: var(--text); }
.personen { display: grid; gap: 16px; margin-bottom: 26px; }
.person { background: var(--karte); border: 1px solid var(--karte-rand); border-radius: 14px; box-shadow: var(--schatten); padding: 18px 20px; display: grid; gap: 14px; }
.person.abgeschaltet { opacity: .6; }
.person-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.person-kopf .avatar { width: 56px; height: 56px; font-size: 1.1rem; }
.person-name { flex: 1 1 160px; display: grid; }
.person-name small { color: var(--leise); }
.person-rechte { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.person-rechte label.klein { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.person-rechte select, .neu-felder select, .neu-felder input { font: inherit; min-height: 46px; padding: 8px 12px; border: 2px solid var(--eingabe-rand); border-radius: 10px; background: var(--eingabe); color: var(--text); width: 100%; }
.person-rechte select { width: auto; }
.haken-klein { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; }
.haken-klein input { width: 24px; height: 24px; accent-color: var(--akzent); }
.person .zugang { padding: 0; border: 0; }
.schlicht-klein { min-height: 40px; padding: 4px 14px; font-size: .88rem; color: var(--leise); }
.neu-person h2 { margin: 0; }
.neu-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.neu-felder label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }

@media (max-width: 700px) {
  .marke-logo.kunde .logo-text { font-size: .95rem; line-height: 1.2; }
  .projekt-logo img { height: 28px; }
  .knopf-link span { display: none; }
  .knopf-link { padding: 6px 10px; }
  .reiter-link { padding: 10px 12px; }
}

/* Feinschliff */
button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.marke { white-space: nowrap; }
.idee .fuss { flex-wrap: wrap; }

/* ================= Ideen als Spalte auf dem Board ================= */
.etikett { display: inline-flex; align-items: center; gap: 6px; }
.etikett .sym { width: 1.05em; height: 1.05em; }
.st-idee { background: #f8e6a0; color: #533f04; border-color: #e2b203; }
:root[data-theme="dark"] .st-idee { background: #3f3200; color: #f5cd47; border-color: #b38600; }
.spalten-links { flex-wrap: wrap; }
.idee-neu { margin-bottom: 12px; min-height: 48px; background: transparent; }
.idee-neu:hover:not(:disabled) { background: var(--knopf-hover); }
.aufgabe.idee-karte { border-top: 4px solid var(--gelb-linie); }
.aufgabe .idee-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--leise); font-size: .9rem; margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.nummer .idee-symbol { color: var(--prio-normal); width: 1.3em; height: 1.3em; }

/* fünf Spalten nebeneinander, sobald genug Platz ist */
@media (min-width: 1100px) and (max-width: 1259px) { .board { grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); } }
@media (min-width: 1260px) { .board { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 26px 18px; } }

/* Spaltenkopf etwas kompakter, damit auch "Wartet auf Rückmeldung" in eine Zeile passt */
.spalten-kopf { flex-wrap: nowrap; gap: 4px; }
.spalten-links { gap: 8px; min-width: 0; }
.etikett { font-size: .85rem; padding: 2px 9px; }
.einklappen { min-height: 30px; width: 30px; }

/* ================= Links und Dateien ================= */
.marke.anhang { text-decoration: none; color: var(--link); background: var(--akzent-hell, var(--marke-bg)); max-width: 100%; }
.marke.anhang:hover { text-decoration: underline; }
:root[data-theme="dark"] .marke.anhang { background: #1c2b41; color: #85b8ff; }
:root:not([data-theme="dark"]) .marke.anhang { background: #e9f2ff; color: #0055cc; }
.anhang-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.anhang-zeile:last-of-type { border-bottom: 0; }
.anhang-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--link); text-decoration: none; flex: 1 1 200px; min-width: 0; }
.anhang-link span { overflow-wrap: anywhere; }
.anhang-link:hover span { text-decoration: underline; }
.anhang-zeile small { color: var(--leise); }
.link-felder { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
.link-felder input { font: inherit; width: 100%; padding: 11px 14px; min-height: 50px; border: 2px solid var(--eingabe-rand); border-radius: 10px; background: var(--eingabe); color: var(--text); }
.link-felder input:focus { border-color: var(--akzent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--akzent) 30%, transparent); }
.link-felder button { justify-self: start; }
.upload { margin-top: 16px; display: grid; gap: 8px; justify-items: start; }
.upload progress { width: 100%; height: 14px; accent-color: var(--akzent); }
.upload .unter { margin: 0; font-size: .85rem; }

/* ================= Verlauf löschen ================= */
.verlauf-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.verlauf-kopf h2 { margin: 0; }
.verlauf-text { flex: 1; min-width: 0; }
.verlauf-weg { min-height: 36px; width: 36px; padding: 0; border: 0; background: transparent; }
.gefahr-klein { color: var(--rot); border-color: var(--rot-linie); }

/* ================= Sicherung und Cloud ================= */
.sicherungen { display: grid; }
.sicherung { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.sicherung:last-child { border-bottom: 0; }
.sicherung-text { display: grid; }
.sicherung-text small { color: var(--leise); }
.korb > h2 { margin: 0 0 4px; }
.korb-ideen { margin-top: 26px; }

/* ================= Rückgängig und Wiederholen ================= */
.kopf-aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rueck-knopf { min-height: 54px; padding: 10px 18px; font-size: 1rem; gap: 10px; }
.rueck-knopf .sym { width: 1.35em; height: 1.35em; }
.rueck-knopf:disabled { opacity: .45; }
.meldung.gut { background: var(--gruen-hell); color: var(--gruen-text); border-color: var(--gruen); }
@media (max-width: 700px) {
  .kopf-aktionen { width: 100%; }
  .kopf-aktionen .rueck-knopf { flex: 1 1 0; padding: 10px 8px; }
  .kopf-aktionen .haupt { flex: 1 1 100%; width: 100%; }
}
