/* Computer & Business, Harpstedt
   Farben stammen aus dem Logo (Blau #1050a0, Grau #e8e8e8) und dem Flyer (Gelb). */

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
}

:root {
  --blue: #1050a0;
  --blue-deep: #0b2d63;
  --navy: #071a3a;
  --ink: #0d1b34;
  --muted: #455672;
  --paper: #f3f6fb;
  --white: #ffffff;
  --steel: #e8e8e8;
  --yellow: #ffd400;
  --line: #d3dcea;

  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 0.18em; }
a:hover { color: var(--blue-deep); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.002em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-light :focus-visible,
.site-header :focus-visible,
.section--light :focus-visible,
.legal :focus-visible { outline-color: var(--blue); }

.container {
  width: min(1180px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--yellow);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  text-decoration: none;
  color: var(--blue-deep);
}
.brand:hover { color: var(--blue-deep); }
.brand img { height: 52px; width: auto; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.005em;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2rem); }
.nav__links { display: flex; gap: clamp(1rem, 2.4vw, 2rem); list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0;
  border-bottom: 3px solid transparent;
}
.nav__links a:hover { border-bottom-color: var(--blue); color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-decoration: none;
  padding: 0.85rem 1.4rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-deep); color: var(--white); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #ffe24d; color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); color: var(--white); }
.btn--small { padding: 0.55rem 1rem; font-size: 1rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(900px 500px at 82% 30%, rgba(40, 110, 210, 0.45), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 58%, #0f4189 100%);
  padding: clamp(2.5rem, 7vw, 6rem) 0 clamp(2.5rem, 6vw, 5rem);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}
@media (min-width: 360px) {
  .hero h1 .h1-line { white-space: nowrap; }
}
.hero__lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  max-width: 34rem;
  margin: 1.4rem 0 2rem;
  color: #dbe6f7;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0;
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  font-weight: 600;
  color: #c3d3ec;
}
.facts li { padding: 0 1.2rem; border-left: 2px solid rgba(255, 255, 255, 0.3); }
.facts li:first-child { padding-left: 0; border-left: 0; }

/* Echtes Logo plus Anrufkarte */
.hero__logo { justify-self: center; width: min(100%, 540px); }
.hero__logo-img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.4));
}
.callcard {
  margin-top: 1.8rem;
  padding: 1.2rem 1.4rem 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
}
.callcard__label { display: block; font-weight: 600; color: #c3d3ec; line-height: 1.2; }
.callcard__phone {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  line-height: 1.1;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}
.callcard__phone:hover { color: var(--yellow); }
.callcard__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.6rem;
  margin: 0.5rem 0 0;
  color: #dbe6f7;
}
.callcard__status strong { color: var(--white); }
.dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #8a97ad;
  flex: none;
}
[data-open="true"] .dot { background: #35c46a; box-shadow: 0 0 0 4px rgba(53, 196, 106, 0.25); }

/* ---------- Abschnitte ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section--light { background: var(--white); }
.section--paper { background: var(--paper); }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.section__head p { margin: 1rem 0 0; color: var(--muted); font-size: 1.2rem; }

/* Leistungen */
.services {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.4rem clamp(1.5rem, 3vw, 2.6rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.service { border-top: 6px solid var(--blue); padding-top: 1.1rem; }
.service h3 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 0.9rem; }
.service ul { list-style: none; margin: 0; padding: 0; }
.service li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.35rem;
  border-bottom: 1px solid var(--line);
}
.service li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.1em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
}
.services__note { margin: 2.4rem 0 0; color: var(--muted); }

/* Unterseite "Über uns" */
.services--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service p { margin: 0; color: var(--muted); }
.nav__links a[aria-current="page"] { border-bottom-color: var(--blue); }

