@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10294a;
  --ink-2: #3c5068;
  --teal: #0e9aa7;
  --teal-ink: #0a6f79;
  --teal-light: #5fd0da;
  --paper: #f6f8fa;
  --white: #ffffff;
  --line: #d3dce5;
  --on-dark: #cfe0ee;
  --on-dark-2: #9fc0d8;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

img, svg { max-width: 100%; }
img { height: auto; }

a { color: var(--teal-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 3px; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
}
.skip:focus { left: 8px; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Kopfzeile */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header__logo { display: block; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
}
.site-nav__link {
  color: var(--ink-2);
  text-decoration: none;
}
.site-nav__link:hover {
  color: var(--teal-ink);
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.95rem; }
.btn--solid { background: var(--ink); color: var(--white); }
.btn--solid:hover { background: var(--teal-ink); border-color: var(--teal-ink); color: var(--white); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--teal-light); border-color: var(--teal-light); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--on-dark-2); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Startbereich */
.hero { padding: 56px 0 72px; }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: center;
}
.hero__title {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero__lead {
  max-width: 32em;
  margin: 0 0 28px;
  font-size: 1.2rem;
  color: var(--ink-2);
}

/* Leistungs-Netz */
.map { display: block; width: 100%; height: auto; overflow: visible; }
.map__ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linejoin: round; }
.map__link { stroke: var(--teal); stroke-width: 2; stroke-linecap: round; }
.map__hub { fill: var(--teal); }
.map__hub-label { font-size: 16px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 6px; stroke-linejoin: round; }
.map__item { cursor: pointer; }
.map__node {
  fill: var(--ink);
  stroke: var(--paper);
  stroke-width: 3;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.15s ease-out, fill 0.15s ease-out;
}
.map__label { font-size: 17px; font-weight: 600; fill: var(--ink); }
.map__item:hover .map__node,
.map__item:focus-visible .map__node { fill: var(--teal-ink); transform: scale(1.25); }
.map__item:hover .map__label,
.map__item:focus-visible .map__label { fill: var(--teal-ink); }
.map__item:focus-visible { outline: none; }
.map__item:focus-visible .map__node { stroke: var(--ink); stroke-width: 4; }

@media (prefers-reduced-motion: no-preference) {
  .map__link {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: map-draw 0.8s ease-out forwards;
    animation-delay: calc(var(--i) * 90ms + 150ms);
  }
  .map__item {
    opacity: 0;
    animation: map-appear 0.4s ease-out forwards;
    animation-delay: calc(var(--i) * 90ms + 700ms);
  }
}
@keyframes map-draw { to { stroke-dashoffset: 0; } }
@keyframes map-appear { to { opacity: 1; } }

/* Abschnitte */
.section { padding: 72px 0; }
.section--white { background: var(--white); }
.section__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.section__intro {
  max-width: 40em;
  margin: 0 0 40px;
  color: var(--ink-2);
}

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service {
  position: relative;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.service::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
}
.service:target::before { background: var(--teal); }
.service__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.service__text { max-width: 34em; margin: 0; color: var(--ink-2); }

/* Vorgehen */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--teal);
  counter-increment: step;
}
.step::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--paper);
}
.step__title { margin: 0 0 8px; font-size: 1.15rem; font-weight: 600; line-height: 1.3; }
.step__title::before { content: counter(step) ". "; color: var(--teal-ink); }
.step__text { margin: 0; color: var(--ink-2); }

/* Ueber mich */
.about {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 48px;
}
.about__text { max-width: 38em; margin: 0; color: var(--ink-2); }

/* Kontakt */
.contact { padding: 72px 0; background: var(--ink); color: var(--white); }
.contact :focus-visible { outline-color: var(--white); }
.contact__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.contact__text { max-width: 36em; margin: 0 0 28px; color: var(--on-dark); }
.contact__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px 32px;
  margin: 44px 0 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.contact__label { margin: 0 0 2px; font-size: 0.9rem; color: var(--on-dark-2); }
.contact__value { margin: 0; color: var(--white); }

/* Fusszeile */
.site-footer { padding: 24px 0 32px; font-size: 0.95rem; color: var(--ink-2); }
.site-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.site-footer__links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-footer__link { color: var(--ink-2); }
.site-footer__link:hover { color: var(--teal-ink); }

/* Rechtstexte */
.legal { padding: 56px 0 72px; }
.legal__body { max-width: 46rem; }
.legal__title { margin: 0 0 24px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; }
.legal__heading { margin: 36px 0 8px; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.legal__body p { margin: 0 0 12px; }
.legal__list { margin: 0 0 12px; padding-left: 1.25rem; }
.legal__list li { margin-bottom: 4px; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
  .map { display: none; }
  .hero { padding: 40px 0 48px; }
  .section, .contact { padding: 56px 0; }
  .services { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
