/* =========================================================
   BHM-IT-Solution — Stylesheet
   Keine externen Ressourcen (DSGVO: keine CDN-Fonts o.Ä.)
   ========================================================= */

:root {
  /* Farben */
  --paper:      #F5F7F9;
  --surface:    #FFFFFF;
  --surface-2:  #EEF1F5;
  --ink:        #0F141B;
  --slate:      #57606D;
  --line:       #DCE2E9;
  --line-soft:  #E9EDF2;
  --signal:     #1B4FD8;
  --signal-dk:  #143CA6;
  --signal-bg:  #EDF2FE;
  --online:     #0E8A57;
  --online-bg:  #E6F5EE;

  /* Typografie */
  --display: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --body:    "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono:    ui-monospace, "Cascadia Mono", "SF Mono", "Menlo", Consolas, "Liberation Mono", monospace;

  /* Maße */
  --wrap: 1140px;
  --gut: 24px;
  --radius: 4px;
  --radius-lg: 8px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--signal-dk); }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Typo-Bausteine ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--signal);
  flex: none;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 4.1vw, 3.15rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.16rem; letter-spacing: -0.015em; }

p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.06rem, 1.9vw, 1.24rem); color: var(--slate); max-width: 56ch; }

.muted { color: var(--slate); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--body);
  font-size: 0.97rem;
  font-weight: 600;
  padding: 13px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.btn--primary {
  background: var(--signal);
  color: #fff;
  border-color: var(--signal);
}
.btn--primary:hover { background: var(--signal-dk); border-color: var(--signal-dk); color: #fff; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.btn:active { transform: translateY(1px); }

.btn__arrow { font-family: var(--mono); font-size: 0.95em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245,247,249,.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: none;
}
.brand img {
  height: 38px;
  width: auto;
}
.footer__logo {
  height: 42px;
  width: auto;
  margin-bottom: 10px;
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  color: var(--slate);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
}
.nav a:hover { color: var(--ink); }
/* Button im Menue behaelt seine eigenen Farben */
.nav a.btn--primary { color: #fff; }
.nav a.btn--primary:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px; height: 38px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 17px; height: 1.5px;
  background: var(--ink);
  content: "";
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -5.5px; }
.nav-toggle span::after  { position: absolute; top: 5.5px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-5.5px) rotate(-45deg); }

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

.hero { padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero h1 em {
  font-style: normal;
  color: var(--signal);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero__meta {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- Signature: Statusboard ---------- */

.board {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15,20,27,.04), 0 12px 32px -18px rgba(15,20,27,.28);
  overflow: hidden;
}
.board__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.board__live { display: flex; align-items: center; gap: 7px; color: var(--online); }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--online);
  flex: none;
}
.dot--pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14,138,87,.45); }
  55%      { box-shadow: 0 0 0 5px rgba(14,138,87,0); }
}

