/* Base */
:root {
  --bg: #f7f9ff;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --card-soft: #f3f6ff;
  --text: #1b2a42;
  --text-soft: #5f6f89;
  --line: rgba(126, 144, 176, 0.26);
  --primary: #4aa2ff;
  --secondary: #61e6b8;
  /* Für .highlight--tertiary, Avatare, Hero-Shape (war undefiniert → unsichtbarer Verlaufstext) */
  --tertiary: #32b8c4;
  --accent: #9b7bff;
  --danger: #ff6d86;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 42px rgba(4, 10, 23, 0.4);
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(74, 162, 255, 0.16), transparent 36%),
    radial-gradient(circle at 85% 18%, rgba(155, 123, 255, 0.14), transparent 34%),
    radial-gradient(circle at 60% 100%, rgba(97, 230, 184, 0.1), transparent 42%),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   BACKDROP & DECORATIVE ELEMENTS
   ============================================ */

.page-backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(74, 162, 255, 0.08), rgba(97, 230, 184, 0.03)),
    linear-gradient(210deg, rgba(155, 123, 255, 0.08), rgba(255, 255, 255, 0.02));
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.15rem;
  border-radius: 10px;
  border: 1px solid var(--line, rgba(15, 35, 70, 0.12));
  background: rgba(255, 255, 255, 0.65);
}

.lang-switch__btn {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.5rem;
  min-width: 2.25rem;
  border: none;
  border-radius: 7px;
  cursor: pointer;
  color: var(--text-soft, #5a6b85);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.lang-switch__btn:hover {
  color: var(--text, #0f2346);
  background: rgba(15, 35, 70, 0.05);
}

.lang-switch__btn.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary, #4a9eff), var(--secondary, #7b68ee));
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
}

.brand__icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(74, 162, 255, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
}

.brand__text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-nav-toggle {
  display: none;
  width: 2.2rem;
  height: 1.8rem;
  align-items: center;
  justify-content: space-between;
  flex-direction: column;
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: var(--sp-sm);
}

.mobile-nav-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: all 0.2s ease;
}

.site-nav.mobile-open {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.97);
  gap: 0;
  box-shadow: var(--shadow);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  z-index: 80;
}

.site-nav.mobile-open a {
  padding: 0.95rem 1.25rem;
  border-top: 1px solid var(--line);
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 999px;
  transition: width 0.24s ease, left 0.24s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
  left: 0;
}

/* ============================================
   BUTTONS & CTA
   ============================================ */

.cta-btn {
  border-radius: 999px;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid transparent;
  color: var(--text);
  background: transparent;
}

.cta-btn--small {
  padding: 0.55rem 1rem;
  border-radius: 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.cta-btn--large {
  padding: 0.95rem 1.45rem;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
}

.cta-btn--large:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(74, 162, 255, 0.24);
}

.hero__actions .cta-btn--large,
.app-get .cta-btn--large,
.final-cta .cta-btn--large {
  background: linear-gradient(135deg, var(--primary), #2f87f2 55%, var(--secondary));
  color: #fff;
}

.cta-btn--outline {
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.04);
}

.cta-btn--outline:hover {
  color: var(--text);
  border-color: rgba(97, 230, 184, 0.45);
}

.cta-btn--white {
  background: #fff;
  color: #0f1c35;
}

.cta-btn--white:hover {
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  max-width: var(--max-width);
  margin: 1rem auto 0;
  padding: 3.5rem 1.25rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  grid-template-rows: auto 1fr;
  gap: 2rem 2.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 24%, rgba(74, 162, 255, 0.12), transparent 32%),
    radial-gradient(circle at 84% 20%, rgba(155, 123, 255, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.88));
  box-shadow: var(--shadow);
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.42;
  z-index: 0;
  pointer-events: none;
}

.hero__shape--1 {
  width: 320px;
  height: 320px;
  background: var(--primary);
  top: -140px;
  left: -80px;
}

.hero__shape--2 {
  width: 280px;
  height: 280px;
  background: var(--secondary);
  bottom: -130px;
  right: -80px;
}

.hero__shape--3 {
  width: 220px;
  height: 220px;
  background: var(--tertiary);
  top: 40%;
  right: 10%;
  opacity: 0.25;
}

.hero__content {
  position: relative;
  z-index: 2;
  animation: fadeInUp 0.65s ease both;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__top {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.hero__eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(47, 135, 242, 0.95);
  margin-bottom: 0.8rem;
}

.badge {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(97, 230, 184, 0.45);
  color: var(--secondary);
  background: rgba(97, 230, 184, 0.12);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.hero__title-fullwidth {
  grid-column: 1 / -1;
  text-align: left;
  margin-bottom: 0.5rem;
  z-index: 2;
  position: relative;
}

.hero__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.05rem, 5vw, 3.7rem);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 0.6rem;
  color: var(--text);
  letter-spacing: -0.02em;
  max-width: 62%;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--secondary {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--tertiary {
  background: linear-gradient(135deg, var(--tertiary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight--accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1rem;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.3rem;
  flex-wrap: wrap;
}

.hero__social {
  display: flex;
  align-items: center;
}

.hero__quickstats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-stat {
  min-width: 110px;
  padding: 0.62rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(126, 144, 176, 0.25);
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 6px 18px rgba(37, 65, 120, 0.1);
}

.hero-stat strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  color: #18305e;
}

.hero-stat span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5e6f8d;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.avatars {
  display: flex;
  margin-right: -0.5rem;
}

.avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid rgba(6, 13, 26, 0.9);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.av-1 {
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.av-2 {
  background: linear-gradient(135deg, var(--secondary), var(--tertiary));
}

.av-3 {
  background: linear-gradient(135deg, var(--tertiary), var(--accent));
}

.social-text {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.social-text strong {
  color: var(--text);
}

.hero__visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  margin-top: -0.35rem;
}

.hero-float-card {
  position: absolute;
  z-index: 7;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(26, 45, 86, 0.18);
  backdrop-filter: blur(6px);
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-float-card--left {
  left: 3%;
  top: 18%;
}

.hero-float-card--right {
  right: 2%;
  bottom: 18%;
  animation-delay: 0.8s;
}

.hero-float-card__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #55709b;
}

.hero-float-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: #173667;
  line-height: 1.1;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: auto;
  width: 430px;
  height: 430px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 162, 255, 0.35), rgba(74, 162, 255, 0) 70%);
  filter: blur(20px);
  opacity: 0.75;
  z-index: -1;
}

.turtle-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.turtle-group--left {
  left: 0;
}

.turtle-group--right {
  right: 0;
}

/* Pivot am Orbit-Mittelpunkt + Kind mit festem Radius (keine var() in @keyframes — iOS Safari) */
.turtle-orbit-arm {
  position: absolute;
  top: calc(50% + 152px);
  left: 50%;
  width: 1px;
  height: 1px;
  overflow: visible;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 5;
}

.turtle-orbit-arm .turtle-skin {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  pointer-events: auto;
  cursor: pointer;
}

.turtle-skin {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 5;
  opacity: 1;
}

.turtle-orbit-arm--n160 {
  animation: turtle-orbit-arm-n160 22s linear infinite;
}
.turtle-orbit-arm--n160 .turtle-skin {
  animation:
    turtle-orbit-skin-n160 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--n120 {
  animation: turtle-orbit-arm-n120 22s linear infinite;
}
.turtle-orbit-arm--n120 .turtle-skin {
  animation:
    turtle-orbit-skin-n120 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--n80 {
  animation: turtle-orbit-arm-n80 22s linear infinite;
}
.turtle-orbit-arm--n80 .turtle-skin {
  animation:
    turtle-orbit-skin-n80 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--n40 {
  animation: turtle-orbit-arm-n40 22s linear infinite;
}
.turtle-orbit-arm--n40 .turtle-skin {
  animation:
    turtle-orbit-skin-n40 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--z0 {
  animation: turtle-orbit-arm-z0 22s linear infinite;
}
.turtle-orbit-arm--z0 .turtle-skin {
  animation:
    turtle-orbit-skin-z0 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--p40 {
  animation: turtle-orbit-arm-p40 22s linear infinite;
}
.turtle-orbit-arm--p40 .turtle-skin {
  animation:
    turtle-orbit-skin-p40 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--p80 {
  animation: turtle-orbit-arm-p80 22s linear infinite;
}
.turtle-orbit-arm--p80 .turtle-skin {
  animation:
    turtle-orbit-skin-p80 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--p120 {
  animation: turtle-orbit-arm-p120 22s linear infinite;
}
.turtle-orbit-arm--p120 .turtle-skin {
  animation:
    turtle-orbit-skin-p120 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}
.turtle-orbit-arm--p160 {
  animation: turtle-orbit-arm-p160 22s linear infinite;
}
.turtle-orbit-arm--p160 .turtle-skin {
  animation:
    turtle-orbit-skin-p160 22s linear infinite,
    turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
}

.turtle-skin img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__visual:has(.turtle-skin:hover) .turtle-orbit-arm,
.hero__visual:has(.turtle-skin:hover) .turtle-skin {
  animation-play-state: paused;
}

.turtle-skin::after {
  content: attr(data-skin-name);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%) translateY(4px);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #173667;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(58, 104, 185, 0.26);
  border-radius: 999px;
  padding: 0.24rem 0.5rem;
  box-shadow: 0 8px 14px rgba(20, 45, 86, 0.16);
  transition: opacity 0.16s ease, transform 0.16s ease;
  z-index: 20;
}

.turtle-skin:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes turtle-orbit-arm-n160 {
  from {
    transform: translate(-50%, -50%) rotate(-160deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(200deg);
  }
}
@keyframes turtle-orbit-skin-n160 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(160deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-200deg);
  }
}
@keyframes turtle-orbit-arm-n120 {
  from {
    transform: translate(-50%, -50%) rotate(-120deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(240deg);
  }
}
@keyframes turtle-orbit-skin-n120 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(120deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-240deg);
  }
}
@keyframes turtle-orbit-arm-n80 {
  from {
    transform: translate(-50%, -50%) rotate(-80deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(280deg);
  }
}
@keyframes turtle-orbit-skin-n80 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(80deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-280deg);
  }
}
@keyframes turtle-orbit-arm-n40 {
  from {
    transform: translate(-50%, -50%) rotate(-40deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(320deg);
  }
}
@keyframes turtle-orbit-skin-n40 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(40deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-320deg);
  }
}
@keyframes turtle-orbit-arm-z0 {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes turtle-orbit-skin-z0 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-360deg);
  }
}
@keyframes turtle-orbit-arm-p40 {
  from {
    transform: translate(-50%, -50%) rotate(40deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(400deg);
  }
}
@keyframes turtle-orbit-skin-p40 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(-40deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-400deg);
  }
}
@keyframes turtle-orbit-arm-p80 {
  from {
    transform: translate(-50%, -50%) rotate(80deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(440deg);
  }
}
@keyframes turtle-orbit-skin-p80 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(-80deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-440deg);
  }
}
@keyframes turtle-orbit-arm-p120 {
  from {
    transform: translate(-50%, -50%) rotate(120deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(480deg);
  }
}
@keyframes turtle-orbit-skin-p120 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(-120deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-480deg);
  }
}
@keyframes turtle-orbit-arm-p160 {
  from {
    transform: translate(-50%, -50%) rotate(160deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(520deg);
  }
}
@keyframes turtle-orbit-skin-p160 {
  from {
    transform: translate(-50%, -50%) translateX(236px) rotate(-160deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(236px) rotate(-520deg);
  }
}

/* Mobile: kleinerer Radius, gleiche Winkel (Suffix -m) */
@keyframes turtle-orbit-skin-n160-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(160deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-200deg);
  }
}
@keyframes turtle-orbit-skin-n120-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(120deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-240deg);
  }
}
@keyframes turtle-orbit-skin-n80-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(80deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-280deg);
  }
}
@keyframes turtle-orbit-skin-n40-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(40deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-320deg);
  }
}
@keyframes turtle-orbit-skin-z0-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-360deg);
  }
}
@keyframes turtle-orbit-skin-p40-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(-40deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-400deg);
  }
}
@keyframes turtle-orbit-skin-p80-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(-80deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-440deg);
  }
}
@keyframes turtle-orbit-skin-p120-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(-120deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-480deg);
  }
}
@keyframes turtle-orbit-skin-p160-m {
  from {
    transform: translate(-50%, -50%) translateX(128px) rotate(-160deg);
  }
  to {
    transform: translate(-50%, -50%) translateX(128px) rotate(-520deg);
  }
}

@keyframes turtle-breathe {
  0%,
  100% {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
  }
  50% {
    box-shadow: 0 14px 30px rgba(35, 73, 142, 0.25);
  }
}

