/* ═══════════════════════════════════════════════════════════════
   DANIEL KREATIV — PREMIUM PORTFOLIO
   Dark Luxury / Glassmorphism / Creative Studio Aesthetic
   ═══════════════════════════════════════════════════════════════ */

/* ── LOCAL FONTS ────────────────────────────────────────────── */
@font-face {
  font-family: 'Outfit';
  src: url('outfit-latin.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Outfit';
  src: url('outfit-latin-ext.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ── CUSTOM PROPERTIES ──────────────────────────────────────── */
:root {
  --bg-deep: #08080d;
  --bg-surface: #0e0e14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(14, 14, 20, 0.7);

  --text-primary: #e8e8ec;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;

  --accent: #ffff00;
  --accent-dim: rgba(255, 255, 0, 0.12);
  --accent-glow: rgba(255, 255, 0, 0.08);

  --border: rgba(255, 255, 255, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── CUSTOM CURSOR ──────────────────────────────────────────── */
@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  .cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    /* NOTE: no transition on transform — only on size/color so cursor doesn't lag */
    transition: width 0.2s var(--ease-out), height 0.2s var(--ease-out),
                background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out),
                opacity 0.2s var(--ease-out);
  }

  .cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    /* scale() instead of width/height — GPU only, no layout reflow */
    transition: border-color 0.3s var(--ease-out), border-width 0.3s var(--ease-out),
                background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out),
                opacity 0.3s var(--ease-out);
  }

  .cursor-dot.is-hover {
    background: #fff;
    box-shadow: 0 0 14px 5px rgba(255, 255, 0, 0.5);
  }

  .cursor-ring.is-hover {
    border-color: var(--accent);
    border-width: 2px;
    background: rgba(255, 255, 0, 0.1);
    box-shadow: 0 0 20px 4px rgba(255, 255, 0, 0.15);
  }

  .cursor-dot.is-click {
    opacity: 0.6;
  }
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-deep);     /* iOS overscroll-Hintergrund (oben & unten) */
}

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 48px;
  }
}

.section {
  padding: 120px 0;
  position: relative;
}

@media (max-width: 767px) {
  .section {
    padding: 80px 0;
  }

}

/* ── REVEAL ANIMATIONS ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SECTION HEADERS ────────────────────────────────────────── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.4s var(--ease-out), padding 0.4s var(--ease-out),
              backdrop-filter 0.4s var(--ease-out);
}

.nav.is-scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .nav-inner {
    padding: 0 48px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 102;
}

.logo-text {
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 300;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  transition: color 0.3s var(--ease-out);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link--cta {
  background: var(--accent);
  color: #000 !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  border: 1px solid var(--accent);
  box-shadow: 0 0 18px rgba(255, 255, 0, 0.35);
  transition: background 0.3s var(--ease-out), transform 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.nav-link--cta::after {
  display: none;
}

.nav-link--cta:hover {
  background: #ffff33;
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 255, 0, 0.55);
}

.nav-link--cta:active {
  transform: scale(0.98);
}

/* ── NAV TOGGLE (MOBILE) ────────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  z-index: 102;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}

.nav-toggle.is-active .nav-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-active .nav-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
    z-index: 100;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
  }

  .nav-link--cta {
    font-size: 1rem;
    padding: 14px 32px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}


/* ── HERO BACKGROUND ─────────────────────────────────────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Soft fade to bottom via pseudo — no mask-image (cheaper compositing) */
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, transparent 65%, var(--bg-deep) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Static glow shapes — no filter:blur, no animations, no will-change.
   Soft look comes purely from the gradient stops. */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-orb--1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.11) 0%, rgba(255, 255, 0, 0.04) 35%, transparent 70%);
  top: -30%;
  right: -15%;
}

.hero-orb--2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.06) 0%, rgba(52, 211, 153, 0.02) 40%, transparent 75%);
  bottom: -25%;
  left: -10%;
}

.hero-orb--3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.05) 0%, transparent 70%);
  top: 35%;
  left: 25%;
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ── HERO INNER ─────────────────────────────────────────────── */
.hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  width: 100%;
  position: relative;
  z-index: 2;
}

