/* CSS-Designsystem für Hofkompass (godaylight.com Stil) */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Variablen & Design Tokens */
:root {
  /* Farbpalette - Hofkompass Brand-Colors (Angelehnt an Daylight Sand/Olive Töne) */
  --color-beige: #fdfbf7;         /* Haupt-Hintergrund Creme */
  --color-beige-dark: #ece7da;    /* Rahmen & Trennlinien (Sand) */
  --color-beige-30: #f5f2e9;      /* Sektions-Hintergrund (leicht dunkleres Sand) */
  
  --color-olive-50: #f8f9f5;
  --color-olive-100: #eef2e6;
  --color-olive-200: #d6e2c6;
  --color-olive-500: #758457;     /* Kräuter-Olive */
  --color-olive-800: #343b24;     /* Wald-Olive */
  --color-olive-900: #222617;     /* Tief-Olive (Dunkles Grün für Footer & Akzente) */

  --color-terracotta-500: #d46b43; /* Ziegelrot (CTA-Farbe) */
  --color-terracotta-600: #b85230;

  --color-charcoal-800: #3a3532;   /* Textfarbe Dunkel */
  --color-charcoal-900: #231f1d;   /* Überschriften */
  --color-white-beige: #fff7e9;    /* Weiches Weiß/Beige für Text auf dunklem Grund */

  /* Typografie */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Outfit', var(--font-sans);

  /* Schatten & Rundungen */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(35, 31, 29, 0.04);
  --shadow-md: 0 8px 24px rgba(35, 31, 29, 0.06);
  --shadow-lg: 0 24px 64px rgba(35, 31, 29, 0.12);

  /* Animationen */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  
  --nav-height: 80px;
}

/* Lenis Smooth Scroll Anforderungen */
html.lenis {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis-stopped {
  overflow: hidden;
}

.lenis-scrolling iframe {
  pointer-events: none;
}

/* Reset & Grundstile */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--color-charcoal-800);
  background-color: var(--color-beige);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--color-beige);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-charcoal-900);
  font-weight: 700;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Header (Daylight-inspiriert: extrem reduziert) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  background-color: rgba(253, 251, 247, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

header.scrolled {
  background-color: rgba(253, 251, 247, 0.95);
  border-color: var(--color-beige-dark);
}

.header-container {
  max-width: 1340px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--color-olive-900);
  letter-spacing: -0.8px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-charcoal-800);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-olive-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-fast);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Header Vektorlogo */
.logo-compass-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-svg {
  width: auto;
  height: 38px;
  max-width: 38px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(35, 31, 29, 0.05));
}

.compass-needle {
  transition: transform 0.1s ease-out;
  transform-origin: center center;
}

/* Button & CTAs im Daylight-Style */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-olive-900);
  color: var(--color-white-beige);
}

.btn-primary-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translateY(150%) rotate(10deg) scale(1.5);
  background-color: var(--color-terracotta-500);
  transition: transform var(--transition-normal);
}

.btn-primary-label {
  position: relative;
  z-index: 2;
  transition: color var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-primary:hover .btn-primary-overlay {
  transform: translateY(0) rotate(0deg) scale(1.5);
}

.btn-primary:hover .btn-primary-label {
  color: white;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-olive-900);
  border: 1.5px solid var(--color-beige-dark);
}

.btn-secondary:hover {
  background-color: rgba(35, 31, 29, 0.04);
  border-color: var(--color-olive-900);
}

.btn-header {
  padding: 10px 20px;
  font-size: 13px;
  border-radius: 8px;
}

/* Hero Section (Immersiv, Fullscreen) */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: var(--color-white-beige);
  text-align: center;
}

/* Background Zoom Image */
.hero-bg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  transform: scale(1.08); /* Initial Zoom */
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(34, 38, 23, 0.4); /* Brand dark green overlay */
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-olive-200);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(38px, 6.5vw, 76px);
  color: var(--color-white-beige);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
  line-height: 1.05;
}

.hero-subtitle {
  font-size: clamp(15px, 2.5vw, 19px);
  color: rgba(255, 247, 233, 0.85);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.5;
}

/* Qualify-Pill (Suchleiste im Daylight-Stil) */
.qualify-pill {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px) saturate(110%);
  -webkit-backdrop-filter: blur(8px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  max-width: 360px;
  height: 60px;
  overflow: hidden;
  padding: 6px;
}

