/* ============================================================
   chatilo.de – Haupt-Stylesheet
   Farbpalette aus der App übernommen
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
  --primary:    #00B894;
  --secondary:  #00CEC9;
  --blue:       #0984E3;
  --header-bg:  #00897B;
  --dark:       #1a1a1a;
  --text-light: rgba(255,255,255,0.85);
  --shadow:     0 20px 60px rgba(0,0,0,0.18);
  --radius:     16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', system-ui, sans-serif;
  color: #1a1a1a;
  background: #fff;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── HEADER ──────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--header-bg);
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.7rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.menu-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.menu-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* ─── FULLSCREEN NAV ──────────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: var(--header-bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.nav-overlay.open { transform: translateY(0); }

.nav-overlay a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: opacity 0.2s;
}
.nav-overlay a:hover { opacity: 0.7; }

.nav-close {
  position: absolute;
  top: 18px; right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding-top: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  /* 50% = Bildmitte: Mann + Hintergrundleute gut sichtbar */
  background: url('assets/hero-bg.png') center 50% / cover no-repeat;
  filter: brightness(0.72);
  transform: scale(1.0);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1.03); }

/* Desktop-Overlay: links dunkel für Textlesbarkeit, rechts heller */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.62) 38%,
    rgba(0,0,0,0.22) 62%,
    rgba(0,0,0,0.18) 100%
  );
}

/* ─── HERO INNER: 2 gesperrte Zonen ──────────────────────── */
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 48px;
  min-height: calc(100vh - 60px);
  /* Desktop: 2-Spalten. Links = Text, Rechts = Mann */
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ZONE A – Links: Text + Button, immer am unteren Rand */
.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* alles nach unten */
  padding-bottom: 80px;
}

/* ZONE B – Rechts: freier Bereich, Mann sichtbar */
.hero-right { /* leer – Mann schaut durch */ }

.hero-copy h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 5.2vw, 5.6rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.0;
  letter-spacing: 3px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.7);
  margin-bottom: 18px;
}

.hero-copy p {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  line-height: 1.5;
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta {
  margin-top: 32px;
}

.btn-apk {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #1a1a1a;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: all 0.25s;
  letter-spacing: 0.2px;
}
.btn-apk:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
  background: #f0fff8;
}
.btn-apk .check { font-size: 1.2rem; }

/* Nicht mehr genutzt */
.hero-phone { display: none; }

/* ─── CSS PHONE MOCKUP (kein PNG, kein weißer Rand) ─────── */

/*
  phone-bridge-wrapper: Höhe 0, zentriert auf der Naht Features↔App.
  Handy ragt 50% nach oben (in Features) und 50% nach unten (in App).
  Desktop: nach rechts versetzt. Mobile: zentriert, kleiner.
*/
.phone-bridge-wrapper {
  position: relative;
  height: 0;
  display: flex;
  justify-content: flex-end;  /* rechts auf Desktop */
  padding-right: 8%;
  z-index: 30;
}

.phone-mockup-css {
  width: 300px;
  height: 614px;
  background: #0c0c0c;
  border-radius: 52px;
  border: 9px solid #1c1c1c;
  box-shadow:
    0 0 0 1.5px rgba(255,255,255,0.09),
    0 48px 96px rgba(0,0,0,0.72),
    0 0 100px rgba(0,184,148,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
  position: absolute;
  top: 0;
  overflow: hidden;
  flex-shrink: 0;
  animation: phonefloat 4s ease-in-out infinite;
}

@keyframes phonefloat {
  /* — translateY(-50%) muss in JEDEM Keyframe enthalten sein,
     sonst wird der Basis-transform überschrieben! — */
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 14px)); }
}

/* Kamera-Notch */
.phone-mockup-css::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 75px; height: 22px;
  background: #0c0c0c;
  border-radius: 0 0 14px 14px;
  z-index: 10;
}

/* Screen – chatilo App Gradient */
.phone-screen {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #00B894 0%, #00CEC9 55%, #0984E3 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px 24px;
  gap: 4px;
}

.phone-sprache {
  position: absolute;
  top: 30px; right: 13px;
  color: rgba(255,255,255,0.72);
  font-size: 0.58rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
}

.phone-app-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1.5px;
  line-height: 1;
}

.phone-app-tagline {
  color: rgba(255,255,255,0.8);
  font-size: 0.63rem;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  margin-bottom: 20px;
}

.phone-btn-row {
  display: flex;
  gap: 7px;
  width: 100%;
}

.phone-btn {
  flex: 1;
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.63rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  border: none;
  cursor: default;
  text-align: center;
}

.phone-btn.primary {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.2);
}

.phone-btn.secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.38);
}

/* ─── FEATURE STRIP ──────────────────────────────────────── */
.features {
  background: linear-gradient(135deg, #00B894, #00CEC9 50%, #0984E3);
  /* Halbes Handy (307px) + 56px Luft = 363px */
  padding: 64px 32px 363px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: #fff;
  transition: transform 0.25s, background 0.25s;
}
.feature-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.22);
}
.feature-card .icon {
  font-size: 2.6rem;
  margin-bottom: 16px;
  display: block;
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}
.feature-card p {
  font-size: 0.9rem;
  opacity: 0.88;
  line-height: 1.6;
}

/* ─── APP SECTION ─────────────────────────────────────────── */
.app-section {
  background: #f4fcfa;
  /* Halbes Handy (307px) + 56px Luft = 363px */
  padding: 363px 32px 80px;
  overflow: visible;
}

