:root {
  --accent: #FF9500;
  --accent-2: #FFD60A;
  --accent-grad: linear-gradient(135deg, #FF9500 0%, #FFB000 50%, #FFD60A 100%);
  --bg: #ffffff;
  --bg-sub: #faf8f3;
  --surface: rgba(255, 255, 255, 0.72);
  --card: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-soft: #515154;
  --text-mute: #86868b;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
  --shadow-card: 0 1px 2px rgba(0,0,0,0.04), 0 12px 36px rgba(255, 149, 0, 0.08);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1180px;
  --container-narrow: 760px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0b0d;
    --bg-sub: #131316;
    --surface: rgba(20, 20, 22, 0.72);
    --card: #18181b;
    --card-border: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text-soft: #c9c9cd;
    --text-mute: #86868b;
    --shadow-soft: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px rgba(0,0,0,0.4);
    --shadow-card: 0 1px 2px rgba(0,0,0,0.3), 0 16px 48px rgba(255, 149, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: opacity 160ms var(--ease); }
a:hover { opacity: 0.78; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }
.center { text-align: center; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 8px;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--card-border);
}
.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 7px; }
.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: rgba(127,127,127,0.08); opacity: 1; }
.nav-links a.cta {
  background: var(--accent-grad);
  color: #1d1d1f;
  font-weight: 600;
}
.nav-links a.cta:hover { opacity: 0.92; }

.lang-toggle {
  margin-left: 4px;
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.04em;
}
.lang-toggle:hover { color: var(--text); }
.lang-toggle [data-lang-en], .lang-toggle [data-lang-de] { transition: color 160ms var(--ease); }
.lang-toggle .sep { margin: 0 6px; opacity: 0.4; }
html[data-lang="en"] .lang-toggle [data-lang-en] { color: var(--accent); }
html[data-lang="de"] .lang-toggle [data-lang-de] { color: var(--accent); }

@media (max-width: 720px) {
  .nav-links a:not(.cta) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 32px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -200px auto auto;
  width: 720px; height: 720px;
  background: radial-gradient(closest-side, rgba(255,149,0,0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 40px; }
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 4px 10px;
  border: 1px solid rgba(255,149,0,0.35);
  border-radius: 999px;
  background: rgba(255,149,0,0.06);
}
.eyebrow.center { display: inline-block; margin: 0 auto 18px; }

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 22px;
  background: linear-gradient(180deg, var(--text) 0%, var(--text) 50%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--text-soft);
  margin: 0 0 28px;
  max-width: 540px;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.appstore-badge img { display: block; }
.appstore-badge.big img { width: 220px; height: auto; }
.ghost-btn {
  color: var(--text-soft);
  font-weight: 500;
  padding: 12px 4px;
}
.hero-meta {
  margin-top: 16px;
  color: var(--text-mute);
  font-size: 13px;
}
.hero-shot {
  display: flex;
  justify-content: center;
}
.hero-shot img {
  max-width: 380px;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(255,149,0,0.22), 0 8px 24px rgba(0,0,0,0.18);
  transform: rotate(-1.5deg);
  transition: transform 600ms var(--ease);
}
.hero-shot img:hover { transform: rotate(0) scale(1.01); }

/* Sections */
.section { padding: 80px 0; position: relative; }
@media (max-width: 720px) { .section { padding: 56px 0; } }

.section-head {
  text-align: center;
  margin-bottom: 48px;
}
.section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 12px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,149,0,0.4);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 20px 48px rgba(255, 149, 0, 0.18);
}
.card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 18px 0 6px;
}
.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}
.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-grad);
  color: #1d1d1f;
}

/* Showcase */
.showcase { background: var(--bg-sub); }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .showcase-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .showcase-grid { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; } }

.showcase-grid figure {
  margin: 0;
  text-align: center;
}
.showcase-grid img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  transition: transform 280ms var(--ease);
}
.showcase-grid figure:hover img { transform: translateY(-4px); }
.showcase-grid figcaption {
  margin-top: 14px;
  font-weight: 500;
  color: var(--text-soft);
  font-size: 15px;
}

/* Privacy */
.privacy { text-align: center; }
.privacy-list {
  list-style: none;
  padding: 0;
  margin: 32px auto 28px;
  max-width: 560px;
  text-align: left;
  display: grid;
  gap: 12px;
}
.privacy-list li {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px 14px 44px;
  position: relative;
  color: var(--text-soft);
  font-size: 15px;
}
.privacy-list li::before {
  content: "";
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/contain no-repeat;
}
.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 600;
}

/* CTA section */
.cta-section {
  background: var(--bg-sub);
  text-align: center;
}
.cta-section .appstore-badge.big {
  display: inline-block;
  margin-top: 24px;
}

/* Footer */
.footer {
  padding: 36px 0 56px;
  border-top: 1px solid var(--card-border);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.foot-brand img { border-radius: 8px; }
.foot-brand p {
  margin: 2px 0 0;
  color: var(--text-mute);
  font-size: 13px;
}
.foot-links {
  display: flex;
  gap: 8px 18px;
  flex-wrap: wrap;
  font-size: 14px;
}
.foot-links a { color: var(--text-soft); }
.foot-links a:hover { color: var(--accent); opacity: 1; }

/* Generic pages (privacy, impressum, support) */
.page {
  padding: 72px 0 96px;
}
.page .container { max-width: 760px; }
.page h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.page .updated {
  color: var(--text-mute);
  font-size: 14px;
  margin: 0 0 32px;
}
.page h2 {
  font-size: 22px;
  letter-spacing: -0.01em;
  margin-top: 36px;
  margin-bottom: 10px;
}
.page h3 {
  font-size: 17px;
  margin-top: 24px;
  margin-bottom: 6px;
}
.page p, .page li {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.65;
}
.page ul { padding-left: 22px; }
.page a { color: var(--accent); }

.page .lang-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 28px;
  padding: 4px;
  background: var(--bg-sub);
  border: 1px solid var(--card-border);
  border-radius: 999px;
}
.page .lang-switch button {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--text-soft);
}
.page .lang-switch button.active {
  background: var(--accent-grad);
  color: #1d1d1f;
}

/* Language visibility */
html[data-lang="en"] [data-only="de"] { display: none; }
html[data-lang="de"] [data-only="en"] { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto; }
  .hero-shot img { transform: none; }
}
