/* =========================================================
   HiTex – IT-Solutions
   Farbwelt aus dem Logo: Cyan #69D7F9 → Blau #4A8CBF → Navy #262262
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --cyan: #69d7f9;
  --cyan-deep: #1e9fd0;
  --blue: #4a8cbf;
  --navy: #262262;
  --navy-soft: #2d3572;

  --grad: linear-gradient(135deg, #69d7f9 0%, #4a8cbf 48%, #262262 100%);
  --grad-soft: linear-gradient(135deg, rgba(105, 215, 249, .16), rgba(38, 34, 98, .16));

  --bg: #f5f8fc;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #12163a;
  --text-soft: #4f5878;
  --muted: #6b7495;
  --border: rgba(38, 34, 98, .12);
  --border-strong: rgba(38, 34, 98, .2);
  --accent: #1c7fb4;
  --accent-ink: #ffffff;
  --shadow: 0 1px 2px rgba(18, 22, 58, .05), 0 12px 32px -12px rgba(18, 22, 58, .18);
  --shadow-lg: 0 24px 60px -22px rgba(18, 22, 58, .35);
  --grid-line: rgba(38, 34, 98, .055);
  --glow-1: rgba(105, 215, 249, .38);
  --glow-2: rgba(38, 34, 98, .18);

  --radius: 16px;
  --radius-lg: 22px;
  --wrap: 1160px;
  --font-head: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(.22, .68, .36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b1a;
    --bg-alt: #0c1024;
    --surface: #11162f;
    --surface-2: #171d3c;
    --text: #eaf0ff;
    --text-soft: #b5bfe0;
    --muted: #8d97bd;
    --border: rgba(140, 175, 255, .14);
    --border-strong: rgba(140, 175, 255, .26);
    --accent: #69d7f9;
    --accent-ink: #06203a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .8);
    --shadow-lg: 0 30px 70px -26px rgba(0, 0, 0, .9);
    --grid-line: rgba(140, 175, 255, .06);
    --glow-1: rgba(105, 215, 249, .22);
    --glow-2: rgba(74, 140, 191, .18);
  }
}

:root[data-theme="dark"] {
  --bg: #080b1a;
  --bg-alt: #0c1024;
  --surface: #11162f;
  --surface-2: #171d3c;
  --text: #eaf0ff;
  --text-soft: #b5bfe0;
  --muted: #8d97bd;
  --border: rgba(140, 175, 255, .14);
  --border-strong: rgba(140, 175, 255, .26);
  --accent: #69d7f9;
  --accent-ink: #06203a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 16px 40px -18px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 70px -26px rgba(0, 0, 0, .9);
  --grid-line: rgba(140, 175, 255, .06);
  --glow-1: rgba(105, 215, 249, .22);
  --glow-2: rgba(74, 140, 191, .18);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.15rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.03rem; font-weight: 600; }
p  { margin: 0 0 1em; color: var(--text-soft); }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--cyan); color: #06203a; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 1rem; z-index: 999;
  padding: .6rem 1rem; border-radius: 0 0 10px 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; text-decoration: none; }

/* ---------- Hintergrund ---------- */
.bg-canvas { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-grid {
  position: absolute; inset: -10%;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 78%);
}

.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
  animation: drift 22s ease-in-out infinite alternate;
}
.bg-glow--1 { width: 46vw; height: 46vw; top: -14vw; right: -10vw; background: var(--glow-1); }
.bg-glow--2 { width: 40vw; height: 40vw; top: 42vw; left: -14vw; background: var(--glow-2); animation-delay: -8s; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3vw, 5vw, 0) scale(1.15); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  padding: .85rem 0;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  padding: .5rem 0;
}

