/**
 * Homepage Styles - MarktLinse
 * Clean Hero Section mit Laptop-Mockup
 *
 * @version 2.0.0
 * @date 2025-12-04
 */

/* ============================================
   CSS CUSTOM PROPERTIES (Homepage-spezifisch)
   ============================================ */
:root {
  /* Hero Colors */
  --hero-bg: #ffffff;
  --hero-text-primary: #1e293b;
  --hero-text-secondary: #64748b;

  /* Brand Gradient */
  --gradient-start: #00b8d9;
  --gradient-mid: #0077b6;
  --gradient-end: #003566;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: auto; /* Nicht mehr 100vh */
  background: var(--hero-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 120px; /* Platz für fixed Navbar (~80px) + Abstand */
  padding-bottom: 60px; /* Reduzierter Abstand nach unten */
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-left: 80px;
  gap: 100px; /* Mehr Abstand zwischen Text und Laptop */
}

/* ============================================
   LEFT SIDE - TEXT CONTENT
   ============================================ */
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  margin-top: -40px; /* Text-Bereich höher ziehen */
}

.hero-headline {
  font-family: "Clash Display", sans-serif;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hero-text-primary);
  margin: 0 0 24px 0;
}

.hero-headline-accent {
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 50%,
    var(--gradient-end) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subline {
  font-family: "Satoshi", sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--hero-text-secondary);
  margin: 0 0 32px 0;
  max-width: 480px;
}

/* CTA Button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 100%
  );
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.3);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta svg {
  transition: transform var(--transition-fast);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   RIGHT SIDE - LAPTOP MOCKUP
   ============================================ */
.hero-laptop {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  /* Allow overflow to right */
  margin-right: -230px;
}

.hero-laptop-frame {
  position: relative;
  width: 100%;
  max-width: 700px;
}

/* Laptop Screen */
.hero-laptop-screen {
  position: relative;
  background: #1a1a1a;
  border-radius: 16px 16px 0 0;
  padding: 10px 10px 0 10px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* MacBook Notch */
.hero-laptop-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 24px;
  background: #1a1a1a;
  border-radius: 0 0 12px 12px;
  z-index: 10;
}

/* Screenshot Image */
.hero-laptop-screen img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  object-fit: cover;
}

