/* ============================================================
   MYPOLLY – DESIGN TOKENS
   Alle Farben, Schriften und Abstände zentral hier ändern.
   ============================================================ */

:root {
  /* --- FARBEN --- */
  --color-primary:        #216ac7;   /* polly-blue – Logo-Hintergrund */
  --color-secondary-dark: #7d9dd8;   /* Hover */
  --color-accent:         #7d9dd8;   /* Mintgrün – Akzente */

  --color-hero-bg:        #fdfdfd;   /* Hero-Hintergrund */
  --color-stats-card:     #216ac7;   /* Blaue Statistik-Karte */

  --color-btn-appstore:   #000000;   /* App Store Button */
  --color-btn-playstore:  #249661;   /* Google Play Button (gleich wie Stats-Karte) */

  --color-star:           #f59e0b;   /* Sterne */

  --color-text:           #2E2A2B;   /* Haupttext */
  --color-text-muted:     #6b7280;   /* Sekundärtext */
  --color-text-light:     #ffffff;   /* Heller Text */

  --color-bg:             #fdfdfd;
  --color-bg-alt:         #f4f5f8;
  --color-border:         #e0e9ec;
  --color-card-bg:        #fdfdfd;

  --color-footer-bg:      #2E2A2B;   /* Fast Schwarz – Footer */

  /* --- SCHRIFTEN --- */
  --font-display: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;    /* Display / Headline / Title */
  --font-body:    'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;  /* Body / Label */
  --font-logo:    'Dancing Script', 'Brush Script MT', cursive;

  /* --- TYPOGRAFIE-SKALA (Material Design / Flutter) --- */
  --type-display-lg:   4rem;       /* 64px  Display Large   · Roboto 800 */
  --type-display-md:   2.75rem;    /* 44px  Display Medium  · Roboto 800 */
  --type-display-sm:   1.875rem;   /* 30px  Display Small   · Roboto 800 */
  --type-headline-lg:  1.75rem;    /* 28px  Headline Large  · Roboto 400 */
  --type-headline-md:  1.375rem;   /* 22px  Headline Medium · Roboto 400 */
  --type-headline-sm:  1.25rem;    /* 20px  Headline Small  · Roboto 400 */
  --type-title-lg:     1.25rem;    /* 20px  Title Large     · Roboto 700 */
  --type-title-md:     1.125rem;   /* 18px  Title Medium    · Roboto 700 */
  --type-title-sm:     1rem;       /* 16px  Title Small     · Roboto 700 */
  --type-body-lg:      1.125rem;   /* 18px  Body Large      · Open Sans 400 */
  --type-body-md:      0.875rem;   /* 14px  Body Medium     · Open Sans 400 */
  --type-body-sm:      0.75rem;    /* 12px  Body Small      · Open Sans 400 */
  --type-label-lg:     1rem;       /* 16px  Label Large     · Open Sans 500 */
  --type-label-md:     0.875rem;   /* 14px  Label Medium    · Open Sans 500 */
  --type-label-sm:     0.75rem;    /* 12px  Label Small     · Open Sans 500 */

  /* --- SCHRIFTGRÖSSEN (Aliasnamen) --- */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.25rem;
  --fs-2xl:  1.5rem;
  --fs-3xl:  1.875rem;
  --fs-4xl:  2.25rem;
  --fs-5xl:  3rem;

  /* --- SCHRIFTGEWICHTE --- */
  --fw-normal:    400;
  --fw-medium:    500;
  --fw-semibold:  600;
  --fw-bold:      700;
  --fw-extrabold: 800;

  /* --- ABSTÄNDE --- */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* --- RADIEN --- */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* --- SCHATTEN --- */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 30px rgba(0,0,0,0.12);

  /* --- LAYOUT --- */
  --container-max:     1200px;
  --container-padding: 1.5rem;
}

/* ============================================================
   RESET & BASIS
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); font-size: var(--type-body-lg); color: var(--color-text); background: var(--color-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); }
img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
p     { margin-bottom: var(--space-4); line-height: 1.7; }
p:last-child { margin-bottom: 0; }

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

/* ============================================================
   LOGO
   ============================================================ */

.logo {
  display: inline-flex;
  align-items: center;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.88; }
.logo img {
  height: 44px;
  width: auto;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  gap: var(--space-4);
}

/* Desktop nav (optional, ausgeblendet wie im Original) */
.main-nav { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  transition: background 0.2s;
}
.instagram-link:hover { background: #e5e7eb; }
.instagram-link svg   { width: 18px; height: 18px; }

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
}

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: var(--space-4) var(--container-padding);
  gap: var(--space-1);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-text);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  transition: background 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a.active { background: var(--color-bg-alt); color: var(--color-primary); }

/* ============================================================
   HERO  (zwei Spalten, weißer Hintergrund)
   ============================================================ */

