/* Partnerzugang – schlicht, schnell, auch am Handy im Laden bedienbar. */
:root {
  --grund: #0b0e14; --flaeche: #141821; --rand: #252b38;
  --text: #f1f5f9; --leise: #94a3b8; --gruen: #22c55e; --rot: #ef4444;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.p-body { font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--grund); color: var(--text); -webkit-font-smoothing: antialiased; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.marke { font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.marke span { color: var(--gruen); font-weight: 400; }
.marke-klein { font-size: 16px; }

.p-wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 16px 16px 40px; flex: 1; }
.p-wrap-schmal { max-width: 420px; display: flex; align-items: center; }

.p-kopf { display: flex; align-items: center; gap: 14px; padding: 8px 0 20px; }
.p-kopf h1 { font-size: 20px; font-weight: 800; flex: 1; letter-spacing: -.02em; }
.p-link { font-size: 13px; color: var(--leise); }
.p-link:hover { color: var(--text); }

.p-karte { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 18px; padding: 20px; margin-bottom: 14px; }
.p-karte h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--leise); margin-bottom: 14px; }
.p-leise { color: var(--leise); font-size: 14px; }
.p-fehler { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }

/* Anmeldung */
.p-login { width: 100%; text-align: center; padding: 32px 24px; }
.p-login h1 { font-size: 22px; margin: 18px 0 6px; }
.p-login form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; text-align: left; }

/* Kennzahlen */
.p-kennzahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.p-kennzahl { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; margin: 0; }
.p-kennzahl b { font-size: 28px; font-weight: 900; letter-spacing: -.03em; }
.p-kennzahl small { font-size: 12px; color: var(--leise); }

/* Liste */
.p-liste { padding: 4px 0; }
.p-zeile { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--rand); }
.p-zeile:last-child { border-bottom: 0; }
.p-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: white; font-weight: 800; font-size: 18px; flex: none; }
.p-zeile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.p-zeile-text b { font-size: 15px; }
.p-zeile-text small { color: var(--leise); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; font-weight: 600; vertical-align: middle; margin-left: 6px; }
.p-tag-aus { background: rgba(239,68,68,.15); color: #fca5a5; }
.p-zahl { display: flex; flex-direction: column; align-items: flex-end; }
.p-zahl b { font-size: 18px; font-weight: 800; }
.p-zahl small { font-size: 11px; color: var(--leise); }
.p-aktionen { display: flex; gap: 6px; }
.p-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--grund); border: 1px solid var(--rand); display: grid; place-items: center; color: var(--leise); }
.p-icon:hover { color: var(--text); border-color: var(--leise); }
@media (max-width: 560px) { .p-zeile-text small { display: none; } }

/* Knöpfe */
.p-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 13px; background: var(--gruen); color: #052e16; font-weight: 700; font-size: 15px; }
.p-knopf:hover { filter: brightness(1.05); }
.p-knopf-breit { width: 100%; margin-top: 4px; }
.p-knopf-hell { background: var(--flaeche); color: var(--text); border: 1px solid var(--rand); }
.p-knopf-rot { background: transparent; color: var(--rot); border: 1px solid rgba(239,68,68,.4); margin-left: auto; }
.p-leiste { display: flex; flex-wrap: wrap; gap: 10px; position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(transparent, var(--grund) 30%); }

/* Formular */
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--leise); margin-bottom: 14px; }
label small { font-weight: 400; font-size: 12px; color: var(--leise); opacity: .8; }
input[type=text], input[type=url], input[type=tel], input[type=password], textarea {
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--grund); border: 1px solid var(--rand); border-radius: 12px; padding: 12px 14px; width: 100%;
}
input:focus, textarea:focus { outline: 2px solid rgba(34,197,94,.5); outline-offset: 0; border-color: var(--gruen); }
textarea { resize: vertical; line-height: 1.5; }
.p-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; }
.p-2sp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .p-2sp { grid-template-columns: 1fr; } }
.p-farbe { display: flex; align-items: center; gap: 12px; }
.p-farbe input[type=color] { width: 52px; height: 42px; border: 1px solid var(--rand); border-radius: 10px; background: var(--grund); padding: 4px; cursor: pointer; }
.p-farbe span { font-size: 12px; font-weight: 400; }
.p-schalter { flex-direction: row; align-items: center; gap: 12px; font-size: 15px; color: var(--text); font-weight: 500; margin-bottom: 10px; cursor: pointer; }
.p-schalter input { width: 22px; height: 22px; accent-color: var(--gruen); }

