/* WebItTNG - Projektseite.
   Eine Datei, keine externen Schriften, kein CDN: die Seite muss auch aus
   einem Ordner heraus funktionieren, offline und ohne Nachladen. */

:root {
  --ink: #18242f;
  --muted: #5d6f80;
  --line: #dbe3ea;
  --band: #f4f7fa;
  --form: #2f6fb5;   /* das VCL-Formular - wie im Palettensymbol */
  --web: #2e8b57;    /* der Browser - ebenso */
  --accent: #c2381f;
  --code: #f6f8fa;
  --maxw: 62rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.65 "Segoe UI", Roboto, -apple-system, "Helvetica Neue", Arial,
        sans-serif;
  -webkit-text-size-adjust: 100%;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Kopf ---------- */

header.top {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  z-index: 10;
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
}

header.top img { width: 28px; height: 28px; display: block; }

header.top .name { font-weight: 700; letter-spacing: -0.01em; }

header.top nav { margin-left: auto; display: flex; gap: 1rem; align-items: center; }

header.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

header.top nav a:hover { color: var(--ink); }

.lang {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  color: var(--ink) !important;
}

.lang:hover { border-color: var(--form); }

/* ---------- Hero ---------- */

.hero { padding: 3.5rem 0 2.5rem; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero .claim {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 44rem;
}

.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }

.badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: #fff;
}

.badge strong { color: var(--ink); font-weight: 600; }

.hero figure { margin: 0; }

.hero img { width: 100%; height: auto; display: block; }

/* ---------- Abschnitte ---------- */

section { padding: 3rem 0; border-top: 1px solid var(--line); }

/* Sonst verschwindet die Ueberschrift beim Anspringen eines Ankers
   unter der stehenden Kopfleiste. */
section[id] { scroll-margin-top: 4.5rem; }

section.band { background: var(--band); border-top: none; }

h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.015em;
  margin: 0 0 0.6rem;
}

h3 { font-size: 1.05rem; margin: 2rem 0 0.4rem; }

.lead { color: var(--muted); max-width: 46rem; margin-top: 0; }

p { max-width: 46rem; }

figure { margin: 2rem 0 0; }

figure img { width: 100%; height: auto; display: block; }

figcaption {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  text-align: center;
}

/* ---------- Code ---------- */

pre {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font: 13.5px/1.55 "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
  max-width: 46rem;
}

code { font-family: "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace; }

p code, li code, td code {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.05em 0.35em;
  font-size: 0.9em;
}

.kw { color: #0b5fa5; }
.str { color: #a11; }
.cmt { color: #6a8; font-style: italic; }

/* ---------- Karten ---------- */

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1.8rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.2rem;
  background: #fff;
}

.card h3 { margin: 0 0 0.35rem; font-size: 1rem; }

.card p { margin: 0; font-size: 0.93rem; color: var(--muted); max-width: none; }

/* ---------- Zahlen ---------- */

.figures {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  margin-top: 1.8rem;
}

.fig {
  border-left: 3px solid var(--form);
  padding: 0.2rem 0 0.2rem 0.9rem;
}

.fig .n {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

.fig .t { color: var(--muted); font-size: 0.88rem; }

/* ---------- Tabelle ---------- */

table {
  border-collapse: collapse;
  width: 100%;
  max-width: 46rem;
  margin-top: 1.5rem;
  font-size: 0.93rem;
}

th, td {
  text-align: left;
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th { font-weight: 600; color: var(--muted); font-size: 0.85rem; }

/* ---------- Hinweiskasten ---------- */

.note {
  border-left: 3px solid var(--accent);
  background: #fdf6f4;
  padding: 0.9rem 1.1rem;
  border-radius: 0 6px 6px 0;
  max-width: 46rem;
  margin-top: 1.5rem;
}

.note p { margin: 0; }

.note p + p { margin-top: 0.6rem; }

/* ---------- Fuss ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a { color: var(--muted); }

ul.plain { padding-left: 1.1rem; max-width: 46rem; }

ul.plain li { margin-bottom: 0.35rem; }

@media print {
  header.top { position: static; }
  section { break-inside: avoid; }
}
