/* ============================================================
   Kleines Chaos — Support Site
   Design: Apple-inspired, family-friendly, modern
   ============================================================ */

:root {
  --primary:       #E8734A;
  --primary-light: #F09070;
  --primary-dark:  #C45828;
  --accent:        #5E9EFF;
  --bg:            #F5F5F7;
  --surface:       #FFFFFF;
  --surface2:      #F0F0F3;
  --text:          #1D1D1F;
  --text-secondary:#6E6E73;
  --text-hint:     #AEAEB2;
  --border:        rgba(0,0,0,0.08);
  --shadow:        0 2px 16px rgba(0,0,0,0.07);
  --shadow-lg:     0 8px 40px rgba(0,0,0,0.12);
  --radius:        16px;
  --radius-sm:     10px;
  --nav-h:         64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:            #1C1C1E;
    --surface:       #2C2C2E;
    --surface2:      #3A3A3C;
    --text:          #F5F5F7;
    --text-secondary:#AEAEB2;
    --text-hint:     #6E6E73;
    --border:        rgba(255,255,255,0.08);
    --shadow:        0 2px 16px rgba(0,0,0,0.35);
    --shadow-lg:     0 8px 40px rgba(0,0,0,0.5);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

@media (prefers-color-scheme: dark) {
  nav { background: rgba(28,28,30,0.85); }
}

.nav-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(232,115,74,0.1);
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 600;
}

.nav-cta:hover { background: var(--primary-dark) !important; }

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ── */
.hero {
  padding: 100px 24px 80px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(232,115,74,0.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}

.hero-app-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  margin: 0 auto 32px;
  box-shadow: 0 20px 60px rgba(232,115,74,0.35);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(232,115,74,0.4);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(232,115,74,0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ── Section ── */
section {
  padding: 80px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 560px;
}

/* ── Feature Grid ── */
.features {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--surface2);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Download ── */
.download {
  text-align: center;
}

.store-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: var(--bg);
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
  min-width: 160px;
}

.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 0.9;
}

.store-btn-icon { font-size: 28px; }

.store-btn-text { text-align: left; }
.store-btn-text small { display: block; font-size: 11px; opacity: 0.7; }
.store-btn-text strong { font-size: 16px; }

/* ── Cards / Content ── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card + .card { margin-top: 20px; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  transition: background 0.15s;
}

.faq-q:hover { background: var(--surface2); }

.faq-chevron {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  transition: transform 0.25s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.open .faq-a { max-height: 300px; }

.faq-a-inner { padding: 0 22px 20px; }

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.contact-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-card a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* ── Privacy Content ── */
.privacy-content h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
  color: var(--text);
}

.privacy-content h2:first-child { margin-top: 0; }

.privacy-content p {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.75;
}

.privacy-content ul {
  margin: 8px 0 16px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.privacy-content strong { color: var(--text); }

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(94,158,255,0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* ── Page Hero (subpages) ── */
.page-hero {
  padding: 72px 24px 56px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.page-hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-hint);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--primary); }

/* ── Divider ── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── Utils ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 64px 20px 56px; }
  .hero-app-icon { width: 96px; height: 96px; font-size: 44px; border-radius: 22px; }
  section { padding: 56px 0; }
  .card { padding: 22px; }
  .page-hero { padding: 52px 20px 40px; }
}