.turtle-group--left .turtle-orbit-arm:nth-child(1) {
  --delay: 0s;
}
.turtle-group--left .turtle-orbit-arm:nth-child(2) {
  --delay: -1.5s;
}
.turtle-group--left .turtle-orbit-arm:nth-child(3) {
  --delay: -3s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(1) {
  --delay: -4.5s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(2) {
  --delay: -6s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(3) {
  --delay: -7.5s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(4) {
  --delay: -9s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(5) {
  --delay: -10.5s;
}
.turtle-group--right .turtle-orbit-arm:nth-child(6) {
  --delay: -12s;
}

@media (max-width: 1000px) {
  .hero__visual {
    min-height: 520px;
  }

  .turtle-skin {
    width: 56px;
    height: 56px;
  }

  /* Landing: gleiche Skin-Grösse wie Desktop (Orbit wie Web) */
  .hero.landing-page .hero__visual .turtle-skin {
    width: 62px;
    height: 62px;
  }

  .hero-float-card {
    transform: scale(0.92);
  }
}

@media (max-width: 820px) {
  .hero__visual {
    min-height: auto;
    padding-bottom: 0.6rem;
    grid-column: 1;
    grid-row: auto;
    align-self: center;
    margin-top: 0.2rem;
  }

  .hero__title {
    max-width: 100%;
  }
}

.hero-landing-video {
  --hero-phone-frame-pad: 0.45rem;
  position: relative;
  z-index: 10;
  width: min(100%, 340px);
  max-width: 100%;
  margin-inline: auto;
  aspect-ratio: 9 / 19.5;
  padding: var(--hero-phone-frame-pad);
  border-radius: 2.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 24px 50px rgba(20, 45, 90, 0.15);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-sizing: border-box;
}

.hero-landing-screen {
  position: absolute;
  inset: var(--hero-phone-frame-pad);
  overflow: hidden;
  border-radius: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(15, 35, 70, 0.18);
  background: rgba(0, 0, 0, 0.2);
}

.hero-landing-loop-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover !important;
  object-position: center top;
  display: block;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

.hero-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(97, 230, 184, 0.21), transparent 70%);
  border-radius: 50%;
  filter: blur(56px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================
   SECTION HEADER
   ============================================ */

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text);
}

.section-header p {
  font-size: 1.06rem;
  color: var(--text-soft);
  max-width: 600px;
  margin: 0 auto;
}

.news-portal {
  padding: 3rem 1.25rem;
  background: transparent;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.news-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.news-card h3 {
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
}

.news-card p {
  color: var(--text-soft);
  margin-bottom: 0.8rem;
}

.news-card__media {
  margin: 0 0 0.9rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.news-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-page .news-list--stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 48rem;
  margin: 2rem auto 0;
}

.news-card__meta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.45rem;
  letter-spacing: 0.02em;
}

.news-card__meta time {
  color: inherit;
}

.news-card--update h3 {
  margin-bottom: 0.45rem;
}

.news-card__footnote {
  margin: 0.85rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-soft);
}

.news-card__footnote code {
  font-size: 0.8em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(74, 162, 255, 0.12);
}

.news-card--hint {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.58);
}

/* ============================================
   FEATURES SECTION
   ============================================ */

.features {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 4rem 1.25rem 4.5rem;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.9));
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(3, 8, 20, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

a.feature-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.feature-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 85%, white);
  outline-offset: 3px;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-6px) rotate(-0.2deg);
  box-shadow: 0 20px 36px rgba(74, 162, 255, 0.22);
  border-color: var(--secondary);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(16, 185, 129, 0.08));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-xl);
  pointer-events: none;
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
}

.feature-card h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--sp-md);
  color: var(--text);
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-soft);
  margin-bottom: var(--sp-lg);
  line-height: 1.6;
  font-size: 0.95rem;
}

.feature-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.feature-card:hover .feature-link,
.feature-link:hover {
  transform: translateX(4px);
}

/* ============================================
   TURTLEY GENERATOR
   ============================================ */

.turtley-lab {
  max-width: var(--max-width);
  margin: 3rem auto 0;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(74, 162, 255, 0.16), transparent 26%),
    radial-gradient(circle at 88% 80%, rgba(97, 230, 184, 0.14), transparent 28%),
    linear-gradient(145deg, rgba(248, 251, 255, 0.98), rgba(234, 243, 255, 0.92));
  border: 1px solid rgba(118, 145, 184, 0.2);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 26px 58px rgba(11, 24, 50, 0.12);
}

.turtley-lab__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(241, 248, 255, 0.88)),
    linear-gradient(110deg, rgba(74, 162, 255, 0.04), rgba(97, 230, 184, 0.06));
  border: 1px solid rgba(122, 148, 188, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.turtley-lab__hero-copy {
  border-radius: 24px;
  padding: 1.5rem;
}

.turtley-lab__hero-copy {
  background: rgba(255, 255, 255, 0.52);
}

.turtley-lab__eyebrow-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.turtley-lab__hero-title {
  margin: 0.9rem 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.turtley-lab__hero-sub {
  margin: 0;
  max-width: 56ch;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.75;
}

.turtley-lab__hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.35rem;
}

.turtley-lab__hero-point {
  min-height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(121, 148, 187, 0.14);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.5;
}

.turtley-lab__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 1.4rem;
  align-items: stretch;
  margin-top: 1rem;
}

.turtley-lab__panel,
.turtley-lab__result {
  position: relative;
  border-radius: 26px;
  border: 1px solid rgba(121, 148, 187, 0.16);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 36px rgba(13, 29, 57, 0.08);
}

.turtley-lab__panel {
  padding: 1.55rem;
}

.turtley-lab__result {
  padding: 1.55rem;
  display: flex;
  flex-direction: column;
}

.turtley-lab__eyebrow,
.turtley-lab__result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 162, 255, 0.12);
  border: 1px solid rgba(74, 162, 255, 0.18);
  color: #1964b6;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turtley-lab__promo-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.78rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 232, 168, 0.18), rgba(38, 187, 200, 0.2));
  border: 1px solid rgba(61, 232, 168, 0.35);
  color: #137458;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.turtley-lab__panel h3,
.turtley-lab__result h3 {
  margin: 0.9rem 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.turtley-lab__lead,
.turtley-lab__result-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 54ch;
}

.turtley-lab__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.turtley-lab__panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.66rem;
  border-radius: 999px;
  background: rgba(30, 91, 170, 0.08);
  color: #1d63b4;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.turtley-lab__brief-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.turtley-lab__brief-card {
  display: grid;
  gap: 0.22rem;
  min-height: 100%;
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 247, 255, 0.92));
  border: 1px solid rgba(121, 148, 187, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.turtley-lab__brief-card strong {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 800;
}

.turtley-lab__brief-card span {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.5;
}

.turtley-generator {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
}

.turtley-generator__ideas {
  display: grid;
  gap: 0.6rem;
}

.turtley-generator__ideas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.turtley-generator__random-btn {
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 188, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.turtley-generator__random-btn:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(74, 162, 255, 0.32);
}

.turtley-generator__ideas-label {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #245f9e;
}

.turtley-generator__ideas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.turtley-generator__idea {
  padding: 0.62rem 0.88rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 188, 0.18);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.turtley-generator__idea:hover {
  transform: translateY(-1px);
  border-color: rgba(74, 162, 255, 0.32);
  background: #ffffff;
}

.turtley-generator__field {
  display: grid;
  gap: 0.5rem;
}

.turtley-generator__field span,
.turtley-generator__upload strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.turtley-generator__field textarea {
  width: 100%;
  min-height: 8.5rem;
  resize: vertical;
  border: 1px solid rgba(108, 135, 176, 0.28);
  border-radius: 18px;
  background: rgba(244, 248, 255, 0.92);
  color: var(--text);
  padding: 1rem 1rem 1.05rem;
  font: inherit;
  line-height: 1.55;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.turtley-generator__field textarea:focus {
  outline: none;
  border-color: rgba(74, 162, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(74, 162, 255, 0.12);
  background: rgba(255, 255, 255, 0.98);
}

.turtley-generator__upload {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(243, 248, 255, 0.98), rgba(247, 253, 251, 0.94));
  border: 1px solid rgba(116, 148, 188, 0.16);
}

.turtley-generator__upload--builtin {
  background: linear-gradient(135deg, rgba(236, 244, 255, 0.98), rgba(240, 249, 255, 0.94));
}

.turtley-generator__upload-copy p {
  margin: 0.3rem 0 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.6;
}

.turtley-generator__upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.turtley-generator__clear {
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(116, 148, 188, 0.22);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.turtley-generator__reference {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: 20px;
  background: rgba(15, 36, 70, 0.05);
  border: 1px solid rgba(102, 132, 176, 0.14);
}

.turtley-generator__reference--style {
  background: linear-gradient(135deg, rgba(255, 247, 238, 0.9), rgba(244, 247, 255, 0.92));
}

.turtley-generator__reference img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.85);
}

.turtley-generator__reference-meta {
  display: grid;
  gap: 0.14rem;
  min-width: 0;
}

.turtley-generator__reference-meta strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92rem;
}

.turtley-generator__reference-meta span {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.turtley-generator__actions {
  display: grid;
  gap: 0.75rem;
  align-items: center;
}

.turtley-generator__status {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.turtley-lab__stage {
  position: relative;
  flex: 1;
  min-height: 24rem;
  margin: 1.2rem 0 0;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(139, 176, 222, 0.25);
  background:
    radial-gradient(circle at 30% 25%, rgba(74, 162, 255, 0.28), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(97, 230, 184, 0.24), transparent 32%),
    linear-gradient(160deg, rgba(228, 241, 255, 0.9), rgba(246, 251, 255, 0.94));
}

.turtley-lab__result-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.turtley-lab__result-meta-card {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(122, 148, 188, 0.14);
}

.turtley-lab__result-meta-card strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}

.turtley-lab__result-meta-card span {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-soft);
}

.turtley-lab__stage-glow {
  position: absolute;
  inset: 16% 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0));
  filter: blur(16px);
  pointer-events: none;
}

.turtley-lab__stage img {
  position: relative;
  z-index: 1;
  width: min(76%, 25rem);
  max-height: 26rem;
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(16, 37, 77, 0.22));
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
}

.turtley-lab__stage.is-busy img {
  opacity: 0.38;
  transform: scale(0.96);
  filter: blur(1.5px) drop-shadow(0 16px 28px rgba(16, 37, 77, 0.12));
}

@media (max-width: 960px) {
  .turtley-lab__hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .turtley-lab__hero-points,
  .turtley-lab__brief-strip,
  .turtley-lab__result-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .turtley-lab__shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .turtley-lab__stage {
    min-height: 18rem;
  }
}

@media (max-width: 780px) {
  .turtley-lab {
    margin-top: 1.75rem;
    border-radius: 28px;
  }

  .turtley-lab__hero-title {
    font-size: clamp(2rem, 10vw, 3rem);
    max-width: 12ch;
  }

  .turtley-lab__hero-sub,
  .turtley-lab__lead,
  .turtley-lab__result-body {
    font-size: 0.97rem;
    line-height: 1.65;
  }

  .turtley-lab__panel h3,
  .turtley-lab__result h3 {
    font-size: clamp(1.35rem, 6vw, 1.9rem);
  }

  .turtley-generator__ideas-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .turtley-generator__ideas-list::-webkit-scrollbar {
    display: none;
  }

  .turtley-generator__idea {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .turtley-generator__upload-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .turtley-generator__upload-actions .cta-btn,
  .turtley-generator__upload-actions .turtley-generator__clear,
  .turtley-generator__actions .cta-btn {
    width: 100%;
    justify-content: center;
  }

  .turtley-generator__actions {
    gap: 0.85rem;
  }

  .turtley-lab__stage img {
    width: min(82%, 19rem);
    max-height: 20rem;
  }
}

@media (max-width: 640px) {
  .turtley-lab {
    padding: 0.85rem;
    border-radius: 24px;
  }

  .turtley-lab__hero,
  .turtley-lab__hero-copy {
    padding: 1rem;
  }

  .turtley-lab__hero {
    border-radius: 22px;
  }

  .turtley-lab__panel,
  .turtley-lab__result {
    padding: 1.1rem;
    border-radius: 22px;
  }

  .turtley-lab__hero-title {
    max-width: none;
    font-size: clamp(1.9rem, 11vw, 2.7rem);
    line-height: 1;
  }

  .turtley-lab__eyebrow,
  .turtley-lab__result-badge,
  .turtley-lab__panel-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.07em;
  }

  .turtley-lab__hero-point,
  .turtley-lab__brief-card,
  .turtley-lab__result-meta-card,
  .turtley-generator__upload,
  .turtley-generator__reference {
    padding: 0.85rem;
    border-radius: 16px;
  }

  .turtley-generator__field textarea {
    min-height: 7.4rem;
    padding: 0.92rem 0.92rem 1rem;
    font-size: 0.96rem;
  }

  .turtley-generator__status {
    font-size: 0.88rem;
  }

  .turtley-lab__stage {
    min-height: 16rem;
    border-radius: 22px;
  }

  .turtley-lab__stage-glow {
    inset: 14% 10%;
  }

  .turtley-lab__stage img {
    width: min(86%, 16rem);
    max-height: 16rem;
  }

  .turtley-generator__reference {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .turtley-generator__reference img {
    width: 68px;
    height: 68px;
  }
}

@media (max-width: 420px) {
  .turtley-lab {
    padding: 0.7rem;
    margin-top: 1.25rem;
  }

  .turtley-lab__hero,
  .turtley-lab__hero-copy,
  .turtley-lab__panel,
  .turtley-lab__result {
    padding: 0.9rem;
  }

  .turtley-lab__hero-sub,
  .turtley-lab__lead,
  .turtley-lab__result-body {
    font-size: 0.93rem;
  }

  .turtley-generator__idea {
    font-size: 0.84rem;
    padding: 0.58rem 0.78rem;
  }

  .turtley-generator__reference {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0.72rem;
  }

  .turtley-generator__reference img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .turtley-lab__stage {
    min-height: 14rem;
  }

  .turtley-lab__stage img {
    width: min(88%, 13.5rem);
    max-height: 13.5rem;
  }
}

/* ============================================
   APP SECTION / CAROUSEL
   ============================================ */

.app-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.carousel-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.carousel-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.carousel-item {
  min-width: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.carousel-item img {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1 / 2;
  border-radius: 1.5rem;
  object-fit: cover;
  margin-bottom: var(--sp-lg);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}

.carousel-item h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.carousel-btn {
  width: 3rem;
  height: 3rem;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(74, 162, 255, 0.28);
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  margin-top: 2rem;
}

.app-view-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.25rem;
  align-items: stretch;
}

.app-view-explain {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9));
  box-shadow: 0 10px 20px rgba(26, 44, 82, 0.08);
  padding: 1.2rem 1rem;
}

