/* =========================================================
   rubick mediaworks — IT- & Netzwerkbetreuung
   Palette: #004158 (brand teal) · #819da0 (muted steel)
   Fonts:  Space Grotesk (display) · Inter (body)
   ========================================================= */

:root {
  /* brand */
  --brand: #004158;
  --brand-2: #819DA0;

  /* teal scale (derived from #004158) */
  --ink-950: #021820;
  --ink-900: #04222E;
  --ink-850: #062B39;
  --ink-800: #0A3646;
  --teal-700: #004158;
  --teal-600: #0A6076;
  --teal-500: #12809B;
  --accent:   #1C93B0;   /* brighter teal for CTA / nodes */
  --accent-2: #7FC4D2;   /* light teal highlight */

  /* neutrals */
  --bg: #F4F7F8;
  --muted: #E7EEEF;
  --surface: #FFFFFF;
  --border: #DCE5E7;
  --fg: #062430;
  --slate-600: #48606A;
  --slate-500: #5E747D;
  --slate-400: var(--brand-2);
  --slate-300: #A9C0C4;

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 11px;

  --shadow-sm: 0 1px 2px rgba(2, 24, 32, 0.06), 0 2px 8px rgba(2, 24, 32, 0.05);
  --shadow-md: 0 8px 24px rgba(2, 24, 32, 0.10);
  --shadow-lg: 0 24px 60px rgba(2, 24, 32, 0.18);
  --shadow-accent: 0 12px 34px rgba(0, 65, 88, 0.34);

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

  --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.text-accent { color: var(--accent); }
.section--dark .text-accent { color: var(--accent-2); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink-900); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons (pill + circular arrow badge) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 7px 7px 7px 28px; border-radius: 999px; border: 1px solid transparent;
  min-height: 58px; cursor: pointer; white-space: nowrap; line-height: 1;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn__txt { display: inline-block; }
.btn__ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
  transition: transform 0.35s var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn__ico svg { width: 19px; height: 19px; transition: transform 0.4s var(--ease); }
.btn:hover .btn__ico { transform: scale(1.08); }
.btn:hover .btn__ico svg { transform: translate(3px, -3px); }
.btn:active { transform: translateY(0); }

/* primary: filled teal pill · white badge */
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent) 0%, var(--teal-700) 100%); box-shadow: var(--shadow-accent); }
.btn--primary .btn__ico { background: #fff; color: var(--teal-700); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(0, 65, 88, 0.44); }

/* ghost: outlined pill · dark badge (light background) */
.btn--ghost { color: var(--fg); background: transparent; border-color: var(--border); }
.btn--ghost .btn__ico { background: var(--ink-900); color: #fff; }
.btn--ghost:hover { border-color: var(--brand-2); background: #fff; transform: translateY(-2px); }

/* ghost on dark surfaces: white badge · dark arrow */
.section--dark .btn--ghost, .hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.26); }
.section--dark .btn--ghost .btn__ico, .hero .btn--ghost .btn__ico { background: #fff; color: var(--ink-900); }
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(127,196,210,0.7); }

/* small (header) */
.btn--sm { min-height: 46px; font-size: 13px; padding: 5px 5px 5px 20px; gap: 12px; }
.btn--sm .btn__ico { width: 36px; height: 36px; }
.btn--sm .btn__ico svg { width: 16px; height: 16px; }

/* block (form + mobile menu) — text left, badge right */
.btn--block { width: 100%; justify-content: space-between; }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-600); margin: 0 0 var(--s-4);
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(28,147,176,0.16); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--accent-2); }
.section--dark .eyebrow__dot, .hero .eyebrow__dot { box-shadow: 0 0 0 4px rgba(127,196,210,0.18); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.header__inner { display: flex; align-items: center; gap: var(--s-6); height: 76px; }
.site-header.is-scrolled {
  background: rgba(244, 247, 248, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(2, 24, 32, 0.08);
}
.brand { display: inline-flex; align-items: center; }
.brand__img { height: 38px; width: auto; }
.brand__img--dark { display: none; }
.site-header.is-scrolled .brand__img--light { display: none; }
.site-header.is-scrolled .brand__img--dark { display: block; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__list a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,0.82);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__list a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.site-header.is-scrolled .nav__list a { color: var(--slate-500); }
.site-header.is-scrolled .nav__list a:hover { color: var(--ink-900); background: var(--muted); }
.nav__list a.is-active { color: #fff; }
.site-header.is-scrolled .nav__list a.is-active { color: var(--teal-600); }
.header__cta { margin-left: 4px; }
.nav-toggle { display: none; }
.nav__cta { display: none; } /* the mobile-menu CTA is hidden on desktop */

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(130% 120% at 50% -10%, var(--ink-800) 0%, var(--ink-900) 42%, var(--ink-950) 100%);
  color: #fff;
  padding: 172px 0 clamp(80px, 12vw, 132px);
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero__net--soft { opacity: 0.5; }
.hero__veil {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 18% 30%, rgba(0,65,88,0.55), transparent 70%),
    linear-gradient(180deg, transparent 40%, var(--ink-950) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero__title { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; text-transform: uppercase; letter-spacing: -0.03em; margin-bottom: var(--s-6); }
.hero__title-accent {
  background: linear-gradient(100deg, #EAF6F8 0%, var(--accent-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: rgba(224, 238, 240, 0.84); max-width: 640px; margin-bottom: var(--s-10); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-bottom: var(--s-16); }

.hero__features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5);
  margin: 0; padding-top: var(--s-6); border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.feature { display: flex; align-items: center; gap: 12px; min-width: 0; }
.feature__ico {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-2); background: rgba(28, 147, 176, 0.14); border: 1px solid rgba(127, 196, 210, 0.2);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.feature__ico svg { width: 20px; height: 20px; }
.feature:hover .feature__ico { color: #fff; background: rgba(28, 147, 176, 0.28); }
.feature__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feature__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
.feature__sub { font-size: 0.82rem; line-height: 1.35; color: var(--slate-300); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink-950); color: #fff; padding: var(--s-6) 0; }
.trustbar__inner { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4) var(--s-10); }
.trustbar__label { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-2); }
.trustbar__list { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-10); margin-left: auto; }
.trustbar__list li { position: relative; font-weight: 500; font-size: 0.95rem; color: rgba(224,238,240,0.9); padding-left: 24px; }
.trustbar__list li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M20 6 9 17l-5-5' stroke='%231C93B0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Showcase (scroll-tilt dashboard) ---------- */
.showcase { --p: 1; position: relative; overflow: hidden; background: var(--ink-950); padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 10vw, 120px); }
.showcase .eyebrow { justify-content: center; color: var(--accent-2); }
.showcase .eyebrow__dot { box-shadow: 0 0 0 4px rgba(127, 196, 210, 0.18); }
.showcase__glow { position: absolute; top: 12%; left: 50%; width: 72%; height: 62%; transform: translateX(-50%); background: radial-gradient(circle, rgba(28, 147, 176, 0.22), transparent 68%); filter: blur(40px); pointer-events: none; }
.showcase__inner { position: relative; z-index: 1; }
.showcase__head { text-align: center; max-width: 640px; margin: 0 auto clamp(24px, 4vw, 44px); transform: translateY(calc((1 - var(--p)) * 24px)); will-change: transform; }
.showcase__title { font-size: clamp(1.8rem, 4vw, 2.8rem); color: #fff; }
.showcase__sub { margin-top: var(--s-3); color: rgba(224, 238, 240, 0.78); font-size: 1.05rem; }

.showcase__stage { perspective: 1200px; }
.showcase__card {
  max-width: 940px; margin: 0 auto; border-radius: 24px; padding: clamp(8px, 1.4vw, 14px);
  background: linear-gradient(180deg, var(--ink-700), var(--ink-900));
  border: 1px solid rgba(127, 196, 210, 0.22); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  transform: rotateX(calc((1 - var(--p)) * 22deg)) scale(calc(1 + (1 - var(--p)) * 0.04));
  will-change: transform;
}
.dash { border-radius: 16px; overflow: hidden; background: radial-gradient(120% 120% at 20% 0%, var(--ink-800), var(--ink-950)); border: 1px solid rgba(255, 255, 255, 0.06); }
.dash__bar { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.02); }
.dash__dots { display: inline-flex; gap: 6px; }
.dash__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.dash__dots i:nth-child(1) { background: #E06C6C; } .dash__dots i:nth-child(2) { background: #E3B44B; } .dash__dots i:nth-child(3) { background: #4FC38A; }
.dash__name { font-family: var(--font-display); font-size: 0.9rem; color: var(--slate-300); }
.dash__online { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; color: #C9EDE0; background: rgba(55, 211, 155, 0.14); border: 1px solid rgba(55, 211, 155, 0.3); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.dash__online b { width: 7px; height: 7px; border-radius: 50%; background: #37D39B; animation: pulse-dot 2.2s var(--ease) infinite; }
.dash__body { padding: clamp(16px, 2.5vw, 28px); display: grid; gap: clamp(16px, 2.4vw, 24px); }
.dash__tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dash__tile { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 15px; display: flex; flex-direction: column; gap: 4px; }
.dash__val { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 2.6vw, 1.7rem); color: #fff; }
.dash__lbl { font-size: 0.78rem; color: var(--slate-300); }
.dash__chart { display: flex; align-items: flex-end; gap: 6px; height: clamp(80px, 13vw, 132px); }
.dash__chart span { flex: 1; height: 45%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--accent), rgba(28, 147, 176, 0.2)); transform-origin: bottom; animation: bar 2.6s var(--ease) infinite; }
.dash__chart span:nth-child(3n) { height: 78%; }
.dash__chart span:nth-child(3n+1) { height: 58%; }
.dash__chart span:nth-child(4n) { height: 92%; }
.dash__chart span:nth-child(2n) { animation-delay: 0.2s; }
.dash__chart span:nth-child(3n) { animation-delay: 0.45s; }
.dash__chart span:nth-child(5n) { animation-delay: 0.7s; }

/* ---------- Kundenreferenzen (Logo-Reihe) ---------- */
.logos { background: var(--surface); }
.logos__head { max-width: 660px; margin-bottom: var(--s-12); }
.logos__grid {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: clamp(28px, 5vw, 64px) clamp(36px, 6vw, 80px);
  padding-top: var(--s-4);
}
.logo-item {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--brand-2); opacity: 0.85;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.logo-item:hover { color: var(--teal-700); opacity: 1; transform: translateY(-2px); }
.logo-item__mark { width: 30px; height: 30px; flex: none; }
.logo-item__mark svg { width: 100%; height: 100%; display: block; }
.logo-item__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.15rem, 2.6vw, 1.5rem); letter-spacing: -0.01em; white-space: nowrap; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(72px, 10vw, 120px) 0; }
.section--muted { background: var(--muted); }
.section--dark { background: var(--ink-900); color: #fff; overflow: hidden; }
.section--dark .section__title { color: #fff; }

.section__head { max-width: 660px; margin-bottom: var(--s-16); }
.section__title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: var(--s-4); }
.section__sub { font-size: 1.1rem; color: var(--slate-500); }
.section__sub--light { color: rgba(224, 238, 240, 0.82); }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.card {
  position: relative; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius); padding: var(--s-8); overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.06); border-color: rgba(127,196,210,0.4); box-shadow: var(--shadow-lg); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  display: inline-flex; width: 52px; height: 52px; border-radius: 14px; margin-bottom: var(--s-5);
  align-items: center; justify-content: center; color: var(--accent-2);
  background: rgba(28,147,176,0.16);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.card__icon svg { width: 26px; height: 26px; }
