/* Kundenportal. Hausfarben aus der RMM-Oberflaeche: #D83C31 als Akzent,
   #2c2f33 als Schrift, #19AD79 fuer "erledigt". Kein Framework — die Seite
   besteht aus Kopf, Reitern und Tabellen. */

:root {
  --akzent:   #D83C31;
  --text:     #2c2f33;
  --grau:     #7b8794;
  --hell:     #f4f5f7;
  --linie:    #e2e6ea;
  --gruen:    #19AD79;
  --gelb:     #f0ad4e;
  --rot:      #c0392b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--hell);
}

/* --- Kopf --- */
.kopf {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: #fff; border-bottom: 1px solid var(--linie);
  padding: 12px 20px;
}
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; }
.marke img { display: block; }
.kopf-rechts { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.kundenname { color: var(--grau); }
.abmelden { color: var(--grau); text-decoration: none; }
.abmelden:hover { color: var(--akzent); }
#kundenwahl { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid var(--linie); border-radius: 3px; background: #fff; }

/* --- Flaeche --- */
main { max-width: 1000px; margin: 0 auto; padding: 24px 20px 60px; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: 4px; padding: 24px; }
.schmal { max-width: 420px; margin: 40px auto; }
h1 { font-size: 20px; margin: 0 0 8px; }
h2 { font-size: 16px; margin: 0 0 12px; font-weight: 600; }
.hilfe { color: var(--grau); font-size: 14px; margin: 0 0 16px; }

/* --- Formular --- */
label { display: block; font-size: 13px; color: var(--grau); margin-bottom: 4px; }
input[type=email] {
  width: 100%; font: inherit; padding: 9px 10px;
  border: 1px solid var(--linie); border-radius: 3px; margin-bottom: 14px;
}
input[type=email]:focus { outline: 2px solid var(--akzent); outline-offset: -1px; border-color: var(--akzent); }
button {
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--akzent); color: #fff; border: 0;
  padding: 10px 18px; border-radius: 3px; width: 100%;
}
button:hover { filter: brightness(1.08); }
button[disabled] { opacity: .55; cursor: default; }

.meldung { margin: 14px 0 0; padding: 10px 12px; border-radius: 3px; font-size: 14px;
           background: #eef7f3; color: #14684a; border-left: 3px solid var(--gruen); }
.meldung.fehler { background: #fdf0ef; color: #93231b; border-left-color: var(--akzent); }

/* --- Reiter --- */
.reiter { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: -1px; }
.reiter button {
  width: auto; background: transparent; color: var(--grau);
  border: 1px solid transparent; border-bottom: 0;
  border-radius: 4px 4px 0 0; padding: 9px 16px; font-weight: 500;
}
.reiter button.aktiv { background: #fff; color: var(--text); border-color: var(--linie); font-weight: 600; }

#ansicht { background: #fff; border: 1px solid var(--linie); border-radius: 0 4px 4px 4px; padding: 20px; min-height: 200px; }

/* --- Tabellen --- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .5px;
     color: var(--grau); font-weight: 600; padding: 0 10px 6px 0; border-bottom: 1px solid var(--linie); white-space: nowrap; }
td { padding: 9px 10px 9px 0; border-bottom: 1px solid #f2f4f6; vertical-align: top; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
a.pdf { color: var(--akzent); text-decoration: none; font-weight: 600; white-space: nowrap; }
a.pdf:hover { text-decoration: underline; }

.merker { display: inline-block; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.merker.gruen { background: #e7f6f0; color: #14684a; }
.merker.gelb  { background: #fdf3e3; color: #8a5c10; }
.merker.rot   { background: #fdecea; color: #93231b; }
.merker.grau  { background: #eef0f2; color: var(--grau); }

/* --- Kacheln --- */
.kacheln { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.kachel { flex: 1 1 120px; background: var(--hell); border-radius: 4px; padding: 12px 14px; }
.kachel .zahlgross { font-size: 26px; font-weight: 600; line-height: 1.1; }
.kachel .titel { font-size: 12px; color: var(--grau); text-transform: uppercase; letter-spacing: .4px; }
.kachel.critical .zahlgross { color: var(--rot); }
.kachel.high     .zahlgross { color: var(--akzent); }
.kachel.medium   .zahlgross { color: var(--gelb); }

.leer { color: var(--grau); font-size: 14px; padding: 20px 0; text-align: center; }

/* --- Fuss --- */
.fuss { border-top: 1px solid var(--linie); background: #fff; padding: 16px 20px;
        display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--grau); }
.fuss a { color: var(--grau); text-decoration: none; }
.fuss a:hover { color: var(--akzent); }

/* --- Telefon --- */
@media (max-width: 640px) {
  main { padding: 12px 12px 40px; }
  #ansicht { padding: 14px; border-radius: 4px; }
  .schmal { margin: 20px auto; padding: 20px; }
  th.weg, td.weg { display: none; }
}
