/* W32 Organisation - Farben bewusst ohne Rot/Gruen-Unterscheidung:
   Signal ist Blau (neu/aktiv) und Gelb (offen/wartet), erledigt ist grau. */
:root {
  --blau: #0b5cab; --blau-hell: #e6f0fa; --gelb: #f2c200; --gelb-hell: #fff6d1;
  --grau: #6b7280; --linie: #e2e5ea; --grund: #f6f7f9; --text: #1d2330; --weiss: #fff;
  --radius: 12px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }   /* sonst schlaegt .nav{display:flex} das hidden-Attribut */
html, body { margin: 0; background: var(--grund); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.kopf { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem; background: var(--blau); color: #fff; }
.marke { font-weight: 700; letter-spacing: .06em; }
.marke span { font-weight: 400; opacity: .85; letter-spacing: 0; }
.wer { font-size: .85rem; opacity: .9; text-align: right; }
.wer button { margin-left: .5rem; }
.inhalt { max-width: 760px; margin: 0 auto; padding: 1rem 1rem 6rem; }
h1 { font-size: 1.35rem; margin: .2rem 0 1rem; }
h2 { font-size: 1.1rem; margin: 1.4rem 0 .6rem; }
.leise { color: var(--grau); }
.klein { font-size: .85rem; }
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: .9rem 1rem; margin: 0 0 .7rem; }
a.karte { display: block; color: inherit; text-decoration: none; }
a.karte:hover { border-color: var(--blau); }
.zeile { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.titel { font-weight: 600; }
.marker { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--blau-hell); color: var(--blau); white-space: nowrap; }
.marker.gelb { background: var(--gelb-hell); color: #7a5b00; }
.marker.grau { background: #eef0f3; color: var(--grau); }
.marker.voll { background: var(--blau); color: #fff; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.kachel { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem;
  text-decoration: none; color: inherit; }
.kachel b { display: block; font-size: 1.8rem; color: var(--blau); }
.kachel.gelb { background: var(--gelb-hell); border-color: var(--gelb); }
label { display: block; font-weight: 600; margin: .8rem 0 .3rem; }
input, textarea, select { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid #c9ced6;
  border-radius: 8px; background: #fff; color: var(--text); }
textarea { min-height: 7rem; resize: vertical; }
input[type=checkbox] { width: auto; }
.haken { display: flex; gap: .5rem; align-items: center; font-weight: 400; }
button, .knopf { display: inline-block; font: inherit; font-weight: 600; padding: .6rem 1rem; border-radius: 8px;
  border: 1px solid var(--blau); background: var(--blau); color: #fff; cursor: pointer; text-decoration: none; }
button.zweit, .knopf.zweit { background: #fff; color: var(--blau); }
button.gross { width: 100%; padding: .85rem; font-size: 1.05rem; margin-top: 1rem; }
button:disabled { opacity: .5; cursor: default; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0; }
.hinweis { background: var(--blau-hell); border-left: 4px solid var(--blau); padding: .7rem .9rem; border-radius: 8px;
  margin: .8rem 0; }
.hinweis.gelb { background: var(--gelb-hell); border-color: var(--gelb); }
.fehler { background: #fff6d1; border: 2px solid #b08400; color: #5c4400; padding: .6rem .8rem; border-radius: 8px;
  margin: .6rem 0; font-weight: 600; }
.text { white-space: pre-wrap; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid var(--linie); font-size: .92rem; }
.tabelle { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); }
/* Chat */
.verlauf { display: flex; flex-direction: column; gap: .45rem; padding-bottom: 5rem; }
.blase { max-width: 82%; padding: .5rem .75rem; border-radius: 14px; background: #fff; border: 1px solid var(--linie); }
.blase.ich { align-self: flex-end; background: var(--blau-hell); border-color: #c5dbf2; }
.blase .von { font-size: .75rem; font-weight: 700; color: var(--blau); }
.blase .zeit { font-size: .7rem; color: var(--grau); text-align: right; }
.eingabe { position: fixed; left: 0; right: 0; bottom: 4.2rem; background: var(--grund); padding: .5rem 1rem;
  border-top: 1px solid var(--linie); }
.eingabe form { max-width: 760px; margin: 0 auto; display: flex; gap: .5rem; }
.eingabe textarea { min-height: 2.6rem; height: 2.6rem; }
/* Navigation */
.nav { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--linie);
  padding-bottom: env(safe-area-inset-bottom); z-index: 6; }
.nav a { flex: 1; text-align: center; padding: .45rem .2rem .5rem; font-size: .72rem; color: var(--grau);
  text-decoration: none; position: relative; }
.nav a .sym { display: block; font-size: 1.25rem; line-height: 1.3; }
.nav a.aktiv { color: var(--blau); font-weight: 700; }
.zahl:empty { display: none; }
.zahl { position: absolute; top: .2rem; left: 55%; background: var(--gelb); color: #3d2e00; font-size: .7rem;
  min-width: 1.2rem; padding: 0 .3rem; border-radius: 999px; }
.bilder { display: flex; flex-wrap: wrap; gap: .5rem; margin: .5rem 0; }
.bilder img { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; border: 1px solid var(--linie); }
.geheim { font: 700 1.5rem/1.3 ui-monospace, Consolas, monospace; letter-spacing: .08em; background: #fff;
  border: 2px dashed var(--blau); border-radius: 10px; padding: .8rem; text-align: center; margin: .5rem 0; }
.anmelden { max-width: 380px; margin: 1.2rem auto; }
/* Anmeldeseite: Logo, Begruessung, roter Knopf zur anonymen Meldung (Vorgabe PM 11.09.2026) */
/* Alles auf EINER Breite: Logo, Begruessung, Motto, Anmeldekasten, roter Knopf (380 px bzw. Bildschirm) */
.willkommen { max-width: 380px; margin: 1.5rem auto 0; text-align: center; }
.willkommen .logo { display: block; width: 100%; height: auto; margin: 0 0 1.3rem; }
.gruss { margin: 0; font-weight: 600; color: #796a5b; }          /* Taupe aus dem Logo */
.gruss .fit { line-height: 1.2; text-align: left; }
/* Anmeldekasten: ohne Ueberschrift; Abstand ueber "Benutzername" = Abstand unter dem Knopf */
form.anmelden > label:first-child { margin-top: 0; }
form.anmelden button.gross { margin-top: 1.1rem; }
.fit { display: block; width: max-content; margin: 0 auto; white-space: nowrap; line-height: 1.15; }
.motto { margin: .7rem auto 0; color: #2e7d32; font-weight: normal; line-height: 1.35;
  font-family: "Segoe Script", "Snell Roundhand", "Apple Chancery", "Brush Script MT", "URW Chancery L", cursive; }
.knopf.rot, button.rot { background: #c62828; border-color: #c62828; color: #fff; }
.knopf.gross { display: block; text-align: center; padding: .85rem; font-size: 1.05rem; margin-top: 1rem; }
.kontolink { color: #fff; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,.6); }
.nav a { font-size: .68rem; }
/* Zeiterfassung */
.stempel .titel { font-size: 1.05rem; }
.stempel .knopfreihe button { flex: 1; min-width: 7rem; }
.zeittab td { white-space: nowrap; vertical-align: top; }
.zeittab .hinweistext { white-space: normal; color: #7a5b00; font-size: .78rem; }
/* Unterreiter (Infos, Aufgaben) */
.unterreiter { display: flex; gap: .35rem; overflow-x: auto; margin: -.2rem 0 1rem; padding-bottom: .2rem; }
.unterreiter a { padding: .35rem .75rem; border-radius: 999px; background: #eef0f3; color: var(--text);
  text-decoration: none; font-size: .9rem; white-space: nowrap; }
.unterreiter a.aktiv { background: var(--blau); color: #fff; font-weight: 600; }
/* Dienstplan */
.wochenkopf { margin: .3rem 0 .6rem; align-items: center; }
.tag .titel { margin-bottom: .35rem; }
.tag.heute { border-color: var(--blau); box-shadow: inset 4px 0 0 var(--blau); }
.eintrag { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 6px; }
.eintrag + .eintrag { border-top: 1px solid var(--linie); }
.eintrag .was { min-width: 8.5rem; font-variant-numeric: tabular-nums; font-weight: 600; }
.eintrag .wer { flex: 1; }
.eintrag.meins { background: var(--blau-hell); }
.eintrag.art-urlaub .was, .eintrag.art-krank .was, .eintrag.art-frei .was, .eintrag.art-schule .was {
  background: var(--gelb-hell); color: #5c4400; border-radius: 4px; padding: 0 .3rem; }
button.mini { padding: .1rem .55rem; font-size: .95rem; background: #fff; color: var(--grau); border-color: var(--linie); }
details summary { cursor: pointer; color: var(--blau); font-weight: 600; margin-top: .4rem; }
.raster { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.raster label { margin-top: .2rem; }
@media (min-width: 700px) { .raster { grid-template-columns: repeat(3, 1fr); } }
