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

:root {
  --bg:            #050505;
  --surface:       #0d0d0d;
  --surface-2:     #151515;
  --accent:        #dedede;
  --accent-dim:    rgba(255, 255, 255, 0.07);
  --accent-glow:   rgba(255, 255, 255, 0.22);
  --amber:         #8a8a8a;
  --amber-dim:     rgba(255, 255, 255, 0.05);
  --text:          #f0f0f0;
  --text-muted:    #686868;
  --border:        rgba(255, 255, 255, 0.06);
  --border-accent: rgba(255, 255, 255, 0.22);
  --nav-h:         104px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* === BACKGROUND GRID === */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Glowing orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}
.orb-1 {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
}
.orb-2 {
  width: 600px; height: 600px;
  bottom: -200px; right: -150px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
}

/* === NAVIGATION === */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
nav::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 48px;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.65) 0%, transparent 100%);
  pointer-events: none;
}

.nav-inner {
  width: 100%;
  padding: 0 clamp(1rem, 3vw, 3.5rem);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-logo:hover { opacity: 0.7; }

.nav-logo-text {
  display: inline-flex;
  align-items: center;
  /* Abstand und Strich in em → skalieren proportional mit der Schriftgröße */
  gap: 0.77em;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-logo-line {
  display: inline-block;
  width: 2.885em;
  height: 0.08em;
  background: linear-gradient(90deg, var(--accent), transparent);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.7rem 1.6rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-block;
}
.nav-links a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s;
}
.nav-hamburger:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  background: none;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-align: left;
  transition: all 0.2s;
  text-decoration: none;
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* === SHARED === */
section { position: relative; z-index: 1; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 680px;
}

/* === HERO === */
#startseite {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 20px) 2rem 40px;
}

.hero-left {
  width: 100%;
}

.hero-logo-large {
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0s forwards;
}

.hero-logo-large img {
  height: 150px;
  width: auto;
  max-width: 100%;
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.15));
}

.hero-left .hero-title {
  font-size: clamp(2rem, 4vw, 4rem);
}


.hero-spline-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  background: rgba(0, 0, 0, 0.96);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(255, 255, 255, 0.04), inset 0 0 40px rgba(0, 0, 0, 0.6);
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 50%,
    black 10%,
    rgba(0, 0, 0, 0.75) 38%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 78%);
  mask-image: radial-gradient(ellipse 78% 72% at 50% 50%,
    black 10%,
    rgba(0, 0, 0, 0.75) 38%,
    rgba(0, 0, 0, 0.15) 60%,
    transparent 78%);
}

.hero-spline-wrapper spline-viewer {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  z-index: 2;
}

.hero-spline-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: linear-gradient(to top, #000000 20%, transparent 100%);
  z-index: 10;
  pointer-events: none;
}

spline-viewer::part(logo) { display: none !important; }

.hero-spotlight {
  pointer-events: none;
  position: absolute;
  z-index: 1;
  height: 169%;
  width: 138%;
  opacity: 0;
  animation: spotlight-reveal 1.5s ease 0.9s forwards;
  top: -55%;
  left: 15%;
}

@keyframes spotlight-reveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.1s forwards;
}
.hero-tag::before {
  content: '';
  display: inline-block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.hero-tag-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px transparent; }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 9vw, 7.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.25s forwards;
}

.hero-title .line { display: block; }
.hero-title .accent-word {
  background: linear-gradient(135deg, #ffffff 0%, #d8d8d8 50%, #909090 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.55s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.925rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--border-accent);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: all 0.25s;
  text-decoration: none;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

/* Scroll indicator */
.hero-scroll {
  margin-top: 5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.9s forwards;
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border-accent);
}
.scroll-text {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.scroll-arrow {
  color: var(--text-muted);
  animation: bounceDown 2s ease infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* === SPLIT-PANEL LAYOUT === */
/* Die ganze Seite scrollt; der Roboter rechts bleibt fixiert.
   Die Fußzeile liegt außerhalb der Panels und geht über die volle Breite. */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { display: none; }

.page-panels {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
}

.panel-left {
  width: 55%;
}

/* sticky: bleibt stehen, solange die Blöcke scrollen, und rutscht
   mit der Fußzeile nach oben, sobald .page-panels zu Ende ist */
.panel-right {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 45%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) 2rem 2rem 1rem;
  overflow: hidden;
}

.panel-right .hero-spline-wrapper {
  height: min(76vh, 580px);
  width: 100%;
}

/* === MISSION SECTION (from Tätigkeit) === */
.vorteile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 680px) {
  .vorteile-grid { grid-template-columns: 1fr; }
}

#mission {
  padding: 40px 0 120px;
}

