/* ═══════════════════════════════════════════════════════
   DogPing Landing Page – Styles
   Material 3 inspired, Poppins font
   ═══════════════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  /* Primary – Material 3 default purple seed */
  --primary: #6750A4;
  --primary-light: #7F67BE;
  --primary-dark: #4F378B;
  --primary-container: #EADDFF;
  --on-primary: #FFFFFF;
  --on-primary-container: #21005D;

  /* Secondary */
  --secondary: #625B71;
  --secondary-container: #E8DEF8;

  /* Tertiary – accent */
  --tertiary: #7D5260;
  --tertiary-container: #FFD8E4;

  /* Surface / Background */
  --surface: #FFFBFE;
  --surface-variant: #E7E0EC;
  --on-surface: #1C1B1F;
  --on-surface-variant: #49454F;
  --outline: #79747E;

  /* Functional */
  --error: #B3261E;
  --blue-accent: #1565C0;
  --amber: #FFB300;

  /* Gradients */
  --gradient-hero: linear-gradient(135deg, #6750A4 0%, #9a7fdb 50%, #c4b5fd 100%);
  --gradient-card: linear-gradient(135deg, #f5f0ff 0%, #ede7f6 100%);
  --gradient-download: linear-gradient(135deg, #4F378B 0%, #7F67BE 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.14);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.18);

  /* Spacing */
  --section-py: 100px;
  --container-max: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--on-surface);
  background: var(--surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section Helpers ── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--on-surface);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--on-surface-variant);
  max-width: 640px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 100px;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn .material-icons-outlined { font-size: 20px; }

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

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

.btn--sm { padding: 8px 20px; font-size: .875rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }

/* ══════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.navbar__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.navbar__brand {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.navbar.scrolled .navbar__brand { color: var(--on-surface); }

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

.navbar__links a {
  font-size: .95rem;
  font-weight: 500;
  color: rgba(255,255,255,.9);
  transition: var(--transition);
  position: relative;
}

.navbar__links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: var(--transition);
}

.navbar__links a:not(.btn):hover::after { width: 100%; }

.navbar.scrolled .navbar__links a:not(.btn) { color: var(--on-surface); }
.navbar.scrolled .navbar__links a:not(.btn)::after { background: var(--primary); }

/* Hamburger */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 8px;
}

.navbar__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .navbar__toggle span { background: var(--on-surface); }

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.navbar__toggle.active span:nth-child(2) { opacity: 0; }
.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ══════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════ */
.hero {
  background: var(--gradient-hero);
  padding: 160px 0 120px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__cta .btn--primary {
  background: #fff;
  color: var(--primary);
}

.hero__cta .btn--primary:hover {
  background: #f0ecff;
  color: var(--primary-dark);
}

.hero__cta .btn--outline {
  border-color: rgba(255,255,255,.5);
  color: #fff;
}

.hero__cta .btn--outline:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
}

.hero__mockup {
  display: flex;
  justify-content: center;
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 2;
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* ── Phone Frame ── */
.phone-frame {
  width: 280px;
  height: 560px;
  background: #1a1a2e;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-xl), 0 0 0 2px rgba(255,255,255,.1);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #0d0d1a;
  border-radius: 14px;
  z-index: 10;
}

.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
}

.phone-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame--small {
  width: 220px;
  height: 440px;
  border-radius: 32px;
  padding: 10px;
}

.phone-frame--small::before {
  top: 14px;
  width: 80px;
  height: 20px;
  border-radius: 12px;
}

.phone-frame--small .phone-frame__screen {
  border-radius: 24px;
}

/* ══════════════════════════════════════════════════════
   FEATURES
   ══════════════════════════════════════════════════════ */
.features {
  padding: var(--section-py) 0;
  background: var(--surface);
}

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

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
}

.feature-card__title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--on-surface);
  margin-bottom: 8px;
}

