/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:   #00C4B4;
  --purple: #7068D4;
  --bg:     #0C0E14;
  --surface:#131620;
  --text:   #E8ECF4;
  --muted:  #7A819A;
  --px:     4px; /* pixel unit */
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Pixel-Grid Background ────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(0,196,180,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,196,180,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── Layout Wrapper ───────────────────────────────────────── */
#app {
  position: relative; z-index: 1;
  display: grid;
  grid-template-rows: 64px 1fr;
  width: 100vw; height: 100vh;
}

/* ── Navigation ───────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(12,14,20,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,196,180,.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.nav-logo img { height: 36px; image-rendering: pixelated; }
.nav-logo span {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links button {
  background: none; border: none; cursor: pointer;
  padding: 8px 20px;
  border-radius: 2px;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .25s;
}
.nav-links button::after {
  content: '';
  position: absolute;
  left: 20px; right: 20px;
  bottom: 4px; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.nav-links button:hover { color: var(--text); }
.nav-links button.active { color: var(--text); }
.nav-links button.active::after { transform: scaleX(1); }

/* ── Carousel Container ───────────────────────────────────── */
#carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  perspective: 1600px;
  perspective-origin: 50% 50%;
}

/* ── Slides Track ─────────────────────────────────────────── */
#track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  transition:
    transform .65s cubic-bezier(.4,0,.2,1),
    opacity   .65s cubic-bezier(.4,0,.2,1),
    filter    .65s cubic-bezier(.4,0,.2,1);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* 3D slide states */
.slide.is-active {
  transform: rotateY(0deg) translateZ(0px);
  opacity: 1;
  pointer-events: auto;
  filter: none;
  z-index: 5;
}
.slide.is-prev {
  transform: rotateY(52deg) translateZ(-520px) translateX(-18%);
  opacity: .28;
  pointer-events: none;
  filter: blur(2px) brightness(.7);
  z-index: 3;
}
.slide.is-next {
  transform: rotateY(-52deg) translateZ(-520px) translateX(18%);
  opacity: .28;
  pointer-events: none;
  filter: blur(2px) brightness(.7);
  z-index: 3;
}
.slide.is-far {
  transform: rotateY(90deg) translateZ(-900px);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

/* ── Side-Zone Navigation ─────────────────────────────────── */
.side-zone {
  position: absolute;
  top: 0; bottom: 0;
  width: 11%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity .3s;
}
.side-zone.hidden { opacity: 0; pointer-events: none; }

.side-zone.prev { left: 0; justify-content: flex-start; }
.side-zone.next { right: 0; justify-content: flex-end; }

/* gradient sweep from edge */
.side-zone.prev::before,
.side-zone.next::before {
  content: '';
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .35s;
}
.side-zone.prev::before {
  background: linear-gradient(90deg, rgba(0,196,180,.12) 0%, transparent 100%);
}
.side-zone.next::before {
  background: linear-gradient(270deg, rgba(112,104,212,.12) 0%, transparent 100%);
}
.side-zone:hover::before { opacity: 1; }

/* chevron badge */
.zone-chevron {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin: 0 14px;
  background: rgba(12,14,20,.7);
  border: 1px solid rgba(0,196,180,.0);
  color: rgba(255,255,255,.25);
  transition: color .3s, border-color .3s, background .3s, transform .3s;
  backdrop-filter: blur(8px);
}
.side-zone.prev .zone-chevron { font-style: normal; }
.side-zone:hover .zone-chevron {
  color: var(--text);
  border-color: rgba(0,196,180,.5);
  background: rgba(0,196,180,.12);
  transform: scale(1.12);
}
.side-zone.prev:hover .zone-chevron { transform: scale(1.12) translateX(-3px); }
.side-zone.next:hover .zone-chevron { transform: scale(1.12) translateX(3px); }

/* slide index hint that fades in on hover */
.zone-label {
  position: absolute;
  bottom: 28px;
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--teal);
  opacity: 0;
  transition: opacity .3s .1s;
  white-space: nowrap;
}
.side-zone.prev .zone-label { left: 14px; }
.side-zone.next .zone-label { right: 14px; }
.side-zone:hover .zone-label { opacity: 1; }

