/* ============================================
   GHALA-IT — Design Tokens
   ============================================ */
:root {
  --bg: #100e0c;
  --bg-soft: #17140f;
  --surface: #1c1812;
  --border: rgba(244, 239, 228, 0.1);
  --border-strong: rgba(244, 239, 228, 0.18);
  --text: #f4efe4;
  --text-muted: #a89f8c;
  --text-faint: #6b6455;
  --accent: #37d6b0;
  --accent-dim: rgba(55, 214, 176, 0.14);
  --accent-text: #0d1512;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-full: 999px;
  --container: 1180px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Subtle film-grain texture for depth on the flat dark background */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.accent { color: var(--accent); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn:hover::before { transform: translateX(120%); }

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:hover {
  background: #4fe3c1;
  box-shadow: 0 8px 30px -6px rgba(55, 214, 176, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(55, 214, 176, 0.4);
}

/* ============================================
   Scroll progress bar
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 200;
  box-shadow: 0 0 12px rgba(55, 214, 176, 0.6);
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(16, 14, 12, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.scrolled { border-bottom-color: var(--border); }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 116px;
  max-width: 1340px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: center;
  margin-top: 14px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 54px;
  letter-spacing: 0.02em;
  animation: logo-blink 3.6s ease-in-out infinite;
}

@keyframes logo-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .logo { animation: none; }
}

.logo-mark {
  width: 90px;
  height: auto;
  display: block;
}

.logo .dot { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.main-nav a {
  position: relative;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding-bottom: 4px;
  white-space: nowrap;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 20px; }

.header-actions .btn-primary { order: 1; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  order: 2;
}

.lang-switch .lang-current { color: var(--text); }

.lang-switch .lang-link {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.lang-switch .lang-link:hover { color: var(--accent); }

.lang-switch .lang-sep { color: var(--text-faint); }

.os-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.os-icon {
  display: inline-flex;
  color: var(--text-muted);
  transform-origin: center;
  animation: os-pulse 6s ease-in-out infinite;
}

.os-icon svg { width: 20px; height: 20px; display: block; }

.os-icon--apple { animation-delay: 0s; }
.os-icon--windows { animation-delay: 2s; }
.os-icon--linux { animation-delay: 4s; }

@keyframes os-pulse {
  0%, 33%, 100% {
    transform: scale(1);
    color: var(--text-muted);
    filter: drop-shadow(0 0 0 rgba(55, 214, 176, 0));
  }
  16% {
    transform: scale(1.5);
    color: var(--accent);
    filter: drop-shadow(0 0 10px var(--accent));
  }
}

@media (prefers-reduced-motion: reduce) {
  .os-icon { animation: none; }
}

@media (max-width: 480px) {
  .os-icons { gap: 10px; }
  .os-icon svg { width: 16px; height: 16px; }
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 96px 0 64px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(16, 14, 12, 0.94) 8%, rgba(16, 14, 12, 0.62) 42%, rgba(16, 14, 12, 0.3) 72%),
    linear-gradient(180deg, transparent 55%, var(--bg) 100%);
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 25%;
  filter: brightness(0.8) saturate(1.05);
  transform: scale(1);
  animation: hero-pan 28s ease-in-out infinite alternate;
}

@keyframes hero-pan {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.1) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg img { animation: none; }

  .hero-eyebrow,
  .hero-badge,
  .hero h1,
  .hero-sub,
  .hero-actions {
    animation: none;
    opacity: 1;
  }
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.hero-orb--1 {
  width: 480px;
  height: 480px;
  top: -220px;
  right: -120px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  animation: orb-float-1 16s ease-in-out infinite;
}

.hero-orb--2 {
  width: 340px;
  height: 340px;
  top: 120px;
  left: -160px;
  background: radial-gradient(circle, #5b8cff, transparent 70%);
  opacity: 0.2;
  animation: orb-float-2 20s ease-in-out infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-40px, 40px) scale(1.1); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.15); }
}

.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  margin-bottom: 28px;
  border-radius: var(--radius-full);
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  animation: fade-up 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards, badge-pulse 2.4s ease-in-out 1s infinite;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(55, 214, 176, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(55, 214, 176, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 13ch;
  overflow-wrap: break-word;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.12s;
}

.hero-sub {
  margin-top: 32px;
  max-width: 46ch;
  font-size: 19px;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.34s;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.54s;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(42px) scale(0.98); filter: blur(6px); }
  to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

/* ============================================
   Hero carousel (rotating service cards)
   ============================================ */
.hero-carousel {
  position: relative;
  opacity: 0;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: 0.7s;
}

.hero-carousel-track {
  display: grid;
  min-height: 320px;
}

.hero-carousel-card {
  grid-area: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-carousel-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.hero-carousel-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

.hero-carousel-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0 22px;
}

.hero-carousel-icon svg { width: 26px; height: 26px; color: var(--accent); }

.hero-carousel-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 25px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-carousel-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.hero-carousel-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.hero-carousel-controls {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-carousel-dots {
  display: flex;
  gap: 10px;
}

.hero-carousel-dots .dot {
  width: 26px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s ease, width 0.25s ease;
}

.hero-carousel-dots .dot.active { background: var(--accent); width: 40px; }

.hero-carousel-arrows { display: flex; gap: 10px; }

.arrow-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.arrow-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.arrow-btn svg { width: 16px; height: 16px; }

@media (prefers-reduced-motion: reduce) {
  .hero-carousel { animation: none; opacity: 1; }
  .hero-carousel-card { transition: opacity 0.3s ease; }
}

/* ============================================
   Stats band
   ============================================ */
.stats-band {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 56px 0;
}

/* Alternating section tone for depth/rhythm */
#leistungen > .chapter:nth-child(2),
#leistungen > .chapter:nth-child(4) {
  background: var(--bg-soft);
}

.stats-band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats-band-item {
  text-align: center;
  padding: 0 24px;
  border-left: 1px solid var(--border);
}

.stats-band-item:first-child { border-left: none; }

.stats-band-item .stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1;
  color: var(--accent);
}

.stats-band-label {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.01em;
}

/* ============================================
   CTA band
   ============================================ */
.cta-band {
  position: relative;
  background:
    radial-gradient(ellipse 60% 100% at 50% 0%, rgba(55, 214, 176, 0.12), transparent 70%);
}

.cta-band .chapter-problem {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  color: var(--text);
  max-width: 20ch;
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  overflow: hidden;
  margin-top: 88px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-left 64s linear infinite;
}

.marquee-track span {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-faint);
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.marquee-track:hover span { color: var(--text-muted); }

.marquee-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  color: var(--accent);
}

.marquee-icon svg { width: 22px; height: 22px; }
.marquee-icon img { width: 26px; height: auto; display: block; }

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================
   Chapter sections (Problem -> Loesung)
   ============================================ */
.chapter {
  position: relative;
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.chapter-inner { position: relative; z-index: 1; }

.chapter-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.chapter-tag .num {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--accent);
}

/* ============================================
   Chapter terminal (typing animation -> resolves to chapter number)
   ============================================ */
.chapter-terminal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  overflow: hidden;
}