@media (min-width: 768px) {
  .hero-inner {
    padding: 0 48px;
    grid-template-columns: 1.6fr 1fr;
    align-items: center;
    gap: 48px;
  }
}

/* ── HERO CONTENT ────────────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 255, 0, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-bottom: 28px;
  max-width: 100%;
}

.hero-title-line {
  display: block;
  max-width: 100%;
  white-space: nowrap;       /* keine Zeilenumbrüche während Scramble */
  overflow: hidden;          /* keine Buchstaben über den rechten Rand */
}

.hero-title-line--accent {
  color: var(--accent);
}

/* Desktop: erste zwei Zeilen inline → "Wir bauen Marken mit" auf einer Zeile */
@media (min-width: 900px) {
  .hero-title-line:not(.hero-title-line--accent) {
    display: inline;
  }
  .hero-title-line--accent {
    display: block;
  }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 48ch;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── HERO ACTIONS ────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s var(--ease-out),
              background 0.3s var(--ease-out);
}

.btn:active {
  transform: scale(0.97) translateY(1px);
}

.btn--primary {
  background: var(--accent);
  color: var(--bg-deep);
}

.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(255, 255, 0, 0.25);
  transform: translateY(-2px);
}

.btn--primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 18px 36px;
  font-size: 1rem;
}

.btn i {
  font-size: 1.15em;
  transition: transform 0.3s var(--ease-out);
}

.btn:hover i {
  transform: translateX(3px);
}

/* ── HERO STATS ──────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.03em;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.02em;
}

/* Break wirkt nur auf Mobile — Desktop bleibt einzeilig */
.stat-break { display: none; }
@media (max-width: 767px) {
  .stat-break { display: inline; }
}

/* ── HERO VISUAL (NOISE GRID PORTRAIT) ───────────────────────── */
.hero-visual {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
    min-width: 0;           /* allow grid cell to shrink below orbit intrinsic size */
    overflow: visible;
  }
}

/* Mobile: Sonnensystem als verschwommener Background-Layer hinter dem Hero-Text */
@media (max-width: 767px) {
  .hero-visual {
    display: block;
    position: absolute;
    /* Über die Grenzen von .hero-inner hinausziehen, damit kein Cut sichtbar wird */
    top: -120px;
    bottom: -120px;
    left: -10vw;
    right: -10vw;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.08;
    filter: blur(4px) saturate(90%) brightness(0.6);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 25%, transparent 100%);
            mask-image: radial-gradient(ellipse 70% 60% at 70% 35%, #000 25%, transparent 100%);
  }
  .hero-visual .css-orbit {
    width: 720px;
    height: 720px;
    top: 15%;       /* Höhe der ersten Headline-Zeile */
    left: 70%;
  }
  .hero-inner,
  .hero-content {
    position: relative;
    z-index: 1;
  }
}

/* ── CSS ORBIT SYSTEM (static graphic + cursor drift) ──────── */
.css-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  /* --orbit-x / --orbit-y = cursor-drift (JS), --orbit-rot = slow auto-rotation (JS).
     Using calc() keeps the centering intact. Rotate goes last so it spins around element center. */
  transform: translate3d(calc(-50% + var(--orbit-x, 0px)), calc(-50% + var(--orbit-y, 0px)), 0) rotate(var(--orbit-rot, 0deg));
  width: 880px;
  height: 880px;
  pointer-events: none;
  will-change: transform;
  -webkit-mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.25) 70%, transparent 100%);
          mask-image: radial-gradient(ellipse 55% 55% at 50% 50%, #000 0%, rgba(0,0,0,0.85) 40%, rgba(0,0,0,0.25) 70%, transparent 100%);
}

/* Sun — glowing yellow center */
.css-sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 46px; height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffff80 30%, #ffff00 65%, #b8a000 100%);
  box-shadow:
    0 0 30px 12px rgba(255, 255, 0, 0.55),
    0 0 80px 28px rgba(255, 255, 0, 0.22),
    0 0 160px 56px rgba(255, 255, 0, 0.07);
  z-index: 5;
}