.app-view-explain h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.22rem;
  color: #173667;
  margin-bottom: 0.45rem;
}

.app-view-explain p {
  font-size: 0.92rem;
  color: #465d80;
  margin-bottom: 0.9rem;
}

.app-doc-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.95rem;
  color: #1d3f77;
  margin: 0.9rem 0 0.45rem;
}

.app-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.app-steps li {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #fff 86%);
  background: rgba(255, 255, 255, 0.86);
  padding: 0.7rem 0.75rem;
}

.app-steps li strong {
  display: block;
  font-size: 0.86rem;
  color: #1d3f77;
  margin-bottom: 0.2rem;
}

.app-steps li span {
  display: block;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4f6486;
}

.app-doc-list {
  margin: 0 0 0.3rem;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
}

.app-doc-list li {
  color: #496383;
  font-size: 0.82rem;
  line-height: 1.45;
}

.app-doc-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(520px, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.2rem 0.2rem 0.8rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.app-doc-panel {
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 1fr minmax(220px, 260px);
  gap: 1rem;
  align-items: stretch;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.9));
  box-shadow: 0 10px 20px rgba(26, 44, 82, 0.08);
  padding: 1rem;
  min-height: 360px;
}

.app-doc-panel__text {
  display: flex;
  flex-direction: column;
}

.app-doc-panel__kicker {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #5676a5;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.app-doc-panel__text h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  color: #173667;
  margin-bottom: 0.45rem;
}

.app-doc-panel__text p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #496383;
  margin-bottom: 0.6rem;
}

.app-doc-panel__text ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.app-doc-panel__text li {
  font-size: 0.82rem;
  line-height: 1.45;
  color: #496383;
}

.app-doc-panel__media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-doc-panel__media img {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff 78%);
  box-shadow: 0 14px 24px rgba(21, 43, 82, 0.16);
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.dot.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  width: 2rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ============================================
   TESTIMONIALS
   ============================================ */

.testimonials {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 12px 24px rgba(5, 12, 28, 0.2);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--secondary);
  transform: translateY(-4px);
}

.testimonial-stars {
  font-size: 1.25rem;
  margin-bottom: var(--sp-md);
}

.testimonial-text {
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.author-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.testimonial-author > div strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.testimonial-author > div span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat span {
  display: block;
  color: var(--text-soft);
  font-size: 0.875rem;
}

/* ============================================
   FINAL CTA
   ============================================ */

.final-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
  background: linear-gradient(135deg, #2f77d8, #4aa2ff 48%, #61e6b8);
  border-radius: 28px;
  color: white;
  position: relative;
  overflow: hidden;
  text-align: left;
}

.cta-decoration {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.deco-element {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
}

.deco-1 {
  width: 300px;
  height: 300px;
  background: white;
  top: -100px;
  right: -50px;
}

.deco-2 {
  width: 200px;
  height: 200px;
  background: white;
  bottom: -80px;
  left: 10%;
}

.deco-3 {
  width: 150px;
  height: 150px;
  background: white;
  top: 30%;
  left: -50px;
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  gap: clamp(1.5rem, 4vw, 2.75rem);
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-lead {
  max-width: 42ch;
}

.cta-status {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: rgba(9, 24, 55, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  max-width: 42rem;
}

.cta-status strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.cta-status p,
.cta-footnote {
  margin: 0;
  max-width: none;
}

.cta-steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.15rem;
  max-width: 44rem;
}

.cta-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 0.95rem 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.cta-step__index {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d4f8f;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
}

.cta-step__body h3 {
  margin: 0 0 0.3rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.2;
}

.cta-step__body p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: none;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.cta-actions .cta-btn {
  min-width: 15rem;
  justify-content: center;
}

.cta-footnote {
  margin-top: 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  max-width: 44rem;
}

.cta-figure {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 22px 48px rgba(8, 22, 48, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.cta-figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.final-cta h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: var(--sp-lg);
}

.final-cta p {
  font-size: 1.125rem;
  margin-bottom: var(--sp-xl);
  max-width: 36ch;
}

/* ============================================
   LIVE CHALLENGES SECTION
   ============================================ */

.live-challenges {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.25rem;
}

.challenges-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

/* Zeile unter der Galerie: links Posts, Mitte Karte, rechts Infos (sichtbar nach Challenge-Klick) */
.challenge-focus-row {
  display: none;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(260px, 1fr);
  gap: 1rem 1.25rem;
  align-items: stretch;
}

/* Challenge Maps Gallery */
.challenge-maps-gallery {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 14px 26px rgba(5, 12, 28, 0.22);
  border: 1px solid var(--line);
  overflow: hidden;
}

.challenge-maps-gallery h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 1.5rem;
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--line);
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.challenges-maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  max-height: 500px;
  overflow-y: auto;
}

.challenge-map-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Cover image: 3:4 portrait (admin / iPhone Hochformat), not square */
  aspect-ratio: 3 / 4;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 6px 16px rgba(4, 9, 20, 0.2);
}

.challenge-map-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.challenge-map-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.challenge-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  background: var(--bg-soft);
}

.challenge-map-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.55));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  color: white;
}

.challenge-map-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.challenge-map-badge {
  display: inline-block;
  font-size: 0.65rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.8);
  color: white;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

/* Challenge Detail Panel */
.challenge-detail-panel {
  background: rgba(255, 255, 255, 0.84);
  border-radius: var(--radius);
  box-shadow: 0 14px 26px rgba(5, 12, 28, 0.22);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.challenge-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.challenge-detail-header {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.challenge-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.1), transparent);
  pointer-events: none;
}

.detail-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  backdrop-filter: blur(10px);
}

.detail-badge[data-status="live"] {
  background: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.detail-badge[data-status="upcoming"] {
  background: rgba(249, 115, 22, 0.3);
  color: #f97316;
}

.detail-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 var(--sp-md);
}

.detail-description {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.95;
  max-width: 38rem;
}

.detail-sponsor {
  margin-top: var(--sp-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  max-width: 42rem;
}

.detail-sponsor__label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.92;
  color: #ffffff;
}

.detail-sponsor__link,
.detail-sponsor__name {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.detail-sponsor__link:hover {
  opacity: 0.95;
}

.challenge-map-view {
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1220;
  position: relative;
  /* Same portrait canvas as app public map (9 × 32): normalized summits map 1:1 under object-fit: cover. */
  aspect-ratio: 9 / 32;
  max-height: min(72vh, 920px);
}

.challenge-hero {
  width: 100%;
  margin: 1rem 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0b1220;
  position: relative;
  aspect-ratio: 3 / 4;
  max-height: min(70vh, 720px);
}

.challenge-map-view-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.challenge-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.member-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
}

.member-dot:hover {
  transform: translate(-50%, -50%) scale(1.2);
}

.summit-marker {
  position: absolute;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, var(--accent), var(--tertiary));
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: translate(-50%, -50%);
}

.summit-marker:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

button.summit-marker {
  margin: 0;
  padding: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.summit-marker:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.summit-marker--active {
  box-shadow:
    0 0 0 3px rgba(250, 204, 21, 0.9),
    0 4px 12px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, -50%) scale(1.18);
}

.member-turtle {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  will-change: left, top;
  pointer-events: none;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

.member-turtle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-sizing: border-box;
  background: rgba(11, 18, 32, 0.35);
}

.member-turtle--out .member-turtle-img {
  filter: grayscale(1) brightness(0.88);
  border-color: rgba(248, 113, 113, 0.95);
}

.member-dot--out {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  opacity: 0.85;
}

.challenge-turtle-list {
  margin-top: 1.25rem;
}

.challenge-turtle-list h4 {
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.turtle-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.turtle-card {
  padding: 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
}

.turtle-name {
  font-weight: 700;
  color: var(--text);
}

.turtle-meta {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.challenge-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-md);
  padding: 1.5rem;
  border-top: 1px solid var(--line);
}

.detail-stat strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.detail-stat span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Challenge Posts Section */
.challenges-posts-section {
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 14px 26px rgba(5, 12, 28, 0.22);
  border: 1px solid var(--line);
  padding: 2rem;
}

.challenges-posts-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  margin: 0 0 var(--sp-lg);
  color: var(--text);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  transition: all 0.2s ease;
}

.post-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.post-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--gray-200);
  overflow: hidden;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.post-content {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}

.post-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.post-meta {
  flex: 1;
}

.post-author {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.post-date {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin: 0;
}

.post-text {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.5;
  margin: 0;
}

.post-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.post-stat {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: var(--text-soft);
  text-align: center;
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: var(--sp-md);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: linear-gradient(170deg, #0f1e38 0%, #13233f 60%, #0e1d38 100%);
  color: white;
  padding: 4.5rem 1.25rem 2.5rem;
  margin-top: 7rem;
  border-top: none;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--primary) 30%, var(--secondary) 70%, transparent 100%);
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-section h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  margin-bottom: var(--sp-md);
}

.footer-section p,
.footer-section a {
  color: rgba(226, 236, 255, 0.72);
  font-size: 0.875rem;
  line-height: 1.7;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============================================
   PAGE SECTIONS (NICHT SCROLLEN)
   ============================================ */

.landing-page {
  display: block;
}

/* Hero trägt auch .landing-page — sonst gewinnt „display: block“ und das Grid (Telefon-Spalte) ist weg */
.hero.landing-page {
  display: grid;
  /* Basis-.hero hat overflow:hidden — würde Orbit-Skins abschneiden (besonders Mobile) */
  overflow: visible;
}

.page-screen {
  display: none;
}

.page-screen.active {
  display: block;
}

.live-overview {
  margin-bottom: 2rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.public-challenge-list h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.public-challenge-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.6rem;
}

.challenge-chip {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.2));
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text);
}

.map-demo {
  position: relative;
  border: 2px dashed rgba(155, 123, 255, 0.48);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.map-demo p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.5rem;
}

.map-path {
  position: relative;
  height: 120px;
  background: linear-gradient(120deg, rgba(16, 185, 129, 0.05), rgba(99, 102, 241, 0.05));
  border-radius: 12px;
  overflow: hidden;
}

.turtle-run {
  position: absolute;
  font-size: 1.5rem;
  animation: turtle-move 4s linear infinite;
}

.turtle-run-1 { top: 20%; left: 5%; animation-delay: 0s; }
.turtle-run-2 { top: 45%; left: 7%; animation-delay: 1.25s; }
.turtle-run-3 { top: 70%; left: 3%; animation-delay: 2.5s; }

@keyframes turtle-move {
  0% { transform: translate(0, 0); }
  25% { transform: translate(22px, -15px); }
  50% { transform: translate(90px, -40px); }
  75% { transform: translate(160px, -56px); }
  100% { transform: translate(220px, -80px); }
}

.app-get {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-get .cta-btn {
  width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

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

  .page-screen {
    display: none;
  }

  .page-screen.active {
    display: block;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 2.6rem 1rem 3rem;
  }

  .carousel-container {
    flex-direction: column;
  }

  .app-view-layout {
    grid-template-columns: 1fr;
  }

  .app-doc-scroll {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .app-doc-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .app-doc-panel__media img {
    max-width: 220px;
  }

  .carousel-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }

  .features-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    width: 100%;
    flex-direction: column;
  }

  .hero__quickstats {
    width: 100%;
  }

  .hero-stat {
    flex: 1;
    min-width: 100px;
  }

  .hero-float-card {
    display: none;
  }

  .cta-btn--large {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .challenges-container {
    grid-template-columns: 1fr;
  }

  .challenge-preview-panel,
  .posts-panel {
    min-height: 300px;
  }
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 1.8rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: 1.5rem;
  }

  .carousel-item {
    padding: 1.5rem;
  }

  .carousel-item img {
    max-width: 200px;
  }

  .final-cta {
    padding: 3rem 1rem;
  }

  .final-cta h2 {
    font-size: 1.7rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem;
  }

  .live-challenges {
    padding: 3rem var(--sp-lg);
  }

  .challenge-title {
    font-size: 1.35rem;
  }

  .challenge-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .posts-grid {
    max-height: 300px;
  }
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: rgba(126, 144, 176, 0.34);
}

/* ============================================
   LANDING V2 OVERRIDES
   ============================================ */

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.site-header__inner {
  max-width: 1320px;
}

.site-nav a {
  font-weight: 700;
}