.card:hover .card__icon { transform: scale(1.06); background: linear-gradient(135deg, var(--accent), var(--teal-700)); color: #fff; }
.card__title { font-size: 1.28rem; margin-bottom: 10px; color: #fff; }
.card__text { color: rgba(224,238,240,0.72); font-size: 1rem; }

/* ---------- Floating-gradient background (palette-adapted) ---------- */
.gradient-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 26rem; height: 26rem; border-radius: 50%; filter: blur(80px); opacity: 0.24; }
.blob--1 { top: 8%; left: 6%; background: linear-gradient(90deg, var(--accent), var(--brand-2)); animation: blob1 8s ease-in-out infinite; }
.blob--2 { bottom: 6%; right: 6%; background: linear-gradient(90deg, var(--teal-700), var(--teal-500)); animation: blob2 10s ease-in-out infinite; }
.blob--3 { top: 46%; left: 46%; background: linear-gradient(90deg, var(--accent-2), var(--teal-500)); animation: blob3 12s ease-in-out infinite; }
@keyframes blob1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(100px, 50px) scale(1.2); } }
@keyframes blob2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-100px, -50px) scale(1.3); } }
@keyframes blob3 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(50px, -100px) scale(1.1); } }

/* ---------- Warum wir ---------- */
.warum__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.warum__intro { position: sticky; top: 110px; }
.reasons { display: grid; gap: var(--s-4); }
.reason {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: start;
  padding: var(--s-6); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.reason:hover { border-color: rgba(127, 196, 210, 0.45); background: rgba(255, 255, 255, 0.08); transform: translateX(4px); }
.reason__num { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--accent-2); background: rgba(28,147,176,0.2); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.reason__title { font-size: 1.2rem; color: #fff; margin-bottom: 6px; }
.reason__text { color: rgba(224, 238, 240, 0.72); font-size: 0.98rem; }

/* ---------- Ablauf / Steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-6); }
.step { position: relative; z-index: 1; padding-top: var(--s-8); text-align: center; }

/* faint line connecting the numbers */
.steps::before {
  content: ""; position: absolute; z-index: 0; top: calc(var(--s-8) + 21px); left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 6%, var(--border) 94%, transparent);
}
/* travelling light beam that runs along the line (dips behind each number) */
.steps::after {
  content: ""; position: absolute; z-index: 0; top: calc(var(--s-8) + 20px); left: 12.5%; right: 12.5%; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  background-size: 42% 100%; background-repeat: no-repeat; background-position: -42% 0;
  filter: drop-shadow(0 0 7px var(--accent));
  animation: beam 3s linear infinite;
}
@keyframes beam { from { background-position: -42% 0; } to { background-position: 142% 0; } }

.step__index {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: var(--s-5);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--teal-700)); box-shadow: var(--shadow-accent);
  animation: step-pulse 2.2s var(--ease) infinite;
}
.steps .step:nth-child(1) .step__index { animation-delay: 0s; }
.steps .step:nth-child(2) .step__index { animation-delay: 0.5s; }
.steps .step:nth-child(3) .step__index { animation-delay: 1s; }
.steps .step:nth-child(4) .step__index { animation-delay: 1.5s; }
@keyframes step-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(28, 147, 176, 0), var(--shadow-accent); }
  45% { transform: scale(1.08); box-shadow: 0 0 0 9px rgba(28, 147, 176, 0.16), var(--shadow-accent); }
}
.step__title { font-size: 1.25rem; margin-bottom: 8px; color: var(--ink-900); }
.step__text { color: var(--slate-500); font-size: 0.98rem; }

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about__media { order: 2; }
.about__body { order: 1; }
.about__text { color: var(--slate-600); margin-bottom: var(--s-4); font-size: 1.05rem; }
.about__points { margin-top: var(--s-6); display: grid; gap: 12px; }
.about__points li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink-900); }
.about__points li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='12' r='11' fill='%231C93B0'/%3E%3Cpath d='M17 8.5 10.5 15 7 11.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Portrait Michael Rubick ---------- */
.portrait { position: relative; margin: 0; display: flex; justify-content: center; align-items: flex-end; }

