/* ═══════════════════════════════════════════════════
   RUBEN RÖÖSLI – Portfolio Website
   styles.css  |  Plus Jakarta Sans · Dark Theme
   ═══════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────── */
/* 1. CSS CUSTOM PROPERTIES                            */
/* ─────────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:          #07090f;
  --bg-2:        #0e1428;
  --bg-card:     #141930;
  --bg-card-h:   #1a2040;

  /* Accent */
  --blue:        #4C6EF5;
  --purple:      #7C3AED;
  --cyan:        #38BDF8;
  --green:       #34D399;
  --pink:        #EC4899;
  --gradient:    linear-gradient(135deg, #4C6EF5, #7C3AED);
  --gradient-r:  linear-gradient(135deg, #7C3AED, #4C6EF5);

  /* Text */
  --t1: #F1F3FF;
  --t2: #8892B0;
  --t3: #4A5270;

  /* Borders */
  --border:   rgba(255,255,255,0.09);
  --border-h: rgba(255,255,255,0.18);

  /* Type */
  --font: 'Plus Jakarta Sans', sans-serif;

  /* Layout */
  --max:     1200px;
  --gap:     clamp(80px, 11vw, 140px);
  --radius:  16px;
  --radius-l: 24px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; width: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--t1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Alle Sektionen über den fixed Ambient-Orbs */
.nav, section, footer, .loader, .section-nav {
  position: relative;
  z-index: 1;
}

/* ── Seiteweite Ambient-Orbs ── */
.page-ambience {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.pa-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
}
.pa-orb--1 {
  width: 700px; height: 700px;
  background: rgba(76,110,245,.07);
  top: -10%;
  left: -15%;
  animation: pa-drift-1 24s ease-in-out infinite;
}
.pa-orb--2 {
  width: 600px; height: 600px;
  background: rgba(124,58,237,.06);
  top: 30%;
  right: -12%;
  animation: pa-drift-2 30s ease-in-out infinite;
}
.pa-orb--3 {
  width: 800px; height: 500px;
  background: rgba(56,189,248,.045);
  bottom: 5%;
  left: 10%;
  animation: pa-drift-3 36s ease-in-out infinite;
}
.pa-orb--4 {
  width: 500px; height: 500px;
  background: rgba(236,72,153,.04);
  top: 60%;
  left: 50%;
  animation: pa-drift-4 28s ease-in-out infinite;
}

@keyframes pa-drift-1 {
  0%,100% { transform: translate(0, 0); }
  33%     { transform: translate(60px, 80px); }
  66%     { transform: translate(-40px, 50px); }
}
@keyframes pa-drift-2 {
  0%,100% { transform: translate(0, 0); }
  33%     { transform: translate(-80px, 60px); }
  66%     { transform: translate(40px, -80px); }
}
@keyframes pa-drift-3 {
  0%,100% { transform: translate(0, 0); }
  50%     { transform: translate(100px, -60px); }
}
@keyframes pa-drift-4 {
  0%,100% { transform: translate(0, 0); }
  25%     { transform: translate(-60px, -40px); }
  75%     { transform: translate(50px, 60px); }
}

/* Seitenweites Grid-Muster */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

/* Grain / noise texture overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .035;
  pointer-events: none;
  z-index: 99999;
  mix-blend-mode: overlay;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: var(--font); border: none; background: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection    { background: rgba(76,110,245,0.3); color: var(--t1); }


/* ─────────────────────────────────────────────────── */
/* 3. UTILITIES                                        */
/* ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 52px);
}

.section { padding: var(--gap) 0; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll reveal */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s var(--ease) var(--delay, 0s),
              transform .65s var(--ease) var(--delay, 0s);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s var(--ease) var(--delay, 0s),
              transform .7s var(--ease) var(--delay, 0s);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s var(--ease) var(--delay, 0s),
              transform .7s var(--ease) var(--delay, 0s);
}
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible { opacity: 1; transform: none; }

/* Section header */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(48px, 7vw, 80px);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 5px 14px;
  border: 1px solid rgba(76,110,245,.3);
  border-radius: 100px;
  margin-bottom: 18px;
  background: rgba(76,110,245,.06);
}

.section-title {
  font-size: clamp(1.7rem, 3.8vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--t1);
}

.section-sub {
  font-size: 1rem;
  color: var(--t2);
  line-height: 1.75;
}


/* ─────────────────────────────────────────────────── */
/* 4. BUTTONS                                          */
/* ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: -.005em;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.07);
  opacity: 0;
  transition: opacity .2s;
}
.btn:hover::after  { opacity: 1; }
.btn:active        { transform: scale(.97) !important; }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(76,110,245,.0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(76,110,245,.45);
}

.btn-ghost {
  color: var(--t1);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  background: rgba(255,255,255,.04);
}

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


/* ─────────────────────────────────────────────────── */
/* 5. NAVIGATION                                       */
/* ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: padding .3s var(--ease), background .3s, border-color .3s;
}
.nav.scrolled {
  padding: 13px 0;
  background: rgba(7,9,15,.88);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 52px);
}

/* Logo = Name */
.nav-logo {
  font-size: .95rem;
  font-weight: 700;
  color: var(--t1);
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .2s;
}
.nav-logo:hover { color: #fff; }

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

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--t2);
  padding: 7px 14px;
  border-radius: 100px;
  transition: color .2s, background .2s;
}
.nav-link:hover,
.nav-link.active { color: var(--t1); background: rgba(255,255,255,.05); }

