/* KlickZeit — Promotional Site */

:root {
  --green-500: #4CAF50;
  --green-600: #10b981;
  --green-700: #059669;
  --green-100: #d1fae5;
  --green-50: #ecfdf5;

  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-muted: #f4f4f5;
  --text: #18181b;
  --text-muted: #71717a;
  --text-subtle: #a1a1aa;
  --border: #e4e4e7;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 60px rgba(16, 185, 129, 0.15);
  --header-bg: rgba(250, 250, 250, 0.85);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.18), transparent);

  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: 0.2s ease;
  --container: min(1120px, 100% - 2rem);
  --header-h: 72px;
}

[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-elevated: #18181b;
  --bg-muted: #27272a;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-subtle: #71717a;
  --border: #3f3f46;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(16, 185, 129, 0.08);
  --header-bg: rgba(10, 10, 11, 0.85);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.12), transparent);
  --green-100: #064e3b;
  --green-50: #022c22;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.15rem;
}

.logo img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--green-600);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  background: var(--bg-muted);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn,
.legal-lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.lang-btn.active,
.legal-lang-btn.active {
  background: var(--bg-elevated);
  color: var(--green-600);
  box-shadow: var(--shadow);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--green-600);
  color: var(--green-600);
}

.icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-content {
  max-width: 540px;
}

.badge {
  display: inline-block;
  background: var(--green-50);
  color: var(--green-600);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--text);
  color: var(--bg);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

[data-theme="dark"] .store-btn {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

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

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.75;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Hero device screenshot */
.hero-phone {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-phone::before {
  content: '';
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.28), transparent 68%);
  filter: blur(36px);
  pointer-events: none;
}

.hero-device {
  position: relative;
  z-index: 1;
  width: min(100%, 300px);
  aspect-ratio: 955 / 1880;
  border-radius: 28px;
  overflow: hidden;
  line-height: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 28px 56px -18px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(16, 185, 129, 0.12),
    0 0 72px rgba(16, 185, 129, 0.14);
}

.hero-device-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* About */
.about {
  padding: 3rem 0;
  background: var(--bg-muted);
}

.about-text {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 185, 129, 0.3);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* How it works */
.how {
  background: var(--bg-muted);
}

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

.step {
  flex: 1;
  min-width: 220px;
  max-width: 300px;
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
}

.step-num {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--green-500), var(--green-600));
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-arrow {
  font-size: 1.5rem;
  color: var(--green-600);
  align-self: center;
  font-weight: 300;
}

/* Pricing table */
.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.pricing-table th,
.pricing-table td {
  padding: 1rem 1.25rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.pricing-table thead th {
  background: var(--bg-muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-table .pro-col {
  background: var(--green-50);
  color: var(--green-600);
}

.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-table .price-row td {
  font-weight: 700;
  font-size: 1.05rem;
}

.pricing-table .pro-col + td,
.pricing-table td:last-child {
  background: rgba(16, 185, 129, 0.04);
}

[data-theme="dark"] .pricing-table .pro-col {
  background: var(--green-50);
}

.check { font-size: 1.1rem; }

/* Screenshots */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.screenshot-card {
  margin: 0;
  text-align: center;
}

.screenshot-card figcaption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.screenshot-frame {
  aspect-ratio: 9 / 19.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.screenshot-frame:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Privacy */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.privacy-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.privacy-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.privacy-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  background: var(--bg-muted);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.faq-item summary {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--green-600);
  font-weight: 400;
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--green-600);
}

.faq-item p {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* CTA */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  color: #fff;
  padding: 4rem 2rem;
  border-radius: var(--radius-lg);
}

.cta-box h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.cta-box p {
  opacity: 0.9;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-box .store-buttons {
  justify-content: center;
}

.cta-box .store-btn {
  background: #fff;
  color: var(--green-700);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.75rem;
}

.footer-dev {
  font-size: 0.8rem !important;
  color: var(--text-subtle) !important;
  margin-top: 0.5rem !important;
}

.footer-links h4,
.footer-platforms h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle);
  margin-bottom: 1rem;
}

.footer-links ul,
.footer-platforms ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-platforms li {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-subtle);
}

/* Responsive */
@media (min-width: 961px) {
  .hero-device {
    width: min(100%, 320px);
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    margin: 0 auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .features-grid,
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .step-arrow { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links li {
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 0.85rem 0;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 600px) {
  .section { padding: 3.5rem 0; }

  .features-grid,
  .privacy-grid,
  .screenshots-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-device {
    width: min(100%, 260px);
  }
}
