/* ==========================================================================
   Keskin IT-Systemhaus – Stylesheet
   Bewusst ohne externe Schriften, Bibliotheken oder Ressourcen:
   schnell, wartungsarm und datenschutzfreundlich.
   ========================================================================== */

/* ---------- Design-Tokens ---------- */
:root {
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --white: #ffffff;
  --ink: #10151b;
  --ink-2: #39424d;
  --muted: #5f6975;
  --line: rgba(16, 21, 27, 0.13);
  --line-strong: rgba(16, 21, 27, 0.3);

  --accent: #0a7447;          /* Grün für Text auf hellem Grund */
  --led: #2bd67b;             /* Signalgrün für Flächen und dunkle Bereiche */
  --led-glow: rgba(43, 214, 123, 0.55);

  --night: #0e1318;
  --night-2: #151b22;
  --night-line: rgba(255, 255, 255, 0.1);
  --night-text: #e8ecf0;
  --night-muted: #9aa4af;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Segoe UI Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 8rem);
  --radius: 14px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, address {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

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

a {
  color: inherit;
}

button, input, textarea {
  font: inherit;
  color: inherit;
}

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

::selection {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 1.2rem + 3.9vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 650;
}

/* Silbentrennung nur für lange deutsche Wörter – keine „be-treut“-Umbrüche */
p, li, dd {
  hyphens: auto;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  hyphenate-limit-chars: 16 5 5;
  overflow-wrap: break-word;
}

.lead {
  max-width: 38rem;
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  hyphens: manual;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 0 4px rgba(43, 214, 123, 0.18);
}

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

.section {
  padding-block: var(--section);
}

.section-head {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  max-width: 48rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Platzhalter – bewusst auffällig, damit nichts Unfertiges online geht */
.ph {
  display: inline-block;
  padding: 0.05em 0.45em;
  border: 1px dashed #c99a00;
  border-radius: 5px;
  background: #fff1b8;
  color: #594400;
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 500;
  line-height: 1.5;
  hyphens: manual;
}

/* ---------- Buttons & Links ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.btn .icon {
  transition: transform 0.25s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary:hover {
  --btn-bg: #000;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  --btn-bg: var(--white);
  border-color: var(--ink);
}

.btn--led {
  --btn-bg: var(--led);
  --btn-fg: #06130c;
}

.btn--led:hover {
  --btn-bg: #5be89b;
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  font-size: 0.9375rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.3em;
  text-decoration-color: var(--line-strong);
  transition: text-decoration-color 0.2s;
}

.link-arrow:hover {
  text-decoration-color: currentColor;
}

.link-arrow .icon {
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover .icon {
  transform: translate(2px, -2px);
}

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 243, 238, 0.93);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s;
}

.site-header.is-scrolled,
.site-header.nav-open {
  border-bottom-color: var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 30px;
  height: 30px;
}

.brand__led {
  fill: var(--led);
}

.brand__text {
  display: grid;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.brand__sub {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand--light {
  color: var(--white);
}

.brand--light .brand__sub {
  color: var(--night-muted);
}

.brand--light .brand__led {
  fill: #0b7d4b;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.25rem);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.site-nav li a {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav li a:hover,
.site-nav li a.is-active {
  color: var(--ink);
}

.site-nav li a:hover::after,
.site-nav li a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), background-color 0.2s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2.5rem, 5.5vw, 5rem) clamp(4.5rem, 8vw, 7.5rem);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(16, 21, 27, 0.17) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(110% 95% at 88% 8%, #000 0%, transparent 68%);
  mask-image: radial-gradient(110% 95% at 88% 8%, #000 0%, transparent 68%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}

.hero__copy {
  display: grid;
  justify-items: start;
  gap: 1.6rem;
}

.hero__copy .lead {
  max-width: 35rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero__ref {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  max-width: 35rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.hero__ref:hover {
  border-color: var(--ink);
  background: var(--white);
}

.hero__ref-label {
  display: grid;
  place-items: center;
  align-self: stretch;
  padding-right: 1.1rem;
  border-right: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__ref-body {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-2);
}

.hero__ref-body strong {
  display: block;
  margin-bottom: 0.1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.hero__ref .icon {
  transition: transform 0.25s var(--ease);
}

.hero__ref:hover .icon {
  transform: translateX(3px);
}

.hero__visual {
  position: relative;
  isolation: isolate;
}

/* ---------- Rack (Hero-Grafik) ---------- */
.rack,
.sheet {
  position: relative;
  border-radius: 18px;
  color: var(--night-text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 34px 60px -34px rgba(16, 21, 27, 0.6),
    0 14px 26px -18px rgba(16, 21, 27, 0.45);
}

/* versetzter Haarlinien-Rahmen hinter den dunklen Karten */
.rack::before,
.sheet::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--line-strong);
  border-radius: inherit;
  transform: translate(12px, 12px);
}

.rack {
  padding: 14px;
  background: linear-gradient(180deg, #18202a 0%, #0f141a 100%);
}

.rack__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 6px 8px 14px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.rack__head span:last-child {
  color: #6d7783;
}

.rack__units {
  display: grid;
  gap: 6px;
}

.unit {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 9px 16px 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  background: linear-gradient(180deg, #1e2630 0%, #171e26 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  hyphens: manual;
}

.unit__ear {
  align-self: stretch;
  width: 10px;
  background:
    radial-gradient(circle at 50% 26%, #0a0e12 2.3px, transparent 2.9px),
    radial-gradient(circle at 50% 74%, #0a0e12 2.3px, transparent 2.9px);
}

.unit__no {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #6d7783;
}

.unit__text {
  display: grid;
  min-width: 0;
}

.unit__label {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.unit__meta {
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--night-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unit__act {
  display: inline-flex;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 4px;
  background: #0b0f13;
}

.unit__act i {
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--led);
  opacity: 0.22;
}

.unit__status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 7.6rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--led);
  white-space: nowrap;
}

.led {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--led);
  box-shadow: 0 0 9px var(--led-glow);
}

.rack__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 8px 4px;
  font-size: 0.875rem;
  color: var(--night-muted);
}

/* ---------- Leistungen ---------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s var(--ease);
}

.service:hover {
  background: var(--white);
}

.service__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.service__icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.service:hover .service__icon {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--led);
}

.service p {
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tags li {
  padding: 0.22rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  hyphens: manual;
}

/* ---------- Referenz ---------- */
.reference {
  background: var(--paper-2);
}

.reference__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.reference__copy {
  display: grid;
  justify-items: start;
  gap: 1.3rem;
}

.reference__copy > p:not(.eyebrow):not(.reference__client) {
  color: var(--ink-2);
}

.reference__client {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  hyphens: manual;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin-top: 0.4rem;
  border-top: 1px solid var(--line-strong);
}

.facts > div {
  padding: 0.95rem 1rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  hyphens: manual;
}

/* ---------- Netzplan (Referenz-Grafik) ---------- */
.sheet {
  isolation: isolate;
  padding: clamp(0.6rem, 1.4vw, 1rem);
  background: #0f151c;
}

.sheet figcaption {
  padding: 0.8rem 0.6rem 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.55;
  letter-spacing: 0.04em;
  color: var(--night-muted);
}

.plan {
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.plan text {
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  fill: #8f9aa6;
  stroke: none;
}

.plan-floor {
  fill: rgba(255, 255, 255, 0.035);
}

.plan-wall {
  fill: none;
  stroke: #e3e8ec;
  stroke-width: 5;
  stroke-linejoin: miter;
}

.plan-wall--inner {
  stroke-width: 3;
}

.plan-thin {
  fill: none;
  stroke: rgba(227, 232, 236, 0.5);
  stroke-width: 1;
}

.plan-furniture > * {
  fill: rgba(255, 255, 255, 0.04);
  stroke: rgba(227, 232, 236, 0.36);
  stroke-width: 1;
}

.plan-window rect {
  fill: #121920;
  stroke: none;
}

.plan-window path {
  fill: none;
  stroke: rgba(227, 232, 236, 0.75);
  stroke-width: 1;
}

.plan-dim {
  fill: none;
  stroke: rgba(227, 232, 236, 0.4);
  stroke-width: 1;
}

.plan-it {
  filter: drop-shadow(0 0 3px rgba(43, 214, 123, 0.45));
}

.plan-net {
  fill: none;
  stroke: var(--led);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plan-net-flow {
  fill: none;
  stroke: #f2fff8;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-dasharray: 2 22;
  opacity: 0;
}

.plan-device {
  fill: #0f151c;
  stroke: var(--led);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

path.plan-device:not([d$="Z"]) {
  fill: none;
}

.plan-node {
  fill: var(--led);
}

.plan-ping {
  fill: none;
  stroke: var(--led);
  stroke-width: 1.2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.plan text.plan-net-label {
  fill: var(--led);
}

.plan-title path {
  fill: #0f151c;
  stroke: rgba(227, 232, 236, 0.35);
  stroke-width: 1;
}

.plan text.plan-title__strong {
  fill: #e3e8ec;
  font-weight: 700;
}

/* ---------- Vorgehen ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.7rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: "";
  position: absolute;
  top: -4.5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}

.step__no {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.step p {
  color: var(--ink-2);
}

/* ---------- Über uns ---------- */
.about {
  padding-top: 0;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
  padding-top: var(--section);
  border-top: 1px solid var(--line);
}

.about__copy {
  display: grid;
  justify-items: start;
  gap: 1.3rem;
}

.about__copy > p:not(.eyebrow) {
  color: var(--ink-2);
}

.person {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.8rem;
  padding: 0.9rem 1.4rem 0.9rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.person__avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.person__avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2.5px solid var(--white);
  border-radius: 50%;
  background: var(--led);
}

.person__text {
  display: grid;
  line-height: 1.35;
}

.person__text strong {
  font-weight: 650;
  letter-spacing: -0.01em;
}

.person__text span {
  font-size: 0.875rem;
  color: var(--muted);
}

.principles {
  border-bottom: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
}

.principles li:first-child {
  border-top-color: var(--line-strong);
}

.principles p {
  color: var(--ink-2);
}

/* ---------- Kontakt ---------- */
.contact {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--night-text);
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.13) 1px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(90% 80% at 10% 0%, #000 0%, transparent 65%);
  mask-image: radial-gradient(90% 80% at 10% 0%, #000 0%, transparent 65%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: start;
}

.contact__copy {
  display: grid;
  justify-items: start;
  gap: 1.3rem;
}

.contact .eyebrow {
  color: var(--night-muted);
}

.contact .lead {
  color: #c0c8d1;
}

.contact :focus-visible {
  outline-color: var(--led);
}

.contact-list {
  width: 100%;
  margin-top: 1.2rem;
  border-top: 1px solid var(--night-line);
}

.contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 1rem;
  align-items: center;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--night-line);
  hyphens: manual;
}

.icon-box {
  display: grid;
  place-items: center;
  grid-row: span 2;
  align-self: start;
  width: 44px;
  height: 44px;
  border: 1px solid var(--night-line);
  border-radius: 10px;
  color: var(--led);
}

.icon-box .icon {
  width: 20px;
  height: 20px;
}

.contact-list__label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.contact-list__value {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
}

.contact-list__value a {
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 0.25em;
}

.contact-list__value a:hover {
  text-decoration-color: var(--led);
}

/* ---------- Formular ---------- */
.form {
  display: grid;
  gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--night-line);
  border-radius: 18px;
  background: var(--night-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field__opt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--night-text);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input:hover,
.field textarea:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--led);
  box-shadow: 0 0 0 3px rgba(43, 214, 123, 0.22);
}

.form .btn {
  justify-self: start;
  margin-top: 0.3rem;
}

.form__note {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--night-muted);
}

.form__note a {
  color: var(--night-text);
  text-underline-offset: 0.2em;
}

.form__status {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--led);
}

.form__status:empty {
  display: none;
}

/* ---------- Fußzeile ---------- */
.site-footer {
  background: var(--night);
  color: var(--night-muted);
  font-size: 0.9375rem;
}

.site-footer :focus-visible {
  outline-color: var(--led);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--night-line);
}