.chapter-terminal-bar {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.chapter-terminal-dots {
  display: inline-flex;
  gap: 5px;
}

.chapter-terminal-dots i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-faint);
  font-style: normal;
}

.chapter-terminal-body {
  position: relative;
  display: grid;
  padding: 12px 14px;
  overflow-x: auto;
}

.chapter-terminal-prompt-line,
.chapter-terminal-result {
  grid-area: 1 / 1;
  transition: opacity 0.4s ease;
}

.chapter-terminal-prompt-line {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 12.5px;
  white-space: nowrap;
  opacity: 1;
}

.ct-user { color: var(--accent); }
.ct-connector { color: var(--text-faint); }
.ct-host,
.ct-path { color: #5b8cff; }
.ct-symbol { color: var(--text); }

.chapter-terminal-cmd { color: var(--text); }

.chapter-terminal-cursor {
  display: inline-block;
  width: 7px;
  height: 13px;
  margin-left: 1px;
  vertical-align: -2px;
  background: var(--accent);
  animation: ct-blink 1s step-end infinite;
}

@keyframes ct-blink { 50% { opacity: 0; } }

.chapter-terminal-result {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  opacity: 0;
}

.chapter-terminal.is-resolved .chapter-terminal-prompt-line { opacity: 0; }
.chapter-terminal.is-resolved .chapter-terminal-result { opacity: 1; }
.chapter-terminal.is-resolved .chapter-terminal-cursor { display: none; }

@media (prefers-reduced-motion: reduce) {
  .chapter-terminal-cursor { animation: none; }
}

.chapter-tag .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.chapter-problem {
  max-width: 62ch;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.free-call-steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.free-call-step {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.free-call-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 16px;
  margin-bottom: 16px;
}

.free-call-step h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin-bottom: 8px;
}

.free-call-step p {
  color: var(--text-muted);
  font-size: 14px;
}

.solutions-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}

