/* ========== CSS Custom Properties ========== */
:root {
  /* F. Bosch Corporate Colors – Light Mode */
  --bg:          #cfeae6;   /* mint-green background */
  --bg-card:     #ffffff;   /* white cards / sections */
  --fg:          #1a1a1a;
  --fg-muted:    #4a5568;
  --primary:     #05b48d;   /* teal brand color */
  --primary-fg:  #ffffff;
  --secondary:   #30bcad;   /* lighter teal */
  --accent:      #047c71;   /* darker teal (hover) */
  --muted:       #e8f5f3;
  --border:      #b8d8d3;
  --radius:      0.75rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(5,180,141,.12), 0 2px 6px rgba(0,0,0,.05);
  --shadow-lg:   0 10px 30px rgba(5,180,141,.15), 0 4px 12px rgba(0,0,0,.07);
  --transition:  0.2s ease;
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --max-w:       1200px;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* F. Bosch Corporate Colors – Dark Mode */
    --bg:         #0f1f1d;   /* very dark teal-black */
    --bg-card:    #152b28;   /* dark teal card */
    --fg:         #f0f9f7;   /* light mint white */
    --fg-muted:   #9cb8b4;
    --primary:    #30bcad;   /* brighter teal for dark bg */
    --primary-fg: #0f1f1d;
    --secondary:  #047c71;
    --accent:     #05b48d;
    --muted:      #1a3330;
    --border:     #1a3330;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.3);
    --shadow-md:  0 4px 12px rgba(0,0,0,.5), 0 2px 6px rgba(0,0,0,.35);
    --shadow-lg:  0 10px 30px rgba(0,0,0,.6), 0 4px 12px rgba(0,0,0,.4);
  }
}

/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ========== Layout Utilities ========== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-header {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

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

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-card) 95%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.logo img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
}

.main-nav a {
  font-size: 0.9375rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

.main-nav a:hover { color: var(--fg); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition), transform 0.1s ease;
  border: none;
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-primary:hover { background: var(--accent); }

.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--primary);
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.btn-outline:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); }

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  border-radius: calc(var(--radius) + 2px);
}

.btn-lg.btn-outline {
  padding: 0.875rem 2rem;
}

/* ========== Language Selector Combobox ========== */
.lang-select {
  position: relative;
}

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  padding: 0.375rem 0.625rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.lang-current:hover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: var(--primary);
}

.lang-current[aria-expanded="true"] {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  border-color: var(--primary);
}

.lang-flag { font-size: 1.125rem; line-height: 1; }

.lang-chevron {
  width: 0.875rem;
  height: 0.875rem;
  stroke: currentColor;
  transition: transform var(--transition);
  flex-shrink: 0;
}

.lang-current[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  min-width: 9rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.375rem;
  list-style: none;
  z-index: 200;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--fg);
  transition: background var(--transition);
  outline: none;
}

.lang-option:hover,
.lang-option:focus {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.lang-option[aria-selected="true"] {
  color: var(--primary);
  font-weight: 500;
}

.lang-check {
  margin-left: auto;
  width: 1rem;
  height: 1rem;
  stroke: var(--primary);
  flex-shrink: 0;
}

/* ========== Hero Section ========== */
.hero {
  padding: 5rem 0 6rem;
  background: linear-gradient(to bottom, var(--bg-card) 0%, var(--bg) 30%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero-content { space-y: 2rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-badge svg { width: 1rem; height: 1rem; flex-shrink: 0; stroke: var(--primary); }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero h1 .highlight { color: var(--primary); }

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--fg-muted);
  max-width: 36rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: center;
}

.store-badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 162px;
  height: 54px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #000000;
  overflow: hidden;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}

@media (prefers-color-scheme: dark) {
  .store-badge-apple {
    filter: invert(1);
  }
}

.store-badge-link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.store-badge {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hero-disclaimer {
  font-size: 0.8125rem;
  color: var(--fg-muted);
}

/* Hero image card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card-wrap {
  position: relative;
  width: 100%;
  max-width: 28rem;
}

.hero-card-glow {
  position: absolute;
  inset: -1rem;
  background: radial-gradient(
    ellipse at center,
    color-mix(in srgb, var(--primary) 20%, transparent) 0%,
    transparent 70%
  );
  border-radius: 2rem;
  filter: blur(20px);
}

.hero-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 2rem;
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.hero-card img {
  width: 100%;
  border-radius: 1rem;
}

/* ========== Problem Section ========== */
.section-problem {
  padding: 5rem 0 6rem;
  background: var(--bg-card);  /* white / dark teal – abwechselnd zu Hero */
}

.cards-3 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.problem-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: box-shadow var(--transition);
}

.problem-card:hover { box-shadow: var(--shadow-md); }

.icon-circle {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.icon-circle svg { width: 2rem; height: 2rem; }

.ic-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.ic-primary svg { stroke: var(--primary); }

.ic-secondary { background: color-mix(in srgb, var(--secondary) 14%, transparent); }
.ic-secondary svg { stroke: var(--secondary); }

.ic-accent { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.ic-accent svg { stroke: var(--accent); }

.problem-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.problem-card p { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.65; }

/* ========== Features Section ========== */
.section-features {
  padding: 5rem 0 6rem;
  background: var(--bg);
}

.feature-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  transition: border-color var(--transition);
}

.feature-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, transparent); }

