/* Bestellübersicht Kebap Haus: für Tablet und Handy in der Küche, große Knöpfe, klare Farben. */
/* Farben der Karte 2026: Weinrot, Dunkelgrün, Gold auf Papier */
@font-face { font-family: "Oswald"; src: url(/fonts/oswald.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root { --ampel-rot: #c62828; --ampel-gruen: #256a29; --grund: #f2efe7; --flaeche: #fffdf8; --text: #2a2523; --leise: #6b635b; --linie: #e3dccd; --gelb: #f0a531; --rot: #8f1f2b; --gruen: #2c3a24; --blau: #1d4f91; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--grund); color: var(--text); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
[hidden] { display: none !important; }
.knopf { border: 2px solid var(--text); background: #fff; border-radius: 12px; padding: .75em 1.2em; font-weight: 700; min-height: 48px; }
.knopf.haupt { background: #2f7a4a; border-color: #2f7a4a; color: #fff; }
.knopf.rot { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf:disabled { opacity: .5; }
.knopf, .min { transition: transform .12s cubic-bezier(.23, 1, .32, 1); }
.knopf:active:not(:disabled), .min:active { transform: scale(.97); }
.fehler { color: var(--rot); font-weight: 600; margin: 0; }
.leer { color: var(--leise); margin: 4px 0 12px; }

.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--grund); }
.login form { display: grid; gap: 14px; width: min(340px, 100%); text-align: center; }
.login .marke { font-size: 40px; justify-self: center; }
.logo { display: inline-grid; grid-template-columns: auto auto auto; align-items: end; column-gap: .08em; font: 600 1em/.86 "Oswald", sans-serif; text-transform: uppercase; }
.logo .k { color: #8f1f2b; }
.logo .h { color: #2c3a24; }
.logo img { height: 1.24em; width: auto; align-self: center; margin-bottom: -.06em; }
.login h1 { margin: 0; }
.login label { display: grid; gap: 6px; text-align: left; font-weight: 600; }
.login input { border: 2px solid var(--text); border-radius: 12px; padding: .7em; font-size: 22px; letter-spacing: .3em; text-align: center; }
.login .pin-feld span { font-weight: 600; }
.tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.taste { appearance: none; aspect-ratio: 1.25; min-height: 64px; border: 0; border-radius: 18px; background: var(--flaeche); box-shadow: 0 1px 0 rgba(42, 37, 35, .08), inset 0 0 0 1px var(--linie); color: var(--text); display: grid; place-content: center; gap: 2px; cursor: pointer; font: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform .12s cubic-bezier(.23, 1, .32, 1), background-color .12s ease; }
.taste b { font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.taste small { font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--leise); min-height: 1.2em; line-height: 1.2; }
.taste:active { transform: scale(.95); background: var(--linie); }
.taste.leise { background: transparent; box-shadow: none; color: var(--leise); }
.taste.ok { background: var(--gruen); box-shadow: none; color: #fff; }
.taste.ok:active { background: #1f2a19; }
@media (hover: hover) and (pointer: fine) { .taste:not(.leise):not(.ok):hover { background: #fff; } }

.kopf { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 10px 16px; background: var(--gruen); color: #fff; }
.kopf h1 { margin: 0; font-size: 20px; }
.tabs { display: flex; gap: 4px; background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 4px; }
.tabs button { border: 0; background: none; color: #fff; padding: .5em 1em; border-radius: 9px; font-weight: 700; }
.tabs button[aria-selected="true"] { background: var(--gelb); color: var(--text); }
.werkzeuge { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.werkzeuge select { border: 0; border-radius: 10px; padding: .55em .7em; background: #fff; color: var(--text); font-weight: 600; }
.symbol { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 44px; height: 44px; border-radius: 10px; font-size: 20px; }
.symbol[aria-pressed="true"] { background: var(--gelb); }
.pause-leiste, .ton-leiste { margin: 0; padding: 10px 16px; font-weight: 600; text-align: center; }
.pause-leiste { background: var(--rot); color: #fff; }
.ton-leiste { background: #fff6cc; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ton-leiste .knopf { min-height: 40px; padding: .4em 1em; }
.push-hinweis { background: #fff; padding: 12px 16px; border-bottom: 1px solid var(--linie); }
.push-hinweis p { margin: 0 0 8px; }
.push-hinweis .knoepfe { display: flex; gap: 8px; }
.push-hinweis .knopf.leise { border-color: var(--linie); }

.tab { padding: 16px; max-width: 1400px; margin: 0 auto; }
.tag-leiste { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.tag-leiste input { border: 1px solid var(--linie); border-radius: 10px; padding: .5em .7em; background: #fff; }
.tag-leiste p { margin: 0; font-weight: 700; }
h2 { font-size: 18px; margin: 18px 0 10px; display: flex; align-items: center; gap: 8px; }
h2 span:not(:empty) { background: var(--text); color: #fff; border-radius: 999px; padding: 0 9px; font-size: 14px; }
.klingelt .neu-titel span { background: var(--rot); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.erledigt summary { list-style: none; cursor: pointer; }
.erledigt summary::-webkit-details-marker { display: none; }
.erledigt summary h2::after { content: "▸"; color: var(--leise); }
.erledigt[open] summary h2::after { content: "▾"; }
/* Von links nach rechts: Neu (blinkt) → In Arbeit (rot) → Fertig (grün) */
.spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.spalte { border-radius: 16px; padding: 2px 10px 10px; min-height: 160px; }
.spalte h2 { margin: 10px 2px; }
.spalte-neu { background: #ebe5d8; }
.spalte-arbeit { background: #f7e3e1; }
.spalte-arbeit h2 { color: var(--ampel-rot); }
.spalte-bereit { background: #e2efe3; }
.spalte-bereit h2 { color: var(--ampel-gruen); }
.karten { display: grid; grid-template-columns: 1fr; gap: 12px; align-items: start; }
.erledigt .karten { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.bestellung { background: var(--flaeche); border: 1px solid var(--linie); border-left: 6px solid var(--linie); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.bestellung.status-neu, .bestellung.spaet { position: relative; }
.bestellung.status-neu { border: 3px solid var(--gelb); border-left-width: 8px; }
/* Blinken nur über die Deckkraft einer Lage (läuft auf der Grafikkarte, kein Neuzeichnen der Karte) */
.bestellung.status-neu::after, .bestellung.spaet::after { content: ""; position: absolute; inset: -3px; border-radius: 16px; pointer-events: none; opacity: 0; animation: blinkt 1.2s cubic-bezier(.77, 0, .175, 1) infinite alternate; }
.bestellung.status-neu::after { background: rgba(240, 165, 49, .22); box-shadow: 0 0 0 6px rgba(240, 165, 49, .45); }
.bestellung.spaet::after { background: rgba(198, 40, 40, .14); box-shadow: 0 0 0 5px rgba(198, 40, 40, .4); }
@keyframes blinkt { to { opacity: 1; } }
.bestellung.status-angenommen { border-left-color: var(--ampel-rot); }
.bestellung.status-fertig, .bestellung.status-unterwegs { border-left-color: var(--ampel-gruen); }
@media (prefers-reduced-motion: reduce) { .bestellung.status-neu::after, .bestellung.spaet::after { animation: none; opacity: .7; } }
.bestellung.status-erledigt { border-left-color: var(--gruen); opacity: .8; }
.bestellung.status-abgelehnt { opacity: .6; }
.bestellung header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.nr { font-size: 26px; line-height: 1; }
.art { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; }
.art-liefern { background: #dfe9f7; color: var(--blau); }
.bezahlt { font-weight: 800; color: var(--ampel-gruen); }
.art-abholen { background: #e3f1e8; color: var(--gruen); }
.wann { font-weight: 700; }
.seit { margin-left: auto; color: var(--leise); font-size: 14px; }
.kunde a { color: var(--blau); }
.hinweis { margin: 6px 0 0; background: #fff6cc; border-radius: 8px; padding: 6px 8px; }
.pos { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linie); }
.pos li { display: grid; grid-template-columns: 42px 1fr auto; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.pos i { font-style: normal; color: var(--leise); font-size: 14px; }
.pos small { display: block; color: var(--leise); font-size: 14px; }
.pos small.notiz { color: var(--rot); font-weight: 600; }
.pos em { font-style: normal; font-variant-numeric: tabular-nums; }
.bestellung footer { display: flex; justify-content: space-between; align-items: baseline; color: var(--leise); }
.bestellung footer b { color: var(--text); font-size: 20px; }
.annehmen { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 600; }
.min { border: 2px solid var(--linie); background: #fff; border-radius: 10px; min-width: 50px; height: 46px; font-weight: 800; font-size: 17px; }
.min.an { border-color: var(--text); background: var(--gelb); }
.zeit { display: grid; gap: 6px; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 10px; }
.zeit-zeile { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; gap: 8px; }
.zeit-zeile .min { height: 52px; font-size: 18px; }
.zeit-wert { margin: 0; text-align: center; display: grid; line-height: 1.15; }
.zeit-wert b { font-size: 26px; font-variant-numeric: tabular-nums; }
.zeit-wert span { color: var(--leise); font-size: 14px; white-space: nowrap; }
.zeit-grund { margin: 0; color: var(--leise); font-size: 14px; text-align: center; }
.link { border: 0; background: none; padding: 0; color: var(--blau); text-decoration: underline; font-size: inherit; }
.aktionen { display: flex; gap: 8px; }
.aktionen .knopf { flex: 1; white-space: nowrap; padding-inline: .8em; }
.aktionen .knopf.haupt { flex: 1.6; }

.hilfe { color: var(--leise); margin-top: 0; }
#karte-suche { width: 100%; max-width: 420px; border: 1px solid var(--linie); border-radius: 10px; padding: .7em .9em; background: #fff; margin-bottom: 8px; font-size: 16px; }
#karte-liste section { margin-bottom: 8px; }
.schalter { display: grid; grid-template-columns: 1fr auto 96px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--linie); border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; cursor: pointer; max-width: 720px; }
.schalter i { font-style: normal; color: var(--leise); }
.schalter input { width: 22px; height: 22px; accent-color: var(--gruen); }
.schalter b { font-size: 14px; color: var(--gruen); }
.schalter.ist-aus { background: #fbeaea; }
.schalter.ist-aus b { color: var(--rot); }

.dlg { border: 0; border-radius: 16px; padding: 20px; width: min(480px, calc(100vw - 32px)); }
.dlg::backdrop { background: rgba(0, 0, 0, .5); }
.dlg h2 { margin: 0 0 6px; }
.dlg form { display: grid; gap: 12px; }
.dlg p { margin: 0; color: var(--leise); }
.dlg label { display: grid; gap: 4px; font-weight: 600; }
.dlg input { border: 1px solid var(--linie); border-radius: 10px; padding: .7em; font-size: 16px; }
.gruende { display: flex; flex-wrap: wrap; gap: 6px; }
.gruende button { border: 1px solid var(--linie); background: #fff; border-radius: 999px; padding: .5em .9em; }
.dlg-knoepfe { display: flex; gap: 8px; justify-content: flex-end; }

.bon { display: none; }
@media print {
  @page { size: 80mm auto; margin: 4mm; }
  body { background: #fff; }
  body > *:not(.bon) { display: none !important; }
  .bon { display: block; font: 12pt/1.3 ui-monospace, Menlo, monospace; color: #000; width: 72mm; }
  .bon h1 { font-size: 20pt; margin: 0 0 4pt; }
  .bon p { margin: 0 0 6pt; }
  .bon .pos li { grid-template-columns: 9mm 1fr auto; border-color: #000; }
  .bon .pos small { color: #000; }
  .bon .b-hinweis { border: 1pt solid #000; padding: 3pt; }
  .bon .b-summe { margin-top: 6pt; font-size: 13pt; }
}
@media (max-width: 1000px) {
  .spalten { grid-template-columns: 1fr; }
  .spalte { min-height: 0; }
}
@media (max-width: 600px) {
  .kopf { gap: 8px; }
  .kopf h1 { display: none; }
  .tabs { flex: 1; }
  .tabs button { flex: 1; }
  .werkzeuge { width: 100%; margin-left: 0; }
  .werkzeuge select { flex: 1; min-width: 0; }
  .karten { grid-template-columns: 1fr; }
  .tab { padding: 12px; }
  .schalter { grid-template-columns: 1fr auto; }
  .schalter b { display: none; }
  .breit { display: none; }
}