.solutions-grid .solution-card,
.solutions-grid .feature-card {
  margin-top: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
}

.solution-card {
  margin-top: 56px;
  max-width: 640px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.solution-card.in-view { opacity: 1; transform: translateY(0); }

.solution-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

.solution-card .eyebrow { margin-bottom: 18px; }

.solution-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  margin-bottom: 16px;
  line-height: 1.15;
}

.solution-card p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 52ch;
}

/* ============================================
   Leistungen overview (icon cards)
   ============================================ */
.leistungen-overview { padding: 88px 0 24px; }

.leistungen-heading {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 12px 0 44px;
  max-width: 20ch;
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.leistung-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 36px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.leistung-card:nth-child(3n+2) { border-top-color: color-mix(in srgb, var(--accent) 78%, transparent); }
.leistung-card:nth-child(3n) { border-top-color: color-mix(in srgb, var(--accent) 56%, transparent); }

.leistung-card.in-view { opacity: 1; transform: translateY(0); }

.leistung-card:hover {
  border-color: var(--border-strong);
  border-top-color: var(--accent);
  transform: translateY(-6px);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

.leistung-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.leistung-icon svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.leistung-icon-halo {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: node-pulse 3s ease-in-out infinite;
}

.leistung-card h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.2;
  margin-bottom: 12px;
}

.leistung-card p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 20px;
}

.leistung-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leistung-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.leistung-list li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================
   Network illustration (animated)
   ============================================ */
