:root {
  --primary: #0F172A;
  --primary-2: #1E293B;
  --accent: #F97316;
  --accent-2: #FB923C;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-dark: #0B1220;
  --text: #020617;
  --text-soft: #334155;
  --text-mute: #64748B;
  --border: #E2E8F0;
  --max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.35);
  --font-h: 'Space Grotesk', sans-serif;
  --font-b: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html, body { overflow-x: clip; }

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

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

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

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-weight: 800;
  font-size: 1.1rem;
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 11px;
  border: 1.5px solid var(--accent);
  opacity: 0.6;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

.nav-cta {
  background: var(--primary);
  color: white !important;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  transition: all 0.2s;
}

.nav-cta:hover { background: var(--accent); color: var(--primary) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
  transition: all 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 5rem 0 6rem;
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(249, 115, 22, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(15, 23, 42, 0.06), transparent 60%),
    linear-gradient(180deg, #FBFCFD 0%, #FFFFFF 100%);
}

.hero > .container { overflow: visible; }

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(249, 115, 22, 0.08);
  border-radius: 100px;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  font-family: var(--font-h);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

h1 .accent {
  color: var(--accent);
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-soft);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: 0;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px -10px rgba(249, 115, 22, 0.4);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

.btn-arrow {
  display: inline-block;
  transition: transform 0.25s;
}

.btn:hover .btn-arrow { transform: translateX(4px); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-mute);
  flex-wrap: wrap;
}

.trust-logos {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
  opacity: 0.65;
  filter: grayscale(1);
}

.trust-logos span {
  font-family: var(--font-h);
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 1.1rem;
  color: var(--primary);
}

/* ============ HERO VISUAL ============ */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 360px;
  margin-left: auto;
  overflow: hidden;
  border-radius: 50%;
  padding: 0 2rem;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.15), transparent 60%);
  border-radius: 50%;
  z-index: 0;
}

.hero-card {
  position: absolute;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  max-width: 220px;
}

.hero-card-1 {
  top: 14%;
  left: 0;
  animation-delay: 0s;
}

.hero-card-2 {
  bottom: 14%;
  right: 0;
  animation-delay: 2s;
}

.hero-card-3 {
  bottom: 40%;
  left: 50%;
  animation-delay: 4s;
}

.hero-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.hero-icon.orange { background: var(--accent); color: var(--primary); }

.hero-card-text { font-size: 0.8rem; }
.hero-card-text strong { display: block; font-weight: 600; color: var(--primary); }
.hero-card-text span { color: var(--text-mute); font-size: 0.72rem; }

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

.hero-orb {
  position: absolute;
  inset: 10% 10%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #1E293B, #0F172A 60%, #020617);
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.6), inset 0 0 60px rgba(249, 115, 22, 0.15);
  position: relative;
  overflow: hidden;
}

.hero-orb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 70%, rgba(249, 115, 22, 0.4), transparent 50%),
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(255, 255, 255, 0.02) 12px 13px);
}

.hero-orb::after {
  content: "AI";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-h);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.05em;
}

/* ============ SECTION COMMON ============ */
section { padding: 6rem 0; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-h);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--text-soft);
}

/* ============ LEISTUNGEN ============ */
.leistungen { background: var(--bg-soft); }

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

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
}

.card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, 0.2), transparent 60%);
}

.card h3 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}

.card p {
  color: var(--text-soft);
  font-size: 0.97rem;
  margin-bottom: 1.2rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent);
  transition: gap 0.2s;
}

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

/* ============ USE CASES ============ */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.usecase {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--primary);
  transition: transform 0.4s;
}

.usecase:hover { transform: scale(1.02); }

.usecase img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.usecase:hover img { opacity: 1; }

.usecase-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
}

.usecase-overlay h3 {
  font-family: var(--font-h);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.usecase-overlay p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
}

/* ============ PROZESS / STEPS ============ */
.prozess { background: var(--bg-dark); color: white; }

.prozess .section-head h2,
.prozess h2 { color: white; }
.prozess .section-head p { color: rgba(255, 255, 255, 0.7); }
.prozess .eyebrow { color: var(--accent-2); }

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

.step {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.step:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-4px);
}

.step-num {
  font-family: var(--font-h);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.step h3 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: white;
}

.step p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.step-list {
  list-style: none;
  margin-top: 1rem;
}

.step-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

.step-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============ REFERENZEN ============ */
.refs {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.refs-marquee {
  overflow: hidden;
  margin-bottom: 4rem;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.refs-track {
  display: flex;
  gap: 3rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.refs-track span {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  color: var(--primary);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.refs-track span:hover { opacity: 1; color: var(--accent); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

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

.testimonial {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all 0.3s;
}

.testimonial:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.testimonial::before {
  content: "“";
  position: absolute;
  top: -10px;
  left: 1.5rem;
  font-family: var(--font-h);
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
}

.testimonial p {
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.65;
  margin: 1.2rem 0 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--font-h);
  font-size: 0.95rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--primary);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ============ CTA BANNER ============ */
.cta-banner {
  background: var(--primary);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(249, 115, 22, 0.1), transparent 60%);
}

.cta-banner .container { position: relative; }

.cta-banner h2 { color: white; margin-bottom: 1rem; }
.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-banner .btn-primary {
  background: var(--accent);
  color: var(--primary);
  font-size: 1.05rem;
  padding: 1.1rem 2rem;
}

.cta-banner .btn-primary:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* ============ KONTAKT ============ */
.kontakt { background: var(--bg-soft); }

.kontakt-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.kontakt-info h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.kontakt-info p {
  color: var(--text-soft);
  margin-bottom: 2rem;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.contact-list li:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.98rem;
}

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

.form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form h3 {
  font-family: var(--font-h);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

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

.field { display: flex; flex-direction: column; margin-bottom: 1rem; }

.field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--primary);
  transition: all 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.field textarea { resize: vertical; min-height: 110px; }

.form .btn-primary { width: 100%; justify-content: center; }

.form-foot {
  font-size: 0.82rem;
  color: var(--text-mute);
  margin-top: 1rem;
  text-align: center;
}

/* ============ FOOTER ============ */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
  max-width: 320px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-socials {
  display: flex;
  gap: 0.7rem;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  color: white;
  transition: all 0.2s;
}

.footer-socials a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
}

footer h4 {
  font-family: var(--font-h);
  font-size: 0.95rem;
  font-weight: 600;
  color: white;
  margin-bottom: 1.2rem;
  letter-spacing: 0.02em;
}

footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
footer ul a {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.bsfz-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  font-size: 0.78rem;
  margin-top: 0.5rem;
}

/* ============ ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-visual { max-width: 360px; margin: 0 auto; }
  .cards, .usecases-grid, .steps, .testimonials { grid-template-columns: 1fr 1fr; }
  .kontakt-grid, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 1.5rem; gap: 1.2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  section { padding: 4rem 0; }
  .cards, .usecases-grid, .steps, .testimonials, .form-row { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
}