.nav-cta {
  background: var(--gradient) !important;
  color: #fff !important;
  font-weight: 700;
  padding: 8px 20px !important;
  box-shadow: 0 4px 20px rgba(76,110,245,.3);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 26px rgba(76,110,245,.45);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--t1);
  border-radius: 2px;
  transform-origin: center;
  transition: transform .3s var(--ease), opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────────── */
/* 6. HERO                                             */
/* ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0 80px;
}

/* Background orbs */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 110% 70% at -5% 80%, rgba(76,110,245,.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 90% at 105% 5%, rgba(124,58,237,.09) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 55% 110%, rgba(56,189,248,.06) 0%, transparent 45%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}
.orb-1 {
  width: clamp(380px, 55vw, 750px); height: clamp(380px, 55vw, 750px);
  background: radial-gradient(circle, rgba(76,110,245,.07) 0%, transparent 70%);
  top: -20%; left: -10%;
  animation: float1 20s ease-in-out infinite;
}
.orb-2 {
  width: clamp(280px, 40vw, 580px); height: clamp(280px, 40vw, 580px);
  background: radial-gradient(circle, rgba(124,58,237,.06) 0%, transparent 70%);
  top: 15%; right: -8%;
  animation: float2 24s ease-in-out infinite;
}
.orb-3 {
  width: clamp(180px, 28vw, 400px); height: clamp(180px, 28vw, 400px);
  background: radial-gradient(circle, rgba(56,189,248,.04) 0%, transparent 70%);
  bottom: 10%; left: 35%;
  animation: float3 17s ease-in-out infinite;
}
@keyframes float1 { 0%,100%{transform:translate(0,0)} 40%{transform:translate(3%,5%)} 70%{transform:translate(-2%,2%)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 35%{transform:translate(-4%,4%)} 65%{transform:translate(3%,-2%)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-3%,-4%)} }

.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.038) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 100% 85% at 50% 10%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 85% at 50% 10%, black 0%, transparent 100%);
}

/* Hero two-column layout */
.hero-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: var(--max);
  padding: 0 clamp(20px, 5vw, 52px);
}

/* Hero left */
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t2);
  padding: 6px 16px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 28px;
  background: rgba(255,255,255,.02);
}
.badge-pulse {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

.hero-name {
  font-size: clamp(2.6rem, 6.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  margin-bottom: 22px;
  color: var(--t1);
}

.hero-sub {
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}
.hero-sub strong { color: var(--t1); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Scroll line */
.scroll-indicator {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: fadeIn 1s var(--ease) 1.4s both;
}
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.scroll-line {
  width: 1px; height: 52px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  margin: 0 auto;
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}


/* ─────────────────────────────────────────────────── */
/* 7. HERO VISUAL (Floating Project Card)              */
/* ─────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Main browser card */
.hv-card {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.08),
    0 30px 60px rgba(0,0,0,.5),
    0 0 80px rgba(76,110,245,.08);
  animation: heroFloat 5s ease-in-out infinite;
  background: #131625;
}
@keyframes heroFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hv-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1a1e30;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.hv-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
}
.hv-dot:nth-child(1) { background: #ff5f56; }
.hv-dot:nth-child(2) { background: #febc2e; }
.hv-dot:nth-child(3) { background: #28c840; }

.hv-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 5px;
  padding: 4px 10px;
  font-size: .68rem;
  color: var(--t3);
  font-weight: 500;
  margin: 0 auto;
  max-width: 200px;
}
.hv-url svg { opacity: .6; flex-shrink: 0; }

/* Mini website screen */
.hv-screen {
  background: #f4f7ff;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.hv-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s var(--ease);
}
.hv-card:hover .hv-screenshot { transform: scale(1.04) translateY(-1%); }


/* Floating quality badges */
.hv-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(7,9,15,.92);
  border: 1px solid var(--border-h);
  border-radius: 100px;
  padding: 8px 14px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--t1);
  backdrop-filter: blur(12px);
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

.hv-badge--perf {
  bottom: -18px;
  right: -10px;
  gap: 10px;
  animation: heroFloat 4.5s ease-in-out infinite .6s;
}
.perf-score {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #34D399, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.perf-text { display: flex; flex-direction: column; }
.perf-label { font-size: .75rem; font-weight: 700; }
.perf-sub   { font-size: .65rem; color: var(--t3); font-weight: 400; }

.hv-badge--mobile {
  top: -14px;
  right: 20px;
  animation: heroFloat 3.8s ease-in-out infinite 1.1s;
}
.hv-badge--mobile svg { color: var(--blue); }

.hv-badge--live {
  top: 40%;
  left: -14px;
  animation: heroFloat 4.2s ease-in-out infinite .3s;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}


/* ─────────────────────────────────────────────────── */
/* 8. SERVICES                                         */
/* ─────────────────────────────────────────────────── */

/* ─────────────────────────────────────────────────── */
/* 8a. MARQUEE STRIP                                   */
/* ─────────────────────────────────────────────────── */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: rgba(255,255,255,.012);
}
.marquee-inner {
  display: flex;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
}
.marquee-inner:hover { animation-play-state: paused; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}
.marquee-track span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--t2);
  transition: color .2s;
}
.marquee-inner:hover .marquee-track span { color: var(--t1); }
.mq-sep {
  color: var(--blue) !important;
  opacity: .6;
  font-size: .65rem;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.services { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.service-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-h);
}