.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 4rem;
}

.mission-text-block {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.mission-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 60%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.mission-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.mission-card:hover::before { transform: scaleX(1); }

.mission-card-num {
  font-family: 'Syne', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.06);
  position: absolute;
  top: 0.75rem; right: 1.25rem;
  line-height: 1;
  user-select: none;
}

.mission-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.mission-icon.amber {
  background: var(--amber-dim);
  color: var(--amber);
}

.mission-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.mission-card p {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.mission-stat-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.stat-row:hover { border-color: var(--border-accent); }

.stat-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  white-space: nowrap;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* === PRODUKTE === */
#produkte {
  padding: 120px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

#produkte::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.produkte-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.produkte-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 640px;
}

.produkt-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.75rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.produkt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.35s;
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.07), inset 0 0 60px rgba(255, 255, 255, 0.02);
}
.produkt-card:hover { border-color: var(--border-accent); transform: translateY(-5px); }
.produkt-card:hover::after { opacity: 1; }

.produkt-stripe {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.produkt-stripe.amber {
  background: linear-gradient(90deg, var(--amber), transparent);
}

.produkt-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  width: fit-content;
}
.produkt-badge.amber {
  color: var(--amber);
  background: var(--amber-dim);
  border-color: rgba(255, 255, 255, 0.14);
}

.produkt-card h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.produkt-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex: 1;
}

.produkt-separator {
  height: 1px;
  background: var(--border);
  margin-bottom: 1.75rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.feature-list li .dot {
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0.55rem;
}
.feature-list li .dot.amber { background: var(--amber); }

/* === IMPRESSUM === */
#impressum {
  padding: calc(var(--nav-h) + 56px) 0 120px;
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
}
#impressum .container { width: 100%; }

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

.kontakt-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
}
.kontakt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.kontakt-person {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.kontakt-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.kontakt-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
}
.kontakt-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

.kontakt-separator { height: 1px; background: var(--border); margin-bottom: 2rem; }

.kontakt-email-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-accent);
  padding: 0.875rem 1.5rem;
  border-radius: 10px;
  transition: all 0.25s;
  width: fit-content;
}
.kontakt-email-link:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 25px var(--accent-glow);
  border-color: var(--accent);
}

