/* =============================================
   MISCHOK GMBH – LEAD WEBSITE
   Design: Clean, modern, conversion-focused
   ============================================= */

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

:root {
  /* Colors */
  --blue-900: #0f1729;
  --blue-800: #1a2744;
  --blue-700: #1e3a6e;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50:  #eff6ff;

  --gray-950: #09090b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;
  --white:    #ffffff;

  --green-500: #22c55e;
  --orange-500: #f97316;
  --pink-500: #ec4899;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;
  --text-6xl:  3.75rem;

  /* Spacing */
  --section-py: 5rem;
  --container-max: 1200px;
  --container-px: 1.5rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.15);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --duration: 200ms;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border: 2px solid var(--blue-600);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(29,78,216,.35);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-600);
}
.btn-outline:hover {
  background: var(--blue-50);
  transform: translateY(-1px);
}

.btn-lg { padding: 1rem 2rem; font-size: var(--text-lg); border-radius: var(--radius-md); }
.btn-sm { padding: 0.5rem 1rem; font-size: var(--text-sm); }
.btn-full { width: 100%; justify-content: center; }

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 1rem;
  letter-spacing: -.02em;
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 3rem;
  line-height: 1.7;
}

/* =============================================
   NAVIGATION
   ============================================= */
.nav-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--duration) var(--ease);
}

.nav-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 80px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-links a:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav-cta {
  margin-left: 1rem;
  padding: .6rem 1.25rem;
  font-size: var(--text-sm);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: all var(--duration) var(--ease);
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: calc(80px + 5rem) 0 5rem;
  background: linear-gradient(160deg, var(--white) 0%, var(--blue-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(37,99,235,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero-headline {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.hero-headline .accent {
  color: var(--blue-600);
}

.hero-sub {
  font-size: var(--text-xl);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--text-sm);
  color: var(--gray-500);
  flex-wrap: wrap;
}

.trust-dot {
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 50%;
  display: inline-block;
}

.trust-sep { color: var(--gray-300); }

/* Hero Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.mockup-window {
  background: var(--gray-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255,255,255,.1);
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  background: var(--gray-800);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.dot.red    { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green  { background: #28ca41; }

.mockup-code {
  padding: 1.5rem;
  font-family: 'Courier New', 'Consolas', monospace;
  font-size: .875rem;
  line-height: 1.8;
}

.code-line { color: var(--gray-400); }
.code-line.indent  { padding-left: 1.5rem; }
.code-line.indent2 { padding-left: 3rem; }

.kw  { color: #c792ea; }
.fn  { color: #82aaff; }
.str { color: #c3e88d; }
.num { color: #f78c6c; }
.op  { color: var(--gray-400); }
.comment { color: #546e7a; font-style: italic; }

.mockup-badge {
  position: absolute;
  bottom: -1rem; right: -1rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: var(--shadow-lg);
}

/* =============================================
   TRUST BAND
   ============================================= */
.trust-band {
  padding: 3rem 0;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  overflow: hidden;
}

.trust-label {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-500);
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.logo-track-wrapper {
  overflow: hidden;
  position: relative;
}

.logo-track-wrapper::before,
.logo-track-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.logo-track-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--white), transparent);
}
.logo-track-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--white), transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
}

.logo-item {
  display: flex;
  align-items: center;
  opacity: .55;
  transition: opacity var(--duration) var(--ease);
  flex-shrink: 0;
}

.logo-item:hover { opacity: 1; }

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

/* =============================================
   PROBLEM / LÖSUNG
   ============================================= */
.problem-solution {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.pain-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.pain-icon {
  width: 52px; height: 52px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}

.pain-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .75rem;
}

.pain-card p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
}

.solution-block {
  background: linear-gradient(135deg, var(--blue-900) 0%, var(--blue-700) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  color: var(--white);
}

.solution-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.solution-text { flex: 1; }

.solution-text h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: .5rem;
}

.solution-text p {
  font-size: var(--text-base);
  color: rgba(255,255,255,.8);
  line-height: 1.7;
}

.solution-block .btn-primary {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
  flex-shrink: 0;
}
.solution-block .btn-primary:hover {
  background: var(--blue-50);
  border-color: var(--blue-50);
}

