/* Schnupper-Pass Heidelberg – mobile first, Systemschriften, keine externen Quellen */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #5b5b57;
  --line: #d9d6cd;
  --primary: #0f6e6e;
  --primary-dark: #0a5252;
  --on-primary: #ffffff;
  --accent: #f2b544;
  --sport: #dcefe7;
  --sport-text: #0d5a3a;
  --kultur: #ebe2f7;
  --kultur-text: #4b2a7a;
  --ok: #e5f0fb;
  --ok-text: #1a4d85;
  --example: #fde8c8;
  --example-text: #7a4a00;
  --radius: 12px;
  --gutter: 16px;
  --focus: 3px solid #d97706;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141514;
    --bg-alt: #1d1f1d;
    --surface: #242624;
    --text: #ececea;
    --muted: #b0b0ab;
    --line: #3a3d3a;
    --primary: #5fc3c0;
    --primary-dark: #8ad8d6;
    --on-primary: #0d1f1f;
    --sport: #173d2f;
    --sport-text: #b8e8cf;
    --kultur: #33244a;
    --kultur-text: #dccbf5;
    --ok: #1a2d44;
    --ok-text: #bcd8f7;
    --example: #4a3410;
    --example-text: #fbd99a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 0.15em; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px;
  background: var(--primary); color: var(--on-primary); padding: 0.5em 1em; border-radius: var(--radius); z-index: 10;
}
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.6rem; padding-bottom: 0.6rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 40px; height: 40px; flex: none; }
.lang-switch {
  flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.3em 0.9em;
  text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center;
}
.site-nav { display: flex; gap: 0.25rem 1.1rem; overflow-x: auto; padding-bottom: 0.6rem; scrollbar-width: none; }
.site-nav a { white-space: nowrap; text-decoration: none; font-weight: 600; padding: 0.35em 0; min-height: 44px; display: inline-flex; align-items: center; }

/* Hero */
.hero { padding: 2.2rem 0 2.4rem; background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-bottom: 0.4rem; }
.lead { font-size: 1.15rem; max-width: 40rem; }
.validity { font-size: 1.1rem; padding: 0.7em 1em; border-left: 5px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; display: inline-block; }

.button {
  display: inline-block; background: var(--primary); color: var(--on-primary); text-decoration: none;
  font-weight: 700; padding: 0.8em 1.4em; border-radius: 999px; min-height: 44px; border: 0; font: inherit; cursor: pointer;
}
.button:hover { background: var(--primary-dark); color: var(--on-primary); }
.link-button { background: none; border: 0; padding: 0.4em 0; color: var(--primary); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }

/* Sections */
.section { padding: 2.4rem 0; }
.section-alt { background: var(--bg-alt); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 1rem; }
.steps li { position: relative; padding-left: 3.2rem; counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-weight: 700;
}
.steps li p:last-child { margin-bottom: 0; }
.steps-plain li::before { background: var(--surface); color: var(--text); border: 2px solid var(--primary); }
@media (min-width: 720px) { .steps:not(.steps-plain) { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.notice { background: var(--example); color: var(--example-text); border-radius: var(--radius); padding: 0.8em 1em; }

/* Filter */
.filters { display: grid; gap: 0.75rem; margin: 1rem 0 1.25rem; }
.segmented { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.segmented legend { font-weight: 600; width: 100%; padding: 0; margin-bottom: 0.1rem; }
.segmented label, .chip {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px; padding: 0.3em 0.9em;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; user-select: none;
}
.segmented label:has(input:checked), .chip:has(input:checked) { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.segmented label:has(input:focus-visible), .chip:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.segmented input, .chip input { margin: 0; accent-color: var(--primary); }
.segmented label:has(input:checked) input, .chip:has(input:checked) input { accent-color: var(--on-primary); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; color: var(--muted); }
.no-js .filters, .no-js .filter-status { display: none; }

/* Karten */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.card[hidden] { display: none; }
.card h3 { margin-bottom: 0.4rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.badge { font-size: 0.8rem; font-weight: 600; padding: 0.15em 0.6em; border-radius: 999px; background: var(--ok); color: var(--ok-text); }
.badge-sport { background: var(--sport); color: var(--sport-text); }
.badge-kultur { background: var(--kultur); color: var(--kultur-text); }
.badge-example { background: var(--example); color: var(--example-text); }
.sparte { font-weight: 600; margin-bottom: 0.6rem; }
.card dl { margin: 0; display: grid; gap: 0.15rem 0.6rem; }
.card dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-top: 0.5rem; }
.card dd { margin: 0; overflow-wrap: anywhere; }
.empty { padding: 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 0.9em 0; list-style-position: outside; }
.faq p { margin: 0 0 1em; padding-left: 1.2em; }

/* Text-Seiten */
.prose { max-width: 44rem; }
.prose section { margin-bottom: 2rem; }
.todo { background: var(--example); color: var(--example-text); padding: 0.6em 0.9em; border-radius: var(--radius); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 1.6rem 0 2.2rem; font-size: 0.95rem; }
.site-footer p { margin-bottom: 0.4em; }
