/* Herder-Berufsbörse – gemeinsames Stylesheet
   Keine externen Fonts/Skripte (datenschutzfreundlich, keine Drittanbieter). */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2933;
  --muted: #52606d;
  --border: #e4e2dc;
  --accent: #0b6e4f;
  --accent-strong: #08543c;
  --accent-soft: #e3f2ec;
  --highlight: #f2b134;
  --todo-bg: #fff3c4;
  --todo-text: #6b4e00;
  --radius: 12px;
  --max: 68rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181c;
    --surface: #1c2227;
    --text: #e6e8ea;
    --muted: #a3acb5;
    --border: #2e363d;
    --accent: #4cc39a;
    --accent-strong: #7ad8b6;
    --accent-soft: #1b3229;
    --todo-bg: #4a3b10;
    --todo-text: #ffe29a;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 0.2em; }
h3 { font-size: 1.15rem; }
p, ul, ol, dl { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: #fff; padding: 0.5rem 1rem; z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header / Navigation */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 700; font-size: 1.1rem; color: var(--text); text-decoration: none;
}
.brand svg { width: 2rem; height: 2rem; flex: none; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; padding: 0.25rem 0; }
.site-nav a:hover { color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* Hero */
.hero { padding: 3.5rem 0 1.25rem; background: linear-gradient(180deg, var(--accent-soft), transparent); }
.hero .eyebrow {
  display: inline-block; font-weight: 600; color: var(--accent-strong);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 0.2rem 0.85rem; margin-bottom: 1rem; font-size: 0.95rem;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.hero .lead:last-child { margin-bottom: 0; }
.facts {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
}
.fact {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.fact dt { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fact dd { margin: 0.2rem 0 0; font-weight: 600; font-size: 1.1rem; }

.button {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: 0.7rem 1.3rem; border-radius: 999px; text-decoration: none; margin-top: 0.5rem;
}
.button:hover { background: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button, .button:hover { color: #0b1a14; } }

/* Sektionen */
main { display: block; }
section { padding: 2.75rem 0; }
section + section { border-top: 1px solid var(--border); }
.section-intro { color: var(--muted); max-width: 44rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 0.6rem;
}
.card h3 { color: var(--accent-strong); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.2rem 0.4rem 1.2rem; position: relative;
}
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff;
  font-weight: 700; margin-bottom: 0.6rem;
}
@media (prefers-color-scheme: dark) { .steps li::before { color: #0b1a14; } }

.two-col { display: grid; gap: 2rem; }
@media (min-width: 820px) { .two-col { grid-template-columns: 1fr 1fr; } }

.callout {
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin: 1.5rem 0;
}
.callout > :last-child { margin-bottom: 0; }

/* Rechtstexte */
.legal { max-width: 46rem; padding: 2.75rem 0; }
.legal h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal address { font-style: normal; }
.legal .updated { color: var(--muted); font-size: 0.95rem; }

/* Platzhalter – vor Veröffentlichung ersetzen! */
.todo {
  background: var(--todo-bg); color: var(--todo-text);
  border-radius: 4px; padding: 0 0.3em; font-weight: 600;
}

/* Erste Sektion unter dem Hero mit weniger Abstand */
.hero + section { padding-top: 1.5rem; }
section.tight-top { padding-top: 0.5rem; }
.tight-top .wrap > .callout:first-child { margin-top: 0; }

/* Berufsprofile (berufe.html) */
.profiles { display: grid; gap: 1.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .profiles { grid-template-columns: 1fr 1fr; } }
.profile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.5rem 0.75rem; scroll-margin-top: 1rem;
}
.profile header { border-bottom: 1px solid var(--border); margin-bottom: 1rem; padding-bottom: 0.75rem; }
.profile header h2 { font-size: 1.4rem; margin: 0.15rem 0 0.25rem; color: var(--accent-strong); }
.profile-field {
  display: inline-block; margin: 0; font-size: 0.8rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.profile-who { margin: 0; color: var(--muted); }
.profile h3 { font-size: 1rem; margin: 1.1rem 0 0.4rem; }
.path { list-style: none; padding: 0 0 0 1.25rem; margin: 0 0 1rem; border-left: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.path li { position: relative; padding: 0.15rem 0 0.55rem; }
.path li::before {
  content: ""; position: absolute; left: calc(-1.25rem - 6px); top: 0.6em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
}
.path li:last-child { font-weight: 600; }

/* Footer */
.site-footer {
  margin-top: 2rem; border-top: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-size: 0.95rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  padding-top: 1.5rem; padding-bottom: 1.5rem;
}
.site-footer ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer p { margin: 0; }

@media print {
  .site-header, .site-footer, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