/* === FOOTER === */
footer {
  border-top: 1px solid var(--border);
  padding: 5rem 2rem;
  position: relative;
  z-index: 3; /* liegt über dem fixierten Roboter und dem unteren Fade */
  background: var(--bg);
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { text-decoration: none; opacity: 0.65; transition: opacity 0.2s; }
.footer-logo .nav-logo-text { font-size: 0.78rem; }
.footer-logo:hover { opacity: 1; }
footer p { font-size: 0.83rem; color: var(--text-muted); }

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.footer-links a {
  font-size: 0.83rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-links a:hover,
.footer-links a.active { color: var(--accent); }

/* === ANIMATIONS === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* === RESPONSIVE === */

/* ── Kleiner Laptop (≤ 1400px) ── */
@media (max-width: 1400px) {
  .hero-title { font-size: clamp(2.5rem, 6.5vw, 6rem); }
}

/* ── Kompakter Laptop / großes Tablet (≤ 1280px) ── */
@media (max-width: 1280px) {
  .hero-title  { font-size: clamp(2.25rem, 5.5vw, 4.5rem); }
  .hero-tag    { margin-bottom: 1.25rem; }
  .hero-sub    { margin-bottom: 2.5rem; }
  .hero-scroll { margin-top: 3rem; }
}

/* ── Kurzer Viewport (Laptops mit ≤800px Höhe) ── */
@media (max-height: 800px) and (min-width: 1025px) {
  .hero-title  { font-size: clamp(2rem, 5vw, 3.75rem); }
  .hero-tag    { margin-bottom: 1rem; }
  .hero-sub    { margin-bottom: 2rem; font-size: 1.25rem; }
  .hero-scroll { margin-top: 2rem; }
  #startseite  { padding-top: calc(var(--nav-h) + 10px); padding-bottom: 40px; }
}

/* ── Tablet breit (≤ 1100px) ── */
@media (max-width: 1100px) {
  .mission-layout { gap: 3rem; }
  .kontakt-inner  { gap: 3rem; }
  .produkt-card   { padding: 2.25rem; }
}

/* ── Tablet (≤ 1024px) – Hamburger-Menü, einspaltiges Layout ── */
@media (max-width: 1024px) {
  .nav-links      { display: none; }
  .nav-hamburger  { display: flex; align-items: center; justify-content: center; }

  .mission-layout,
  .produkte-grid,
  .kontakt-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .page-panels { display: block; }
  .panel-left  { width: 100%; }
  .panel-right { display: none; }
  .hero-logo-large img { height: 110px; }
  .hero-spline-wrapper { height: 360px; }
  .hero-left .hero-title { font-size: clamp(2.4rem, 10vw, 4.5rem); }

  .mission-stat-block {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .stat-row { flex: 1 1 200px; }

  .hero-title  { font-size: clamp(2.4rem, 10vw, 4.5rem); }
  .hero-scroll { margin-top: 3rem; }

  #startseite { min-height: 80vh; padding: calc(var(--nav-h) + 30px) 1.5rem 40px; }
  .hero-left .hero-title { font-size: clamp(2.4rem, 10vw, 4.5rem); }
  #mission    { padding: 40px 0 80px; }
  #produkte   { padding: 80px 0; }
  #impressum  { padding: 130px 0 80px; min-height: auto; }

  .container  { padding: 0 1.5rem; }
  .produkte-header { flex-direction: column; align-items: flex-start; }

  .kontakt-card { padding: 2rem; }
  .section-body { max-width: 100%; }
}

/* ── Großes Mobilgerät / kleines Tablet (≤ 680px) ── */
@media (max-width: 680px) {
  .produkt-card   { padding: 2rem; }
  .mission-card   { padding: 1.75rem; }

  .mission-stat-block { flex-direction: column; }
  .stat-row { flex: unset; width: 100%; }

  .hero-cta { flex-direction: column; }
  .btn-primary,
  .btn-outline { width: 100%; justify-content: center; }

  .kontakt-email-link { width: 100%; justify-content: center; }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Kleines Mobilgerät (≤ 480px) ── */
@media (max-width: 480px) {
  :root         { --nav-h: 80px; }
  .nav-logo .nav-logo-text { font-size: 0.85rem; }

  .container    { padding: 0 1rem; }
  #startseite   { min-height: 80vh; padding: 88px 1rem 32px; }
  #mission      { padding: 32px 0 60px; }
  #produkte     { padding: 60px 0; }
  #impressum    { padding: 108px 0 60px; }

  .hero-logo-large img { height: 80px; }
  .hero-spline-wrapper { height: 240px; }
  .hero-left .hero-title { font-size: clamp(1.8rem, 11vw, 2.6rem); }

  .hero-tag     { font-size: 0.65rem; margin-bottom: 1.25rem; }
  .hero-title   { font-size: clamp(2.1rem, 12vw, 3rem); margin-bottom: 1.25rem; }
  .hero-sub     { font-size: 1.1rem; margin-bottom: 2rem; }
  .hero-scroll  { margin-top: 2rem; }

  .section-title { font-size: clamp(1.7rem, 8vw, 2.25rem); }

  .mission-layout { margin-top: 2.5rem; }
  .mission-card   { padding: 1.5rem; }
  .mission-card-num { font-size: 2.5rem; }

  .produkt-card   { padding: 1.5rem; border-radius: 14px; }
  .produkt-card h2 { font-size: 1.5rem; }

  .kontakt-card   { padding: 1.5rem; border-radius: 16px; }
  .kontakt-name   { font-size: 1rem; }

  .stat-num { font-size: 2rem; }
  .stat-row { gap: 1rem; padding: 1.25rem; }

  .orb-1 { width: 280px; height: 280px; top: -80px; left: -80px; }
  .orb-2 { width: 240px; height: 240px; bottom: -80px; right: -80px; }
}

/* ── Sehr kleines Mobilgerät (≤ 360px) ── */
@media (max-width: 360px) {
  .hero-title { font-size: clamp(1.85rem, 13vw, 2.5rem); }
  .nav-logo img { height: 38px; }
  .mission-card,
  .produkt-card,
  .kontakt-card { padding: 1.25rem; }
  .produkt-card h2 { font-size: 1.35rem; }
}

/* ── Touch-Geräte: Hover-Effekte deaktivieren ── */
@media (hover: none) {
  .mission-card:hover,
  .produkt-card:hover,
  .stat-row:hover {
    transform: none;
    border-color: var(--border);
  }
  .produkt-card:hover::after { opacity: 0; }
  .btn-primary:hover,
  .btn-outline:hover { transform: none; }
}

/* === FADE AM UNTEREN BILDSCHIRMRAND (Gegenstück zum Fade unter der Kopfzeile) === */
.bottom-fade {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.65) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* === QUALITÄTEN & LEISTUNGEN: ohne Hintergründe, größere Schrift === */
#produkte {
  background: none;
  border: none;
}
#produkte::before { display: none; }

#mission .mission-card,
#produkte .produkt-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0;
  overflow: visible;
}
#mission .mission-card::before,
#produkte .produkt-card::after,
#produkte .produkt-stripe { display: none; }
#mission .mission-card:hover,
#produkte .produkt-card:hover { transform: none; }

#mission .vorteile-grid { column-gap: 3.5rem; row-gap: 1.5rem; }
#mission .mission-card-num { top: 1rem; right: 0; font-size: clamp(2.5rem, 4vw, 4rem); }
#mission .mission-card h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 1rem; }
#mission .mission-card p  { font-size: clamp(1rem, 1.3vw, 1.2rem); }

#produkte .produkte-grid { gap: 1rem; }
#produkte .produkt-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
#produkte .feature-list { gap: 1rem; }
#produkte .feature-list li { font-size: clamp(1rem, 1.3vw, 1.2rem); }
#produkte .feature-list li .dot { width: 7px; height: 7px; margin-top: 0.6em; }

/* === EIN BLOCK PRO BILDSCHIRM (Desktop) ===
   Jeder Block ist genau bildschirmhoch, damit beim abschnittsweisen
   Scrollen immer nur der aktuelle Block zu sehen ist. */
@media (min-width: 1025px) {
  #startseite,
  #mission,
  #produkte,
  #impressum {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 48px;
  }
  #startseite { flex-direction: row; align-items: center; }
  #mission > .container,
  #produkte > .container,
  #impressum > .container { width: 100%; }
}

/* === SEITEN OHNE ROBOTER (Impressum) === */
.page-panels.no-robot .panel-left { width: 100%; }

/* === IMPRESSUM: ohne Kartenhintergrund, größere Schrift === */
#impressum .kontakt-card {
  background: none;
  border: none;
  border-radius: 0;
  padding: 0;
  overflow: visible;
}
#impressum .kontakt-card::before { display: none; }
#impressum .section-title { font-size: clamp(2.4rem, 4.6vw, 3.8rem); }
#impressum .section-body  { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }
#impressum .kontakt-name  { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
#impressum .kontakt-separator { margin: 1.25rem 0 1.75rem; }
#impressum .kontakt-links { display: flex; flex-direction: column; gap: 1rem; }
#impressum .kontakt-email-link { font-size: clamp(1.05rem, 1.4vw, 1.2rem); padding: 1rem 1.75rem; }