.qualify-pill:focus-within {
  border-color: rgba(255, 247, 233, 0.5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.qualify-pill-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 15px;
  color: var(--color-charcoal-900);
  font-family: inherit;
  letter-spacing: -0.2px;
}

.qualify-pill-input::placeholder {
  color: rgba(35, 31, 29, 0.4);
}

.hero-section .qualify-pill-input {
  color: var(--color-white-beige);
}

.hero-section .qualify-pill-input::placeholder {
  color: rgba(255, 247, 233, 0.7);
}

.qualify-pill-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 20px;
  border: none;
  border-radius: 8px;
  background-color: var(--color-white-beige);
  color: var(--color-charcoal-900);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.qualify-pill-btn-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  transform: translateY(150%) rotate(5deg) scale(1.5);
  background-color: var(--color-terracotta-500);
  transition: transform var(--transition-normal);
}

.qualify-pill-btn-label {
  position: relative;
  z-index: 2;
  transition: color var(--transition-fast);
}

.qualify-pill-btn:hover .qualify-pill-btn-overlay {
  transform: translateY(0) rotate(0deg) scale(1.5);
}

.qualify-pill-btn:hover .qualify-pill-btn-label {
  color: white;
}

/* Stacking Cards Sektion (Schritte / Pillars) */
.stacking-cards-section {
  max-width: 1340px;
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
}

/* Shared orange glow transition between waitlist card and FAQ section */
.waitlist-faq-glow {
  position: relative;
  height: 0;
  width: 100%;
  z-index: 1; /* In the background behind text/cards */
  pointer-events: none;
}

/* Gradient background layer - centered on the boundary line */
.waitlist-faq-glow::before {
  content: '';
  position: absolute;
  top: -800px; /* Centered on the boundary line, extending 800px up and 800px down */
  left: 0;
  width: 100%;
  height: 1600px;
  /* Strong, smooth terracotta orange gradient with a larger 800px radius to prevent clipping */
  background: radial-gradient(circle 800px at left center, rgba(212, 107, 67, 0.7) 0%, rgba(212, 107, 67, 0.2) 40%, rgba(212, 107, 67, 0) 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.stacking-cards-section.waitlist-active + .waitlist-faq-glow::before {
  opacity: 1;
}

.stacking-section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px auto;
}

.stacking-eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-olive-500);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  display: block;
}

.stacking-section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  color: var(--color-charcoal-900);
  letter-spacing: -1px;
}

.cards-container {
  display: flex;
  flex-direction: column;
  gap: 200px; /* Spacer zwischen den Kartentrigger-Zuständen */
  padding-bottom: 100px;
}

/* Einzelne Stacking Card */
.hiw-item {
  position: sticky;
  top: 80px; /* Centered vertically: height calc(100vh - 160px) + top 80px = perfectly centered */
  scroll-margin-top: 80px;
  height: calc(100vh - 160px);
  min-height: 520px;
  max-height: 800px;
  background-color: var(--color-beige-30);
  border: 1.5px solid var(--color-beige-dark);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 40px;
  box-shadow: var(--shadow-sm);
  transform-origin: center top;
  transition: transform 0.1s linear, box-shadow 0.3s ease;
  z-index: 10;
}

.hiw-item.stacked {
  box-shadow: var(--shadow-lg);
}

.card-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  height: 100%;
}

.card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-step-num {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-olive-500);
  margin-bottom: 24px;
  letter-spacing: 1.5px;
  display: block;
}

.card-title {
  font-size: clamp(28px, 3.5vw, 42px);
  color: var(--color-charcoal-900);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}

.card-subtitle {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-olive-800);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.card-description {
  font-size: 16px;
  color: var(--color-charcoal-800);
  margin-bottom: 32px;
}

/* Card Mockup Frame */
.card-media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.phone-mockup {
  position: relative;
  width: 290px;
  height: 580px;
  background-color: #000;
  border: 8.5px solid #09090b; /* Sleek modern thin bezel */
  border-radius: 42px;
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.4), 
    0 0 0 1px #27272a, /* subtle dark titanium inner rim */
    0 0 0 2.5px #52525b, /* metallic mid-frame band */
    0 0 0 3.5px #09090b; /* sharp outer chassis shadow edge */
  overflow: hidden;
  transform: translateY(120px) scale(0.95);
  opacity: 0.1;
  transition: transform var(--transition-slow), opacity var(--transition-slow);
}

