/* Zequenz CRM */
:root {
  --grund: #f4f5f2;
  --karte: #ffffff;
  --text: #1f2a2a;
  --grau: #6b7676;
  --linie: #e1e4df;
  --akzent: #1f6f6a;
  --akzent-hell: #e3f0ee;
  --rot: #b4372f;
  --rot-hell: #fbeceb;
  --gelb-hell: #fff6dd;
  --radius: 10px;
  --schatten: 0 1px 2px rgba(0, 0, 0, .05), 0 2px 8px rgba(0, 0, 0, .04);
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body {
  margin: 0; background: var(--grund); color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif; line-height: 1.45;
}
a { color: var(--akzent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: 0 0 .2rem; font-weight: 650; }
h2 { font-size: 1.05rem; margin: 0 0 .8rem; font-weight: 650; }
.grau { color: var(--grau); }
.klein { font-size: .87rem; }
.rot, tr.rot td, li.rot { color: var(--rot); }
.nowrap { white-space: nowrap; }
.rechts { text-align: right; }
.umbruch { word-break: break-word; }

/* Kopf */
.kopf {
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  background: #17312f; color: #fff; padding: .6rem 1.4rem; position: sticky; top: 0; z-index: 10;
}
.marke { font-weight: 700; font-size: 1.15rem; color: #fff; letter-spacing: .02em; }
.marke span { font-weight: 400; color: #9fd3cc; }
.marke:hover { text-decoration: none; }
.marke.gross { font-size: 1.7rem; color: var(--text); text-align: center; margin-bottom: 1.2rem; }
.marke.gross span { color: var(--akzent); }
.hauptnav { display: flex; gap: .3rem; align-items: center; }
.hauptnav a { color: #d7e6e4; padding: .35rem .7rem; border-radius: 6px; }
.hauptnav a.aktiv, .hauptnav a:hover { background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; }
.hauptnav a.knopf { background: #2e8a83; color: #fff; margin-left: .4rem; }
.schnellsuche { flex: 1; min-width: 180px; max-width: 360px; }
.schnellsuche input { width: 100%; border: 0; border-radius: 6px; padding: .45rem .7rem; background: rgba(255, 255, 255, .14); color: #fff; }
.schnellsuche input::placeholder { color: #b9cfcc; }
.schnellsuche input:focus { background: #fff; color: var(--text); outline: none; }
.nutzer { margin-left: auto; position: relative; }
.nutzer summary { cursor: pointer; list-style: none; padding: .35rem .7rem; border-radius: 6px; }
.nutzer summary::after { content: " ▾"; }
.nutzer summary::-webkit-details-marker { display: none; }
.nutzer[open] summary, .nutzer summary:hover { background: rgba(255, 255, 255, .12); }
.menue {
  position: absolute; right: 0; top: 2.4rem; background: #fff; color: var(--text); min-width: 190px;
  border-radius: var(--radius); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); padding: .4rem; display: flex; flex-direction: column;
}
.menue a, .menue .linkknopf { padding: .5rem .7rem; border-radius: 6px; color: var(--text); text-align: left; }
.menue a:hover, .menue .linkknopf:hover { background: var(--grund); text-decoration: none; }

/* Grundlayout */
main { max-width: 1240px; margin: 0 auto; padding: 1.4rem; }
main.breit { max-width: none; }
main.mitte { display: flex; justify-content: center; align-items: center; min-height: 85vh; }
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.karte {
  background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten);
  padding: 1.1rem 1.25rem; margin-bottom: 1rem; border: 1px solid var(--linie);
}
.karte.ohne-rand { padding: 0; overflow-x: auto; }
.karte.schmal { max-width: 640px; }
.karte.hervor { border-top: 3px solid var(--akzent); }
.karte.login { width: 100%; max-width: 380px; padding: 2rem; }
.kartenkopf { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.kartenkopf h2 { margin: 0; }
.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.firma-raster { display: grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 1rem; align-items: start; }
@media (max-width: 900px) {
  .zweispaltig, .firma-raster { grid-template-columns: 1fr; }
  .kopf { padding: .6rem .8rem; }
  main { padding: .8rem; }
}

/* Hinweise */
.hinweis { background: var(--akzent-hell); color: #134a46; border-radius: 8px; padding: .6rem .9rem; margin-bottom: 1rem; }
.fehler { background: var(--rot-hell); color: var(--rot); border-radius: 8px; padding: .6rem .9rem; margin-bottom: 1rem; }

/* Knöpfe */
.knopf {
  display: inline-block; background: var(--akzent); color: #fff; border: 0; border-radius: 7px;
  padding: .5rem 1rem; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.knopf:hover { background: #185a56; text-decoration: none; }
.knopf.klein { padding: .25rem .6rem; font-size: .85rem; font-weight: 600; }
.knopf.hell { background: var(--akzent-hell); color: var(--akzent); }
.knopf.hell:hover { background: #cfe5e1; }
.knopf.breit { width: 100%; margin-top: .4rem; }
.linkknopf { background: none; border: 0; color: var(--akzent); cursor: pointer; font: inherit; padding: 0; }
.linkknopf:hover { text-decoration: underline; }
.linkknopf.rot { color: var(--rot); }
.knopfreihe { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }

/* Formulare */
.formular label, .karte.login label { display: block; margin-bottom: .7rem; font-size: .87rem; color: var(--grau); }
input, select, textarea {
  font: inherit; color: var(--text); background: #fff; border: 1px solid #cdd3cd; border-radius: 7px;
  padding: .42rem .6rem; width: 100%; margin-top: .2rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #9fd3cc; border-color: var(--akzent); }
textarea { resize: vertical; }
.reihe { display: flex; gap: .8rem; flex-wrap: wrap; }
.reihe > label { flex: 1 1 160px; }
.reihe > label.schmal-feld { flex: 0 1 110px; }
label.haken { display: flex !important; align-items: center; gap: .5rem; color: var(--text) !important; }
label.haken input { width: auto; margin: 0; }
.breit-formular { max-width: 860px; }
.breit-formular h2 { margin-top: 1.2rem; }
.breit-formular h2:first-of-type { margin-top: 0; }
fieldset.naechster { border: 1px solid var(--linie); border-radius: 8px; padding: .6rem .9rem .2rem; margin: 0 0 .9rem; background: #fafbf9; }
fieldset.naechster legend { font-weight: 600; font-size: .9rem; padding: 0 .3rem; }
form.inline { display: inline-flex; gap: .4rem; align-items: center; }
form.inline input, form.inline select { width: auto; margin: 0; }
.filterleiste { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filterleiste input[type=search] { flex: 1 1 260px; margin: 0; }
.filterleiste select { width: auto; margin: 0; }
.aufklapp { margin-top: .6rem; }
.aufklapp summary { cursor: pointer; color: var(--akzent); font-size: .9rem; }
.aufklapp form { margin-top: .6rem; }

/* Tabellen */
table.liste { width: 100%; border-collapse: collapse; }
table.liste th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grau); font-weight: 600; padding: .6rem .8rem; border-bottom: 1px solid var(--linie); background: #fafbf9; }
table.liste td { padding: .55rem .8rem; border-bottom: 1px solid var(--linie); vertical-align: top; }
table.liste tr:last-child td { border-bottom: 0; }
table.liste tbody tr:hover { background: #fafbf9; }
.karte > table.liste { margin: 0 -1.25rem; width: calc(100% + 2.5rem); }
.karte > table.liste th:first-child, .karte > table.liste td:first-child { padding-left: 1.25rem; }
.karte.ohne-rand > table.liste { margin: 0; width: 100%; }
p.leer { padding: 1.2rem; margin: 0; }

/* Marken */
.marke-status { display: inline-block; font-size: .72rem; font-weight: 600; padding: .1rem .5rem; border-radius: 99px; vertical-align: middle; background: #eceeea; color: var(--grau); }
.s-kunde { background: #dff1e4; color: #23683a; }
.s-interessent { background: #e1ecf8; color: #2b5687; }
.s-inaktiv { background: #eceeea; color: #6b7676; }
.s-kein-interesse { background: var(--rot-hell); color: var(--rot); }
.s-haupt { background: var(--gelb-hell); color: #7a5b00; }
.s-archiv { background: #333; color: #fff; }

/* Kacheln */
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kachel { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.1rem; box-shadow: var(--schatten); color: var(--text); }
a.kachel:hover { text-decoration: none; border-color: var(--akzent); }
.kachel b { display: block; font-size: 1.8rem; line-height: 1.1; }
.kachel span { color: var(--grau); font-size: .9rem; }
.kachel.warn { background: var(--rot-hell); border-color: #f0c9c5; }
.kachel.warn b { color: var(--rot); }
.umschalter { display: flex; background: #e6e9e4; border-radius: 8px; padding: 3px; }
.umschalter a { padding: .3rem .8rem; border-radius: 6px; color: var(--grau); }
.umschalter a.aktiv { background: #fff; color: var(--text); box-shadow: var(--schatten); }
.umschalter a:hover { text-decoration: none; }

/* Firmenkarte */
dl.daten { display: grid; grid-template-columns: 110px 1fr; gap: .35rem .8rem; margin: 0; }
dl.daten dt { color: var(--grau); font-size: .87rem; }
dl.daten dd { margin: 0; word-break: break-word; }
.notiz { margin-top: .9rem; background: var(--gelb-hell); border-radius: 8px; padding: .6rem .8rem; white-space: pre-wrap; font-size: .92rem; }
ul.personen, ul.wvliste, ul.verlauf, ul.einfach { list-style: none; margin: 0; padding: 0; }
ul.personen li { padding: .6rem 0; border-bottom: 1px solid var(--linie); }
ul.personen li:last-child { border-bottom: 0; }
ul.wvliste li { padding: .5rem 0; border-bottom: 1px solid var(--linie); }
.wv-aktionen { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.wv-aktionen input[type=date] { padding: .2rem .4rem; font-size: .85rem; }
ul.einfach li { padding: .2rem 0; }
ul.verlauf li { border-left: 3px solid var(--linie); padding: .3rem 0 .7rem .9rem; margin-bottom: .3rem; }
ul.verlauf li.st-gut { border-left-color: #5aa66f; }
ul.verlauf li.st-neutral { border-left-color: #c9b26b; }
ul.verlauf li.st-schlecht { border-left-color: var(--rot); }
ul.verlauf.kompakt li { padding-bottom: .4rem; }
.verlauf-kopf { display: flex; gap: .4rem; flex-wrap: wrap; align-items: baseline; }
.rechtsbuendig { margin-left: auto; }
.notiz-text { white-space: pre-wrap; margin-top: .3rem; }
.jtl { background: #fafbf9; }

/* Pipeline */
.tafel { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: .9rem; overflow-x: auto; align-items: start; }
.tafel-spalte { background: #e9ece7; border-radius: var(--radius); padding: .8rem; min-height: 200px; }
.tafel-spalte h2 { font-size: .95rem; display: flex; justify-content: space-between; }
.tafel-karte { background: #fff; border-radius: 8px; padding: .6rem .7rem; margin-bottom: .6rem; box-shadow: var(--schatten); }
.phase-wechsel select { font-size: .8rem; padding: .2rem .4rem; margin-top: .4rem; }
