/* Oberfläche RS-Büroservice. Farben und Schriften kommen aus der Marke -- hier stehen nur
   Formen und Abstände, keine Hex-Werte (Regel aus CLAUDE.md). */
@import url("marke/farben.css");

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--rsb-flaeche); color: var(--rsb-schrift);
  font-family: var(--rsb-font-text); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--rsb-font-titel); font-weight: 400; margin: 0; text-wrap: balance; }
h1 { font-size: 30px; line-height: 1.12; }
h2 { font-size: 20px; }
a { color: var(--rsb-schrift); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--rsb-rose); outline-offset: 2px; }

.rahmen { display: flex; min-height: 100vh; }

/* Seitenleiste */
.seite { width: 236px; flex: none; background: var(--rsb-karte); border-right: 1px solid var(--rsb-linie-zart);
         display: flex; flex-direction: column; padding: 26px 16px 20px; gap: 3px; }
.seite img.logo { width: 184px; margin: 0 6px 28px; display: block; }
.nav { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 8px;
       color: var(--rsb-schrift-2); text-decoration: none; font-size: 15px; }
.nav:hover { background: var(--rsb-flaeche); color: var(--rsb-schrift); }
.nav.aktiv { background: var(--rsb-rose-hell); color: var(--rsb-schrift); }
.nav svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none;
           stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* Der untere Bereich der Seitenleiste: untereinander, damit er sich wie das Hauptmenü liest
   und die Beschriftungen nicht umbrechen. */
.seite .fuss { margin-top: auto; border-top: 1px solid var(--rsb-linie-zart); padding-top: 12px;
               display: flex; flex-direction: column; gap: 2px; }
.seite .fuss .person { display: flex; align-items: center; gap: 11px; padding: 4px 14px 10px; }
.nav.klein { padding: 8px 14px; font-size: 14px; text-align: left; }
.nav.klein svg { width: 17px; height: 17px; }
.kreis { width: 34px; height: 34px; border-radius: 999px; background: var(--rsb-rose);
         display: flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }

/* Inhalt */
main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.kopf { height: 70px; flex: none; background: var(--rsb-karte); border-bottom: 1px solid var(--rsb-linie-zart);
        display: flex; align-items: center; gap: 16px; padding: 0 32px; }
