/* ============ BENTOMAX Partner-Portal (oeffentliche Seite) ============ */
/* Farbwelt und Stil orientieren sich an www.bentomax.de:
   Navy #122941, Blaugrau #52647c, CI-Orange #c87a00 / #f28a00, Pill-Buttons. */

:root {
  --navy: #122941;
  --navy-light: #1e3d5f;
  --slate: #52647c;
  --orange: #c87a00;
  --orange-bright: #f28a00;
  --orange-soft: #fdf1df;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #23303f;
  --muted: #52647c;
  --line: #d9dfe7;
  --success: #1d7a3f;
  --success-bg: #e2f3e8;
  --info: #0b62b8;
  --info-bg: #e3eefb;
  --danger: #b3261e;
  --danger-bg: #fbe4e2;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(18, 41, 65, 0.08), 0 4px 14px rgba(18, 41, 65, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Kopfleiste (weiss, mit Logo wie auf bentomax.de) ---- */

.portal-topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.portal-topbar-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }
.topbar-sub {
  color: var(--slate);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---- Hero-Band (Navy mit orangen Akzenten wie die Startseite) ---- */

.portal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}
.portal-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 26px 20px 28px;
  text-align: center;
}
.hero-kicker {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c8d4e2;
}
.hero-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
}
.hero-arrow { color: var(--orange-bright); font-weight: 800; }

/* ---- Layout ---- */

.portal-main {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 26px 20px 40px;
  flex: 1;
}

/* ---- Schrittanzeige ---- */

.steps {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 14px 6px 8px;
}
.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--line);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}
.step.active { color: var(--navy); border-color: var(--navy); }
.step.active .step-num { background: var(--navy); color: #fff; }
.step.done { color: var(--orange); border-color: var(--orange); }
.step.done .step-num { background: var(--orange); color: #fff; }

/* ---- Karten ---- */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 32px;
  margin-bottom: 20px;
}
.card h2 { font-size: 21px; margin: 0 0 10px; color: var(--navy); }
.lead { color: var(--muted); margin: 0 0 20px; }
.hint { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }

.card-done { text-align: center; padding: 48px 32px; }
.done-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Status-Ansicht ---- */

.status-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.status-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.status-item:last-child { border-bottom: none; }
.status-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  margin-top: 1px;
}
.status-item.done .status-icon { background: var(--success-bg); color: var(--success); }
.status-item.open .status-icon { background: var(--orange-soft); color: var(--orange); }
.status-item strong { display: block; color: var(--navy); font-size: 15px; }
.status-item .status-detail { color: var(--muted); font-size: 13.5px; }

/* ---- Formulare ---- */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.field.span-2 { grid-column: span 2; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 5px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--orange-bright);
  outline-offset: -1px;
  border-color: var(--orange-bright);
}
.field textarea { resize: vertical; min-height: 84px; }

.field-zip-city { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

/* Honeypot: fuer Menschen komplett aus dem Blickfeld */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.question-field { margin-bottom: 16px; }

/* ---- Buttons (Pill-Form wie auf bentomax.de) ---- */

.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn-primary {
  appearance: none;
  border: none;
  border-radius: 25px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 26px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--orange-bright); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-ghost {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: transparent;
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 26px;
  cursor: pointer;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ---- Hinweise ---- */

.notice {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.notice-success { background: var(--success-bg); color: var(--success); }
.notice-info { background: var(--info-bg); color: var(--info); }
.notice-error { background: var(--danger-bg); color: var(--danger); }

/* ---- Fusszeile (Navy-Band mit Links zu bentomax.de) ---- */

.portal-footer {
  background: var(--navy);
  color: #c8d4e2;
  font-size: 13px;
  margin-top: auto;
}
.portal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 22px 20px;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.footer-links a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.footer-links a:hover { color: var(--orange-bright); }
.footer-meta { margin: 0; }
.footer-meta a { color: #c8d4e2; }
.footer-meta a:hover { color: var(--orange-bright); }

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .field.span-2 { grid-column: span 1; }
  .card { padding: 22px 18px; }
  .hero-title { font-size: 21px; }
  .topbar-sub { display: none; }
}
