/* Startseite (index.html) – Redesign 2026-10-03: Premium-SaaS/Digital-Studio-Look.
   Bewusst eigenständig (nicht style.css), damit Shop/Login/App unberührt bleiben.
   Purple nur als Akzent; Glows dezent. */
:root {
  --bg: #080711;
  --bg-2: #0c0a18;
  --card: #11101c;
  --card-2: #151326;
  --border: #29223f;
  --border-strong: #3d3260;
  --purple: #8b5cf6;
  --purple-bright: #a78bfa;
  --purple-deep: #6d28d9;
  --text: #f5f3ff;
  --muted: #a7a3b8;
  --faint: #77728c;
  --ok: #34d399;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: min(1280px, calc(100% - 64px));
  --section-y: clamp(72px, 9vw, 120px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 84px; }
body {
  margin: 0; color: var(--text); background: var(--bg); overflow-x: clip;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; line-height: 1.1; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
svg { flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--purple-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: var(--wrap); margin: 0 auto; }
.accent { color: var(--purple-bright); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--purple-bright);
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px;
  background: var(--purple); color: #fff; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- Buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; padding: 14px 24px; border-radius: 10px;
  cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary {
  background: linear-gradient(180deg, #9a6dfa, var(--purple) 55%, #7c4be8); color: #fff;
  border-color: rgba(196, 181, 253, .35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 24px -8px rgba(139, 92, 246, .7);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 12px 30px -8px rgba(139, 92, 246, .85); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(139, 92, 246, .1); border-color: var(--purple); }
.btn-sm { font-size: 14px; padding: 10px 16px; border-radius: 9px; }
.btn-block { width: 100%; }

/* ----------------------------------------------------------------- Nav -- */
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(41, 34, 63, .7); }
/* Blur auf einem Pseudo-Element: backdrop-filter direkt auf .nav würde das
   mobile Menü (Kind-Element) durchsichtig rendern. */
.nav::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(8, 7, 17, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { display: block; width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-tag { font-size: 11.5px; color: var(--faint); }
.nav-links { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-main, .nav-aux { display: flex; align-items: center; gap: 28px; }
.nav-main { margin: 0 auto; }
.nav-links a:not(.btn) { font-size: 14.5px; color: var(--muted); transition: color .15s; position: relative; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--text); }
.nav-main a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px; background: var(--purple);
}
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--border); border-radius: 10px; color: var(--text); cursor: pointer;
}

/* ---------------------------------------------------------------- Hero -- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 60% at 75% 45%, rgba(109, 40, 217, .14), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(59, 130, 246, .06), transparent 70%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 60% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(42px, 5.4vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; margin: 20px 0 24px; }
.lead { color: var(--muted); font-size: clamp(16px, 1.25vw, 18.5px); max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0 40px; }
.trust { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #d6d2e6; }
.trust-icon {
  display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .25); color: var(--purple-bright);
}
.trust-icon svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero-Foto: Arbeitsplatz-Motiv, kein Farb-Overlay – nur dezenter Rahmen und Schatten */
/* Auf breiten Bildschirmen darf das Bild bis zu 96px in den rechten Seitenrand ragen
   (nie näher als 24px an den Fensterrand) – größer, ohne die Textspalte zu verkleinern. */
.hero-visual { position: relative; --hero-bleed: clamp(0px, calc((100vw - 1280px) / 2 - 24px), 96px); margin-right: calc(-1 * var(--hero-bleed)); }
.hero-photo {
  position: relative; margin: 0; aspect-ratio: 1672 / 941; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08); background: var(--bg-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 110px -26px rgba(139, 92, 246, .48);
}
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); background: linear-gradient(180deg, transparent 60%, rgba(8, 7, 17, .35)); }
.chip {
  position: absolute; display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(21, 19, 38, .85); border: 1px solid var(--border-strong); color: var(--purple-bright);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8), 0 0 24px -6px rgba(139, 92, 246, .45);
}
.chip svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip-code { right: 14%; top: -24px; }
.chip-discord { left: 10%; bottom: -24px; }

