:root {
  /* Green M3 Light Theme approximations */
  --md-sys-color-primary: #006e1c;
  --md-sys-color-on-primary: #ffffff;
  --md-sys-color-primary-container: #94f990;
  --md-sys-color-on-primary-container: #002204;
  --md-sys-color-secondary: #52634f;
  --md-sys-color-on-secondary: #ffffff;
  --md-sys-color-secondary-container: #d5e8cf;
  --md-sys-color-on-secondary-container: #111f0f;
  --md-sys-color-tertiary: #38656a;
  --md-sys-color-on-tertiary: #ffffff;
  --md-sys-color-tertiary-container: #bcebf0;
  --md-sys-color-on-tertiary-container: #002023;
  --md-sys-color-error: #ba1a1a;
  --md-sys-color-on-error: #ffffff;
  --md-sys-color-background: #fcfdf6;
  --md-sys-color-on-background: #1a1c19;
  --md-sys-color-surface: #f9faf3;
  --md-sys-color-on-surface: #1a1c19;
  --md-sys-color-surface-variant: #dee5d8;
  --md-sys-color-on-surface-variant: #424940;
  --md-sys-color-outline: #72796f;
  --md-sys-color-outline-variant: #c2c8bd;
  --md-sys-color-surface-container-lowest: #ffffff;
  --md-sys-color-surface-container: #f0f1ec;

  --border-radius: 16px;
  --box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

[data-theme="dark"] {
  /* Green M3 Dark Theme approximations */
  --md-sys-color-primary: #78dc77;
  --md-sys-color-on-primary: #00390a;
  --md-sys-color-primary-container: #005313;
  --md-sys-color-on-primary-container: #94f990;
  --md-sys-color-secondary: #baccb3;
  --md-sys-color-on-secondary: #253423;
  --md-sys-color-secondary-container: #3b4b38;
  --md-sys-color-on-secondary-container: #d5e8cf;
  --md-sys-color-tertiary: #a0cfd4;
  --md-sys-color-on-tertiary: #00363b;
  --md-sys-color-tertiary-container: #1e4d52;
  --md-sys-color-on-tertiary-container: #bcebf0;
  --md-sys-color-error: #ffb4ab;
  --md-sys-color-on-error: #690005;
  --md-sys-color-background: #1a1c19;
  --md-sys-color-on-background: #e2e3dd;
  --md-sys-color-surface: #121411;
  --md-sys-color-on-surface: #e2e3dd;
  --md-sys-color-surface-variant: #424940;
  --md-sys-color-on-surface-variant: #c2c8bd;
  --md-sys-color-outline: #8c9388;
  --md-sys-color-outline-variant: #424940;
  --md-sys-color-surface-container-lowest: #0c0f0c;
  --md-sys-color-surface-container: #1e201d;

  --box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background-color: var(--md-sys-color-background);
  color: var(--md-sys-color-on-background);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--md-sys-color-surface-container-lowest);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

select.lang-select {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface);
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--md-sys-color-on-surface-variant);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.theme-toggle:hover {
  background-color: var(--md-sys-color-surface-variant);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 1rem;
  background: linear-gradient(135deg, var(--md-sys-color-surface-container-lowest) 0%, var(--md-sys-color-primary-container) 100%);
  border-radius: 0 0 40px 40px;
  margin-bottom: 2rem;
}

[data-theme="dark"] .hero {
  background: linear-gradient(135deg, var(--md-sys-color-surface-container-lowest) 0%, #002204 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--md-sys-color-on-surface);
}

.hero p {
  font-size: 1.25rem;
  color: var(--md-sys-color-on-surface-variant);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  background-color: var(--md-sys-color-primary);
  color: var(--md-sys-color-on-primary);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.btn-download i {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.feature-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: transform 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--md-sys-color-primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  color: var(--md-sys-color-on-surface);
}

.feature-card p {
  color: var(--md-sys-color-on-surface-variant);
}

/* Story Section */
.story-section {
  background-color: var(--md-sys-color-secondary-container);
  padding: 3rem;
  border-radius: 24px;
  margin: 4rem 0;
  text-align: center;
  color: var(--md-sys-color-on-secondary-container);
}

.story-section h2 {
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: var(--md-sys-color-surface-container);
  padding: 3rem 1rem;
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  border-top: 1px solid var(--md-sys-color-outline-variant);
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  margin: 0 0.5rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .navbar {
    padding: 1rem;
  }

  .container {
    padding: 1rem;
  }
}

/* Content Pages (Privacy, Impressum, Support) */
.content-card {
  background-color: var(--md-sys-color-surface-container-lowest);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--md-sys-color-outline-variant);
  box-shadow: var(--box-shadow);
  max-width: 800px;
  margin: 2rem auto;
}

.content-card h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--md-sys-color-primary);
  text-align: center;
}

.content-card .subtitle {
  text-align: center;
  color: var(--md-sys-color-on-surface-variant);
  margin-bottom: 2rem;
}

.content-card h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--md-sys-color-on-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
  padding-bottom: 0.5rem;
}

.content-card h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--md-sys-color-primary);
}

.content-card p, .content-card li {
  margin-bottom: 1rem;
  color: var(--md-sys-color-on-surface);
}

.content-card ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.content-card a {
  color: var(--md-sys-color-primary);
  text-decoration: none;
  font-weight: 500;
}

.content-card a:hover {
  text-decoration: underline;
}

.content-card hr {
  border: 0;
  height: 1px;
  background-color: var(--md-sys-color-outline-variant);
  margin: 2rem 0;
}

/* Support specific */
.support-center {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.support-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
