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

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

/* ===== 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; } }

section { padding: 68px 48px; max-width: 820px; }

/* ===== HERO SECTION PADDING ===== */
#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; }
}

/* ===== HERO ===== */
.hero-badge{
  background: rgba(77,255,176,0.1);
  border: 1px solid rgba(77,255,176,0.25);
  color: var(--green);
}

.hero-title{
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #4dffb0 0%, #4fa8ff 50%, #b87aff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeDown 0.6s ease 0.1s both;
}

/* ===== BUTTON EXTENSIONS ===== */
.btn-primary{
  background: var(--green);
  color: #0d0d14;
  box-shadow: 0 4px 20px rgba(77,255,176,0.2);
}

.btn-outline:hover{
  border-color: var(--blue);
  color: var(--blue);
}

/* ===== DIVIDER ===== */
.divider{ margin: 0 48px; }
@media (max-width: 600px) { .divider{ margin: 0 20px; } }

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

/* ===== GRIDS ===== */
.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 700px){
  .grid-2{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px){
  .grid-3{ grid-template-columns: 1fr; }
}

/* ===== CARDS ===== */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover{ transform: translateY(-3px); }

.card-icon{ font-size: 22px; margin-bottom: 8px; }
.card-title{ font-weight: 700; font-size: 14px; margin-bottom: 5px; }
.card-text{ color: var(--muted); font-size: 12px; line-height: 1.65; }

.card.c-green:hover  { border-color: rgba(77,255,176,0.35); }
.card.c-blue:hover   { border-color: rgba(79,168,255,0.35); }
.card.c-yellow:hover { border-color: rgba(245,200,66,0.35); }
.card.c-pink:hover   { border-color: rgba(255,107,157,0.35); }
.card.c-purple:hover { border-color: rgba(184,122,255,0.35); }
.card.c-orange:hover { border-color: rgba(255,159,74,0.35); }

/* ===== CODE BLOCK: fehlende Details ===== */
.code-block .line{ white-space: pre; } /* wichtig für exakte Darstellung wie vorher */
.code-block .line-num{
  color: #30304a;
  margin-right: 18px;
  user-select: none;
  font-size: 11px;
}

.code-header{ margin-top: 16px; }

/* ===== SYNTAX TABLE ===== */
.syntax-table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 13px;
}

.syntax-table th{
  padding: 10px 14px;
  text-align: left;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.syntax-table td{
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: top;
  line-height: 1.5;
}

.syntax-table tr:last-child td{ border-bottom: none; }
.syntax-table tr:hover td{ background: rgba(255,255,255,0.02); }

.syntax-table code{
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  background: rgba(77,255,176,0.08);
  padding: 2px 7px;
  border-radius: 5px;
}

.td-muted{ color: var(--muted); font-size: 12px; }

/* ===== OPERATOR BADGES ===== */
.op-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.op-badge{
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  transition: border-color 0.2s, transform 0.15s;
  min-width: 120px;
}

.op-badge:hover{
  border-color: var(--blue);
  transform: translateY(-2px);
}

.op-sym{
  color: var(--yellow);
  font-weight: 700;
  font-size: 15px;
  min-width: 22px;
  text-align: center;
}

.op-desc{ color: var(--muted); font-size: 11px; }

/* ===== ANNOTATION CARDS  ===== */
.ann-list{
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ann-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  transition: border-color 0.2s, transform 0.2s;
}

.ann-item:hover{ transform: translateX(4px); }

.ann-dot-wrap{ padding-top: 3px; }

.ann-dot{
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.ann-kw{
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 3px;
}

.ann-desc{
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ann-ex{
  display: inline-block;
  margin-top: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--green);
  background: rgba(77,255,176,0.08);
  padding: 2px 8px;
  border-radius: 5px;
}

/* ===== RULE CARD ===== */
.rule-card{
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(77,255,176,0.07), rgba(79,168,255,0.07));
  border: 1px solid rgba(77,255,176,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.rule-icon{ font-size: 26px; flex-shrink: 0; }
.rule-text{ font-size: 14px; line-height: 1.55; }
.rule-text strong{ color: var(--green); }

/* ===== CTA ===== */
.cta-box{
  background: linear-gradient(135deg, rgba(77,255,176,0.07), rgba(79,168,255,0.07));
  border: 1px solid rgba(77,255,176,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(--green), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}