/* -------------------------------------------------------- Technologien -- */
.tech { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .012); }
.tech-inner { display: flex; align-items: center; gap: 40px; padding: 26px 0; }
.tech-img { width: 112px; height: 60px; flex-shrink: 0; object-fit: cover; object-position: 45% 50%; border-radius: 10px; border: 1px solid var(--border); margin-right: -16px; }
.tech-label { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); max-width: 170px; line-height: 1.5; flex-shrink: 0; }
.tech-list { flex: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 28px; }
.tech-list li { display: flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #cbc7da; white-space: nowrap; }
.tech-list svg { width: 20px; height: 20px; fill: none; stroke: var(--purple-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }

/* ----------------------------------------------------------- Sektionen -- */
.section { padding: var(--section-y) 0 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; margin-bottom: 48px; }
.section-head h2, .why-text h2, .stats-head h2, .cta h2 { font-size: clamp(32px, 3.6vw, 50px); font-weight: 750; margin-top: 16px; }
.section-side { max-width: 420px; }
.section-side p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.section-side p:last-child { margin-bottom: 0; }

/* Leistungen */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service {
  display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8), 0 0 40px -16px rgba(139, 92, 246, .45); }
.service-media { margin: -28px -28px 24px; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--border); border-radius: var(--radius) var(--radius) 0 0; background: var(--bg-2); }
.service-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.service:hover .service-media img { transform: scale(1.04); }
.pos-code { object-position: 25% 50%; }
.pos-dash { object-position: 55% 50%; }
.pos-server { object-position: 35% 50%; }
.pos-cloud { object-position: 45% 50%; }
.service-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.num { font-size: 13px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.service-icon {
  display: inline-flex; width: 48px; height: 48px; border-radius: 12px; align-items: center; justify-content: center;
  background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .22); color: var(--purple-bright);
}
.service-icon svg, .why-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }
.ticks { display: grid; gap: 10px; margin-bottom: 28px; }
.ticks li { position: relative; padding-left: 28px; font-size: 14px; color: #d6d2e6; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(139, 92, 246, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 10px;
}
.more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--purple-bright); transition: gap .2s, color .2s; }
.more:hover { color: #fff; gap: 10px; }

/* Projekte */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.project {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--border);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.project-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.project-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 7, 17, .55) 100%); transition: opacity .3s;
}
.pos-platform { object-position: 62% 40%; }
.pos-fivem { object-position: 58% 50%; }
.pos-bot { object-position: 50% 22%; }
.tag {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; padding: 6px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: #ede9fe;
  background: rgba(8, 7, 17, .7); border: 1px solid rgba(167, 139, 250, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.project-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 24px; }
.project-body h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.project-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.project-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 12px; font-weight: 500; color: #cbc7da; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .04); border: 1px solid var(--border); }
.project:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .9), 0 0 48px -18px rgba(139, 92, 246, .5); }
.project:hover .project-media img { transform: scale(1.045); }
.project:hover .project-media::after { opacity: .6; }
.project:hover .project-btn { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Zahlen */
.stats-box {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: center;
  padding: clamp(32px, 4vw, 56px); border-radius: 20px; border: 1px solid var(--border);
  background: radial-gradient(ellipse 60% 120% at 0% 0%, rgba(139, 92, 246, .1), transparent 60%), linear-gradient(180deg, var(--card-2), var(--card));
}
.stats-box { position: relative; overflow: hidden; }
.stats-box > *:not(.stats-bg) { position: relative; }
.stats-bg {
  position: absolute; left: 0; top: 0; width: 55%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, #000 35%, transparent 95%); mask-image: linear-gradient(90deg, #000 35%, transparent 95%);
}
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 8px 24px; border-left: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(36px, 3.4vw, 48px); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 8px; }
.stat span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }

/* Warum */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.why-text p { color: var(--muted); font-size: 16.5px; margin-top: 24px; max-width: 30em; }
.why-media { position: relative; margin: 36px 0 0; }
.why-office { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; object-position: 50% 50%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .9); }
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.why-item { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, .018); transition: border-color .25s; }
.why-item:hover { border-color: var(--border-strong); }
.why-icon {
  display: inline-flex; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; margin-bottom: 18px;
  background: rgba(139, 92, 246, .1); border: 1px solid rgba(139, 92, 246, .22); color: var(--purple-bright);
}
.why-item h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.why-item p { color: var(--muted); font-size: 14.5px; }