/* Laptop Base */
.hero-laptop-base {
  position: relative;
  height: 18px;
  background: linear-gradient(to bottom, #e0e0e0 0%, #c4c4c4 50%, #d0d0d0 100%);
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Laptop Base Notch */
.hero-laptop-base::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 25%;
  height: 6px;
  background: linear-gradient(to bottom, #c4c4c4, #a0a0a0);
  border-radius: 0 0 6px 6px;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1200px) {
  .hero-content {
    padding-left: 60px;
  }

  .hero-laptop {
    margin-right: -150px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    padding-left: 40px;
    gap: 30px;
  }

  .hero-headline {
    font-size: clamp(2rem, 4vw, 3rem);
  }

  .hero-laptop {
    margin-right: -100px;
  }

  .hero-laptop-frame {
    max-width: 600px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 120px 20px 60px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-left: 0;
    gap: 40px;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .hero-headline {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }

  .hero-subline {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-laptop {
    margin-right: 0;
    justify-content: center;
  }

  .hero-laptop-frame {
    max-width: 100%;
  }
}

/* ============================================
   RESPONSIVE - SMALL MOBILE
   ============================================ */
@media (max-width: 480px) {
  .hero {
    padding: 100px 16px 40px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* ============================================
   PRODUCTS SECTION - REDUZIERTER ABSTAND
   ============================================ */
.products-showcase {
  padding-top: 40px; /* Reduziert von 96px (--spacing-4xl) */
}

/* ============================================
   NAVBAR - RECHTSBÜNDIG
   ============================================ */
.nav-menu {
  margin-left: auto; /* Menü nach rechts schieben */
}

/* ============================================
   AUTH BUTTON - INITIALEN
   ============================================ */
.btn-auth-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 100%
  );
  color: #ffffff;
  font-family: "Satoshi", sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 119, 182, 0.25);
}

.btn-auth-initials:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 119, 182, 0.35);
}

/* ============================================
   PRODUCT SHOWCASE - DASHBOARD (Header oben, iPad links, Features rechts)
   ============================================ */
.product-showcase-dashboard {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Trennlinie vor jedem Produkt */
.product-showcase-dashboard::before,
.product-showcase-ki::before {
  content: '';
  display: block;
  width: 100vw;
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin-left: calc(-50vw + 50%);
  margin-bottom: 60px;
}

/* Header über voller Breite (nicht mehr verwendet) */
.product-header-full {
  text-align: center;
  margin-bottom: 48px;
}

/* Header inline in der rechten Spalte (nicht mehr verwendet) */
.product-header-inline {
  margin-bottom: 32px;
}

/* Header über dem iPad (sticky) - nicht mehr verwendet */
.product-header-sticky {
  margin-bottom: 24px;
}

/* Header zentriert über voller Breite (sticky) */
.product-header-center {
  position: sticky;
  top: 70px; /* Direkt unter Navbar - 10px overlap um Lücke zu schließen */
  z-index: 10;
  text-align: center;
  padding: 34px 60px 24px 60px; /* 10px extra oben für overlap */
  margin-left: -60px; /* Kompensiert Container-Padding */
  margin-right: -60px;
  width: calc(100% + 120px); /* Volle Breite + kompensierte Margins */
  background: #ffffff;
}

/* Zwei-Spalten Layout */
.product-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* iPad Pro Device - Sticky (direkt unter Header) */
.product-device {
  position: sticky;
  top: 285px; /* Navbar (80px) + Header sticky (~130px) */
  align-self: start;
  max-width: 650px; /* Größeres iPad */
}

/* iPad Pro Frame (modernes Design ohne Home-Button) */
.ipad-pro-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Kamera (FaceID) */
.ipad-pro-frame::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #2a2a2a;
  border-radius: 50%;
  z-index: 10;
}

.ipad-pro-screen {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.ipad-pro-screen img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.4s ease;
}

/* ============================================
   FEATURE LIST - Scroll Reveal
   ============================================ */
/* product-features-wrapper: Container für Features + Dots + CTA */

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 100%
  );
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 16px;
}

.product-title {
  font-family: "Clash Display", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--hero-text-primary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.product-intro {
  font-family: "Satoshi", sans-serif;
  font-size: 1.125rem;
  color: var(--hero-text-secondary);
  line-height: 1.6;
}

/* Feature Block - Scroll Reveal Animation */
.feature-block {
  padding: 32px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);

  /* Initial State - unsichtbar */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Revealed State - sichtbar */
.feature-block.revealed {
  opacity: 1;
  transform: translateY(0);
}

.feature-block:last-of-type {
  border-bottom: none;
}

.feature-title {
  font-family: "Clash Display", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hero-text-primary);
  margin-bottom: 12px;
}

.feature-text {
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  color: var(--hero-text-secondary);
  line-height: 1.8;
  text-align: justify;
}

/* CTA Button */
.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 14px 28px;
  background: linear-gradient(
    135deg,
    var(--gradient-start) 0%,
    var(--gradient-mid) 100%
  );
  color: white;
  font-family: "Satoshi", sans-serif;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 119, 182, 0.3);
}

.product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 119, 182, 0.4);
}

.product-cta svg {
  transition: transform 0.2s ease;
}

.product-cta:hover svg {
  transform: translateX(4px);
}

/* ============================================
   PRODUCT SHOWCASE - RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .product-showcase-dashboard {
    padding: 0 40px;
  }

  .product-columns {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-device {
    position: relative;
    top: 0;
    max-width: 500px;
    margin: 0 auto;
  }

  .product-features-carousel {
    min-height: auto; /* Kein Scroll-Bereich auf Mobile */
  }

  .product-content-sticky {
    position: relative;
    top: 0;
  }

  .scroll-triggers {
    display: none; /* Keine Scroll-Trigger auf Mobile */
  }
}