.network-illustration,
.website-illustration,
.decision-illustration,
.knowledge-illustration {
  margin: 32px 0 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.network-illustration svg,
.website-illustration svg,
.decision-illustration svg,
.knowledge-illustration svg {
  width: 100%;
  height: auto;
  display: block;
}

.site-before { animation: fade-before 6s ease-in-out infinite; }
.site-after { animation: fade-after 6s ease-in-out infinite; }

@keyframes fade-before {
  0%, 35% { opacity: 1; }
  45%, 85% { opacity: 0; }
  95%, 100% { opacity: 1; }
}

@keyframes fade-after {
  0%, 35% { opacity: 0; }
  45%, 85% { opacity: 1; }
  95%, 100% { opacity: 0; }
}

.spinner {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 1.1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.network-caption {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

.flow-line {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 5 7;
  opacity: 0.8;
  animation: net-flow 1.6s linear infinite;
}

.flow-line--apple { stroke: #d8d8d8; animation-duration: 1.9s; }
.flow-line--windows { stroke: #4fa8ff; animation-duration: 1.5s; }
.flow-line--linux { stroke: #f2a93b; animation-duration: 1.7s; }
.flow-line--cloud { stroke: #b98cff; animation-duration: 1.3s; }

@keyframes net-flow {
  to { stroke-dashoffset: -24; }
}

.node-halo {
  fill: none;
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: node-pulse 3s ease-in-out infinite;
}

.node-halo--apple { stroke: #d8d8d8; animation-delay: 0s; }
.node-halo--windows { stroke: #4fa8ff; animation-delay: 0.6s; }
.node-halo--linux { stroke: #f2a93b; animation-delay: 1.2s; }
.node-halo--cloud { stroke: #b98cff; animation-delay: 1.8s; }
.node-halo--hub { stroke: var(--accent); animation-delay: 0s; animation-duration: 2.4s; }
.node-halo--decision { stroke: var(--accent); animation-delay: 0.3s; }
.flow-line--decision { stroke: var(--accent); animation-duration: 2.2s; }

@keyframes node-pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  60%, 100% { transform: scale(1.25); opacity: 0; }
}

.bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: bar-grow 2.6s ease-in-out infinite alternate;
}

.bar--1 { animation-delay: 0s; }
.bar--2 { animation-delay: 0.15s; }
.bar--3 { animation-delay: 0.3s; }
.bar--4 { animation-delay: 0.45s; }
.bar--5 { animation-delay: 0.6s; }

@keyframes bar-grow {
  0% { transform: scaleY(0.7); opacity: 0.7; }
  100% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line,
  .node-halo,
  .bar,
  .leistung-icon-halo {
    animation: none;
  }

  .bar {
    transform: scaleY(1);
    opacity: 1;
  }

  .site-before,
  .spinner {
    animation: none;
    opacity: 0;
  }

  .site-after {
    animation: none;
    opacity: 1;
  }
}

.tag-row {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-pill svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.tag-pill:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.tag-pill svg { color: inherit; }

.reveal.in-view .tag-pill {
  opacity: 1;
  transform: translateY(0);
}

.reveal.in-view .tag-pill:nth-child(1) { transition-delay: 0.15s; }
.reveal.in-view .tag-pill:nth-child(2) { transition-delay: 0.25s; }
.reveal.in-view .tag-pill:nth-child(3) { transition-delay: 0.35s; }
.reveal.in-view .tag-pill:nth-child(4) { transition-delay: 0.4s; }
.reveal.in-view .tag-pill:nth-child(5) { transition-delay: 0.45s; }
.reveal.in-view .tag-pill:nth-child(n+6) { transition-delay: 0.5s; }

.feature-card {
  margin-top: 32px;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 16px 0 16px;
  line-height: 1.2;
}

.feature-text p { color: var(--text-muted); font-size: 15px; }

.compare-row {
  margin-top: 24px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.compare-col { flex: 1; min-width: 160px; }

.compare-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.compare-label.accent { color: var(--accent); }

.feature-image {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.feature-image img { border-radius: 6px; }

.feature-image svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   About
   ============================================ */
.about {
  background: var(--bg-soft);
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
  position: relative;
  perspective: 800px;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}

.about-photo:hover {
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px var(--border-strong);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease-out;
}

.about h2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 20px 0 24px;
}

.about-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 52ch;
}

.about-motto {
  margin: 28px 0 0;
  padding-left: 22px;
  border-left: 3px solid var(--accent);
  max-width: 48ch;
}

.about-motto p {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}

.about-motto cite {
  display: block;
  font-style: normal;
  color: var(--text-muted);
  font-size: 14px;
}

.badge-row {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
}

.stat-list {
  border-top: 1px solid var(--border);
}

.stat-item {
  padding: 28px 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  border-radius: 12px;
  transition: background 0.3s ease, padding-left 0.3s ease;
}

.stat-item:hover {
  background: var(--surface);
  padding-left: 20px;
}

.stat-item .stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--accent);
}

.stat-item .stat-label {
  color: var(--text-muted);
  font-size: 14px;
  text-align: right;
  max-width: 22ch;
}

/* ============================================
   Career / Werdegang timeline
   ============================================ */
.career {
  padding: 120px 0;
  border-bottom: 1px solid var(--border);
}

.career-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin: 20px 0 64px;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 28px;
  padding-bottom: 56px;
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  content: "";
  width: 2px;
  background: var(--border);
  position: absolute;
  top: 26px;
  bottom: -56px;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item:last-child .timeline-marker::before { display: none; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-dim);
  margin-top: 6px;
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}

.timeline-content h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 18px;
  line-height: 1.2;
}

.timeline-tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 22px;
}

.timeline-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-subhead {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 26px 0 14px;
}

.timeline-content .tag-row { margin-top: 0; }

.skills {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

/* ============================================
   Contact
   ============================================ */
.contact {
  padding: 120px 0;
}

.contact-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-top: 18px;
}

.contact-lead {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 42ch;
}

.contact-actions {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
}

.contact-row {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.contact-row .label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.contact-row .value {
  font-size: 17px;
  font-weight: 500;
}

.contact-row a:hover { color: var(--accent); }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}

.footer-tagline {
  color: var(--text-muted);
  max-width: 36ch;
  margin-top: 12px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: 13px;
}

/* ============================================
   Reveal animation (generic)
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================
   Blog
   ============================================ */
.blog-page {
  padding: 160px 0 100px;
}

.blog-heading {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 20px 0 20px;
}

.blog-lead {
  color: var(--text-muted);
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 64px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
  transform: translateY(-4px);
}

.article-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.article-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.article-date {
  font-size: 12px;
  color: var(--text-faint);
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.3;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}

.read-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.read-more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.blog-card:hover .read-more::after,
.read-more:hover::after {
  transform: translateX(4px);
}

.back-link {
  display: inline-flex;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: color 0.2s ease;
}

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

.article-page .article-meta { margin-bottom: 20px; }
.article-page h1 { max-width: 20ch; }
.article-body p { font-size: 16px; line-height: 1.75; }
.article-body h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.6vw, 26px);
  color: var(--text);
  margin: 40px 0 14px;
}

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Legal pages
   ============================================ */
.legal-page {
  padding: 160px 0 120px;
  max-width: 760px;
  margin: 0 auto;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 32px;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 40px 0 12px;
}

.legal-page p, .legal-page li {
  color: var(--text-muted);
  margin-bottom: 12px;
}

.legal-page ul { padding-left: 20px; }

.placeholder {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* ============================================
   Error page (404)
   ============================================ */
.error-page {
  padding: 160px 0 140px;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.error-code {
  font-family: var(--font-display);
  font-size: clamp(90px, 16vw, 180px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent);
}

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 24px 0 16px;
}

.error-page p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 46ch;
  margin: 0 auto 36px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .about-grid,
  .contact-inner,
  .solutions-grid,
  .leistungen-grid,
  .free-call-steps,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner { padding: 40px 28px; }
  .feature-card { padding: 32px 24px; }

  .stat-item .stat-label { text-align: left; max-width: none; }

  .hero-carousel { margin-top: 8px; }

  .stats-band-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-band-item { border-left: none; border-top: 1px solid var(--border); padding: 24px 0 0; }
  .stats-band-item:first-child { border-top: none; padding-top: 0; }
}

@media (max-width: 1300px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .header-actions .btn-primary { display: none; }

  .site-header.nav-open .main-nav {
    display: flex;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
  }

  .site-header.nav-open .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .logo { font-size: 24px; gap: 8px; }
  .logo-mark { width: 40px; }
  .header-brand { margin-top: 0; }

  .chapter { padding: 88px 0; }
  .about, .contact, .career { padding: 88px 0; }
  .solution-card { padding: 32px 24px; }
  .timeline-content { padding: 28px 22px; }
  .timeline-item { grid-template-columns: 18px 1fr; gap: 16px; }
  .footer-top { flex-direction: column; }
  .hero-carousel-card { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .hero { padding: 64px 0 48px; }
  .marquee-track span { font-size: 17px; }
  .hero-carousel-card { min-height: 0; }
  .hero-carousel-track { min-height: 280px; }
}