.header-inner { display: flex; align-items: center; gap: 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); }
.brand-text {
  font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: -.03em;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.nav a {
  position: relative; padding: .5rem .8rem; border-radius: 10px;
  color: var(--text-soft); font-size: .94rem; font-weight: 500; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav a.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .28rem;
  height: 2px; border-radius: 2px; background: var(--grad);
}
.nav .nav-cta {
  margin-left: .4rem; color: var(--accent-ink); background: var(--navy);
  padding: .5rem 1.05rem;
}
:root[data-theme="dark"] .nav .nav-cta { background: var(--cyan); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav .nav-cta { background: var(--cyan); } }
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.nav .nav-cta.is-active::after { display: none; }

.header-tools { display: flex; align-items: center; gap: .5rem; }

.lang-switch {
  display: flex; padding: 3px; gap: 2px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.lang-btn {
  border: 0; background: none; cursor: pointer;
  font: 600 .76rem/1 var(--font-body); letter-spacing: .04em;
  color: var(--muted); padding: .38rem .6rem; border-radius: 999px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-btn:hover { color: var(--text); text-decoration: none; }
.lang-btn.is-active { background: var(--grad); color: #fff; }
a.lang-btn { display: inline-flex; align-items: center; text-decoration: none; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text);
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.icon-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

#theme-toggle .ico-moon { display: none; }
:root[data-theme="dark"] #theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] #theme-toggle .ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #theme-toggle .ico-sun { display: none; }
  :root:not([data-theme="light"]) #theme-toggle .ico-moon { display: block; }
}

.menu-toggle { display: none; flex-direction: column; gap: 4px; }
.menu-toggle span { width: 17px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  font: 600 .97rem/1 var(--font-body); text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  position: relative; color: #fff; background: var(--grad);
  background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 10px 26px -12px rgba(38, 34, 98, .8);
}
.btn-primary:hover { background-position: 100% 50%; box-shadow: 0 16px 34px -12px rgba(30, 159, 208, .7); }

.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-sm { padding: .68rem 1.15rem; font-size: .9rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

.section-head { max-width: 640px; margin: 0 auto clamp(2.5rem, 5vw, 3.75rem); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-sub { color: var(--muted); font-size: 1.04rem; margin: 0; }

.kicker {
  display: inline-block; margin: 0 0 .85rem;
  font: 600 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
  padding-left: 2.2rem; position: relative;
}
.kicker::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 1.7rem; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.section-head:not(.section-head--left) .kicker { padding-left: 0; }
.section-head:not(.section-head--left) .kicker::before { display: none; }

.grad {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; background-size: 200% 200%;
  animation: gradShift 9s ease-in-out infinite;
}
:root[data-theme="dark"] .grad { background: linear-gradient(120deg, #a5e8ff, #69d7f9 45%, #6d8fe0); -webkit-background-clip: text; background-clip: text; background-size: 200% 200%; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grad { background: linear-gradient(120deg, #a5e8ff, #69d7f9 45%, #6d8fe0); -webkit-background-clip: text; background-clip: text; background-size: 200% 200%; }
}
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3.5rem, 7vw, 6rem); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero-copy h1 { margin-bottom: .45em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .42rem .95rem .42rem .8rem; margin-bottom: 1.4rem;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: .84rem; font-weight: 500; color: var(--text-soft); box-shadow: var(--shadow);
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); flex: none; }
.pulse-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); max-width: 34em; color: var(--text-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.6rem; }

.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem clamp(1rem, 2.5vw, 2rem); max-width: 34rem; }
.hero-stats li { display: flex; flex-direction: column; gap: .1rem; }
.hero-stats strong {
  font-family: var(--font-head); font-size: 1.85rem; font-weight: 700; line-height: 1;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="dark"] .hero-stats strong { background: linear-gradient(120deg, #a5e8ff, #69d7f9); -webkit-background-clip: text; background-clip: text; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-stats strong { background: linear-gradient(120deg, #a5e8ff, #69d7f9); -webkit-background-clip: text; background-clip: text; }
}
.hero-stats span { font-size: .84rem; color: var(--muted); line-height: 1.4; }

/* Hero-Visual */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 340px; }
.orb {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--cyan), transparent 62%),
              radial-gradient(circle at 72% 78%, var(--navy-soft), transparent 60%);
  filter: blur(46px); opacity: .5; animation: drift 18s ease-in-out infinite alternate;
}

.hero-card {
  position: relative; width: 100%; max-width: 390px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

.hero-card-bar {
  display: flex; align-items: center; gap: .4rem;
  padding: .7rem .95rem; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.hero-card-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.hero-card-bar i:first-child { background: var(--cyan); }
.hero-card-bar span { margin-left: auto; font-size: .72rem; color: var(--muted); font-family: var(--font-head); }

.flow { padding: 1.4rem 1.25rem; display: grid; gap: 0; }
.flow-node {
  display: flex; flex-direction: column; padding: .7rem .95rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-alt);
}
.flow-node span { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--text); }
.flow-node small { font-size: .76rem; color: var(--muted); }
.flow-node--done { border-color: color-mix(in srgb, var(--cyan) 60%, transparent); }
.flow-node--done span { color: var(--accent); }