.site-footer__brand {
  display: grid;
  justify-items: start;
  gap: 1.1rem;
}

.site-footer__brand p {
  max-width: 24rem;
}

.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d7783;
}

.site-footer nav ul {
  display: grid;
  gap: 0.55rem;
}

.site-footer nav a {
  color: var(--night-text);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer nav a:hover {
  color: var(--led);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-block: 1.4rem 2rem;
  border-top: 1px solid var(--night-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ---------- Rechtstexte (Impressum, Datenschutz) ---------- */
.legal {
  padding-block: clamp(2.5rem, 6vw, 5rem) var(--section);
}

.prose {
  max-width: 46rem;
}

.prose h1 {
  margin-top: 1.2rem;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.5rem);
}

.prose h2 {
  margin-top: 2.6rem;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose p,
.prose ul,
.prose address {
  margin-top: 0.9rem;
  color: var(--ink-2);
}

.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.3rem;
}

.prose a {
  color: var(--ink);
  text-underline-offset: 0.2em;
}

.draft-note {
  margin-top: 1.6rem !important;
  padding: 0.9rem 1.1rem;
  border: 1px dashed #c99a00;
  border-radius: var(--radius-sm);
  background: #fff6cf;
  color: #594400 !important;
  font-size: 0.9375rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   Bewegung – nur, wenn das System keine reduzierte Bewegung verlangt
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Einblenden beim Scrollen */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  /* Hero-Auftakt */
  .hero__copy > *,
  .hero__visual {
    animation: rise 0.8s var(--ease) both;
  }

  .hero__copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero__copy > :nth-child(3) { animation-delay: 0.12s; }
  .hero__copy > :nth-child(4) { animation-delay: 0.18s; }
  .hero__copy > :nth-child(5) { animation-delay: 0.24s; }
  .hero__visual { animation-delay: 0.2s; }

  /* LEDs */
  .unit .led,
  .rack__foot .led {
    animation: led-breathe 2.8s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.4s);
  }

  .unit__act i {
    animation: led-blink 2.3s linear infinite;
    animation-delay: calc(var(--i, 0) * -0.37s);
  }

  .unit__act i:nth-child(2) {
    animation-duration: 1.7s;
    animation-delay: calc(var(--i, 0) * -0.53s - 0.6s);
  }

  .unit__act i:nth-child(3) {
    animation-duration: 3.1s;
    animation-delay: calc(var(--i, 0) * -0.71s - 1.4s);
  }

  /* Datenfluss im Netzplan */
  .plan-net-flow {
    opacity: 0.9;
    animation: flow 1.5s linear infinite;
  }

  .plan-ping {
    animation: ping 2.6s ease-out infinite;
  }

  .plan-ping--b {
    animation-delay: -1.3s;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes led-breathe {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 10px var(--led-glow);
  }
  50% {
    opacity: 0.72;
    box-shadow: 0 0 4px var(--led-glow);
  }
}

@keyframes led-blink {
  0%, 100% { opacity: 0.2; }
  6%, 14% { opacity: 1; }
  20% { opacity: 0.2; }
  48%, 52% { opacity: 0.9; }
  58% { opacity: 0.2; }
  80%, 84% { opacity: 0.75; }
  88% { opacity: 0.2; }
}

@keyframes flow {
  to {
    stroke-dashoffset: -48;
  }
}

@keyframes ping {
  0% {
    opacity: 0.9;
    transform: scale(1);
  }
  70%, 100% {
    opacity: 0;
    transform: scale(4);
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1239px) {
  /* etwas mehr Platz für die Textspalte, damit beide Buttons nebeneinander bleiben */
  .hero__grid {
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .hero__actions .btn {
    padding-inline: 1.15rem;
  }

  .unit__act {
    display: none;
  }

  .unit__status {
    min-width: 0;
  }
}

@media (max-width: 1023px) {
  .hero__grid,
  .reference__grid,
  .about__grid,
  .contact__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__visual {
    width: 100%;
    max-width: 36rem;
  }

  .sheet {
    max-width: 44rem;
  }

  .services,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    row-gap: 2.5rem;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* Mobile Navigation */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-grid;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.5rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 40px -28px rgba(16, 21, 27, 0.35);
  }

  .site-nav ul {
    display: grid;
    gap: 0;
  }

  .site-nav li a {
    display: block;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
    color: var(--ink);
  }

  .site-nav li a::after {
    display: none;
  }

  .site-nav .btn {
    min-height: 52px;
    font-size: 1rem;
  }

  /* Nur mit JavaScript einklappen – ohne JS bleibt das Menü sichtbar. */
  .js .site-nav {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s 0.2s;
  }

  .js .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition-delay: 0s;
  }

  html:not(.js) .nav-toggle {
    display: none;
  }

  html:not(.js) .site-header__inner {
    flex-wrap: wrap;
  }

  html:not(.js) .site-nav {
    position: static;
    width: 100%;
    padding-inline: 0;
    box-shadow: none;
    border-bottom: 0;
  }
}

@media (max-width: 639px) {
  p, li, dd {
    hyphenate-limit-chars: 11 4 4;
  }

  h1, h2, h3 {
    hyphens: auto;
    hyphenate-limit-chars: 14 5 5;
    overflow-wrap: break-word;
  }

  .services,
  .steps,
  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .hero__ref {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label icon"
      "body body";
    gap: 0.45rem 1rem;
  }

  .hero__ref-label {
    grid-area: label;
    justify-self: start;
    padding-right: 0;
    border-right: 0;
  }

  .hero__ref-body {
    grid-area: body;
  }

  .hero__ref .icon {
    grid-area: icon;
  }

  .rack {
    padding: 10px;
  }

  .rack::before,
  .sheet::before {
    transform: translate(7px, 7px);
  }

  .unit {
    gap: 10px;
    padding-right: 12px;
  }

  .unit__act {
    display: none;
  }

  .unit__status {
    min-width: 0;
  }

  .principles li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__brand {
    grid-column: auto;
  }
}

@media (max-width: 419px) {
  .unit__status span {
    display: none;
  }


  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Druck */
@media print {
  .site-header,
  .hero__visual,
  .sheet,
  .form,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .contact,
  .site-footer {
    background: #fff;
    color: #000;
  }
}

/* Porträtfoto in der Personenkarte */
img.person__avatar {
  display: block;
  object-fit: cover;
}

a.person {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s var(--ease);
}

a.person:hover {
  border-color: var(--ink);
}

a.person .icon {
  margin-left: 0.5rem;
}

/* ---------- Seite „Eren Keskin“ ---------- */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.profile__copy {
  display: grid;
  justify-items: start;
  gap: 1.3rem;
  max-width: 40rem;
}

.profile__copy > p:not(.eyebrow):not(.lead) {
  color: var(--ink-2);
}

.profile__copy .btn {
  margin-top: 0.6rem;
}

.portrait {
  width: 100%;
  max-width: 20rem;
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: var(--white);
}

@media (min-width: 1024px) {
  .profile {
    grid-template-columns: minmax(0, 1fr) 22rem;
  }

  .portrait {
    max-width: 22rem;
    margin-top: 3.2rem;
  }
}

/* ---------- Branchen-Know-how ---------- */
.sector .about__grid {
  padding-top: 0;
  border-top: 0;
}

/* ---------- ohne Inline-Styles (strikte Content-Security-Policy) ---------- */
.sprite {
  position: absolute;
}

.unit:nth-child(2) { --i: 1; }
.unit:nth-child(3) { --i: 2; }
.unit:nth-child(4) { --i: 3; }
.unit:nth-child(5) { --i: 4; }
.unit:nth-child(6) { --i: 5; }
.unit:nth-child(7) { --i: 6; }
