/* Stile der Lernbereich-Seiten (Hauptbereich neben der Sidebar). Ergänzt style.css (Gerüst aus IM BQ).
   Hauptbereich neben der Sidebar (220 px, eingeklappt siehe style.css) — Muster wie .profil-main in IM BQ. */
.geruest-main {
  flex: 1;
  margin-left: 220px;
  padding: 32px 40px 96px;
  min-height: 100vh;
  max-width: calc(100% - 220px);
  min-width: 0;
  box-sizing: border-box;
}
.geruest-main code { overflow-wrap: anywhere; }
html.sb-collapsed .geruest-main { margin-left: 60px; max-width: calc(100% - 60px); }
@media (max-width: 900px) {
  .geruest-main { margin-left: 60px; padding: 24px 20px 96px; max-width: calc(100% - 60px); }
}

.geruest-platzhalter {
  max-width: 760px;
  box-sizing: border-box;
  border: 1px dashed var(--border-default, #2a2e3f);
  border-radius: 14px;
  padding: 28px;
  background: var(--bg-card, #161a26);
}
.geruest-platzhalter h1 { font-size: 24px; margin: 8px 0 12px; color: var(--text-primary, #f1f2f6); }
.geruest-platzhalter p { color: var(--text-secondary, #b7bacb); line-height: 1.6; }
.geruest-klein { font-size: 13px; color: var(--text-muted, #8b8fa6) !important; }
.geruest-marke {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1a1a1a;
  background: #facc15;
  border-radius: 6px;
  padding: 3px 8px;
}

.geruest-kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
  max-width: 980px;
}
.geruest-kachel {
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-default, #2a2e3f);
  border-radius: 12px;
  padding: 18px;
  background: var(--bg-card, #161a26);
  color: var(--text-primary, #f1f2f6);
}
.geruest-kachel:hover { border-color: #e8742a; }
.geruest-kachel strong { display: block; margin-bottom: 6px; }
.geruest-kachel span { font-size: 13px; color: var(--text-muted, #8b8fa6); }

@media (max-width: 768px) {
  .geruest-main, html.sb-collapsed .geruest-main {
    margin-left: 0;
    max-width: 100%;
    padding: 20px 16px 96px;
  }
}
