/* Projektplattform – ein Stylesheet ohne Build-Schritt. */

:root {
    --bg: #f5f6f8;
    --flaeche: #ffffff;
    --flaeche-2: #eef0f3;
    --text: #1d2330;
    --text-2: #5b6474;
    --rand: #d9dde3;
    --akzent: #2457c5;
    --akzent-hell: #e7eefc;
    --gruen: #1f8a4c;
    --gruen-hell: #e3f4ea;
    --gelb: #a86b00;
    --gelb-hell: #fdf1d8;
    --rot: #c0362c;
    --rot-hell: #fbe7e5;
    --radius: 8px;
    --schatten: 0 1px 2px rgb(16 24 40 / 6%), 0 1px 3px rgb(16 24 40 / 8%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

a { color: var(--akzent); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .75rem; }
small, .leise { color: var(--text-2); }

/* Kopfzeile */
.kopf {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1.5rem;
    padding: .75rem 1rem;
    background: var(--flaeche);
    border-bottom: 1px solid var(--rand);
}
.marke { font-weight: 700; color: var(--text); text-decoration: none; }
.kopf nav { display: flex; flex-wrap: wrap; gap: .25rem; flex: 1; }
.kopf nav a {
    padding: .35rem .65rem;
    border-radius: 6px;
    color: var(--text-2);
    text-decoration: none;
}
.kopf nav a:hover { background: var(--flaeche-2); }
.kopf nav a.aktiv { background: var(--akzent-hell); color: var(--akzent); font-weight: 600; }
.nutzer { display: flex; align-items: center; gap: .75rem; color: var(--text-2); }
.zaehler {
    display: inline-block;
    min-width: 1.3rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: var(--rot);
    color: #fff;
    font-size: .75rem;
    text-align: center;
}

.inhalt { max-width: 1400px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.schmal { max-width: 760px; }

/* Bausteine */
.karte {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: var(--radius);
    box-shadow: var(--schatten);
    padding: 1rem;
    margin-bottom: 1rem;
}
.kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.zeile { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.btn, button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .85rem;
    border: 1px solid var(--rand);
    border-radius: 6px;
    background: var(--flaeche);
    color: var(--text);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover, button:hover { background: var(--flaeche-2); }
.btn-primaer { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.btn-primaer:hover { background: #1c46a3; }
.btn-gefahr { color: var(--rot); border-color: #e9b4ae; }
.btn-klein { padding: .2rem .5rem; font-size: .85rem; }
.btn-link { border: 0; background: none; color: var(--akzent); padding: 0; text-decoration: underline; }
.btn-link:hover { background: none; }

label { display: block; font-weight: 600; margin-bottom: .25rem; }
.feld { margin-bottom: .85rem; }
.feld-hinweis { font-weight: 400; color: var(--text-2); font-size: .85rem; }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=date],
input[type=number], select, textarea {
    width: 100%;
    padding: .45rem .6rem;
    border: 1px solid var(--rand);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
textarea { min-height: 5rem; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 1px;
}
.checkbox { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.checkbox input { width: auto; }

details > summary { cursor: pointer; font-weight: 600; }
details[open] > summary { margin-bottom: .75rem; }

.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { padding: .5rem; border-bottom: 1px solid var(--rand); text-align: left; vertical-align: top; }
.tabelle th { color: var(--text-2); font-weight: 600; font-size: .85rem; }
.tabellen-rahmen { overflow-x: auto; }

/* Meldungen */
.meldung { padding: .75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.meldung-ok { background: var(--gruen-hell); color: #13512d; }
.meldung-fehler { background: var(--rot-hell); color: #7a1f18; }
.meldung-hinweis { background: var(--gelb-hell); color: #6b4500; }
.meldung ul { margin: 0; padding-left: 1.2rem; }
.passwort-anzeige { font: 1.2rem/1.4 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .05em; user-select: all; }

/* Status-Kennzeichen */
.marke-chip {
    display: inline-block;
    padding: .05rem .5rem;
    border-radius: 999px;
    background: var(--flaeche-2);
    color: var(--text-2);
    font-size: .8rem;
    white-space: nowrap;
}
.chip-blau { background: var(--akzent-hell); color: var(--akzent); }
a.marke-chip { text-decoration: none; }
.chip-gruen { background: var(--gruen-hell); color: var(--gruen); }
.chip-gelb { background: var(--gelb-hell); color: var(--gelb); }
.chip-rot { background: var(--rot-hell); color: var(--rot); }

.ampel::before {
    content: "";
    display: inline-block;
    width: .6rem;
    height: .6rem;
    margin-right: .35rem;
    border-radius: 50%;
    background: currentColor;
}
.ampel-gruen { color: var(--gruen); }
.ampel-gelb { color: var(--gelb); }
.ampel-rot { color: var(--rot); }

/* Pipeline (Dashboard) */
.pipeline {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .5rem;
}
.spalte { background: var(--flaeche-2); border-radius: var(--radius); padding: .6rem; min-height: 8rem; }
.spalte-kopf { display: flex; justify-content: space-between; gap: .5rem; font-weight: 600; font-size: .85rem; margin-bottom: .5rem; }
.projekt-karte {
    display: block;
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: .6rem;
    margin-bottom: .5rem;
    color: inherit;
    text-decoration: none;
}
.projekt-karte:hover { border-color: var(--akzent); }
.projekt-karte strong { display: block; }

/* Phasenfortschritt */
.fortschritt { display: flex; gap: 3px; margin: .5rem 0 1rem; }
.fortschritt li {
    flex: 1;
    list-style: none;
    padding: .35rem .25rem;
    background: var(--flaeche-2);
    color: var(--text-2);
    font-size: .72rem;
    text-align: center;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fortschritt { padding: 0; }
.fortschritt li.erledigt { background: var(--akzent-hell); color: var(--akzent); }
.fortschritt li.aktuell { background: var(--akzent); color: #fff; font-weight: 600; }

.checkliste { list-style: none; padding: 0; margin: 0 0 .75rem; }
.checkliste li { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.checkliste form { display: inline; }
.haken {
    width: 1.3rem;
    height: 1.3rem;
    padding: 0;
    justify-content: center;
    border-radius: 4px;
    font-size: .8rem;
}
.haken.an { background: var(--gruen); border-color: var(--gruen); color: #fff; }

/* Reiter */
.reiter { display: flex; flex-wrap: wrap; gap: .25rem; border-bottom: 1px solid var(--rand); margin-bottom: 1rem; }
.reiter a {
    padding: .5rem .85rem;
    color: var(--text-2);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.reiter a.aktiv { color: var(--akzent); border-color: var(--akzent); font-weight: 600; }

/* Kanban-Board */
.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: .75rem; overflow-x: auto; }
.board .spalte { display: flex; flex-direction: column; }
.board-spalte { list-style: none; margin: 0; padding: 0; min-height: 6rem; flex: 1; }
.aufgabe {
    background: var(--flaeche);
    border: 1px solid var(--rand);
    border-radius: 6px;
    padding: .55rem .6rem;
    margin-bottom: .5rem;
    cursor: grab;
}
.aufgabe a { color: var(--text); font-weight: 600; text-decoration: none; }
.aufgabe a:hover { text-decoration: underline; }
.aufgabe .zeile { margin-top: .35rem; font-size: .8rem; }
.aufgabe select { width: auto; padding: .1rem .3rem; font-size: .8rem; }
.sortable-ghost { opacity: .4; }
.ueberfaellig { color: var(--rot); font-weight: 600; }

/* Kommentare und Zeitleiste */
.liste { list-style: none; margin: 0; padding: 0; }
.liste > li { padding: .75rem 0; border-bottom: 1px solid var(--rand); }
.liste > li:last-child { border-bottom: 0; }
.meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .85rem; color: var(--text-2); margin-bottom: .25rem; }
.ungelesen { font-weight: 600; }

/* Kundenbereich */
.kunde-kopf { text-align: center; margin: 1rem 0 1.5rem; }
.kunde-stand { font-size: 1.1rem; }
.aktionen { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* Login */
.login { max-width: 420px; margin: 8vh auto; }

/* Seitennavigation (Laravel pagination::default) */
.pagination { display: flex; flex-wrap: wrap; gap: .25rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.pagination li > * { display: block; padding: .3rem .6rem; border: 1px solid var(--rand); border-radius: 6px; text-decoration: none; }
.pagination .active > * { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.pagination .disabled > * { color: var(--text-2); }

@media (max-width: 700px) {
    .board { grid-template-columns: repeat(4, 80vw); }
    .fortschritt li { font-size: 0; padding: .3rem 0; }
    .fortschritt li.aktuell { font-size: .72rem; flex: 8; }
}

button:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