/* Orbit rings */
.css-ring {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.css-ring--1 { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
.css-ring--2 { width: 345px; height: 345px; margin: -172.5px 0 0 -172.5px; }
.css-ring--3 { width: 500px; height: 500px; margin: -250px 0 0 -250px; }
.css-ring--4 { width: 680px; height: 680px; margin: -340px 0 0 -340px; }

/* Planet tracks — static, rotated to distribute planets around orbit */
.css-planet-track {
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
}
.css-planet-track--1 { transform: rotate(-30deg); }
.css-planet-track--2 { transform: rotate(140deg); }
.css-planet-track--3 { transform: rotate(-110deg); }
.css-planet-track--4 { transform: rotate(55deg); }

/* Planets — positioned statically on their ring */
.css-planet {
  position: absolute;
  border-radius: 50%;
}

.css-planet--1 {
  width: 8px; height: 8px;
  top: -4px; left: 106px;           /* 110 - 4 */
  background: radial-gradient(circle at 35% 35%, #e8cf9a, #7a6030);
  box-shadow: 0 0 5px 1px rgba(232, 207, 154, 0.35);
}
.css-planet--2 {
  width: 12px; height: 12px;
  top: -6px; left: 166.5px;         /* 172.5 - 6 */
  background: radial-gradient(circle at 35% 35%, #ffcc66, #a07020);
  box-shadow: 0 0 7px 2px rgba(255, 204, 102, 0.35);
}
.css-planet--3 {
  width: 15px; height: 15px;
  top: -7.5px; left: 242.5px;       /* 250 - 7.5 */
  background: radial-gradient(circle at 35% 35%, #6fb6ff, #2b5ea8);
  box-shadow: 0 0 11px 3px rgba(100, 170, 255, 0.28);
}
.css-planet--4 {
  width: 18px; height: 18px;
  top: -9px; left: 331px;           /* 340 - 9 */
  background: radial-gradient(circle at 35% 35%, #f5d498, #8a6530);
  box-shadow: 0 0 7px 2px rgba(245, 212, 152, 0.28);
}

/* Mobile-only zusätzliche Planeten (mehr Bewegung im Hintergrund) */
.css-planet-track--m1,
.css-planet-track--m2,
.css-planet-track--m3,
.css-planet-track--m4,
.css-planet-track--m5,
.css-planet-track--m6 {
  display: none;
}

@media (max-width: 767px) {
  .css-planet-track--m1,
  .css-planet-track--m2,
  .css-planet-track--m3,
  .css-planet-track--m4,
  .css-planet-track--m5,
  .css-planet-track--m6 {
    display: block;
  }
  .css-planet-track--m1 { transform: rotate(95deg); }
  .css-planet-track--m2 { transform: rotate(-75deg); }
  .css-planet-track--m3 { transform: rotate(220deg); }
  .css-planet-track--m4 { transform: rotate(30deg); }
  .css-planet-track--m5 { transform: rotate(270deg); }
  .css-planet-track--m6 { transform: rotate(-160deg); }

  /* Ring 1 (r = 110) */
  .css-planet--m1 {
    width: 6px; height: 6px;
    top: -3px; left: 107px;
    background: radial-gradient(circle at 35% 35%, #ffffff, #888);
    box-shadow: 0 0 5px 1px rgba(255, 255, 255, 0.3);
  }
  /* Ring 2 (r = 172.5) */
  .css-planet--m2 {
    width: 9px; height: 9px;
    top: -4.5px; left: 168px;
    background: radial-gradient(circle at 35% 35%, #ff9a6c, #803020);
    box-shadow: 0 0 6px 2px rgba(255, 154, 108, 0.3);
  }
  .css-planet--m3 {
    width: 7px; height: 7px;
    top: -3.5px; left: 169px;
    background: radial-gradient(circle at 35% 35%, #9ec8ff, #2c4f80);
    box-shadow: 0 0 5px 1px rgba(158, 200, 255, 0.3);
  }
  /* Ring 3 (r = 250) */
  .css-planet--m4 {
    width: 10px; height: 10px;
    top: -5px; left: 245px;
    background: radial-gradient(circle at 35% 35%, #d8d8d8, #555);
    box-shadow: 0 0 6px 2px rgba(216, 216, 216, 0.28);
  }
  .css-planet--m5 {
    width: 13px; height: 13px;
    top: -6.5px; left: 243.5px;
    background: radial-gradient(circle at 35% 35%, #ffb060, #803a10);
    box-shadow: 0 0 8px 2px rgba(255, 176, 96, 0.3);
  }
  /* Ring 4 (r = 340) */
  .css-planet--m6 {
    width: 14px; height: 14px;
    top: -7px; left: 333px;
    background: radial-gradient(circle at 35% 35%, #cfd8b8, #5a6240);
    box-shadow: 0 0 7px 2px rgba(207, 216, 184, 0.28);
  }
}

/* Stars — scattered tiny dots via background */
.css-orbit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 82% 12%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 45% 78%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 92% 65%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 28% 92%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 68% 42%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 8% 58%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1.5px 1.5px at 38% 52%, rgba(255,255,255,0.55), transparent),
    radial-gradient(1px 1px at 75% 88%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 20% 45%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.4), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1.5px 1.5px at 5% 80%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 48% 5%, rgba(255,255,255,0.35), transparent);
  z-index: 0;
}

/* ── HERO SCROLL INDICATOR ───────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-scroll-line {
  width: 2px;
  height: 64px;
  background: linear-gradient(to bottom, var(--accent), rgba(255, 255, 0, 0.2));
  box-shadow: 0 0 12px rgba(255, 255, 0, 0.4);
  border-radius: 2px;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ═══════════════════════════════════════════════════════════════
   SERVICES / LEISTUNGEN
   ═══════════════════════════════════════════════════════════════ */
.services {
  background: linear-gradient(
    to bottom,
    var(--bg-deep) 0%,
    var(--bg-surface) 180px
  );
}

.services .section-header {
  text-align: left;
  margin-bottom: 64px;
}

@media (min-width: 768px) {
  .services .section-header {
    max-width: 60%;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: rgba(255, 255, 0, 0.15);
  transform: translateY(-4px);
}

.service-card-inner {
  position: relative;
  z-index: 2;
  padding: 46px 32px 26px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-spring);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-3deg);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.service-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-cta {
  grid-column: 1 / -1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 56px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 0, 0.2);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  background: transparent;
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  width: fit-content;
}

@media (max-width: 767px) {
  .service-cta {
    display: inline-flex;
  }
}

.service-cta:hover {
  border-color: rgba(255, 255, 0, 0.4);
  background: rgba(255, 255, 0, 0.06);
}

.tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.service-card:hover .tag {
  border-color: rgba(255, 255, 0, 0.12);
  color: var(--text-secondary);
}

/* ── SERVICE GLOW ────────────────────────────────────────────── */
.service-glow {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  opacity: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 0, 0.08) 0%, transparent 60%);
  transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}

.service-card:hover .service-glow {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   PAINPOINTS
   ═══════════════════════════════════════════════════════════════ */
/* Wrapper teilt Hintergrund + Raster zwischen Painpoints und Kontakt */
.painpoints-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 18% at 50% 0%, #0e1e3a 0%, transparent 100%),
    #050d1c;
}

/* Architectural line grid — über den ganzen Wrapper */
.painpoints-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 0, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 0, 0.08) 1px, transparent 1px);
  background-size: 88px 88px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, #000 40%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

/* Sanfter gelber Akzent oben über dem ganzen Wrapper */
.painpoints-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 20% at 50% 0%, rgba(255, 255, 0, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.painpoints {
  padding: 140px 0;
  position: relative;
  z-index: 1;
}

.painpoints > * {
  position: relative;
  z-index: 1;
}

/* Section header typography on the dark blue background */
.painpoints .section-tag {
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  padding: 0;
}

.painpoints .section-title {
  color: #ffffff;
}

.painpoints .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 767px) {
  .painpoints {
    padding: 100px 0;
  }
}

.painpoints-header {
  text-align: center;
  margin-bottom: 80px;
}

@media (min-width: 768px) {
  .painpoints-header {
    margin-bottom: 100px;
  }
}

.painpoints-header .section-title {
  max-width: 100%;
}

.painpoints-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px 0;
}

@media (min-width: 768px) {
  .painpoints-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 72px 48px;
  }
}

@media (min-width: 1024px) {
  .painpoints-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 80px 72px;
    max-width: 900px;
    margin: 0 auto;
  }
}

/* ── PAINPOINT ITEM ──────────────────────────────────────────── */
.painpoint {
  text-align: center;
  padding: 0 12px;
  transition: transform 0.4s var(--ease-out);
}

.painpoint.is-active {
  transform: scale(1.03);
}

.painpoint-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  transition: color 0.4s var(--ease-out);
}

