/*
Bereits mit der global.css integriert.
*/

:root {
  --accent: var(--yellow);
}

/* ===== LAYOUT ===== */
.layout { display: flex; padding-top: 56px; min-height: 100vh; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; position: relative; z-index: 1; }
@media (max-width: 900px) { .main { margin-left: 0; } }

/* ===== SECTIONS ===== */
section { padding: 68px 48px; max-width: 820px; }
#hero { padding: 76px 48px 60px; max-width: 100%; text-align: center; }
#cta  { padding: 60px 48px 76px; max-width: 100%; text-align: center; }
@media (max-width: 600px) {
  section { padding: 50px 20px; }
  #hero { padding: 56px 20px 44px; }
  #cta  { padding: 44px 20px 60px; }
}
.section-desc { max-width: 580px; margin-bottom: 24px; }
.divider { margin: 0 48px; }
@media (max-width: 600px) { .divider { margin: 0 20px; } }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  background: linear-gradient(90deg, var(--yellow), var(--pink), var(--purple));
}

/* ===== HERO ===== */
.hero-badge {
  background: rgba(245,200,66,0.1);
  border: 1px solid rgba(245,200,66,0.25);
  color: var(--yellow);
}
.hero-title {
  font-size: clamp(2.8rem, 8vw, 5rem); font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, #f5c842 0%, #ff6b9d 50%, #4fa8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeDown 0.6s ease 0.1s both;
}

/* ===== BUTTONS ===== */
.btn-primary { background: var(--yellow); color: #0d0d14; box-shadow: 0 4px 20px rgba(245,200,66,0.2); }
.btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }

/* ===== CODE INLINE ===== */
.code-inline { color: var(--yellow); background: rgba(245,200,66,0.08); }

/* ===== ANATOMY CARD ===== */
.anatomy-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 28px;
  animation: fadeUp 0.6s ease 0.1s both;
}
.section-title {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--muted); font-family: 'JetBrains Mono', monospace; margin-bottom: 20px;
}
.code-anatomy {
  background: #080810; border-radius: 12px; padding: 24px;
  font-family: 'JetBrains Mono', monospace; font-size: 15px; line-height: 2;
}
.indent { display: inline-block; width: 28px; }
.annotations {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px;
}
.ann {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); font-size: 13px;
}
.ann-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.ann-label { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 11px; margin-bottom: 2px; }
.ann-desc  { color: var(--text); font-size: 12px; }

/* ===== FLOW CARD ===== */
.flow-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 28px;
  animation: fadeUp 0.6s ease 0.5s both;
}
.flow {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap; margin-top: 20px;
}
.flow-box {
  padding: 14px 20px; border-radius: 10px; text-align: center;
  font-size: 13px; font-family: 'JetBrains Mono', monospace; min-width: 110px;
}
.flow-arrow { font-size: 20px; color: var(--muted); padding: 0 6px; line-height: 1; }
.flow-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.flow-value { font-weight: 700; font-size: 15px; }

/* ===== LEVEL CARDS ===== */
.levels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
@media (max-width: 600px) { .levels-grid { grid-template-columns: 1fr; } }
.level-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s; animation: fadeUp 0.6s ease both;
}
.level-card:nth-child(1) { animation-delay: 0.15s; }
.level-card:nth-child(2) { animation-delay: 0.25s; }
.level-card:nth-child(3) { animation-delay: 0.35s; }
.level-card:nth-child(4) { animation-delay: 0.45s; }
.level-card:hover { transform: translateY(-3px); }
.level-card[data-color="blue"]:hover   { border-color: var(--blue); }
.level-card[data-color="green"]:hover  { border-color: var(--green); }
.level-card[data-color="pink"]:hover   { border-color: var(--pink); }
.level-card[data-color="purple"]:hover { border-color: var(--purple); }
.level-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.level-num {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; font-family: 'JetBrains Mono', monospace;
}
.level-title { font-weight: 700; font-size: 14px; }
.level-code {
  background: #080810; border-radius: 8px; padding: 14px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; line-height: 1.7;
}
.level-output {
  margin-top: 10px; display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted);
}
.output-arrow { color: var(--green); }

/* ===== RULE CARD ===== */
.rule-card {
  background: linear-gradient(135deg, rgba(245,200,66,0.08), rgba(255,107,157,0.08));
  border: 1px solid rgba(245,200,66,0.25);
  border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp 0.6s ease 0.6s both;
}
.rule-icon { font-size: 28px; flex-shrink: 0; }
.rule-text { font-size: 15px; line-height: 1.5; }
.rule-text strong { color: var(--yellow); }

/* ===== CTA ===== */
.cta-box {
  background: linear-gradient(135deg, rgba(245,200,66,0.07), rgba(255,107,157,0.07));
  border: 1px solid rgba(245,200,66,0.18);
  border-radius: 20px; padding: 50px 36px; max-width: 560px; margin: 0 auto;
}
.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FOOTER ===== */
footer span { color: var(--yellow); }