/* ==========================================================================
   MK Industrieservice, Maulbronn  |  Demo-Gestaltungsvorschlag
   Charakter: praezise deutsche Industrietechnik. Dunkler, souveraener
   B2B-Auftritt: Anthrazit/Schwarz, Cyan #0099CB als Leitakzent,
   Rot #CC0001 als scharfer Zweitakzent. Hexagon-Designsystem (aus dem
   Marken-Logo abgeleitet), Blueprint-Anklaenge, feine Linien, Grain.
   Schriften: Barlow Condensed (Headlines) + Barlow (Body), lokal gehostet.
   ========================================================================== */

/* ---------- Schriften (lokal, DSGVO-konform) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("../fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Designsystem ---------- */
:root {
  --bg:          #0b0e11;   /* tiefes blau-schwarzes Anthrazit */
  --bg-2:        #0f1318;   /* leicht abgesetzte Sektion */
  --panel:       #131920;   /* Kartengrund */
  --panel-2:     #161e26;   /* hellere Karte / Hover */

  --ink:         #e9eef2;   /* Fliesstext hell */
  --soft:        #a9b6c0;   /* Sekundaertext */
  --dim:         #7b8893;   /* feine Hinweise */

  --cyan:        #0099cb;   /* Leitakzent (Markenfarbe Hexagon K) */
  --cyan-bright: #2cc1f0;   /* Hover / Glanz */
  --cyan-deep:   #006599;   /* dunkler Markenverlauf */
  --cyan-dim:    rgba(0, 153, 203, 0.14);

  --red:         #cc0001;   /* Zweitakzent (Markenfarbe Hexagon M) */
  --red-bright:  #e8343a;   /* Hover */
  --red-deep:    #a50020;   /* dunkler Markenverlauf */

  --line:        #222b34;   /* Trennlinien */
  --line-soft:   #181f26;   /* zarte Linien */

  --font-display: "Barlow Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;

  --container: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* flaches Hexagon (flat-top) als Clip-Form */
  --hex: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

/* ---------- Reset & Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.03rem;
  line-height: 1.72;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* feines Korn ueber der ganzen Seite (Atmosphaere statt platter Flaechen) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

a { color: var(--cyan-bright); text-decoration: none; }

::selection { background: var(--cyan); color: #fff; }

:focus-visible {
  outline: 3px solid var(--cyan-bright);
  outline-offset: 2px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typografie ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  letter-spacing: 0.015em;
  color: var(--ink);
  text-wrap: balance;
  hyphens: manual;
  overflow-wrap: break-word;
}

h1 { font-size: clamp(2.7rem, 7.2vw, 5rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: 0.03em; }

p { color: var(--soft); }
p strong, li strong { color: var(--ink); font-weight: 600; }

.mark { color: var(--cyan-bright); }
.mark--red { color: var(--red-bright); }

/* Eyebrow: technische Zeile mit Hexagon-Marker und Index-Nummer */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: "";
  width: 11px;
  height: 10px;
  flex-shrink: 0;
  background: var(--cyan);
  clip-path: var(--hex);
}
.eyebrow--red { color: var(--red-bright); }
.eyebrow--red::before { background: var(--red); }
.eyebrow .idx {
  color: var(--dim);
  letter-spacing: 0.12em;
}

.lead {
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  color: var(--ink);
  max-width: 42rem;
}

/* ---------- Demo-Leiste ---------- */
.demo-bar {
  background: #07090b;
  color: var(--soft);
  font-size: 0.8rem;
  text-align: center;
  padding: 0.55rem var(--pad);
  line-height: 1.5;
  border-bottom: 1px solid var(--cyan-deep);
  position: relative;
  z-index: 60;
}
.demo-bar strong { color: var(--cyan-bright); font-weight: 600; }

/* ---------- Header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 12, 15, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
}
.brand__mark { width: 58px; height: auto; flex-shrink: 0; }
.brand__name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.brand__name small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.59rem;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-top: 0.34rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.8rem);
}
.nav a {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.04rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav a:hover { color: var(--cyan-bright); }
.nav a[aria-current="page"] {
  color: var(--cyan-bright);
  border-bottom-color: var(--cyan);
}
.nav__cta {
  background: var(--red);
  color: #fff !important;
  padding: 0.5rem 1.2rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav__cta:hover { background: var(--red-bright); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--cyan-bright);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ---------- Sektionen ---------- */