/* ── Mobile Dot-Navigation (nur mobile sichtbar) ─────────── */
#mobileDots {
  display: none;
}

/* ── Scrubber Bar ─────────────────────────────────────────── */
#scrubber {
  position: absolute;
  bottom: 18px;
  left: 50%; transform: translateX(-50%);
  width: min(520px, 80vw);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  user-select: none;
}

/* Labels row */
.scrub-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
}
.scrub-label {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .25s;
}
.scrub-label.active { color: var(--teal); }

/* Track */
.scrub-track {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 2px;
  cursor: pointer;
}

/* Filled progress */
.scrub-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  border-radius: 2px;
  transition: width .55s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}

/* Segment tick marks */
.scrub-tick {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 2px; height: 10px;
  background: rgba(255,255,255,.12);
  border-radius: 1px;
  pointer-events: none;
}

/* Draggable thumb */
.scrub-thumb {
  position: absolute;
  top: 50%; transform: translate(calc(-50% - 1px), -50%);
  width: 14px; height: 14px;
  border-radius: 2px;
  rotate: 45deg;
  background: var(--bg);
  border: 2px solid var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,180,.15);
  cursor: grab;
  transition: left .55s cubic-bezier(.4,0,.2,1),
              box-shadow .2s, border-color .2s;
  z-index: 2;
}
.scrub-thumb:active { cursor: grabbing; }
.scrub-thumb.dragging {
  transition: box-shadow .2s, border-color .2s;
  border-color: var(--purple);
  box-shadow: 0 0 0 5px rgba(112,104,212,.2);
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 1 — HERO / START
═══════════════════════════════════════════════════════════ */
.hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  width: 100%;
  max-width: 720px;
}

/* ── Inhaltsblock ─────────────────────────────────────────── */
.hero-split {
  display: contents;
}
.hero-left {
  display: contents;
}

