/* wika CRM · CI: Navy #00254C, Gold #AD9962, Lato */
:root {
  --navy: #00254C; --navy-2: #0b3a6b; --gold: #AD9962; --gold-hell: #f4efe3;
  --text: #1f2933; --grau: #5f6b76; --linie: #dfe3e8; --flaeche: #f6f7f9; --weiss: #fff;
  --gruen: #2f7d4f; --rot: #a33a2f; --orange: #b0701c;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: Lato, "Segoe UI", Arial, sans-serif; color: var(--text); background: var(--flaeche); line-height: 1.45; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-weight: 400; font-size: 1.6rem; color: var(--navy); margin: .2rem 0 1rem; }
h1 small, h2 small { font-size: .8rem; color: var(--grau); font-weight: 400; margin-left: .5rem; }
h2 { font-weight: 700; font-size: 1.05rem; color: var(--navy); margin: 1.4rem 0 .6rem; }
.karte h2:first-child { margin-top: 0; }

.kopf { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 1.5rem; background: var(--navy); color: #fff; flex-wrap: wrap; }
.kopf a { color: #e8edf3; }
.marke { font-size: 1.25rem; font-weight: 300; letter-spacing: .02em; color: #fff !important; }
.marke span, .marke-gross span { color: var(--gold); font-weight: 700; }
.kopf nav { display: flex; gap: 1.2rem; }
.kopf nav a { padding: .2rem 0; border-bottom: 2px solid transparent; }
.kopf nav a.aktiv, .kopf nav a:hover { border-bottom-color: var(--gold); text-decoration: none; }
.schnellsuche { flex: 1; min-width: 200px; }
.schnellsuche input { width: 100%; max-width: 380px; padding: .4rem .7rem; border: 0; border-radius: 4px; }
.person { display: flex; align-items: center; gap: .8rem; font-size: .9rem; }
.person form { margin: 0; }

.inhalt { max-width: 1280px; margin: 0 auto; padding: 1.5rem; }
.fuss { text-align: center; font-size: .8rem; color: var(--grau); padding: 2rem 1rem; }
.pfad { font-size: .85rem; color: var(--grau); margin: 0; }

.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: 6px; padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.karte.schmal { max-width: 420px; margin: 3rem auto; }
.marke-gross { font-size: 2rem; font-weight: 300; text-align: center; }
.spalten { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; align-items: start; }

label { display: block; font-size: .85rem; color: var(--grau); margin-bottom: .8rem; }
input, select { display: block; width: 100%; margin-top: .25rem; padding: .5rem .6rem; font: inherit; color: var(--text); border: 1px solid var(--linie); border-radius: 4px; background: #fff; }
input:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
button { font: inherit; padding: .5rem 1.1rem; background: var(--navy); color: #fff; border: 0; border-radius: 4px; cursor: pointer; }
button:hover { background: var(--navy-2); }
button.leise { background: transparent; color: inherit; border: 1px solid currentColor; padding: .25rem .7rem; font-size: .85rem; opacity: .85; }
.suche, .filter { display: flex; gap: .6rem; align-items: end; margin-bottom: 1rem; flex-wrap: wrap; }
.suche input { flex: 1; margin: 0; }
.filter label { margin: 0; }
form.zeile { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; align-items: end; }
form.zeile label { margin: 0; }

.fehler { color: var(--rot); background: #fbeeec; padding: .5rem .7rem; border-radius: 4px; }
.hinweis { background: var(--gold-hell); border-left: 3px solid var(--gold); padding: .6rem .8rem; }
.warn { color: var(--rot); }
.klein { font-size: .85rem; color: var(--grau); }
.mitte { text-align: center; }
.rechts { text-align: right; }

dl { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem 1rem; margin: 0; }
dt { color: var(--grau); font-size: .85rem; }
dd { margin: 0; }

table.liste { width: 100%; border-collapse: collapse; background: var(--weiss); border: 1px solid var(--linie); border-radius: 6px; overflow: hidden; }
.liste th { text-align: left; font-weight: 700; font-size: .8rem; color: var(--grau); background: #fafbfc; padding: .5rem .6rem; border-bottom: 1px solid var(--linie); }
.liste td { padding: .45rem .6rem; border-bottom: 1px solid #eef0f3; vertical-align: top; }
.liste tbody tr:hover { background: #fbfaf6; }
.liste.zahlen td { font-variant-numeric: tabular-nums; font-size: .9rem; }
.liste tfoot th { background: var(--gold-hell); color: var(--navy); }
.aktionen form { display: flex; gap: .4rem; margin: 0; }
.aktionen select { margin: 0; padding: .25rem; width: auto; }

.status { display: inline-block; font-size: .8rem; padding: .05rem .5rem; border-radius: 10px; background: #eef0f3; color: var(--grau); white-space: nowrap; }
.status.aktiv { background: #e6f2ea; color: var(--gruen); }
.status.in_bearbeitung { background: #fbf1e2; color: var(--orange); }
.status.beendet { background: #f3eceb; color: var(--rot); }
.status.nb-offen { background: #fbf1e2; color: var(--orange); }
.status.nb-in_arbeit { background: #e8eef6; color: var(--navy-2); }
.status.nb-erledigt { background: #eef0f3; color: var(--grau); }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1rem 0; }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-top: 3px solid var(--gold); border-radius: 6px; padding: 1rem 1.2rem; color: var(--text); }
.kachel strong { display: block; font-size: 1.6rem; font-weight: 400; color: var(--navy); }
.kachel span { font-size: .85rem; color: var(--grau); }

.vermerk { background: var(--weiss); border: 1px solid var(--linie); border-radius: 6px; padding: .6rem .9rem; margin-bottom: .5rem; }
.vermerk header { font-size: .85rem; color: var(--grau); }
.vermerk p { margin: .4rem 0 0; white-space: pre-line; }
.feedback { font-size: .9rem; border-left: 2px solid var(--gold); padding-left: .6rem; }

.abschnitt { border-bottom: 2px solid var(--gold); padding-bottom: .3rem; margin-top: 2rem; }
.vertragsblock { margin-bottom: 1rem; }
.vertragsblock header { background: var(--weiss); border: 1px solid var(--linie); border-bottom: 0; border-radius: 6px 6px 0 0; padding: .5rem .8rem; font-size: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.vertragsblock header .rechts { margin-left: auto; font-variant-numeric: tabular-nums; }
.vertragsblock table.liste { border-radius: 0 0 6px 6px; }

@media (max-width: 700px) {
  .inhalt { padding: 1rem; }
  .spalten { grid-template-columns: 1fr; }
  dl { grid-template-columns: 1fr; }
  .liste { font-size: .85rem; display: block; overflow-x: auto; }
}