/* Per-card accent color */
.service-card[data-color="blue"]:hover { border-color: rgba(76,110,245,.35); }
.service-card[data-color="cyan"]:hover { border-color: rgba(56,189,248,.35); }
.service-card[data-color="violet"]:hover { border-color: rgba(124,58,237,.35); }
.service-card[data-color="pink"]:hover { border-color: rgba(236,72,153,.35); }

/* Top accent line on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.service-card[data-color="blue"]::before   { background: linear-gradient(90deg, #4C6EF5, #7C3AED); }
.service-card[data-color="cyan"]::before   { background: linear-gradient(90deg, #38BDF8, #4C6EF5); }
.service-card[data-color="violet"]::before { background: linear-gradient(90deg, #7C3AED, #EC4899); }
.service-card[data-color="pink"]::before   { background: linear-gradient(90deg, #EC4899, #7C3AED); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(76,110,245,.1);
  border: 1px solid rgba(76,110,245,.2);
  border-radius: 12px;
  margin-bottom: 18px;
  transition: background .3s, border-color .3s;
}
.service-card:hover .service-icon {
  background: rgba(76,110,245,.18);
  border-color: rgba(76,110,245,.4);
}
.service-icon svg { width: 20px; height: 20px; color: var(--blue); }

.service-card[data-color="blue"]   .service-icon { background: rgba(76,110,245,.12); border-color: rgba(76,110,245,.22); }
.service-card[data-color="blue"]   .service-icon svg { color: #4C6EF5; }
.service-card[data-color="cyan"]   .service-icon { background: rgba(56,189,248,.12); border-color: rgba(56,189,248,.22); }
.service-card[data-color="cyan"]   .service-icon svg { color: #38BDF8; }
.service-card[data-color="violet"] .service-icon { background: rgba(124,58,237,.12); border-color: rgba(124,58,237,.22); }
.service-card[data-color="violet"] .service-icon svg { color: #7C3AED; }
.service-card[data-color="pink"]   .service-icon { background: rgba(236,72,153,.12); border-color: rgba(236,72,153,.22); }
.service-card[data-color="pink"]   .service-icon svg { color: #EC4899; }

.service-card h3 {
  font-size: 1.0rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
  color: var(--t1);
}
.service-card p {
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.service-features { display: flex; flex-direction: column; gap: 5px; }
.service-features li {
  font-size: .8rem;
  color: var(--t3);
  padding-left: 12px;
  position: relative;
}
.service-features li::before {
  content: '–';
  position: absolute; left: 0;
  color: var(--blue);
  font-size: .75rem;
}

.service-addon { border-style: dashed; }
.addon-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 3px 10px;
  border: 1px solid rgba(124,58,237,.35);
  border-radius: 100px;
  background: rgba(124,58,237,.08);
}


/* ─────────────────────────────────────────────────── */
/* 9. PORTFOLIO                                        */
/* ─────────────────────────────────────────────────── */
.portfolio { position: relative; }
.portfolio::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), var(--purple), transparent);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: border-color .3s;
}
.project-card + .project-card {
  margin-top: 32px;
}
.project-card:hover { border-color: rgba(76,110,245,.3); }

.project-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 480px;
}
.project-inner--reverse {
  grid-template-columns: 1fr 1.1fr;
  direction: rtl;
}
.project-inner--reverse > * { direction: ltr; }