/* ── Große Typo-Headline (Option B) ────────────────────────── */
.hero-headline {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.02em;
}
.hero-headline span { color: var(--text); }
.hero-headline .headline-grad {
  background: linear-gradient(90deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Terminal-Zeile (Option C) ──────────────────────────────── */
.hero-terminal {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: clamp(.82rem, 1.5vw, .97rem);
  color: var(--teal);
  letter-spacing: .04em;
  min-height: 1.6em;
  opacity: .85;
}
.term-prompt { opacity: .5; }
.term-cursor { animation: blink .75s step-end infinite; }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ── Target-Group Badges ──────────────────────────────────── */
.hero-targets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.target-badge {
  background: rgba(0,196,180,.07);
  border: 1px solid rgba(0,196,180,.2);
  border-radius: 2px;
  padding: 6px 14px;
  font-size: .75rem;
  color: var(--text);
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.target-badge:hover {
  background: rgba(0,196,180,.14);
  border-color: var(--teal);
}

/* ── Logo rechts ────────────────────────────────────────────── */
.hero-logo {
  width: min(160px, 22vw);
  image-rendering: pixelated;
  filter: drop-shadow(0 0 32px rgba(0,196,180,.45));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border: none;
  border-radius: 2px;
  color: #fff;
  font-size: .9rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(0,196,180,.3);
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,196,180,.45);
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 20px;
  width: 100%;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 3 — LEISTUNGEN
═══════════════════════════════════════════════════════════ */
.services-wrapper {
  width: 100%;
  max-width: 1000px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(0,196,180,.12);
  border-radius: 4px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  opacity: 0;
  transition: opacity .25s;
}
.service-card:nth-child(odd)::before  { background: linear-gradient(90deg, var(--teal), var(--purple)); }
.service-card:nth-child(even)::before { background: linear-gradient(90deg, var(--purple), var(--teal)); }
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,196,180,.15);
}
.service-card:hover::before { opacity: 1; }

.service-name {
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(90deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-desc {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 2 — PORTFOLIO
═══════════════════════════════════════════════════════════ */
.portfolio-wrapper {
  width: 100%;
  max-width: 1100px;
}

.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 8px;
}
.section-title span {
  background: linear-gradient(90deg, var(--teal), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  color: var(--muted);
  font-size: .875rem;
  letter-spacing: .04em;
  margin-bottom: 32px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-card {
  background: var(--surface);
  border: 1px solid rgba(0,196,180,.1);
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(0,196,180,.2);
}

.project-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(12,14,20,.9) 100%);
}

.thumb-1 { background: linear-gradient(135deg, #0D2B2B, #003F3F); }
.thumb-2 { background: linear-gradient(135deg, #1D1040, #3B1E80); }
.thumb-3 { background: linear-gradient(135deg, #0B1E30, #1A4060); }
.thumb-4 { background: linear-gradient(135deg, #2A1040, #6030A0); }
.thumb-5 { background: linear-gradient(135deg, #0D2B20, #004030); }
.thumb-6 { background: linear-gradient(135deg, #1A1A40, #303080); }

.thumb-icon {
  font-size: 2.5rem;
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}

.project-info {
  padding: 12px 16px 14px;
}
.project-name {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.project-type {
  font-size: .72rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .1em;
}

.project-overlay {
  position: absolute; inset: 0;
  background: rgba(0,196,180,.08);
  opacity: 0;
  transition: opacity .25s;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.project-card:hover .project-overlay { opacity: 1; }
.overlay-icon {
  width: 40px; height: 40px;
  background: rgba(0,196,180,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #0C0E14;
  font-size: 1.1rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   SLIDE 3 — KONTAKT
═══════════════════════════════════════════════════════════ */
.contact-wrapper {
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 640px) {
  .contact-wrapper { grid-template-columns: 1fr; }
}

.contact-info p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-size: .875rem;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid rgba(0,196,180,.1);
  border-radius: 2px;
  transition: border-color .2s, background .2s;
}
.contact-link:hover {
  border-color: var(--teal);
  background: rgba(0,196,180,.06);
}
.link-icon {
  width: 32px; height: 32px;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.link-icon.teal  { background: rgba(0,196,180,.15); color: var(--teal); }
.link-icon.purp  { background: rgba(112,104,212,.15); color: var(--purple); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid rgba(0,196,180,.15);
  border-radius: 2px;
  padding: 10px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  transition: border-color .2s, box-shadow .2s;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,196,180,.12);
}
.form-group textarea { height: 90px; }

.btn-send {
  padding: 12px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border: none;
  border-radius: 2px;
  color: #fff;
  font-size: .875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-send:hover  { opacity: .88; transform: translateY(-1px); }
.btn-send:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.form-error {
  color: #ff6b6b;
  font-size: .85rem;
  margin-bottom: .5rem;
  display: block;
}

.btn-send--success {
  background: linear-gradient(135deg, #00C4B4, #00a090) !important;
  opacity: 1 !important;
  cursor: default;
}

/* ── Footer stripe ────────────────────────────────────────── */
.footer-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--teal));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
  z-index: 20;
}
@keyframes shimmer {
  0%   { background-position:  0% 0; }
  100% { background-position: 200% 0; }
}

/* ═══════════════════════════════════════════════════════════
   NAV – Rechtliches Button
═══════════════════════════════════════════════════════════ */
.nav-legal {
  opacity: .55;
  font-size: .75rem !important;
}
.nav-legal:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════════
   MODAL – Rechtliches
═══════════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(12,14,20,.82);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--surface);
  border: 1px solid rgba(0,196,180,.18);
  border-radius: 4px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 44px;
  position: relative;
  transform: translateY(16px);
  transition: transform .3s;
}
.modal-backdrop.is-open .modal-box {
  transform: translateY(0);
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: rgba(0,196,180,.3); border-radius: 2px; }

.modal-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 6px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
  margin-top: 32px;
}
.modal-title:first-of-type { margin-top: 0; }

/* ── Modal Tabs ───────────────────────────────────────── */
.modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding-bottom: 0;
}
.modal-tab {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 22px;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  transition: color .2s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.modal-tab:hover { color: var(--text); }
.modal-tab.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.modal-tab-content { display: none; }
.modal-tab-content.active { display: block; }

.modal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-bottom: 28px;
}
.modal-section:last-child { border-bottom: none; padding-bottom: 0; }
.modal-section strong { color: var(--text); }

/* ═══════════════════════════════════════════════════════════
   HAMBURGER BUTTON
═══════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
  transform-origin: center;
}
/* X-Animation wenn offen */
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile (≤ 768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1020px) {

  /* ── Navigation ──────────────────────────────────────── */
  nav { padding: 0 20px; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(12,14,20,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,196,180,.15);
    padding: 12px 0 20px;
    gap: 0;
    z-index: 100;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links button {
    width: 100%;
    text-align: left;
    padding: 14px 28px;
    font-size: .95rem;
  }
  .nav-links button::after {
    left: 28px; right: 28px; bottom: 8px;
  }

  /* ── Carousel scrollbar machen ────────────────────────── */
  html, body { overflow: auto; height: auto; }
  #app { height: auto; min-height: 100vh; grid-template-rows: 64px auto; }
  #carousel { overflow: visible; perspective: none; height: auto; }
  #track { height: auto; transform-style: flat; }

  /* Alle Slides normal im Fluss – nur aktives sichtbar */
  .slide {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    min-height: calc(100vh - 64px);
    padding: 32px 20px 80px;
    display: none;
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    align-items: flex-start;
    justify-content: center;
  }
  .slide.is-active { display: flex; }

  /* Scrubber unten klebend */
  #scrubber { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; background: rgba(12,14,20,.9); }

  /* Nav-Dropdown über allem */
  .nav-links { z-index: 200; }

  /* ── Hero ────────────────────────────────────────────── */
  .hero { gap: 16px; max-width: 100%; }
  .hero-logo { display: none; }
  .hero-headline { font-size: clamp(2rem, 8vw, 2.8rem); }
  .btn-primary { width: 100%; justify-content: center; padding: 14px 20px; }
  .hero-stats { gap: 0; flex-wrap: wrap; }
  .hero-stats .stat { flex: 1 1 33%; padding: 8px 4px; }

  /* ── Portfolio ───────────────────────────────────────── */
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ── Leistungen ──────────────────────────────────────── */
  .services-grid { grid-template-columns: 1fr; }

  /* ── Kontakt ─────────────────────────────────────────── */
  .contact-wrapper { grid-template-columns: 1fr; gap: 28px; }

  /* ── Scrubber ────────────────────────────────────────── */
  #scrubber { display: none; }
  .footer-stripe { display: none; }

  /* ── Dot-Navigation ─────────────────────────────────── */
  #mobileDots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 44px;
    background: rgba(12,14,20,.92);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,196,180,.1);
    z-index: 50;
  }
  .mobile-dot {
    width: 8px; height: 8px;
    border-radius: 2px;
    rotate: 45deg;
    background: rgba(255,255,255,.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background .25s, transform .25s;
  }
  .mobile-dot.active {
    background: var(--teal);
    box-shadow: 0 0 8px rgba(0,196,180,.6);
    transform: scale(1.3);
  }
  /* Unterseite Padding damit Inhalt nicht hinter dots verschwindet */
  .slide.is-active { padding-bottom: 60px; }

  /* ── Side-Zones ──────────────────────────────────────── */
  .side-zone { display: none; }

  /* ── Modal ───────────────────────────────────────────── */
  .modal-backdrop { padding: 16px; }
  .modal-box { padding: 28px 20px; }
  .modal-tab { padding: 10px 14px; font-size: .7rem; letter-spacing: .05em; }
}

/* ── Sehr kleine Screens (≤ 400px) ──────────────────────── */
@media (max-width: 400px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats .stat { flex: 1 1 100%; }
}

/* ── Sehr kleine Screens (≤ 350px) ──────────────────────── */
@media (max-width: 350px) {
  .nav-logo span { display: none; }
}