.hiw-item.active .phone-mockup {
  transform: translateY(75px) scale(1);
  opacity: 1;
}

/* Dynamic Island/Speaker inside mockup */
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 20px;
  /* Deep black background with simulated camera lens and sensor reflections */
  background: 
    radial-gradient(circle at 20px 10px, rgba(16, 28, 54, 0.98) 2.5px, transparent 3.5px), /* Dark blue camera lens glass */
    radial-gradient(circle at 20px 10px, rgba(42, 82, 152, 0.35) 4px, transparent 5.5px),   /* Blue lens reflection glow */
    radial-gradient(circle at 70px 10px, rgba(24, 24, 28, 0.95) 2px, transparent 3px),       /* FaceID depth sensor */
    #000000; /* Base black pill */
  border-radius: 10px;
  z-index: 100;
}

/* Home Indicator inside mockup */
.phone-mockup::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  z-index: 100;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-beige);
  position: relative;
  overflow: hidden;
}



.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom waitlist display inside Card 3 */
.mockup-waitlist-content {
  padding: 40px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.mockup-waitlist-icon {
  width: 48px;
  height: 48px;
  background: var(--color-terracotta-100);
  color: var(--color-terracotta-500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.mockup-success-check {
  font-weight: 800;
  font-size: 28px;
  color: var(--color-terracotta-500);
}

/* FAQ Sektion mit edlen Glow-Blobs & Rastern */
.faq-section {
  position: relative;
  padding: 120px 24px;
  background-color: transparent;
  overflow: hidden; /* Clip background glow blobs at the screen edges to prevent horizontal overflow */
}

.faq-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 64px;
}

.faq-title {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.5px;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(236, 231, 218, 0.8);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-normal);
}

.faq-item:hover {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: var(--color-olive-500);
  box-shadow: var(--shadow-md);
}

/* Hintergrund Glow Blobs */
.bg-glow-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden; /* Prevent horizontal stretching from blur filters */
}

.bg-glow-blob {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.16;
  will-change: transform;
}

.bg-glow-olive {
  background: radial-gradient(circle, var(--color-olive-500) 0%, transparent 70%);
  top: -150px;
  left: -150px;
}

.bg-glow-terracotta {
  background: radial-gradient(circle, var(--color-terracotta-500) 0%, transparent 70%);
  bottom: -200px;
  right: -150px;
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 24px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.faq-question {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 600;
  color: var(--color-charcoal-900);
  padding-right: 24px;
}

.faq-icon {
  width: 20px;
  height: 20px;
  stroke: var(--color-olive-500);
  stroke-width: 2.5;
  fill: none;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active {
  border-color: var(--color-olive-500);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer-wrapper {
  height: 0;
  overflow: hidden;
  transition: height var(--transition-normal) ease-in-out;
}

.faq-answer {
  padding: 0 24px 24px 24px;
  font-size: 15px;
  color: var(--color-charcoal-800);
  line-height: 1.6;
}

/* Subseiten Styling (Impressum, Datenschutz, Über uns, Erzeuger) */
.subpage-hero {
  padding: 160px 24px 80px 24px;
  text-align: center;
  background-color: var(--color-beige-30);
  border-bottom: 1px solid var(--color-beige-dark);
}

.subpage-title {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.subpage-subtitle {
  font-size: 18px;
  color: var(--color-charcoal-800);
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  padding: 80px 24px;
  background-color: var(--color-beige);
}

.rich-text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--color-charcoal-800);
}

.rich-text h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--color-charcoal-900);
}

.rich-text p {
  margin-bottom: 20px;
}

.rich-text ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.rich-text li {
  margin-bottom: 8px;
}

