/* Check dein Essen - colors after regioconnect.org; system fonts only (no font requests to third parties). */
:root {
  --cde-primary: #249A53;
  --cde-primary-dark: #107C43;
  --cde-accent: #62B871;
  --cde-text: #24252D;
  --cde-muted: #5f6368;
  --cde-sand: #EEEADB;
  --cde-sand-light: #F7F5EE;
  --cde-card: #ffffff;
  --cde-border: #ddd8c6;
  --cde-radius: 16px;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--cde-text);
  background: var(--cde-sand-light);
}

.nicegui-content { padding: 0; gap: 0; }

/* ── frame ─────────────────────────────────────────────────────────────────── */
.cde-header {
  background: var(--cde-card);
  color: var(--cde-text);
  border-bottom: 1px solid var(--cde-border);
}
.cde-header-inner, .cde-section-inner, .cde-footer-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.cde-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.cde-logo img { width: 40px; height: 40px; }
.cde-logo-text { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.cde-logo-text span { color: var(--cde-primary); }
.cde-main { width: 100%; }
.cde-section { width: 100%; padding: 40px 0; }
.cde-section-alt { background: var(--cde-sand); }
.cde-footer {
  width: 100%;
  background: var(--cde-text);
  color: #d9d9d9;
  padding: 24px 0;
  font-size: 0.9rem;
}
.cde-footer a { color: #ffffff; }

/* ── typography ────────────────────────────────────────────────────────────── */
.cde-h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.cde-h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 750; line-height: 1.2; }
.cde-h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.cde-lead { font-size: 1.15rem; color: var(--cde-muted); max-width: 46rem; }
.cde-muted { color: var(--cde-muted); }
.cde-text { white-space: pre-line; line-height: 1.6; max-width: 48rem; }
.cde-clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.cde-link { color: var(--cde-primary-dark); font-weight: 600; text-decoration: none; }
.cde-link:hover { text-decoration: underline; }

/* ── hero ──────────────────────────────────────────────────────────────────── */
.cde-hero {
  width: 100%;
  background: linear-gradient(135deg, var(--cde-primary-dark), var(--cde-primary) 60%, var(--cde-accent));
  color: #ffffff;
  padding: 56px 0 64px;
}
.cde-hero .cde-lead { color: rgba(255, 255, 255, 0.9); }
.cde-search { width: 100%; max-width: 40rem; background: #ffffff; border-radius: 999px; padding: 4px 16px; }
.cde-search .q-field__control::before, .cde-search .q-field__control::after { border: none !important; }
.cde-kicker {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; opacity: 0.85;
}

/* ── cards and grids ───────────────────────────────────────────────────────── */
.cde-grid { display: grid; gap: 16px; width: 100%; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cde-card {
  background: var(--cde-card);
  border: 1px solid var(--cde-border);
  border-radius: var(--cde-radius);
  box-shadow: none;
  padding: 20px;
}
a.cde-card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.cde-card:hover { border-color: var(--cde-primary); transform: translateY(-2px); }
.cde-stat { font-size: 2rem; font-weight: 800; color: var(--cde-primary); line-height: 1; }
.cde-step-number {
  width: 36px; height: 36px; border-radius: 50%; background: var(--cde-primary); color: #ffffff;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.cde-chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.85rem;
  background: #e3f3e8; color: var(--cde-primary-dark); font-weight: 600;
}
.cde-chip-light { background: var(--cde-sand); color: var(--cde-text); font-weight: 500; }
.cde-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.18); color: #ffffff; font-weight: 600; font-size: 0.95rem;
}
.cde-supplier-image { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; }
.cde-gallery { display: grid; gap: 8px; width: 100%; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cde-gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; cursor: zoom-in; }
.cde-map { width: 100%; height: 420px; border-radius: var(--cde-radius); border: 1px solid var(--cde-border); }
.cde-map-small { height: 260px; }
.cde-qr { width: 220px; height: 220px; background: #ffffff; border-radius: 12px; }

/* ── backend ───────────────────────────────────────────────────────────────── */
.cde-admin-nav a { color: var(--cde-text); text-decoration: none; font-weight: 600; padding: 6px 10px; border-radius: 10px; }
.cde-admin-nav a:hover, .cde-admin-nav a.active { background: var(--cde-sand); }
.cde-row { border-bottom: 1px solid var(--cde-border); padding: 10px 0; }
.cde-row:last-child { border-bottom: none; }
.cde-alert { background: #fdecea; color: #8a1c13; border-radius: 10px; padding: 10px 14px; }
.cde-token {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cde-sand);
  border-radius: 8px; padding: 10px 12px; word-break: break-all;
}
.cde-login { min-height: 100vh; width: 100%; align-items: center; justify-content: center; padding: 16px; }
.cde-login-card { width: 100%; max-width: 420px; gap: 12px; padding: 28px; border-radius: var(--cde-radius); }
.cde-login-card img { width: 56px; height: 56px; }
.clickable-rows tbody tr { cursor: pointer; }

.q-btn { border-radius: 12px; font-weight: 600; text-transform: none; }

@media (max-width: 600px) {
  .cde-section { padding: 28px 0; }
  .cde-hero { padding: 36px 0 44px; }
  .cde-map { height: 320px; }
}
