/* amrit.codes – Styles der Startseite (setzt base.css voraus) */

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 3px;
  z-index: 9999; pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.1s linear;
  position: relative;
}
/* Kometenkopf am Ende des Fortschrittsbalkens */
.scroll-progress__bar::after {
  content: ''; position: absolute; right: -2px; top: 50%;
  width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: #ffe9b0;
  box-shadow: 0 0 8px 2px rgba(255,220,140,0.8);
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 1.25rem 0; transition: all var(--transition);
}
.nav--scrolled {
  background: rgba(26, 22, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav__logo {
  display: inline-block; padding: 0.2rem 0;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 700;
  color: var(--text-light); font-style: italic;
  font-variation-settings: 'WONK' 1;
}
.nav__links {
  display: none; gap: 2rem; align-items: center;
}
.nav__link {
  color: var(--muted); font-size: 0.95rem; font-weight: 500;
  position: relative; transition: color var(--transition);
  white-space: nowrap;
}
.nav__link::after {
  content: ''; position: absolute; bottom: -4px; left: 50%;
  width: 0; height: 2px; background: var(--accent);
  transition: all var(--transition); transform: translateX(-50%);
}
.nav__link:hover, .nav__link--active {
  color: var(--text-light);
}
.nav__link:hover::after, .nav__link--active::after {
  width: 100%;
}
.nav__link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 2px;
}
.nav__cta { display: none; }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; min-height: 44px; padding: 4px 8px; z-index: 1001;
}
.hamburger span {
  display: block; height: 2px; background: var(--text-light);
  border-radius: 2px; transition: all var(--transition);
  transform-origin: center;
}
.hamburger--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger--open span:nth-child(2) { opacity: 0; }
.hamburger--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; background: rgba(26, 22, 18, 0.97);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2rem; z-index: 999;
  opacity: 0; visibility: hidden; transition: all 0.4s ease;
}
.mobile-menu--open { opacity: 1; visibility: visible; }
.mobile-menu__link {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--text-light);
  font-weight: 600; opacity: 0; transform: translateY(20px);
  transition: all 0.4s ease; transition-delay: var(--delay, 0s);
}
.mobile-menu--open .mobile-menu__link {
  opacity: 1; transform: translateY(0);
}
.mobile-menu__link:hover { color: var(--accent); }
.mobile-menu__link:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 8px; border-radius: 4px;
}

@media (min-width: 768px) {
  .nav__links { display: flex; gap: 1.5rem; }
  .hamburger { display: none; }
}
/* Nav-CTA erst, wenn neben Logo und vier Links genug Platz ist */
@media (min-width: 1024px) {
  .nav__links { gap: 2rem; }
  .nav__cta { display: inline-flex; }
}