.app-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* Location explorer illustration */
.location-explorer {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.explorer-map {
  width: 340px;
  height: 340px;
  background: linear-gradient(135deg, #e8f8f5, #d4f4f1);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,184,148,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Grid lines on map */
.explorer-map::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,   rgba(0,184,148,0.08) 0, rgba(0,184,148,0.08) 1px, transparent 1px, transparent 40px),
    repeating-linear-gradient(90deg,  rgba(0,184,148,0.08) 0, rgba(0,184,148,0.08) 1px, transparent 1px, transparent 40px);
  border-radius: 50%;
}

.map-center-pin {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 8px 24px rgba(9,132,227,0.4);
  position: relative;
  z-index: 2;
}
.map-center-pin::after {
  content: '';
  position: absolute;
  inset: 12px;
  background: #fff;
  border-radius: 50%;
}

/* Floating ping bubbles */
.ping {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a1a1a;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: pingFloat 4s ease-in-out infinite;
  white-space: nowrap;
}
.ping::before { font-size: 1rem; }

.ping-1 { top: 30px;  left: 10px;  animation-delay: 0s; }
.ping-2 { top: 60px;  right: 20px; animation-delay: 1.2s; }
.ping-3 { bottom: 80px; left: 0;   animation-delay: 0.6s; }
.ping-4 { bottom: 40px; right: 10px; animation-delay: 1.8s; }

@keyframes pingFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Radius circle */
.radius-ring {
  position: absolute;
  width: 200px; height: 200px;
  border: 2px dashed rgba(0,184,148,0.35);
  border-radius: 50%;
  animation: spin 20s linear infinite;
}
.radius-ring-outer {
  width: 280px; height: 280px;
  border-width: 1px;
  animation-duration: 30s;
  animation-direction: reverse;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* App section text */
.app-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.app-text h2 span {
  background: linear-gradient(90deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.app-text p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 32px;
}

.app-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s;
}
.badge-item:hover { transform: translateX(6px); }
.badge-item .badge-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* ─── DOWNLOAD CTA ────────────────────────────────────────── */
.download-cta {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  padding: 80px 32px;
  text-align: center;
}

.download-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -1px;
}
.download-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  margin-bottom: 36px;
}

.btn-download-big {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 18px 40px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(0,184,148,0.4);
  transition: all 0.25s;
  letter-spacing: 0.2px;
}
.btn-download-big:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0,184,148,0.5);
}

.version-note {
  margin-top: 16px;
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer {
  background: #111;
  padding: 28px 32px;
  text-align: center;
  color: rgba(255,255,255,0.45);
  font-size: 0.88rem;
}

.footer a {
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  margin: 0 4px;
}
.footer a:hover { color: var(--primary); }

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* ─── INNER PAGES ─────────────────────────────────────────── */
.page-header {
  background: var(--header-bg);
  padding: 100px 32px 40px;
  text-align: center;
  color: #fff;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 32px;
  line-height: 1.8;
  color: #333;
}
.page-content h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin: 36px 0 12px;
  color: #111;
}
.page-content p { margin-bottom: 14px; }
.page-content a { color: var(--primary); text-decoration: underline; }

/* ─── RESPONSIVE ──────────────────────────────────────────── */

/* ─ Tablet 900px ─────────────────────────────────────── */
@media (max-width: 900px) {
  /* Hero-Grid auf 1 Spalte */
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 0 28px;
  }
  .hero-right { display: none; }  /* rechte Zone weg */

  /* Overlay: oben + unten dunkel, Mitte transparent (Mann sichtbar) */
  .hero-overlay {
    background: linear-gradient(180deg,
      rgba(0,0,0,0.72) 0%,
      rgba(0,0,0,0.08) 36%,
      rgba(0,0,0,0.08) 62%,
      rgba(0,0,0,0.70) 100%
    );
  }

  /* hero-left: Text oben, Button unten */
  .hero-left {
    justify-content: space-between;
    padding-bottom: 52px;
  }

  /* Button zentriert auf Mobile */
  .hero-cta {
    display: flex;
    justify-content: center;
    margin-top: 0;
  }

  .hero-copy h1     { font-size: clamp(2.2rem, 8vw, 3rem); letter-spacing: 2px; }
  .hero-copy p      { font-size: 0.95rem; }

  /* Phone-Bridge: kleiner, zentriert auf Mobile */
  .phone-bridge-wrapper {
    justify-content: center;
    padding-right: 0;
  }
  .phone-mockup-css {
    width: 210px;
    height: 430px;
    border-radius: 38px;
    border-width: 7px;
  }
  /* Halbes Handy (215px) + 44px Luft = 259px */
  .features     { padding-bottom: 259px; }
  .app-section  { padding-top:    259px; }

  .features-inner    { grid-template-columns: 1fr; gap: 16px; }
  .app-inner         { grid-template-columns: 1fr; }
  .location-explorer { height: 320px; }
  .explorer-map      { width: 260px; height: 260px; }
}

/* ─ Mobile 480px ─────────────────────────────────────── */
@media (max-width: 480px) {
  .hero-inner    { padding: 0 20px; }
  .hero-left     { padding-bottom: 44px; }
  .hero-copy h1  { font-size: clamp(2rem, 9vw, 2.6rem); letter-spacing: 1.5px; }
  .btn-apk       { font-size: 0.88rem; padding: 13px 20px; }

  .phone-mockup-css  { width: 180px; height: 368px; border-radius: 32px; }
  /* Halbes Handy (184px) + 36px = 220px */
  .features          { padding-bottom: 220px; }
  .app-section       { padding-top:    220px; }
}
