/* bitstech – gemeinsames Erscheinungsbild aller Seiten.
   Hell und ruhig, Schrift lokal eingebunden (keine Drittanbieter). */

@font-face {
  font-family: "Instrument Sans";
  src: url("schrift/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --papier: #f4f6f2;     /* Seitenhintergrund, kühles Off-White */
  --flaeche: #ffffff;    /* Formular, Fernwartungskasten */
  --tinte: #13221a;      /* Text, 15 : 1 */
  --grau: #4c5a52;       /* Nebentext, 6,7 : 1 */
  --linie: #d5ddd6;
  --marke: #01a800;      /* Logogrün, nur für Grafik und Markierungen */
  --gruen: #0a7a2a;      /* Schaltflächen und Links, 5 : 1 */
  --gruen-hover: #08661f;
  --wald: #0f2a1d;       /* dunkle Bänder: Kanzlei-IT und Fußzeile */
  --wald-text: #e6eee8;
  --wald-grau: #a8bcaf;
  --wald-link: #6cd66f;

  --breite: 1180px;
  --rand: clamp(20px, 5vw, 48px);
  --radius: 12px;
}

* { box-sizing: border-box; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font: 400 1.0625rem/1.6 "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-synthesis: none;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gruen); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--gruen-hover); }
:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { margin: 0; font-weight: 650; font-stretch: 88%; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.75rem); line-height: 1.06; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.5rem); line-height: 1.12; }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

.huelle { max-width: var(--breite); margin: 0 auto; padding: 0 var(--rand); }
.nw { white-space: nowrap; }
.rev { unicode-bidi: bidi-override; direction: rtl; }
.leise { color: var(--grau); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid transparent;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf .huelle { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.kopf .marke img { height: 26px; width: auto; }
.navi { display: flex; gap: 4px; margin-left: auto; }
.navi a {
  padding: 8px 12px; border-radius: 8px; color: var(--tinte); text-decoration: none; font-weight: 550; white-space: nowrap;
}
.navi a:hover { background: #e6ebe5; color: var(--tinte); }
.navi a[aria-current="page"] { color: var(--gruen); }
.kopf .tel { font-weight: 600; color: var(--tinte); text-decoration: none; white-space: nowrap; }
.kopf .tel a { color: inherit; text-decoration: none; }

/* ---------- Schaltflächen ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 10px; border: 0;
  background: var(--gruen); color: #fff; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  white-space: nowrap;
}
.knopf:hover { background: var(--gruen-hover); color: #fff; }
.knopf.zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.knopf.zweit:hover { background: var(--tinte); color: var(--papier); }
.knopf.zweit a { color: inherit; text-decoration: none; }
.knopf[aria-disabled="true"] { background: #b9c4bc; color: #fff; cursor: not-allowed; }
.knopf svg { width: 20px; height: 20px; flex: none; }

/* ---------- Startbereich ---------- */
.start { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.start .huelle { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.start .lead { margin-top: 24px; max-width: 34rem; font-size: 1.1875rem; color: var(--grau); }
.start .aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.merkmale { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 32px; margin-top: 40px; list-style: none; color: var(--grau); font-size: 0.9375rem; }
.merkmale li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.merkmale svg { width: 18px; height: 18px; color: var(--marke); flex: none; }

/* Fernwartungskasten: das, was Bestandskunden zuerst suchen */
.fw {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px;
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 1px 0 rgba(19, 34, 26, .04), 0 18px 40px -24px rgba(19, 34, 26, .25);
}
.fw h2 { font-size: 1.375rem; }
.fw > p { margin-top: 6px; color: var(--grau); font-size: 0.9375rem; }
.schritte { list-style: none; margin: 18px 0 0; counter-reset: s; display: grid; gap: 12px; }
.schritte li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 0.9688rem; line-height: 1.45; }
.schritte li::before {
  content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #e5f3e6; color: var(--gruen); font-weight: 700; font-size: 0.875rem;
}
.fw .bestaetigen { display: flex; gap: 10px; align-items: center; margin-top: 22px; font-size: 0.9375rem; cursor: pointer; }
.fw .bestaetigen input { width: 18px; height: 18px; margin: 0; accent-color: var(--gruen); flex: none; }
.fw .bestaetigen a { white-space: nowrap; }
.fw .knopf { width: 100%; margin-top: 14px; }
.sys { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--linie); font-size: 0.8125rem; color: var(--grau); }
.sys dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 6px 0 0; }
.sys dt { white-space: nowrap; }
.sys dd { margin: 0; color: var(--tinte); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sys .zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sys button {
  background: none; border: 1px solid var(--linie); border-radius: 6px; padding: 2px 10px;
  font: inherit; color: var(--grau); cursor: pointer;
}
.sys button:hover { color: var(--tinte); border-color: var(--grau); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding: clamp(56px, 8vw, 112px) 0; }
#leistungen + .band { margin-top: 0; }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.kopfzeile p { color: var(--grau); max-width: 36rem; }

/* Leistungen: vier offene Bereiche, nichts versteckt */
.leistungen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); }
.leistung { padding: 32px 0 36px; border-top: 1px solid var(--linie); display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; }
.leistung .ico { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: #e5f3e6; color: var(--gruen); }
.leistung .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.leistung p { margin-top: 8px; color: var(--grau); }
.leistung ul { margin-top: 16px; list-style: none; display: grid; gap: 6px; font-size: 0.9688rem; }
.leistung li { position: relative; padding-left: 18px; }
.leistung li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--marke); }

