/* Gebäudereinigung · SHAQIRI-Neubau · gehört: Trupp B (Runde 2)
   Lädt nur auf gebaeudereinigung.html. Präfix gr- (Leistungskarten, teile/50-gebaeudereinigung.html) und lp-
   (Leistungsplan, teile/52-leistungsplan.html). Nur Tokens aus stil.css. Tippflächen mindestens 44 px, Fokus sichtbar,
   der Zustand steht immer auch in Worten da (Zahl, „angehakt“), nie nur in Farbe. Bis 320 px ohne seitliches Überlaufen,
   auch mit langen eigenen Aufgaben (.lp-aufgabe-text bricht überall um). */

/* ---------- Was wir reinigen: Karten ---------- */
.gr-kopf { display: grid; gap: 14px var(--space-16); }
@media (min-width: 1000px) {
  .gr-kopf { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .gr-kopf .vorspann { margin-top: 0; }
}
.gr-kopf .notiz { margin-top: 18px; }
.gr-raster { display: grid; gap: var(--space-4); margin: clamp(28px, 4vw, 44px) 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .gr-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
  .gr-karte-haupt { grid-column: 1 / -1; }
}
@media (min-width: 1000px) { .gr-raster { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.gr-karte { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 16px; background: var(--weiss); box-shadow: 0 0 0 1px var(--linie); }
.gr-bild { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--beton); }
@media (min-width: 640px) { .gr-bild { aspect-ratio: 3 / 2; } }
.gr-bild-unten { object-position: 50% 92%; }
.gr-bild-sauger { object-position: 50% 64%; }
.gr-text { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: var(--space-5) 22px 22px; }
.gr-name { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.15; color: var(--schwarz); }
@media (min-width: 1000px) { .gr-text { padding: 18px var(--space-5) var(--space-5); } .gr-text p { font-size: 15.5px; } }
.gr-text p { font-size: 16px; line-height: 1.55; }
.gr-text .knopf { align-self: flex-start; max-width: 100%; margin-top: auto; padding-block: 10px; white-space: normal; line-height: 1.25; text-align: center; }

/* Treppenhaus: ohne Foto (das steht groß im Seitenkopf), als Band über die ganze Breite auf Beton.
   Am Desktop drei Spalten: Name, Haken, Vermieter-Hinweis mit Knopf */
.gr-karte-haupt { grid-column: 1 / -1; background: var(--beton) var(--koernung); box-shadow: none; }
.gr-karte-haupt .gr-text { gap: 18px; padding: clamp(22px, 3vw, 34px); }
@media (min-width: 1000px) {
  .gr-karte-haupt .gr-text { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: var(--space-10); align-items: start; }
}
.gr-haupt-name { display: grid; gap: 10px; justify-items: start; }
.gr-symbol { width: 40px; height: 40px; color: var(--rot); stroke-width: 1.5; }
.gr-karte-haupt .gr-name { font-size: clamp(26px, 2.4vw, 32px); }
.gr-haken { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .gr-haken { padding-top: 50px; } }
.gr-haken li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.45; color: var(--schiefer); }
.gr-haken .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--rot); stroke-width: 2.2; }
.gr-vermieter { display: grid; gap: var(--space-2); justify-items: start; padding-top: var(--space-4); border-top: 1px solid var(--linie); }
@media (min-width: 1000px) { .gr-vermieter { padding: 0 0 0 var(--space-8); border-top: 0; border-left: 1px solid var(--linie); } }
.gr-vermieter p { font-size: 15px; line-height: 1.5; }
.gr-vermieter .textlink { font-size: 15px; }
.gr-karte-haupt .knopf-rahmen { margin-top: 6px; background: var(--weiss); }
.gr-karte-haupt .knopf-rahmen:hover { background: var(--beton-tief); }

/* ---------- Leistungsplan ---------- */
.lp-kopf { display: grid; gap: var(--space-2) var(--space-16); }
@media (min-width: 1000px) { .lp-kopf { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; } }
.lp-marke { margin-bottom: 14px; }
.lp-kopf .notiz { margin-top: 0; }
@media (max-width: 999px) { .lp-kopf .notiz { margin-top: var(--space-4); } }

/* Kein overflow: hidden am Blatt, sonst klebt die Zählung nicht */
.lp-blatt { margin-top: clamp(28px, 4vw, var(--space-12)); padding: 0; }
.lp-blatt :focus-visible { outline-color: var(--rot); box-shadow: 0 0 0 3px var(--weiss); }

/* Zählung: klebt unter dem Seitenkopf (76 px und Linie), solange man im Werkzeug ist */
.lp-leiste {
  position: sticky; top: 77px; z-index: 5; display: flex; align-items: center; min-height: 54px;
  padding: var(--space-2) clamp(var(--space-4), 3vw, 36px); border-bottom: 1px solid var(--linie); border-radius: var(--radius-gross) var(--radius-gross) 0 0;
  background: rgba(255, 255, 255, .97);
}
.lp-zaehlung { font-size: 16px; line-height: 1.3; color: var(--schiefer); }
.lp-zaehlung strong { font-weight: 800; color: var(--schwarz); font-variant-numeric: tabular-nums; }
/* Beim Springen per Tastatur verschwindet nichts unter Kopf und Zählung */
.lp-zeile, .lp-eigene, .lp-reiter [role="tab"] { scroll-margin-top: 72px; }

