/* WAKOM – Wahl Computer & Media
   Schrift: Archivo (SIL Open Font License), lokal eingebunden – keine externen Anfragen. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("fonts/archivo.woff2") format("woff2-variations"),
       url("fonts/archivo.woff2") format("woff2");
}

:root {
  --navy: #0a1137;      /* Kopf und Fuß der alten Seite */
  --cobalt: #1f26b1;    /* Logofarbe */
  --cobalt-deep: #161c86;
  --lavender: #8188ae;  /* Flächenfarbe der alten Seite */
  --mist: #e8eaf3;
  --paper: #fbfbfd;
  --ink: #1b1f33;
  --ink-soft: #4a4f68;

  --measure: 66ch;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 72rem;
  --slant: -14deg;      /* Neigung der Logo-Balken */
}

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

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

body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-variation-settings: normal;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Kopfbereich ---------- */

.site-head {
  background: var(--navy);
  color: #fff;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 2rem;
  padding-block: 1.1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: #fff;
  text-decoration: none;
}
.brand img { width: 9.5rem; height: auto; }
.brand span {
  font-size: .875rem;
  font-stretch: 100%;
  color: #c9cce0;
  line-height: 1.25;
  border-left: 1px solid #3a4170;
  padding-left: .9rem;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
  margin: 0; padding: 0; list-style: none;
}
.nav a {
  display: block;
  padding: .5rem .85rem;
  color: #dfe1ee;
  text-decoration: none;
  font-weight: 500;
  font-stretch: 110%;
  position: relative;
}
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .85rem; right: .85rem; bottom: .2rem;
  height: 4px;
  background: var(--cobalt);
  transform: skewX(var(--slant));
}

/* ---------- Hero: die schrägen Balken aus dem Logo ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  isolation: isolate;
}

.hero::before {
  /* Balkenfeld in Logo-Neigung */
  content: "";
  position: absolute;
  inset: 0 -20% 0 45%;
  z-index: -1;
  background:
    repeating-linear-gradient(
      90deg,
      var(--cobalt) 0 3.2rem,
      transparent 3.2rem 4.4rem,
      var(--cobalt-deep) 4.4rem 6.6rem,
      transparent 6.6rem 7.4rem
    );
  transform: skewX(var(--slant));
  opacity: .9;
  mask-image: linear-gradient(90deg, transparent, #000 35%);
}

.hero .wrap {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.02;
  font-weight: 800;
  font-stretch: 122%;
  letter-spacing: -.01em;
}

.hero p {
  margin: 1.5rem 0 0;
  max-width: 44ch;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #c9cce0;
}

.hero--small .wrap { padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.hero--small h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.hero--small::before { inset: 0 -20% 0 62%; }

.actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  font-weight: 650;
  font-stretch: 110%;
  text-decoration: none;
  background: #fff;
  color: var(--navy);
  border: 2px solid #fff;
}
.btn:hover { background: var(--mist); border-color: var(--mist); }
.btn--line { background: transparent; color: #fff; }
.btn--line:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ---------- Inhalt ---------- */

main { display: block; }

.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section + .section { padding-top: 0; }

.prose { max-width: var(--measure); }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  font-weight: 750;
  font-stretch: 115%;
  color: var(--navy);
}

h3 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: 700;
  font-stretch: 110%;
  color: var(--navy);
}

.lead {
  font-size: clamp(1.15rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink);
  max-width: 52ch;
}

/* Leistungsübersicht auf der Startseite */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 0;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d3d6e6;
}