/* Kanzlei-IT: dunkles Band */
.band { background: var(--wald); color: var(--wald-text); }
.band a { color: var(--wald-link); }
.band .leise, .band p { color: var(--wald-grau); }
.band h2, .band h3 { color: #fff; }
.kanzlei { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(40px, 6vw, 96px); }
.kanzlei .text p + p { margin-top: 16px; }
.kanzlei .aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.kanzlei .knopf { background: var(--wald-link); color: var(--wald); }
.kanzlei .knopf:hover { background: #8ae58c; color: var(--wald); }
.kanzlei .knopf.zweit { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.kanzlei .knopf.zweit:hover { background: rgba(255,255,255,.08); }
.punkte { list-style: none; display: grid; gap: 0; }
.punkte li { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.14); }
.punkte li:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.punkte h3 { font-size: 1.125rem; }
.punkte p { margin-top: 4px; font-size: 0.9688rem; }
.hinweis-klein { grid-column: 1 / -1; font-size: 0.8125rem; line-height: 1.5; color: var(--wald-grau); max-width: 60rem; }

/* Ansprechpartner und Ablauf */
.person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(40px, 6vw, 96px); }
.person .text p { margin-top: 16px; color: var(--grau); max-width: 32rem; }
.ablauf { list-style: none; counter-reset: a; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.ablauf li { counter-increment: a; }
.ablauf li::before {
  content: counter(a); display: block; margin-bottom: 10px;
  font-size: 2.25rem; line-height: 1; font-weight: 600; font-stretch: 80%; color: var(--marke);
}
.ablauf h3 { font-size: 1.125rem; }
.ablauf p { margin-top: 4px; color: var(--grau); font-size: 0.9688rem; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 40px clamp(40px, 6vw, 96px); align-items: start; }
.kontakt .text > p { margin-top: 16px; color: var(--grau); }
.wege { list-style: none; margin-top: 32px; display: grid; gap: 18px; }
.wege li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.wege svg { width: 22px; height: 22px; margin-top: 2px; color: var(--gruen); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wege .art { display: block; font-size: 0.8125rem; color: var(--grau); }
.wege a, .wege span { color: var(--tinte); text-decoration: none; font-weight: 550; }
.wege a:hover { color: var(--gruen); }

.formular { background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; padding: clamp(22px, 3.5vw, 40px); display: grid; gap: 18px; }
.formular .reihe { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.formular label { display: grid; gap: 6px; font-size: 0.9375rem; font-weight: 600; }
.formular .opt { font-weight: 400; color: var(--grau); }
.formular input, .formular textarea {
  width: 100%; font: inherit; font-weight: 400; color: var(--tinte); background: var(--papier);
  border: 1px solid #c3cdc5; border-radius: 10px; padding: 12px 14px;
}
.formular textarea { resize: vertical; min-height: 9rem; }
.formular input:focus, .formular textarea:focus { outline: none; border-color: var(--gruen); box-shadow: 0 0 0 3px rgba(10, 122, 42, .18); background: #fff; }
.formular [aria-invalid="true"] { border-color: #b3261e; }
.formular .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formular .ds { font-size: 0.8125rem; color: var(--grau); }
.senden { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.status { font-size: 0.9375rem; }
.status.ok { color: var(--gruen); font-weight: 600; }
.status.fehler { color: #b3261e; }

/* ---------- Unterseiten ---------- */
.seite { padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.seite .huelle { max-width: 820px; }
.seite h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.seite .lead { margin-top: 18px; font-size: 1.1875rem; color: var(--grau); }
.seite h2 { font-size: 1.375rem; margin-top: 44px; }
.seite h2 + p, .seite h2 + ul { margin-top: 10px; }
.seite p + p { margin-top: 12px; }
.seite ul.liste { list-style: none; display: grid; gap: 6px; }
.seite ul.liste li { position: relative; padding-left: 18px; }
.seite ul.liste li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--marke); }
.seite .spalten { columns: 2; column-gap: 40px; }
.seite .spalten li { break-inside: avoid; }
.kasten { margin-top: 44px; padding: 20px 24px; background: #e9eee8; border-radius: var(--radius); }
.kasten h2 { margin-top: 0; font-size: 1.0625rem; }
.kasten p { font-size: 0.9375rem; color: var(--grau); }
.schluss { margin-top: 48px; padding: clamp(24px, 4vw, 36px); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 16px; }
.schluss h2 { margin-top: 0; }
.schluss .aktionen { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--wald); color: var(--wald-grau); font-size: 0.9375rem; padding: 48px 0 40px; }
.fuss .huelle { display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: end; }
.fuss img { height: 22px; width: auto; }
.fuss address { font-style: normal; margin-top: 16px; line-height: 1.6; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fuss a { color: var(--wald-text); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss .klein { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 0.8125rem; }

/* ---------- Anpassung an Bildschirmbreiten ---------- */
@media (max-width: 1020px) {
  .start .huelle, .kanzlei, .person, .kontakt, .kopfzeile { grid-template-columns: minmax(0, 1fr); }
  .start .fw { max-width: 560px; }
  .kopfzeile { align-items: start; }
}
@media (max-width: 860px) {
  .kopf .tel { display: none; }
}
@media (max-width: 900px) {
  .leistungen { grid-template-columns: minmax(0, 1fr); }
  .seite .spalten { columns: 1; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 116px; }
  .kopf .huelle { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 14px; }
  .navi { width: calc(100% + 16px); margin: 6px -8px 4px; justify-content: space-between; gap: 0; }
  .navi a { padding: 8px; font-size: 0.9375rem; }
  .formular .reihe { grid-template-columns: minmax(0, 1fr); }
  .merkmale { grid-template-columns: minmax(0, 1fr); }
  .ablauf { grid-template-columns: minmax(0, 1fr); }
  .start .aktionen .knopf { flex: 1 1 100%; }
  .fuss .huelle { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 370px) {
  .navi a { padding: 8px 4px; font-size: 0.8125rem; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Telefonnummer als Schaltfläche: kontakt.js setzt den Link erst im Browser ein,
   die ganze Fläche soll trotzdem klickbar sein */
.knopf.zweit { position: relative; }
.knopf.zweit a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.knopf.zweit:hover a { color: var(--papier); }