.section {
  padding-block: clamp(3.2rem, 7vw, 5.8rem);
  position: relative;
}
.section--alt {
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section__head h2 { margin-bottom: 0.9rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { justify-content: center; }

/* feine technische Trennlinie */
.rule-tech {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan-deep) 18%, var(--cyan-deep) 82%, transparent);
  opacity: 0.55;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.4rem, 8vw, 6.6rem) clamp(3rem, 7vw, 5.6rem);
  background:
    radial-gradient(60rem 32rem at 86% -10%, rgba(0, 153, 203, 0.16) 0%, transparent 62%),
    radial-gradient(44rem 26rem at -10% 110%, rgba(165, 0, 32, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, #0d1117 0%, var(--bg) 75%);
  overflow: hidden;
}
/* Blueprint-Raster */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 153, 203, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 203, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 85%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 { margin-block: 0.5rem 1.3rem; }
.hero .lead { color: var(--soft); }
.hero .lead strong { color: var(--ink); }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero__tel {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.hero__tel:hover { color: var(--cyan-bright); }
.hero__tel svg { width: 20px; height: 20px; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.6rem;
  margin-top: 2.5rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.hero__fact { line-height: 1.3; }
.hero__fact b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}
.hero__fact span {
  font-size: 0.83rem;
  color: var(--dim);
  letter-spacing: 0.05em;
}

/* Hero-Emblem rechts */
.hero__art {
  display: grid;
  place-items: center;
  position: relative;
}
.hero__art svg {
  width: min(380px, 72vw);
  height: auto;
  filter: drop-shadow(0 26px 48px rgba(0, 0, 0, 0.6));
}
.hero__coords {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.78rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--cyan);
  color: var(--cyan-bright);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease), border-color 0.2s, box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  background: var(--cyan-dim);
  box-shadow: 0 10px 26px rgba(0, 153, 203, 0.16);
}
.btn--red {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}
.btn--red:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  box-shadow: 0 10px 26px rgba(204, 0, 1, 0.25);
}
.btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #fff;
}
.btn--solid:hover { background: var(--cyan-bright); border-color: var(--cyan-bright); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--soft); background: rgba(233, 238, 242, 0.05); box-shadow: none; }
/* Link-Buttons gegen Kontext-Link-Regeln absichern */
a.btn.btn--red { color: #fff; }
a.btn.btn--solid { color: #fff; }
a.btn.btn--ghost { color: var(--ink); }

/* ---------- Hexagon-Aufzaehlungen ---------- */
.hex-list { list-style: none; }
.hex-list li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.55rem;
  color: var(--soft);
}
.hex-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 11px;
  height: 10px;
  background: var(--cyan);
  clip-path: var(--hex);
}
.hex-list--red li::before { background: var(--red); }

/* ---------- Leistungs-Karten (Startseite) ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.4rem;
  transition: border-color 0.25s, transform 0.25s var(--ease), background 0.25s;
}
.svc-card:hover {
  border-color: var(--cyan-deep);
  background: var(--panel-2);
  transform: translateY(-4px);
}
/* technische Eck-Markierung oben rechts */
.svc-card::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--cyan-deep);
  border-right: 2px solid var(--cyan-deep);
  opacity: 0.7;
  transition: border-color 0.25s, opacity 0.25s;
}
.svc-card:hover::after { border-color: var(--cyan-bright); opacity: 1; }
.svc-card img {
  width: min(132px, 46%);
  margin-bottom: 1.1rem;
}
.svc-card h3 {
  font-size: 1.32rem;
  margin-bottom: 0.5rem;
}
.svc-card p {
  font-size: 0.93rem;
  line-height: 1.6;
  flex-grow: 1;
}
.svc-card .svc-card__more {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}
.svc-card .svc-card__more::after {
  content: " \2192";
}
/* die Karte komplett klickbar machen */
.svc-card__link { position: static; color: inherit; }
.svc-card__link::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* ---------- Anlagentypen ---------- */
.types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.type-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  overflow: hidden;
}
.type-card--red { border-left-color: var(--red); }
.type-card__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 2.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  line-height: 1;
}
.type-card--red .type-card__tag { color: var(--red-bright); }
.type-card__sub {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.88rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0.4rem 0 0.9rem;
}
.type-card p { font-size: 0.95rem; line-height: 1.62; }
/* grosses Deko-Hexagon im Hintergrund */
.type-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -38px;
  width: 110px;
  height: 100px;
  background: var(--cyan);
  clip-path: var(--hex);
  opacity: 0.06;
}
.type-card--red::after { background: var(--red); opacity: 0.07; }