.feature-card__desc {
  font-size: .925rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

/* ══════════════════════════════════════════════════════
   SCREENSHOTS
   ══════════════════════════════════════════════════════ */
.screenshots {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, #f8f5ff 0%, var(--surface) 100%);
}

.screenshots__carousel {
  position: relative;
  overflow: hidden;
}

.screenshots__track {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  transition: var(--transition);
}

.screenshot-item {
  text-align: center;
  flex-shrink: 0;
}

.screenshot-item__label {
  margin-top: 16px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--on-surface-variant);
}

.screenshots__controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.screenshots__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--outline);
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--on-surface);
}

.screenshots__arrow:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ══════════════════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════════════════ */
.how-it-works {
  padding: var(--section-py) 0;
  background: var(--surface);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 320px;
  padding: 0 24px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.step__icon {
  margin-bottom: 12px;
}

.step__icon .material-icons-outlined {
  font-size: 40px;
  color: var(--primary);
}

.step__title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step__desc {
  font-size: .925rem;
  color: var(--on-surface-variant);
  line-height: 1.65;
}

.step__connector {
  width: 80px;
  height: 2px;
  background: var(--surface-variant);
  margin-top: 24px;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 72px;
}

/* ══════════════════════════════════════════════════════
   DOGSPOT TYPES
   ══════════════════════════════════════════════════════ */
.dogspot-types {
  padding: var(--section-py) 0;
  background: linear-gradient(180deg, var(--surface) 0%, #f8f5ff 100%);
}

.dogspot-types__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.dogspot-type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--surface-variant);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.dogspot-type:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-container);
}

.dogspot-type__emoji {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.dogspot-type__label {
  font-size: .9rem;
  font-weight: 500;
  color: var(--on-surface);
}

/* ══════════════════════════════════════════════════════
   DOWNLOAD CTA
   ══════════════════════════════════════════════════════ */
.download {
  padding: var(--section-py) 0;
  background: var(--gradient-download);
}

.download__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.download__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.download__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 560px;
}

.download__badges {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  transition: var(--transition);
  display: inline-block;
}

.store-badge:hover {
  transform: translateY(-3px);
  filter: brightness(1.15);
}

.store-badge__svg {
  height: 52px;
  width: auto;
}

.download__image img {
  width: 180px;
  height: 180px;
  border-radius: 36px;
  box-shadow: var(--shadow-xl);
}