/* ================================================================
   RESPONSIVE-FEINSCHLIFF
   Desktop (1025–2199 px Breite) bleibt optisch unverändert.
   Die Regeln unten greifen nur bei kleineren, sehr flachen oder
   sehr großen Viewports sowie bei Touch- und Tastaturbedienung.
   ================================================================ */

/* ── Basis (alle Geräte, ohne sichtbare Desktop-Änderung) ── */
html {
  -webkit-text-size-adjust: 100%;   /* iOS: keine automatische Schriftvergrößerung im Querformat */
  text-size-adjust: 100%;
}
img, video, iframe, picture {
  max-width: 100%;
  height: auto;                     /* Medien skalieren mit, ohne Verzerrung */
}
h1, h2, h3, p, a, li {
  overflow-wrap: break-word;        /* bricht nur, wenn ein Wort sonst nicht passt */
}

/* Tastaturbedienung: sichtbarer Fokus nur bei Tab-Navigation */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Mobile Browser: Höhe ohne ein-/ausfahrende Adressleiste (Desktop: svh = vh) */
.panel-right { height: 100svh; }
@media (min-width: 1025px) {
  #startseite,
  #mission,
  #produkte,
  #impressum { min-height: 100svh; }
}

/* ── Kompakter Desktop im Split-Layout (1025–1200 px) ──
   Die linke Spalte ist hier schmal → Abstand im Qualitäten-Raster reduzieren */
