/* ---------- Schriften (lokal eingebunden, keine externen Anfragen) ---------- */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/roboto-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-condensed-latin.woff2") format("woff2");
}

/* ---------- Grundwerte ---------- */
:root {
  --navy: #000678;
  --navy-hover: #262b8c;
  --navy-soft: #ecedf7;
  --ink: #16181f;
  --muted-on-dark: #cfd1ec;
  --white: #fff;
  --rule: 2px solid var(--navy);

  --container: 1260px;
  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --section-space: clamp(4rem, 8vw, 6.5rem);
  --radius: 12px;
  --measure: 50rem;

  --text-body: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem);
  --text-h2: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
}

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

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

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

p {
  margin: 0;
}

h1,
h2 {
  margin: 0;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

.service--dark ::selection,
.footer ::selection {
  background: var(--white);
  color: var(--navy);
}

a {
  color: inherit;
}

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

.service--dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--white);
}

[id] {
  scroll-margin-top: 1.5rem;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.75rem;
  padding: 0.9rem 3rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(22 24 31 / 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--navy-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgb(0 6 120 / 0.5);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgb(22 24 31 / 0.08);
}

.button--light {
  background: var(--white);
  color: var(--navy);
}

.button--light:hover {
  background: var(--navy-soft);
  box-shadow: 0 10px 22px -10px rgb(0 0 0 / 0.45);
}

.button--large {
  min-width: min(100%, 22rem);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(560px, 62vw, 900px);
  background: #e6e6e8;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
}

.logo {
  position: absolute;
  top: clamp(1.5rem, 4vw, 3.6rem);
  right: clamp(1.25rem, 4.5vw, 4.25rem);
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
  font-family: "Roboto Condensed", "Roboto", sans-serif;
  font-weight: 700;
  line-height: 1;
}

.logo__name {
  padding-bottom: 0.35rem;
  border-bottom: 3px solid currentColor;
  font-size: clamp(2.25rem, 1.6rem + 2.2vw, 4rem);
  letter-spacing: 0.01em;
}

.logo__claim {
  margin-top: 0.45rem;
  font-size: clamp(0.95rem, 0.8rem + 0.55vw, 1.45rem);
}

.hero__content {
  position: relative;
  z-index: 1;
  align-self: center;
  justify-self: end;
  /* Textspalte beginnt rechts neben Ansgar auf der hellen Wand */
  width: min(100% - 60% - clamp(1.25rem, 5vw, 6.5rem), 34rem);
  margin-right: clamp(1.25rem, 5vw, 6.5rem);
  padding-block: 8rem 4rem;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 3rem -4rem -1rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(238 238 240 / 0.8), rgb(238 238 240 / 0));
  pointer-events: none;
}

.hero__quote {
  margin-bottom: 2.75rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 0.4rem + 2.6vw, 3.1rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-wrap: balance;
  hanging-punctuation: first;
}

.hero .button {
  min-width: 18.5rem;
}

/* ---------- Einleitung ---------- */
.intro {
  padding-block: var(--section-space) 0;
}

.intro p {
  max-width: var(--measure);
}

.intro p + p {
  margin-top: 1.6em;
}

/* ---------- Leistungs-Navigation ---------- */
.services {
  margin-top: var(--section-space);
}

.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 0;
  padding: clamp(2.5rem, 5vw, 4.25rem) 0;
  list-style: none;
  border-block: var(--rule);
}

.service-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: var(--radius);
}

.service-link__icon {
  display: grid;
  place-items: center;
  width: clamp(6.5rem, 10vw, 9.5rem);
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--navy-soft);
  color: var(--navy);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.service-link__icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-link__label {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 500;
  text-align: center;
  text-decoration: underline 2px transparent;
  text-underline-offset: 0.3em;
  transition: text-decoration-color 0.25s ease;
}

.service-link:hover .service-link__icon {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-4px);
}

.service-link:hover .service-link__label {
  text-decoration-color: var(--navy);
}

.service-link:active .service-link__icon {
  transform: translateY(-1px);
}

/* ---------- Leistungsbereiche ---------- */
.service {
  padding-block: var(--section-space);
}

.service--dark {
  background: var(--navy);
  color: var(--white);
}

.service__eyebrow {
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 500;
}

