/* eco Leben Apps (E130): Kunden-App. Ein Blatt fuer Handy und Computer, ohne fremde Schriften und ohne Bilder von aussen. */
:root {
  --grund: #f3f6fa;
  --karte: #ffffff;
  --schrift: #14202e;
  --leise: #55657a;
  --linie: #d5dde8;
  --blau: #0066a5;
  --blau-dunkel: #00507f;
  --blau-hell: #e3f0f9;
  --gruen: #068942;
  --gruen-hell: #e2f4ea;
  --rot: #b81d24;
  --rot-hell: #fbe6e7;
  --gelb: #8a5a00;
  --gelb-hell: #fdf1d6;
  --still-hell: #e9edf2;
  --rund: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grund); color: var(--schrift); font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; }
[hidden] { display: none !important; }
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--karte); border-bottom: 1px solid var(--linie); position: sticky; top: 0; z-index: 2; }
.marke { font-size: 20px; font-weight: 700; white-space: nowrap; }
.marke .e { color: #068942; }
.marke .c { color: #d7222a; }
.marke .o { color: #0066a5; }
.marke .rest { font-weight: 600; }
.wer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wer-name { color: var(--leise); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 38vw; }
.haupt { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(40px + env(safe-area-inset-bottom)); }
h1 { font-size: 22px; margin: 18px 0 10px; }
h2 { font-size: 18px; margin: 22px 0 8px; }
p { margin: 8px 0; }
.leise { color: var(--leise); font-size: 15px; }
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 16px; margin: 12px 0; }
.hinweis { background: var(--blau-hell); border-radius: var(--rund); padding: 12px 14px; margin: 12px 0; }
.hinweis.warn { background: var(--gelb-hell); color: var(--gelb); }
.hinweis.gut { background: var(--gruen-hell); color: var(--gruen); }
.fehler { color: var(--rot); min-height: 1.45em; margin: 8px 0; }
.fehler:empty { min-height: 0; margin: 0; }

.feld { display: block; margin: 12px 0; }
.feld > span { display: block; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.feld small { display: block; color: var(--leise); font-size: 14px; margin-top: 4px; }
input[type=text], input[type=password], input[type=time], input[type=tel], select, textarea { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; border: 1px solid #9aa8b9; border-radius: 10px; }
textarea { min-height: 84px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.reihe.schmal-breit { grid-template-columns: 110px 1fr; }
.wahl { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; }
.wahl input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
fieldset { border: 0; padding: 0; margin: 14px 0; }
legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 4px; }

.knopf { min-height: 46px; padding: 10px 18px; font: inherit; font-weight: 600; color: var(--blau-dunkel); background: #fff; border: 1px solid var(--blau); border-radius: 10px; cursor: pointer; }
.knopf:hover { background: var(--blau-hell); }
.knopf:disabled { opacity: 0.55; cursor: default; }
.knopf.haupt-knopf { color: #fff; background: var(--blau); width: 100%; margin-top: 8px; }
.knopf.haupt-knopf:hover { background: var(--blau-dunkel); }
.knopf.klein { min-height: 38px; padding: 6px 12px; font-size: 15px; }
.knoepfe { display: flex; gap: 10px; margin-top: 14px; }
.knoepfe .knopf { flex: 1; width: auto; margin-top: 0; }

.reiter { display: flex; gap: 6px; margin: 4px 0 6px; }
.reiter button { flex: 1; min-height: 44px; padding: 0 4px; font: inherit; font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--leise); background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.reiter button.an { color: var(--blau-dunkel); border-bottom-color: var(--blau); }

.tage { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; scroll-snap-type: x proximity; }
.tag { flex: none; min-width: 78px; min-height: 58px; padding: 6px 10px; font: inherit; text-align: center; color: var(--schrift); background: var(--karte); border: 1px solid var(--linie); border-radius: 10px; cursor: pointer; scroll-snap-align: start; }
.tag.an { background: var(--blau); border-color: var(--blau); color: #fff; }
.tag.voll:not(.an) { color: var(--leise); background: var(--still-hell); }
.tag-name { display: block; font-weight: 700; font-size: 15px; }
.tag-datum { display: block; font-size: 13px; }

.stunden { list-style: none; margin: 0; padding: 0; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); }
.stunde { display: grid; grid-template-columns: 1fr auto 92px; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--linie); }
.stunde:first-child { border-top: 0; }
.stunde.belegt .uhr { color: var(--leise); }
.uhr { font-weight: 600; font-variant-numeric: tabular-nums; }
.marke-frei, .marke-belegt, .stand { display: inline-block; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.marke-frei { color: var(--gruen); background: var(--gruen-hell); }
.marke-frei.kurz { color: var(--gelb); background: var(--gelb-hell); }
.marke-belegt { color: var(--leise); background: var(--still-hell); }
.stand.ok { color: var(--gruen); background: var(--gruen-hell); }
.stand.warn { color: var(--gelb); background: var(--gelb-hell); }
.stand.stop { color: var(--rot); background: var(--rot-hell); }
.stand.still { color: var(--leise); background: var(--still-hell); }

.fahrt { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--rund); padding: 12px 14px; margin: 10px 0; }
.fahrt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fahrt-zeit { font-weight: 700; }
.fahrt p { margin: 4px 0 0; color: var(--leise); font-size: 15px; }
.fahrt p.grund { color: var(--rot); }
.fahrt p.gut { color: var(--gruen); }
.fahrt p.frage { color: var(--schrift); font-weight: 600; }
.fahrt p.fehler { min-height: 0; margin: 0 0 8px; color: var(--rot); }
.absage { margin-top: 10px; }
.absage p { margin: 0; }
.absage .knoepfe { margin-top: 12px; }
.knopf.stopp { color: var(--rot); border-color: var(--rot); }
.knopf.stopp:hover { background: var(--rot-hell); }
details { margin: 16px 0; }
summary { cursor: pointer; font-weight: 600; color: var(--blau-dunkel); padding: 8px 0; }
.daten { margin: 0; }
.daten div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--linie); }
.daten div:first-child { border-top: 0; }
.daten dt { color: var(--leise); }
.daten dd { margin: 0; font-weight: 600; text-align: right; }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .reihe { grid-template-columns: 1fr; }
  .reihe.schmal-breit { grid-template-columns: 96px 1fr; }
  .stunde { grid-template-columns: 1fr auto 84px; }
  .marke .rest { font-size: 17px; }
  .reiter button { font-size: 14px; }
}
@media (max-width: 560px) {
  .wer-name { display: none; }   /* der Name steht unter „Zugang“ */
}
