:root {
  /* Playful icon palette — bg rgb(255, 200, 50) */
  --bg: rgb(255, 200, 50);
  --bg-rgb: 255, 200, 50;
  --bg-alt: #fff8eb;
  --bg-card: #ffffff;
  --text: #2d2208;
  --text-muted: #6b4f12;
  --accent: #e85d04;
  --accent-dark: #c44d00;
  --accent-soft: #ffe4c4;
  --van: #f0b429;
  --charcoal: #3d3018;
  --border: rgba(45, 34, 8, 0.1);
  --border-strong: rgba(45, 34, 8, 0.18);
  --shadow: 6px 8px 0 rgba(45, 34, 8, 0.14);
  --shadow-hover: 10px 12px 0 rgba(45, 34, 8, 0.16);
  --shadow-soft: 4px 5px 0 rgba(45, 34, 8, 0.1);
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1120px;
  --font: "SF Pro Rounded", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  position: relative;
  overflow-x: hidden;
}

/* Soft playful dots — like sunshine on a campsite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.35) 0 8px, transparent 9px),
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.28) 0 12px, transparent 13px),
    radial-gradient(circle at 72% 78%, rgba(255, 255, 255, 0.22) 0 10px, transparent 11px),
    radial-gradient(circle at 8% 82%, rgba(255, 140, 0, 0.12) 0 40px, transparent 41px),
    radial-gradient(circle at 95% 55%, rgba(255, 255, 255, 0.2) 0 6px, transparent 7px);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(var(--bg-rgb), 0.88);
  border-bottom: 2px solid var(--border-strong);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand:hover {
  text-decoration: none;
  transform: scale(1.02);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  font-weight: 700;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav a:hover {
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2.5px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.lang-switch {
  display: inline-flex;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
}

.lang-switch button {
  border: 0;
  background: transparent;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: var(--text-muted);
}

.lang-switch button.active {
  background: var(--accent);
  color: white;
}

.hero {
  padding: 3.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--accent-dark);
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 1rem;
  border: 2px solid var(--border-strong);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translate(-2px, -3px);
}

.btn-primary {
  background: var(--charcoal);
  color: white;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  box-shadow: var(--shadow);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hero-card {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

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

.hero-icon-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.hero-icon-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hero-icon-text strong {
  font-size: 1.1rem;
  font-weight: 900;
}

.hero-icon-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.phone-frame {
  background: var(--charcoal);
  border-radius: 36px;
  padding: 0.85rem;
  box-shadow: var(--shadow);
  border: 3px solid #2a2418;
}

.phone-screen {
  background: #f2f2f7;
  border-radius: 28px;
  padding: 0;
  min-height: 580px;
  overflow: hidden;
}

/* ── App preview (matches Level tab layout) ── */

.app-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 580px;
  background: #ffffff;
  font-size: 11px;
  color: #1c1c1e;
}

.mock-compass {
  position: relative;
  height: 82px;
  background: #ffffff;
  padding: 8px 0 6px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mock-compass-heading {
  font-size: 14px;
  font-weight: 600;
  color: #1c1c1e;
  line-height: 1;
  margin-bottom: 6px;
  z-index: 2;
}

.mock-compass-dial {
  position: relative;
  width: 100%;
  height: 44px;
  flex-shrink: 0;
  overflow: hidden;
}

.mock-compass-track {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  padding: 0 8px;
  white-space: nowrap;
  z-index: 1;
}

.mock-compass-track .tick {
  font-size: 15px;
  font-weight: 300;
  color: #1c1c1e;
  opacity: 0.35;
  line-height: 1;
}

.mock-compass-track .tick.center {
  opacity: 0.55;
}

.mock-compass-track .cardinal {
  font-size: 17px;
  font-weight: 800;
  color: #1c1c1e;
  line-height: 1;
  min-width: 12px;
  text-align: center;
}

.mock-compass-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  background: rgba(142, 142, 147, 0.35);
  transform: translateY(-50%);
  z-index: 0;
}

.mock-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 28px;
  background: #007aff;
  border-radius: 2px;
  transform: translate(-50%, -42%);
  z-index: 2;
}

.mock-divider {
  height: 1px;
  background: rgba(142, 142, 147, 0.35);
  flex-shrink: 0;
}

.mock-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 6px 0;
  min-height: 0;
}

.mock-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 0 2px;
}

.mock-row:first-of-type {
  align-items: center;
}

.mock-measure {
  flex: 1;
  text-align: center;
  padding: 4px 2px;
  min-width: 0;
}