/* Browser mockup */
.mockup-wrapper {
  padding: 32px 28px 32px 32px;
  background: linear-gradient(135deg, rgba(76,110,245,.06), rgba(124,58,237,.04));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.browser-mockup {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 28px 60px rgba(0,0,0,.5);
  transform-style: preserve-3d;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transition: transform .5s var(--ease);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #1a1e30;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.browser-dots { display: flex; gap: 6px; flex-shrink: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #ff5f56; }
.dot-yellow { background: #febc2e; }
.dot-green  { background: #28c840; }

.browser-url-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 6px;
  padding: 5px 12px;
  font-size: .7rem;
  color: var(--t3);
  max-width: 260px;
  margin: 0 auto;
  font-weight: 500;
}
.browser-url-bar svg { opacity: .6; flex-shrink: 0; }

.browser-btns { display: flex; gap: 6px; }
.browser-btn {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}

.browser-content {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #f4f7ff;
}

/* Screenshot */
.site-screenshot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
}
.site-screenshot.hidden { display: none; }

/* CSS Placeholder */
.site-placeholder {
  position: absolute; inset: 0;
  background: #f4f7ff;
  display: flex; flex-direction: column; overflow: hidden;
}
.ph-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px;
  background: white;
  border-bottom: 1px solid #eaecf5;
  flex-shrink: 0; gap: 10px;
}
.ph-logo-box { display: flex; align-items: center; gap: 6px; }
.ph-logo-mark { width: 24px; height: 24px; border-radius: 5px; background: linear-gradient(135deg, #2a7f7a, #1a5c58); }
.ph-logo-mark--maison { background: linear-gradient(135deg, #ffcf00, #ff3600); }
.ph-logo-text { width: 64px; height: 7px; background: #d0d5e8; border-radius: 3px; }
.ph-nav-links { display: flex; gap: 10px; }
.ph-link { width: 40px; height: 6px; background: #dde1f0; border-radius: 3px; }
.ph-cta-mini { width: 64px; height: 24px; background: linear-gradient(135deg, #2a7f7a, #1a5c58); border-radius: 12px; }
.ph-cta-mini--maison { background: linear-gradient(135deg, #ffcf00, #ff3600); }
.ph-hero--maison { background: linear-gradient(135deg, #1a1a1a, #2d1a00); }
.ph-cta-btn--maison { background: linear-gradient(135deg, #ffcf00, #ff3600); }
.ph-hero {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; flex: 1;
  background: linear-gradient(135deg, #0d6e68, #1a4a7a); gap: 12px;
}
.ph-hero-text { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.ph-h1      { width: 90%; height: 14px; background: rgba(255,255,255,.7); border-radius: 3px; }
.ph-h1-sub  { width: 70%; height: 14px; background: rgba(255,255,255,.5); border-radius: 3px; }
.ph-h2      { width: 80%; height: 8px;  background: rgba(255,255,255,.3); border-radius: 3px; margin-top: 2px; }
.ph-cta-btn { width: 80px; height: 24px; background: rgba(255,255,255,.9); border-radius: 12px; margin-top: 6px; }
.ph-hero-img { width: 36%; height: 100px; background: rgba(255,255,255,.15); border-radius: 8px; flex-shrink: 0; }
.ph-cards { display: flex; gap: 8px; padding: 10px 16px; background: white; }
.ph-card { flex: 1; height: 52px; background: #eef1fa; border-radius: 6px; border: 1px solid #e0e5f0; }

.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: shimmer 2s ease-in-out infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

/* Project info panel */
.project-info {
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.project-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  padding: 4px 11px;
  border: 1px solid rgba(76,110,245,.3);
  border-radius: 100px;
  background: rgba(76,110,245,.07);
}
.project-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.025em;
  margin-bottom: 14px;
  line-height: 1.15;
}
.project-desc {
  font-size: .9rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 22px;
}
.project-highlights { display: flex; flex-direction: column; gap: 9px; margin-bottom: 28px; }
.project-highlights li {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem;
  color: var(--t2);
}
.project-highlights li svg { color: var(--blue); flex-shrink: 0; }
.project-link { align-self: flex-start; }

.portfolio-more {
  text-align: center;
  margin-top: 48px;
  padding: 28px;
  border: 1px dashed rgba(255,255,255,.07);
  border-radius: var(--radius-l);
  background: rgba(255,255,255,.01);
}
.portfolio-more p { font-size: .875rem; color: var(--t3); margin-bottom: 8px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .875rem; font-weight: 600;
  color: var(--blue);
  transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }


/* ─────────────────────────────────────────────────── */
/* 10. ABOUT                                           */
/* ─────────────────────────────────────────────────── */
.about {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
}
.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

/* Photo */
.about-photo-wrap {
  position: relative;
  width: clamp(240px, 30vw, 340px);
  flex-shrink: 0;
  padding-bottom: 16px;
}
.about-photo {
  width: 100%;
  display: block;
  border-radius: var(--radius-l);
  /* Black background of photo blends naturally with dark site */
  filter: brightness(1.02) contrast(1.02);
}
.about-photo-fallback {
  width: 100%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, rgba(76,110,245,.12), rgba(124,58,237,.1));
  border: 1px solid rgba(76,110,245,.2);
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 800;
  background-clip: text;
  letter-spacing: -.04em;
  color: var(--blue);
}

.about-badge {
  position: absolute;
  bottom: 18px; right: -16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--t2);
  padding: 8px 14px;
  background: rgba(7,9,15,.92);
  border: 1px solid var(--border-h);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

/* About text */
.about-text { padding: 8px 0; }
.about-title {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 16px 0 22px;
}
.about-desc {
  font-size: .975rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 14px;
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num-wrap { display: flex; align-items: baseline; gap: 1px; }
.stat-number {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-suffix,
.stat-prefix {
  font-size: 1.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
}


/* ─────────────────────────────────────────────────── */
/* 11. WHY ME                                          */
/* ─────────────────────────────────────────────────── */
.why { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.why-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
  position: relative;
  overflow: hidden;
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(76,110,245,.25);
  background: var(--bg-card-h);
}
.why-card::before {
  content: attr(data-num);
  position: absolute;
  bottom: -4px;
  right: 16px;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(76,110,245,.05);
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  z-index: 0;
  transition: color .3s;
}
.why-card:hover::before { color: rgba(76,110,245,.08); }
.why-number {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--blue);
  opacity: .6;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}
.why-card h3 {
  font-size: .975rem;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 9px;
  color: var(--t1);
}
.why-card p {
  font-size: .86rem;
  color: var(--t2);
  line-height: 1.7;
}


/* ─────────────────────────────────────────────────── */
/* 12. CONTACT                                         */
/* ─────────────────────────────────────────────────── */
.contact {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse 100% 100% at 50% 0%, rgba(76,110,245,.07) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(40px, 7vw, 80px);
  align-items: start;
}

.contact-title {
  font-size: clamp(1.7rem, 3.2vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 16px 0 18px;
}
.contact-desc {
  font-size: .975rem;
  color: var(--t2);
  line-height: 1.75;
  margin-bottom: 28px;
}
.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .925rem;
  font-weight: 600;
  color: var(--t2);
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 100px;
  transition: color .2s, border-color .2s;
}
.contact-email-link:hover { color: var(--t1); border-color: var(--border-h); }
.contact-email-link svg { color: var(--blue); flex-shrink: 0; }

/* Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: clamp(22px, 3.5vw, 36px);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  display: flex; flex-direction: column; gap: 7px;
  margin-bottom: 14px;
}
.form-group:last-of-type { margin-bottom: 20px; }
.form-group label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .9rem;
  font-family: var(--font);
  font-weight: 400;
  color: var(--t1);
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--t3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(76,110,245,.6);
  background: rgba(76,110,245,.04);
  box-shadow: 0 0 0 3px rgba(76,110,245,.1);
}
.form-note {
  text-align: center;
  font-size: .78rem;
  color: var(--t3);
  margin-top: 12px;
}
.form-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  display: none;
  flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 12px;
  padding: 48px 28px;
  background: rgba(52,211,153,.05);
  border: 1px solid rgba(52,211,153,.2);
  border-radius: var(--radius-l);
}
.form-success.show { display: flex; }
.form-success svg { color: var(--green); }
.form-success h4 { font-size: 1.2rem; font-weight: 700; }
.form-success p  { font-size: .88rem; color: var(--t2); }


/* ─────────────────────────────────────────────────── */
/* 13. FOOTER                                          */
/* ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 7vw, 72px) 0 clamp(24px, 4vw, 32px);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; margin-bottom: 44px; flex-wrap: wrap;
}
.footer-logo {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--t1);
  margin-bottom: 10px;
}
.footer-brand p { font-size: .85rem; color: var(--t3); line-height: 1.65; }
.footer-links   { display: flex; gap: 56px; }
.footer-col h4  {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 14px;
}
.footer-col ul  { display: flex; flex-direction: column; gap: 9px; }
.footer-col a   { font-size: .875rem; color: var(--t2); transition: color .2s; }
.footer-col a:hover { color: var(--t1); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: .78rem; color: var(--t3); }


/* ─────────────────────────────────────────────────── */
/* 14. LEGAL PAGES                                     */
/* ─────────────────────────────────────────────────── */
.legal-page { min-height: 100vh; padding: 120px 0 80px; }
.legal-content { max-width: 740px; margin: 0 auto; }
.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 8px;
}
.legal-meta {
  font-size: .83rem; color: var(--t3);
  margin-bottom: 44px; padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-size: 1.2rem; font-weight: 700;
  color: var(--t1); margin: 32px 0 11px;
}
.legal-content h3 {
  font-size: .95rem; font-weight: 600;
  color: var(--t2); margin: 18px 0 7px;
}
.legal-content p  { font-size: .9rem; color: var(--t2); line-height: 1.78; margin-bottom: 10px; }
.legal-content ul { margin: 7px 0 10px 18px; list-style: disc; }
.legal-content ul li { font-size: .9rem; color: var(--t2); line-height: 1.7; margin-bottom: 5px; }
.legal-content a  { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .875rem; color: var(--t2);
  margin-bottom: 36px;
  transition: color .2s, gap .2s;
}
.legal-back:hover { color: var(--t1); gap: 12px; }
.legal-back svg { transform: rotate(180deg); }


/* ─────────────────────────────────────────────────── */
/* 15. RESPONSIVE                                      */
/* ─────────────────────────────────────────────────── */

/* ≤ 1100px: hero stacks */
@media (max-width: 1100px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content { align-items: center; }
  .hero-sub { max-width: 600px; }
  .hero-visual { display: none; }
}

/* ≤ 960px */
@media (max-width: 960px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .why-grid          { grid-template-columns: repeat(2, 1fr); }
  .project-inner     { grid-template-columns: 1fr; min-height: auto; }
  .project-info      { border-left: none; border-top: 1px solid var(--border); }
  .about-inner       { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .about-photo-wrap  { width: clamp(220px, 55vw, 300px); }
  .about-badge       { right: -8px; }
  .about-text        { width: 100%; }
  .contact-inner     { grid-template-columns: 1fr; gap: 40px; }
}

/* ≤ 768px mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0; left: 0; right: 0; height: 100dvh;
    background: rgba(7,9,15,.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center; justify-content: center;
    gap: 20px;
    opacity: 0; pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 999;
  }
  .nav-links.open { opacity: 1; pointer-events: all; transform: none; }
  .nav-link { font-size: 1.35rem !important; padding: 10px 24px; }
  .nav-cta  { padding: 11px 30px !important; }
  .hamburger { display: flex; z-index: 1000; position: relative; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid      { grid-template-columns: 1fr; }
  .about-stats   { gap: 20px; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-inner  { flex-direction: column; }
  .footer-links  { gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 5px; }
}

@media (max-width: 440px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
}

/* ═══════════════════════════════════════════════
   INTERAKTIVITÄT & WOW-EFFEKTE
   ═══════════════════════════════════════════════ */

/* Cursor-Glow entfernt (nicht gewünscht) */

/* ── Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .55s var(--ease), visibility .55s var(--ease);
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}
.loader-ring {
  width: 36px; height: 36px;
  border: 2px solid rgba(255,255,255,.07);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: loaderSpin .75s linear infinite;
}
@keyframes loaderSpin { to { transform: rotate(360deg); } }
.loader-inner > span {
  font-size: .85rem; font-weight: 700;
  letter-spacing: .06em;
  color: var(--t3);
}

/* Scroll-Progress entfernt (nicht gewünscht) */

/* ── Cycling-Text im Hero ── */
.hero-line2 {
  white-space: nowrap;
  display: block;
}

/* Wrapper: fixe Breite via JS – verhindert Layout-Sprünge */
.cycle-wrap {
  display: inline-block;
  vertical-align: baseline;
  /* overflow: visible damit g/p/y-Unterlängen nie abgeschnitten werden */
  overflow: visible;
}

.cycle-word {
  display: inline-block;
  white-space: nowrap;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* Startzustand: voll sichtbar */
  clip-path: inset(-15% 0% -15% 0%);
}

/* Exit: Wipe nach rechts + leichtes Anheben */
.cycle-word.cycle-out {
  animation: cycleWordOut .3s var(--ease) forwards;
}

/* Enter: Wipe von links + leichtes Aufsteigen */
.cycle-word.cycle-in {
  animation: cycleWordIn .5s var(--ease) forwards;
}

@keyframes cycleWordOut {
  from {
    clip-path: inset(-15% 0%   -15% 0%);
    transform: translateY(0);
    opacity: 1;
  }
  to {
    clip-path: inset(-15% 0%   -15% 102%);
    transform: translateY(-8px);
    opacity: 0;
  }
}

@keyframes cycleWordIn {
  from {
    clip-path: inset(-15% 102% -15% 0%);
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    clip-path: inset(-15% 0%   -15% 0%);
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Card Spotlight (Maus-Tracking Glow) ── */
.service-card,
.why-card {
  --mx: 50%;
  --my: 50%;
}
.service-card::after,
.why-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(76,110,245,.11), transparent 65%);
  opacity: 0;
  transition: opacity .3s;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}
.service-card:hover::after,
.why-card:hover::after { opacity: 1; }

/* Spotlight hinter Card-Inhalt: negative z-index statt position override */
.service-card::after,
.why-card::after { z-index: -1; }

/* Isolation damit negative z-index nur innerhalb der Card gilt */
.service-card,
.why-card { isolation: isolate; }

/* ── Sektion-Dots Navigation (links) ── */
.section-nav {
  position: fixed;
  left: 28px; top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex; flex-direction: column;
  gap: 12px;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.section-nav.visible { opacity: 1; }

.sn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--t3);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
  position: relative;
}
.sn-dot.active {
  background: var(--blue);
  transform: scale(1.7);
  box-shadow: 0 0 10px rgba(76,110,245,.55);
}
.sn-dot:hover:not(.active) {
  background: var(--t2);
  transform: scale(1.4);
}
/* Tooltip */
.sn-dot::after {
  content: attr(title);
  position: absolute;
  left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%);
  font-size: .72rem; font-weight: 600;
  color: var(--t1);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  background: rgba(13,16,32,.92);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 6px;
  transition: opacity .2s, transform .2s;
  transform: translateY(-50%) translateX(-4px);
  font-family: var(--font);
}
.sn-dot:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 1280px) { .section-nav { display: none; } }

/* ── Portfolio Mockup: Hover hebt den Mockup leicht an ── */
.project-card:hover .browser-mockup {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(76,110,245,.2),
    0 36px 80px rgba(0,0,0,.6);
}

/* ── Reveal: leicht verbessert mit scale ── */
.reveal-up {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: opacity .7s var(--ease) var(--delay, 0s),
              transform .7s var(--ease) var(--delay, 0s);
}
.reveal-up.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Magnetic Button – Transition beim Verlassen ── */
.btn-primary {
  transition: transform .35s var(--ease), box-shadow .22s var(--ease);
}

/* ── Hero Name: Split-Line Overflow-Clip ── */
.hero-name {
  overflow: visible; /* Behalte overflow sichtbar für Clip-Animation */
}

/* ── Smooth underline auf nav links ── */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 1.5px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* ── Stats: Pulse auf den Zahlen beim Erscheinen ── */
.stat-number.counted {
  animation: statPop .4s var(--ease);
}
@keyframes statPop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ── Project card: Tilt-Schein beim Hover ── */
.project-card {
  transition: border-color .3s, box-shadow .4s var(--ease);
}
.project-card:hover {
  box-shadow: 0 20px 60px rgba(76,110,245,.08), 0 0 0 1px rgba(76,110,245,.2);
}

/* ── Why-Cards: Nummern leuchten beim Hover ── */
.why-card:hover .why-number {
  color: var(--blue);
  opacity: 1;
  text-shadow: 0 0 20px rgba(76,110,245,.5);
  transition: color .3s, opacity .3s, text-shadow .3s;
}

/* ═══════════════════════════════════════════════════ */
/* SOCIAL MEDIA SECTION                               */
/* ═══════════════════════════════════════════════════ */
.social-media-section {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}

.sm-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

/* Text side */
.sm-content {
  display: flex;
  flex-direction: column;
}
.sm-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin: 16px 0 18px;
}
.sm-desc {
  font-size: .975rem;
  color: var(--t2);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 480px;
}

/* Platform badges */
.sm-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.sm-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--t2);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px 6px 10px;
  transition: border-color .2s, color .2s;
}
.sm-platform:hover { border-color: var(--border-h); color: var(--t1); }

/* Checklist */
.sm-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sm-checklist li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--t2);
}
.sm-checklist li svg {
  color: var(--green);
  flex-shrink: 0;
}

/* Phone mockup */
.sm-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.sm-phone {
  width: 300px;
  background: #111827;
  border-radius: 28px;
  border: 1px solid var(--border-h);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 32px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.05);
}

.sm-post {
  background: var(--bg-card);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.sm-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 8px;
}
.sm-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  flex-shrink: 0;
}
.sm-post-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.sm-username { height: 7px; width: 80px; background: var(--border-h); border-radius: 4px; }
.sm-time     { height: 5px; width: 50px; background: var(--border); border-radius: 4px; }

.sm-post-img {
  height: 140px;
  background: linear-gradient(135deg, rgba(76,110,245,.2), rgba(124,58,237,.15));
}
.sm-post-img--1 {
  background: linear-gradient(135deg, #1a2040 0%, #141930 40%, rgba(124,58,237,.2) 100%);
}

.sm-post-actions {
  display: flex;
  gap: 14px;
  padding: 10px 12px 6px;
}
.sm-action {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  color: var(--t3);
}
.sm-action--heart svg { color: #EC4899; }

.sm-caption-lines {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sm-line { height: 6px; background: var(--border); border-radius: 3px; }
.sm-line--full { width: 100%; }
.sm-line--half { width: 65%; }

/* Reel post */
.sm-post--reel {
  height: 120px;
  position: relative;
}
.sm-reel-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1e0a3c, rgba(124,58,237,.3), #0a1628);
}
.sm-reel-overlay {
  position: absolute; inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 10px 12px;
}
.sm-reel-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  color: white;
  background: rgba(0,0,0,.5);
  padding: 3px 8px;
  border-radius: 100px;
  backdrop-filter: blur(6px);
}
.sm-reel-stats {
  font-size: .72rem;
  font-weight: 700;
  color: white;
}

/* Story post */
.sm-post--story {
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sm-story-ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  padding: 2px;
  flex-shrink: 0;
}
.sm-story-avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #1a2040;
  border: 2px solid #111827;
}
.sm-story-label {
  flex: 1;
  font-size: .78rem;
  font-weight: 600;
  color: var(--t1);
}
.sm-story-views {
  font-size: .72rem;
  color: var(--green);
  font-weight: 600;
}

/* Floating stat badge */
.sm-stat-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(7,9,15,.95);
  border: 1px solid var(--border-h);
  border-radius: 14px;
  padding: 12px 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.sm-stat-icon { font-size: 1.4rem; }
.sm-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}
.sm-stat-lbl {
  font-size: .7rem;
  color: var(--t3);
  margin-top: 2px;
}


/* ═══════════════════════════════════════════════════ */
/* PRICING SECTION                                    */
/* ═══════════════════════════════════════════════════ */
.pricing {
  background: var(--bg-2);
}

/* ── Grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Base card ── */
.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-l);
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  isolation: isolate;
  overflow: hidden;
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-h);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.pricing-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(76,110,245,.08), transparent 65%);
  opacity: 0;
  transition: opacity .4s;
  z-index: -1;
}
.pricing-card:hover::after { opacity: 1; }

/* ── Featured (Starter) ── */
.pricing-featured {
  border-color: rgba(76,110,245,.45);
  background: linear-gradient(160deg, rgba(76,110,245,.1) 0%, var(--bg-card) 55%);
  box-shadow: 0 0 0 1px rgba(76,110,245,.15), 0 16px 48px rgba(76,110,245,.08);
}
.pricing-featured:hover {
  border-color: rgba(76,110,245,.7);
  box-shadow: 0 0 0 1px rgba(76,110,245,.3), 0 28px 64px rgba(76,110,245,.14);
}
.pricing-featured .plan-features li { color: var(--t1); }

/* ── Premium card ── */
.pricing-card:not(.pricing-featured):not(.pricing-card--sm) {
  border-color: rgba(124,58,237,.2);
  background: linear-gradient(160deg, rgba(124,58,237,.06) 0%, var(--bg-card) 55%);
}
.pricing-card:not(.pricing-featured):not(.pricing-card--sm):hover {
  border-color: rgba(124,58,237,.4);
}

/* ── Social Media card ── */
.pricing-card--sm {
  border-color: rgba(236,72,153,.25);
  background: linear-gradient(160deg, rgba(236,72,153,.07) 0%, var(--bg-card) 50%);
}
.pricing-card--sm:hover {
  border-color: rgba(236,72,153,.45);
  box-shadow: 0 24px 60px rgba(236,72,153,.08);
}
.pricing-card--sm::after {
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(236,72,153,.07), transparent 65%);
}
.pricing-card--sm .plan-features li { color: var(--t1); }

/* ── Popular badge ── */
.plan-popular {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 0 0 14px 14px;
  white-space: nowrap;
}

/* ── Tags ── */
.plan-tag {
  display: inline-flex;
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(76,110,245,.12);
  border: 1px solid rgba(76,110,245,.2);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
  margin-top: 14px;
}
.plan-tag--pink {
  color: var(--pink);
  background: rgba(236,72,153,.12);
  border-color: rgba(236,72,153,.25);
}
.plan-tag--purple {
  color: #a78bfa;
  background: rgba(124,58,237,.12);
  border-color: rgba(124,58,237,.25);
}

/* ── Name & desc ── */
.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--t1);
  margin-bottom: 8px;
}
.plan-desc {
  font-size: .87rem;
  color: var(--t2);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: none;
}

