:root {
  --primary: #006F68;
  --primary-dark: #00534E;
  --secondary: #EAF5F2;
  --background: #F5FAF8;
  --card: #FFFFFF;
  --text-primary: #17201F;
  --text-secondary: #687573;
  --border: #D8E1DF;
  --on-primary: #FFFFFF;
  --success: #2E8B57;
  --warning: #E0A62B;
  --error: #D64545;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.6;
}

/* Language toggling: each translatable block is duplicated once per
   language; only the active one renders. */
[data-lang] { display: none; }
html[lang="de"] [data-lang="de"] { display: block; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="de"] span[data-lang="de"],
html[lang="en"] span[data-lang="en"] { display: inline; }

a { color: var(--primary); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.3px; margin: 0 0 0.5em; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 760px; }

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 250, 248, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.lang-toggle {
  display: flex;
  background: var(--secondary);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font);
}

html[lang="de"] .lang-toggle button[data-set-lang="de"],
html[lang="en"] .lang-toggle button[data-set-lang="en"] {
  background: var(--primary);
  color: var(--on-primary);
}

/* --- Hero --- */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

/* display set below, scoped by language — see the [data-lang] rules near
   the top of this file for why an unscoped `.eyebrow{display:...}` here
   would win the cascade over the hide rule and show both languages. */
html[lang="de"] .eyebrow[data-lang="de"],
html[lang="en"] .eyebrow[data-lang="en"] {
  display: inline-block;
}

.eyebrow {
  background: var(--secondary);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  max-width: 760px;
  margin: 0 auto 20px;
}

.hero p.lead {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- App store badge (placeholder until the app is live) --- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text-primary);
  color: white;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.store-badge svg { width: 20px; height: 20px; flex-shrink: 0; }
.store-badge .label small { display: block; font-weight: 400; font-size: 11px; opacity: 0.8; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  background: white;
}

.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* --- Phone mockup (pure CSS, no image assets) --- */
.phone-mockup {
  margin: 56px auto 0;
  width: 280px;
  height: 560px;
  border-radius: 44px;
  background: var(--text-primary);
  padding: 14px;
  box-shadow: 0 40px 80px -20px rgba(0, 111, 104, 0.35);
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--background);
  border-radius: 32px;
  overflow: hidden;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mock-title { font-weight: 700; font-size: 17px; }

.mock-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--secondary);
}

.mock-card {
  background: white;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.mock-icon {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--secondary);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; flex-shrink: 0;
}

.mock-lines { flex: 1; }
.mock-line { height: 8px; border-radius: 4px; background: var(--border); margin-bottom: 6px; }
.mock-line.short { width: 55%; }
.mock-line.tiny { height: 6px; width: 35%; background: var(--secondary); margin-bottom: 0; }

.mock-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  color: white;
}
.mock-pill.green { background: var(--success); }
.mock-pill.amber { background: var(--warning); }

html[lang="de"] .mock-pill[data-lang="de"],
html[lang="en"] .mock-pill[data-lang="en"] {
  display: inline-block;
}

.mock-scan-btn {
  margin-top: auto;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}

/* --- Sections --- */
section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 { font-size: 32px; }
.section-head p { color: var(--text-secondary); font-size: 17px; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  border: 1px solid var(--border);
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  margin-bottom: 16px;
}

.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 14.5px; margin: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--secondary);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: 15px; margin: 0; }

.privacy-band {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.privacy-band .icon-big {
  font-size: 56px;
  flex-shrink: 0;
}

.privacy-band h2 { color: white; font-size: 28px; }
.privacy-band p { color: rgba(255,255,255,0.85); font-size: 16px; margin: 0; }

.privacy-band ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.privacy-band li {
  gap: 10px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(255,255,255,0.95);
}

/* Higher specificity than the base [data-lang]{display:none} hide rule is
   needed here anyway (for the flex layout), so fold the language check into
   the same rule instead of a separate lower-specificity one losing to it. */
html[lang="de"] .privacy-band li[data-lang="de"],
html[lang="en"] .privacy-band li[data-lang="en"] {
  display: flex;
}

.privacy-band li::before {
  content: "✓";
  font-weight: 700;
  color: white;
  background: rgba(255,255,255,0.2);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.cta-band {
  text-align: center;
  padding-top: 24px;
}

.cta-band h2 { font-size: 30px; }
.cta-band p { color: var(--text-secondary); font-size: 17px; margin-bottom: 32px; }

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

footer .foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
}

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

footer .copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

/* --- Legal pages --- */
.legal-page { padding: 56px 0 88px; }
.legal-page h1 { font-size: 32px; margin-bottom: 8px; }
.legal-page .updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 { font-size: 20px; margin-top: 40px; }
.legal-page p, .legal-page li { color: var(--text-primary); font-size: 15.5px; }
.legal-page ul { padding-left: 20px; }

.placeholder-note {
  background: #FFF7E6;
  border: 1px solid var(--warning);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 14px;
  color: #7a5a10;
  margin: 24px 0;
}

.fill-in {
  background: #FFF3CD;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

/* --- Support page --- */
.support-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-bottom: 20px;
}

.support-card h3 { margin-bottom: 6px; }
.support-card p { color: var(--text-secondary); margin: 0 0 14px; }

@media (max-width: 860px) {
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .privacy-band { flex-direction: column; padding: 36px 28px; }
  .nav-links { gap: 16px; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links a:not(.lang-toggle-wrap) { display: none; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
