/* OG Deckel · gemeinsames Design (Otto Gourmet CD: Weiss, Grau, OG-Rot D51317, Calibri) */
:root {
  --red: #D51317;
  --red-dark: #B00F12;
  --red-soft: #FBE7E8;
  --g900: #1A1A1A;
  --g700: #444444;
  --g500: #767676;
  --g300: #D9D9D9;
  --g200: #E8E8E8;
  --g100: #F3F3F3;
  --white: #FFFFFF;
  --ok: #2E7D32;
  --ok-soft: #E6F3E7;
  --warn: #B26A00;
  --warn-soft: #FFF3DF;
  --font: Calibri, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SF Mono", Menlo, monospace;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .08);
  --tap: 52px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.35; color: var(--g900); background: var(--g100);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0 0 .5rem; line-height: 1.2; }
h1 { font-size: 1.35rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; color: var(--g700); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 .75rem; }
a { color: var(--red); }
button, .btn {
  font: inherit; font-weight: 600; min-height: var(--tap); padding: 0 18px; border: 0; border-radius: var(--radius);
  background: var(--red); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; text-decoration: none;
}
button:active, .btn:active { transform: translateY(1px); background: var(--red-dark); }
button:disabled { opacity: .45; cursor: not-allowed; }
.btn-secondary { background: var(--white); color: var(--g900); border: 2px solid var(--g300); }
.btn-secondary:active { background: var(--g100); }
.btn-ghost { background: transparent; color: var(--g700); min-height: 40px; padding: 0 10px; font-weight: 500; }
.btn-ok { background: var(--ok); }
.btn-block { width: 100%; }
.btn-lg { min-height: 64px; font-size: 1.15rem; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: .95rem; }
input, select, textarea {
  font: inherit; width: 100%; min-height: var(--tap); padding: 10px 14px; border: 2px solid var(--g300); border-radius: var(--radius); background: var(--white); color: var(--g900);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); }
label { display: block; font-size: .9rem; color: var(--g700); margin: 0 0 4px; font-weight: 600; }
.field { margin-bottom: 14px; }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--g500); }
.small { font-size: .9rem; }
.right { text-align: right; }
.center { text-align: center; }
.mono { font-family: var(--mono); }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--g200); color: var(--g700); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.banner { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-weight: 600; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.err { background: var(--red-soft); color: var(--red); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }
.banner.info { background: var(--g200); color: var(--g700); }
hr { border: 0; border-top: 1px solid var(--g200); margin: 12px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--g200); vertical-align: top; }
th { font-size: .85rem; color: var(--g500); text-transform: uppercase; letter-spacing: .03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--g900); color: var(--white); padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--shadow); z-index: 100; max-width: 92vw; font-weight: 600; opacity: 0; transition: opacity .2s;
}
.toast.show { opacity: 1; }
.toast.err { background: var(--red); }
.toast.ok { background: var(--ok); }
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--white); width: 100%; max-width: 560px; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
@media (min-width: 700px) { .modal-bg { align-items: center; } .modal { border-radius: 18px; } }
.modal h2 { display: flex; justify-content: space-between; align-items: center; }
.sr { position: absolute; left: -9999px; }
.logo { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.logo b { color: var(--red); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