.page-head {
  color: var(--white);
  background:
    radial-gradient(800px 360px at 85% 20%, rgba(40, 110, 210, 0.4), transparent 70%),
    linear-gradient(160deg, var(--navy) 0%, var(--blue-deep) 62%, #0f4189 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.page-head h1 { font-size: clamp(3rem, 7vw, 5rem); line-height: 1; }
.page-head p { max-width: 36rem; margin: 1rem 0 0; font-size: 1.25rem; color: #dbe6f7; }

.profile {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.profile h2 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-bottom: 1.4rem; }
.profile__text p { max-width: 38rem; }
.portrait { margin: 0; }
.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 6px;
  background: #dfe8f5;
}
.portrait figcaption { margin-top: 0.8rem; line-height: 1.35; color: var(--muted); }
.portrait figcaption strong { color: var(--ink); }
.portrait--small { max-width: 380px; justify-self: center; }
.pullquote {
  margin: 2rem 0;
  padding: 0.3rem 0 0.3rem 1.4rem;
  border-left: 6px solid var(--blue);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
  color: var(--blue-deep);
  max-width: 34rem;
}

.cta-band { background: var(--blue); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; }
.cta-band__inner { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: space-between; }
.cta-band h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); margin-bottom: 0.8rem; }
.cta-band p { max-width: 36rem; color: #e1ebfa; margin-bottom: 0.8rem; }
.cta-band .signature { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--white); margin: 1.2rem 0 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }

/* Anliegen */
.problems { background: var(--blue); color: var(--white); }
.problems .section__head p { color: #d4e1f6; }
.problems__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
}
.problems__list a {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 0.15s, padding-left 0.2s;
}
.problems__list a:hover { color: var(--yellow); padding-left: 0.6rem; }
.problems__list a:focus-visible { outline-color: var(--yellow); }

/* Über uns */
.about { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.4rem; }
.about p { max-width: 36rem; }
.about .about__region { margin-top: 1.6rem; color: var(--muted); }
.audience { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.audience li {
  padding: 0.4rem 0.95rem;
  border: 1.5px solid var(--blue);
  border-radius: 999px;
  font-weight: 600;
  color: var(--blue);
  background: var(--white);
}
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.6rem; border-left: 4px solid var(--blue); }
.timeline li { position: relative; padding: 0 0 2rem 0; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: calc(-1.6rem - 10px);
  top: 0.5rem;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 4px solid var(--blue);
  border-radius: 50%;
}
.timeline strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--blue);
}
.timeline span { display: block; margin-top: 0.3rem; max-width: 24rem; }