/* =============================================
   LEISTUNGEN
   ============================================= */
.leistungen {
  padding: var(--section-py) 0;
  background: var(--white);
}

.leistungen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.leistung-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--duration) var(--ease);
  position: relative;
  overflow: hidden;
}

.leistung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-600), var(--blue-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration) var(--ease);
}

.leistung-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--blue-100);
}

.leistung-card:hover::before {
  transform: scaleX(1);
}

.leistung-icon {
  width: 56px; height: 56px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}

.leistung-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.leistung-card p {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}

.card-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--blue-600);
  display: flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--duration) var(--ease);
}

.card-link:hover { gap: .6rem; }

/* =============================================
   CASE STUDIES
   ============================================= */
.case-studies {
  padding: var(--section-py) 0;
  background: var(--gray-50);
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.case-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--duration) var(--ease);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.case-meta {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.case-industry,
.case-tech {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: .25rem .75rem;
  border-radius: 100px;
  letter-spacing: .03em;
}

.case-industry {
  background: var(--blue-50);
  color: var(--blue-700);
}

.case-tech {
  background: var(--gray-100);
  color: var(--gray-600);
}

.case-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.3;
}

.case-card p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
  flex: 1;
}

.case-result {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
}

/* CTA Card */
.case-card--cta {
  background: linear-gradient(135deg, var(--blue-50) 0%, #e0e7ff 100%);
  border-color: var(--blue-100);
  justify-content: center;
  align-items: center;
  text-align: center;
}

.case-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.case-cta-icon {
  width: 72px; height: 72px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
}

.case-card--cta h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
}

.case-card--cta p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
}

/* =============================================
   WARUM MISCHOK / KERNWERTE
   ============================================= */
.warum-mischok {
  padding: var(--section-py) 0;
  background: var(--white);
}

.werte-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.wert-card {
  display: flex;
  gap: 1.5rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--duration) var(--ease);
  align-items: flex-start;
}

.wert-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.wert-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wert-icon--blue   { background: var(--blue-50);  color: var(--blue-600); }
.wert-icon--green  { background: #f0fdf4;          color: #16a34a; }
.wert-icon--orange { background: #fff7ed;          color: var(--orange-500); }
.wert-icon--pink   { background: #fdf2f8;          color: var(--pink-500); }

.wert-content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

.wert-content p {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.cta-badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-50);
  padding: .35rem .85rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.cta-content h2 {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: var(--text-lg);
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.cta-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.cta-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--gray-700);
}

/* Form */
.cta-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.cta-form h3 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.req { color: var(--blue-600); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-note {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-align: center;
  margin-top: .75rem;
}

.form-success {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 1rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: #15803d;
  margin-top: 1rem;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--blue-900);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem var(--container-px);
}

.footer-logo {
  filter: brightness(0) invert(1);
  height: 16px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: .75rem;
}

.footer-social a {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--duration) var(--ease);
}

.footer-social a:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
}

.footer-nav h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  transition: color var(--duration) var(--ease);
}

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

.footer-contact h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.25rem;
}

.footer-contact address {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.footer-contact a {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.7);
  transition: color var(--duration) var(--ease);
  margin-bottom: .4rem;
}

.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--container-px);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.4);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: rgba(255,255,255,.4);
  transition: color var(--duration) var(--ease);
}

.footer-legal a:hover { color: rgba(255,255,255,.8); }

/* =============================================
   CODE WIDGET ANIMATION
   ============================================= */

/* Blinking cursor */
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: #e2e8f0;
  vertical-align: text-bottom;
  margin-left: 1px;
  animation: blink 1s step-end infinite;
}

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

/* Each code line starts invisible, fades in when .typed class is added */
.code-line {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .25s ease, transform .25s ease;
  white-space: pre;
}

.code-line.typed {
  opacity: 1;
  transform: none;
}

/* Badge hidden initially, slides up when .show is added */
.mockup-badge {
  opacity: 0;
  transform: translateY(12px) scale(.95);
  transition: opacity .4s ease, transform .4s ease;
}

.mockup-badge.show {
  opacity: 1;
  transform: none;
}

/* Mockup window entrance */
.hero-mockup {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease .3s, transform .6s ease .3s;
}

