:root {
  --poup-green: #198754;
  --poup-orange: #fd7e14;
  --poup-dark: #0f1923;
  --poup-card-radius: 1rem;
}

/* ===== Navbar ===== */
.poup-navbar {
  background: linear-gradient(135deg, #0f1923 0%, #1a2d40 100%);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}

.poup-navbar .nav-link:hover,
.poup-navbar .nav-link.active {
  background: rgba(255,255,255,.08);
  color: #fff !important;
}

.poup-navbar .nav-link.active {
  background: rgba(253,126,20,.15) !important;
  color: var(--poup-orange) !important;
}

/* ===== Login Hintergrund ===== */
.poup-login-bg {
  background: linear-gradient(135deg, #0f1923 0%, #1a2d40 50%, #0d2137 100%);
  min-height: 100vh;
}

/* ===== Cards ===== */
.card {
  border-radius: var(--poup-card-radius);
  transition: transform .15s ease, box-shadow .15s ease;
}

.poup-recipe-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}

/* ===== Makro-Badges ===== */
.poup-macro-badge {
  display: inline-block;
  padding: .2em .6em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ===== Makro-Grid (Rezeptseite) ===== */
.poup-macro-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
}

.poup-macro-item {
  text-align: center;
  padding: .75rem .5rem;
  border-radius: .75rem;
}

.poup-macro-value {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
}

.poup-macro-label {
  font-size: .7rem;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ===== Zubereitungs-Schritte ===== */
.poup-steps {
  padding-left: 1.25rem;
  list-style: none;
  counter-reset: step-counter;
}

.poup-steps li {
  counter-increment: step-counter;
  position: relative;
  padding: .6rem 0 .6rem 2.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.poup-steps li:last-child {
  border-bottom: none;
}

.poup-steps li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: .55rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--poup-orange);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== Training Icons ===== */
.poup-training-icon {
  min-width: 2.5rem;
  text-align: center;
}

/* ===== Plan Steps ===== */
.poup-plan-step {
  padding: .5rem .75rem;
  border-radius: .5rem;
  background: rgba(255,255,255,.6);
  border: 1px solid #e5e5e5;
}

/* ===== Footer ===== */
.poup-footer {
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  margin-top: 3rem;
}

/* ===== Body ===== */
body {
  background: #f5f6fa;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container-xl {
  flex: 1;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .poup-macro-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .display-3 {
    font-size: 2.5rem;
  }
}

/* ===== Utility ===== */
.fw-black { font-weight: 900; }

.rounded-4 {
  border-radius: 1rem !important;
}

.last-no-border:last-child {
  border-bottom: none !important;
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }

/* ===== Breadcrumb ===== */
.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
}

/* ===== Alert ===== */
.alert {
  border-radius: .875rem;
}

/* ===== Form Controls ===== */
.form-control:focus, .form-select:focus {
  border-color: var(--poup-orange);
  box-shadow: 0 0 0 .2rem rgba(253,126,20,.15);
}

/* ===== Buttons ===== */
.btn-warning {
  color: #fff;
  background-color: var(--poup-orange);
  border-color: var(--poup-orange);
}

.btn-warning:hover {
  color: #fff;
  background-color: #e8710a;
  border-color: #e8710a;
}

/* ===== Progress Bars ===== */
.progress {
  background-color: #e9ecef;
  border-radius: 999px;
}

/* ===== Badges ===== */
.badge {
  font-weight: 600;
}
