/* ============================================================
   Maps3D — Landing page styles
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #f2f6f2;
  --ink: #0f2318;
  --muted: #5c6f63;
  --line: #e2e9e3;

  --green: #1f8a4c;
  --green-600: #17703d;
  --green-700: #0f5a30;
  --accent: #37c26a;

  --hero-1: #0b2417;
  --hero-2: #103d26;
  --hero-3: #0c2e1d;

  --wrap: 1120px;
  --wrap-narrow: 760px;
  --radius: 20px;
  --shadow: 0 24px 60px -20px rgba(15, 35, 24, 0.25);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

a {
  color: inherit;
}

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

/* ---------- Layout helpers ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section-eyebrow,
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 16px;
}

.section-eyebrow.accent {
  color: var(--accent);
}

.body-lg {
  font-size: 20px;
  color: var(--muted);
  margin: 20px 0 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  background: var(--green-600);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(31, 138, 76, 0.6);
}

.btn-lg {
  font-size: 17px;
  padding: 16px 30px;
}

.btn-sm {
  font-size: 15px;
  padding: 9px 18px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

/* ---------- Brand ---------- */

.brand {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
}

.brand span {
  color: var(--green);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* ---------- Language switcher ---------- */

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.lang a {
  color: var(--muted);
  text-decoration: none;
  padding: 2px 2px;
  transition: color 0.15s ease;
}

.lang a:hover {
  color: var(--ink);
}

.lang a.active {
  color: var(--ink);
}

.lang .sep {
  color: var(--line);
  font-weight: 400;
}

/* Dark contexts (footer) */
.footer .lang a {
  color: rgba(255, 255, 255, 0.6);
}

.footer .lang a:hover,
.footer .lang a.active {
  color: #fff;
}

.footer .lang .sep {
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: radial-gradient(
      120% 90% at 50% -10%,
      var(--hero-2) 0%,
      var(--hero-1) 55%,
      var(--hero-3) 100%
    );
  padding: 96px 24px 0;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      40% 40% at 20% 20%,
      rgba(55, 194, 106, 0.28) 0%,
      transparent 70%
    ),
    radial-gradient(
      45% 45% at 85% 30%,
      rgba(31, 138, 76, 0.3) 0%,
      transparent 70%
    );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 7vw, 76px);
  margin: 0 auto;
  max-width: 15ch;
}

.hero .lead {
  font-size: clamp(18px, 2.4vw, 22px);
  color: rgba(255, 255, 255, 0.82);
  max-width: 60ch;
  margin: 24px auto 0;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 36px 0 0;
}

.phone {
  margin: 56px auto 0;
  max-width: 340px;
}

.phone img {
  width: 100%;
  border-radius: 40px;
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.5));
}

/* ---------- Stats ---------- */

.stats {
  background: var(--ink);
  color: #fff;
}

.stats-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Generic content sections ---------- */

.section {
  padding: 110px 0;
}

.section h2,
.update h2,
.features-head h2 {
  font-size: clamp(30px, 4.5vw, 46px);
}

#story {
  background: var(--bg);
}

.update {
  padding: 110px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ---------- Features ---------- */

.features {
  padding: 110px 0;
}

.features-head {
  max-width: var(--wrap-narrow);
  margin: 0 auto 56px;
  text-align: center;
}

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

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(55, 194, 106, 0.16), rgba(31, 138, 76, 0.16));
  color: var(--green);
  margin-bottom: 22px;
}

.icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 24px;
}

.card-lead {
  color: var(--muted);
  margin: 12px 0 0;
}

/* Checklist */

.checks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.checks li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0;
  color: var(--ink);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(31, 138, 76, 0.14)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f8a4c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  background: radial-gradient(
      110% 120% at 50% 0%,
      var(--hero-2) 0%,
      var(--hero-1) 70%
    );
  padding: 100px 24px;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    50% 60% at 50% 0%,
    rgba(55, 194, 106, 0.3) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta h2 {
  font-size: clamp(30px, 4.5vw, 48px);
}

.cta .body-lg {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer .brand {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Legal pages (impressum.html / datenschutz.html)
   ============================================================ */

.page-header {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 40px 24px 0;
}

.page-header .logo,
.logo {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

.story {
  max-width: var(--wrap-narrow);
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-size: 18px;
  line-height: 1.7;
}

.story h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  margin: 0 0 32px;
}

.story h2 {
  font-size: 30px;
  line-height: 1.2;
  margin: 56px 0 20px;
}

.story h3 {
  font-size: 22px;
  margin: 40px 0 14px;
}

.story p {
  color: #384539;
}

.story ul {
  padding-left: 1.2em;
  margin: 16px 0 0;
}

.story li {
  margin: 8px 0;
}

.story a {
  color: var(--green);
  text-decoration: none;
}

.story a:hover {
  text-decoration: underline;
}

.imprint {
  margin: 24px 0 0;
  padding: 0;
}

.imprint > div {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 8px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.imprint > div:last-child {
  border-bottom: 1px solid var(--line);
}

.imprint dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.imprint dd {
  margin: 0;
}

.imprint a {
  color: var(--green);
  text-decoration: none;
}

.imprint a:hover {
  text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 24px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .section,
  .update,
  .features {
    padding: 72px 0;
  }

  .hero {
    padding-top: 72px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .card {
    padding: 28px;
  }
}