.hero {
  background: var(--color-hero-bg);
  padding: var(--space-16) 0 var(--space-20);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  grid-template-areas:
    "appinfo phones"
    "badge   phones"
    "text    phones";
  column-gap: var(--space-12);
  row-gap: var(--space-5);
  align-items: start;
}
.app-info-row    { grid-area: appinfo; }
.customers-choice { grid-area: badge; }
.hero-text       { grid-area: text; }
.hero-image      { grid-area: phones; align-self: center; }

/* Customer's Choice Badge */
.customers-choice img {
  height: 64px;
  width: auto;
}

/* App-Info-Zeile */
.app-info-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.app-icon-small {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}
.app-icon-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-stars {
  color: var(--color-star);
  font-size: 0.85rem;
  margin-bottom: 2px;
}

.app-name-rating {
  display: flex;
  flex-direction: column;
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--color-text-muted);
}
.app-name-rating strong { color: var(--color-text); }

/* Headline */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(var(--type-display-sm), 3.5vw, var(--type-display-md));
  font-weight: var(--fw-extrabold);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.hero p {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* KOSTENLOSE APP Tag */
.free-tag {
  display: inline-block;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-store:hover { opacity: 0.88; }
.btn-store .material-icons { font-size: 1.25rem; line-height: 1; }
.btn-store .btn-icon { height: 1.1em; width: auto; flex-shrink: 0; }

.btn-appstore  { background: var(--color-btn-appstore); }
.btn-playstore { background: var(--color-btn-playstore); }

/* Hero Bild */
.hero-image img {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(0,0,0,0.15));
}

/* ============================================================
   STATS  (blaue Karte, nur Text)
   ============================================================ */

.stats-section {
  padding: 0 0 var(--space-16);
  background: var(--color-hero-bg);
}

.stats-card {
  background: var(--color-stats-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-12) var(--space-16);
  text-align: center;
}

.stat-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--type-headline-lg), 2.8vw, var(--type-display-sm));
  font-weight: var(--fw-bold);
  line-height: 1.3;
  margin-bottom: var(--space-4);
  color: #fff;
}

.stat-sub {
  font-family: var(--font-body);
  font-size: var(--type-body-lg);
  font-weight: var(--fw-semibold);
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS GRID
   ============================================================ */

.testimonials-section {
  padding: var(--space-16) 0 var(--space-20);
  background: var(--color-bg-alt);
}

.testimonials-headline {
  font-family: var(--font-display);
  font-size: var(--type-headline-lg);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-5);
}

.testimonial-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow: var(--shadow-sm);
}

.testimonial-stars {
  color: var(--color-star);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
  flex: 1;
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--type-label-sm);
  font-weight: var(--fw-medium);
  font-style: italic;
  color: var(--color-text-muted);
  text-align: right;
  margin-top: var(--space-3);
  display: block;
}

/* ============================================================
   FEATURES / WARUM POLLY
   ============================================================ */

.features-section {
  background: var(--color-bg-alt);
  padding: var(--space-20) 0;
}

.features-headline {
  font-family: var(--font-display);
  font-size: var(--type-headline-lg);
  font-weight: var(--fw-normal);
  color: var(--color-text);
  margin-bottom: var(--space-12);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 2rem;
  color: var(--color-primary);
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: var(--type-title-sm);
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.feature-item p {
  font-family: var(--font-body);
  font-size: var(--type-body-md);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: start;
}

.footer-logo img {
  height: 44px;
  width: auto;
}

.footer-col h4 {
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }

.footer-address {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

.footer-bottom {
  padding: var(--space-5) 0;
  text-align: center;
}
.footer-copy {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.4);
}

/* ============================================================
   PAGE HERO  (Unterseiten)
   ============================================================ */

.page-hero {
  background: var(--color-primary);
  color: #fff;
  padding: 15px 0;
  text-align: left;
}
.page-hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
}
.page-hero h1 { font-family: var(--font-display); color: #fff; font-size: var(--type-display-sm); font-weight: var(--fw-extrabold); margin: 0; }
.page-hero p  { font-family: var(--font-body); font-size: var(--type-body-lg); color: rgba(255,255,255,0.8); margin: 0; }

/* ============================================================
   FAQ SEITE
   ============================================================ */

.faq-section { padding: var(--space-16) 0; }

.faq-intro {
  max-width: 700px;
  margin: 0 auto var(--space-10);
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-card-bg);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  user-select: none;
  gap: var(--space-4);
}
.faq-question h3 {
  font-family: var(--font-display);
  font-size: var(--type-title-md);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  flex: 1;
}

.faq-icon {
  width: 28px; height: 28px;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  flex-shrink: 0;
  transition: transform 0.2s, background 0.2s;
  line-height: 1;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: #52b788; }

.faq-answer {
  display: none;
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-5);
}
.faq-item.open .faq-answer { display: block; }

.support-section {
  background: var(--color-bg-alt);
  padding: var(--space-16) 0;
  text-align: center;
}
.support-section h2 { margin-bottom: var(--space-4); }
.support-section p  { font-size: var(--fs-lg); color: var(--color-text-muted); margin-bottom: var(--space-8); }