@media (max-width: 768px) {
  /* Verhindert horizontales Scrollen der gesamten Seite */
  .product-showcase-dashboard,
  .product-showcase-ki {
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
  }

  .product-columns,
  .product-columns-reverse {
    padding: 0 20px;
  }

  .product-header-full {
    margin-bottom: 32px;
  }

  .product-title {
    font-size: 2rem;
  }

  .feature-title {
    font-size: 1.25rem;
  }

  .feature-text {
    text-align: left;
  }

  .feature-dots {
    justify-content: center;
  }

  /* ============================================
     MOBILE SWIPE-CAROUSEL
     ============================================ */

  /* Header nicht mehr sticky auf Mobile */
  .product-header-center {
    position: relative;
    top: 0;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    padding: 24px 20px;
  }

  /* Device nicht mehr sticky */
  .product-device,
  .product-device-phone {
    position: relative;
    top: 0;
  }

  /* Wrapper verhindert horizontales Overflow der Seite */
  .product-features-wrapper {
    overflow: hidden;
    width: 100%;
  }

  /* Feature-Container als horizontaler Scroll */
  .product-features-list {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    gap: 12px;
    padding: 8px 16px;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .product-features-list::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  /* Feature-Block als Slide */
  .feature-block {
    flex: 0 0 90%;
    min-width: 90%;
    scroll-snap-align: start;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* Override scroll-reveal animation on mobile */
    opacity: 1;
    transform: none;
    box-sizing: border-box;
  }

  /* CTA Button unter Carousel */
  .product-features-wrapper .product-cta {
    display: flex;
    justify-content: center;
    margin-top: 16px;
  }
}

/* Dot-Indikatoren */
.swipe-dots {
  display: none; /* Nur auf Mobile sichtbar */
}

@media (max-width: 768px) {
  .swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 0 20px;
  }

  .swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease, transform 0.3s ease;
  }

  .swipe-dot.active {
    background: var(--gradient-mid);
    transform: scale(1.2);
  }
}

/* ============================================
   PRODUCT SHOWCASE - KI-ASSISTENT (Text links, iPhone rechts)
   ============================================ */
.product-showcase-ki {
  max-width: 1400px;
  margin: 80px auto 0;
  padding: 0 60px;
}

/* Zwei-Spalten Layout (umgekehrt: Text links, Device rechts) */
.product-columns-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* iPhone Pro Device - Sticky (rechts) */
.product-device-phone {
  position: sticky;
  top: 285px;
  align-self: start;
  display: flex;
  justify-content: center;
}

/* iPhone Pro Frame (modernes Design mit Dynamic Island - Hochformat) */
.iphone-pro-frame {
  position: relative;
  background: #1a1a1a;
  border-radius: 37px;
  padding: 9px;
  width: 220px;
  height: 400px; /* Feste Höhe - manuell anpassen */
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* Dynamic Island */
.iphone-pro-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 15px;
  background: #000000;
  border-radius: 6px;
  z-index: 10;
}

/* iPhone Screen */
.iphone-pro-screen {
  background: #ffffff;
  border-radius: 27px;
  overflow: hidden;
  height: 100%;
}

.iphone-pro-screen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

/* ============================================
   KI-ASSISTENT - RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .product-showcase-ki {
    padding: 0 40px;
    margin-top: 60px;
  }

  .product-columns-reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-device-phone {
    position: relative;
    top: 0;
    order: -1; /* iPhone nach oben auf Mobile */
  }

  .iphone-pro-frame {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .product-showcase-ki {
    padding: 0 20px;
    margin-top: 40px;
  }

  .iphone-pro-frame {
    width: 200px;
    border-radius: 36px;
  }

  .iphone-pro-notch {
    width: 70px;
    height: 22px;
    top: 16px;
  }

  .iphone-pro-screen {
    border-radius: 26px;
  }
}