/* CTA / Kontakt */
.cta {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: 24px; border: 1px solid var(--border-strong);
  background: #0d0b16;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; pointer-events: none; }
.cta-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 9, 18, .82) 0%, rgba(10, 9, 18, .62) 50%, rgba(10, 9, 18, .45) 100%),
    radial-gradient(ellipse 55% 80% at 0% 100%, rgba(139, 92, 246, .14), transparent 65%);
}
.cta > *:not(.cta-glow):not(.cta-bg) { position: relative; }
.cta-text p { color: #c9c4dc; font-size: 16.5px; margin: 24px 0 32px; max-width: 30em; }
.discord-btn svg { color: #a5b4fc; }
.contact-form {
  padding: 28px; border-radius: var(--radius); background: rgba(8, 7, 17, .55); border: 1px solid var(--border);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 500; color: #d6d2e6; }
input, textarea {
  width: 100%; padding: 13px 14px; border-radius: 10px; font-family: inherit; font-size: 15px; line-height: 1.5; color: var(--text);
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border); transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(139, 92, 246, .2); }
textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { margin-top: 6px; }
.form-status { min-height: 22px; font-size: 14px; margin-top: 12px; }
.form-status.ok { color: var(--ok); }
.form-status.error { color: #fca5a5; }

/* -------------------------------------------------------------- Footer -- */
.site-footer { margin-top: var(--section-y); border-top: 1px solid var(--border); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding: 40px 0 32px; }
.footer-nav, .footer-legal { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-nav a, .footer-legal a { font-size: 14px; color: var(--muted); transition: color .15s; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--text); }
.socials { display: flex; gap: 10px; }
.social {
  display: inline-flex; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center;
  color: var(--muted); border: 1px solid var(--border); transition: color .15s, border-color .15s;
}
.social:hover { color: var(--text); border-color: var(--purple); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 24px 0 32px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--faint);
}
.footer-legal a { font-size: 13.5px; }

.back-to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(21, 19, 38, .9); color: var(--text); border: 1px solid var(--border-strong);
  opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, border-color .2s;
}
.back-to-top:hover { border-color: var(--purple); }
.back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* Dezentes Einblenden beim Scrollen (script.js setzt .in-view) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out, border-color .25s, box-shadow .25s; }
.reveal.in-view { opacity: 1; transform: none; }
.service.reveal.in-view:hover, .project.reveal.in-view:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .project:hover .project-media img { transform: none; }
}