/* ══════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════ */
.footer {
  background: #1C1B1F;
  color: rgba(255,255,255,.7);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.footer__brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer__tagline {
  font-size: .925rem;
  margin-bottom: 8px;
}

.footer__version {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer__heading {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer__nav ul li,
.footer__legal ul li,
.footer__contact ul li {
  margin-bottom: 10px;
}

.footer__nav a,
.footer__legal a,
.footer__contact a {
  font-size: .9rem;
  transition: var(--transition);
}

.footer__nav a:hover,
.footer__legal a:hover,
.footer__contact a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 48px;
  padding: 24px 0;
  text-align: center;
  font-size: .85rem;
}

/* ══════════════════════════════════════════════════════
   SCROLL ANIMATIONS
   ══════════════════════════════════════════════════════ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(.4,0,.2,1), transform 0.6s cubic-bezier(.4,0,.2,1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.features__grid .animate-on-scroll:nth-child(2) { transition-delay: .06s; }
.features__grid .animate-on-scroll:nth-child(3) { transition-delay: .12s; }
.features__grid .animate-on-scroll:nth-child(4) { transition-delay: .18s; }
.features__grid .animate-on-scroll:nth-child(5) { transition-delay: .24s; }
.features__grid .animate-on-scroll:nth-child(6) { transition-delay: .30s; }
.features__grid .animate-on-scroll:nth-child(7) { transition-delay: .36s; }
.features__grid .animate-on-scroll:nth-child(8) { transition-delay: .42s; }
.features__grid .animate-on-scroll:nth-child(9) { transition-delay: .48s; }
.features__grid .animate-on-scroll:nth-child(10) { transition-delay: .54s; }
.features__grid .animate-on-scroll:nth-child(11) { transition-delay: .60s; }
.features__grid .animate-on-scroll:nth-child(12) { transition-delay: .66s; }

.dogspot-types__grid .animate-on-scroll:nth-child(2) { transition-delay: .04s; }
.dogspot-types__grid .animate-on-scroll:nth-child(3) { transition-delay: .08s; }
.dogspot-types__grid .animate-on-scroll:nth-child(4) { transition-delay: .12s; }
.dogspot-types__grid .animate-on-scroll:nth-child(5) { transition-delay: .16s; }
.dogspot-types__grid .animate-on-scroll:nth-child(6) { transition-delay: .20s; }
.dogspot-types__grid .animate-on-scroll:nth-child(7) { transition-delay: .24s; }
.dogspot-types__grid .animate-on-scroll:nth-child(8) { transition-delay: .28s; }
.dogspot-types__grid .animate-on-scroll:nth-child(9) { transition-delay: .32s; }
.dogspot-types__grid .animate-on-scroll:nth-child(10) { transition-delay: .36s; }
.dogspot-types__grid .animate-on-scroll:nth-child(11) { transition-delay: .40s; }
.dogspot-types__grid .animate-on-scroll:nth-child(12) { transition-delay: .44s; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
  }

  .hero__inner {
    gap: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .steps {
    flex-wrap: wrap;
    gap: 32px;
  }

  .step__connector { display: none; }
}

/* ── Mobile Large ── */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
  }

  .navbar__toggle { display: flex; }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 24px;
    box-shadow: var(--shadow-xl);
    transition: var(--transition);
  }

  .navbar__links.active { right: 0; }

  .navbar__links a { color: var(--on-surface) !important; }
  .navbar__links a:not(.btn)::after { background: var(--primary) !important; }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__cta { justify-content: center; }

  .hero__mockup {
    order: -1;
  }

  .phone-frame {
    width: 220px;
    height: 440px;
    border-radius: 32px;
    padding: 10px;
  }

  .phone-frame::before {
    top: 14px;
    width: 80px;
    height: 20px;
    border-radius: 12px;
  }

  .phone-frame__screen {
    border-radius: 24px;
  }

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

  .screenshots__track {
    gap: 24px;
  }

  .phone-frame--small {
    width: 180px;
    height: 360px;
  }

  .download__inner {
    flex-direction: column;
    text-align: center;
  }

  .download__badges { justify-content: center; }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .dogspot-types__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile Small ── */
@media (max-width: 480px) {
  .hero__title { font-size: 1.75rem; }
  .hero__subtitle { font-size: .95rem; }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--lg {
    padding: 12px 24px;
    justify-content: center;
  }

  .features__grid {
    gap: 16px;
  }

  .feature-card {
    padding: 24px 20px;
  }

  .dogspot-types__grid {
    grid-template-columns: 1fr;
  }

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

  .screenshots__track {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
}

/* ══════════════════════════════════════════════════════
   LEGAL PAGES (datenschutz, impressum)
   ══════════════════════════════════════════════════════ */
.legal-page {
  padding: 120px 0 80px;
  min-height: 100vh;
}

.legal-page h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--on-surface);
}

.legal-page h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--on-surface);
}

.legal-page h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--on-surface);
}

.legal-page p,
.legal-page ul,
.legal-page li {
  font-size: .95rem;
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul {
  padding-left: 24px;
  list-style: disc;
}

.legal-page a {
  color: var(--primary);
  text-decoration: underline;
}

.legal-page a:hover {
  color: var(--primary-dark);
}

/* Navbar on legal pages – always solid */
.navbar--solid {
  background: #fff !important;
  box-shadow: var(--shadow-sm) !important;
}

.navbar--solid .navbar__brand { color: var(--on-surface) !important; }
.navbar--solid .navbar__links a:not(.btn) { color: var(--on-surface) !important; }
.navbar--solid .navbar__links a:not(.btn)::after { background: var(--primary) !important; }
.navbar--solid .navbar__toggle span { background: var(--on-surface) !important; }
