/* stephen-mittag.de — handgeschrieben, kein Framework, kein JavaScript */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans-var.woff2") format("woff2-variations");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #7ebec5;
  --accent-dark: #4a9aa3;
  --ink: #37383b;
  --ink-soft: #5e6064;
  --rule: #e3e5e7;
  --bg: #fff;
  --bg-soft: #f6f8f8;
  --wrap: 64rem;
  --text: 40rem;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(1rem, 0.97rem + 0.18vw, 1.0625rem)/1.68 "Open Sans", system-ui, sans-serif;
  text-underline-offset: 0.18em;
}

h1, h2, h3 { line-height: 1.18; font-weight: 700; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); margin-top: 2.4em; }
h3 { font-size: 1.0625rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
p, ul, ol { margin: 0 0 1.1em; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }
.prose { max-width: var(--text); }

/* ---------------------------------------------------------------- Kopfzeile */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
}
.site-head > .wrap {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  align-items: center; justify-content: space-between;
}
.site-head img { width: 190px; }

.nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.9375rem; padding: 0.2em 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------- Hero */

.hero {
  background: #2c2d30 url("../img/banner-1200.webp") center/cover no-repeat;
  color: #fff;
  padding: clamp(3.5rem, 2rem + 9vw, 7rem) 0;
}
.hero h1 { color: #fff; margin-bottom: 0.35em; text-wrap: balance; }
.hero p { color: rgb(255 255 255 / 0.82); max-width: 34rem; margin: 0; }

.roles {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem;
}
.roles li {
  border: 1px solid rgb(255 255 255 / 0.35);
  border-radius: 2em;
  padding: 0.35em 1em;
  font-size: 0.875rem; letter-spacing: 0.02em;
}

@media (min-width: 1250px) {
  .hero { background-image: url("../img/banner-1920.webp"); }
}

/* ------------------------------------------------------------------ Bereiche */

main { padding-bottom: 4rem; }
section { padding-top: 0.5rem; }

.intro { padding-top: 3rem; }
.intro > h2:first-child { margin-top: 0; }

.split {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  align-items: start;
  padding-top: 3rem;
}
@media (min-width: 52rem) {
  .split { grid-template-columns: 1fr 15.5rem; gap: 3.5rem; }
}
.split img { border-radius: 4px; }

/* Listen mit Akzentmarker */
.marked { list-style: none; padding: 0; }
.marked li {
  position: relative; padding-left: 1.4em; margin-bottom: 0.45em;
}
.marked li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 0.5em; height: 0.5em; border-radius: 50%;
  background: var(--accent);
}

.facts { list-style: none; padding: 0; }
.facts li {
  border-top: 1px solid var(--rule);
  padding: 0.85em 0;
}
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.facts b { font-weight: 700; }

.refs {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0.35em 2rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.refs li { color: var(--ink-soft); }

/* ------------------------------------------------------------------- Kontakt */

.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 3rem 0;
}
.contact h2 { margin-top: 0; }
.contact ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.5rem;
}
.contact a {
  display: inline-flex; align-items: center; gap: 0.55em;
  text-decoration: none; color: var(--ink); font-weight: 600;
}
.contact a:hover { color: var(--accent-dark); }
.contact svg { width: 1.15em; height: 1.15em; fill: var(--accent-dark); flex: none; }

/* ------------------------------------------------------------------- Fusszeile */

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0;
  font-size: 0.875rem; color: var(--ink-soft);
}
.site-foot > .wrap {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}
.site-foot a { color: var(--ink-soft); }

/* --------------------------------------------------------------- Rechtstexte */

.legal { padding-top: 3rem; }
.legal h2 { margin-top: 2em; font-size: 1.25rem; }
.legal h2:first-of-type { margin-top: 1em; }
.legal dl { margin: 0 0 1.1em; }
.legal dt { font-weight: 600; margin-top: 0.8em; }
.legal dd { margin: 0.15em 0 0; }
.legal .note {
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------------ Sonstiges */

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff; padding: 0.6em 1em; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
