:root {
  --lavender: #F3F1FD;
  --white: #FFFFFF;
  --ink: #0B0714;
  --ink-soft: #221F2E;
  --purple: #532ED4;
  --purple-dark: #3D1CAF;
  --teal: #04E5B8;
  --orange: #FFB96F;
  --content-indent: 38%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
}

.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 6%;
}

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

.hero {
  background: var(--lavender);
  padding: 7rem 0 6rem;
}

.logo {
  display: block;
  width: clamp(220px, 34vw, 420px);
  height: auto;
  margin: 0 0 4.5rem;
}

.hero-content,
.newsletter .hero-content {
  max-width: 640px;
  margin-left: var(--content-indent);
}

.lede {
  margin: 0 0 2.2rem;
  font-weight: 700;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.body-text {
  margin: 0 0 1.1rem;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.body-text:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

.u {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.lede .u {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

.lede .accent-link {
  color: var(--ink-soft);
  text-decoration-color: var(--teal);
}

.accent-link {
  color: var(--ink-soft);
  text-decoration-color: var(--teal);
  text-decoration-thickness: 3px;
}

.lede a.u,
.accent-link {
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.lede a.u:hover,
.lede a.u:focus-visible,
.accent-link:hover,
.accent-link:focus-visible {
  text-decoration-color: var(--orange);
}

/* ---------- Newsletter ---------- */

.newsletter {
  background: var(--white);
  padding: 5.5rem 0;
}

.newsletter .body-text {
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  border: 1px solid var(--purple);
}

.btn-primary:hover {
  background: var(--purple-dark);
  border-color: var(--purple-dark);
}

.btn-primary svg {
  flex-shrink: 0;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

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

.site-footer {
  background: var(--purple-dark);
  padding: 2.2rem 0;
  margin-top: auto;
}

.footer-wrap {
  display: flex;
  justify-content: flex-end;
}

.footer-logo {
  display: inline-flex;
  opacity: 0.9;
  transition: opacity 0.15s ease;
}

.footer-logo:hover,
.footer-logo:focus-visible {
  opacity: 1;
}

/* ---------- Impressum ---------- */

.page-hero {
  background: var(--lavender);
  padding: 3rem 0;
}

.page-hero .logo {
  margin: 0;
  width: clamp(180px, 22vw, 280px);
}

.impressum {
  padding: 5rem 0 6rem;
}

.impressum-content {
  max-width: 760px;
}

.page-title {
  margin: 0 0 3rem;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.impressum-block {
  margin: 0 0 2.75rem;
}

.impressum-block:last-child {
  margin-bottom: 0;
}

.impressum-block h2 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.icon-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.icon-list li {
  position: relative;
  padding-left: 1.9em;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.icon-list li .icon-dot {
  position: absolute;
  left: 0;
  top: 0.16em;
}

.icon-dot {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background-color: var(--teal);
  background-image: url("../images/arrow-external.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 55%;
  vertical-align: -0.32em;
  margin-top: 0.15em;
  transition: background-color 0.15s ease;
}

.icon-dot:hover,
.icon-dot:focus-visible,
.contact-link:hover .icon-dot,
.contact-link:focus-within .icon-dot {
  background-color: var(--orange);
}

.contact-link:hover .accent-link,
.contact-link:focus-within .accent-link {
  text-decoration-color: var(--orange);
}

.icon-list .accent-link {
  text-decoration: none;
}

.icon-list .accent-link:hover,
.icon-list .accent-link:focus-visible,
.icon-list .contact-link:hover .accent-link,
.icon-list .contact-link:focus-within .accent-link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--ink);
  text-decoration-thickness: 1px;
}

/* ---------- Focus states ---------- */

a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  :root {
    --content-indent: 0%;
  }

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

  .logo {
    margin-bottom: 2.75rem;
  }

  .hero-content,
  .newsletter .hero-content {
    max-width: 100%;
  }

  .newsletter {
    padding: 3.5rem 0;
  }

  .footer-wrap {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .wrap {
    padding: 0 1.5rem;
  }

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

  .logo {
    width: clamp(160px, 60vw, 260px);
    margin-bottom: 2.25rem;
  }

  .lede {
    font-size: 1.1rem;
  }

  .body-text {
    font-size: 1rem;
  }

  .newsletter {
    padding: 3rem 0;
  }

  .newsletter .body-text {
    margin-bottom: 1.75rem;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .site-footer {
    padding: 1.75rem 0;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
