/*
 * Mitfahren VHSZ — shared styles
 * WCAG 2.1 AA verified colors. Mobile-first, modern Swiss-inspired (not 1:1 SBB).
 */

:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --tint: #f4ebea;
  --ink: #161616;
  --ink-soft: #4a4a4a;
  --muted: #5d5d5d;
  --line: #2a2a2a;
  --hairline: #d8d4cb;
  --accent: #b3322a;
  --accent-deep: #8c241d;
  --focus: #b3322a;
  --error: #8c241d;
  --ok: #15803d;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--ink); color: var(--bg); }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}
.site-header-inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.005em;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.site-header .right {
  font-size: 14px;
  color: var(--muted);
}
.site-header .right a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 22px 80px;
}

main.wide { max-width: 980px; }

h1, h2, h3 { letter-spacing: -0.01em; }

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover { color: var(--accent-deep); }

button {
  font-family: inherit;
  cursor: pointer;
  font-size: 18px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (forced-colors: active) {
  button, input, select { border: 2px solid CanvasText; }
  :focus-visible { outline: 3px solid Highlight; }
}