/* ===== SECTION WAVE (inverted: fill = previous section color) ===== */
.section-wave {
  position: absolute; top: -2px; left: 0; width: 100%;
  line-height: 0; pointer-events: none;
}
.section-wave svg { display: block; width: 100%; height: var(--wave-h); }
.section-wave--dark svg { fill: var(--bg-dark); }
.section-wave--light svg { fill: var(--bg-light); }
.section-wave--sand svg { fill: var(--bg-sand); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  background:
    linear-gradient(180deg, transparent 0%, transparent 70%, var(--bg-dark) 100%),
    linear-gradient(135deg, var(--bg-dark) 0%, #2c2218 40%, #3a2a1e 100%);
  color: var(--text-light); padding: 6rem 0 calc(4rem + var(--wave-h));
  overflow: hidden;
  position: relative;
}
/* Hero-Abschlusswelle: füllt UNTER der Kurve mit der Services-Farbe,
   darüber bleibt der Sternenhimmel sichtbar */
.hero__wave {
  position: absolute; bottom: -2px; left: 0; width: 100%;
  line-height: 0; pointer-events: none; z-index: 2;
}
.hero__wave svg { display: block; width: 100%; height: var(--wave-h); fill: var(--bg-light); }
/* Funkelnder Sternenhimmel: jeder Stern funkelt unabhängig
   (eigene Dauer --d und Phase --o pro Stern) */
.hero__stars {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}
/* WebGL-Galaxy (js/galaxy.js); die span-Sterne sind der Fallback ohne WebGL */
.hero__stars-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  opacity: 0.85;
}
.hero__stars--gl span { display: none; }
.hero__stars span {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(240,233,223,0.95);
  animation: starTwinkle var(--d, 4s) ease-in-out var(--o, 0s) infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 0.12; }
  50% { opacity: 1; }
}
.hero__stars span:nth-child(1)  { top: 8%;  left: 12%; --d: 3.2s; --o: -0.4s; }
.hero__stars span:nth-child(2)  { top: 15%; left: 38%; --d: 4.7s; --o: -2.1s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(3)  { top: 6%;  left: 64%; --d: 2.8s; --o: -1.3s; }
.hero__stars span:nth-child(4)  { top: 19%; left: 87%; --d: 5.3s; --o: -3.6s; width: 3px; height: 3px; background: rgba(255,235,190,0.95); box-shadow: 0 0 6px rgba(255,222,160,0.6); }
.hero__stars span:nth-child(5)  { top: 28%; left: 7%;  --d: 4.1s; --o: -2.8s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(6)  { top: 33%; left: 28%; --d: 3.6s; --o: -0.9s; }
.hero__stars span:nth-child(7)  { top: 24%; left: 52%; --d: 5.8s; --o: -4.2s; width: 2.5px; height: 2.5px; background: rgba(255,222,160,0.9); }
.hero__stars span:nth-child(8)  { top: 37%; left: 73%; --d: 3.0s; --o: -1.7s; }
.hero__stars span:nth-child(9)  { top: 31%; left: 94%; --d: 4.4s; --o: -3.1s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(10) { top: 46%; left: 17%; --d: 5.1s; --o: -0.6s; }
.hero__stars span:nth-child(11) { top: 52%; left: 41%; --d: 3.4s; --o: -2.5s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(12) { top: 44%; left: 61%; --d: 4.9s; --o: -1.1s; }
.hero__stars span:nth-child(13) { top: 57%; left: 82%; --d: 2.9s; --o: -0.2s; width: 2.5px; height: 2.5px; box-shadow: 0 0 5px rgba(240,233,223,0.5); }
.hero__stars span:nth-child(14) { top: 63%; left: 5%;  --d: 4.2s; --o: -3.4s; }
.hero__stars span:nth-child(15) { top: 69%; left: 31%; --d: 5.6s; --o: -1.9s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(16) { top: 61%; left: 49%; --d: 3.1s; --o: -2.3s; }
.hero__stars span:nth-child(17) { top: 74%; left: 68%; --d: 4.6s; --o: -0.8s; width: 2.5px; height: 2.5px; background: rgba(255,222,160,0.85); }
.hero__stars span:nth-child(18) { top: 79%; left: 90%; --d: 3.8s; --o: -2.9s; }
.hero__stars span:nth-child(19) { top: 84%; left: 21%; --d: 5.4s; --o: -4.6s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(20) { top: 88%; left: 44%; --d: 3.3s; --o: -1.5s; }
.hero__stars span:nth-child(21) { top: 81%; left: 58%; --d: 4.0s; --o: -3.8s; width: 1.5px; height: 1.5px; }
.hero__stars span:nth-child(22) { top: 91%; left: 76%; --d: 4.8s; --o: -0.5s; }
.hero__stars span:nth-child(23) { top: 12%; left: 76%; --d: 3.7s; --o: -2.7s; width: 3px; height: 3px; background: rgba(255,235,190,0.95); box-shadow: 0 0 6px rgba(255,222,160,0.6); }
.hero__stars span:nth-child(24) { top: 49%; left: 96%; --d: 3.5s; --o: -1.0s; }
.hero__inner {
  display: grid; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero__text { max-width: 640px; }
.hero__headline {
  margin-bottom: 1.5rem;
  /* Etwas kleiner als das globale h1, damit die Akzentzeile in der Textspalte einzeilig bleibt */
  font-size: clamp(2.4rem, 5.4vw, 4.75rem);
}
.hero__headline .line { display: block; }
.hero__headline .line--small {
  font-weight: 400; font-size: 0.65em; color: var(--muted);
}
.hero__sub {
  font-size: clamp(1rem, 0.9rem + 0.35vw, 1.15rem); color: var(--muted); margin-bottom: 2.5rem;
  max-width: 480px; line-height: 1.8;
}
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__deco {
  position: relative; width: 100%; max-width: 560px;
  aspect-ratio: 1; margin: 0 auto;
  perspective: 1000px;
}
/* ===== 3D SOLAR SYSTEM =====
   Technik: Bahnen per rotateX gekippt, Planeten laufen per Rotation
   um das Zentrum und werden gegenrotiert + zurückgekippt, damit die
   Kugeln immer zum Betrachter zeigen. preserve-3d sorgt für echte
   Tiefensortierung: Planeten verschwinden hinter der Sonne. */
.solar3d {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateZ(-10deg);
}
.solar3d__glow {
  position: absolute; width: 55%; height: 55%; border-radius: 50%;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,190,80,0.14), rgba(212,160,60,0.05) 50%, transparent 72%);
  pointer-events: none;
}
/* Schwebender Laptop im Zentrum */
.solar3d__laptop {
  position: absolute; top: 50%; left: 50%;
  width: 78px;
  transform: translate(-50%, -50%) translateZ(0);
  animation: laptopFloat 5s ease-in-out infinite;
}
.laptop__screen {
  width: 70px; height: 46px; margin: 0 auto;
  background: #14100c;
  border: 2px solid #4a3c30;
  border-bottom-width: 3px;
  border-radius: 6px 6px 2px 2px;
  padding: 6px 8px;
  display: flex; flex-direction: column; gap: 4px;
  box-shadow:
    0 0 20px 4px rgba(255,200,90,0.35),
    0 0 60px 14px rgba(212,160,60,0.18),
    inset 0 0 10px rgba(212,160,60,0.15);
  animation: screenGlow 4.5s ease-in-out infinite;
}
.laptop__screen span {
  display: block; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  opacity: 0.85;
}
.laptop__screen span:nth-child(1) { width: 72%; }
.laptop__screen span:nth-child(2) { width: 48%; opacity: 0.55; }
.laptop__screen span:nth-child(3) { width: 86%; opacity: 0.7; }
.laptop__screen span:nth-child(4) {
  width: 35%;
  animation: codeType 3.2s steps(7) infinite;
}
.laptop__base {
  width: 78px; height: 6px;
  background: linear-gradient(180deg, #5a4a3a, #2c2218);
  border-radius: 2px 2px 8px 8px;
  clip-path: polygon(5% 0, 95% 0, 100% 100%, 0 100%);
  margin-top: 1px;
}
@keyframes laptopFloat {
  0%, 100% { transform: translate(-50%, -53%) translateZ(0); }
  50% { transform: translate(-50%, -47%) translateZ(0); }
}
@keyframes screenGlow {
  0%, 100% { box-shadow: 0 0 24px 4px rgba(255,200,90,0.35), 0 0 70px 18px rgba(212,160,60,0.18), inset 0 0 12px rgba(212,160,60,0.15); }
  50% { box-shadow: 0 0 32px 8px rgba(255,200,90,0.5), 0 0 100px 28px rgba(212,160,60,0.25), inset 0 0 16px rgba(212,160,60,0.22); }
}
@keyframes codeType {
  0% { width: 12%; }
  55% { width: 62%; }
  70% { width: 62%; }
  100% { width: 12%; }
}
.solar3d__orbit {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(184,169,154,0.16);
  transform: translate(-50%, -50%) rotateX(66deg);
  transform-style: preserve-3d;
}
/* Gleichmäßige Bahnabstände (16%-Schritte), einheitliche Neigung */
.solar3d__orbit--mercury { width: 36%; height: 36%; --t: 8s; --delay: 0s; }
.solar3d__orbit--earth   { width: 52%; height: 52%; --t: 14s; --delay: -5s; }
.solar3d__orbit--mars    { width: 68%; height: 68%; --t: 21s; --delay: -12s; }
.solar3d__orbit--jupiter { width: 84%; height: 84%; --t: 32s; --delay: -19s; }
.solar3d__orbit--saturn  { width: 100%; height: 100%; --t: 46s; --delay: -31s; }
.solar3d__spin {
  position: absolute; inset: -1px;
  transform-style: preserve-3d;
  animation: solarSpin var(--t) linear infinite;
  animation-delay: var(--delay);
}
.solar3d__holder {
  position: absolute; top: 0; left: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  animation: solarCounterSpin var(--t) linear infinite;
  animation-delay: var(--delay);
}
.solar3d__planet {
  position: absolute; top: 0; left: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(-66deg);
}
@keyframes solarSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes solarCounterSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
/* Planeten: plastische Kugeln, Lichtkante oben links, Nachtseite unten rechts */
.solar3d__planet--mercury {
  width: 13px; height: 13px;
  background:
    radial-gradient(circle at 62% 28%, rgba(60,50,42,0.5) 0 12%, transparent 14%),
    radial-gradient(circle at 40% 66%, rgba(60,50,42,0.45) 0 9%, transparent 11%),
    radial-gradient(circle at 30% 30%, #cdbcab, #8a7a6d 55%, #55483e);
  box-shadow: inset -2px -2px 3px rgba(10,6,4,0.55);
}
.solar3d__planet--earth {
  width: 21px; height: 21px;
  background:
    radial-gradient(circle at 26% 22%, rgba(255,255,255,0.55) 0 10%, transparent 14%),
    radial-gradient(ellipse 30% 22% at 66% 38%, rgba(86,148,82,0.95) 0 60%, transparent 100%),
    radial-gradient(ellipse 24% 18% at 32% 64%, rgba(76,134,72,0.9) 0 60%, transparent 100%),
    radial-gradient(circle at 55% 78%, rgba(255,255,255,0.35) 0 8%, transparent 12%),
    radial-gradient(circle at 30% 30%, #b5e0f2 0%, #5d9fd3 45%, #2d62a3 75%, #1b3a66 100%);
  box-shadow:
    0 0 10px rgba(93,159,211,0.45),
    inset -4px -4px 7px rgba(4,10,26,0.6);
}
/* Mond umkreist die Erde */
.solar3d__planet--earth::after {
  content: ''; position: absolute;
  top: 50%; left: 50%; margin: -2.5px 0 0 -2.5px;
  width: 5px; height: 5px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d8d2c8, #8f887c 60%, #5d574e);
  animation: moonOrbit 6s linear infinite;
}
@keyframes moonOrbit {
  from { transform: rotate(0deg) translateX(16px); }
  to { transform: rotate(360deg) translateX(16px); }
}
.solar3d__planet--mars {
  width: 16px; height: 16px;
  background:
    radial-gradient(circle at 48% 14%, rgba(255,250,240,0.85) 0 9%, transparent 11%),
    radial-gradient(circle at 62% 55%, rgba(90,35,15,0.5) 0 14%, transparent 16%),
    radial-gradient(circle at 30% 30%, #eda77a, var(--accent) 55%, #7e3b1f);
  box-shadow: inset -2px -2px 4px rgba(20,6,2,0.55);
}
.solar3d__planet--jupiter {
  width: 34px; height: 34px;
  overflow: hidden;
}
.solar3d__planet--jupiter::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(8deg, #c19372 0 16%, #dfc4a0 16% 30%, #b3835a 30% 42%, #e8d4b4 42% 55%, #ad7a52 55% 68%, #d9b48f 68% 100%);
  background-size: 100% 220%;
  animation: jupiterBands 26s linear infinite alternate;
}
.solar3d__planet--jupiter::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(ellipse 26% 16% at 34% 62%, rgba(178,78,48,0.85), rgba(178,78,48,0) 72%),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 45%),
    radial-gradient(circle at 72% 76%, rgba(12,7,4,0.55), transparent 60%);
}
@keyframes jupiterBands {
  from { background-position: 0 0; }
  to { background-position: 0 100%; }
}
.solar3d__planet--saturn {
  width: 27px; height: 27px;
  background:
    linear-gradient(6deg, rgba(143,107,61,0.35) 0 22%, transparent 22% 44%, rgba(143,107,61,0.3) 44% 62%, transparent 62%),
    radial-gradient(circle at 30% 30%, #f0e0b8, #cfa86b 55%, #8f6b3d);
  box-shadow: inset -3px -3px 5px rgba(20,12,4,0.55);
}
.solar3d__planet--saturn::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 235%; height: 235%;
  border-radius: 50%;
  border: 2.5px solid rgba(216,185,131,0.7);
  box-shadow: 0 0 0 2.5px rgba(216,185,131,0.25);
  transform: translate(-50%, -50%) rotateX(74deg);
}

.scroll-hint {
  position: absolute; bottom: calc(1.5rem + var(--wave-h)); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-weight: 500;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-hint svg { width: 20px; height: 20px; stroke: var(--muted); }
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}
.scroll-hint--hidden {
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (min-width: 768px) {
  .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero { padding: 0 0 var(--wave-h); }
}

/* ===== SERVICES ===== */
.services {
  background: var(--bg-light);
  padding: calc(var(--space-section-top) + 1rem) 0 var(--space-section);
  position: relative;
}
.section-label {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--accent); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.75rem;
  position: relative;
}
/* Mini-Orbit statt Linie: Ring mit umlaufendem Punkt */
.section-label::before {
  content: ''; display: block; width: 14px; height: 14px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  flex-shrink: 0;
}
.section-label::after {
  content: ''; position: absolute; left: 7px; top: 50%;
  width: 3.5px; height: 3.5px; margin: -1.75px;
  border-radius: 50%; background: var(--gold);
  animation: labelOrbit 4s linear infinite;
}
@keyframes labelOrbit {
  from { transform: rotate(0deg) translateX(10px); }
  to { transform: rotate(360deg) translateX(10px); }
}
section[id] { scroll-margin-top: 80px; }
.section-heading { margin-bottom: 1rem; }
.section-sub {
  color: var(--text-muted); max-width: 560px; margin-bottom: 3.5rem;
  font-size: 1.05rem;
}
.services__grid {
  display: grid; gap: 1.5rem;
}
.service-card {
  background: #fff; border-radius: var(--radius); padding: 2rem;
  border-left: 3px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 28px rgba(212,160,60,0.18);
  border-left-color: var(--gold);
}
.service-card__orbitwrap {
  position: relative; width: 48px; height: 48px;
  margin-bottom: 1.25rem;
}
.service-card__icon {
  width: 48px; height: 48px; display: block;
  color: var(--accent); transition: color var(--transition);
}
.service-card:hover .service-card__icon { color: var(--gold); }
/* Satellit umkreist das Icon bei Hover */
.service-card__sat {
  position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; margin: -2.5px;
  border-radius: 50%; background: var(--gold);
  opacity: 0; transition: opacity 0.3s ease;
  pointer-events: none;
}
.service-card:hover .service-card__sat {
  opacity: 1;
  animation: satOrbit 2.2s linear infinite;
}
@keyframes satOrbit {
  from { transform: rotate(0deg) translateX(35px); }
  to { transform: rotate(360deg) translateX(35px); }
}
.service-card__title {
  font-family: var(--font-display); font-size: 1.35rem;
  margin-bottom: 0.75rem; color: var(--text-dark);
}
.service-card__text {
  color: #5a4d42; font-size: 1rem; line-height: 1.7;
}
.services__note {
  margin-top: 3rem; padding: 1.5rem 2rem;
  background: var(--bg-sand); border-radius: var(--radius);
  color: var(--text-dark); font-size: 1rem;
  border-left: 3px solid var(--gold);
}
/* Blinkender Terminal-Cursor als IT-Anker */
.services__note::after {
  content: ''; display: inline-block;
  width: 8px; height: 1em; margin-left: 8px;
  background: var(--accent); vertical-align: text-bottom;
  animation: cursorBlink 1.1s steps(2, start) infinite;
}
@keyframes cursorBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  /* Dritte Karte allein in der zweiten Reihe: zentriert statt linksbündig */
  .services__grid .service-card:last-child {
    grid-column: 1 / -1; max-width: calc(50% - 0.75rem); width: 100%;
    justify-self: center;
  }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .services__grid .service-card:last-child {
    grid-column: auto; max-width: 100%;
  }
}

/* ===== ABOUT ===== */
.about {
  background: var(--bg-dark); color: var(--text-light);
  padding: calc(var(--space-section-top) + var(--wave-h)) 0 var(--space-section);
  position: relative;
}
/* Dezenter Nachthimmel in der dunklen Section */
.about::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 22%, rgba(240,233,223,0.5) 1px, transparent 1.8px),
    radial-gradient(circle at 27% 74%, rgba(240,233,223,0.35) 1px, transparent 1.7px),
    radial-gradient(circle at 44% 12%, rgba(255,222,160,0.45) 1.2px, transparent 2px),
    radial-gradient(circle at 62% 58%, rgba(240,233,223,0.3) 1px, transparent 1.7px),
    radial-gradient(circle at 78% 28%, rgba(240,233,223,0.45) 1px, transparent 1.8px),
    radial-gradient(circle at 91% 80%, rgba(255,222,160,0.4) 1.2px, transparent 2px),
    radial-gradient(circle at 55% 88%, rgba(240,233,223,0.3) 1px, transparent 1.6px),
    radial-gradient(circle at 15% 52%, rgba(240,233,223,0.35) 1px, transparent 1.7px);
}
/* Einzeln funkelnde Sterne (wie im Hero, ruhiger) */
.about__stars {
  position: absolute; inset: 0; pointer-events: none;
}
.about__stars span {
  position: absolute;
  width: 2px; height: 2px; border-radius: 50%;
  background: rgba(240,233,223,0.9);
  animation: starTwinkle var(--d, 4s) ease-in-out var(--o, 0s) infinite;
}
.about__stars span:nth-child(1)  { top: 10%; left: 6%;  --d: 3.4s; --o: -1.1s; }
.about__stars span:nth-child(2)  { top: 22%; left: 30%; --d: 4.8s; --o: -2.9s; width: 1.5px; height: 1.5px; }
.about__stars span:nth-child(3)  { top: 8%;  left: 55%; --d: 3.0s; --o: -0.4s; }
.about__stars span:nth-child(4)  { top: 16%; left: 90%; --d: 5.2s; --o: -3.7s; width: 2.5px; height: 2.5px; background: rgba(255,222,160,0.9); box-shadow: 0 0 5px rgba(255,222,160,0.5); }
.about__stars span:nth-child(5)  { top: 42%; left: 4%;  --d: 4.1s; --o: -1.8s; width: 1.5px; height: 1.5px; }
.about__stars span:nth-child(6)  { top: 55%; left: 47%; --d: 3.7s; --o: -2.4s; }
.about__stars span:nth-child(7)  { top: 48%; left: 96%; --d: 4.5s; --o: -0.8s; }
.about__stars span:nth-child(8)  { top: 74%; left: 10%; --d: 5.6s; --o: -4.3s; }
.about__stars span:nth-child(9)  { top: 84%; left: 38%; --d: 3.2s; --o: -1.5s; width: 1.5px; height: 1.5px; }
.about__stars span:nth-child(10) { top: 78%; left: 68%; --d: 4.3s; --o: -3.1s; }
.about__stars span:nth-child(11) { top: 90%; left: 88%; --d: 3.9s; --o: -0.2s; width: 2.5px; height: 2.5px; background: rgba(255,222,160,0.85); }
.about__stars span:nth-child(12) { top: 34%; left: 72%; --d: 5.0s; --o: -2.0s; width: 1.5px; height: 1.5px; }

/* Code-Sternbild: Sterne formen </> mit Konstellationslinien */
.about__constellation {
  position: absolute; top: 68px; right: 2%;
  width: 170px; height: auto;
  pointer-events: none; opacity: 0.65;
}
.about__constellation line {
  stroke: rgba(240,233,223,0.22); stroke-width: 0.8;
}
.about__constellation circle {
  fill: rgba(240,233,223,0.9);
  animation: starTwinkle 4s ease-in-out infinite;
}
.about__constellation circle:nth-of-type(2) { animation-delay: -1.2s; }
.about__constellation circle:nth-of-type(3) { animation-delay: -2.6s; }
.about__constellation circle:nth-of-type(4) { animation-delay: -0.7s; fill: rgba(255,222,160,0.95); }
.about__constellation circle:nth-of-type(5) { animation-delay: -3.3s; }
.about__constellation circle:nth-of-type(6) { animation-delay: -1.9s; }
.about__constellation circle:nth-of-type(7) { animation-delay: -2.2s; }
.about__constellation circle:nth-of-type(8) { animation-delay: -0.3s; fill: rgba(255,222,160,0.95); }

/* Sternschnuppen: mehrere, mit eigenen Bahnen und Rhythmen */
.about__shooting {
  position: absolute; top: 14%; left: -8%;
  width: 90px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,240,210,0.95), rgba(255,240,210,0));
  pointer-events: none; opacity: 0;
  animation: shootingStar 9s linear var(--sdelay, 0s) infinite;
}
.about__shooting--2 {
  top: 36%; left: -6%;
  width: 70px; height: 1.5px;
  --rot: 9deg; --tx: 75vw; --ty: 12vw;
  animation-duration: 12.5s; --sdelay: -5s;
}
.about__shooting--3 {
  top: 5%; left: 30%;
  width: 110px;
  --rot: 22deg; --tx: 48vw; --ty: 19vw;
  animation-duration: 15s; --sdelay: -10.5s;
}
@keyframes shootingStar {
  0% { transform: translate(0, 0) rotate(var(--rot, 14deg)); opacity: 0; }
  1.5% { opacity: 0.9; }
  7% { transform: translate(var(--tx, 65vw), var(--ty, 16vw)) rotate(var(--rot, 14deg)); opacity: 0; }
  100% { transform: translate(var(--tx, 65vw), var(--ty, 16vw)) rotate(var(--rot, 14deg)); opacity: 0; }
}

.about__inner {
  display: grid; gap: 3rem; align-items: center;
  position: relative;
}
.about__image {
  position: relative; width: 100%; max-width: 360px; margin: 0 auto;
  aspect-ratio: 4/5; border-radius: var(--radius);
  border: 2px solid var(--accent); overflow: hidden;
  background: var(--bg-dark-card);
  display: flex; align-items: center; justify-content: center;
}
.about__image::before {
  content: ''; position: absolute; top: -8px; right: -8px;
  width: 40px; height: 40px; border-top: 3px solid var(--gold);
  border-right: 3px solid var(--gold); border-radius: 0 8px 0 0;
}
.about__image::after {
  content: ''; position: absolute; bottom: -8px; left: -8px;
  width: 40px; height: 40px; border-bottom: 3px solid var(--gold);
  border-left: 3px solid var(--gold); border-radius: 0 0 0 8px;
}
.about__monogram {
  font-family: var(--font-display); font-size: 6rem; font-weight: 800;
  color: var(--accent); opacity: 0.2;
  font-variation-settings: 'WONK' 1;
  position: relative;
}
/* Das A als "Planet": Orbit-Ring mit umlaufendem Punkt */
.about__monogram::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 1.7em; height: 1.7em;
  margin: -0.85em 0 0 -0.85em;
  border: 2px solid rgba(196,101,58,0.5); border-radius: 50%;
}
.about__monogram::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 7px; height: 7px; margin: -3.5px;
  border-radius: 50%; background: var(--gold);
  animation: monogramOrbit 7s linear infinite;
}
@keyframes monogramOrbit {
  from { transform: rotate(0deg) translateX(0.85em); }
  to { transform: rotate(360deg) translateX(0.85em); }
}
.about__text h2 { margin-bottom: 1.5rem; }
.about__text p { color: var(--muted); margin-bottom: 1.25rem; }
.about__text p strong { color: var(--text-light); font-weight: 600; }
.about__stats {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2rem;
  padding-top: 2rem; border-top: 1px solid rgba(184,169,154,0.2);
}
.stat { text-align: center; }
.stat__number {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--accent); display: block;
  text-shadow: 0 0 20px rgba(212,160,60,0.35);
}
.stat__label {
  font-size: 0.85rem; color: var(--muted); text-transform: uppercase;
  letter-spacing: 0.08em; font-weight: 500;
}