/* Kontakt */
.contact { background: var(--navy); color: var(--white); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.contact h2 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1.6rem; }
.contact h3 { font-size: 1.9rem; margin: 2.2rem 0 0.7rem; }
.contact a { color: var(--white); }
.contact a:hover { color: var(--yellow); }
.contact address { font-style: normal; }
.contact__lines { list-style: none; margin: 0; padding: 0; }
.contact__lines li { padding: 0.15rem 0; }
.contact__lines .label { display: inline-block; min-width: 4.8rem; color: #a9bddb; }
.contact__phone {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1.1;
  text-decoration: none;
}
.route { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }

.hours { width: 100%; border-collapse: collapse; max-width: 30rem; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid rgba(255, 255, 255, 0.18); font-weight: 400; vertical-align: top; }
.hours th { font-weight: 600; width: 8.5rem; }
.hours tr[aria-current="date"] th,
.hours tr[aria-current="date"] td { background: rgba(255, 212, 0, 0.14); color: #fff0a6; }
.hours tr[aria-current="date"] th { box-shadow: inset 4px 0 0 var(--yellow); }
.hours__note { margin: 0.9rem 0 0; color: #a9bddb; font-size: 1rem; }

/* Formular */
.form-panel {
  background: var(--white);
  color: var(--ink);
  border-radius: 6px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}
.form-panel h3 { font-size: 2.2rem; margin: 0 0 0.3rem; }
.form-panel > p { color: var(--muted); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.3rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #8fa3c4;
  border-radius: 4px;
  padding: 0.7rem 0.8rem;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.check { display: flex; gap: 0.7rem; align-items: flex-start; margin: 0.4rem 0 1.3rem; font-size: 1rem; color: var(--muted); }
.check input { width: 1.25rem; height: 1.25rem; margin-top: 0.2rem; flex: none; accent-color: var(--blue); }
.check a { color: var(--blue); }
.form-panel .btn { width: 100%; }
.form-hint { margin: 0.9rem 0 0; font-size: 1rem; color: var(--muted); }
.form-msg { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: 4px; background: #e6f1ff; color: var(--blue-deep); font-weight: 600; }
.form-msg[hidden] { display: none; }
.form-msg--error { background: #fdeaea; color: #8a1c1c; }
.form-panel a.mail-link { color: var(--blue); }
.form-panel .form-msg { margin: 0 0 1.2rem; }
.field.is-prefilled select,
.field.is-prefilled textarea { background-color: #fff6c2; transition: background-color 1.6s ease-out; }
@media (prefers-reduced-motion: no-preference) {
  .field.is-prefilled select,
  .field.is-prefilled textarea { animation: prefill-flash 2s ease-out; }
  @keyframes prefill-flash {
    0% { background-color: #ffe56b; }
    100% { background-color: #fff6c2; }
  }
}
.form-panel a:hover { color: var(--blue-deep); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

.site-footer { background: #04122b; color: #b4c4de; padding: 2rem 0; font-size: 1rem; }
.site-footer__row { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: #e3ecfa; }
.site-footer a:hover { color: var(--yellow); }
.site-footer nav { display: flex; gap: 1.4rem; }

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

.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.legal__inner { max-width: 46rem; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4.4rem); margin: 0.2rem 0 1.4rem; }
.legal h2 { font-size: 2rem; margin: 2.4rem 0 0.6rem; }
.legal h3 { font-size: 1.5rem; margin: 1.6rem 0 0.4rem; }
.legal ul { padding-left: 1.2rem; }
.legal address { font-style: normal; margin: 0 0 1em; }
.legal .back { display: inline-block; margin-bottom: 1rem; font-weight: 600; }

/* ---------- Responsiv ---------- */

@media (max-width: 1020px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem var(--gutter) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 0; }
  .nav__links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 1rem; }

  .hero__grid,
  .about,
  .profile,
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .problems__list { grid-template-columns: minmax(0, 1fr); }
  .hero__logo { width: min(100%, 460px); justify-self: start; }
}

@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .services,
  .services--three { grid-template-columns: minmax(0, 1fr); }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .brand { gap: 0.55rem; }
  .brand img { height: 40px; }
  .brand__name { font-size: 1.3rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts { flex-direction: column; gap: 0.35rem; }
  .facts li,
  .facts li:first-child { padding: 0; border-left: 0; }
  .hero__logo { justify-self: stretch; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* Einzugsgebiet-Grafik */
.map { margin: 0; justify-self: center; width: 100%; max-width: 520px; background: linear-gradient(160deg, var(--blue-deep), var(--navy)); border-radius: 12px; padding: clamp(0.8rem, 2vw, 1.4rem); color: #fff; box-shadow: 0 18px 40px -22px rgba(7, 26, 58, 0.6); }
.map svg { display: block; width: 100%; height: auto; }
.map__ring { fill: rgba(255, 255, 255, 0.03); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; stroke-dasharray: 3 6; }
.map__ring--outer { stroke: var(--yellow); stroke-dasharray: 5 7; stroke-width: 1.6; fill: rgba(255, 255, 255, 0.04); }
.map__ringlabel { fill: var(--yellow); font: 600 13px "Source Sans 3", system-ui, sans-serif; letter-spacing: 0.04em; text-transform: uppercase; }
.map__town { fill: #9fc2f2; stroke: #fff; stroke-width: 1.5; }
.map text { fill: #fff; font: 600 14px "Source Sans 3", system-ui, sans-serif; }
.map text.map__ringlabel { fill: var(--yellow); }
.map__center { fill: var(--yellow); stroke: #fff; stroke-width: 3; }
.map text.map__home { font: 700 20px "Barlow Condensed", system-ui, sans-serif; letter-spacing: 0.02em; fill: var(--yellow); }
.map figcaption { margin-top: 0.4rem; font-size: 0.82rem; color: #b9c9e4; text-align: center; }