/* ---------- Qualifikationen-Streifen ---------- */
.quali-band {
  background:
    radial-gradient(48rem 20rem at 50% -40%, rgba(0, 153, 203, 0.1) 0%, transparent 70%),
    #0a0d10;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.quali-band__label {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2rem;
}
.quali-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.quali {
  text-align: center;
  padding-inline: 0.6rem;
}
.quali__hex {
  width: 54px;
  height: 50px;
  margin: 0 auto 0.9rem;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, var(--cyan) 0%, var(--cyan-deep) 100%);
  clip-path: var(--hex);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: #fff;
}
.quali__hex--red { background: linear-gradient(160deg, var(--red) 0%, var(--red-deep) 100%); }
.quali b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
}
.quali span {
  display: block;
  font-size: 0.85rem;
  color: var(--dim);
  margin-top: 0.35rem;
  line-height: 1.5;
}
.quali-band__note {
  text-align: center;
  font-size: 0.83rem;
  color: var(--dim);
  margin-top: 2rem;
}

/* ---------- Zweispalter (Ueber/Einzugsgebiet) ---------- */
.media-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.media-grid h2 { margin-bottom: 1rem; }
.media-grid p + p { margin-top: 1rem; }

/* Branchen-Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.42rem 0.85rem;
}
.chip::before {
  content: "";
  width: 9px;
  height: 8px;
  background: var(--cyan);
  clip-path: var(--hex);
}
.chip:nth-child(3n)::before { background: var(--red); }

/* Info-Panel (dunkle Tafel mit Daten) */
.data-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
}
.data-panel::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--cyan-deep);
  border-left: 2px solid var(--cyan-deep);
  opacity: 0.7;
}
.data-panel::after {
  content: "";
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--cyan-deep);
  border-right: 2px solid var(--cyan-deep);
  opacity: 0.7;
}
.data-panel dl { display: grid; gap: 1.05rem; }
.data-panel dt {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}
.data-panel dd {
  color: var(--soft);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* ---------- CTA-Band ---------- */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(3.4rem, 8vw, 6rem);
  background:
    radial-gradient(50rem 26rem at 50% 120%, rgba(0, 153, 203, 0.16) 0%, transparent 65%),
    linear-gradient(180deg, var(--bg) 0%, #0d1117 100%);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 153, 203, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 203, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(0deg, rgba(0,0,0,0.9), transparent 80%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0.9), transparent 80%);
  pointer-events: none;
}
.cta-band > .container { position: relative; z-index: 1; }
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 36rem; margin-inline: auto; }
.cta-band .tel {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  letter-spacing: 0.06em;
  color: var(--cyan-bright);
  margin-block: 1.3rem 0.4rem;
}
.cta-band .tel:hover { color: #fff; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.4rem;
}

/* ---------- Leistungen-Detailseite ---------- */
.page-head {
  position: relative;
  padding-block: clamp(2.8rem, 6vw, 4.6rem);
  background:
    radial-gradient(52rem 26rem at 80% -30%, rgba(0, 153, 203, 0.14) 0%, transparent 62%),
    linear-gradient(180deg, #0d1117 0%, var(--bg) 90%);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 153, 203, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 153, 203, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 90%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); margin-bottom: 0.9rem; }
.page-head .lead { max-width: 46rem; }

.ls-item {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(1.8rem, 4.5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.4rem, 5vw, 3.8rem);
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 110px;
}
.ls-item:last-of-type { border-bottom: none; }
.ls-item:nth-of-type(even) .ls-item__art { order: 2; }
.ls-item__art {
  display: grid;
  place-items: center;
}
.ls-item__art img {
  width: min(300px, 78vw);
}
.ls-item h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin-bottom: 0.85rem;
}
.ls-item p { margin-bottom: 1.1rem; }
.ls-item .hex-list { margin-top: 0.3rem; }
.ls-item .hex-list li { font-size: 0.98rem; }

/* ---------- Ueber-Seite ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 0.45fr 0.55fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.timeline { list-style: none; margin-top: 0.6rem; }
.timeline li {
  position: relative;
  padding: 0 0 1.4rem 1.9rem;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}
.timeline li:last-child { padding-bottom: 0.2rem; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4em;
  width: 13px;
  height: 12px;
  background: var(--cyan);
  clip-path: var(--hex);
}
.timeline li.timeline--red::before { background: var(--red); }
.timeline b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.timeline span { font-size: 0.94rem; color: var(--soft); line-height: 1.55; display: block; margin-top: 0.2rem; }

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: clamp(1.8rem, 4vw, 3.4rem);
  align-items: start;
}
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  margin-bottom: 1.1rem;
}
.contact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.18rem;
  margin-bottom: 0.6rem;
}
.contact-card h3::before {
  content: "";
  width: 12px;
  height: 11px;
  background: var(--cyan);
  clip-path: var(--hex);
}
.contact-card p { font-size: 0.97rem; }
.contact-card a { color: var(--cyan-bright); }
.contact-card a:hover { color: #fff; }
.contact-card .big {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  color: var(--ink);
  display: inline-block;
  margin-top: 0.2rem;
}
.contact-card .big:hover { color: var(--cyan-bright); }

/* Formular */
.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  position: relative;
}
.form-panel::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--cyan-deep);
  border-right: 2px solid var(--cyan-deep);
  opacity: 0.7;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.2rem;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 0.4rem;
}
.field label .req { color: var(--red-bright); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232cc1f0' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 153, 203, 0.18);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red-bright);
  box-shadow: 0 0 0 3px rgba(204, 0, 1, 0.14);
}
.field-error {
  display: none;
  font-size: 0.84rem;
  color: var(--red-bright);
  margin-top: 0.35rem;
}
.field.has-error .field-error { display: block; }