.service--dark .service__eyebrow {
  color: var(--muted-on-dark);
}

.service__title {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.service__punch {
  color: var(--navy);
}

.service--dark .service__title {
  color: var(--muted-on-dark);
}

.service--dark .service__punch {
  color: var(--white);
}

.service__body {
  max-width: var(--measure);
}

.service__body .button {
  min-width: min(100%, 20rem);
}

.service__list {
  display: grid;
  gap: 1rem;
  margin: 2.5rem 0 2.75rem;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.service__list li {
  position: relative;
  padding-left: 1.6rem;
  line-height: 1.4;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.52em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--navy);
}

.service--dark .service__list li::before {
  background: var(--white);
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  grid-template-columns: 1fr minmax(0, 26.5rem);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  padding-block: clamp(4rem, 9vw, 8.5rem);
  position: relative;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: var(--rule);
}

.contact__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__title {
  margin-bottom: 2.5rem;
  color: var(--navy);
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.contact__mail {
  margin-top: 0.5rem;
  padding-block: 0.75rem;
  color: var(--navy);
  font-size: 1.0625rem;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.contact__mail:hover {
  text-decoration-thickness: 2px;
}

.contact__portrait {
  margin: 0;
  border-radius: 48px;
  overflow: hidden;
  background: var(--navy-soft);
  box-shadow: 0 30px 60px -35px rgb(0 6 120 / 0.45);
}

.contact__portrait img {
  width: 100%;
  aspect-ratio: 0.82;
  object-fit: cover;
  object-position: 50% 15%;
}

/* ---------- Footer ---------- */
.footer {
  padding: 3.75rem var(--gutter);
  background: var(--navy);
  color: var(--white);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.125rem;
  font-weight: 500;
}

.footer__links a {
  display: inline-block;
  padding: 0.7rem 0.5rem;
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* ---------- Responsiv ---------- */
@media (max-width: 900px) {
  .hero {
    min-height: 0;
    display: block;
    background: linear-gradient(#f3f3f4, #e9e9eb);
  }

  .hero__media {
    position: relative;
    aspect-ratio: 5 / 4;
  }

  .hero__media img {
    object-position: 30% 25%;
  }

  .hero__content {
    width: auto;
    margin: 0;
    padding: 2.5rem var(--gutter) 3.25rem;
  }

  .hero__content::before {
    content: none;
  }

  .hero__quote {
    margin-bottom: 2rem;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact__portrait {
    order: -1;
    width: min(100%, 22rem);
    margin-inline: auto;
    border-radius: 36px;
  }
}

@media (max-width: 640px) {
  .services__list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-link {
    flex-direction: row;
    gap: 1.25rem;
    justify-content: flex-start;
  }

  .service-link__icon {
    width: 4.5rem;
    border-radius: 14px;
  }

  .service-link__label {
    text-align: left;
  }

  .service__title {
    text-wrap: pretty;
  }

  .button,
  .hero .button {
    width: 100%;
    min-width: 0;
    padding-inline: 1.5rem;
  }

  .button--large {
    font-size: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}

/* ---------- Rechtliche Seiten (Impressum, Datenschutz) ---------- */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: var(--rule);
}

.page-header .logo {
  position: static;
}

.page-header .logo__name {
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem);
}

.page-header .logo__claim {
  font-size: clamp(0.85rem, 0.75rem + 0.35vw, 1.05rem);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.75rem;
  color: var(--navy);
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.back-link:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.back-link:hover svg {
  transform: translateX(-3px);
}

.legal {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--section-space);
}

.legal__inner {
  max-width: var(--measure);
}

.legal__title {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.legal__intro {
  margin-bottom: 1rem;
}

.legal h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem);
  font-weight: 700;
  line-height: 1.25;
}

.legal p + p,
.legal p + ul,
.legal ul + p {
  margin-top: 1em;
}

.legal ul {
  margin-block: 0;
  padding-left: 1.25em;
}

.legal li + li {
  margin-top: 0.35em;
}

.legal li::marker {
  color: var(--navy);
}

.legal a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.legal a:hover {
  text-decoration-thickness: 2px;
}

.legal address {
  font-style: normal;
}

.legal__updated {
  margin-top: 3rem;
  color: #5d6479;
  font-size: 0.95em;
}

.footer__links a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-page main {
  flex: 1;
}
