/* =============================================
   handlanger.pro Landing v2
   CD: Schattenwerk v3 (#0a0a0f / #e8e6e3) + Handlanger-Akzent #e86e1a
   Typo: Big Shoulders Display (display) + IBM Plex Sans (text)
   ============================================= */

:root {
  /* Schattenwerk CD */
  --bg-color: #0a0a0f;
  --bg-hero: #050507;
  --bg-elevated: #14141c;
  --text-color: #e8e6e3;
  --text-secondary: #9aa5b4;
  --text-muted: #6a7280;
  --structure: #2a2a38;
  --structure-soft: rgba(232, 230, 227, 0.08);

  /* Handlanger-Akzent (orange — aus v3 brand-handwerk) */
  --accent: #e86e1a;
  --accent-hover: #f08236;
  --accent-soft: rgba(232, 110, 26, 0.15);
  --accent-glow: rgba(232, 110, 26, 0.4);

  /* Glas / Surfaces */
  --glass-bg: rgba(232, 230, 227, 0.05);
  --glass-border: rgba(232, 230, 227, 0.12);
  --glass-border-hover: rgba(232, 230, 227, 0.25);
  --glass-blur: 10px;

  /* Typo */
  --font-display: 'Big Shoulders Display', 'Inter', system-ui, sans-serif;
  --font-text: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;

  /* Motion */
  --hover-speed: 180ms;
  --transform-speed: 300ms;
  --easing: cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

/* =============================================
   Base
   ============================================= */
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* =============================================
   Snap-Scroll Container
   ============================================= */
.scroll-container {
  height: 100vh;
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior: none;
}

.snap-section {
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* =============================================
   Scroll Progress + Dot Nav
   ============================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  z-index: 10001;
  transition: width 300ms ease-out;
}

.section-nav {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 10000;
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--hover-speed) ease, transform var(--hover-speed) ease;
}

.section-dot:hover {
  background: var(--text-secondary);
  transform: scale(1.4);
}

.section-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* =============================================
   Header / Logo
   ============================================= */
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--text-color);
  text-decoration: none;
  line-height: 1;
  text-transform: lowercase;
}

.logo span {
  color: var(--accent);
  font-weight: 600;
}

.logo--footer {
  font-size: 1.25rem;
}

.header-cta {
  font-family: var(--font-text);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  transition: all var(--hover-speed) ease;
}

.header-cta:hover {
  color: var(--text-color);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* =============================================
   HERO
   ============================================= */
.snap-hero {
  background-color: var(--bg-hero);
}

.hero-bg {
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-glow {
  position: absolute;
  inset: 0;
  will-change: transform;
  transition: transform 150ms ease-out;
}

.hero-glow--warm {
  background: radial-gradient(ellipse 460px 360px at 50% 38%, rgba(232, 110, 26, 0.4), transparent 65%);
}

.hero-glow--cool {
  background: radial-gradient(ellipse 320px 260px at 78% 70%, rgba(124, 77, 219, 0.18), transparent 65%);
}

.snap-hero .container,
.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 4rem;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.hero-content h1 .hero-sub {
  display: block;
  color: var(--text-secondary);
  font-weight: 400;
  margin-top: 0.1em;
}

.hero-lead {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
  animation: pulse-hint 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-hint-arrow {
  width: 1px;
  height: 24px;
  background: var(--text-muted);
  position: relative;
}

.scroll-hint-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--text-muted);
  border-bottom: 1px solid var(--text-muted);
  transform: rotate(45deg);
}

@keyframes pulse-hint {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 0.3; transform: translateX(-50%) translateY(6px); }
}

/* =============================================
   Buttons
   ============================================= */
.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color var(--hover-speed) ease,
              color var(--hover-speed) ease,
              border-color var(--hover-speed) ease,
              transform var(--hover-speed) ease;
  letter-spacing: 0.01em;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--accent);
  color: #0a0a0f;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
}

.btn-primary:disabled {
  background-color: var(--text-muted);
  cursor: wait;
  transform: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: var(--text-secondary);
}

.btn-secondary:hover {
  background-color: rgba(154, 165, 180, 0.1);
  color: var(--text-color);
}

.btn-full {
  width: 100%;
}

/* =============================================
   Section: Werkzeuge / Features
   ============================================= */
.snap-werkzeuge {
  justify-content: center;
}

