/* Gestaltung unserer EIGENEN Seiten (Einstieg, Herkunft) nach docs/KIM_DESIGN_SYSTEM.md.
   Die Lernwerk-Seiten unter klasse5/6/7 bringen ihre eigene Gestaltung mit und
   werden davon nicht beruehrt. */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

:root {
  --kim-primary: #1ca5bd;
  --kim-text: #0f172a;
  --kim-text-soft: #3a414f;
  --kim-text-muted: #6a7281;
  --kim-bg: #fcfbf7;
  --kim-card-bg: #ffffff;
  --kim-border: #e6e8ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--kim-bg);
  color: var(--kim-text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
}

a { color: var(--kim-primary); }

.staging-banner {
  display: none;
  background: #fef3c7;
  border-bottom: 1px solid #facc15;
  color: #92400e;
  text-align: center;
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
}
.is-staging .staging-banner { display: block; }

.site-header { border-bottom: 1px solid var(--kim-border); background: var(--kim-card-bg); }
.site-header-inner {
  max-width: 800px; margin: 0 auto; padding: 0.75rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.site-wordmark img { height: 40px; display: block; }
.site-back-link { font-size: 0.95rem; text-decoration: none; }

.layout-main { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem 2.5rem; }

h1, h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: 2.6rem; margin: 0.5rem 0 0.5rem; }
h2 { font-size: 1.7rem; margin: 0 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.35rem; }
.lead { color: var(--kim-text-soft); font-size: 1.1rem; margin: 0 0 1.5rem; }
.muted { color: var(--kim-text-muted); font-size: 0.9rem; }

.section.card {
  background: var(--kim-card-bg);
  border: 1px solid var(--kim-border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.klassen { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.klasse {
  display: block; text-decoration: none; color: inherit;
  background: var(--kim-card-bg); border: 1px solid var(--kim-border); border-radius: 12px;
  padding: 1.1rem 1.2rem; transition: border-color .15s, box-shadow .15s;
}
.klasse:hover, .klasse:focus-visible { border-color: var(--kim-primary); box-shadow: 0 2px 10px rgba(28,165,189,.15); }
.klasse .stufe { color: var(--kim-primary); font-weight: 600; font-size: 0.85rem; letter-spacing: .04em; text-transform: uppercase; }
.klasse h3 { font-size: 1.15rem; margin: 0.25rem 0 0.4rem; }
.klasse ul { margin: 0; padding-left: 1.1rem; color: var(--kim-text-soft); font-size: 0.92rem; }

dl.herkunft { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem; }
dl.herkunft dt { font-weight: 600; }
dl.herkunft dd { margin: 0; }
@media (max-width: 560px) { dl.herkunft { grid-template-columns: 1fr; } dl.herkunft dd { margin-bottom: 0.5rem; } }

.layout-footer {
  max-width: 800px; margin: 0 auto; padding: 1rem 1rem 2rem;
  border-top: 1px solid var(--kim-border);
  display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: 0.9rem;
}
.layout-footer a { color: var(--kim-text-muted); }