/* ---------------------------------------------------------- Responsive -- */
@media (max-width: 1280px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-box { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 1100px) {
  .nav-main { gap: 22px; }
  .nav-aux { gap: 20px; }
}
@media (max-width: 1024px) {
  :root { --wrap: min(1280px, calc(100% - 48px)); }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px; background: #0b0917; box-shadow: 0 24px 48px -12px rgba(0, 0, 0, .8); border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-main, .nav-aux { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav-aux { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 8px; }
  .nav-links a:not(.btn) { padding: 13px 4px; font-size: 16px; }
  .nav-main a.active::after { display: none; }
  .nav-links .nav-cta { margin-top: 12px; padding: 14px; font-size: 15px; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { max-width: 640px; }
  .hero-visual { max-width: 760px; margin-right: 0; }
  .tech-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tech-label { max-width: none; }
  .tech-img { display: none; }
  .why-media { max-width: 640px; }
  .stats-bg { width: 100%; height: 60%; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }
  .tech-list { justify-content: flex-start; width: 100%; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .projects { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  :root { --wrap: calc(100% - 32px); }
  .nav-inner { height: 64px; }
  .nav-links { max-height: calc(100vh - 64px); padding: 8px 16px 20px; }
  .brand-tag { display: none; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .trust { flex-direction: column; gap: 12px; }
  .hero-photo { border-radius: 16px; }
  .service-media { margin: -24px -24px 20px; }
  .chip { width: 44px; height: 44px; border-radius: 12px; }
  .chip svg { width: 20px; height: 20px; }
  .chip-code { right: 16px; top: -18px; }
  .chip-discord { left: 16px; bottom: -18px; }
  .services, .why-grid { grid-template-columns: 1fr; }
  .service, .why-item { padding: 24px; }
  .tech-list { gap: 14px 22px; }
  .tech-list li { font-size: 14px; }
  .stat { padding: 0 0 0 18px; }
  .contact-form { padding: 20px; }
  .cta { border-radius: 20px; }
  .discord-btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------- Handy-Ansicht 2026-10-18 -- */
/* Nur fürs Handy (≤ 640px) nach dem Mobile-Redesign: Karussells zum Wischen,
   Technologien als Pillen-Leiste, Kontakt flach mit Discord zuerst.
   PC/Tablet bleiben unverändert – diese Elemente sind dort ausgeblendet. */
.swipe-hint, .form-divider, .kinds { display: none; }

@media (max-width: 640px) {
  :root { --section-y: 56px; }
  html { scroll-padding-top: 72px; }
  .nav-inner { height: 60px; }
  .nav-links { max-height: calc(100vh - 60px); }
  .brand-mark { width: 34px; height: 34px; }

  /* Hero */
  .hero { padding: 32px 0 36px; }
  .hero-bg::after { background-size: 40px 40px; }
  .hero .eyebrow {
    padding: 6px 12px; border-radius: 999px; border: 1px solid #2e2650; background: #130f22;
    font-size: 11px; letter-spacing: .08em;
  }
  .hero h1 { font-size: 38px; line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 16px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .hero-ctas { flex-direction: column; gap: 10px; margin: 24px 0 28px; }
  .hero-ctas .btn { height: 52px; border-radius: 14px; font-size: 16px; }
  .trust { display: none; }
  .hero-inner > *, .stats-box > * { min-width: 0; }
  .hero-photo { aspect-ratio: 16 / 9; border-radius: 20px; }
  .chip { display: none; }

  /* Technologien: eine wischbare Pillen-Leiste */
  .tech { background: none; border: 0; }
  .tech-inner { gap: 12px; padding: 4px 0 8px; }
  .tech-label { font-size: 12px; letter-spacing: .12em; color: #8e89a6; }
  .tech-list {
    flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none;
    width: auto; margin: 0 -16px; padding: 0 16px; align-self: stretch;
  }
  .tech-list::-webkit-scrollbar, .services::-webkit-scrollbar, .projects::-webkit-scrollbar { display: none; }
  .tech-list li {
    flex: none; padding: 9px 14px; border-radius: 999px; border: 1px solid #23202f; background: #0f0e17;
    font-size: 14px; color: #dcd8ea;
  }
  .tech-list svg { width: 16px; height: 16px; }

  /* Sektionsköpfe kompakt, Text daneben entfällt */
  .section { border-top: 1px solid #15131f; padding-top: 32px; margin-top: 24px; }
  .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
  .section-head h2, .why-text h2, .stats-head h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin-top: 6px; }
  .section-side { display: none; }
  .swipe-hint { display: block; flex: none; font-size: 13px; color: #8e89a6; white-space: nowrap; padding-bottom: 4px; }

  /* Leistungen + Projekte: Karussell mit Einrasten */
  .services, .projects {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; overscroll-behavior-x: contain;
  }
  .service, .project { flex: none; scroll-snap-align: start; border-radius: 20px; }
  .service { width: min(272px, 78vw); padding: 20px; background: #0f0d18; border-color: #221f33; }
  .project { width: min(300px, 84vw); background: #0f0d18; border-color: #221f33; }
  .services .reveal, .projects .reveal { opacity: 1; transform: none; }
  .service:hover, .project:hover, .service.reveal.in-view:hover, .project.reveal.in-view:hover { transform: none; }
  .service-media { display: none; }
  .service-top { margin-bottom: 14px; }
  .service-icon { width: 44px; height: 44px; }
  .service h3 { font-size: 19px; margin-bottom: 8px; }
  .service p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
  .ticks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
  .ticks li { padding: 5px 10px; border-radius: 8px; background: #17142a; font-size: 12px; font-weight: 600; color: #c4b5fd; }
  .ticks li::before { display: none; }
  .more { font-size: 14px; }
  .project-media { aspect-ratio: 15 / 8; }
  .tag { top: 12px; bottom: auto; left: 12px; font-size: 12px; padding: 5px 10px; border-radius: 8px; }
  .project-body { padding: 16px 18px 18px; }
  .project-body h3 { font-size: 18px; margin-bottom: 6px; }
  .project-body p { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }

  /* Zahlen kompakt */
  #about { border-top: 0; margin-top: 0; }
  .stats-box { padding: 22px; gap: 20px; border-radius: 20px; background: #130f22; border-color: #2e2650; }
  .stats-bg { display: none; }
  .stats { row-gap: 18px; }
  .stat { padding: 0 0 0 14px; }
  .stat b { font-size: 30px; margin-bottom: 4px; }
  .stat span { font-size: 13px; }

  /* Warum: 2×2 statt Bild + Liste */
  .why { gap: 18px; }
  .why-text p { font-size: 15px; margin-top: 12px; }
  .why-media { display: none; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .why-item { padding: 16px; border-radius: 16px; background: #0f0d18; border-color: #221f33; }
  .why-icon { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 10px; }
  .why-icon svg { width: 19px; height: 19px; }
  .why-item h3 { font-size: 15px; margin-bottom: 4px; }
  .why-item p { font-size: 13px; line-height: 1.45; color: #b9b4cc; }

  /* Kontakt: flach, ohne Karte-in-Karte, Discord zuerst */
  .cta-section { background: #0c0a16; padding-bottom: 36px; }
  .cta { display: block; padding: 0; border: 0; border-radius: 0; background: none; overflow: visible; }
  .cta-bg, .cta-glow { display: none; }
  .cta h2 { font-size: 28px; line-height: 1.15; margin-top: 6px; }
  .cta-text p { font-size: 15px; margin: 10px 0 20px; }
  .discord-btn { height: 52px; border-radius: 14px; background: #5865f2; border-color: #5865f2; color: #fff; font-size: 16px; font-weight: 700; }
  .discord-btn svg { color: #fff; }
  .discord-btn:hover { background: #4752c4; border-color: #4752c4; }
  .contact-form { padding: 0; margin-top: 20px; background: none; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .form-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13px; color: #7e7a93; }
  .form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: #221f33; }
  .kinds { display: block; border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
  .kinds legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #dcd8ea; }
  .kinds-list { display: flex; flex-wrap: wrap; gap: 8px; }
  .kinds label { position: relative; }
  .kinds input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
  .kinds span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
    border: 1px solid #2b2840; background: #12101c; color: #c9c5da; font-size: 14px; font-weight: 600;
  }
  .kinds input:checked + span { border-color: #8b5cf6; background: #241a45; color: #ede9fe; }
  .kinds input:focus-visible + span { outline: 2px solid var(--purple-bright); outline-offset: 2px; }
  .field label { font-size: 14px; font-weight: 600; color: #dcd8ea; }
  input, textarea { font-size: 16px; border-radius: 12px; background: #12101c; border-color: #2b2840; }
  .field input { height: 50px; }
  .contact-form .btn-primary { height: 54px; border-radius: 14px; font-size: 16px; font-weight: 700; }

  /* Footer */
  .site-footer { margin-top: 0; }
  .footer-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 32px 0 24px; }
  .footer-nav { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .footer-nav a { padding: 10px 0; font-size: 15px; color: #c9c5da; }
  .socials { grid-column: 2; grid-row: 1; }
  .social { width: 44px; height: 44px; border-radius: 12px; }
  .footer-legal { gap: 4px 18px; }
  .footer-legal a { padding: 6px 0; font-size: 13px; color: #a9a4bf; }
  .footer-bottom { flex-direction: column-reverse; gap: 12px; padding-bottom: 40px; }
}