.inhalt { padding: 28px 32px 60px; display: flex; flex-direction: column; gap: 20px; }
.titelzeile { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.titelzeile .neben { color: var(--rsb-schrift-2); font-size: 14px; }
.hilfe-marke { text-decoration: none; color: var(--rsb-schrift-2); border: 1px solid var(--rsb-linie);
               border-radius: 999px; width: 24px; height: 24px; display: inline-flex;
               align-items: center; justify-content: center; font-size: 13px; }
.hilfe-marke:hover { background: var(--rsb-rose-hell); color: var(--rsb-schrift); }

.karte { background: var(--rsb-karte); border: 1px solid var(--rsb-linie-zart);
         border-radius: var(--rsb-radius); box-shadow: var(--rsb-schatten); }
.karte.polster { padding: 20px 22px; }
.gitter { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

table { border-collapse: collapse; width: 100%; }
.tabellenbox { overflow-x: auto; }
th { font-size: 12px; letter-spacing: .09em; text-transform: uppercase; color: var(--rsb-schrift-2);
     font-weight: 400; text-align: left; padding: 0 16px 10px; }
td { padding: 13px 16px; border-top: 1px solid var(--rsb-linie-zart); vertical-align: middle; }
.zahl { font-variant-numeric: tabular-nums; text-align: right; }
tr.still td { color: var(--rsb-schrift-2); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
        font-size: 13px; background: var(--rsb-rose-hell); }
.chip.ok { background: var(--rsb-ok-flaeche); color: var(--rsb-ok); }
.chip.warn { background: var(--rsb-warn-flaeche); color: var(--rsb-warn); }
.chip.fehler { background: var(--rsb-fehler-flaeche); color: var(--rsb-fehler); }
.chip.still { background: #F2F0F0; color: var(--rsb-schrift-2); }

/* Formulare */
.feldgitter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.feld { display: flex; flex-direction: column; }
.feld.breit { grid-column: span 2; }
label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
        color: var(--rsb-schrift-2); margin-bottom: 6px; }
/* Alle Eingabefelder gleich -- eine Linie, nicht je Typ eine andere. Ohne die Aufzählung
   fällt jedes neue Feld (date, search, number, file) auf den Browser-Standard zurück und
   sieht neben den übrigen fremd aus. */
input[type=text], input[type=password], input[type=date], input[type=search],
input[type=number], input[type=email], input[type=tel], input[type=file],
select, textarea {
  font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--rsb-linie);
  border-radius: 8px; background: var(--rsb-karte); color: var(--rsb-schrift); min-height: 44px;
  width: 100%; box-sizing: border-box;
}
input[type=file] { padding: 8px 13px; }
input[type=file]::file-selector-button {
  font-family: inherit; font-size: 14px; margin-right: 12px; padding: 6px 12px;
  border: 1px solid var(--rsb-linie); border-radius: 6px;
  background: var(--rsb-flaeche); color: var(--rsb-schrift); cursor: pointer;
}
input[type=file]::file-selector-button:hover { background: var(--rsb-rose-hell); }
/* Der Kalender-Knopf im Datumsfeld: gedeckt statt knallblau. */
input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
input[type=checkbox] { accent-color: var(--rsb-anthrazit); }
textarea { min-height: 88px; resize: vertical; }
.hinweis { font-size: 13px; color: var(--rsb-schrift-2); margin-top: 5px; }
.haken { display: flex; align-items: center; gap: 9px; padding: 8px 0; font-size: 15px; }
.haken input { width: 18px; height: 18px; }

.knopfzeile { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.knopf, button.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px;
  padding: 0 22px; border-radius: 8px; font-size: 15px; font-family: inherit; cursor: pointer;
  border: 1px solid var(--rsb-anthrazit); background: var(--rsb-anthrazit); color: #fff;
  text-decoration: none;
}
.knopf.hell { background: var(--rsb-karte); color: var(--rsb-schrift); border-color: var(--rsb-linie); }
.knopf.warn { background: var(--rsb-karte); color: var(--rsb-fehler); border-color: var(--rsb-fehler); }
.knopf.klein { height: 36px; padding: 0 14px; font-size: 14px; }

/* Meldungen — kleben oben, sonst sieht man sie nicht, wenn die Seite an der Stelle
   weiterläuft, an der zuletzt gearbeitet wurde (siehe static/scrollen.js). */
.meldung { padding: 13px 16px; border-radius: 8px; font-size: 15px;
           position: sticky; top: 10px; z-index: 5; box-shadow: var(--rsb-schatten); }
.meldung.ok { background: var(--rsb-ok-flaeche); color: var(--rsb-ok); }
.meldung.fehler { background: var(--rsb-fehler-flaeche); color: var(--rsb-fehler); }

/* Anmeldeseite */
.anmelden { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.anmelden .karte { width: 100%; max-width: 420px; padding: 34px 32px; }
.anmelden img.logo { width: 210px; display: block; margin: 0 auto 26px; }

/* Hilfe */
.hilfe-abschnitt { border-top: 2px solid var(--rsb-anthrazit); padding-top: 13px; }
.hilfe-abschnitt p { max-width: 68ch; }
.hilfe-punkte { margin: 0; padding: 0; list-style: none; }
.hilfe-punkte li { padding: 10px 0; border-top: 1px solid var(--rsb-linie-zart); max-width: 74ch; }
.hilfe-punkte b { font-weight: normal; }
.hilfe-punkte b::after { content: " — "; color: var(--rsb-schrift-2); }

@media (max-width: 820px) {
  .rahmen { flex-direction: column; }
  .seite { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px 16px; }
  .seite img.logo { width: 150px; margin: 0 16px 0 0; }
  .seite .fuss { margin-top: 0; border-top: 0; padding-top: 0; }
  .feldgitter { grid-template-columns: minmax(0, 1fr); }
  .feld.breit { grid-column: span 1; }
}
