/* Ruhig, reizarm, gut lesbar. Keine externen Schriften oder Inhalte. */
:root {
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #1e40af;
  --placeholder-bg: #fef3c7;
  --placeholder-text: #78350f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:focus-visible { outline: 3px solid #0284c7; outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: 0.5rem 1rem; z-index: 10; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.5rem;
}
header.site a.home {
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

main { flex: 1; padding: 2.5rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 0.75rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, li { max-width: 42rem; }

.lead { font-size: 1.1rem; color: var(--muted); margin: 0; }

.tiles {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
}

.tile {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
}
.tile h3 { margin: 0.25rem 0 0; font-size: 1.15rem; }
.tile p { margin: 0; color: var(--muted); }

/* Ganze Kachel anklickbar über den Link im Titel. */
.tile a.cover { color: var(--text); text-decoration: none; }
.tile a.cover::after { content: ""; position: absolute; inset: 0; }
.tile:has(a.cover):hover { border-color: #94a3b8; box-shadow: 0 2px 8px rgb(15 23 42 / 0.06); }
.tile:has(a.cover:focus-visible) { outline: 3px solid #0284c7; outline-offset: 2px; }
.tile a.cover:focus-visible { outline: none; }

.tile .go { margin-top: auto; padding-top: 0.5rem; font-weight: 600; color: var(--accent); }

/* Meiki: vier Faktorfarben A Rot, B Blau, C Grün, D Gelb als schmaler Streifen. */
.stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #dc2626 0 25%, #2563eb 25% 50%, #16a34a 50% 75%, #eab308 75% 100%);
}

.badge {
  align-self: flex-start;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #1e3a8a;
}

.tile.soon { background: transparent; border-style: dashed; justify-content: center; }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--card);
  font-size: 0.9rem;
  color: var(--muted);
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
footer.site nav { display: flex; gap: 1.25rem; }

/* Platzhalter, die vor der Veröffentlichung ersetzt werden müssen. */
.ph {
  background: var(--placeholder-bg);
  color: var(--placeholder-text);
  padding: 0 0.25rem;
  border-radius: 4px;
  font-weight: 600;
}

.note {
  border-left: 4px solid #eab308;
  background: #fefce8;
  padding: 0.75rem 1rem;
  border-radius: 0 0.5rem 0.5rem 0;
}

address { font-style: normal; }

/* Themen: ruhige Liste, bewusst ohne Kachel-Optik (nicht anklickbar). */
.topics {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem 2rem;
}
.topics li { border-left: 3px solid var(--line); padding-left: 1rem; }
.topics h3 { margin: 0 0 0.25rem; }
.topics p { margin: 0; color: var(--muted); }
main h2 { margin-top: 2.5rem; }