.section-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.section-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.section-intro h2 .accent {
  color: var(--accent);
}

.section-intro p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  transition: border-color var(--hover-speed) ease,
              transform var(--transform-speed) var(--easing);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  transition: width var(--hover-speed) ease;
}

.feature-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
}

.feature-card:hover::before {
  width: 4px;
}

@supports not (backdrop-filter: blur(10px)) {
  .feature-card {
    background: rgba(20, 20, 28, 0.85);
  }
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.875rem;
  color: var(--text-color);
  text-transform: uppercase;
}

.feature-card p {
  font-size: 0.975rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =============================================
   Section: Tarif
   ============================================= */
.snap-tarif {
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.tarif-inner {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.tarif-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  color: var(--text-color);
}

.tarif-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--accent);
  padding: 2.25rem;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 0 40px rgba(232, 110, 26, 0.08);
}

@supports not (backdrop-filter: blur(10px)) {
  .tarif-card {
    background: rgba(20, 20, 28, 0.9);
  }
}

.tarif-tag {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.tarif-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.price-from {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1;
}

.price-unit {
  font-family: var(--font-text);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.tarif-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.tarif-list {
  list-style: none;
  margin: 0 0 2rem 0;
  padding: 0;
}

.tarif-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-color);
  line-height: 1.5;
}

.tarif-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* =============================================
   Section: Warteliste
   ============================================= */
.snap-warteliste {
  justify-content: center;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.warteliste-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.warteliste-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: var(--text-color);
}

.warteliste-inner > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.waitlist-form {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.waitlist-input-group {
  display: flex;
  gap: 0.5rem;
}

.waitlist-input {
  flex: 1;
  padding: 0.9rem 1.25rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  color: var(--text-color);
  font-family: var(--font-text);
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color var(--hover-speed) ease;
}

.waitlist-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--accent);
}

.waitlist-input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.waitlist-hint {
  margin-top: 0.75rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.waitlist-success {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.waitlist-error {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #f08236;
}

/* =============================================
   Footer
   ============================================= */
.site-footer {
  position: relative;
  border-top: 1px solid var(--glass-border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  scroll-snap-align: end;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-claim {
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--hover-speed) ease;
}

.footer-links a:hover {
  color: var(--text-color);
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

/* Footer raus aus snap container — fix layout am Ende der Warteliste */
.snap-warteliste {
  padding-bottom: 0;
}

/* =============================================
   Reveal Animation
   ============================================= */
.reveal-content {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease-out, transform 600ms var(--easing);
}

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

.reveal-content[data-delay="1"] { transition-delay: 100ms; }
.reveal-content[data-delay="2"] { transition-delay: 200ms; }
.reveal-content[data-delay="3"] { transition-delay: 300ms; }

/* =============================================
   Tablet
   ============================================= */
@media (min-width: 768px) and (max-width: 1023px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   Mobile (<768px)
   ============================================= */
@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .site-header {
    height: 72px;
  }

  .hero-content {
    padding-bottom: 5rem;
  }

  .hero-content h1 {
    font-size: clamp(2.25rem, 11vw, 3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

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

  .section-nav {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  /* Features als Karussell */
  .features-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    gap: 1rem;
    margin: 0 -1.25rem;
    padding: 0 1.25rem;
  }

  .features-grid::-webkit-scrollbar {
    display: none;
  }

  .feature-card {
    flex: 0 0 84%;
    min-height: 220px;
    scroll-snap-align: center;
  }

  .waitlist-input-group {
    flex-direction: column;
  }

  .waitlist-input-group .btn {
    width: 100%;
  }

  .tarif-card {
    padding: 1.75rem;
  }

  .price-amount {
    font-size: 2.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-brand {
    align-items: center;
  }
}

/* =============================================
   Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  .scroll-container {
    scroll-snap-type: none;
    scroll-behavior: auto;
    overflow-y: auto;
  }

  html, body {
    overflow: auto;
  }

  .snap-section {
    height: auto;
    min-height: 100vh;
  }

  .reveal-content {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint {
    animation: none;
    opacity: 0.5;
  }

  .feature-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}

/* =============================================
   High Contrast
   ============================================= */
@media (prefers-contrast: high) {
  .feature-card,
  .tarif-card {
    border-color: var(--text-secondary);
  }
}
