/* Pflegetagebuch (pflegetagebuch.html), ergaenzt assets/styles.css. Hell, Farben aus den Variablen von styles.css; Tippflaechen mindestens 44 px. */
.tagebuch{max-width:52rem}
.tagebuch .tb-hinweis{background:var(--warn-soft);color:var(--ink);border-left:5px solid var(--warn);border-radius:8px;padding:.8rem 1rem}
.tagebuch .tb-aktionen{flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.tagebuch .tb-aktionen .btn{min-height:44px}
.tagebuch .tb-datei-hinweis{margin:0 0 .6rem}
.tagebuch .tb-meldung{margin:.2rem 0 1rem;font-weight:600}
.tagebuch .tb-meldung:empty{margin:0}
.tagebuch .tb-meldung:not(:empty){padding:.6rem 1rem;border-left:5px solid var(--accent);background:var(--accent-soft);border-radius:8px}
.tagebuch .tb-meldung[data-art="fehler"]{border-left-color:var(--warn);background:var(--warn-soft)}
.tagebuch .tb-feld{display:flex;flex-direction:column;gap:.25rem;margin:.6rem 0}
.tagebuch label{font-weight:600}
.tagebuch input,.tagebuch textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--muted);border-radius:6px;min-height:44px;padding:.4rem .55rem;width:100%;max-width:100%}
.tagebuch input[type="date"]{max-width:14rem}
.tagebuch #tb-name{max-width:24rem}
.tagebuch textarea{resize:vertical;display:block}
.tagebuch .tb-druck{display:none}
.tagebuch .tb-tag{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:.8rem 1rem 1rem;margin:1.2rem 0}
.tagebuch .tb-tag h2,.tagebuch .tb-summe h2{margin-top:0}
.tagebuch table{min-width:0;width:100%;table-layout:fixed}
.tagebuch th,.tagebuch td{padding:.4rem .35rem;vertical-align:middle}
.tagebuch thead th:first-child{width:34%}
.tagebuch thead th.n{width:6.5rem}
.tagebuch tbody th,.tagebuch tfoot th{font-size:.95rem;text-transform:none;letter-spacing:0;color:var(--ink);font-weight:600;hyphens:manual;overflow-wrap:break-word}
@media (max-width:30rem){
  .tagebuch .tb-tag{padding-inline:.6rem}
  .tagebuch thead th:first-child{width:50%}
  .tagebuch thead th.n{width:4.6rem}
  .tagebuch th,.tagebuch td{padding-inline:.2rem}
  .tagebuch tbody th,.tagebuch tfoot th{font-size:.875rem}
}
.tagebuch tfoot td,.tagebuch tfoot th{font-weight:700;border-bottom:0}
.tagebuch .tb-min{text-align:right}
.tagebuch .tb-fehler{white-space:normal;overflow-wrap:anywhere;text-align:left;margin:.3rem 0 0;font-size:.875rem}
.tagebuch .tb-summe{margin:1.6rem 0}
/* 09.11.2026 Grosse Schrift (A++) bei 390 px: Tageskarten ohne eigenes Scrollen, Tabellenzeilen als gestapelte Bloecke (Bereich, Textfeld, Minuten untereinander); Beschriftung mit den vorhandenen Spaltenwoertern */
.tagebuch .tb-tag,.tagebuch .tb-summe{overflow-x:auto}
@media screen and (max-width:650px){
  .tagebuch .tb-tag table,.tagebuch .tb-tag tbody,.tagebuch .tb-tag tfoot,.tagebuch .tb-tag tr,.tagebuch .tb-tag th,.tagebuch .tb-tag td{display:block;width:auto}
  .tagebuch .tb-tag thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .tagebuch .tb-tag tbody tr{border-top:1px solid var(--line);padding:.4rem 0 .6rem}
  .tagebuch .tb-tag tbody td:nth-child(2)::before{content:"Wobei war Hilfe nötig?"}
  .tagebuch .tb-tag tbody td.n::before{content:"Minuten"}
  .tagebuch .tb-tag tbody td::before{display:block;font-size:.875rem;color:var(--ink)}
  .tagebuch .tb-tag tfoot tr{border-top:2px solid var(--line);padding-top:.4rem}
  .tagebuch .tb-tag td.n{text-align:left}
  .tagebuch .tb-tag .tb-min{max-width:10rem;text-align:left}
}
/* 10.11.2026 Breite Bildschirme: Der Fehlerhinweis des Minutenfelds stand in der schmalen Minutenspalte und brach Wort fuer Wort um.
   Nur die Zeile mit sichtbarem Hinweis: Sie bekommt unten Platz, der Hinweis steht dort ueber die ganze Zeilenbreite (die Zeile ist der Bezugspunkt).
   Alle anderen Zeilen und das Seitenlayout bleiben unveraendert. Polster 5rem (vorher 4.4rem): bei Schrift 150/200 % bricht der Hinweis ab 651 px in 2 Zeilen (4.2rem hoch) und ragte ins Textfeld. */
@media screen and (min-width:651px){
  .tagebuch .tb-tag tbody tr:has(.tb-fehler:not([hidden])){position:relative}
  .tagebuch .tb-tag tbody tr:has(.tb-fehler:not([hidden])) > *{padding-bottom:5rem}
  .tagebuch .tb-tag tbody tr:has(.tb-fehler:not([hidden])) .tb-fehler{position:absolute;left:.35rem;right:.35rem;bottom:.4rem;margin:0}
}
.tagebuch .tb-summe thead th.n{width:9rem}
@media print{
  .skip,.head-tools,.mainnav,.crumbs,.site-foot .cols,.tb-aktionen,.tb-datei-hinweis,.tb-meldung{display:none!important}
  body{background:#fff;font-size:11pt}
  .tagebuch{max-width:none}
  .tagebuch .tb-tag,.tagebuch .tb-summe{overflow:visible}
  .tagebuch .tb-tag{break-inside:avoid;page-break-inside:avoid;border-color:#000;margin:.6rem 0}
  .tagebuch .tb-hinweis{background:none;border-left-color:#000}
  .tagebuch input,.tagebuch textarea{border:0;border-bottom:1px solid #000;border-radius:0;background:none;min-height:1.8em;color:#000}
  .tagebuch input[type="number"]{-moz-appearance:textfield;appearance:textfield}
  .tagebuch th,.tagebuch td{color:#000;vertical-align:top}
  .tagebuch textarea{field-sizing:content;overflow:visible;resize:none}
  .tagebuch.tb-js textarea{display:none!important}
  .tagebuch.tb-js .tb-druck{display:block;white-space:pre-wrap;overflow-wrap:anywhere;border-bottom:1px solid #000;min-height:1.8em;padding:.2rem 0;color:#000}
}