.lp-reiter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); padding: 14px clamp(var(--space-4), 3vw, 36px) 0; }
@media (min-width: 700px) { .lp-reiter { display: flex; flex-wrap: wrap; } }
.lp-reiter [role="tab"] {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0; min-height: 48px; padding: 0 14px 0 var(--space-4);
  border: 1px solid var(--linie); border-radius: var(--radius-pille); background: var(--weiss); color: var(--schiefer);
  font: 600 15px/1.2 var(--font-text); text-align: left; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.lp-reiter [role="tab"] .icon { width: 20px; height: 20px; color: var(--rot); }
.lp-reiter [role="tab"]:hover { border-color: var(--schiefer); }
.lp-reiter [role="tab"][aria-selected="true"] { background: var(--schiefer); border-color: var(--schiefer); color: var(--weiss); }
.lp-reiter [role="tab"][aria-selected="true"] .icon { color: var(--rot-hell); }
.lp-zahl {
  display: inline-grid; place-items: center; min-width: 24px; height: var(--pille-zahl-hoehe); margin-left: auto; padding: var(--pille-zahl-polster-y) var(--pille-zahl-polster-x); border-radius: var(--pille-zahl-radius);
  background: var(--pille-zahl-grund); color: var(--pille-zahl-text); font: var(--pille-zahl-schrift-gewicht) var(--pille-zahl-schrift-groesse)/1 var(--font-text); font-variant-numeric: tabular-nums;
}
/* Zahl erst ab dem ersten Haken (auch fürs Vorlesen), sonst stehen vier Nullen da */
.lp-reiter [role="tab"]:not(.hat-auswahl) :is(.lp-zahl, .nur-vorlesen) { display: none; }
@media (max-width: 380px) {
  .lp-reiter [role="tab"] { gap: var(--space-2); padding: 0 10px 0 var(--space-3); font-size: 14px; }
  .lp-reiter [role="tab"] .icon { display: none; }
}

.lp-bereich { padding: 18px clamp(var(--space-4), 3vw, 36px) clamp(var(--space-5), 3vw, 30px); }
.js .lp-bereich-titel { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-bereich-titel { margin-bottom: 14px; font-family: var(--font-display); font-size: 22px; color: var(--schwarz); }
html:not(.js) .lp-bereich + .lp-bereich { border-top: 1px solid var(--linie); }

/* Aufgaben: Häkchen mit Text, rechts der Rhythmus; am Handy rutscht der Rhythmus unter den Text */
.lp-aufgaben { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .lp-aufgaben { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); } }
.lp-zeile {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1); min-width: 0; padding-right: 6px;
  border: 1px solid var(--linie); border-radius: var(--radius-klein); background: var(--weiss);
  transition: border-color .15s ease, background-color .15s ease;
}
.lp-zeile:hover { border-color: var(--karte-aufgabe-rand-hover); }
.lp-zeile:has(input:checked) { border-color: var(--karte-aufgabe-rand-ausgewaehlt); background: var(--karte-aufgabe-grund-ausgewaehlt); }
.lp-aufgabe {
  display: flex; flex: 1 1 13em; align-items: flex-start; gap: var(--space-3); min-width: 0; min-height: 46px; padding: 11px var(--space-1) 11px var(--space-3);
  color: var(--schiefer); font-size: 15.5px; line-height: 1.4; cursor: pointer;
}
.lp-zeile:has(input:checked) .lp-aufgabe { color: var(--schwarz); }
.lp-aufgabe-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.lp-aufgabe input {
  -webkit-appearance: none; appearance: none; flex: none; width: var(--feld-haken-breite); height: var(--feld-haken-hoehe); margin: 0;
  border: 1.5px solid var(--feld-haken-rand); border-radius: var(--feld-haken-radius); background: var(--feld-haken-grund) center / 16px 16px no-repeat; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.lp-aufgabe input:checked {
  border-color: var(--feld-haken-rand-ausgewaehlt); background-color: var(--feld-haken-grund-ausgewaehlt);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5 10 17 19 7' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.lp-aufgabe input:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; box-shadow: 0 0 0 2px var(--weiss); }
.lp-takt {
  -webkit-appearance: none; appearance: none; flex: none; max-width: 100%; min-height: var(--feld-auswahl-min-hoehe); margin-left: auto; padding: var(--feld-auswahl-polster-oben) var(--feld-auswahl-polster-rechts) var(--feld-auswahl-polster-unten) var(--feld-auswahl-polster-links);
  border: var(--feld-auswahl-rand-breite) solid var(--feld-auswahl-rand); border-radius: var(--feld-auswahl-radius); cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%235b6569' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 9px center / 14px no-repeat;
  color: var(--feld-auswahl-text); font: var(--feld-auswahl-schrift-gewicht) var(--feld-auswahl-schrift-groesse)/1.2 var(--font-text);
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.lp-takt:hover { border-color: var(--feld-auswahl-rand-hover); background-color: var(--feld-auswahl-grund-hover); }
.lp-zeile:has(input:checked) .lp-takt { border-color: var(--linie); background-color: var(--weiss); color: var(--schwarz); }
.lp-takt:focus-visible { outline: 3px solid var(--rot); outline-offset: 1px; }
.lp-weg {
  display: grid; flex: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--stein); cursor: pointer; transition: background-color .15s ease, color .15s ease;
}
.lp-weg:hover { background: var(--beton-tief); color: var(--rot); }
.lp-weg .icon { width: 18px; height: 18px; stroke-width: 2.2; }
.lp-eigen .lp-aufgabe-text::after { content: " · eigene"; color: var(--stein); font-size: 13.5px; }

/* Eigene Aufgabe ergänzen */
.lp-eigene { display: grid; gap: var(--space-2); margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px dashed var(--linie); }
.lp-eigene-titel { font-size: 14px; font-weight: 700; color: var(--schwarz); }
.lp-eigene-zeile { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lp-eigene-feld {
  flex: 1 1 14em; min-width: 0; min-height: var(--feld-text-plan-min-hoehe); padding: var(--feld-text-plan-polster-y) var(--feld-text-plan-polster-x);
  border: var(--feld-text-plan-rand-breite) solid color-mix(in srgb, var(--stein) 80%, var(--weiss)); border-radius: var(--feld-text-plan-radius); background: var(--feld-text-plan-grund);
  color: var(--feld-text-plan-text); font: var(--feld-text-plan-schrift-gewicht) var(--feld-text-plan-schrift-groesse) var(--font-text); transition: border-color .15s ease;
}
.lp-eigene-feld:hover { border-color: var(--feld-text-plan-rand-hover); }
.lp-eigene-feld:focus-visible { outline: var(--feld-text-plan-ring-breite-fokus) solid var(--feld-text-plan-ring-fokus); outline-offset: var(--feld-text-plan-ring-abstand-fokus); border-color: var(--feld-text-plan-rand-fokus); box-shadow: none; }
.lp-eigene-zeile .knopf { min-height: 48px; background: var(--weiss); }
.lp-eigene-zeile .knopf:hover { background: var(--beton); }
.lp-eigene-meldung { min-height: 1.4em; font-size: 13.5px; line-height: 1.4; color: var(--stein); }

/* Ende: Anfrage */
.lp-ende {
  display: grid; gap: var(--space-4) var(--space-8); align-items: center; padding: clamp(var(--space-5), 3vw, 30px) clamp(var(--space-4), 3vw, 36px);
  border-top: 1px solid var(--linie); border-radius: 0 0 var(--radius-gross) var(--radius-gross); background: var(--beton);
}
@media (min-width: 900px) { .lp-ende { grid-template-columns: minmax(0, 1fr) auto; } }
.lp-ende-titel { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 1.15; color: var(--schwarz); }
.lp-fuss { margin-top: var(--space-1); font-size: 14.5px; line-height: 1.5; color: var(--stein); }
.lp-ende-aktion { display: grid; gap: 6px; justify-items: start; min-width: 0; }
@media (min-width: 900px) { .lp-ende-aktion { justify-items: end; text-align: right; } }
.lp-ende .knopf { max-width: 100%; padding-block: var(--space-3); white-space: normal; line-height: 1.25; text-align: center; }
.lp-ende .knopf[aria-disabled="true"] { background: var(--beton-tief); color: var(--stein); box-shadow: inset 0 0 0 1px var(--linie); cursor: not-allowed; }
.lp-hinweis { font-size: 14px; line-height: 1.45; color: var(--stein); }
.lp-hinweis.ist-betont { color: var(--rot-dunkel); font-weight: 700; }
.lp-status { font-size: 14px; line-height: 1.45; color: var(--gruen-dunkel); font-weight: 600; }
.lp-status:empty { display: none; }
.lp-ohne-js { font-size: 15px; }
.lp-ohne-js a { padding-block: var(--space-3); color: var(--schiefer); font-weight: 700; text-underline-offset: 3px; }

/* Ohne JavaScript: alle Bereiche untereinander, statt Feld und Knopf ein Hinweis aufs Kontaktformular */
.js .lp-ohne-js,
html:not(.js) :is(.lp-leiste, .lp-reiter, .lp-eigene, .lp-ende-aktion) { display: none; }

/* Links im Fließtext der Fragen: Tippfläche 44 px, ohne die Zeile zu verschieben */
#fragen .fragen-hinweis a, #fragen .frage p a { padding-block: var(--space-3); }

@media (prefers-reduced-motion: reduce) {
  .lp-zeile, .lp-aufgabe input, .lp-takt, .lp-weg, .lp-reiter [role="tab"] { transition: none; }
}
@media (forced-colors: active) {
  .lp-aufgabe input { -webkit-appearance: auto; appearance: auto; }
  .lp-takt { -webkit-appearance: auto; appearance: auto; border-color: CanvasText; }
  .lp-reiter [role="tab"][aria-selected="true"] { border-width: 3px; }
}