/* ── Price ── */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.plan-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--t1);
  line-height: 1;
}
.plan-amount--req {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--t2);
}
.plan-currency {
  font-size: .9rem;
  font-weight: 600;
  color: var(--t3);
}

/* ── Features ── */
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 28px;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: .875rem;
  color: var(--t2);
  line-height: 1.45;
}
.plan-features li svg {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-card--sm .plan-features li svg { color: var(--pink); }

/* ── Pricing note ── */
.pricing-note {
  text-align: center;
  margin-top: 36px;
  font-size: .85rem;
  color: var(--t3);
  line-height: 1.7;
}
.pricing-note a {
  color: var(--blue);
  transition: color .2s;
}
.pricing-note a:hover { color: var(--t1); }

/* ── Category labels ── */
.pricing-category { margin-bottom: 20px; }
.pricing-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  border-bottom: 1px solid rgba(76,110,245,.2);
  padding-bottom: 12px;
  width: 100%;
}
.pricing-cat-label--pink { color: var(--pink); border-color: rgba(236,72,153,.25); }

/* ── Social media single wide card ── */
.pricing-grid--sm {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.plan-features--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 28px;
}
@media (max-width: 600px) { .plan-features--cols { grid-template-columns: 1fr; } }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sm-inner { grid-template-columns: 1fr; }
  .sm-phone { width: 100%; max-width: 320px; margin: 0 auto; }
  .sm-stat-badge { right: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; }
  .pricing-category { margin-top: 32px; }
}

@media (max-width: 480px) {
  .sm-phone { max-width: 100%; border-radius: 18px; padding: 12px; gap: 8px; }
  .sm-stat-badge { position: static; margin: 12px auto 0; width: fit-content; }
  .pricing-grid { max-width: 100%; }
  .plan-popular { font-size: .65rem; padding: 4px 14px; }
}