.hero {
  margin-top: 1.2rem;
  padding: 3rem 1.8rem 2.6rem;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, #fff 70%);
  box-shadow: 0 22px 50px rgba(30, 53, 95, 0.12);
  background:
    radial-gradient(circle at 80% 12%, rgba(74, 162, 255, 0.2), transparent 32%),
    radial-gradient(circle at 16% 24%, rgba(155, 123, 255, 0.14), transparent 28%),
    linear-gradient(140deg, #ffffff 0%, #f8fbff 48%, #f4fbf8 100%);
  gap: 1.6rem 2.2rem;
}

.hero__title-fullwidth {
  grid-column: 1;
  grid-row: 1;
}

.hero__content {
  grid-column: 1;
  grid-row: 2;
}

.hero__title {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.98;
}

.hero__subtitle {
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero__quickstats {
  gap: 0.9rem;
}

.hero-stat {
  min-width: 120px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, #fff 80%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
}

.hero__actions {
  gap: 0.8rem;
}

.hero__actions .cta-btn--large,
.app-get .cta-btn--large,
.final-cta .cta-btn--large {
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 38%, transparent);
}

.hero-float-card {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff 78%);
  box-shadow: 0 12px 24px rgba(24, 52, 97, 0.15);
}

.features,
.app-section,
.live-challenges,
.testimonials,
.news-page,
.final-cta {
  margin-top: 2.2rem;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
  box-shadow: 0 18px 36px rgba(24, 44, 84, 0.08);
}

.features,
.app-section,
.live-challenges,
.testimonials,
.news-page {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.92));
  padding: 3rem 1.5rem 3.2rem;
}

.final-cta {
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}

.section-header h2 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1rem;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.live-stats {
  margin-top: 2.2rem;
  padding: 2.6rem 1.5rem 2.8rem;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
  box-shadow: 0 18px 36px rgba(24, 44, 84, 0.08);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.92));
}

.live-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.live-stat-card {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff 84%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.9));
  box-shadow: 0 10px 20px rgba(26, 44, 82, 0.08);
  padding: 1.1rem 1rem;
  text-align: center;
}

.live-stat-card__label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5f6f89;
  margin-bottom: 0.35rem;
}

.live-stat-card strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

/* Live pulse dot */
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success, #2cc36b);
  margin-right: 0.45rem;
  vertical-align: middle;
  position: relative;
  top: -2px;
  box-shadow: 0 0 0 0 rgba(44, 195, 107, 0.5);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(44, 195, 107, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(44, 195, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(44, 195, 107, 0); }
}

.live-stats-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.feature-card {
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff 84%);
  box-shadow: 0 10px 20px rgba(26, 44, 82, 0.08);
}

.feature-card h3 {
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.feature-icon {
  font-size: 2rem;
}

.carousel-wrapper {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
}

.carousel-item {
  padding: 1.5rem;
}

.carousel-item img {
  max-width: 220px;
}

.live-overview {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.95));
}

.challenge-maps-gallery,
.challenge-detail-panel,
.challenges-posts-section {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
}

.challenge-map-card {
  border-radius: 14px;
}

.testimonials-grid {
  gap: 1rem;
}

.testimonial-card {
  border-radius: 18px;
  padding: 1.4rem;
}

.stats-strip {
  border-radius: 18px;
  padding: 1.5rem;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.site-footer {
  margin-top: 3rem;
  border-radius: 24px 24px 0 0;
}

@media (max-width: 1180px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__title-fullwidth,
  .hero__content,
  .hero__visual {
    grid-column: 1;
    grid-row: auto;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
    margin-top: 0.4rem;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 0;
    padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
  }

  .hero,
  .live-stats,
  .features,
  .app-section,
  .live-challenges,
  .testimonials,
  .news-page,
  .final-cta {
    border-radius: 22px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .live-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero__quickstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .hero-stat {
    min-width: 0;
  }
}

/* Force hero phone right beside title (desktop) */
@media (min-width: 921px) {
  .hero.landing-page:not([style*="display: none"]) {
    display: grid !important;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .hero__title-fullwidth {
    grid-column: 1;
    grid-row: 1;
    max-width: 100%;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 2;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 500px;
    margin-top: 0;
    margin-left: -40px;
    /* Nur Desktop/Web: Handy + Orbit leicht nach links (Handy-View ohne Verschiebung) */
    transform: translateX(-1cm);
  }
}

/* ============================================
   APP SEITE — echte Glas-Doku (#app)
   ============================================ */

#app.app-section {
  --app-glass-fill: rgba(255, 255, 255, 0.14);
  --app-glass-fill-strong: rgba(255, 255, 255, 0.22);
  --app-glass-edge: rgba(255, 255, 255, 0.55);
  --app-glass-edge-soft: rgba(255, 255, 255, 0.28);
  --app-glass-shadow: 0 28px 70px rgba(17, 40, 82, 0.12);
  --app-glass-blur: blur(22px) saturate(1.35);
  position: relative;
  isolation: isolate;
  padding: 3.5rem clamp(1rem, 3vw, 2rem) 4.5rem;
  max-width: 1220px;
  margin: 0 auto;
}

#app .app-glass-atmosphere {
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: 36px;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 12% 0%, rgba(74, 162, 255, 0.2), transparent 62%),
    radial-gradient(50% 40% at 92% 8%, rgba(155, 123, 255, 0.16), transparent 58%),
    radial-gradient(60% 50% at 50% 100%, rgba(97, 230, 184, 0.12), transparent 55%);
  opacity: 0.95;
}

#app .app-glass-intro,
#app .app-glass-layout,
#app .app-glass-footnote {
  position: relative;
  z-index: 1;
}

#app .app-glass-intro {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
  padding: 1.35rem 1.5rem 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--app-glass-edge-soft);
  background: var(--app-glass-fill);
  box-shadow: var(--app-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  backdrop-filter: var(--app-glass-blur);
  -webkit-backdrop-filter: var(--app-glass-blur);
}

#app .app-glass-intro__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 70%, var(--text) 30%);
  margin-bottom: 0.65rem;
}

#app .app-glass-intro__title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

#app .app-glass-intro__lead {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  line-height: 1.65;
  color: var(--text-soft);
  margin: 0;
}

#app .app-glass-intro__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--app-glass-edge-soft);
}

#app .app-glass-layout {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: start;
}

#app .app-glass-toc {
  position: sticky;
  top: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--app-glass-edge-soft);
  background: var(--app-glass-fill-strong);
  box-shadow: var(--app-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  backdrop-filter: var(--app-glass-blur);
  -webkit-backdrop-filter: var(--app-glass-blur);
}

#app .app-glass-toc__label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  padding-left: 0.35rem;
}

#app .app-glass-toc__link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#app .app-glass-toc__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.28);
}

#app .app-glass-toc__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.42);
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

#app .app-glass-stream {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 1.85rem);
}

#app .app-glass-sheet {
  scroll-margin-top: 5.75rem;
  border-radius: 28px;
  border: 1px solid var(--app-glass-edge-soft);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.08) 48%,
    rgba(255, 255, 255, 0.14) 100%
  );
  box-shadow: var(--app-glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  backdrop-filter: var(--app-glass-blur);
  -webkit-backdrop-filter: var(--app-glass-blur);
  padding: clamp(1.15rem, 2.2vw, 1.65rem);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

#app .app-glass-sheet:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--app-glass-edge-soft));
  box-shadow:
    0 32px 80px rgba(17, 40, 82, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

#app .app-glass-sheet__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 340px);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: center;
}

#app .app-glass-sheet--reverse .app-glass-sheet__grid {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1.05fr);
}

#app .app-glass-sheet--reverse .app-glass-copy {
  order: 2;
}

#app .app-glass-sheet--reverse .app-glass-device,
#app .app-glass-sheet--reverse .app-glass-skin-rack {
  order: 1;
}

#app .app-glass-sheet__grid--skins {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 380px);
  align-items: start;
}

#app .app-glass-copy {
  padding: 0.35rem 0.5rem;
}

#app .app-glass-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--primary) 55%, var(--text) 45%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#app .app-glass-copy h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.65rem;
  max-width: 22ch;
}

#app .app-glass-copy p {
  font-size: clamp(0.92rem, 1.5vw, 1.02rem);
  line-height: 1.68;
  color: var(--text-soft);
  margin: 0 0 0.75rem;
  max-width: 56ch;
}

#app .app-glass-copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.08em 0.28em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--app-glass-edge-soft);
}

#app .app-glass-bullets {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

#app .app-glass-bullets li {
  font-size: 0.9rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--text-soft) 92%, var(--text) 8%);
}

#app .app-glass-device {
  margin: 0;
  justify-self: center;
  padding: 0.55rem;
  border-radius: 2.35rem;
  border: 1px solid var(--app-glass-edge);
  background: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 24px 50px rgba(20, 45, 90, 0.15);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

#app .app-glass-device img,
#app .app-glass-device__video {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 1.85rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 16px 40px rgba(15, 35, 70, 0.18);
}

#app .app-glass-device__video {
  background: rgba(0, 0, 0, 0.2);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

#app .app-glass-device--video {
  padding: 0.45rem;
}

#app .app-glass-device--app-icon {
  padding: 1.25rem 1.5rem;
}

#app .app-glass-device--app-icon img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 1.35rem;
  border: none;
  box-shadow: 0 12px 32px rgba(15, 35, 70, 0.2);
  background: transparent;
}

#app .app-glass-skin-rack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.65rem;
  border-radius: 22px;
  border: 1px solid var(--app-glass-edge-soft);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

#app .app-glass-skin-cell {
  aspect-ratio: 1;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.2s ease;
}

#app .app-glass-skin-cell:hover {
  transform: scale(1.04);
}

#app .app-glass-skin-cell img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

#app .app-glass-footnote {
  margin: 2rem auto 0;
  max-width: 52rem;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-soft);
  border-radius: 18px;
  border: 1px dashed color-mix(in srgb, var(--line) 80%, var(--primary) 20%);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  #app .app-glass-intro,
  #app .app-glass-toc,
  #app .app-glass-sheet,
  #app .app-glass-device,
  #app .app-glass-footnote {
    background: rgba(255, 255, 255, 0.82);
  }
}

@media (max-width: 960px) {
  #app .app-glass-layout {
    grid-template-columns: 1fr;
  }

  #app .app-glass-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.65rem;
  }

  #app .app-glass-toc__label {
    width: 100%;
    margin-bottom: 0.15rem;
  }

  #app .app-glass-toc__link {
    flex: 1 1 auto;
    min-width: calc(33% - 0.35rem);
    text-align: center;
    padding: 0.42rem 0.35rem;
    font-size: 0.74rem;
  }

  #app .app-glass-sheet__grid,
  #app .app-glass-sheet--reverse .app-glass-sheet__grid,
  #app .app-glass-sheet__grid--skins {
    grid-template-columns: 1fr;
  }

  #app .app-glass-sheet--reverse .app-glass-copy,
  #app .app-glass-sheet--reverse .app-glass-device,
  #app .app-glass-sheet--reverse .app-glass-skin-rack {
    order: initial;
  }

  #app .app-glass-device img,
  #app .app-glass-device__video {
    max-width: min(260px, 72vw);
  }
}

@media (max-width: 520px) {
  #app .app-glass-toc__link {
    min-width: calc(50% - 0.25rem);
    font-size: 0.7rem;
  }

  #app .app-glass-skin-rack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================
   LIVE VIEW POLISH (PRO / EDITORIAL)
   ============================================ */

#live-challenges.live-challenges {
  position: relative;
  isolation: isolate;
  /* Volle Viewport-Breite trotz schmalem <main> (body: overflow-x hidden) */
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  /* Kompakter: mehr „auf einen Blick“ ohne riesige vertikale Blöcke */
  padding: 2.35rem max(clamp(1.1rem, 3vw, 2.4rem), env(safe-area-inset-left, 0px)) 3.25rem
    max(clamp(1.1rem, 3vw, 2.4rem), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

#live-challenges.live-challenges::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 0;
  background:
    radial-gradient(42% 35% at 8% 8%, rgba(123, 195, 255, 0.2), transparent 72%),
    radial-gradient(38% 32% at 92% 14%, rgba(158, 247, 211, 0.18), transparent 72%),
    linear-gradient(175deg, rgba(255, 255, 255, 0.94), rgba(242, 248, 255, 0.9));
}

#live-challenges .section-header {
  max-width: min(1680px, 100%);
  margin: 0 auto 1.1rem;
  text-align: center;
  overflow: visible;
}

#live-challenges .section-header h2 {
  max-width: none;
  font-size: clamp(1.35rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  overflow: visible;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: auto;
  padding-bottom: 0.06em;
}

#live-challenges .section-header p {
  max-width: min(52ch, 100%);
  margin-left: auto;
  margin-right: auto;
  font-size: 0.92rem;
  line-height: 1.55;
}

#live-challenges .live-overview {
  max-width: min(1680px, 100%);
  margin: 0 auto 2.1rem;
  padding: 1.2rem;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff 78%);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(243, 249, 255, 0.92));
  box-shadow: 0 16px 32px rgba(24, 44, 84, 0.11);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

#live-challenges .public-challenge-list {
  grid-column: span 6;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff 84%);
  background: rgba(255, 255, 255, 0.88);
  padding: 1rem;
}

#live-challenges .public-challenge-list h3 {
  margin: 0 0 0.8rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  color: #153262;
  text-align: center;
}

