/* Kundenportal. Ruhig, groß genug für den Daumen, hell und dunkel. Keine externen Quellen. */
:root {
  color-scheme: light dark;
  --bg: #f5f4f0; --flaeche: #fff; --text: #1b1d21; --leise: #5f646c; --linie: #dedbd3;
  --akzent: #2f5d50; --akzent-text: #fff; --akzent-hell: #e3eeea; --link: #2f5d50; --leiste: #2f5d50; --leiste-text: #fff;
  --schrift-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --schrift-titel: var(--schrift-text);
  --gefahr: #a8321f; --warn-hell: #fbf0dc; --ok-hell: #e3f1e8; --fehler-hell: #fbe6e1;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131416; --flaeche: #1c1e21; --text: #ebeae6; --leise: #a3a7ad; --linie: #30333a;
    --akzent: #7fc4ae; --akzent-text: #0f1a16; --akzent-hell: #1f2f2a; --link: #7fc4ae; --leiste: #1f2f2a; --leiste-text: #ebeae6;
    --gefahr: #ff8a73; --warn-hell: #2e2516; --ok-hell: #17291f; --fehler-hell: #331b16;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--schrift-text); -webkit-text-size-adjust: 100%; }
h1, h2, .leiste .marke { font-family: var(--schrift-titel); }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 80px; }
h1 { font-size: 26px; line-height: 1.2; margin: 8px 0 16px; }
h2 { font-size: 19px; margin: 28px 0 10px; }
h3 { font-size: 16px; margin: 18px 0 6px; }
a { color: var(--link); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.leise { color: var(--leise); font-size: 14px; }

.leiste { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; background: var(--leiste); color: var(--leiste-text); border-bottom: 2px solid var(--akzent); }
.leiste a, .leiste .linkknopf { color: var(--leiste-text); }
.leiste .marke { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
.leiste .marke img { height: 36px; width: auto; max-width: 140px; flex: none; }
.leiste .marke { font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste nav { display: flex; gap: 14px; align-items: center; font-size: 14px; flex: none; }
.inline { display: inline; margin: 0; }
.linkknopf { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; }
.demo { background: var(--warn-hell); padding: 8px 16px; font-size: 14px; text-align: center; }

.kacheln { display: grid; gap: 10px; }
.kachel { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); color: var(--text); text-decoration: none; min-height: 64px; }
.kachel b { display: block; }
.kachel small { color: var(--leise); }
.kachel .pfeil { color: var(--leise); font-size: 24px; }
.kachel:focus-visible, .knopf:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }

.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; margin: 16px 0; }
.karte.schmal { max-width: 420px; margin: 8vh auto 0; }
.karte h1, .karte h2 { margin-top: 0; }

label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 4px; }
input, textarea, select { width: 100%; font: inherit; color: var(--text); background: var(--flaeche); border: 1px solid var(--feldrand, var(--linie)); border-radius: 9px; padding: 10px 12px; min-height: 44px; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--akzent); flex: none; }
input[type=time] { width: auto; min-width: 7.5em; }
input[type=file] { padding: 8px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: 12px 14px 16px; margin: 16px 0; background: var(--flaeche); min-width: 0; }
legend { font-weight: 700; padding: 0 6px; }
.schalter { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 12px 0; cursor: pointer; }
.schalter.klein { font-weight: 400; font-size: 14px; margin: 0; }
.zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--akzent); background: var(--akzent); color: var(--akzent-text); font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; margin-top: 14px; }
.knopf.zweit { background: transparent; color: var(--link); border-color: var(--link); }
.knopf.gefahr { background: transparent; color: var(--gefahr); border-color: var(--gefahr); }
.knopf.klein { min-height: 38px; padding: 6px 12px; font-size: 14px; margin-top: 0; }
.knopf.breit { display: flex; width: 100%; }
.knopf:disabled { opacity: .35; cursor: default; }
.aktionen { position: sticky; bottom: 0; padding: 10px 0 12px; background: linear-gradient(transparent, var(--bg) 30%); }
.aktionen .knopf { width: 100%; }