@media (min-width: 768px) {
  .about__inner { grid-template-columns: 0.8fr 1.2fr; }
}

/* ===== PROJECTS ===== */
.projects {
  background: var(--bg-sand);
  padding: calc(var(--space-section-top) + var(--wave-h)) 0 var(--space-section);
  position: relative;
}
.projects__grid {
  display: grid; gap: 1.5rem;
}
.project-card {
  background: var(--bg-light); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
}
.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 28px rgba(212,160,60,0.18);
}
/* Sternschnuppen-Glanz beim Hover */
.project-card::before {
  content: ''; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.28) 50%, transparent 80%);
  transform: skewX(-15deg);
  transition: left 0.7s ease;
}
.project-card:hover::before { left: 130%; }
.project-card__visual {
  height: 200px; position: relative; overflow: hidden;
}
.project-card__visual--1 {
  background: linear-gradient(135deg, #3a2a1e, #c4653a);
}
.project-card__visual--2 {
  background: linear-gradient(135deg, #2c2218, #7a8b6f);
}
.project-card__visual--3 {
  background: linear-gradient(135deg, #1a1612, #d4a03c);
}
.project-card__visual--4 {
  background:
    radial-gradient(ellipse 70% 60% at 75% 20%, rgba(255,197,107,0.25), transparent 70%),
    linear-gradient(135deg, #0b0920, #1a1740 60%, #3a2a1e);
}

/* Handy-Mockup (Projekt 4, Orbit Hop): Planet mit Umlaufbahnen in den App-Farben */
.mockup-phone {
  position: absolute; top: 18px; bottom: -40px; left: 50%;
  width: 120px; margin-left: -60px;
  border-radius: 22px; background: #0b0920;
  border: 2px solid rgba(255,197,107,0.45);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}
.mockup-phone__orbit {
  position: absolute; left: 50%; top: 52%; border-radius: 50%;
  border: 1px solid rgba(255,197,107,0.35);
  transform: translate(-50%, -50%);
}
.mockup-phone__orbit--1 { width: 64px; height: 64px; }
.mockup-phone__orbit--2 { width: 104px; height: 104px; border-style: dashed; opacity: 0.6; }
.mockup-phone__planet {
  position: absolute; left: 50%; top: 52%; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe3a8, #ffc56b 55%, #b8832f);
  box-shadow: 0 0 18px rgba(255,197,107,0.6);
}
.mockup-phone__ship {
  position: absolute; left: 50%; top: 52%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%; background: #f0e9df;
  transform: rotate(-40deg) translateX(32px);
  box-shadow: 0 0 8px rgba(240,233,223,0.8);
}
.mockup-phone__score {
  position: absolute; top: 14px; left: 50%; width: 36px; height: 8px; margin-left: -18px;
  border-radius: 4px; background: rgba(255,197,107,0.35);
}
.project-card__link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 1rem; font-size: 0.9rem; font-weight: 600; color: var(--accent);
  transition: color var(--transition), gap var(--transition);
}
.project-card__link:hover { color: var(--text-dark); gap: 0.6rem; }
.project-card__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* Browser Mockup */
.mockup {
  position: absolute; inset: 16px; border-radius: 8px;
  background: rgba(0,0,0,0.25); overflow: hidden;
  display: flex; flex-direction: column;
}
.mockup__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 12px; background: rgba(0,0,0,0.3);
  flex-shrink: 0;
}
.mockup__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mockup__url {
  flex: 1; height: 10px; border-radius: 5px;
  background: rgba(255,255,255,0.08); margin-left: 8px;
}
.mockup__content {
  flex: 1; padding: 12px; position: relative;
}

/* Bestandslisten-Mockup (Projekt 1): Zeilen mit Mengenbalken, eine Zeile im Engpass */
.mockup__list {
  display: flex; flex-direction: column; gap: 7px;
}
.mockup__row {
  display: flex; align-items: center; gap: 8px;
}
.mockup__row-label {
  width: 26%; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,0.16);
}
.mockup__row-bar {
  flex: 1; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,0.06); position: relative; overflow: hidden;
}
.mockup__row-bar::after {
  content: ''; position: absolute; inset: 0; width: var(--w, 50%);
  border-radius: 2px; background: rgba(255,255,255,0.28);
}
.mockup__row--low .mockup__row-bar::after {
  background: rgba(255,214,120,0.85);
}
.mockup__row-qty {
  width: 14px; height: 8px; border-radius: 2px;
  background: rgba(255,255,255,0.12);
}