/* Toast/Overlay für erfolgreiche Warteliste */
.toast-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(35, 31, 29, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.toast-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.toast-card {
  background: var(--color-beige);
  border: 1.5px solid var(--color-beige-dark);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.toast-overlay.visible .toast-card {
  transform: translateY(0);
}

/* Footer (Dunkel mit Gradienten & Koordinatenraster) */
footer {
  position: relative;
  background: linear-gradient(135deg, var(--color-olive-900) 0%, #171a10 100%);
  color: var(--color-white-beige);
  padding: 48px 24px calc(32px + env(safe-area-inset-bottom, 16px)) 24px; /* Dynamic safe area padding for bottom tab bars */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.footer-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 247, 233, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  opacity: 0.7;
  z-index: 1;
}

.footer-container {
  position: relative;
  z-index: 2;
  max-width: 1340px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--color-white-beige);
  letter-spacing: -0.5px;
}

.footer-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}

.footer-link {
  color: rgba(255, 247, 233, 0.6);
}

.footer-link:hover {
  color: var(--color-white-beige);
}

.footer-copy {
  width: 100%;
  margin-top: 32px; /* Tighter margins for a clean, balanced layout */
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: rgba(255, 247, 233, 0.4);
  text-align: center;
}

/* Animations & Fade-ins */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 968px) {
  .hero-section {
    height: auto !important;
    min-height: 100vh !important;
    padding: 120px 24px 80px 24px !important;
  }

  .hiw-item {
    position: sticky !important;
    top: 60px !important;
    height: calc(100vh - 120px) !important;
    min-height: 480px !important;
    max-height: 700px !important;
    padding: 24px 20px !important;
    border-radius: var(--radius-md) !important;
  }
  
  .card-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    position: relative !important;
    padding-bottom: 240px !important; /* Space reserved for the phone mockup at the bottom */
    gap: 0 !important;
  }

  .card-text {
    width: 100% !important;
    max-width: 440px !important;
    text-align: center !important;
    align-items: center !important;
  }

  .card-step-num {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  .card-title {
    font-size: 22px !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.3px !important;
  }

  .card-subtitle {
    font-size: 13px !important;
    line-height: 1.4 !important;
    max-width: 320px !important;
    margin-bottom: 8px !important;
  }

  .card-description {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: var(--color-charcoal-800) !important;
    max-width: 320px !important;
    margin-bottom: 12px !important;
  }

  .card-media {
    position: absolute !important;
    bottom: -240px !important; /* Let the mockup peek out from the bottom */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 240px !important;
    height: 480px !important;
    margin: 0 !important;
    pointer-events: none;
    z-index: 1;
  }

  .phone-mockup {
    width: 100% !important;
    height: 100% !important;
    border-radius: 32px !important;
    transform: translateY(60px) scale(0.9) !important;
    opacity: 0.15 !important;
    transition: transform var(--transition-slow), opacity var(--transition-slow) !important;
  }

  .hiw-item.active .phone-mockup {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
  }

  .cards-container {
    gap: 150px !important;
    padding-bottom: 80px !important;
  }

  .qualify-pill {
    margin-left: auto;
    margin-right: auto;
  }

  /* Header mobile clean layout */
  .header-nav .nav-link {
    display: none !important;
  }
  .btn-header {
    display: inline-flex !important;
  }
}

@media (max-width: 576px) {
  .header-container {
    padding: 0 16px !important;
  }

  .logo-text {
    font-size: 20px !important;
  }

  .btn {
    width: 100%;
  }

  footer {
    padding: 40px 24px calc(40px + env(safe-area-inset-bottom, 24px)) 24px !important;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .subpage-hero {
    padding: 120px 20px 60px 20px !important;
  }

  .content-section {
    padding: 48px 20px !important;
  }

  /* Qualify-Pill mobile styling for fitting */
  .qualify-pill {
    height: 48px !important;
    padding: 4px !important;
    max-width: 280px !important;
  }
  .qualify-pill-input {
    font-size: 13px !important;
    padding: 0 8px !important;
  }
  .qualify-pill-btn {
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 375px) {
  .logo-text {
    font-size: 18px !important;
  }
  .header-nav {
    gap: 12px !important;
  }
}

/* Premium iOS App-Screen-Erfolgs-UI */
.phone-screen.app-screen {
  background-color: var(--color-beige);
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  color: var(--color-charcoal-900);
  position: relative;
  overflow: hidden;
}

.app-screen-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px 6px 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-charcoal-800);
  z-index: 10;
  background: linear-gradient(180deg, rgba(241, 235, 217, 0.9) 0%, rgba(241, 235, 217, 0) 100%);
  pointer-events: none;
}