.painpoint-icon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.painpoint:hover .painpoint-icon,
.painpoint.is-active .painpoint-icon {
  color: var(--accent);
}

.painpoint:hover .painpoint-icon::after,
.painpoint.is-active .painpoint-icon::after {
  background: rgba(255, 255, 0, 0.18);
  box-shadow: 0 0 30px rgba(255, 255, 0, 0.2);
}

.painpoint-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 12px;
  transition: color 0.4s var(--ease-out);
}

.painpoint:hover .painpoint-title,
.painpoint.is-active .painpoint-title {
  color: var(--accent);
}

.painpoint-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  max-width: 32ch;
  margin: 0 auto;
  transition: color 0.4s var(--ease-out);
}

.painpoint:hover .painpoint-desc,
.painpoint.is-active .painpoint-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ═══════════════════════════════════════════════════════════════
   STUDIO SCROLL — STICKY STORYTELLING
   ═══════════════════════════════════════════════════════════════ */
.studio-scroll {
  position: relative;
  min-height: 210vh;   /* shorter scroll → text switches faster (was 320vh) */
  background: var(--bg-deep);
}

@media (min-width: 900px) {
  .studio-scroll {
    padding-top: 50px;    /* dezenter Atemraum zwischen Hero und Studio-Sektion */
  }
  .services {
    padding-top: 30px;     /* enger Abstand Studio → Leistungen (Default 120px) */
    padding-bottom: 200px; /* mehr Abstand Leistungen → Painpoints */
  }
}