/* weicher Teal-Schein hinter der Person */
.portrait__blob {
  position: absolute; z-index: 0; left: 50%; bottom: 0; width: 96%; height: 88%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 42%, rgba(28, 147, 176, 0.30), rgba(0, 65, 88, 0.12) 58%, transparent 72%);
  filter: blur(8px);
  animation: portrait-glow 7s ease-in-out infinite;
}
/* dezenter Ring als Tiefenebene */
.portrait__ring {
  position: absolute; z-index: 0; left: 50%; bottom: 4%; width: 74%; aspect-ratio: 1;
  transform: translateX(-50%);
  border: 1px solid rgba(28, 147, 176, 0.3); border-radius: 50%;
  animation: portrait-ring 9s ease-in-out infinite;
}
.portrait__img {
  position: relative; z-index: 1; width: 100%; max-width: 440px; height: auto;
  filter: drop-shadow(0 26px 42px rgba(2, 24, 32, 0.24));
  animation: portrait-float 6s ease-in-out infinite;
}
/* Badge schwebt mit leichtem Versatz -> Tiefenwirkung */
.portrait__badge {
  position: absolute; z-index: 2; right: 0; bottom: 14%;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 17px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; color: var(--ink-900);
  white-space: nowrap;
  animation: portrait-badge 6s ease-in-out infinite;
}
.portrait__dot { width: 8px; height: 8px; border-radius: 50%; background: #37D39B; animation: pulse-dot 2.2s var(--ease) infinite; }

@keyframes portrait-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes portrait-badge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes portrait-glow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.85; } 50% { transform: translateX(-50%) scale(1.06); opacity: 1; } }
@keyframes portrait-ring { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.45; } 50% { transform: translateX(-50%) scale(1.05); opacity: 0.85; } }