/* Animated Radar Map Mockup Styles */
.app-radar-view {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #f1ebd9; /* Beige map background */
  overflow: hidden;
}

.app-map-bg {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.app-map-road {
  position: absolute;
  background-color: white;
}

.road-h1 { top: 40%; left: 0; width: 100%; height: 8px; }
.road-v1 { left: 45%; top: 0; width: 8px; height: 100%; }
.road-diag {
  top: 10%;
  left: -20%;
  width: 150%;
  height: 6px;
  background-color: white;
  transform: rotate(35deg);
}

.app-map-park {
  position: absolute;
  top: 18%;
  left: 58%;
  width: 90px;
  height: 90px;
  background-color: rgba(117, 132, 87, 0.25);
  border-radius: 40% 60% 50% 50% / 40% 40% 60% 50%;
}

/* User location pulse */
.radar-user-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: #3b82f6;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
  z-index: 5;
}

.radar-user-dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.4);
  animation: userPulse 2s infinite ease-out;
}

@keyframes userPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Radar scanning circles */
.radar-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(117, 132, 87, 0.15);
  border-radius: 50%;
  pointer-events: none;
}

.radar-circle-1 { width: 90px; height: 90px; }
.radar-circle-2 { width: 180px; height: 180px; }
.radar-circle-3 { width: 270px; height: 270px; }

/* Rotating radar beam */
.radar-beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 280px;
  height: 280px;
  background: conic-gradient(from 0deg, rgba(117, 132, 87, 0.35) 0deg, rgba(117, 132, 87, 0) 120deg);
  border-radius: 50%;
  transform-origin: top left;
  transform: translate(0, 0) rotate(0deg);
  animation: radarScan 6s linear infinite;
  pointer-events: none;
}

@keyframes radarScan {
  0% { transform: rotate(0deg) translate(-50%, -50%); }
  100% { transform: rotate(360deg) translate(-50%, -50%); }
}

/* Farm pins (teardrop map marker shape, matching actual app pins) */
.app-map-pin {
  position: absolute;
  width: 30px;
  height: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0);
  opacity: 0;
  z-index: 4;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.16));
}

.pin-body {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--color-olive-900); /* Forest/wald green by default */
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-tip {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-olive-900);
  margin-top: -1.5px;
}

/* Gold/yellow pin variation */
.pin-gold .pin-body {
  background-color: #d19f39; /* Gold color matching app screenshot */
}
.pin-gold .pin-tip {
  border-top-color: #d19f39;
}

.pin-1 { animation: pinShow 6s infinite; animation-delay: 0.5s; }
.pin-2 { animation: pinShow 6s infinite; animation-delay: 2.2s; }
.pin-3 { animation: pinShow 6s infinite; animation-delay: 3.8s; }
.pin-4 { animation: pinShow 6s infinite; animation-delay: 5.0s; }

@keyframes pinShow {
  0%, 100% { transform: scale(0); opacity: 0; }
  10%, 70% { transform: scale(1.1); opacity: 1; }
  80% { transform: scale(0); opacity: 0; }
}

/* Sliding info card carousel at the bottom */
.radar-card-carousel {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  height: 68px;
  background: white;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-beige-dark);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 8;
}

.radar-card {
  position: absolute;
  inset: 0;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.radar-card-type {
  font-size: 9px;
  font-weight: 700;
  color: var(--color-terracotta-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1px;
}

.radar-card-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  color: var(--color-charcoal-900);
  margin: 0 0 1px 0;
}

.radar-card-dist {
  font-size: 10px;
  color: var(--color-charcoal-800);
  opacity: 0.8;
}

/* Carousel active item cycle */
.card-item-1 { animation: cardCycle 18s infinite; animation-delay: 0s; }
.card-item-2 { animation: cardCycle 18s infinite; animation-delay: 6s; }
.card-item-3 { animation: cardCycle 18s infinite; animation-delay: 12s; }

@keyframes cardCycle {
  0%, 28% { opacity: 1; transform: translateY(0); }
  33%, 95% { opacity: 0; transform: translateY(-20px); }
  100% { opacity: 0; transform: translateY(20px); }
}

/* Success Card inside iOS mockup container */
.app-success-view {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 44px 16px 20px 16px;
  transition: opacity 0.4s ease;
}

.app-success-card {
  background: white;
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.app-success-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-olive-100) 0%, rgba(238, 242, 230, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  position: relative;
}

.app-success-icon-circle::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px dashed var(--color-olive-200);
  animation: rotateCompassBorder 20s linear infinite;
}