.mock-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 3px;
  color: #1c1c1e;
}

.mock-value {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 16px;
  font-weight: 800;
}

.mock-value .mock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.mock-value.ok {
  color: #34c759;
}

.mock-value.ok .mock-icon {
  background: rgba(52, 199, 89, 0.15);
}

.mock-value.warn {
  color: #ff9500;
}

.mock-value.warn .mock-icon {
  background: rgba(255, 149, 0, 0.15);
}

.mock-value.mild {
  color: #ff9500;
}

.mock-value.mild .mock-icon {
  background: rgba(255, 149, 0, 0.15);
}

.mock-value.bad {
  color: #ff3b30;
}

.mock-value.bad .mock-icon {
  background: rgba(255, 59, 48, 0.12);
}

.mock-sync {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #007aff;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(0, 122, 255, 0.35);
}

.mock-sync-icon {
  width: 22px;
  height: 22px;
  display: block;
}

.mock-sync-spacer {
  flex-shrink: 0;
  width: 36px;
}

.mock-row-back {
  align-items: center;
}

.mock-level-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  margin: 2px 0;
}

.mock-sun-path {
  position: absolute;
  width: 240px;
  height: 240px;
  pointer-events: none;
}

.mock-level {
  position: relative;
  width: 180px;
  height: 180px;
  border: 2px solid #8e8e93;
  border-radius: 50%;
  background: transparent;
  z-index: 1;
}

.mock-cross-h,
.mock-cross-v {
  position: absolute;
  background: #8e8e93;
}

.mock-cross-h {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
}

.mock-cross-v {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
}

.mock-level-inner {
  position: absolute;
  width: 90px;
  height: 90px;
  border: 1px solid #8e8e93;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mock-bubble {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #007aff;
  /* Upper-left on the outer ring */
  top: 18%;
  left: 18%;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.mock-altitude {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #1c1c1e;
  padding: 4px 0 6px;
}

.mock-tabbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 10px;
  background: rgba(249, 249, 249, 0.94);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 9px;
  font-weight: 600;
  color: #8e8e93;
  flex-shrink: 0;
}

.mock-tabbar span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.mock-tabbar .tab-ico {
  font-size: 16px;
}

.mock-tabbar .active {
  color: #007aff;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.28);
  border-block: 2px dashed rgba(45, 34, 8, 0.12);
}

.section-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  font-weight: 900;
}

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

.feature-grid,
.steps-grid,
.pricing-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.2s ease;
}

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

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  border: 2px solid rgba(232, 93, 4, 0.15);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 500;
}

.steps-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  border: 2px solid var(--charcoal);
  box-shadow: 3px 3px 0 var(--charcoal);
}

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

.price-tag {
  font-size: 2.2rem;
  font-weight: 900;
  margin: 0.5rem 0 1rem;
}

.price-tag small {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-check li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-weight: 500;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2f9e44;
  font-weight: 900;
  font-size: 1.1rem;
}

.faq details {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-soft);
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.faq p {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-weight: 500;
}

.cta-band {
  background: var(--charcoal);
  color: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow);
  border: 3px solid #2a2418;
  transform: rotate(-0.5deg);
}

.cta-band h2 {
  font-weight: 900;
}

.cta-band a {
  color: white;
}

.cta-band .btn-primary {
  background: var(--accent);
  border-color: white;
}

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

.cta-band p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
}

.site-footer {
  padding: 2.5rem 0 3rem;
  color: var(--text-muted);
}

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

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 600;
}

.footer-links strong {
  font-weight: 900;
  color: var(--text);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px dashed var(--border-strong);
  font-size: 0.92rem;
  font-weight: 600;
}

.page-hero {
  padding: 3rem 0 1.5rem;
}

.page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
}

.prose {
  background: var(--bg-card);
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.prose h2 {
  margin-top: 2rem;
  font-weight: 800;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--text-muted);
  font-weight: 500;
}

.prose ul {
  padding-left: 1.2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

[lang="de"] .lang-en,
[lang="en"] .lang-de {
  display: none !important;
}

@media (max-width: 960px) {
  .hero-grid,
  .feature-grid,
  .steps-grid,
  .pricing-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-card {
    transform: none;
  }

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

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
    transform: none;
  }

  .nav {
    gap: 0.65rem;
  }
}

@media (max-width: 767px) {
  .header-inner {
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.75rem;
    background: rgba(var(--bg-rgb), 0.98);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .lang-switch {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  .hero {
    padding-top: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    transform: none !important;
  }
}