#live-challenges .public-challenge-cards {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.62rem;
}

#live-challenges .challenge-chip {
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
  background: linear-gradient(145deg, rgba(123, 195, 255, 0.17), rgba(158, 247, 211, 0.18));
  color: #14335f;
  font-size: 0.79rem;
  letter-spacing: 0.01em;
}

#live-challenges .map-demo {
  grid-column: span 4;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, #fff 80%);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.92));
  padding: 0.9rem;
  text-align: center;
}

#live-challenges .map-demo p {
  margin-top: 0.62rem;
  font-size: 0.88rem;
  color: #496383;
}

#live-challenges .app-get {
  grid-column: span 2;
}

#live-challenges .app-get .cta-btn {
  min-height: 100%;
  border-radius: 16px;
}

#live-challenges .live-preview-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 1rem;
  max-width: min(1480px, 100%);
  margin: 0 auto 1.1rem;
}

#live-challenges .live-preview-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
  box-shadow: 0 22px 44px rgba(24, 44, 84, 0.12);
  padding: 1.35rem;
}

#live-challenges .live-preview-card--story {
  background:
    radial-gradient(circle at top right, rgba(90, 200, 250, 0.18), transparent 28%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.94));
}

#live-challenges .live-preview-card--sponsor {
  background:
    radial-gradient(circle at top right, rgba(255, 192, 84, 0.26), transparent 26%),
    linear-gradient(160deg, rgba(18, 30, 58, 0.96), rgba(24, 46, 88, 0.92));
  color: #f8fbff;
}

#live-challenges .live-preview-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(18, 30, 58, 0.07);
  color: #1b467c;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#live-challenges .live-preview-card--sponsor .live-preview-kicker {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

#live-challenges .live-preview-signal {
  margin-top: 0.8rem;
  color: #ffd66a;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#live-challenges .live-preview-card h3 {
  margin: 0.9rem 0 0.65rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2vw, 2.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

#live-challenges .live-preview-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text-soft);
  max-width: 58ch;
}

#live-challenges .live-preview-card--sponsor .live-preview-lead {
  color: rgba(248, 251, 255, 0.84);
}

#live-challenges .live-preview-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}

#live-challenges .live-preview-step {
  min-width: 0;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(27, 70, 124, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#live-challenges .live-preview-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(74, 162, 255, 0.18), rgba(74, 162, 255, 0.04));
  color: #1b5ca4;
  font-size: 0.78rem;
  font-weight: 800;
}

#live-challenges .live-preview-step h4 {
  margin: 0.8rem 0 0.45rem;
  font-size: 1rem;
  color: #15335f;
}

#live-challenges .live-preview-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #4d6481;
}

#live-challenges .live-preview-benefits {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

#live-challenges .live-preview-benefit {
  padding: 0.88rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
  line-height: 1.5;
}

#live-challenges .live-preview-examples {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#live-challenges .live-preview-examples__title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

#live-challenges .live-preview-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

#live-challenges .live-preview-example {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.9);
}

#live-challenges .live-preview-cta {
  margin-top: 1.15rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 214, 106, 0.16), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 214, 106, 0.22);
}

#live-challenges .live-preview-cta__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.66rem;
  border-radius: 999px;
  background: rgba(255, 214, 106, 0.18);
  color: #ffe18f;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#live-challenges .live-preview-cta p {
  margin: 0.7rem 0 0;
  color: rgba(248, 251, 255, 0.82);
  line-height: 1.65;
}

#live-challenges .live-preview-cta .cta-btn {
  margin-top: 0.95rem;
  width: 100%;
  justify-content: center;
}

#live-challenges .challenges-view {
  max-width: min(1680px, 100%);
  margin: 0 auto 1.1rem;
  gap: 0.85rem;
}

#live-challenges .challenge-focus-row {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, auto) minmax(280px, 0.95fr);
  gap: 0.75rem 1rem;
  min-width: 0;
  align-items: stretch;
}

#live-challenges .challenge-focus-row > .challenges-posts-section,
#live-challenges .challenge-focus-row > .challenge-map-column,
#live-challenges .challenge-focus-row > .challenge-detail-panel {
  min-width: 0;
}

#live-challenges .challenge-maps-gallery,
#live-challenges .challenge-detail-panel,
#live-challenges .challenges-posts-section,
#live-challenges .challenge-map-column {
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, #fff 80%);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.96), rgba(244, 250, 255, 0.9));
  box-shadow: 0 18px 36px rgba(24, 44, 84, 0.12);
}

#live-challenges .challenges-posts-section {
  min-height: 0;
  max-height: min(78vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.85rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

#live-challenges .challenge-map-column {
  min-height: 0;
  max-height: min(78vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.65rem 0.55rem 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  -webkit-overflow-scrolling: touch;
}

#live-challenges .challenge-map-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.35rem;
}

#live-challenges .challenge-maps-gallery h3 {
  text-align: center;
  padding: 0.65rem 1rem 0.5rem;
  font-size: 0.98rem;
  border-bottom-width: 1px;
}

#live-challenges .challenge-maps-gallery h3,
#live-challenges .challenges-posts-section h3 {
  color: #14325f;
  letter-spacing: -0.01em;
  line-height: 1.28;
  overflow-wrap: break-word;
}

#live-challenges .challenges-posts-section h3 {
  font-size: 1rem;
  margin: 0 0 0.35rem;
}

/* Challenge-Thumbnails: 3:4, füllen die Grid-Zelle (keine Mini-Karten in leerem Fr-Raster) */
#live-challenges .challenges-maps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.6rem;
  padding: 0.75rem 1rem 1rem;
  max-height: min(300px, 36vh);
  overflow-y: auto;
  align-items: start;
  justify-items: stretch;
  -webkit-overflow-scrolling: touch;
}

#live-challenges .challenge-map-card {
  border-radius: 0;
  border-width: 1px;
  border-color: color-mix(in srgb, var(--primary) 16%, transparent);
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 156px;
  margin-inline: auto;
  min-height: 0;
}

#live-challenges .challenge-map-image {
  object-fit: cover;
  border-radius: 0;
}

#live-challenges .challenge-map-overlay {
  padding: 0.45rem 0.5rem 0.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.62));
  border-radius: 0;
}

#live-challenges .challenge-map-title {
  font-size: 0.68rem;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#live-challenges .challenge-map-badge {
  font-size: 0.55rem;
  padding: 0.15rem 0.4rem;
  margin-bottom: 0.2rem;
}

#live-challenges .challenge-map-card:hover,
#live-challenges .challenge-map-card.active {
  border-color: color-mix(in srgb, var(--primary) 52%, #fff 48%);
  transform: translateY(-3px);
}

/*
 * Öffentliche Routenkarte ist 9×32 (Hochformat). Eigene Mittelspalte: gross, hochkant.
 * Box-Breite = (max. Höhe)×9/32 → Bild füllt ohne seitliche Letterbox; Marker-JS nutzt weiterhin contain.
 */
#live-challenges .challenge-map-column .challenge-map-view {
  --live-map-cap: min(720px, 82vh);
}

#live-challenges .challenge-map-view {
  position: relative;
  --live-map-cap: min(640px, 74vh);
  aspect-ratio: 9 / 32;
  width: min(100%, calc(var(--live-map-cap) * 9 / 32));
  max-width: 100%;
  max-height: var(--live-map-cap);
  height: auto;
  margin: 0;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #152238 0%, #0b1220 55%, #070b12 100%);
}

#live-challenges .challenge-map-view-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

#live-challenges .challenge-detail-panel {
  max-height: min(78vh, 860px);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#live-challenges .challenge-detail-header {
  padding: 0.75rem 1rem;
}

#live-challenges .challenge-detail .detail-badge {
  font-size: 0.65rem;
  padding: 0.28rem 0.55rem;
  margin-bottom: 0.45rem;
}

#live-challenges .challenge-detail .detail-title {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

#live-challenges .challenge-detail .detail-description {
  font-size: 0.8rem;
  line-height: 1.45;
  margin: 0;
}

#live-challenges .challenge-detail-stats {
  padding: 0.65rem 0.85rem;
  gap: 0.45rem;
}

#live-challenges .detail-stat strong {
  font-size: 1.05rem;
  margin-bottom: 0.12rem;
}

#live-challenges .detail-stat span {
  font-size: 0.65rem;
}

#live-challenges .challenge-turtle-list {
  margin-top: 0.35rem;
  padding: 0.35rem 0.85rem 0.65rem;
}

#live-challenges .challenge-turtle-list h4 {
  font-size: 0.78rem;
  margin: 0 0 0.35rem;
}

#live-challenges .turtle-list {
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 0.35rem;
}

#live-challenges .turtle-card {
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
}

#live-challenges .turtle-name {
  font-size: 0.72rem;
}

#live-challenges .turtle-meta {
  font-size: 0.68rem;
}

#live-challenges .posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 0.45rem;
  align-items: start;
  max-height: none; /* global .posts-grid hat bei ≤480px max-height — Live braucht volle Scroll-Höhe */
}

#live-challenges .post-item {
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, var(--primary) 14%, #fff 86%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.90));
  box-shadow: 0 6px 14px rgba(24, 44, 84, 0.07);
  position: relative;
  overflow: hidden;
}

#live-challenges .post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(24, 44, 84, 0.14);
}

/* Highlight for the first visible post */
#live-challenges .post-item--hero {
  border-color: color-mix(in srgb, var(--primary) 65%, #fff 35%);
  box-shadow:
    0 18px 40px rgba(24, 44, 84, 0.16),
    0 0 0 3px rgba(123, 195, 255, 0.28);
}

/* Kompakte Kacheln: 3:4, Höhe folgt der Spaltenbreite — mehrere nebeneinander */
#live-challenges .post-image-wrapper {
  width: 100%;
  aspect-ratio: 3 / 4;
  min-height: 0;
  max-height: none;
  background: color-mix(in srgb, var(--primary) 6%, #e8edf5 94%);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

#live-challenges .post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

#live-challenges .post-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.0) 35%,
    rgba(11, 18, 32, 0.12) 70%,
    rgba(11, 18, 32, 0.22) 100%
  );
  pointer-events: none;
}

#live-challenges .post-content {
  padding: 0.32rem 0.4rem 0.38rem;
}

#live-challenges .post-header {
  margin-bottom: 0.22rem;
  gap: 0.28rem;
}

#live-challenges .post-avatar {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.5rem;
}

#live-challenges .post-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-sizing: border-box;
}

#live-challenges .post-author {
  font-size: 0.62rem;
  line-height: 1.2;
}

#live-challenges .post-date {
  font-size: 0.55rem;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

#live-challenges .post-text {
  font-size: 0.66rem;
  line-height: 1.36;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#live-challenges .post-stats {
  margin-top: 0.28rem;
  gap: 0.22rem;
  font-size: 0.55rem;
  align-items: center;
}

#live-challenges .post-stat {
  padding: 0.08rem 0.28rem;
  background: rgba(255, 255, 255, 0.70);
  border-color: color-mix(in srgb, var(--primary) 28%, #fff 72%);
}

#live-challenges .challenge-map-hint {
  margin: 0;
  padding: 0 0.35rem;
  max-width: 12rem;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #4a6088;
  text-align: center;
}

#live-challenges .challenge-posts-toolbar {
  margin: 0 0 0.5rem;
}

#live-challenges .challenge-posts-toolbar-hint {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  color: #5a6f94;
}

/* Viele Summits: eine Zeile, horizontal scrollen statt riesigem Chip-Block */
#live-challenges .summit-filter-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.32rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.3rem;
  margin-bottom: 0.05rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

#live-challenges .summit-filter-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, #fff 72%);
  background: rgba(255, 255, 255, 0.88);
  color: #14325f;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

#live-challenges .summit-filter-chip:hover {
  border-color: color-mix(in srgb, var(--primary) 48%, #fff 52%);
  background: #fff;
}

#live-challenges .summit-filter-chip.is-active {
  background: linear-gradient(135deg, rgba(123, 195, 255, 0.35), rgba(158, 247, 211, 0.4));
  border-color: color-mix(in srgb, var(--primary) 55%, #fff 45%);
}

#live-challenges .challenge-posts-empty-filter {
  text-align: center;
  padding: 1.75rem 1rem;
  color: var(--text-soft);
  font-size: 0.88rem;
}

#live-challenges .challenge-posts-empty-filter-hint {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  opacity: 0.9;
}

#live-challenges .post-summit-tag {
  display: inline-block;
  margin-left: 0.15rem;
  padding: 0.06rem 0.28rem;
  border-radius: 4px;
  font-size: 0.52rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--primary) 18%, #fff 82%);
  color: #14325f;
}

#live-challenges .post-summit-tag--chat {
  background: color-mix(in srgb, var(--accent) 14%, #fff 86%);
}

#live-challenges .challenge-map-view .summit-marker {
  z-index: 2;
  width: 10px;
  height: 10px;
  border-width: 2px;
}

#live-challenges .challenge-map-view .member-turtle {
  z-index: 3;
}

#live-challenges .challenge-map-view .challenge-map-view-image {
  position: relative;
  z-index: 0;
}

@media (max-width: 1100px) {
  #live-challenges .live-preview-shell {
    grid-template-columns: 1fr;
  }

  #live-challenges .live-preview-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #live-challenges .live-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #live-challenges .public-challenge-list,
  #live-challenges .map-demo,
  #live-challenges .app-get {
    grid-column: auto;
  }

  #live-challenges .app-get .cta-btn {
    min-height: 3.1rem;
  }
}