@keyframes rotateCompassBorder {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.app-success-checkmark {
  width: 28px;
  height: 28px;
  stroke: var(--color-olive-500);
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-success-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-charcoal-900);
  margin-bottom: 8px;
  line-height: 1.2;
}

.app-success-text {
  font-size: 12px;
  color: var(--color-charcoal-800);
  line-height: 1.5;
  margin-bottom: 24px;
}

.app-queue-badge {
  background-color: var(--color-olive-900);
  color: var(--color-white-beige);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}

.app-progress-container {
  width: 100%;
  margin-bottom: 12px;
}

.app-progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: var(--color-charcoal-800);
  margin-bottom: 4px;
}

.app-progress-bar-bg {
  width: 100%;
  height: 6px;
  background-color: var(--color-olive-100);
  border-radius: 3px;
  overflow: hidden;
}

.app-progress-bar-fill {
  width: 78%;
  height: 100%;
  background-color: var(--color-terracotta-500);
  border-radius: 3px;
}

/* 2026 quality pass: accessibility, calmer motion and resilient responsive layout */
:root {
  --focus-ring: 0 0 0 3px rgba(212, 107, 67, 0.28);
  --surface-paper: rgba(255, 253, 247, 0.86);
}

html {
  scroll-behavior: smooth;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 3000;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--color-olive-900);
  color: var(--color-white-beige);
  transform: translateY(-160%);
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:where(a, button, input):focus-visible {
  outline: 2px solid var(--color-terracotta-500);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

.btn:active,
.qualify-pill-btn:active {
  transform: translateY(1px) scale(0.985);
}

.hero-section {
  min-height: 100dvh;
  height: 100dvh;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(22, 27, 13, 0.28), rgba(22, 27, 13, 0.62)),
    radial-gradient(circle at 50% 46%, transparent 0%, rgba(16, 20, 10, 0.18) 72%);
}

.hero-title,
.stacking-section-title,
.subpage-title {
  text-wrap: balance;
}

.hero-subtitle,
.card-description,
.subpage-subtitle,
.rich-text p {
  text-wrap: pretty;
}

.hero-content::after {
  content: 'Höfe · Automaten · Wochenmärkte';
  margin-top: 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 247, 233, 0.66);
  text-transform: uppercase;
}

.stacking-section-header {
  text-align: left;
  margin-left: clamp(0px, 7vw, 96px);
  margin-right: auto;
}

.hiw-item {
  background:
    radial-gradient(circle at 88% 18%, rgba(117, 132, 87, 0.12), transparent 32%),
    var(--color-beige-30);
  border-color: rgba(196, 187, 166, 0.72);
  box-shadow: 0 20px 55px rgba(74, 63, 46, 0.08);
}

.card-text {
  position: relative;
  z-index: 2;
}

.card-step-num {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.step-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(117, 132, 87, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-olive-800);
}

.step-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.phone-mockup {
  aspect-ratio: 1 / 2;
  height: min(580px, calc(100dvh - 210px));
  width: auto;
  box-shadow:
    0 34px 70px -24px rgba(35, 31, 29, 0.52),
    0 0 0 1px #27272a,
    0 0 0 2.5px #52525b,
    0 0 0 3.5px #09090b;
}

.form-status {
  width: 100%;
  max-width: 360px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--color-olive-800);
}

.has-error + .form-status {
  color: #9a3e25;
}

.app-progress-bar-fill {
  width: 42%;
  animation: preparationProgress 2.8s ease-in-out infinite alternate;
}

@keyframes preparationProgress {
  from { transform: translateX(-18%); }
  to { transform: translateX(150%); }
}

.qualify-pill-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms),
    transform 680ms cubic-bezier(0.16, 1, 0.3, 1) var(--reveal-delay, 0ms);
}

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