/* Personen-Raster (Projekt 2): Avatar + zwei Textzeilen */
.mockup__people {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; height: 100%;
}
.mockup__person {
  display: flex; align-items: center; gap: 6px; padding: 6px;
  border-radius: 4px; background: rgba(255,255,255,0.06);
}
.mockup__avatar {
  width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: rgba(122,139,111,0.55);
}
.mockup__person--active { background: rgba(255,255,255,0.1); }
.mockup__person--active .mockup__avatar { background: rgba(255,255,255,0.4); }
.mockup__person-lines {
  flex: 1; display: flex; flex-direction: column; gap: 4px;
}
.mockup__person-lines i {
  display: block; height: 5px; border-radius: 2px;
  background: rgba(255,255,255,0.2);
}
.mockup__person-lines i:last-child { width: 60%; background: rgba(255,255,255,0.1); }

/* Dashboard-Mockup (Projekt 3) */
.mockup__dashboard {
  display: flex; gap: 8px; height: 100%;
}
.mockup__sidebar {
  width: 28%; display: flex; flex-direction: column; gap: 6px;
}
.mockup__sidebar-item {
  height: 10px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
}
.mockup__sidebar-item--active {
  background: rgba(212,160,60,0.35);
}
.mockup__main {
  flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.mockup__stat-row {
  display: flex; gap: 4px;
}
.mockup__stat-box {
  flex: 1; height: 24px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
}
.mockup__bars {
  flex: 1; display: flex; align-items: flex-end; gap: 4px;
  padding-top: 4px;
}
.mockup__bar-item {
  flex: 1; border-radius: 2px 2px 0 0;
  background: rgba(212,160,60,0.2);
}
.project-card__body { padding: 1.75rem; }
.project-card__title {
  font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 0.5rem; color: var(--text-dark);
}
.project-card__desc {
  font-size: 0.95rem; color: #5a4d42; margin-bottom: 1rem; line-height: 1.7;
}
/* Case Study: Ausgangslage / Lösung als Label-Text-Paare */
.case {
  display: flex; flex-direction: column; gap: 0.9rem;
}
.case dt {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 600; color: var(--accent); margin-bottom: 0.2rem;
}
.case dd {
  font-size: 0.95rem; color: #5a4d42; line-height: 1.65;
}

/* Ab 768px zwei Spalten; eine allein stehende letzte Karte (bei ungerader Anzahl) wird zentriert */
@media (min-width: 768px) {
  .projects__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .project-card__visual { height: 220px; }
  .projects__grid .project-card:last-child:nth-child(odd) {
    grid-column: 1 / -1; width: calc(50% - 1rem); justify-self: center;
  }
}

/* ===== PROCESS (Ablauf) ===== */
.process {
  background: var(--bg-light);
  padding: calc(var(--space-section-top) + var(--wave-h)) 0 var(--space-section);
  position: relative;
}
.process__steps {
  display: grid; gap: 1.5rem; position: relative;
}
/* Gestrichelte Bahn hinter den Schritten, sichtbar nur in den Lücken (Desktop) */
.process__steps::before {
  content: ''; position: absolute; left: 6%; right: 6%;
  top: calc(2rem + 22px); border-top: 1px dashed rgba(196,101,58,0.4);
  display: none;
}
.process__step {
  position: relative; z-index: 1;
  background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem 1.75rem;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.4s ease;
}
.process__step:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1), 0 0 28px rgba(212,160,60,0.18);
  border-top-color: var(--gold);
}
/* Nummer als kleiner Planet mit umlaufendem Mond */
.process__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--accent); border: 1.5px solid var(--accent);
  margin-bottom: 1.1rem;
}
.process__num::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 5px; height: 5px; margin: -2.5px; border-radius: 50%;
  background: var(--gold); opacity: 0; transition: opacity 0.3s ease;
}
.process__step:hover .process__num::after {
  opacity: 1; animation: satOrbit 2.6s linear infinite;
}
.process__title {
  font-family: var(--font-display); font-size: 1.25rem;
  margin-bottom: 0.6rem; color: var(--text-dark);
}
.process__text {
  color: #5a4d42; font-size: 0.98rem; line-height: 1.7;
}