@media (min-width: 1025px) and (max-width: 1200px) {
  #mission .vorteile-grid { column-gap: 2rem; }
}

/* ── Tablet & Smartphone (≤ 1024 px) ── */
@media (max-width: 1024px) {
  #startseite { min-height: 80svh; }

  /* Touch-Ziele mindestens 44 × 44 px */
  .nav-hamburger { min-width: 44px; min-height: 44px; }
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; }
  .footer-links a { display: inline-block; padding: 0.6rem 0.25rem; }

  /* Fußzeile proportional zur kleineren Bildschirmhöhe */
  footer { padding: 3.5rem 1.5rem; }
}

/* ── Smartphone (≤ 680 px) ── */
@media (max-width: 680px) {
  .footer-links { justify-content: center; }
  #mission .mission-card,
  #produkte .produkt-card { padding: 1.25rem 0; }
}

/* ── Kleines Smartphone (≤ 480 px) ── */
@media (max-width: 480px) {
  footer { padding: 3rem 1rem; }
  .hero-title,
  .section-title { hyphens: auto; -webkit-hyphens: auto; }

  /* Impressum: E-Mail-Knopf darf auf schmalen Geräten nicht überstehen */
  #impressum .kontakt-email-link {
    padding: 0.9rem 1rem;
    font-size: 1rem;
    gap: 0.6rem;
    min-width: 0;
    overflow-wrap: anywhere;
  }
  #impressum .section-title { font-size: clamp(2rem, 10vw, 2.4rem); }
}

/* ── Sehr kleines Smartphone (≤ 360 px) ── */
@media (max-width: 360px) {
  #impressum .kontakt-email-link { font-size: 0.92rem; padding: 0.85rem 0.85rem; }
  .footer-links { gap: 1rem; }
}

/* ── Smartphone im Querformat / sehr flache Viewports ── */
@media (max-height: 500px) and (max-width: 1024px) {
  :root { --nav-h: 68px; }
  #startseite { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
}

/* ── Große Monitore / Ultra-Wide / 4K (≥ 2200 px) ──
   Alles proportional hochskalieren, damit das Verhältnis wie auf
   einem normalen Desktop wirkt (rem-basierte Größen wachsen mit). */
@media (min-width: 2200px) {
  html { font-size: 112.5%; }
  :root { --nav-h: 117px; }
  .container,
  .footer-inner { max-width: 1400px; }
  .panel-right .hero-spline-wrapper { height: min(76vh, 680px); }
}
@media (min-width: 3000px) {
  html { font-size: 125%; }
  :root { --nav-h: 130px; }
  .container,
  .footer-inner { max-width: 1560px; }
  .panel-right .hero-spline-wrapper { height: min(76vh, 780px); }
}

/* ── Begrüßungs-Überschrift: längstes Wort („Personalisierte“, ≈ 11,3 em in Syne 800)
   muss immer vollständig in eine Zeile passen → Schriftgröße an die verfügbare Breite
   koppeln (Viewport minus seitliche Innenabstände). Desktop unverändert. ── */