.faq-item.active {
  background: var(--surface-paper);
  box-shadow: 0 18px 45px rgba(74, 63, 46, 0.08);
}

.faq-question-btn:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 968px) {
  .hero-section {
    min-height: 100dvh !important;
  }

  .stacking-cards-section {
    padding: 76px 18px 90px;
  }

  .stacking-section-header {
    margin: 0 0 46px;
    text-align: left;
  }

  .cards-container {
    gap: 24px !important;
    padding-bottom: 0 !important;
  }

  .hiw-item {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 32px 24px 0 !important;
    overflow: hidden;
    transform: none !important;
    filter: none !important;
  }

  .card-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto !important;
    padding: 0 !important;
    gap: 28px !important;
  }

  .card-text {
    max-width: 580px !important;
    text-align: left !important;
    align-items: flex-start !important;
  }

  .card-step-num {
    margin-bottom: 16px !important;
  }

  .card-title {
    font-size: clamp(27px, 7vw, 38px) !important;
    margin-bottom: 10px !important;
  }

  .card-subtitle {
    max-width: none !important;
    margin-bottom: 10px !important;
  }

  .card-description {
    max-width: 58ch !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
    margin-bottom: 22px !important;
  }

  .card-media {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    width: 100% !important;
    height: 390px !important;
    overflow: hidden;
    pointer-events: auto;
  }

  .phone-mockup,
  .hiw-item.active .phone-mockup {
    width: 220px !important;
    height: 440px !important;
    transform: translateY(82px) rotate(2.4deg) scale(0.94) !important;
    opacity: 0 !important;
    border-radius: 34px !important;
    transition:
      transform 900ms cubic-bezier(0.16, 1, 0.3, 1),
      opacity 620ms ease-out !important;
    will-change: transform, opacity;
  }

  .hiw-item:nth-child(even) .phone-mockup,
  .hiw-item:nth-child(even).active .phone-mockup {
    transform: translateY(82px) rotate(-2.4deg) scale(0.94) !important;
  }

  .hiw-item.reveal-visible .phone-mockup,
  .hiw-item.reveal-visible.active .phone-mockup {
    transform: translateY(28px) rotate(0deg) scale(1) !important;
    opacity: 1 !important;
    transition-delay: 140ms !important;
  }

  .waitlist-faq-glow {
    display: none;
  }
}

@media (max-width: 576px) {
  :root { --nav-height: 68px; }

  .header-container { gap: 10px; width: 100%; }
  .logo-link { min-width: 0; gap: 8px; }
  .logo-text { font-size: 18px !important; }
  .header-nav { flex: 0 0 auto; gap: 8px; }
  .logo-svg { height: 32px; max-width: 32px; }
  .btn-header { padding: 9px 14px; }

  .hero-section {
    padding: 104px 18px 62px !important;
  }

  .hero-content {
    width: 100%;
    min-width: 0;
    padding: 0;
  }

  .hero-title {
    width: 100%;
    max-width: 350px;
    font-size: clamp(35px, 10.5vw, 43px);
    letter-spacing: -1.35px;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    width: 100%;
    max-width: 440px;
    margin-bottom: 26px;
  }

  .hero-content::after {
    margin-top: 22px;
    font-size: 9px;
  }

  .qualify-pill {
    width: min(100%, 360px) !important;
    max-width: calc(100vw - 36px) !important;
    min-height: 52px;
    height: auto !important;
  }

  .hero-section .qualify-pill > span {
    min-width: 0;
    padding-inline: 8px !important;
  }

  .hero-section .qualify-pill-btn {
    padding-inline: 11px !important;
  }

  .qualify-pill-input {
    min-width: 0;
  }

  .stacking-cards-section {
    padding-inline: 12px;
  }

  .hiw-item {
    padding: 26px 18px 0 !important;
    border-radius: 20px !important;
  }

  .card-media {
    height: 350px !important;
  }

  .phone-mockup,
  .hiw-item.active .phone-mockup {
    width: 196px !important;
    height: 392px !important;
  }

  .faq-section {
    padding: 86px 16px;
  }

  .faq-header {
    text-align: left;
    margin-bottom: 38px;
  }

  .faq-question-btn {
    padding: 20px 18px;
  }

  .faq-answer {
    padding: 0 18px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-item { opacity: 1; transform: none; }
}