.board__list { list-style: none; margin: 0; padding: 0; }
.board__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
}
.board__item:last-child { border-bottom: 0; }
.board__name { font-weight: 600; }
.board__val {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--online);
  background: var(--online-bg);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.board__foot {
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.board__note {
  margin: 12px 2px 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.section--tint { background: var(--surface); }
.section__head { max-width: 62ch; margin-bottom: clamp(32px, 4vw, 48px); }

/* ---------- Leistungen ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card {
  background: var(--surface);
  padding: 26px 22px 28px;
  transition: background-color .18s ease;
}
.section--tint .card { background: var(--paper); }
.card:hover { background: var(--signal-bg); }
.card__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--signal);
  display: block;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--slate); font-size: 0.95rem; }

/* ---------- Ablauf (echte Reihenfolge → Nummern sind inhaltlich begründet) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
  counter-reset: step;
}
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--ink); }
.step__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal);
  display: block;
  margin-bottom: 12px;
}
.step p { color: var(--slate); font-size: 0.95rem; margin: 0; }

/* ---------- Über / Fakten ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.facts dt, .facts .facts__k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  padding-top: 3px;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.field input,
.field textarea,
.field select {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
}
.section--tint .field input,
.section--tint .field textarea,
.section--tint .field select { background: var(--paper); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--signal);
  outline-offset: 0;
  border-color: var(--signal);
}
.field textarea { min-height: 132px; resize: vertical; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 11px;
  align-items: start;
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.5;
}
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--signal); }

.form__hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--slate);
  letter-spacing: 0.03em;
  margin: 0;
}

.contact-cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 26px;
  display: grid;
  gap: 10px;
}
.section--tint .contact-cta { background: var(--paper); }
.contact-cta__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 4px;
}
.btn--block { width: 100%; justify-content: center; }

.contact-direct { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-direct li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-direct .facts__k {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.contact-direct a { font-weight: 600; text-decoration: none; }
.contact-direct a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #A7B0BD;
  padding: 52px 0 30px;
  font-size: 0.9rem;
}
.site-footer a { color: #E4E9EF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #7C8695;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: #E4E9EF;
  cursor: pointer;
  text-decoration: none;
}
.linkish:hover { text-decoration: underline; color: #fff; }

/* ---------- Rechtstexte (Impressum / Datenschutz) ---------- */

.legal { padding: clamp(48px, 6vw, 76px) 0 clamp(56px, 7vw, 88px); }
.legal__inner { max-width: 74ch; }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 2.2em; }
.legal h3 { margin-top: 1.8em; font-size: 1.04rem; }
.legal h2:first-of-type { margin-top: 1.4em; }
.legal p, .legal li { color: #2C3540; }
.legal ul, .legal ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.legal li { margin-bottom: 0.45em; }
.legal address { font-style: normal; }

.placeholder {
  background: #FFF6E0;
  border-left: 3px solid #D99B12;
  padding: 3px 7px;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.88em;
}
.notice {
  background: var(--signal-bg);
  border: 1px solid #C7D6FA;
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 0 0 28px;
  font-size: 0.93rem;
}
.notice p:last-child { margin-bottom: 0; }

.back-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 8px;
}

/* ---------- Cookie-Banner ---------- */

.cc {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px -18px rgba(15,20,27,.4);
  padding: 18px 0 20px;
  transform: translateY(101%);
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
}
.cc.is-open { transform: translateY(0); }
.cc[hidden] { display: none; }

.cc__grid { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.cc h2 { font-size: 1.06rem; margin-bottom: 6px; }
.cc p { margin: 0; font-size: 0.9rem; color: var(--slate); max-width: 68ch; }
.cc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc__actions .btn { padding: 11px 18px; font-size: 0.9rem; }

.cc__mehr {
  background: none;
  border: 0;
  padding: 11px 6px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc__mehr:hover { color: var(--ink); }

.cc__options {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}
.cc__options[hidden] { display: none; }
.cc__fein { font-size: 0.85rem; color: var(--slate); margin: 0; }
.cc__speichern {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
}
.cc__opt {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 0.89rem;
}
.cc__opt input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--signal); }
.cc__opt strong { display: block; color: var(--ink); font-size: 0.93rem; }
.cc__opt span { color: var(--slate); }
.cc__opt input:disabled { accent-color: var(--slate); }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .cc__grid { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .brand img { height: 32px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 1rem; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .cards { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 3px; }
  .hero__meta { gap: 14px; flex-direction: column; }
  .cc__actions { flex-direction: column; align-items: stretch; }
  .cc__actions .btn { justify-content: center; }
  .cc__mehr { align-self: center; }
  .cc { max-height: 88vh; overflow-y: auto; }
  .cc h2 { font-size: 1rem; }
  .cc p { font-size: 0.86rem; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

@media print {
  .site-header, .cc, .site-footer, .hero__actions { display: none; }
  body { background: #fff; font-size: 12pt; }
}