/* Schmale Viewports / Tablet: Posts → Karte → Infos untereinander (3-Spalten-Layout gestapelt) */
@media (max-width: 960px) {
  #live-challenges .live-preview-steps {
    grid-template-columns: 1fr;
  }

  #live-challenges .challenge-focus-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.7rem;
    align-content: start;
  }

  #live-challenges .challenges-posts-section {
    order: 1;
    max-height: min(44vh, 480px);
    padding: 0.72rem 0.88rem 0.88rem;
  }

  #live-challenges .challenge-map-column {
    order: 2;
    max-height: min(64vh, 620px);
    min-height: 0;
    padding: 0.5rem 0.85rem 0.72rem;
    justify-content: center;
  }

  #live-challenges .challenge-detail-panel {
    order: 3;
    max-height: min(58vh, 680px);
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  }

  /* Karte mittig: etwas höher als zuvor, damit Route auf dem Phone lesbar bleibt */
  #live-challenges .challenge-map-column .challenge-map-view,
  #live-challenges .challenge-map-view {
    --live-map-cap: min(580px, 64vh);
    width: min(100%, calc(var(--live-map-cap) * 9 / 32));
    max-height: var(--live-map-cap);
  }

  #live-challenges .challenge-map-hint {
    max-width: min(20rem, 92vw);
    font-size: 0.66rem;
  }

  #live-challenges .challenges-view {
    gap: 0.7rem;
  }
}

@media (max-width: 700px) {
  #live-challenges.live-challenges {
    padding: 2.4rem max(1rem, env(safe-area-inset-left, 0px)) 3rem max(1rem, env(safe-area-inset-right, 0px));
  }

  #live-challenges .live-preview-shell {
    gap: 0.8rem;
  }

  #live-challenges .live-preview-card {
    padding: 1rem;
    border-radius: 22px;
  }

  #live-challenges .live-preview-card h3 {
    font-size: 1.35rem;
  }

  #live-challenges .live-preview-lead {
    font-size: 0.94rem;
  }

  #live-challenges .live-overview {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  #live-challenges .public-challenge-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #live-challenges .challenges-maps-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    max-height: min(260px, 42vh);
    padding: 0.55rem 0.7rem 0.75rem;
    gap: 0.5rem;
  }

  #live-challenges .challenge-map-card {
    width: 100%;
    max-width: 132px;
    aspect-ratio: 3 / 4;
  }

  #live-challenges .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
    gap: 0.4rem;
  }

  /* Live-Fokuszeile: kompaktere Karten, gleiche Reihenfolge wie ≤960px */
  #live-challenges .challenge-focus-row {
    gap: 0.55rem;
  }

  #live-challenges .challenges-posts-section {
    max-height: min(40vh, 420px);
    padding: 0.62rem 0.72rem 0.78rem;
    border-radius: 18px;
  }

  #live-challenges .challenge-map-column {
    max-height: min(58vh, 540px);
    padding: 0.42rem 0.65rem 0.62rem;
    border-radius: 18px;
  }

  #live-challenges .challenge-detail-panel {
    max-height: min(54vh, 580px);
    border-radius: 18px;
  }

  #live-challenges .challenge-map-column .challenge-map-view,
  #live-challenges .challenge-map-view {
    --live-map-cap: min(500px, 58vh);
  }

  #live-challenges .challenges-posts-section h3 {
    font-size: 0.93rem;
    margin-bottom: 0.3rem;
  }

  #live-challenges .challenge-detail .detail-title {
    font-size: 1rem;
  }

  #live-challenges .challenge-detail-stats {
    padding: 0.55rem 0.72rem;
    gap: 0.38rem;
  }
}

/* Kleine Phones: Live-Challenge-Stack weiter verdichten */
@media (max-width: 480px) {
  #live-challenges.live-challenges {
    padding: 2rem max(0.75rem, env(safe-area-inset-left, 0px)) 2.5rem
      max(0.75rem, env(safe-area-inset-right, 0px));
  }

  #live-challenges .section-header h2 {
    font-size: clamp(1.2rem, 6.2vw, 1.65rem);
  }

  #live-challenges .section-header p {
    font-size: 0.86rem;
    line-height: 1.5;
  }

  #live-challenges .challenge-focus-row {
    gap: 0.45rem;
  }

  #live-challenges .challenges-posts-section {
    max-height: min(38vh, 380px);
    padding: 0.55rem 0.62rem 0.7rem;
  }

  #live-challenges .challenge-map-column {
    max-height: min(52vh, 460px);
    padding: 0.38rem 0.55rem 0.55rem;
  }

  #live-challenges .challenge-detail-panel {
    max-height: min(50vh, 520px);
  }

  #live-challenges .challenge-map-column .challenge-map-view,
  #live-challenges .challenge-map-view {
    --live-map-cap: min(420px, 52vh);
  }

  #live-challenges .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 0.35rem;
  }

  #live-challenges .challenge-detail-header {
    padding: 0.62rem 0.72rem;
  }

  #live-challenges .challenge-detail .detail-title {
    font-size: 0.94rem;
  }

  #live-challenges .challenge-detail .detail-description {
    font-size: 0.74rem;
    line-height: 1.42;
  }

  #live-challenges .challenge-detail-stats {
    padding: 0.48rem 0.62rem;
  }

  #live-challenges .detail-stat strong {
    font-size: 0.95rem;
  }

  #live-challenges .detail-stat span {
    font-size: 0.6rem;
  }

  #live-challenges .challenge-turtle-list {
    padding: 0.3rem 0.62rem 0.55rem;
  }

  #live-challenges .challenge-posts-toolbar-hint {
    font-size: 0.72rem;
  }

  #live-challenges .summit-filter-chips {
    gap: 0.28rem;
  }
}

/* Readability fix for subtitle/body copy */
:root {
  --text-soft: #465d80;
}

.hero__subtitle,
.section-header p,
.feature-card p,
.testimonial-text,
.post-text,
.map-demo p,
.social-text,
.live-stat-card__label {
  color: #465d80 !important;
}

/* Ensure top-left brand is always visible */
.site-header .brand {
  color: #12294d !important;
}

.site-header .brand__text {
  color: #12294d !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* Improve highlight readability in light sections */
#live-stats .section-header h2,
#features .section-header h2,
#live-challenges .section-header h2,
#news .section-header h2 {
  color: #1a3158;
}

#live-stats .section-header .highlight,
#features .section-header .highlight,
#live-challenges .section-header .highlight,
#news .section-header .highlight {
  background: linear-gradient(135deg, #7cc4ff 0%, #9ff4d1 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  text-shadow: none;
}

/* ============================================
   LANDING V2 OVERRIDES
   ============================================ */

main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.site-header__inner {
  max-width: 1320px;
}

.site-nav a {
  font-weight: 700;
}

.hero {
  margin-top: 1.2rem;
  padding: 3rem 1.8rem 2.6rem;
  border-radius: 30px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, #fff 70%);
  box-shadow: 0 22px 50px rgba(30, 53, 95, 0.12);
  background:
    radial-gradient(circle at 80% 12%, rgba(74, 162, 255, 0.2), transparent 32%),
    radial-gradient(circle at 16% 24%, rgba(155, 123, 255, 0.14), transparent 28%),
    linear-gradient(140deg, #ffffff 0%, #f8fbff 48%, #f4fbf8 100%);
  gap: 1.6rem 2.2rem;
}

.hero__title {
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 0.98;
}

.hero__subtitle {
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero__quickstats {
  gap: 0.9rem;
}

.hero-stat {
  min-width: 120px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, #fff 80%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 255, 0.95));
}

.hero__actions {
  gap: 0.8rem;
}

.hero__actions .cta-btn--large,
.app-get .cta-btn--large,
.final-cta .cta-btn--large {
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 38%, transparent);
}

.hero-float-card {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, #fff 78%);
  box-shadow: 0 12px 24px rgba(24, 52, 97, 0.15);
}

.features,
.app-section,
.live-challenges,
.testimonials,
.news-page,
.final-cta {
  margin-top: 2.2rem;
  border-radius: 28px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
  box-shadow: 0 18px 36px rgba(24, 44, 84, 0.08);
}

.features,
.app-section,
.live-challenges,
.testimonials,
.news-page {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(246, 250, 255, 0.92));
  padding: 3rem 1.5rem 3.2rem;
}

.final-cta {
  padding: 3.5rem 1.5rem;
  overflow: hidden;
}

.section-header h2 {
  font-size: clamp(2rem, 3.7vw, 3.1rem);
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1rem;
}

.features-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  padding: 1.4rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, #fff 84%);
  box-shadow: 0 10px 20px rgba(26, 44, 82, 0.08);
}

.feature-card h3 {
  font-size: 1.05rem;
}

.feature-card p {
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.feature-icon {
  font-size: 2rem;
}

.carousel-wrapper {
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, #fff 76%);
}

.carousel-item {
  padding: 1.5rem;
}

.carousel-item img {
  max-width: 220px;
}

.live-overview {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(245, 251, 255, 0.95));
}

.challenge-maps-gallery,
.challenge-detail-panel,
.challenges-posts-section {
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, #fff 82%);
}

.challenge-map-card {
  border-radius: 14px;
}

.testimonials-grid {
  gap: 1rem;
}

.testimonial-card {
  border-radius: 18px;
  padding: 1.4rem;
}

.stats-strip {
  border-radius: 18px;
  padding: 1.5rem;
}

.final-cta h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.site-footer {
  margin-top: 3rem;
  border-radius: 24px 24px 0 0;
}

@media (max-width: 1180px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__title,
  .hero__subtitle {
    max-width: 100%;
  }

  .hero__visual {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
    margin-top: 0.4rem;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  main {
    padding-top: 0;
    padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom, 0px)));
    padding-left: max(0.7rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.7rem, env(safe-area-inset-right, 0px));
  }

  .hero,
  .live-stats,
  .features,
  .app-section,
  .live-challenges,
  .testimonials,
  .news-page,
  .final-cta {
    border-radius: 22px;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .live-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero__quickstats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .hero-stat {
    min-width: 0;
  }
}

/* ============================================
   MOBILE / HANDY — Safe Area, Touch, Nav
   ============================================ */