/* status card */
.status-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 120% at 20% 0%, var(--ink-800), var(--ink-950));
  border: 1px solid rgba(127,196,210,0.18); box-shadow: var(--shadow-lg);
  padding: clamp(22px, 3vw, 30px); color: #fff;
}
.status-card__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.status-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.status-card__badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #C9EDE0; background: rgba(38,180,120,0.14); border: 1px solid rgba(60,200,140,0.3); padding: 5px 11px; border-radius: 999px; }
.status-card__badge b { width: 8px; height: 8px; border-radius: 50%; background: #37D39B; box-shadow: 0 0 0 0 rgba(55,211,155,0.6); animation: pulse-dot 2.2s var(--ease) infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(55,211,155,0.5); } 70%,100% { box-shadow: 0 0 0 8px rgba(55,211,155,0); } }
.status-rows { display: grid; gap: 2px; }
.status-rows li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.95rem; color: rgba(224,238,240,0.78); }
.status-rows li:last-child { border-bottom: 0; }
.status-val { font-family: var(--font-display); font-weight: 600; color: var(--accent-2); }
.status-card__bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: var(--s-5); }
.status-card__bars span { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), rgba(28,147,176,0.25)); animation: bar 2.4s var(--ease) infinite; }
.status-card__bars span:nth-child(1){ height:40%; animation-delay:0s } .status-card__bars span:nth-child(2){ height:70%; animation-delay:.2s }
.status-card__bars span:nth-child(3){ height:55%; animation-delay:.4s } .status-card__bars span:nth-child(4){ height:85%; animation-delay:.6s }
.status-card__bars span:nth-child(5){ height:50%; animation-delay:.8s } .status-card__bars span:nth-child(6){ height:75%; animation-delay:1s }
.status-card__bars span:nth-child(7){ height:60%; animation-delay:1.2s }
@keyframes bar { 0%,100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }

/* ---------- Kontakt ---------- */
.section--cta { padding-block: clamp(72px, 10vw, 120px); background: radial-gradient(130% 120% at 50% 0%, var(--ink-800), var(--ink-950)); }
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__details { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.contact__details li { display: flex; align-items: center; gap: 14px; color: rgba(224,238,240,0.9); font-size: 1.02rem; }
.contact__details a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact__ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent-2); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); }
.contact__ico svg { width: 21px; height: 21px; }

.contact__form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; font-weight: 500; color: rgba(224,238,240,0.88); }
.req { color: var(--accent-2); margin-left: 2px; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: #fff; background: rgba(2,24,32,0.5);
  border: 1px solid rgba(129,157,160,0.32); border-radius: var(--radius-sm); padding: 13px 14px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  min-height: 48px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(28,147,176,0.2); background: rgba(2,24,32,0.7); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #F0A8A8; box-shadow: 0 0 0 4px rgba(220,80,80,0.15); }
.field__error { font-size: 0.82rem; color: #F3B0B0; min-height: 1em; }
.field__error:empty { display: none; }
.form__foot { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.form__note { font-size: 0.82rem; color: var(--brand-2); text-align: center; }
.form__success { grid-column: 1 / -1; margin-top: 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(28,147,176,0.16); border: 1px solid rgba(127,196,210,0.4); color: #EAF6F8; font-weight: 500; }
.form__error { grid-column: 1 / -1; margin-top: 4px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(200, 70, 70, 0.16); border: 1px solid rgba(240, 168, 168, 0.45); color: #FBE3E3; font-weight: 500; }

/* Honeypot – für Menschen unsichtbar, für Screenreader ausgeblendet */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* DSGVO-Einwilligung */
.consent__row { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: start; cursor: pointer; font-size: 0.88rem; line-height: 1.5; color: rgba(224, 238, 240, 0.86); font-weight: 400; }
.consent__row input[type="checkbox"] {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none; cursor: pointer;
  accent-color: var(--accent);
}
.consent__row a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.consent__row a:hover { color: #fff; }
.consent input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #F0A8A8; outline-offset: 2px; }

/* ---------- Wordmark ---------- */
.wordmark { background: var(--ink-950); padding: clamp(30px, 6vw, 70px) 0 0; overflow: hidden; }
.wordmark__text {
  display: block; font-family: var(--font-display); font-weight: 700; text-transform: lowercase;
  font-size: clamp(4.5rem, 20vw, 17rem); line-height: 0.82; letter-spacing: -0.04em;
  background: linear-gradient(180deg, rgba(127,196,210,0.22), rgba(10,54,70,0.05));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink-950); color: var(--slate-300); }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--s-10); padding: var(--s-16) 0; }
.footer__logo { height: 46px; width: auto; margin-bottom: var(--s-4); }
.footer__tag { max-width: 320px; font-size: 0.96rem; color: var(--brand-2); }
.footer__col h4 { font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; margin-bottom: var(--s-4); }
.footer__col ul { display: grid; gap: 11px; }
.footer__col a { color: var(--slate-300); transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--accent-2); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-6) 0; border-top: 1px solid rgba(129,157,160,0.16); font-size: 0.9rem; }
.footer__legal { display: flex; gap: var(--s-6); }
.footer__legal a:hover { color: #fff; }

/* ---------- Rechtsseiten (Impressum / Datenschutz) ---------- */
.legal { padding: 150px 0 clamp(64px, 9vw, 110px); background: var(--bg); }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-bottom: var(--s-4); }
.legal__lead { color: var(--slate-500); margin-bottom: var(--s-12); }
.legal h2 { font-size: clamp(1.25rem, 2.6vw, 1.55rem); margin: var(--s-12) 0 var(--s-4); color: var(--ink-900); }
.legal h3 { font-size: 1.08rem; margin: var(--s-6) 0 var(--s-2); color: var(--ink-900); }
.legal p { margin-bottom: var(--s-4); color: var(--slate-600); }
.legal ul { margin: 0 0 var(--s-4); display: grid; gap: 9px; }
.legal ul li { position: relative; padding-left: 010px; padding-left: 20px; color: var(--slate-600); }
.legal ul li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--accent); }
.legal address { font-style: normal; color: var(--slate-600); }
.legal__box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--s-6); margin-bottom: var(--s-6); box-shadow: var(--shadow-sm); }
.legal__note { background: rgba(28,147,176,0.08); border: 1px solid rgba(28,147,176,0.28); border-radius: var(--radius-sm); padding: var(--s-5); font-size: 0.92rem; color: var(--slate-600); }
.legal__back { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-12); font-family: var(--font-display); font-weight: 600; color: var(--teal-600); text-decoration: none; }
.legal__back:hover { color: var(--accent); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); 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.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }
.cards .card.reveal:nth-child(2) { transition-delay: 0.07s; }
.cards .card.reveal:nth-child(3) { transition-delay: 0.14s; }
.cards .card.reveal:nth-child(4) { transition-delay: 0.07s; }
.cards .card.reveal:nth-child(5) { transition-delay: 0.14s; }
.cards .card.reveal:nth-child(6) { transition-delay: 0.21s; }
.reasons .reason.reveal:nth-child(2) { transition-delay: 0.08s; }
.reasons .reason.reveal:nth-child(3) { transition-delay: 0.16s; }
.reasons .reason.reveal:nth-child(4) { transition-delay: 0.24s; }
.steps .step.reveal:nth-child(2) { transition-delay: 0.1s; }
.steps .step.reveal:nth-child(3) { transition-delay: 0.2s; }
.steps .step.reveal:nth-child(4) { transition-delay: 0.3s; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .warum__inner { grid-template-columns: 1fr; }
  .warum__intro { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before, .steps::after { display: none; } /* beam only in 4-column layout */
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav, .header__cta { display: none; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; margin-left: auto;
    width: 46px; height: 46px; border: 1px solid rgba(255,255,255,0.22); border-radius: 12px; background: rgba(255,255,255,0.06); cursor: pointer;
  }
  .site-header.is-scrolled .nav-toggle { border-color: var(--border); background: #fff; }
  .nav-toggle span { width: 20px; height: 2px; margin-inline: auto; background: #fff; border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
  .site-header.is-scrolled .nav-toggle span { background: var(--ink-900); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav {
    display: block; position: fixed; inset: 76px 0 auto 0; margin: 0;
    background: rgba(4,34,46,0.98); backdrop-filter: blur(12px);
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; padding: 16px 20px 24px; }
  .nav__list a { color: #fff; padding: 14px 16px; font-size: 1.05rem; }
  .nav__list a:hover, .site-header.is-scrolled .nav__list a { color: #fff; }
  .nav__cta { display: block; margin: 12px 16px 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding-top: 132px; }
  .hero__features { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-6); }
  .dash__tiles { grid-template-columns: repeat(2, 1fr); }
  .dash__name { display: none; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__media { order: 2; }
  .portrait__img { max-width: 320px; }
  .portrait__badge { right: 2%; bottom: 10%; font-size: 0.8rem; padding: 8px 14px; }
  .contact { grid-template-columns: 1fr; }
  .contact__form { grid-template-columns: 1fr; }
  .field--full, .field { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
