[hidden] { display: none !important; }
/* Putzplan: Fliesen und Fugen. Jeder Job ist eine Kachel mit Farbband (Bäder wasserblau, Küche schwammgelb); der
   Fortschritt einer Checkliste ist eine Reihe kleiner Fliesen, die sich beim Abhaken füllen. Ohne fremde Schriften,
   hell und dunkel, für den Daumen: Ziele mindestens 44 Pixel. Keine Inline-Stile (CSP). */
:root {
  --grund: #e6ecea;          /* Fuge */
  --flaeche: #ffffff;        /* Fliese */
  --flaeche-2: #f1f5f4;
  --fuge: #c9d4d1;
  --text: #16272b;
  --leise: #4f6367;
  --knopf: #1d3c42;          /* dunkle Fliese */
  --knopf-text: #ffffff;
  --bad: #0a6b83;
  --bad-hell: #d8ecf1;
  --bad-fuellung: #1b8aa6;
  --kueche: #8a5800;
  --kueche-hell: #f7ead0;
  --kueche-fuellung: #dca02a;
  --anderer: #5b6b6e;
  --anderer-hell: #e7ecec;
  --gut: #1b7448;
  --gut-hell: #dbefe3;
  --schlecht: #b0261f;
  --schlecht-hell: #f8e0dd;
  --mittel-hell: #f6ead2;
  --fokus: #0a6b83;
  --schrift: ui-rounded, "SF Pro Rounded", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto,
             "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --grund: #0e1618;
    --flaeche: #172225;
    --flaeche-2: #1e2b2e;
    --fuge: #2c3d41;
    --text: #e2ecea;
    --leise: #9fb3b6;
    --knopf: #cfe4e7;
    --knopf-text: #0e1618;
    --bad: #6cc8de;
    --bad-hell: #123640;
    --bad-fuellung: #3fa9c4;
    --kueche: #f0bd50;
    --kueche-hell: #3a2c0f;
    --kueche-fuellung: #d29a26;
    --anderer: #a9b8ba;
    --anderer-hell: #243235;
    --gut: #5bc78f;
    --gut-hell: #143425;
    --schlecht: #f08479;
    --schlecht-hell: #3b1c1a;
    --mittel-hell: #372b13;
    --fokus: #6cc8de;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--grund); color: var(--text); font: 17px/1.5 var(--schrift);
  font-variant-numeric: tabular-nums; padding-top: env(safe-area-inset-top, 0px);
}
a { color: var(--bad); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
h1 { font-size: 1.75rem; line-height: 1.15; margin: 0 0 .35rem; font-weight: 750; letter-spacing: -.015em; }
h2 { font-size: 1.12rem; line-height: 1.25; margin: 0 0 .5rem; font-weight: 700; }
p { margin: 0 0 .7rem; }
p:last-child { margin-bottom: 0; }
code { font-size: .9em; background: var(--flaeche-2); padding: .05em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.leise { color: var(--leise); }
.klein { font-size: .88rem; }
.verborgen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Gerüst */
.wrap { max-width: 680px; margin: 0 auto; padding: 18px 14px calc(96px + env(safe-area-inset-bottom, 0px)); }
.schmal { max-width: 420px; margin: 7vh auto 0; }
.brotkrumen { margin: 0 0 .4rem; font-size: .92rem; }
.brotkrumen a::before { content: "‹ "; }
.flaeche { background: var(--flaeche); border: 1px solid var(--fuge); border-radius: 6px; padding: 16px; margin-bottom: 14px; }
.stapel > * + * { margin-top: 10px; }
.stapel label { display: block; font-size: .9rem; color: var(--leise); margin-bottom: -4px; }
.stapel label.ankreuzen, .ankreuzen { display: flex; gap: .5rem; align-items: center; color: var(--text); font-size: .98rem;
  margin: 0; min-height: 44px; }
.aktionen { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.zeile-zwischen { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.raster2 label { display: block; font-size: .9rem; color: var(--leise); margin-bottom: 4px; }
form.inline { display: inline; }
.fuss { text-align: center; font-size: .8rem; margin-top: 28px; }
.schlicht { list-style: none; margin: 0; padding: 0; }
.schlicht li { padding: .45rem 0; border-top: 1px solid var(--fuge); }
.schlicht li:first-child { border-top: 0; }

/* Marke: eine Kachel aus vier Fliesen */
.marke { font-size: 2.1rem; display: flex; align-items: center; gap: .6rem; }
.marke-kachel {
  width: 34px; height: 34px; border-radius: 4px; flex: none;
  background:
    linear-gradient(var(--grund), var(--grund)) center / 3px 100% no-repeat,
    linear-gradient(var(--grund), var(--grund)) center / 100% 3px no-repeat,
    linear-gradient(135deg, var(--bad-fuellung) 50%, var(--kueche-fuellung) 50%);
}

/* Bedienelemente */
input, select, button { font: inherit; color: inherit; }
input[type=text], input[type=password], input:not([type]), select {
  width: 100%; min-height: 44px; border: 1px solid var(--fuge); border-radius: 6px; background: var(--flaeche);
  padding: .45rem .65rem;
}
input[type=radio], input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--bad); flex: none; }
::placeholder { color: var(--leise); opacity: .75; }
button, .knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem;
  border: 1px solid var(--fuge); border-radius: 6px; background: var(--flaeche); color: var(--text);
  font-weight: 700; text-decoration: none; cursor: pointer;
}
.primaer { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); }
.gefahr { color: var(--schlecht); border-color: var(--schlecht); background: transparent; }
.breit { width: 100%; }
button.klein { min-height: 40px; padding: .3rem .8rem; font-size: .92rem; }
button:disabled { opacity: .45; cursor: default; }
.leise-knopf { background: transparent; border-color: transparent; color: var(--leise); padding-left: 0; }