.studio-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.studio-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 768px) {
  .studio-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
  }
}

.studio-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile Studio-Visual: Blob wird jetzt im Mobile-Block unten positioniert,
   nicht mehr versteckt — er wird initial sichtbar und blendet beim Scrollen aus. */

.studio-content {
  position: relative;
  min-height: 360px;
}

.studio-stage {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  transform: translate3d(0, var(--stage-y, 40px), 0);
  opacity: var(--stage-opacity, 0);
  will-change: transform, opacity;
  pointer-events: none;
}

.studio-stage--headline .section-tag {
  margin-bottom: 10px;
}

.studio-headline {
  font-family: var(--font);
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-primary);
  margin: 0;
}

.studio-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 44ch;
  margin: 0;
}

.studio-tools-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.studio-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  max-width: 520px;
  margin: 0;
}

.studio-progress {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  z-index: 5;
}

.studio-progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 50%, transparent 100%);
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

@media (max-width: 899px) {
  .studio-scroll {
    min-height: 200vh;   /* Längere Sticky-Strecke → länger auf Blob & Text verweilen */
    padding: 0;
  }
  .studio-sticky {
    height: 100dvh;      /* voller Viewport → Blob & Text exakt mittig */
  }
  .studio-grid {
    position: relative;
    min-height: 100%;
  }
  /* Blob auf Mobile: overlay über dem Textbereich, fadet beim Scrollen aus */
  .studio-visual {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 40px 24px;
    z-index: 1;
  }
  .studio-visual .about-blob {
    max-width: 480px;
    width: 100%;
  }
  .studio-content {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
  }
  .studio-stage {
    position: relative;
    inset: auto;
  }
  .studio-text {
    max-width: 36ch;
    line-height: 1.45;
  }
  .studio-progress { display: none; }
}