body {
  -webkit-tap-highlight-color: rgba(74, 162, 255, 0.2);
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(19, 35, 63, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-backdrop.is-visible {
  display: block;
}

body.mobile-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.site-header {
  padding-left: max(0px, env(safe-area-inset-left, 0px));
  padding-right: max(0px, env(safe-area-inset-right, 0px));
  padding-top: max(0px, env(safe-area-inset-top, 0px));
}

.site-footer {
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
  padding-bottom: max(2rem, calc(2rem + env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 768px) {
  .site-header__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto;
    align-items: center;
    column-gap: 0.5rem;
    row-gap: 0;
    padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.65rem;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    align-self: center;
  }

  .site-header .brand__text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-nav-toggle {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 44px;
    min-height: 44px;
    margin-right: 0;
    padding: 0.5rem;
    box-sizing: border-box;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    gap: 5px;
  }

  .mobile-nav-toggle span {
    width: 1.35rem;
  }

  .site-header__actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex-shrink: 0;
  }

  .site-header .lang-switch {
    flex-shrink: 0;
  }

  .site-header .cta-btn--small {
    white-space: nowrap;
    padding: 0.55rem 0.85rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
  }

  .lang-switch__btn {
    min-height: 36px;
    min-width: 40px;
  }

  /* Geschlossen: kein Platz in der Leiste, kein „unsichtbares“ zweites Grid-Zeilen-Raster */
  .site-nav:not(.mobile-open) {
    display: none !important;
  }

  .site-nav.mobile-open {
    display: flex !important;
    position: fixed;
    left: max(0px, env(safe-area-inset-left, 0px));
    right: max(0px, env(safe-area-inset-right, 0px));
    top: 0;
    bottom: 0;
    width: auto;
    order: unset;
    margin-top: 0;
    padding: calc(4.25rem + env(safe-area-inset-top, 0px)) 0
      max(1.25rem, env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    border-radius: 0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    z-index: 95;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .site-nav.mobile-open a {
    padding: 1.05rem 1.35rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    font-size: 1.15rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    border-top: 1px solid var(--line);
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }

  .site-nav.mobile-open a::after {
    display: none;
  }

  /* backdrop-filter erzeugt einen Containing Block: ohne das wäre .site-nav.mobile-open
     (position:fixed) nur so groß wie der Header statt fullscreen. */
  .site-header {
    z-index: 200;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Orbit-Turtles nicht am Hero-Rand abschneiden */
  .hero.landing-page {
    overflow: visible;
  }

  .hero__title {
    text-wrap: balance;
    word-break: break-word;
  }

  .hero__subtitle {
    text-wrap: pretty;
  }

  #app .app-glass-intro__title {
    font-size: clamp(1.45rem, 6.2vw, 2.05rem);
  }

  #app .app-glass-copy h3 {
    font-size: clamp(1.12rem, 4.5vw, 1.32rem);
  }

  #app .app-glass-device img,
  #app .app-glass-device__video {
    max-width: min(240px, 85vw);
  }

  .feature-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .challenge-maps-gallery h3,
  .challenges-posts-section h3 {
    padding: 1.1rem 1rem;
    font-size: 1.02rem;
  }

  .challenges-maps-grid {
    padding: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Schmale Leiste: zweite Zeile für Sprache + Download — keine Überlappung mit Marke/Menü */
@media (max-width: 560px) {
  .site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    row-gap: 0.55rem;
    column-gap: 0.45rem;
    align-items: center;
  }

  .site-header .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .mobile-nav-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .site-header__actions {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding-top: 0.1rem;
    border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  }

  .site-header .cta-btn--small {
    flex: 0 1 auto;
  }
}

@media (max-width: 380px) {
  .site-header .cta-btn--small {
    font-size: 0.7rem;
    padding: 0.48rem 0.62rem;
  }

  .brand__text {
    font-size: 0.95rem;
  }
}

/* ============================================
   HANDY-VIEW — nur max-width 768 (Desktop unverändert)
   ============================================ */

@media (max-width: 768px) {
  /* Keep mobile hero inside normal page flow */
  .hero.landing-page {
    width: auto;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding-left: clamp(0.85rem, 4vw, 1.1rem);
    padding-right: clamp(0.85rem, 4vw, 1.1rem);
  }

  .hero {
    gap: 1.2rem;
    padding-top: clamp(1.75rem, 5.2vw, 2.5rem);
    padding-bottom: clamp(2rem, 6vw, 3rem);
    isolation: isolate;
  }

  .hero__title-fullwidth {
    margin-bottom: 0.35rem;
    padding-right: 0.15rem;
  }

  .hero__title {
    font-size: clamp(1.65rem, 6.8vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
    -webkit-hyphens: auto;
  }

  .hero__eyebrow {
    font-size: 0.76rem;
    margin-bottom: 0.65rem;
    max-width: 100%;
  }

  .hero__subtitle {
    font-size: clamp(0.94rem, 3.5vw, 1.02rem);
    line-height: 1.65;
    margin-bottom: 0;
    max-width: 100%;
  }

  .hero__content {
    gap: 0.45rem;
    max-width: 100%;
  }

  .hero .badge {
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.35;
  }

  .hero__visual {
    transform: none;
    margin-top: 0.4rem;
    gap: 0.5rem;
    min-height: auto;
    padding-bottom: 0.4rem;
    overflow: visible;
  }

  /* Landing: vertikaler Platz — finale Werte in ≤820px / dedizierter Landing-Mobile-Regel */
  .hero.landing-page .hero__visual {
    padding-bottom: 0.4rem;
  }

  /* Landing: Leuchten näher an Web-Desktop */
  .hero.landing-page .hero__visual::before {
    width: min(380px, 92vw);
    height: min(380px, 92vw);
    filter: blur(18px);
    opacity: 0.65;
  }

  .hero__visual::before {
    width: min(210px, 58vw);
    height: min(210px, 58vw);
    filter: blur(14px);
    opacity: 0.5;
  }

  .hero.landing-page .hero__visual .hero-glow {
    width: min(340px, 88vw);
    height: min(340px, 88vw);
    filter: blur(48px);
  }

  .hero__visual .hero-glow {
    width: min(190px, 54vw);
    height: min(190px, 54vw);
    filter: blur(32px);
  }

  .section-header {
    margin-bottom: clamp(1.75rem, 6vw, 2.5rem);
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 6vw, 2.05rem);
    line-height: 1.15;
    margin-bottom: 0.55rem;
  }

  .section-header p {
    font-size: clamp(0.92rem, 3.4vw, 1.02rem);
    line-height: 1.55;
    padding-inline: 0.15rem;
  }

  .feature-card {
    padding: 1.2rem 1.1rem;
  }

  .feature-card h3 {
    font-size: 1.02rem;
  }

  .feature-card p {
    font-size: 0.88rem;
    line-height: 1.58;
  }

  .live-stat-card {
    padding: 1rem 0.85rem;
  }

  .live-stat-card strong {
    font-size: clamp(1.2rem, 5vw, 1.55rem);
  }

  #app.app-section {
    padding-top: clamp(2.2rem, 7vw, 3.2rem);
    padding-bottom: clamp(2.5rem, 8vw, 4rem);
    padding-inline: clamp(0.85rem, 3.5vw, 1.15rem);
  }

  #app .app-glass-sheet {
    padding: 1rem 0.95rem;
  }

  #app .app-glass-copy p,
  #app .app-glass-bullets li {
    font-size: 0.92rem;
    line-height: 1.58;
  }

  #app .app-glass-device img,
  #app .app-glass-device__video {
    max-width: min(260px, 82vw);
  }

  #app .app-glass-footnote {
    font-size: 0.84rem;
    padding: 0.85rem 1rem;
  }

  .live-challenges {
    padding-top: clamp(2.2rem, 6vw, 2.8rem);
    padding-bottom: clamp(2.2rem, 6vw, 2.8rem);
  }

  .testimonial-card {
    padding: 1.25rem 1.1rem;
  }

  .testimonial-text {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .stats-strip {
    padding: 1.25rem 1rem;
    gap: 0.85rem;
  }

  .final-cta {
    padding-top: clamp(2.5rem, 8vw, 3.25rem);
    padding-bottom: clamp(2.5rem, 8vw, 3.25rem);
  }

  .final-cta p {
    font-size: clamp(0.95rem, 3.5vw, 1.06rem);
    line-height: 1.55;
  }

  .cta-inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
    text-align: center;
  }

  .cta-content {
    padding-inline: 0.35rem;
    text-align: center;
    margin-inline: auto;
    max-width: 32rem;
  }

  .final-cta {
    text-align: center;
  }

  .cta-figure {
    order: -1;
    max-width: min(400px, 92vw);
    margin-inline: auto;
  }

  .final-cta h2 {
    line-height: 1.18;
    margin-bottom: clamp(0.65rem, 3vw, 1rem);
    padding-inline: 0.35rem;
    word-break: break-word;
  }

  .final-cta p {
    margin-bottom: clamp(1.1rem, 4.5vw, 1.6rem);
    padding-inline: 0.5rem;
    max-width: none;
  }

  .cta-status,
  .cta-steps,
  .cta-footnote {
    max-width: none;
  }

  .cta-step {
    text-align: left;
  }

  .cta-actions {
    justify-content: center;
  }

  .final-cta .cta-btn--large {
    width: 100%;
    max-width: 22rem;
    margin-inline: auto;
    box-sizing: border-box;
  }

  .section-header h2 {
    line-height: 1.2;
    padding-inline: 0.25rem;
    word-break: break-word;
  }

  .feature-card h3 {
    line-height: 1.25;
    word-break: break-word;
  }
}

/* Landing ≤768px: Video wie Desktop, kompakteres Phone, Orbit über Hintergrund unter dem Rahmen */
@media (max-width: 768px) {
  .hero.landing-page {
    isolation: auto;
  }

  .hero.landing-page .hero__visual .turtle-group {
    z-index: 6;
    pointer-events: none;
  }
}

@media (max-width: 400px) {
  /* kept intentionally empty: phone mockup removed from landing hero */
}

/* Schmale Viewports: Orbit skalieren — body overflow-x:hidden schneidet sonst 236px-Radius ab */
@media (max-width: 680px) {
  .hero.landing-page .hero__visual .turtle-group {
    transform: scale(0.82);
    transform-origin: 50% 56%;
  }
}

@media (max-width: 480px) {
  .hero.landing-page .hero__visual .turtle-group {
    transform: scale(0.7);
    transform-origin: 50% 55%;
  }
}

@media (max-width: 380px) {
  .hero.landing-page .hero__visual .turtle-group {
    transform: scale(0.62);
    transform-origin: 50% 54%;
  }
}

