:root {
  color-scheme: light;
  --paper: #f3efe6;
  --paper-strong: #fffaf1;
  --ink: #17211d;
  --muted: #5d6860;
  --line: rgba(23, 33, 29, 0.13);
  --green: #14604f;
  --green-strong: #0d4f41;
  --sage: #dfe8df;
  --gold: #b57b16;
  --rose: #c95d68;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

body[data-lang="de"] [data-lang-block="en"],
body[data-lang="en"] [data-lang-block="de"],
body[data-lang="de"] [data-lang-image="en"],
body[data-lang="en"] [data-lang-image="de"] {
  display: none !important;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: rgba(243, 239, 230, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand,
.site-nav,
.language-toggle,
.cta-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.7rem;
  color: #ffffff;
  background: var(--green);
}

.site-nav {
  justify-content: center;
  gap: clamp(0.75rem, 2.3vw, 1.6rem);
  font-size: 0.96rem;
  font-weight: 700;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--green);
}

.language-toggle {
  gap: 0.35rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}

.language-toggle button {
  min-width: 2.25rem;
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

body[data-lang="de"] [data-set-lang="de"],
body[data-lang="en"] [data-set-lang="en"] {
  color: #ffffff;
  background: var(--green);
}

.hero {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 5vw, 5rem);
  background:
    linear-gradient(120deg, rgba(243, 239, 230, 0.96) 0%, rgba(243, 239, 230, 0.84) 46%, rgba(223, 232, 223, 0.92) 100%),
    url("assets/de-desk.png") center / cover;
  overflow: hidden;
}

.hero-copy {
  max-width: 42rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1rem;
  font-size: clamp(4rem, 13vw, 9.5rem);
  line-height: 0.82;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.85rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.15rem;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.58;
}

.cta-row {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.55rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 12px 30px rgba(20, 96, 79, 0.22);
}

.button.secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
}

.fineprint {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-screens {
  position: relative;
  min-height: 34rem;
}

.hero-screens img,
.phone-row img {
  display: block;
  width: min(15.5rem, 42vw);
  border-radius: 2.1rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--paper-strong);
}

.hero-screens img:first-child,
.hero-screens img:nth-child(3) {
  position: absolute;
  top: 0;
  right: 28%;
  transform: rotate(-6deg);
}

.hero-screens img:nth-child(2),
.hero-screens img:nth-child(4) {
  position: absolute;
  top: 5rem;
  right: 0;
  transform: rotate(5deg);
}

.section {
  padding: clamp(3.25rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}

.intro-band,
.split,
.support-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.intro-band {
  background: var(--ink);
  color: #ffffff;
}

.intro-band p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.72;
}

.intro-band .kicker {
  color: #9fd7c8;
}

.section-heading {
  max-width: 58rem;
  margin-bottom: 2rem;
}

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

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

.feature {
  padding: 1.2rem;
  min-height: 14rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.64);
}

.feature p,
.text-stack p,
.legal-grid p,
.legal-grid li,
.support-strip p {
  color: var(--muted);
  line-height: 1.7;
}

.feature-number {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  color: #ffffff;
  background: var(--green);
  font-weight: 900;
}

.screenshot-band {
  background: #e8efe9;
  overflow: hidden;
}

.phone-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 2rem);
}

.phone-row img:nth-child(2) {
  margin-top: 3rem;
}

.phone-row img:nth-child(3) {
  margin-top: 1rem;
}

.text-stack {
  max-width: 44rem;
}

.text-link {
  color: var(--green);
  font-weight: 900;
}

.support-strip {
  align-items: center;
  background: var(--green-strong);
  color: #ffffff;
}

.support-strip p {
  color: rgba(255, 255, 255, 0.78);
}

.subpage-hero {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem) clamp(2rem, 5vw, 4rem);
  background: var(--paper-strong);
  border-bottom: 1px solid var(--line);
}

.subpage-hero .lead {
  max-width: 58rem;
}

.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: clamp(1.25rem, 5vw, 5rem);
}

.legal-grid article {
  max-width: 62rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
}

.legal-grid code {
  padding: 0.15rem 0.35rem;
  border-radius: 0.35rem;
  background: rgba(23, 33, 29, 0.08);
}

.site-footer {
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.6rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .hero,
  .intro-band,
  .split,
  .support-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-screens {
    min-height: 28rem;
  }

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

@media (max-width: 620px) {
  .site-header {
    position: static;
  }

  .feature-grid,
  .feature-grid.compact {
    grid-template-columns: 1fr;
  }

  .hero-screens {
    min-height: auto;
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .hero-screens img,
  .hero-screens img:first-child,
  .hero-screens img:nth-child(2),
  .hero-screens img:nth-child(3),
  .hero-screens img:nth-child(4) {
    position: static;
    width: 13.2rem;
    flex: 0 0 auto;
    transform: none;
  }

  .phone-row {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 1rem;
  }

  .phone-row img,
  .phone-row img:nth-child(2),
  .phone-row img:nth-child(3) {
    width: 13rem;
    flex: 0 0 auto;
    margin-top: 0;
  }
}