.hero-mockup.mounted {
  opacity: 1;
  transform: none;
}

/* Subtle float loop – starts after entrance transition (0.9s) */
.hero-mockup.floating {
  animation: floatWidget 5s ease-in-out infinite;
}

@keyframes floatWidget {
  0%, 100% { transform: translateY(0);   }
  50%       { transform: translateY(-8px); }
}

/* Progress bar at top of mockup window */
.mockup-progress {
  height: 2px;
  background: linear-gradient(90deg, var(--blue-500), #818cf8);
  width: 0%;
  transition: width .05s linear;
  border-radius: 0 0 2px 2px;
  margin-bottom: 0;
}

/* =============================================
   SCROLL INDICATOR & MISC
   ============================================= */

/* Active nav link highlight */
.nav-links a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

/* Leistung card hover icon color */
.leistung-card:hover .leistung-icon {
  background: var(--blue-600);
  color: var(--white);
  transition: all var(--duration) var(--ease);
}

/* Pain card number badge */
.pain-card {
  counter-increment: pain-counter;
  position: relative;
}

/* Better focus styles */
:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: var(--blue-100);
  color: var(--blue-900);
}

/* =============================================
   PASSWORD GATE
   ============================================= */

.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: linear-gradient(160deg, #f8faff 0%, #eef2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.pw-gate.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.pw-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 8px 40px rgba(29, 78, 216, .12), 0 2px 8px rgba(0,0,0,.06);
  padding: 3rem 2.5rem 2.5rem;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  animation: pwCardIn .5s cubic-bezier(.22,1,.36,1) both;
}

@keyframes pwCardIn {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.pw-logo {
  height: 44px;
  width: auto;
  margin-bottom: .5rem;
}

.pw-hint {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin: 0;
  text-align: center;
}

.pw-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.pw-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pw-input {
  width: 100%;
  padding: .85rem 3rem .85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--gray-900);
  background: var(--gray-50);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.pw-input:focus {
  border-color: var(--blue-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.pw-input.shake {
  animation: shake .4s ease;
  border-color: #ef4444 !important;
}

@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

.pw-toggle {
  position: absolute;
  right: .75rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  padding: 0;
  transition: color .2s;
}

.pw-toggle:hover { color: var(--blue-600); }

.pw-error {
  font-size: var(--text-sm);
  color: #ef4444;
  margin: 0;
  display: none;
  text-align: center;
}

.pw-error.visible { display: block; }

.pw-submit {
  width: 100%;
  justify-content: center;
  padding: .9rem;
  font-size: var(--text-base);
  border-radius: 10px;
  margin-top: .25rem;
}

/* Body scroll lock while gate is visible */
body.pw-locked {
  overflow: hidden;
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: .1s; }
.fade-in-delay-2 { transition-delay: .2s; }
.fade-in-delay-3 { transition-delay: .3s; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual { display: none; }

  .leistungen-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-card--cta {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --section-py: 3.5rem;
  }

  /* Nav mobile */
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    padding: .85rem 1rem;
    font-size: var(--text-base);
    border-radius: var(--radius-sm);
  }

  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Hero */
  .hero {
    padding: calc(80px + 3rem) 0 3rem;
  }

  .hero-headline { font-size: var(--text-4xl); }
  .hero-sub { font-size: var(--text-base); }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Pain grid */
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .solution-block {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
  }

  /* Leistungen */
  .leistungen-grid {
    grid-template-columns: 1fr;
  }

  /* Leistungen mobile carousel */
  .leistungen-grid {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    scrollbar-width: none;
  }

  .leistungen-grid::-webkit-scrollbar { display: none; }

  .leistung-card {
    min-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
  }

  /* Cases */
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .case-card--cta { grid-column: auto; }

  /* Werte */
  .werte-grid {
    grid-template-columns: 1fr;
  }

  .wert-card {
    flex-direction: column;
    gap: 1rem;
  }

  /* CTA */
  .cta-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem var(--container-px);
  }

  .footer-brand { grid-column: auto; }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-headline { font-size: var(--text-3xl); }

  .section-title { font-size: var(--text-2xl); }

  .cta-form-wrapper { padding: 1.5rem; }

  .solution-block { padding: 1.5rem; }
}