.flow-line { height: 26px; display: grid; place-items: center; }
.flow-line i {
  display: block; width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--border-strong), var(--cyan));
  position: relative; overflow: visible;
}
.flow-line i::after {
  content: ""; position: absolute; left: 50%; top: 0; width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: travel 2.6s linear infinite;
}
.flow-line:nth-of-type(4) i::after { animation-delay: .5s; }
.flow-line:nth-of-type(6) i::after { animation-delay: 1s; }
@keyframes travel { 0% { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

.chip {
  position: absolute; padding: .45rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font: 600 .78rem/1 var(--font-head); color: var(--text-soft); white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip--1 { top: 6%; left: 0; animation-delay: -1s; }
.chip--2 { top: 30%; right: 0; animation-delay: -3s; }
.chip--3 { bottom: 24%; left: 1%; animation-delay: -2s; }
.chip--4 { bottom: 5%; right: 2%; animation-delay: -4.5s; }

/* ---------- Cards / Leistungen ---------- */
.cards {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.card {
  position: relative; padding: 1.75rem 1.6rem 1.5rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .35s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--cyan) 16%, transparent), transparent 65%);
  transition: opacity .35s var(--ease); pointer-events: none;
}
.card::after {
  content: ""; position: absolute; top: 0; left: 0; width: 0; height: 3px;
  background: var(--grad); transition: width .45s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card:hover::after { width: 100%; }

.card > * { position: relative; }

.card-ico {
  width: 46px; height: 46px; margin-bottom: 1.15rem; display: grid; place-items: center;
  border-radius: 13px; background: var(--grad-soft); border: 1px solid var(--border);
  color: var(--accent);
  transition: transform .35s var(--ease);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }
.card-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.card p { font-size: .95rem; margin-bottom: 1.1rem; }

.card--accent { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); }
.card--accent::after { width: 100%; }

.tags { display: flex; flex-wrap: wrap; gap: .38rem; }
.tags li {
  padding: .28rem .62rem; border-radius: 7px; background: var(--surface-2);
  font-size: .74rem; font-weight: 500; color: var(--muted); border: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.card:hover .tags li { color: var(--text-soft); border-color: var(--border); }

/* ---------- Marquee ---------- */
.marquee {
  display: flex; gap: 0; overflow: hidden; user-select: none;
  padding: .4rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; flex: none; gap: .7rem; padding-right: .7rem;
  animation: scroll 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  flex: none; padding: .6rem 1.15rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  font: 600 .87rem/1 var(--font-head); color: var(--text-soft); white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.marquee-track span:hover { color: var(--accent); border-color: var(--accent); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Zielgruppe ---------- */
.audience { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }

.aud-card {
  position: relative; padding: 2.1rem 1.6rem 1.6rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.aud-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.aud-num {
  position: absolute; top: 1.1rem; right: 1.35rem;
  font: 700 2.6rem/1 var(--font-head); letter-spacing: -.04em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .22;
}
.aud-card p { font-size: .95rem; margin: 0; }

.enterprise {
  margin-top: 1.25rem; padding: 1.9rem 1.8rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 55%),
    var(--surface);
  position: relative; overflow: hidden;
}
.enterprise::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: var(--glow-1); filter: blur(50px); pointer-events: none;
}
.enterprise > div { position: relative; max-width: 46em; }
.enterprise h3 { margin-bottom: .3em; }
.enterprise p { margin: 0; font-size: .95rem; }
.enterprise .btn { position: relative; flex: none; }

/* ---------- Ablauf ---------- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: s; }
.step {
  position: relative; padding: 1.6rem 1.4rem 1.3rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: transform .35s var(--ease), border-color .3s var(--ease);
}
.step:hover { transform: translateY(-4px); border-color: var(--accent); }
.step-n {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1rem;
  border-radius: 10px; background: var(--grad); color: #fff;
  font: 700 .95rem/1 var(--font-head);
}
.step h3 { font-size: 1.05rem; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- Über mich ---------- */
.about { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.about-side {
  position: sticky; top: 100px;
  padding: 1.8rem 1.5rem; text-align: center;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow);
}
.avatar {
  width: 92px; height: 92px; margin: 0 auto 1.1rem; display: grid; place-items: center;
  border-radius: 26px; background: var(--grad); color: #fff;
  font: 700 2rem/1 var(--font-head); letter-spacing: -.02em;
  box-shadow: 0 14px 34px -14px rgba(38, 34, 98, .8);
  transition: transform .5s var(--ease), border-radius .5s var(--ease);
}
.about-side:hover .avatar { transform: rotate(-6deg); border-radius: 50%; }
.about-name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; color: var(--text); margin: 0 0 .15em; }
.about-role { font-size: .86rem; color: var(--muted); margin-bottom: 1.4rem; }

.about-facts { display: grid; gap: .7rem; text-align: left; padding-top: 1.3rem; border-top: 1px solid var(--border); }
.about-facts li { display: flex; align-items: center; gap: .6rem; font-size: .87rem; color: var(--text-soft); }
.about-facts svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.about-facts a { word-break: break-all; }

.about-p { font-size: 1.02rem; }

.timeline { margin-top: 2.6rem; padding-left: 1.6rem; position: relative; display: grid; gap: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: .5rem; bottom: .5rem; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--blue), transparent);
  border-radius: 2px;
}
.tl-item { position: relative; }
.tl-dot {
  position: absolute; left: -1.6rem; top: .42rem; width: 12px; height: 12px;
  border-radius: 4px; background: var(--bg); border: 2px solid var(--cyan);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.tl-item:hover .tl-dot { background: var(--cyan); transform: rotate(45deg) scale(1.15); }
.tl-item h4 { margin-bottom: .25em; }
.tl-item p { font-size: .92rem; margin: 0; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.contact-list { display: grid; gap: 1rem; margin-top: 2rem; }
.contact-list li { display: flex; align-items: center; gap: .9rem; }
.ci {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border); color: var(--accent);
}
.ci svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list small { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list span { font-weight: 500; color: var(--text); }
.contact-list a { color: var(--accent); }

.contact-form {
  padding: 1.9rem 1.75rem; display: grid; gap: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow);
}
.field { display: grid; gap: .4rem; }
.field label { font-size: .84rem; font-weight: 600; color: var(--text-soft); }

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%; padding: .8rem .95rem; color: var(--text);
  font: 400 .95rem/1.5 var(--font-body);
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: 11px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.contact-form textarea { resize: vertical; min-height: 118px; }
.contact-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7495' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .8rem center; background-size: 17px;
  padding-right: 2.4rem;
}
.contact-form :is(input, select, textarea):focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.contact-form :is(input, textarea).is-invalid { border-color: #e0576b; box-shadow: 0 0 0 3px rgba(224, 87, 107, .16); }

.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .84rem; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: .18rem; flex: none; accent-color: var(--accent); cursor: pointer; }