.btn--primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn--primary:hover { opacity: 0.88; }

/* ============================================================
   RECHTSTEXTE
   ============================================================ */

.legal-content { padding: var(--space-16) 0 var(--space-20); }
.legal-content .container { max-width: 780px; }

.legal-content h2 { font-family: var(--font-display); font-size: var(--type-headline-lg); font-weight: var(--fw-normal); margin-top: var(--space-10); margin-bottom: var(--space-4); color: var(--color-primary); }
.legal-content h3 { font-family: var(--font-display); font-size: var(--type-title-md); font-weight: var(--fw-bold); margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--color-text); }
.legal-content h4 { font-family: var(--font-display); font-size: var(--type-title-sm); font-weight: var(--fw-bold); margin-top: var(--space-6); margin-bottom: var(--space-2); color: var(--color-text); }

.legal-content p,
.legal-content li { font-family: var(--font-body); font-size: var(--type-body-md); color: var(--color-text-muted); line-height: 1.8; margin-bottom: var(--space-3); }

.legal-content ul,
.legal-content ol { padding-left: var(--space-6); margin-bottom: var(--space-4); }
.legal-content ul li { list-style: disc; }
.legal-content ol li { list-style: decimal; }

.legal-content a { color: var(--color-primary); text-decoration: underline; }
.legal-content a:hover { opacity: 0.8; }

.legal-date { font-size: var(--fs-sm); color: var(--color-text-muted); font-style: italic; margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--color-border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet (≤ 1024 px) ------------------------------------ */
@media (max-width: 1024px) {
  .hero-inner           { column-gap: var(--space-8); }
  .testimonials-grid    { grid-template-columns: repeat(2, 1fr); }
  .features-grid        { grid-template-columns: repeat(2, 1fr); }
  .footer-top           { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .footer-logo          { grid-column: 1 / -1; }

  /* Store-Buttons im Header auf Tablet ausblenden */
  .header-actions .btn-store { display: none; }
}

/* --- Mobile (≤ 768 px) ------------------------------------- */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --space-20: 3rem;
    --space-16: 2.5rem;
    --space-12: 2rem;
  }

  /* Header – kein Burger-Menü, alle Icons gleich groß */
  .mobile-menu-toggle           { display: none; }
  .header-actions               { margin-left: auto; }
  .header-actions .btn-store,
  .header-actions .instagram-link {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: var(--radius-full);
  }
  .header-actions .btn-store    { display: inline-flex; }
  .header-actions .btn-store-label { display: none; }
  .instagram-label              { display: none; }

  /* Hero – Mobile-Reihenfolge per order */
  .hero                         { padding: var(--space-10) 0 var(--space-12); }
  .hero-inner                   { display: flex; flex-direction: column; gap: var(--space-5); }
  .app-info-row                 { order: 1; flex-wrap: wrap; gap: var(--space-2); }
  .hero-image                   { order: 2; }
  .customers-choice             { order: 3; }
  .hero-text                    { order: 4; }
  .hero-image img               { max-height: 300px; object-fit: contain; margin: 0 auto; }
  .hero h1                      { font-size: var(--fs-4xl); }
  .customers-choice img         { height: 48px; }
  .free-tag                     { margin-top: var(--space-2); }

  /* Stats */
  .stats-card                   { padding: var(--space-8) var(--space-6); border-radius: var(--radius-xl); }
  .stat-headline                { font-size: var(--fs-2xl); }
  .stat-sub                     { font-size: var(--fs-base); }

  /* Testimonials */
  .testimonials-grid            { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .testimonials-section         { padding: var(--space-10) 0; }
  .features-grid                { grid-template-columns: 1fr; }
  .features-section             { padding: var(--space-12) 0; }

  /* Footer */
  .footer-top                   { grid-template-columns: 1fr 1fr; }
  .footer-logo                  { grid-column: 1 / -1; }
  .site-footer                  { padding-top: var(--space-10); }

  /* Legal-Seiten */
  .legal-content h2             { font-size: var(--fs-xl); }
  .legal-content h3             { font-size: var(--fs-lg); }
  .page-hero h1                 { font-size: var(--fs-3xl); }
  .page-hero                    { padding: 15px 0; }

  /* FAQ */
  .faq-question h3              { font-size: var(--fs-base); }
}

/* --- Kleines Smartphone (≤ 480 px) ------------------------- */
@media (max-width: 480px) {
  .hero h1                      { font-size: var(--fs-3xl); }
  .hero-cta                     { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-store          { justify-content: center; }
  .hero-image img               { max-height: 240px; }
  .customers-choice img         { height: 40px; }

  .stats-card                   { padding: var(--space-6) var(--space-4); }
  .stat-headline                { font-size: var(--fs-xl); }

  .footer-top                   { grid-template-columns: 1fr; }
  .footer-col h4                { margin-top: var(--space-4); }
}