/* Checkbox */
.consent {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  gap: 0.7rem;
  align-items: flex-start;
}
.consent input {
  appearance: none;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  background: #0d1117;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.consent input:checked {
  background: var(--cyan);
  border-color: var(--cyan);
}
.consent input:checked::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.consent label {
  font-size: 0.9rem;
  color: var(--soft);
  line-height: 1.55;
  cursor: pointer;
}
.consent.has-error label { color: var(--red-bright); }
.consent.has-error input { border-color: var(--red-bright); }

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
}
.form-hint { font-size: 0.84rem; color: var(--dim); }

/* Erfolgs-Panel */
.form-success {
  display: none;
  grid-column: 1 / -1;
  background: rgba(0, 153, 203, 0.08);
  border: 1px solid var(--cyan-deep);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin-top: 0.4rem;
}
.form-success.is-shown { display: block; }
.form-success b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan-bright);
  margin-bottom: 0.3rem;
}
.form-success p { font-size: 0.93rem; }
.form-success .demo-note-inline {
  display: block;
  font-size: 0.83rem;
  color: var(--dim);
  margin-top: 0.5rem;
}

/* ---------- Rechtsseiten ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: 1.6rem; }
.legal h2 {
  font-size: 1.4rem;
  margin: 2.1rem 0 0.6rem;
}
.legal p, .legal address { color: var(--soft); font-style: normal; }
.legal a { color: var(--cyan-bright); }
.legal a:hover { color: #fff; }
.legal .placeholder { color: var(--dim); }

.demo-note {
  background: rgba(204, 0, 1, 0.07);
  border: 1px solid rgba(204, 0, 1, 0.4);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  font-size: 0.94rem;
  color: var(--soft);
  margin-bottom: 1.8rem;
}
.demo-note strong { color: var(--ink); }

/* ---------- Footer ---------- */
.site-foot {
  background: #07090b;
  border-top: 1px solid var(--line-soft);
  padding-top: clamp(2.4rem, 5vw, 3.6rem);
  font-size: 0.95rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2.2rem;
}
.site-foot h3 {
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--cyan-bright);
  margin-bottom: 0.8rem;
}
.site-foot ul { list-style: none; }
.site-foot li { margin-bottom: 0.4rem; color: var(--soft); }
.site-foot a { color: var(--soft); transition: color 0.2s; }
.site-foot a:hover { color: var(--cyan-bright); }
.foot-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--dim);
}

/* ---------- Scroll-Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.12s; }
.reveal[data-delay="2"] { transition-delay: 0.24s; }
.reveal[data-delay="3"] { transition-delay: 0.36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 1020px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .quali-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
}

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #0a0d10;
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.2rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem 0.2rem;
    border-bottom: 1px solid var(--line-soft);
    font-size: 1.25rem;
  }
  .nav a[aria-current="page"] { border-bottom-color: var(--line-soft); }
  .nav__cta {
    margin-top: 0.9rem;
    text-align: center;
  }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art svg { width: min(250px, 58vw); }
  .hero__coords { margin-top: 0.9rem; }

  .media-grid, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .types { grid-template-columns: 1fr; }
  .ls-item { grid-template-columns: 1fr; gap: 1.4rem; }
  .ls-item:nth-of-type(even) .ls-item__art { order: 0; }
  .ls-item__art img { width: min(230px, 64vw); }
  .form-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
  .quali-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .brand__name { font-size: 1.18rem; }
  .brand__mark { width: 48px; }
  .hero__facts { gap: 1.1rem 1.8rem; }
}