/* Legacy .about cleanup — keep tool-break helper in case other places use it */

.about .container {
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 1.4fr;
    gap: 80px;
    align-items: center;
  }
}

/* Static orbit canvas background (desktop only) */
.about-bg-canvas {
  display: none;
}

/* ── DESKTOP: more breathing room + static orbit background ── */
@media (min-width: 900px) {
  .about {
    padding-top: 220px;
    padding-bottom: 400px; /* keeps room for contact box overlap */
  }

  .about-bg-canvas {
    display: block;
    position: absolute;
    /* Offset up-right so the invisible "center" sits off-screen */
    top: -40%;
    right: -30%;
    left: auto;
    transform: none;
    width: 1600px;
    height: 1600px;
    max-width: 130vw;
    pointer-events: none;
    opacity: 0.32;
    z-index: 1;
  }

  /* Narrower body text — more lines instead of wide paragraphs */
  .about .about-text {
    max-width: 44ch;
  }
}

/* ── ABOUT MORPHING BLOB ────────────────────────────────────── */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 767px) {
  .about-visual {
    display: none;
  }
}

.about-blob {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  position: relative;
}

.blob-svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── ABOUT CONTENT ───────────────────────────────────────────── */
.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 58ch;
}

.about-text:last-of-type {
  margin-bottom: 36px;
}

.about-tools {
  margin-top: 8px;
}

.about-tools-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.about-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tools-break {
  flex-basis: 100%;
  height: 0;
}

.tool-badge {
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  /* Liquid Glass: Spekular-Highlight oben + Refraktionsverlauf, als Background-Layer (kein ::before → kein Hover-Flicker) */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.04) 55%, transparent 100%) top / 100% 55% no-repeat,
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.05) 40%,
      rgba(255, 255, 255, 0.02) 60%,
      rgba(255, 255, 255, 0.10) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05),
    0 6px 18px rgba(0, 0, 0, 0.25);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transform: translateZ(0);
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out),
              transform 0.35s var(--ease-out);
}

.tool-badge:hover {
  border-color: rgba(255, 255, 0, 0.6);
  color: var(--accent);
  transform: translate3d(0, -2px, 0);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT / KONTAKT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  margin-top: -40px;
  padding-bottom: 200px;
  position: relative;
  z-index: 2;
  background: transparent;
}

.contact .container {
  max-width: 900px;
}

.contact-inner {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #ffff00 0%, #cccc00 60%, #999900 100%);
  border: 1px solid rgba(255, 255, 0, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 0, 0.3);
  overflow: hidden;
  padding: 40px 40px 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .contact-inner {
    padding: 48px 80px 28px;
  }
}

.contact-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.contact-orb {
  display: none;
}

.contact-orb--1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.2) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.contact-orb--2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 0, 0.12) 0%, transparent 70%);
  bottom: -20%;
  left: -5%;
  animation: orbFloat2 16s ease-in-out infinite;
}

.contact-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  color: #0a0a00;
}