.p-fuss { text-align: center; padding: 18px; font-size: 12px; color: var(--leise); }
.p-fuss b { color: var(--text); }

/* Hinweis oben im Formular */
.p-tipp { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.25); font-size: 14px; line-height: 1.5; color: var(--leise); margin-bottom: 14px; }
.p-tipp svg { color: var(--gruen); margin-top: 2px; }
.p-tipp b { color: var(--text); }

/* ── Logo-Upload ── */
.p-logo-zeile { display: flex; gap: 16px; align-items: flex-start; }
.p-logo-vorschau { width: 84px; height: 84px; object-fit: contain; border-radius: 16px; background: linear-gradient(135deg, #2a2f3a, #0d1017); border: 1px solid var(--rand); padding: 6px; flex: none; }
.p-logo-felder { flex: 1; min-width: 0; }
.p-upload-zeile { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.p-knopf-klein { padding: 9px 14px; font-size: 13px; border-radius: 10px; cursor: pointer; }

/* ── Speisekarten-Editor ── */
#karte-editor { display: flex; flex-direction: column; gap: 14px; }
#karte-editor input[type=text] { margin: 0; }
.ke-kopfdaten { display: flex; gap: 14px; align-items: stretch; }
.ke-cover { width: 120px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.ke-cover img { width: 120px; height: 150px; object-fit: cover; border-radius: 12px; }
.ke-kopf-felder { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ke-kapitel { border: 1px solid var(--rand); border-radius: 16px; padding: 14px; background: var(--grund); display: flex; flex-direction: column; gap: 12px; }
.ke-kapitel-kopf { display: flex; align-items: center; gap: 10px; }
.ke-nr { width: 28px; height: 28px; border-radius: 9px; background: var(--gruen); color: #052e16; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.ke-titel { font-weight: 700; font-size: 16px !important; }
.ke-kapitel-felder { display: flex; gap: 14px; }
.ke-kapitel-rechts { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ke-bild { width: 150px; flex: none; display: flex; flex-direction: column; gap: 8px; }
.ke-bild img { width: 150px; height: 90px; object-fit: cover; border-radius: 10px; }
.ke-bild-leer { width: 100%; height: 90px; border: 1px dashed var(--rand); border-radius: 10px; display: grid; place-items: center; color: var(--leise); font-size: 12px; }
.ke-cover .ke-bild-leer { height: 150px; }
.ke-bild-knoepfe { display: flex; flex-direction: column; gap: 6px; }
.ke-bild-knoepfe .p-knopf { width: 100%; }
.ke-gerichte { display: flex; flex-direction: column; gap: 8px; }
.ke-gericht { background: var(--flaeche); border: 1px solid var(--rand); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.ke-gericht-kopf { display: flex; gap: 8px; align-items: center; }
.ke-name { flex: 1; min-width: 0; font-weight: 600; }
.ke-preis { width: 74px; flex: none; text-align: right; }
.ke-desc { font-size: 13px !important; padding: 9px 12px !important; }
.ke-mini { display: flex; gap: 4px; flex: none; }
.ke-mini button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--rand); color: var(--leise); font-size: 13px; display: grid; place-items: center; }
.ke-mini button:hover { color: var(--text); border-color: var(--leise); }
.ke-mini .ke-rot:hover { color: var(--rot); border-color: var(--rot); }
@media (max-width: 600px) {
  .ke-kapitel-felder, .ke-kopfdaten { flex-direction: column; }
  .ke-bild, .ke-cover { width: 100%; }
  .ke-bild img, .ke-cover img { width: 100%; height: 120px; }
  .ke-gericht-kopf { flex-wrap: wrap; }
  .ke-name { flex-basis: 100%; }
}

.p-hg-vorschau { object-fit: cover; padding: 0; }