@media (max-width: 1024px) {
  .hero-left .hero-title { font-size: min(clamp(2.4rem, 10vw, 4.5rem), calc((100vw - 6rem) / 11.6)); }
}
@media (max-width: 480px) {
  .hero-left .hero-title { font-size: min(clamp(1.8rem, 11vw, 2.6rem), calc((100vw - 4rem) / 11.6)); }
}
/* Split-Layout (Roboter rechts): linke Spalte = 55 vw minus 8 rem Innenabstand.
   Greift erst unterhalb von ca. 1366 px Breite – größere Desktops bleiben unverändert. */
@media (min-width: 1025px) {
  .hero-left .hero-title { font-size: min(clamp(2rem, 4vw, 4rem), calc((55vw - 8rem) / 11.4)); }
}

/* ================================================================
   HANDY & TABLET (≤ 1024 px): Roboter über dem Begrüßungstext
   Der Roboter steht als eigener Bereich ganz oben und scrollt
   ganz normal mit nach oben weg; alle Inhalte folgen darunter.
   ================================================================ */
@media (max-width: 1024px) {
  .page-panels { display: flex; flex-direction: column; }
  .panel-left  { width: 100%; }
  .panel-right {
    display: flex;
    order: -1;                       /* vor den Inhalten */
    position: relative;              /* nicht mehr sticky → scrollt weg */
    width: 100%;
    height: auto;
    padding: calc(var(--nav-h) + 8px) 1.5rem 0;
  }
  .panel-right .hero-spline-wrapper { height: clamp(280px, 52vw, 460px); }
  /* Wischen über dem Roboter soll die Seite scrollen, nicht die 3D-Szene */
  .panel-right spline-viewer { pointer-events: none; }

  /* Begrüßung direkt unter dem Roboter – kein Platz mehr für die Kopfzeile nötig */
  #startseite { min-height: auto; padding-top: 1rem; padding-bottom: 64px; }
}
@media (max-width: 480px) {
  .panel-right { padding: calc(var(--nav-h) + 4px) 1rem 0; }
  .panel-right .hero-spline-wrapper { height: clamp(240px, 70vw, 320px); }
  #startseite { padding-top: 0.5rem; padding-bottom: 48px; }
}
@media (max-height: 500px) and (max-width: 1024px) {
  .panel-right .hero-spline-wrapper { height: 70vh; }
}

/* ================================================================
   LEISTUNGEN (Desktop): Webseite & Domain nebeneinander, Hosting darunter
   ================================================================ */
@media (min-width: 1025px) {
  #produkte .produkte-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
    column-gap: 3.5rem;
  }
}
@media (min-width: 1025px) {
  /* kompaktere Abstände, damit Webseite/Domain + Hosting auf einen Bildschirm passen */
  #produkte .produkte-header { margin-bottom: 1.5rem; }
  #produkte .section-title   { margin-bottom: 0; }
  #produkte .produkte-grid   { row-gap: 0.5rem; }
  #produkte .produkt-card    { padding: 1rem 0; }
  #produkte .produkt-card h2 { margin-bottom: 0.75rem; }
  #produkte .produkt-separator { margin-bottom: 1.25rem; }
  #produkte .feature-list    { gap: 0.75rem; }
}

/* ── Flachere Desktop-Bildschirme (≤ 950 px hoch): Blöcke kompakter,
   damit jeweils nur ein Block im Bild ist ── */
@media (min-width: 1025px) and (max-height: 950px) {
  #mission,
  #produkte { padding-top: calc(var(--nav-h) + 8px); padding-bottom: 24px; }
  #mission .vorteile-grid  { row-gap: 0.5rem; }
  #mission .mission-card   { padding: 0.75rem 0; }
  #mission .mission-icon   { margin-bottom: 0.75rem; }
  #mission .mission-card h3 { margin-bottom: 0.5rem; }
  #mission > .container > .reveal .section-title { margin-bottom: 0.75rem; }
}
@media (min-width: 1025px) and (max-height: 780px) {
  #mission .mission-icon   { width: 38px; height: 38px; margin-bottom: 0.5rem; }
  #mission .mission-card h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
  #mission .mission-card p  { font-size: 1rem; line-height: 1.7; }
  #produkte .produkt-card h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); }
  #produkte .feature-list li { font-size: 1rem; }
}