.meldung { padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; }
.meldung.ok { background: var(--ok-hell); }
.meldung.fehler { background: var(--fehler-hell); }
.meldung .pw { font-family: ui-monospace, Menlo, monospace; font-size: 18px; letter-spacing: .05em; }
.hinweisbox { background: var(--warn-hell); padding: 12px 14px; border-radius: 10px; }
.zurueck { margin: 4px 0 0; font-size: 14px; }
.unten { display: flex; gap: 18px; justify-content: center; margin-top: 18px; font-size: 15px; }

.protokoll { list-style: none; padding: 0; margin: 0; }
.protokoll li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linie); }
.protokoll small { color: var(--leise); white-space: nowrap; }
.protokoll form { margin: 0; flex: none; }

/* Öffnungszeiten */
.wochenplan .tag { padding: 10px 0; border-bottom: 1px solid var(--linie); }
.wochenplan .tag .schalter { margin: 0 0 6px; }
.zeiten { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.zeiten span { display: inline-flex; align-items: center; gap: 6px; }
.tag:has(input[type=checkbox]:not(:checked)) .zeiten { opacity: .4; }
.ausnahme { padding: 10px 0 14px; border-bottom: 1px solid var(--linie); }
.ausnahme .nur-offen { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.ausnahme:has(input[name$="[geschlossen]"]:checked) .nur-offen { display: none; }

/* Speisekarte */
.gruppe { margin-top: 10px; }
.gruppe-kopf { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.gruppe-kopf input { font-weight: 600; font-style: italic; }
.gruppe + .gruppe { border-top: 1px solid var(--linie); padding-top: 6px; }
.kategorie > textarea { margin-top: 8px; font-size: 14px; }
.kategorie-kopf { display: flex; gap: 8px; align-items: center; padding-bottom: 6px; border-bottom: 2px solid var(--linie); }
.kategorie-kopf input { font-weight: 700; font-size: 17px; }
.sortieren { display: inline-flex; gap: 4px; flex: none; }
.sortieren[hidden], .zweites[hidden] { display: none; }
.plus { background: none; border: 0; color: var(--link); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.sortieren button { min-width: 38px; min-height: 38px; border: 1px solid var(--linie); background: var(--flaeche); color: var(--text); border-radius: 8px; font-size: 16px; cursor: pointer; }
.eintrag { padding: 12px 0; border-bottom: 1px dashed var(--linie); display: grid; gap: 6px; }
.eintrag:last-child { border-bottom: 0; }
.eintrag-haupt { display: grid; grid-template-columns: 1fr 6.5em; gap: 6px; }
.eintrag-haupt input:first-child { font-weight: 600; }
.team-zeile { grid-template-columns: 1fr 1fr; }
.preis { text-align: right; }
.eintrag-fuss { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.eintrag-fuss .zusatz { flex: 1 1 10em; width: auto; min-height: 38px; padding: 6px 10px; font-size: 14px; }
.eintrag-fuss .sortieren { margin-left: auto; }
.eintrag:has(input[name$="[weg]"]:checked) { opacity: .5; }

/* Fotos */
.fotoliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fotoliste li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--linie); }
.fotoliste img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--linie); }
.fotoknoepfe { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

@media (max-width: 420px) {
  .zwei { grid-template-columns: 1fr; gap: 0; }
  .fotoliste li { grid-template-columns: 88px 1fr; }
  .fotoliste img { width: 88px; height: 66px; }
}
@media (prefers-reduced-motion: no-preference) {
  .kachel, .knopf { transition: transform .12s ease, background-color .15s ease; }
  .kachel:active, .knopf:active { transform: scale(.98); }
}

/* Sammlungen (Fahrzeuge, Personen, Bewertungen) */
.sammlung { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.sammlung li { min-width: 0; }
.sammlung li { display: flex; align-items: center; gap: 8px; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px 10px; }
.sammlung li.aus { opacity: .6; }
.sammlung-eintrag { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--text); text-decoration: none; min-height: 54px; }
.sammlung-eintrag img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; flex: none; background: var(--linie); }
.sammlung-eintrag span { min-width: 0; }
.sammlung-eintrag b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sammlung-eintrag small { color: var(--leise); }
.mitte { text-align: center; margin-top: 18px; }
.modul-sammlung h2 { margin-top: 6px; }
details.belegung { padding: 12px 14px; }
details.belegung summary { cursor: pointer; min-height: 32px; }
details.belegung summary small { color: var(--leise); font-weight: 400; }
.belegung-zeile label { font-weight: 600; }
