/* Farben und Anmutung wie die Kundenseite marbellainmohomes.com —
   mediterran-clean, Creme und Terracotta, Serifen für Überschriften. */

:root {
  --paper:      #FBF7F1;
  --paper-warm: #F4ECE0;
  --line:       #E2D6C6;
  --ink:        #2B2521;
  --ink-soft:   #6B605A;
  --terra:      #B0552F;
  --terra-dark: #8E4224;
  --gruen:      #4A7C59;
  --rot:        #A33A2A;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

h1, h2, h3 { font-family: var(--serif); font-weight: normal; margin: 0 0 .6rem; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.25rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; }
a { color: var(--terra-dark); }
a:hover { color: var(--terra); }

/* --- Gerüst ------------------------------------------------------------- */

.leiste {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
  padding: .7rem 1.5rem;
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.leiste .marke { font-family: var(--serif); font-size: 1.1rem; letter-spacing: .02em; }
.leiste nav { display: flex; gap: 1.2rem; margin-left: auto; }
.leiste nav a { text-decoration: none; color: var(--ink-soft); }
.leiste nav a:hover, .leiste nav a.hier { color: var(--terra-dark); }

main { max-width: 62rem; margin: 0 auto; padding: 1.8rem 1.5rem 4rem; }

/* --- Karten und Kacheln -------------------------------------------------- */

.karte {
  background: #fff; border: 1px solid var(--line); border-radius: .35rem;
  padding: 1.2rem 1.4rem; margin-bottom: 1.2rem;
}

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .8rem; }
.kachel {
  background: #fff; border: 1px solid var(--line); border-radius: .35rem;
  padding: .9rem 1rem;
}
.kachel .zahl { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.kachel .was { color: var(--ink-soft); font-size: .82rem; }
.kachel.warnung .zahl { color: var(--rot); }
.kachel.gut .zahl { color: var(--gruen); }

/* --- Tabellen ------------------------------------------------------------ */

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); }
th { font-weight: 600; font-size: .82rem; color: var(--ink-soft); text-transform: uppercase;
     letter-spacing: .04em; }
td.zahl, th.zahl { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: none; }

.status { font-size: .8rem; padding: .1rem .5rem; border-radius: 1rem; white-space: nowrap;
          background: var(--paper-warm); color: var(--ink-soft); }
.status.laeuft     { background: #E8F0E9; color: var(--gruen); }
.status.gesendet, .status.zugestellt { background: #E8F0E9; color: var(--gruen); }
.status.geprallt, .status.fehler, .status.beschwerde { background: #F6E5E2; color: var(--rot); }
.status.pausiert   { background: #F7EDD9; color: #8a6b1f; }

/* --- Formulare ----------------------------------------------------------- */

label { display: block; margin: .9rem 0 .25rem; color: var(--ink-soft); font-size: .88rem; }
input[type=text], input[type=password], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: .5rem .6rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: .25rem;
}
textarea { font-family: var(--serif); line-height: 1.6; min-height: 16rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--terra); outline-offset: -1px; }

button, .knopf {
  display: inline-block; padding: .5rem 1.1rem; font: inherit; cursor: pointer;
  background: var(--terra); color: #fff; border: 1px solid var(--terra-dark);
  border-radius: .25rem; text-decoration: none;
}
button:hover, .knopf:hover { background: var(--terra-dark); color: #fff; }
button.leise, .knopf.leise { background: #fff; color: var(--ink); border-color: var(--line); }
button.leise:hover, .knopf.leise:hover { background: var(--paper-warm); color: var(--ink); }
.knopfreihe { display: flex; gap: .6rem; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* --- Hinweise ------------------------------------------------------------ */

.hinweis { border-left: 3px solid var(--terra); background: var(--paper-warm);
           padding: .7rem 1rem; margin: 1rem 0; border-radius: 0 .25rem .25rem 0; }
.hinweis.warnung { border-left-color: var(--rot); background: #F9EDEA; }
.hinweis.gut { border-left-color: var(--gruen); background: #EDF3EE; }
.hinweis p:first-child { margin-top: 0; }
.hinweis p:last-child { margin-bottom: 0; }

.leise { color: var(--ink-soft); font-size: .88rem; }

/* --- Fortschritt --------------------------------------------------------- */

.balken { height: .55rem; background: var(--paper-warm); border-radius: 1rem; overflow: hidden;
          display: flex; margin: .6rem 0; border: 1px solid var(--line); }
.balken span { display: block; height: 100%; }
.balken .fertig { background: var(--gruen); }
.balken .schlecht { background: var(--rot); }
.balken .aussortiert { background: var(--line); }

.protokoll { font-family: ui-monospace, Consolas, monospace; font-size: .8rem;
             color: var(--ink-soft); max-height: 14rem; overflow-y: auto; }
.protokoll div { padding: .15rem 0; border-bottom: 1px solid var(--paper-warm); }

/* --- Bericht für den Auftraggeber ---------------------------------------- */

.bericht { background: #fff; padding: 2.5rem; border: 1px solid var(--line); }
.bericht h1 { border-bottom: 2px solid var(--terra); padding-bottom: .5rem; }

@media print {
  .leiste, .nichtdrucken { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  main { max-width: none; padding: 0; }
  .bericht { border: none; padding: 0; }
  .karte, .kachel { border-color: #ccc; }
}
