/* ==========================================================================
   MeinPflegetagebuch - Landing Page Styles
   Design System basierend auf Styleguide v1.1
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Primärfarben */
  --color-primary: #000000;
  --color-background: #FFFFFF;
  --color-surface: #F9FAFB;

  /* Markenfarben */
  --color-brand-mint: #B8E0D2;
  --color-brand-mint-light: #E8F5F0;
  --color-brand-coral: #E8826A;
  --color-brand-coral-dark: #D4715A;
  --color-brand-petrol: #3D5A5A;

  /* Textfarben */
  --color-text-primary: #000000;
  --color-text-secondary: #4B5563;
  --color-text-muted: #9CA3AF;

  /* Graustufen */
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;

  /* Semantische Farben */
  --color-success: #10B981;

  /* Spacing (8px Basis) */
  --spacing-2xs: 4px;
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  --spacing-4xl: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-subtle: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-card: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-elevated: 0 4px 24px rgba(0,0,0,0.08);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-display: 2.5rem;    /* 40px */
  --font-size-h1: 2rem;           /* 32px */
  --font-size-h2: 1.5rem;         /* 24px */
  --font-size-h3: 1.25rem;        /* 20px */
  --font-size-body-large: 1.125rem; /* 18px */
  --font-size-body: 1rem;         /* 16px */
  --font-size-caption: 0.875rem;  /* 14px */
  --font-size-label: 0.75rem;     /* 12px */

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Layout */
  --max-width: 1200px;
  --max-width-content: 800px;
  --screen-padding: 24px;
}

/* --------------------------------------------------------------------------
   Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background-color: var(--color-background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-h1);
}

h2 {
  font-size: var(--font-size-h2);
}

h3 {
  font-size: var(--font-size-h3);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
}

.text-muted {
  color: var(--color-text-muted);
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--screen-padding);
}

.container--narrow {
  max-width: var(--max-width-content);
}

section {
  padding: var(--spacing-4xl) 0;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-gray-100);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.header__logo img {
  height: 36px;
  width: auto;
}

.header__logo span {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-body-large);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.header__nav a {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  transition: color 150ms ease;
}

.header__nav a:hover {
  color: var(--color-text-primary);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding-top: calc(64px + var(--spacing-4xl));
  padding-bottom: var(--spacing-3xl);
  background: linear-gradient(180deg, var(--color-brand-mint-light) 0%, var(--color-background) 100%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero__content {
  max-width: 520px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--color-background);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
}

.hero__title {
  font-size: var(--font-size-display);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.03em;
}

.hero__subtitle {
  font-size: var(--font-size-body-large);
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 440px;
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  max-height: 580px;
  width: auto;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: inherit;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 150ms ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-background);
}

.btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--color-background);
  color: var(--color-text-primary);
  border: 1px solid var(--color-gray-200);
}

.btn--secondary:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-300);
}

.btn--store {
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: var(--radius-sm);
}

.btn--store img {
  height: 40px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Problem Section
   -------------------------------------------------------------------------- */
.problem {
  background: var(--color-background);
}

.problem__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.problem__title {
  margin-bottom: var(--spacing-xl);
}

.problem__list {
  text-align: left;
  margin-bottom: var(--spacing-xl);
}

.problem__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--color-gray-100);
}

.problem__item:last-child {
  border-bottom: none;
}

.problem__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--color-brand-coral);
}

.problem__text {
  font-size: var(--font-size-body-large);
  color: var(--color-text-secondary);
}

.problem__solution {
  font-size: var(--font-size-body-large);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
  padding: var(--spacing-lg);
  background: var(--color-brand-mint-light);
  border-radius: var(--radius-lg);
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
  background: var(--color-gray-50);
}

.features__title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--color-background);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-mint-light);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-size: 24px;
}

.feature-card__title {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-xs);
}

.feature-card__description {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   Screenshots Section
   -------------------------------------------------------------------------- */
.screenshots {
  background: var(--color-background);
  overflow: hidden;
}

.screenshots__title {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.screenshots__subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--spacing-3xl);
}

.screenshots__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.screenshot {
  text-align: center;
}

.screenshot__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  margin-bottom: var(--spacing-md);
  border: 1px solid var(--color-gray-100);
}

.screenshot__label {
  font-size: var(--font-size-caption);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.screenshot__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  color: var(--color-background);
  border-radius: 50%;
  font-size: var(--font-size-label);
  font-weight: var(--font-weight-semibold);
  margin-right: var(--spacing-xs);
}

/* --------------------------------------------------------------------------
   Trust Section
   -------------------------------------------------------------------------- */
.trust {
  background: var(--color-gray-50);
  padding: var(--spacing-3xl) 0;
}

.trust__inner {
  display: flex;
  justify-content: center;
  gap: var(--spacing-3xl);
  flex-wrap: wrap;
}

.trust__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-secondary);
}

.trust__icon {
  width: 24px;
  height: 24px;
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.cta {
  background: var(--color-brand-mint-light);
}

.cta__inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta__title {
  margin-bottom: var(--spacing-md);
}

.cta__subtitle {
  margin-bottom: var(--spacing-xl);
}

.cta__buttons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
  margin-bottom: var(--spacing-lg);
}

.btn--google-play {
  position: relative;
  opacity: 0.8;
  cursor: default;
}

.btn--google-play:hover {
  transform: none;
  opacity: 0.8;
}

.btn__tag {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--color-brand-coral);
  color: white;
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.cta__note {
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-background);
  border-top: 1px solid var(--color-gray-100);
  padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer__logo img {
  height: 32px;
  width: auto;
}

.footer__logo span {
  font-weight: var(--font-weight-semibold);
}

.footer__links {
  display: flex;
  gap: var(--spacing-xl);
}

.footer__links a {
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
  transition: color 150ms ease;
}

.footer__links a:hover {
  color: var(--color-text-primary);
}

.footer__partner {
  font-size: var(--font-size-caption);
  color: var(--color-text-muted);
}

.footer__partner a {
  color: var(--color-text-secondary);
  text-decoration: underline;
}

.footer__partner a:hover {
  color: var(--color-text-primary);
}

.footer__copyright {
  font-size: var(--font-size-label);
  color: var(--color-text-muted);
  margin-top: var(--spacing-md);
}

/* --------------------------------------------------------------------------
   Legal Pages (Impressum, Datenschutz)
   -------------------------------------------------------------------------- */
.legal {
  padding-top: calc(64px + var(--spacing-3xl));
}

.legal__content {
  max-width: 720px;
  margin: 0 auto;
}

.legal__title {
  margin-bottom: var(--spacing-xl);
}

.legal__section {
  margin-bottom: var(--spacing-xl);
}

.legal__section h2 {
  font-size: var(--font-size-h3);
  margin-bottom: var(--spacing-sm);
}

.legal__section p {
  white-space: pre-line;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__subtitle {
    max-width: 100%;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-height: 400px;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .screenshots__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-display: 2rem;
    --font-size-h1: 1.75rem;
    --font-size-h2: 1.25rem;
    --spacing-4xl: 64px;
    --spacing-3xl: 48px;
  }

  .header__nav {
    display: none;
  }

  .hero {
    padding-top: calc(64px + var(--spacing-2xl));
  }

  .hero__image img {
    max-height: 320px;
  }

  .screenshots__grid {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .trust__inner {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }

  .cta__buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer__links {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
  }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}