.feature-badge {
  position: absolute;
  top: -0.75rem;
  left: 2rem;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.icon-square {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.icon-square svg { width: 1.75rem; height: 1.75rem; }

.is-primary { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.is-primary svg { stroke: var(--primary); }

.is-secondary { background: color-mix(in srgb, var(--secondary) 14%, transparent); }
.is-secondary svg { stroke: var(--secondary); }

.is-accent { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.is-accent svg { stroke: var(--accent); }

.feature-card h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

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

/* ========== Benefits Section ========== */
.section-benefits {
  padding: 5rem 0 6rem;
  background: var(--bg-card);
}

.benefits-grid {
  display: grid;
  gap: 1rem;
  max-width: 62rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.benefit-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.625rem;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon svg { width: 1.375rem; height: 1.375rem; stroke: var(--primary); }

.benefit-item h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.benefit-item p { font-size: 0.875rem; color: var(--fg-muted); line-height: 1.6; }

/* ========== How it Works Section ========== */
.section-howto {
  padding: 5rem 0 6rem;
  background: var(--bg);
}

.steps-grid {
  display: grid;
  gap: 2rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

.step-item { text-align: center; }

.step-number {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--primary) 18%, transparent);
}

.step-item h3 {
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.step-item p { font-size: 0.9375rem; color: var(--fg-muted); line-height: 1.65; }

/* ========== Trust Section ========== */
.section-trust {
  padding: 5rem 0 6rem;
  background: var(--bg-card);
}

.trust-grid {
  display: grid;
  gap: 0.875rem;
  max-width: 52rem;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.trust-item svg { width: 1.375rem; height: 1.375rem; stroke: var(--primary); flex-shrink: 0; }

.trust-item span { font-size: 0.9375rem; font-weight: 500; }

/* ========== CTA Section ========== */
.section-cta {
  padding: 5rem 0 6rem;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 8%, var(--bg)),
    color-mix(in srgb, var(--secondary) 10%, var(--bg)),
    color-mix(in srgb, var(--accent) 8%, var(--bg))
  );
}

.cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.cta-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1.25rem;
  margin: 0 auto 2rem;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.cta-inner p {
  font-size: 1.125rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-disclaimer { font-size: 0.8125rem; color: var(--fg-muted); }

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.footer-logo img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--fg-muted);
  transition: color var(--transition);
}

.footer-nav a:hover { color: var(--fg); }

.footer-copy {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

/* ========== Subpages (Impressum / Datenschutz) ========== */
.subpage-main {
  max-width: 48rem;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.subpage-main h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
}

.prose { color: var(--fg-muted); }

.prose section { margin-bottom: 2.5rem; }

.prose h2 {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.875rem;
}

.prose h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.5rem;
  margin-top: 1.25rem;
}

.prose p { font-size: 0.9375rem; line-height: 1.75; margin-bottom: 0.75rem; }

.prose ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.prose ul li { font-size: 0.9375rem; line-height: 1.75; margin-bottom: 0.375rem; }

/* ========== SVG Icon Defaults ========== */
svg {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