@media (min-width: 768px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .process__steps { grid-template-columns: repeat(4, 1fr); }
  .process__steps::before { display: block; }
}

/* ===== CTA ===== */
.cta-section {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  padding: calc(var(--space-section-top) + var(--wave-h)) 0 var(--space-section);
  text-align: center; position: relative;
  overflow: hidden;
}
.cta-section__deco {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
  border: 1px solid rgba(255,255,255,0.14);
}
/* Deko-Kreise als "Planeten" mit gestrichelter Orbit-Bahn */
.cta-section__deco::after {
  content: ''; position: absolute; inset: -16%;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.16);
}
.cta-section__deco--1 {
  width: 300px; height: 300px; top: -100px; right: -50px;
}
.cta-section__deco--2 {
  width: 200px; height: 200px; bottom: -80px; left: -40px;
}
.cta-section h2 {
  color: var(--bg-dark); font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  margin-bottom: 1rem; position: relative; z-index: 2;
}
.cta-section__sub {
  color: rgba(44,34,24,0.75); font-size: 1.15rem;
  max-width: 520px; margin: 0 auto 2.5rem;
  position: relative; z-index: 2;
}
.cta-section .btn,
.cta-section form { position: relative; z-index: 2; }

/* Contact Form */
.contact-form {
  max-width: 480px; margin: 0 auto 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-form__group {
  display: flex; flex-direction: column; gap: 0.35rem; text-align: left;
}
.contact-form__label {
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(44,34,24,0.85);
}
.contact-form__field {
  width: 100%; padding: 0.9rem 1.2rem;
  background: rgba(26,22,18,0.2); border: 2px solid rgba(44,34,24,0.15);
  border-radius: var(--radius); font-family: var(--font-body);
  font-size: 1rem; color: var(--bg-dark); outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.contact-form__field::placeholder { color: rgba(44,34,24,0.45); }
.contact-form__field:focus {
  border-color: var(--bg-dark); background: rgba(26,22,18,0.1);
}
.contact-form__field:invalid:not(:placeholder-shown) {
  border-color: #c44a3a;
}
.contact-form textarea.contact-form__field {
  min-height: 120px; resize: vertical;
}
.contact-form .btn { align-self: center; }
.contact-form__note {
  font-size: 0.875rem; color: rgba(44,34,24,0.7); text-align: left; line-height: 1.5;
}
.contact-form__note a { color: var(--bg-dark); text-decoration: underline; text-underline-offset: 2px; }
.contact-form__success {
  text-align: center; padding: 1.5rem;
  color: var(--bg-dark); font-weight: 600;
  font-size: 1.1rem;
}
.contact-form__success span {
  display: block; font-weight: 400; font-size: 0.95rem;
  margin-top: 0.5rem; opacity: 0.7;
}
.contact-form__error {
  background: rgba(196,74,58,0.12);
  border: 1px solid rgba(196,74,58,0.5);
  color: #7a2820;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  text-align: left;
}
.contact-form__error a {
  color: #7a2820; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
}
.contact-form__honey {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.cta-section__email {
  margin-top: 1.5rem; font-size: 0.9rem; color: rgba(44,34,24,0.6);
  position: relative; z-index: 2;
}
.cta-section__email a {
  color: var(--bg-dark); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color var(--transition);
}
.cta-section__email a:hover { color: var(--bg-dark-deep); }
.cta-section__email a:focus-visible {
  outline: 2px solid var(--bg-dark); outline-offset: 3px; border-radius: 2px;
}
.cta-section .btn--dark {
  animation: ctaPulse 2.5s ease-in-out infinite;
}
.cta-section .btn--dark:hover { animation: none; }
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
  50% { box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 20px rgba(26,22,18,0.3); }
}

/* ===== MOBILE (< 768px) ===== */
@media (max-width: 767px) {
  /* Flachere Wellen auf kleinen Screens */
  :root { --wave-h: 48px; }
  .scroll-hint { display: none; }
  .section-sub { margin-bottom: 2.5rem; font-size: 1rem; }

  /* Hero: Text und Buttons zentrieren */
  .hero { padding: 5rem 0 calc(3rem + var(--wave-h)); }
  .hero__text { text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__ctas {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero__ctas .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  /* Sonnensystem auf Mobile: groß genug, dass der Laptop in die innerste Bahn passt */
  .hero__deco { max-width: 320px; }
  .solar3d__orbit--mercury { width: 40%; height: 40%; }
  .solar3d__laptop { width: 50px; }
  .laptop__screen {
    width: 44px; height: 29px;
    padding: 4px 5px; gap: 3px;
    border-width: 1px; border-bottom-width: 2px;
  }
  .laptop__screen span { height: 2px; }
  .laptop__base { width: 50px; height: 4px; }
  .solar3d__planet--jupiter { width: 24px; height: 24px; }
  .solar3d__planet--saturn { width: 20px; height: 20px; }
  .solar3d__planet--earth { width: 15px; height: 15px; }
  .solar3d__planet--mars { width: 12px; height: 12px; }
  .solar3d__planet--mercury { width: 9px; height: 9px; }
  /* Mond: kleinerer Umlaufradius passend zur kleineren Erde */
  .solar3d__planet--earth::after { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
  @keyframes moonOrbit {
    from { transform: rotate(0deg) translateX(12px); }
    to { transform: rotate(360deg) translateX(12px); }
  }

  /* Code-Sternbild auf Mobile ausblenden (zu wenig Platz) */
  .about__constellation { display: none; }

  /* Sternschnuppen: kürzere Streifen passend zum kleinen Screen */
  .about__shooting { width: 55px; }
  .about__shooting--2 { width: 45px; }
  .about__shooting--3 { width: 65px; }

  /* About-Bild: kein Portrait-Platzhalter auf kleinen Screens */
  .about__image {
    aspect-ratio: unset;
    height: 180px;
    max-width: 220px;
  }
  .about__monogram { font-size: 4rem; }

  /* Stats zentrieren, Abstand und Zahlen reduzieren */
  .about__stats { justify-content: center; gap: 1.25rem; }
  .stat__number { font-size: 1.6rem; }
  .stat__label { font-size: 0.75rem; }

  /* Service-Karten: weniger Padding */
  .service-card { padding: 1.5rem; }
  .service-card__title { font-size: 1.2rem; }

  /* Projekt-Karten: kompakteres Body-Padding */
  .project-card__body { padding: 1.25rem; }
  .process__step { padding: 1.5rem 1.25rem 1.25rem; }
  .project-card__visual { height: 160px; }

  /* Formular-Padding entspannen */
  .cta-section__sub { font-size: 1rem; margin-bottom: 2rem; }
  .contact-form textarea.contact-form__field { min-height: 100px; }

  /* Consent-Checkbox: größerer Touch-Bereich */
  /* Nav-Links (Mobile-Menu) Touch-freundlich */
  .mobile-menu__link { padding: 0.75rem 1.25rem; font-size: 1.6rem; }

  /* Social-Links: Touch-Bereich auf 44px */
  .footer__social-link { width: 44px; height: 44px; }

  /* Services-Hinweis-Box: horizontales Padding reduzieren */
  .services__note { padding: 1.25rem; }

  /* Footer auf Mobile zentrieren */
  .footer__inner { text-align: center; }
  .footer__social { justify-content: center; }

  /* CTA-Section-Deko: kleiner, damit sie nicht aus dem Layout springt */
  .cta-section__deco--1 { width: 200px; height: 200px; }
  .cta-section__deco--2 { width: 140px; height: 140px; }

  /* CTA-Formular: Submit-Button volle Breite */
  .contact-form .btn { align-self: stretch; justify-content: center; }
}

/* ===== VERY SMALL SCREENS (< 400px) ===== */
@media (max-width: 399px) {
  .about__stats { flex-direction: column; gap: 1rem; }
  .hero__deco { max-width: 290px; }
}