.form-note { font-size: .78rem; color: var(--muted); margin: 0; text-align: center; }
.form-status { margin: 0; font-size: .87rem; font-weight: 500; text-align: center; min-height: 1.2em; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #e0576b; }

/* ---------- Referenz ---------- */
.ref-list { display: grid; gap: 1.4rem; }

.ref-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background:
    linear-gradient(125deg, color-mix(in srgb, var(--cyan) 9%, transparent), transparent 58%),
    var(--surface);
  transition: border-color .3s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.ref-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.ref-card::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px;
  border-radius: 50%; background: var(--glow-1); filter: blur(55px); pointer-events: none;
}
.ref-card > * { position: relative; }

/* Das Vereinslogo ist dunkle Strichzeichnung und braucht in beiden
   Designs eine helle Fläche, damit es sichtbar bleibt. */
/* Alle drei Kacheln gleich hoch, damit die Karten als Reihe wirken -
   unabhaengig davon, ob das Logo quadratisch oder ein breiter Schriftzug ist. */
.ref-logo, .ref-visual { min-height: 168px; }

.ref-logo {
  display: grid; place-items: center;
  padding: 1.15rem 1.4rem; margin-bottom: 1.35rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.ref-logo img {
  display: block; width: auto; height: auto;
  max-width: 100%; max-height: 132px;
}

/* Für Projekte ohne Bildmaterial: eine gezeichnete Skizze
   statt eines Platzhalters. */
.ref-visual {
  display: grid; place-items: center;
  padding: .9rem 1.1rem; margin-bottom: 1.35rem;
  border: 1px solid var(--border); border-radius: 14px;
  background:
    linear-gradient(140deg, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 62%),
    var(--bg-alt);
}
.ref-visual svg { display: block; width: 100%; max-width: 205px; height: auto; }

.knx-house .hh-outline,
.knx-house .hh-roof {
  fill: none; stroke: var(--muted); stroke-width: 2.2; opacity: .6;
  stroke-linecap: round; stroke-linejoin: round;
}
.knx-house .hh-roof { stroke: var(--accent); opacity: .8; }
.knx-house .hh-bus { fill: none; stroke: url(#knxbus); stroke-width: 2.6; stroke-linecap: round; }
.knx-house .hh-stub { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; opacity: .45; }
.knx-house .hh-pulse { fill: var(--cyan); animation: knxPulse 3.4s linear infinite; }

.knx-house .hh-win {
  fill: var(--cyan); stroke: var(--accent); stroke-width: 1.6;
  animation: knxGlow 3.4s ease-in-out infinite;
}
.knx-house .hh-win--1 { animation-delay: .1s; }
.knx-house .hh-win--2 { animation-delay: .75s; }
.knx-house .hh-win--3 { animation-delay: 1.4s; }

@keyframes knxPulse {
  0%   { transform: translateX(0); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { transform: translateX(140px); opacity: 0; }
}
@keyframes knxGlow {
  0%, 100% { fill-opacity: .12; }
  45%      { fill-opacity: .58; }
}

.ref-card h3 { margin-bottom: .18em; font-size: 1.16rem; }
.ref-org { margin-bottom: .95em; font-size: .85rem; color: var(--muted); }
.ref-desc { font-size: .95rem; margin-bottom: 1.2em; }

.ref-cols {
  display: grid; align-content: center; gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
}
.ref-col h4 {
  margin-bottom: .85em; padding-bottom: .6em;
  border-bottom: 1px solid var(--border);
  font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--accent);
}
.ref-col .tags li { border-color: var(--border); color: var(--text-soft); }

/* ---------- Häufige Fragen ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .7rem; }

.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: color-mix(in srgb, var(--cyan) 45%, var(--border)); box-shadow: var(--shadow); }

.faq-item summary {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  padding: 1.05rem 1.3rem; list-style: none;
  font-family: var(--font-head); font-weight: 600; font-size: 1.01rem; color: var(--text);
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }
.faq-item summary:hover { color: var(--accent); }
.faq-item summary span { flex: 1; }
.faq-item summary svg {
  width: 17px; height: 17px; flex: none;
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  transition: transform .3s var(--ease);
}
.faq-item[open] summary svg { transform: rotate(135deg); }

.faq-a { padding: 0 1.3rem 1.15rem; }
.faq-a p { margin: 0; font-size: .95rem; max-width: 62ch; }
.faq-item[open] .faq-a { animation: faqIn .32s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 2rem; padding: 2.6rem 0 2rem;
  border-top: 1px solid var(--border); background: var(--bg-alt);
}
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-name { font-family: var(--font-head); font-weight: 600; color: var(--text); margin: 0; }
.footer-claim { font-size: .84rem; color: var(--muted); margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer-nav a { font-size: .88rem; color: var(--text-soft); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { width: 100%; margin: .5rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 90;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Legal-Seiten ---------- */
.legal { padding: clamp(3rem, 7vw, 5rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-wrap { width: min(100% - 2.5rem, 780px); margin-inline: auto; }
.legal h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.3rem; margin: 2.4rem 0 .7rem; }
.legal h3 { font-size: 1.02rem; margin: 1.6rem 0 .4rem; }
.legal p, .legal li { font-size: .96rem; color: var(--text-soft); }
.legal ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1em; display: grid; gap: .3rem; }
.legal .legal-card {
  padding: 1.6rem 1.5rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.legal address { font-style: normal; line-height: 1.9; color: var(--text-soft); }
.legal .back {
  display: inline-flex; align-items: center; gap: .45rem; margin-bottom: 1.8rem;
  font-size: .88rem; color: var(--muted);
}
.legal .back svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.legal .back:hover { color: var(--accent); }
.legal .updated { font-size: .82rem; color: var(--muted); margin-top: 2.5rem; }

/* ---------- Reveal-Animation ---------- */
/* Ohne JavaScript bleibt alles sichtbar - die Klasse .js setzt das Skript im <head>. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 300px; margin-bottom: 1rem; }
  .ref-card { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about-side { position: static; max-width: 380px; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 62px 0 auto; margin: 0; padding: 1rem 1.25rem 1.5rem;
    flex-direction: column; align-items: stretch; gap: .2rem;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .header-tools { margin-left: auto; }
  .nav a { padding: .8rem .9rem; font-size: 1rem; }
  .nav .nav-cta { margin: .5rem 0 0; text-align: center; }
  .nav a.is-active::after { display: none; }
  .site-header { padding: .6rem 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Auf dem Handy zuerst die Botschaft, dann die Grafik */
  .hero-visual { order: 0; margin: 2.5rem 0 0; min-height: 280px; }
  .chip--1, .chip--3 { left: 0; }
  .chip--2 { right: 0; }
  .hero-actions .btn { width: 100%; }
  .enterprise { padding: 1.5rem 1.3rem; }
  .contact-form { padding: 1.5rem 1.25rem; }
  .lang-switch { padding: 2px; }
  .lang-btn { padding: .34rem .48rem; font-size: .72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .knx-house .hh-win { fill-opacity: .32; }
  .knx-house .hh-pulse { display: none; }
}

@media print {
  .site-header, .to-top, .bg-canvas, .hero-visual, .marquee { display: none !important; }
  body { background: #fff; color: #000; }
}
