/* statistik.vlv-verdi.de – Startseite */
:root {
  --red: #e2001a;          /* Akzent; bei Bedarf an das ver.di-Rot eurer Website anpassen */
  --red-dark: #b80015;
  --bg: #f7f6f3;
  --panel: #ffffff;
  --fg: #1c1b19;
  --muted: #67645e;
  --line: #e3e0d9;
  --good: #1f7a4d;
  --bad: #b3261e;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151413; --panel: #1f1e1c; --fg: #edebe7; --muted: #a39f98; --line: #33312e;
    --good: #5cc28e; --bad: #f07a72; --red: #ff3346; --red-dark: #ff5c6c;
  }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--panel); padding: 8px 12px; z-index: 10; }

/* Kopfzeile */
.top { background: var(--panel); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand-mark { width: 14px; height: 28px; background: var(--red); border-radius: 3px; }
.home { color: var(--muted); text-decoration: none; font-size: 14px; }
.home:hover { color: var(--fg); }

/* Kopfbereich */
.hero { background: var(--red); color: #fff; padding: 56px 0 96px; }
.eyebrow { margin: 0 0 6px; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.hero h1 { margin: 0 0 12px; font-size: clamp(40px, 7vw, 68px); line-height: 1; letter-spacing: -.02em; }
.intro { margin: 0; max-width: 60ch; font-size: 18px; opacity: .95; }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: -56px; padding-bottom: 56px; }
.tile { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: 0 10px 30px rgba(0,0,0,.06); transition: transform .15s ease, box-shadow .15s ease; }
.tile:not(.is-soon):hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,0,0,.10); }
.tile:not(.is-soon)::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); border-radius: var(--radius) 0 0 var(--radius); }
.tile-kicker { margin: 0 0 4px; font-size: 13px; color: var(--muted); }
.tile h2 { margin: 0 0 10px; font-size: 26px; line-height: 1.2; }
.tile-link { text-decoration: none; }
.tile-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); } /* ganze Kachel klickbar */
.tile-link:focus-visible { outline: none; }
.tile:has(.tile-link:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }
.tile-text { margin: 0 0 20px; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.stats div { margin: 0; }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 0; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stats dd.note { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.good { color: var(--good); } .bad { color: var(--bad); }

.tile-cta { margin: auto 0 0; }
.btn { display: inline-block; background: var(--red); color: #fff; font-weight: 600; padding: 10px 16px; border-radius: 999px; font-size: 15px; }
.tile:not(.is-soon):hover .btn { background: var(--red-dark); }
.badge { display: inline-block; border: 1px dashed var(--line); color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.is-soon > * { opacity: .7; }
.is-soon h2 { color: var(--muted); }

/* Fuß */
.foot { border-top: 1px solid var(--line); background: var(--panel); font-size: 14px; color: var(--muted); }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 18px; padding-bottom: 18px; }
.foot nav { display: flex; gap: 16px; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--fg); }

@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
@media (max-width: 560px) { .hero { padding: 40px 0 88px; } .tile { padding: 22px; } }