.services li { border-bottom: 1px solid #d3d6e6; }

.services a {
  display: block;
  height: 100%;
  padding: 1.5rem 1.25rem 1.6rem 0;
  color: inherit;
  text-decoration: none;
}

.services a:hover .bar { width: 3.25rem; }

.services p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.bar {
  display: block;
  width: 1.75rem;
  height: .55rem;
  margin-bottom: 1rem;
  background: var(--cobalt);
  transform: skewX(var(--slant));
  transition: width .2s ease;
}

@media (min-width: 52rem) {
  .services li + li a { padding-left: 1.25rem; }
  .services li + li { border-left: 1px solid #d3d6e6; }
}

/* Leistungsseite */

.service {
  display: grid;
  gap: 1rem 3rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid #d3d6e6;
  scroll-margin-top: 1rem;
}
.service:first-of-type { border-top: 0; padding-top: 0; }

@media (min-width: 52rem) {
  .service { grid-template-columns: 18rem 1fr; }
}

.service h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.6rem);
  font-stretch: 106%;
  text-wrap: balance;
}
.service .bar { margin-bottom: 1.1rem; }

.checks {
  margin: .5rem 0 1.25rem;
  padding: 0;
  list-style: none;
}
.checks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .35rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .9rem; height: .32rem;
  background: var(--lavender);
  transform: skewX(var(--slant));
}

/* Band mit Kontaktaufforderung */

.band {
  background: var(--mist);
}
.band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: clamp(2.25rem, 5vw, 3rem);
}
.band p { margin: 0; font-size: 1.2rem; font-weight: 600; font-stretch: 110%; color: var(--navy); max-width: 40ch; }
.band .btn { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.band .btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }

/* Kontakt */

.contact {
  display: grid;
  gap: 2.5rem 4rem;
}
@media (min-width: 52rem) {
  .contact { grid-template-columns: 1fr 1fr; }
}

.contact dl { margin: 0; }
.contact dt {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-top: 1.1rem;
}
.contact dt:first-child { margin-top: 0; }
.contact dd {
  margin: .1rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  font-stretch: 108%;
}
.contact dd a { text-decoration: none; }
.contact dd a:hover { text-decoration: underline; }

address { font-style: normal; }

/* Rechtstexte */

.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.legal p, .legal ul { margin: 0 0 1em; }
.legal ul { padding-left: 1.2rem; }

/* ---------- Fuß ---------- */

.site-foot {
  background: var(--navy);
  color: #b9bdd6;
  font-size: .95rem;
}
.site-foot .wrap {
  display: grid;
  gap: 1.75rem 3rem;
  padding-block: 2.75rem;
}
@media (min-width: 52rem) {
  .site-foot .wrap { grid-template-columns: auto auto 1fr; align-items: start; }
}
.site-foot strong { color: #fff; font-weight: 650; display: block; margin-bottom: .3rem; }
.site-foot a { color: #e4e6f2; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot .legal-links { justify-self: start; }
@media (min-width: 52rem) {
  .site-foot .legal-links { justify-self: end; text-align: right; }
}
.site-foot small { display: block; margin-top: .6rem; color: #8b90b0; }

/* ---------- Fehlerseite ---------- */

.notfound .lead { margin-bottom: 1.5rem; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Mobil ---------- */

@media (max-width: 40rem) {
  .brand span { display: none; }
  .brand img { width: 8rem; }
  .site-head .wrap { padding-block: .9rem .4rem; }
  .nav { width: 100%; margin-left: -.85rem; }
  .nav ul { gap: 0; }
  .nav a { padding: .55rem .7rem; }
  .nav a[aria-current="page"]::after { left: .7rem; right: .7rem; }
  .hero::before { inset: 0 -40% 0 55%; opacity: .55; }
}

/* ---------- Druck ---------- */

@media print {
  .site-head, .hero::before, .band, .nav, .skip { display: none !important; }
  .hero { background: none; color: #000; }
  .hero p { color: #333; }
  body { background: #fff; }
  a { color: #000; }
}

/* Leistungskacheln auf der Startseite: h2 in Größe einer Zwischenüberschrift */
.services h2 {
  margin: 0 0 .5rem;
  font-size: 1.25rem;
  line-height: 1.25;
  font-stretch: 110%;
}
.services a:hover h2 { color: var(--cobalt); }