.meldung, .fehler, .warnung { border-radius: 6px; padding: 10px 14px; margin: 0 0 14px; }
.meldung { background: var(--gut-hell); color: var(--gut); }
.fehler { background: var(--schlecht-hell); color: var(--schlecht); }
.warnung { background: var(--mittel-hell); color: var(--text); }
.marke-ok { background: var(--gut-hell); color: var(--gut); border-radius: 4px; padding: .1rem .5rem; font-size: .85rem; font-weight: 700; }
.marke-tausch { border: 1px solid currentColor; border-radius: 4px; padding: 0 .35rem; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.marke-jetzt { background: var(--knopf); color: var(--knopf-text); border-radius: 4px; padding: .05rem .5rem; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.zahl { display: inline-grid; place-items: center; min-width: 1.4em; height: 1.4em; border-radius: 4px; background: var(--schlecht);
  color: var(--flaeche); font-size: .8rem; margin-left: .3rem; padding: 0 .3rem; }

.tabelle-rahmen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .45rem .5rem; text-align: left; border-bottom: 1px solid var(--fuge); vertical-align: top; }
th { color: var(--leise); font-size: .84rem; font-weight: 700; }
.codes code, .schluessel { font-size: 1rem; }
.qr svg { width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: 6px; }

/* Aufklappen: details mit eigenem Pfeil, ganze Zeile tippbar */
details > summary { list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, .knopf, .reiter a, label { -webkit-tap-highlight-color: transparent; }
details > summary:active { background: var(--flaeche-2); }
details > summary::-webkit-details-marker { display: none; }
.aufklapper { margin: 10px 0; }
.aufklapper > summary {
  display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .35rem 0; font-weight: 700; color: var(--bad);
}
.aufklapper > summary::after {
  content: ""; flex: none; width: .5em; height: .5em; margin: -.25em .3em 0 auto; border: solid currentColor;
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
.aufklapper[open] > summary::after { transform: rotate(-135deg); margin-top: .25em; }
.aufklapper[open] > summary { margin-bottom: .4rem; }

/* Reiter: unten am Handy, oben ab Tablet */
.reiter {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--flaeche); border-top: 1px solid var(--fuge);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}
.reiter-innen { display: flex; max-width: 680px; margin: 0 auto; gap: 4px; }
.reiter a {
  flex: 1; text-align: center; padding: 12px 2px; min-height: 52px; font-weight: 700; font-size: .92rem; color: var(--leise);
  text-decoration: none; border-radius: 6px; white-space: nowrap; border-top: 3px solid transparent;
}
.reiter a[aria-current] { color: var(--text); background: var(--flaeche-2); border-top-color: var(--bad-fuellung); }
@media (min-width: 760px) {
  .reiter { position: sticky; top: 0; bottom: auto; border-top: 0; border-bottom: 1px solid var(--fuge); padding: 6px; }
  .reiter a { border-top: 0; border-bottom: 3px solid transparent; }
  .reiter a[aria-current] { border-bottom-color: var(--bad-fuellung); }
  .wrap { padding-bottom: 40px; }
}

/* Farben je Job: die Klasse job-<schlüssel> setzt drei Variablen */
.job-bad { --job: var(--bad); --job-hell: var(--bad-hell); --job-fuellung: var(--bad-fuellung); }
.job-kueche { --job: var(--kueche); --job-hell: var(--kueche-hell); --job-fuellung: var(--kueche-fuellung); }
[class*="job-"]:not(.job-bad):not(.job-kueche) { --job: var(--anderer); --job-hell: var(--anderer-hell); --job-fuellung: var(--anderer); }
.punkt { display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .45em; background: var(--job-fuellung);
  vertical-align: baseline; }

/* Woche */
.wochenkopf { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin-bottom: 12px; }
.wochenkopf h1 { font-size: 2.4rem; margin: 0; }
.wochenkopf p { margin: 0; }
.leer h2, .frei h2 { margin-bottom: .3rem; }
.frei { border-top: 6px solid var(--gut); }
.weg { border-top: 6px solid var(--anderer); }
.anfrage { border-left: 6px solid var(--kueche-fuellung); }
.unter-kachel { margin: -2px 0 22px; }
.alle { margin-top: 22px; }
.alle > h2 { font-size: 1rem; color: var(--leise); }
.naechste { margin-top: 22px; }
.naechste h2 { font-size: 1rem; color: var(--leise); }

/* Kachel eines Jobs */
.kachel { background: var(--flaeche); border: 1px solid var(--fuge); border-top: 6px solid var(--job-fuellung); border-radius: 6px;
  margin-bottom: 12px; }
article.kachel { padding: 14px 14px 6px; }
.kachel-kopf h2 { font-size: 1.45rem; margin: 0; letter-spacing: -.01em; }
.kachel-wer { color: var(--job); font-weight: 700; margin: 0 0 .5rem; }
.kachel-stand { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .92rem; color: var(--leise); margin: 0 0 .4rem; }
.fliesen { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--fuge); border-radius: 3px; }
.fliesen i { display: block; width: 13px; height: 13px; background: var(--flaeche); border-radius: 1px; transition: background .2s; }
.fliesen i.voll { background: var(--job-fuellung); }
.kachel.fertig .kachel-stand > span:last-child { color: var(--gut); font-weight: 700; }

.checkliste { list-style: none; margin: 0 -14px; padding: 0; }
.checkliste li + li { border-top: 1px dashed var(--fuge); }
.checkliste.ohne { margin: 0 -14px; }
.haken {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 50px; padding: 8px 14px; border: 0; border-radius: 0;
  background: transparent; text-align: left; font-weight: 500; justify-content: flex-start;
}
button.haken:hover { background: var(--flaeche-2); }
.kaestchen {
  flex: none; width: 26px; height: 26px; border: 2px solid var(--job); border-radius: 3px; position: relative;
  transition: background .15s;
}
.haken[aria-pressed="true"] .kaestchen, .haken.gesetzt .kaestchen { background: var(--job-fuellung); border-color: var(--job-fuellung); }
.haken[aria-pressed="true"] .kaestchen::after, .haken.gesetzt .kaestchen::after {
  content: ""; position: absolute; left: 7px; top: 2px; width: 7px; height: 13px; border: solid var(--flaeche);
  border-width: 0 3px 3px 0; transform: rotate(45deg);
}
.haken[aria-pressed="true"] .haken-text, .haken.gesetzt .haken-text { color: var(--leise); text-decoration: line-through;
  text-decoration-thickness: 1px; }
.nur-lesen { cursor: default; color: var(--text); }
.nur-lesen .kaestchen { width: 22px; height: 22px; }
.nur-lesen.gesetzt .kaestchen::after { left: 6px; top: 1px; width: 6px; height: 11px; }

/* andere Jobs der Woche: aufklappbar */
.klein-kachel > summary { display: flex; flex-direction: column; gap: .3rem; padding: 12px 14px; min-height: 56px; position: relative; }
.klein-kachel > summary::after {
  content: ""; position: absolute; right: 18px; top: 20px; width: .5em; height: .5em; border: solid var(--leise);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s;
}
.klein-kachel[open] > summary::after { transform: rotate(-135deg); top: 25px; }
.kachel-titel { display: flex; flex-wrap: wrap; gap: .2rem .6rem; padding-right: 26px; }
.kachel-titel > span { color: var(--job); font-weight: 700; }
.klein-kachel .kachel-stand { margin: 0; }
.klein-kachel .checkliste { margin: 0; border-top: 1px solid var(--fuge); }
.klein-kachel .haken { padding: 6px 14px; min-height: 40px; }

/* Plan */
.woche { background: var(--flaeche); border: 1px solid var(--fuge); border-radius: 6px; padding: 10px 12px 12px; margin-bottom: 10px; }
.woche.jetzt { border: 2px solid var(--knopf); }
.woche.vorbei { background: var(--flaeche-2); }
.woche-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.woche-kopf h2 { margin: 0; font-size: 1rem; font-weight: 500; }
.kw { font-weight: 750; margin-right: .2rem; }
.woche-jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fliese { background: var(--job-hell); border-left: 5px solid var(--job-fuellung); border-radius: 3px; padding: 7px 9px; min-width: 0; }
.fliese-job { display: block; font-size: .8rem; color: var(--leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fliese-wer { display: block; font-weight: 700; overflow-wrap: anywhere; }
.fliese.ich { outline: 2px solid var(--job); outline-offset: -2px; }
.fliese.ich .fliese-wer { color: var(--job); }
.fliese.leer { background: var(--flaeche-2); border-left-color: var(--fuge); }
.fliese.leer .fliese-wer { font-weight: 500; color: var(--leise); }
.fliese-zusatz { display: block; font-size: .78rem; color: var(--leise); }
.woche-fuss { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.woche-fuss form { margin-left: auto; }
.rueckblick > summary { color: var(--leise); }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-wrap: wrap; }
.seg legend { width: 100%; font-size: .9rem; color: var(--leise); margin-bottom: 4px; padding: 0; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; font-weight: 700; color: var(--leise);
  background: var(--flaeche-2); border: 1px solid var(--fuge);
}
.seg label:first-of-type span { border-radius: 6px 0 0 6px; }
.seg label:last-of-type span { border-radius: 0 6px 6px 0; border-left: 0; }
.seg input:checked + span { background: var(--knopf); color: var(--knopf-text); border-color: var(--knopf); }
.seg input:focus-visible + span { outline: 3px solid var(--fokus); outline-offset: 1px; }

/* Tausch */
.tauschjob { background: var(--flaeche); border: 1px solid var(--fuge); border-left: 5px solid var(--job-fuellung); border-radius: 6px;
  padding: 0 14px; margin: 0 0 8px; }
.tauschjob > summary { color: var(--text); font-weight: 500; flex-wrap: wrap; }
.tauschjob[open] { padding-bottom: 14px; }
.angebote { border: 0; margin: 0; padding: 0; min-width: 0; }
.angebote legend { font-size: .9rem; color: var(--leise); padding: 0; margin-bottom: 4px; }
.angebot { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem 0; border-top: 1px dashed var(--fuge);
  min-height: 44px; cursor: pointer; }
.angebot:first-of-type { border-top: 0; }
.angebot input { margin-top: .15rem; }
.angebot:has(input:checked) b { color: var(--job); }

/* Statistik */
.urteil { border-radius: 6px; padding: 14px 16px; margin-bottom: 16px; }
.urteil.gut { background: var(--gut-hell); }
.urteil.gut h2 { color: var(--gut); }
.urteil.mittel { background: var(--mittel-hell); }
.person-kopf h2 { margin: 0; }
.da { white-space: nowrap; }
.da b { font-size: 1.3rem; }
.nicht-im-plan { opacity: .75; }
.statjob { margin-top: 12px; }
.saldo { display: inline-block; min-width: 3.2em; text-align: right; color: var(--leise); }
.balken { display: block; width: 100%; height: 12px; margin: 4px 0 2px; border-radius: 2px; }
.balken-grund { fill: var(--flaeche-2); }
.balken-wert { fill: var(--job-fuellung); }
.balken-soll { fill: var(--text); }
.statjob-fuss { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0; }

/* Mehr und Verwaltung */
.mehr { display: grid; gap: 8px; margin: 12px 0 20px; }
.mehr a {
  display: block; padding: 14px 16px; background: var(--flaeche); border: 1px solid var(--fuge); border-radius: 6px;
  text-decoration: none; color: var(--text);
}
.mehr span.leise { display: block; font-size: .9rem; }
.personen { list-style: none; margin: 0 0 14px; padding: 0; }
.personen > li { margin-bottom: 8px; padding: 12px 14px 4px; }
.personen > li.aus { opacity: .7; }
.pfeile { display: flex; gap: 6px; flex: none; }
.pfeile button { min-width: 44px; }
.punkte { list-style: none; margin: 0 0 10px; padding: 0; counter-reset: punkt; }
.punkte > li { border-top: 1px solid var(--fuge); }
.punkte > li.aus { opacity: .6; }
.punkt-bearbeiten { margin: 0; }
.punkt-bearbeiten > summary { color: var(--text); font-weight: 500; }
.punkt-bearbeiten[open] { padding-bottom: 10px; }
.zeile-form { display: flex; gap: 8px; align-items: center; }
.zeile-form input { flex: 1; min-width: 0; }
.zeile-form button { flex: none; }
.neu-punkt { margin-top: 6px; }
.liste-wahl { border: 0; margin: 0; padding: 0; }
.einladungslink { border-left: 6px solid var(--bad-fuellung); }
.link-feld { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; }
.warn-text { color: var(--schlecht); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 370px) {
  body { font-size: 16px; }
  .wrap { padding-left: 10px; padding-right: 10px; }
  .wochenkopf h1 { font-size: 2.1rem; }
  .zeile-form { flex-wrap: wrap; }
  .zeile-form button { width: 100%; }
}