/* Schmale Viewports: Landing = gleicher Orbit/Video wie Desktop (236px-Radius, gleiche Keyframes) */
@media (max-width: 820px) {
  .hero.landing-page {
    overflow: visible;
    background:
      radial-gradient(circle at 14% 10%, rgba(255, 255, 255, 0.86), transparent 36%),
      radial-gradient(circle at 82% 12%, rgba(209, 236, 255, 0.55), transparent 40%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.95) 58%, rgba(239, 247, 255, 0.92) 100%);
  }

  .hero.landing-page::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: clamp(170px, 38vw, 250px);
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.22) 72%, rgba(255, 255, 255, 0) 100%);
  }

  .hero.landing-page .hero__title,
  .hero.landing-page .hero__eyebrow,
  .hero.landing-page .hero__subtitle {
    position: relative;
    z-index: 2;
  }

  .hero.landing-page .hero__visual {
    min-height: auto;
    padding-bottom: 0.3rem;
    isolation: auto;
    overflow: visible;
  }

  .hero__visual {
    min-height: auto;
    padding-bottom: 0.3rem;
    isolation: isolate;
    overflow: visible;
  }

  /* Hinten: Glow → Turtles → vorn: Phone */
  .hero__visual .hero-glow {
    z-index: 0;
    opacity: 0.35;
  }

  .hero__visual .turtle-group {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    z-index: 4;
    pointer-events: none;
  }

  .hero__visual .turtle-group--left,
  .hero__visual .turtle-group--right {
    position: absolute;
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    transform: none;
  }

  /* Landing: identischer Pivot wie globales .turtle-orbit-arm (translateX 236px in Keyframes) */
  .hero.landing-page .hero__visual .turtle-group .turtle-orbit-arm {
    top: calc(50% + 178px + 1cm);
    left: 50%;
    z-index: 3;
  }

  .hero:not(.landing-page) .hero__visual .turtle-group .turtle-orbit-arm {
    top: calc(50% + clamp(42px, 10.5vw, 72px) + 2cm);
    left: 50%;
    z-index: 3;
  }

  .hero.landing-page .hero__visual .turtle-group .turtle-orbit-arm .turtle-skin {
    width: 62px;
    height: 62px;
    border-width: 2px;
    pointer-events: auto;
  }

  .hero:not(.landing-page) .hero__visual .turtle-group .turtle-orbit-arm .turtle-skin {
    width: clamp(28px, 8.5vw, 34px);
    height: clamp(28px, 8.5vw, 34px);
    border-width: 1.5px;
    pointer-events: auto;
  }

  /* Landing: keine -m-Overrides — Basis-Animationen (236px) wie Web */
  .hero.landing-page .hero__visual .turtle-skin::after {
    font-size: 0.62rem;
    padding: 0.14rem 0.42rem;
    z-index: 1;
  }

  /* Kleiner Orbit nur ausserhalb Landing (dort: Desktop-Keyframes oben) */
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--n160 .turtle-skin {
    animation:
      turtle-orbit-skin-n160-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--n120 .turtle-skin {
    animation:
      turtle-orbit-skin-n120-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--n80 .turtle-skin {
    animation:
      turtle-orbit-skin-n80-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--n40 .turtle-skin {
    animation:
      turtle-orbit-skin-n40-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--z0 .turtle-skin {
    animation:
      turtle-orbit-skin-z0-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--p40 .turtle-skin {
    animation:
      turtle-orbit-skin-p40-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--p80 .turtle-skin {
    animation:
      turtle-orbit-skin-p80-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--p120 .turtle-skin {
    animation:
      turtle-orbit-skin-p120-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }
  .hero:not(.landing-page) .hero__visual .turtle-orbit-arm--p160 .turtle-skin {
    animation:
      turtle-orbit-skin-p160-m 22s linear infinite,
      turtle-breathe 4.8s ease-in-out infinite var(--delay, 0s);
  }

  .hero:not(.landing-page) .hero__visual .turtle-skin::after {
    font-size: 0.56rem;
    padding: 0.12rem 0.35rem;
    z-index: 1;
  }

  .hero-landing-video {
    --hero-phone-frame-pad: 0.45rem;
    width: 100%;
    max-width: min(260px, 82vw);
    aspect-ratio: 9 / 19.5;
    padding: var(--hero-phone-frame-pad);
    display: block;
    position: relative;
    z-index: 8;
    border-radius: 2.35rem;
    border: 1px solid var(--app-glass-edge);
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.65),
      0 24px 50px rgba(20, 45, 90, 0.15);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
  }

  .hero-landing-loop-video {
    object-fit: cover !important;
    object-position: center top;
  }

  .hero__title {
    font-size: clamp(1.45rem, 7.2vw, 2rem);
    line-height: 1.08;
    margin-bottom: 0.3rem;
  }

  .hero__eyebrow {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .hero__title {
    font-size: clamp(1.35rem, 8vw, 1.75rem);
    line-height: 1.06;
  }

  .hero-landing-video {
    --hero-phone-frame-pad: 0.45rem;
    max-width: min(260px, 82vw);
    border-radius: 2.35rem;
  }
}

/* Final mobile landing lock: keep video + orbit skins visible */
@media (max-width: 820px) {
  .hero.landing-page .hero__visual {
    position: relative;
    overflow: visible !important;
  }

  .hero.landing-page .hero-landing-video {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 8;
  }

  .hero.landing-page .hero__visual .turtle-group,
  .hero.landing-page .hero__visual .turtle-group--left,
  .hero.landing-page .hero__visual .turtle-group--right {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 4 !important;
    pointer-events: none;
  }

  .hero.landing-page .hero__visual .turtle-group .turtle-orbit-arm,
  .hero.landing-page .hero__visual .turtle-group .turtle-skin {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-float-card,
  .hero-glow,
  .spinner {
    animation: none !important;
  }

  .challenge-map-card:hover,
  .challenge-map-card.active {
    transform: none;
  }

  .hero__actions .cta-btn--large,
  .live-dot {
    animation: none !important;
  }
}

/* ============================================================
   VIRAL APP LANDING — DESIGN OVERHAUL
   ============================================================ */

/* --- Atmospheric body background ---- */
body {
  background:
    radial-gradient(ellipse at 8% 0%,  rgba(61, 159, 255, 0.2)  0%, transparent 48%),
    radial-gradient(ellipse at 92% 4%, rgba(163, 116, 255, 0.18) 0%, transparent 44%),
    radial-gradient(ellipse at 50% 100%, rgba(61, 232, 168, 0.14) 0%, transparent 50%),
    #f2f7ff;
}

/* --- Header: cleaner glass ---- */
.site-header {
  background: rgba(248, 252, 255, 0.86);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid rgba(61, 159, 255, 0.13);
}

/* ---- HERO ---- */
.hero {
  background:
    radial-gradient(ellipse at 5% 18%,  rgba(61, 159, 255, 0.36) 0%, transparent 44%),
    radial-gradient(ellipse at 96% 6%,  rgba(163, 116, 255, 0.3) 0%, transparent 42%),
    radial-gradient(ellipse at 55% 105%, rgba(61, 232, 168, 0.2) 0%, transparent 48%),
    linear-gradient(155deg, #eaf4ff 0%, #f5f0ff 55%, #ebfdf5 100%);
  border: 1.5px solid rgba(61, 159, 255, 0.18);
  border-radius: 32px;
  box-shadow:
    0 36px 90px rgba(18, 44, 100, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  padding: 4.5rem 2rem 5.5rem;
}

/* Shapes — bigger, more vivid */
.hero__shape { opacity: 0.72; filter: blur(80px); }
.hero__shape--1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #4aaeff, #7bcbff);
  top: -220px; left: -130px;
}
.hero__shape--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #3de8a8, #27c4ca);
  bottom: -180px; right: -110px;
  opacity: 0.62;
}
.hero__shape--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #a374ff, #7b5fd6);
  top: 38%; right: 7%;
  opacity: 0.48; filter: blur(70px);
}

/* Badge */
.badge {
  background: linear-gradient(135deg, rgba(61, 232, 168, 0.2), rgba(38, 187, 200, 0.14));
  border-color: rgba(61, 232, 168, 0.6);
  color: #12936e;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Eyebrow */
.hero__eyebrow {
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #1e7fd8;
}

/* Title — bigger + tighter */
.hero__title {
  font-size: clamp(2.7rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

/* Subtitle */
.hero__subtitle {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #3a4f72;
  max-width: 520px;
  margin-bottom: 2rem;
}

/* CTA button — glow pulse */
.hero__actions .cta-btn--large {
  padding: 1.05rem 2.4rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 16px;
  background: linear-gradient(135deg, #3d9fff, #2567e8 50%, #3de8a8) !important;
  box-shadow: 0 8px 28px rgba(61, 159, 255, 0.4);
  animation: ctaPulse 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}
.hero__actions .cta-btn--large:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 40px rgba(61, 159, 255, 0.55);
}
@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(61, 159, 255, 0.38); }
  50%       { box-shadow: 0 8px 42px rgba(61, 159, 255, 0.65); }
}

/* ---- LIVE STATS — dark premium ---- */
.live-stats {
  background: linear-gradient(145deg, #0c1a32 0%, #122038 55%, #0e1e38 100%);
  border: 1px solid rgba(61, 159, 255, 0.24);
  border-radius: 32px;
  box-shadow:
    0 28px 70px rgba(4, 10, 26, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.live-stats .section-header h2 { color: #e2eeff; }
.live-stats .section-header p,
.live-stats-sub { color: rgba(175, 210, 255, 0.72); }
.live-stat-card {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(61, 159, 255, 0.22);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}
.live-stat-card__label { color: rgba(165, 200, 255, 0.72); }

/* ---- FEATURES SECTION ---- */
.features {
  background:
    radial-gradient(ellipse at 3% 50%,  rgba(61, 159, 255, 0.09), transparent 46%),
    radial-gradient(ellipse at 97% 5%,  rgba(163, 116, 255, 0.08), transparent 42%),
    linear-gradient(165deg, #ffffff 0%, #f7f4ff 55%, #edfcf7 100%);
  border: 1.5px solid rgba(110, 140, 210, 0.14);
  border-radius: 32px;
  box-shadow: 0 16px 48px rgba(20, 40, 90, 0.08);
}

/* Section header — bigger */
.section-header h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.1;
}

/* Feature cards — always-visible accent + unique colors */
.features-grid > a.feature-card::before,
.features-grid > .feature-card::before { transform: scaleX(1); height: 3px; }

.features-grid > .feature-card:nth-child(1)::before { background: linear-gradient(90deg, #3d9fff, #3de8a8); }
.features-grid > .feature-card:nth-child(2)::before { background: linear-gradient(90deg, #a374ff, #3de8a8); }
.features-grid > .feature-card:nth-child(3)::before { background: linear-gradient(90deg, #3de8a8, #26bbc8); }
.features-grid > .feature-card:nth-child(4)::before { background: linear-gradient(90deg, #ff6d86, #a374ff); }
.features-grid > .feature-card:nth-child(5)::before { background: linear-gradient(90deg, #f4b740, #ff6d86); }
.features-grid > .feature-card:nth-child(6)::before { background: linear-gradient(90deg, #3d9fff, #a374ff); }
.features-grid > .feature-card:nth-child(7)::before { background: linear-gradient(90deg, #26bbc8, #3de8a8); }
.features-grid > .feature-card:nth-child(8)::before { background: linear-gradient(90deg, #ff6d86, #f4b740); }

.feature-card {
  border-radius: 20px;
  background: linear-gradient(170deg, #ffffff 0%, #f8f9ff 100%);
  border: 1px solid rgba(100, 140, 220, 0.13);
  box-shadow: 0 4px 18px rgba(20, 45, 100, 0.07), 0 1px 4px rgba(20, 45, 100, 0.05);
}
.feature-card:hover {
  box-shadow: 0 22px 44px rgba(61, 159, 255, 0.2), 0 6px 18px rgba(61, 159, 255, 0.1);
  border-color: rgba(61, 232, 168, 0.42);
  transform: translateY(-8px) rotate(-0.15deg);
}
.feature-icon { font-size: 2.4rem; }

/* ---- FINAL CTA — deep vibrant gradient ---- */
.final-cta {
  background: linear-gradient(130deg, #152f6e 0%, #1e4baa 30%, #2e7be8 65%, #22c49e 100%);
  border-radius: 32px;
  box-shadow:
    0 36px 90px rgba(8, 24, 72, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.deco-1 { width: 480px; height: 480px; background: radial-gradient(circle, white, transparent); filter: blur(50px); opacity: 0.1; }
.deco-2 { width: 320px; height: 320px; background: radial-gradient(circle, white, transparent); filter: blur(35px); opacity: 0.1; }

/* ---- APP GLASS SECTION ---- */
.app-section {
  position: relative;
}
.app-glass-intro__title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.app-glass-sheet {
  border-radius: 24px;
}

/* ---- HIGHLIGHT GRADIENT fixes ---- */
.highlight--primary {
  background: linear-gradient(135deg, #3d9fff, #3de8a8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight--secondary {
  background: linear-gradient(135deg, #3de8a8, #26bbc8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight--tertiary {
  background: linear-gradient(135deg, #26bbc8, #a374ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.highlight--accent {
  background: linear-gradient(135deg, #a374ff, #3d9fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LIVE DOT ---- */
.live-dot {
  background: #3de8a8;
  box-shadow: 0 0 0 0 rgba(61, 232, 168, 0.6);
}
@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(61, 232, 168, 0.65); }
  70%  { box-shadow: 0 0 0 9px rgba(61, 232, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 232, 168, 0); }
}

/* ---- HERO FEELING STRIP ---- */
.hero__feel-grid {
  width: min(100%, 640px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.6rem;
}

.hero__feel-card {
  position: relative;
  padding: 1rem 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(61, 159, 255, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.88));
  box-shadow:
    0 14px 30px rgba(28, 63, 132, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

.hero__feel-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3d9fff, #3de8a8 58%, #26bbc8);
}

.hero__feel-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  color: #17315e;
}

.hero__feel-card p {
  font-size: 0.83rem;
  line-height: 1.55;
  color: #5c6d88;
}

@media (max-width: 900px) {
  .hero__feel-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

/* ---- START PAGE REDESIGN ---- */
.final-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 5rem;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.final-cta .cta-decoration {
  display: none;
}

.start-page {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
  border-radius: 36px;
  border: 1px solid rgba(118, 144, 189, 0.16);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 195, 102, 0.16), transparent 26%),
    radial-gradient(circle at 86% 18%, rgba(61, 159, 255, 0.16), transparent 28%),
    radial-gradient(circle at 84% 84%, rgba(61, 232, 168, 0.14), transparent 26%),
    linear-gradient(160deg, rgba(255, 252, 246, 0.97), rgba(242, 248, 255, 0.95));
  box-shadow:
    0 30px 80px rgba(18, 37, 72, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.start-page__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 1.2rem;
  align-items: center;
}

.start-page__copy,
.start-page__visual,
.start-page__panel {
  position: relative;
  z-index: 1;
}

.start-page__copy {
  padding: 1.4rem;
}

.start-page__kicker,
.start-page__panel-kicker {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(98, 132, 182, 0.14);
  color: #287f88;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.start-page__title {
  margin: 1rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  color: #12305b;
  max-width: 10ch;
}

.start-page__lead {
  margin: 1rem 0 0;
  max-width: 36rem;
  color: #5b6d89;
  font-size: 1.02rem;
  line-height: 1.8;
}

.start-page__actions,
.start-page__side-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.start-page__visual {
  margin: 0;
  min-height: 28rem;
  border-radius: 30px;
  overflow: hidden;
  box-shadow:
    0 24px 56px rgba(16, 34, 66, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.start-page__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.start-page__visual-note {
  position: absolute;
  max-width: 14.5rem;
  padding: 0.95rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(109, 140, 189, 0.14);
  box-shadow: 0 18px 40px rgba(14, 33, 65, 0.14);
  backdrop-filter: blur(18px);
}

.start-page__visual-note--top {
  top: 1rem;
  left: 1rem;
}

.start-page__visual-note--bottom {
  right: 1rem;
  bottom: 1rem;
}

.start-page__visual-note strong {
  display: block;
  color: #153260;
  font-size: 0.98rem;
  line-height: 1.35;
}

.start-page__visual-note span {
  display: block;
  margin-top: 0.4rem;
  color: #5f718d;
  font-size: 0.85rem;
  line-height: 1.55;
}

.start-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
  gap: 1rem;
  margin-top: 1rem;
}

.start-page__panel {
  padding: 1.2rem;
  border-radius: 28px;
  border: 1px solid rgba(118, 144, 189, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 250, 255, 0.88));
  box-shadow: 0 18px 44px rgba(17, 36, 68, 0.08);
}

.start-page__panel--next {
  background:
    radial-gradient(circle at top right, rgba(255, 196, 95, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.9));
}

.start-page__panel-title {
  margin: 0.85rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #13305c;
}

.start-page__steps {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.start-page__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  padding: 0.95rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(118, 144, 189, 0.12);
}

.start-page__step-index {
  width: 2.05rem;
  height: 2.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(61, 159, 255, 0.16), rgba(61, 232, 168, 0.22));
  color: #1e5ca6;
  font-size: 0.88rem;
  font-weight: 900;
}

.start-page__step h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  color: #15325f;
}

.start-page__step p,
.start-page__footnote {
  margin: 0.35rem 0 0;
  color: #60718d;
  font-size: 0.92rem;
  line-height: 1.65;
}

.start-page__goal-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.start-page__goal-card {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(118, 144, 189, 0.12);
}

.start-page__goal-card strong {
  display: block;
  color: #14315d;
  font-size: 0.98rem;
  font-weight: 800;
}

.start-page__goal-card span {
  display: block;
  margin-top: 0.35rem;
  color: #62728d;
  font-size: 0.88rem;
  line-height: 1.55;
}

.start-page__side-actions .cta-btn {
  min-width: 100%;
  justify-content: center;
}

@media (max-width: 1080px) {
  .start-page__hero,
  .start-page__grid {
    grid-template-columns: 1fr;
  }

  .start-page__title {
    max-width: 12ch;
  }

  .start-page__visual {
    min-height: 24rem;
  }

  .start-page__side-actions .cta-btn {
    min-width: 15rem;
  }
}

@media (max-width: 720px) {
  .final-cta {
    padding: 3.2rem 0.85rem 4rem;
  }

  .start-page {
    padding: 0.85rem;
    border-radius: 28px;
  }

  .start-page__copy,
  .start-page__panel {
    padding: 1rem;
  }

  .start-page__title {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .start-page__lead,
  .start-page__step p,
  .start-page__footnote {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .start-page__visual {
    min-height: 20rem;
  }

  .start-page__visual-note {
    max-width: 12rem;
    padding: 0.8rem;
  }

  .start-page__actions .cta-btn,
  .start-page__side-actions .cta-btn {
    width: 100%;
  }
}