.contact-desc {
  font-size: 1.05rem;
  color: rgba(0, 0, 0, 0.65);
  max-width: 48ch;
  margin: 0 auto 28px;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

.contact-actions {
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.contact-inner .section-tag {
  color: rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 0, 0, 0.2);
}

.contact-actions .btn--primary {
  background: #000000;
  color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.contact-actions .btn--primary:hover {
  background: #111111;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Verhindern, dass das Email-Icon beim Hover Richtung Text wandert */
.contact-actions .btn:hover i {
  transform: none;
}



/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  background: #050d1c;
}

/* Footer-Inhalt auf gleiche Breite wie die Kontaktbox bringen */
.footer .container {
  max-width: 900px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}


.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-text {
  font-size: 1.1rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.3s var(--ease-out);
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   LEGAL PAGES (Impressum, Datenschutz)
   ═══════════════════════════════════════════════════════════════ */
.legal-page {
  padding-top: 140px;
}

.legal-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 40px;
  margin-bottom: 16px;
}

.legal-subheading {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 72ch;
}

.legal-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-list {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 16px;
  padding-left: 24px;
  max-width: 72ch;
}

.legal-list li {
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   SELECTION & SCROLLBAR
   ═══════════════════════════════════════════════════════════════ */
::selection {
  background: rgba(255, 255, 0, 0.25);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
  .hero-stats {
    gap: 41px;
  }

  .hero-stat-num {
    font-size: 1.55rem;
  }

  .hero-stat-label {
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .hero-title {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .hero-scroll {
    bottom: -4px;
  }

  .hero-stats {
    margin-bottom: 48px;
    margin-top: -20px;
    margin-left: 5px;
  }

  /* Tool-Badges kompakter, damit 7 Stück sicher in 2 Zeilen passen */
  .studio-tools-list,
  .about-tools-list {
    gap: 8px 8px;
  }
  .tool-badge {
    padding: 5px 12px;
    font-size: 0.72rem;
  }

  /* Gesamten Studio-Inhalt (Headline → Tools) als Block nach unten setzen */
  .studio-content {
    padding-top: 60px;
  }

  /* Etwas weniger Abstand Studio → Leistungen */
  .services {
    padding-top: 10px;
    padding-bottom: 140px;
    margin-top: -80px;
    position: relative;
    z-index: 3;
  }


  /* Studio-Sektion überlappt mit Hero → während die Hero zwischen 70-100%
     ausfadet (siehe initHeroFade in script.js), wird der Blob darunter sichtbar.
     Mask-Image am oberen Rand sorgt für einen weichen Übergang statt Hard Cut. */
  .studio-scroll {
    margin-top: -30vh;
    position: relative;
    z-index: 2;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30vh, #000 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, #000 30vh, #000 100%);
  }

  /* Inhalt über den Stats (Badge, Title, Sub, Buttons) etwas nach unten */
  .hero-badge {
    margin-top: 20px;
  }

  .hero-sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
  }

  .hero-stats {
    position: relative;
    z-index: 50;
    opacity: 1 !important;
    transform: none !important;
    isolation: isolate;
  }

  .hero-stats .hero-stat-label,
  .hero-stats .hero-stat-num {
    color: #ffffff !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
    text-shadow: none !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Bottom-Fade auf Mobile: nur die letzten ~12 % abdunkeln, damit
     der Übergang zur nächsten Sektion erhalten bleibt, die Stats
     darüber aber nicht gräulich überlagert werden. Stats liegen
     ohnehin auf z-index 10 und stehen damit vor dem Gradient. */
  .hero-bg::after {
    background: linear-gradient(to bottom, transparent 0%, transparent 96%, var(--bg-deep) 100%);
    z-index: 0;   /* unter den Hero-Stats (z-index 10) */
  }

  .service-card-inner {
    padding: 34px 20px 14px;
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 14px;
  }

  .service-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    margin-bottom: 0;
    grid-row: 1;
    grid-column: 1;
  }

  .service-title {
    grid-row: 1;
    grid-column: 2;
    align-self: center;
  }

  .service-desc,
  .service-tags,
  .service-cta {
    grid-column: 1 / -1;
  }

  .service-desc {
    margin-top: 12px;
  }

  .service-title {
    margin-bottom: 8px;
  }

  .service-desc {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }

  .services-grid {
    gap: 16px;
  }

  .about-blob {
    max-width: 300px;
  }

  .contact {
    margin-top: -40px;
    padding-bottom: 90px;
  }

  .contact-inner {
    padding: 36px 24px 20px;
  }

  /* Headline soll exakt 2-zeilig stehen — kleinere Font-Size + nowrap pro Zeile */
  .contact-title {
    font-size: 1.55rem;
    line-height: 1.2;
  }

  .portfolio-grid {
    grid-auto-rows: auto;
  }

  .portfolio-item {
    min-height: 260px;
  }

  .portfolio-overlay {
    opacity: 1;
  }

  .portfolio-cat,
  .portfolio-title,
  .portfolio-desc {
    transform: translateY(0);
  }
}
