/* =========================================================
   HolzVision – Design System
   Warm oak / walnut · anthracite · sage accents
   ========================================================= */

:root {
  --brand: #E85A1B;
  --brand-deep: #C94A12;
  --oak: #E85A1B;
  --oak-deep: #C94A12;
  --walnut: #5C3D2E;
  --anthracite: #2A2D32;
  --charcoal: #121212;
  --silver: #C8CDD2;
  --sage: #6B8F71;
  --sage-deep: #4F6F56;
  --sand: #E8DFD2;
  --mist: #F3EEE6;
  --paper: #FAF7F2;
  --white: #FFFCFA;
  --text: #2A2D32;
  --text-soft: #5A6169;
  --line: rgba(42, 45, 50, 0.12);
  --shadow: 0 24px 60px rgba(28, 31, 35, 0.12);
  --radius: 4px;
  --radius-lg: 12px;
  --font-display: "Syne", sans-serif;
  --font-body: "Outfit", sans-serif;
  --container: 1180px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(232, 90, 27, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(107, 143, 113, 0.08), transparent 50%),
    linear-gradient(180deg, var(--paper) 0%, var(--mist) 40%, var(--sand) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main,
.footer {
  position: relative;
  z-index: 2;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: 0.85rem;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--anthracite);
  margin-bottom: 1rem;
}

.section__lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 36rem;
}

.section__intro {
  margin-bottom: 3.5rem;
  max-width: 40rem;
}

.section {
  padding: clamp(5rem, 10vw, 8rem) 0;
  position: relative;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.35s var(--ease);
  white-space: nowrap;
}

.btn--lg {
  padding: 1.05rem 1.7rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(232, 90, 27, 0.32);
}

.btn--accent:hover {
  background: var(--brand-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(232, 90, 27, 0.4);
}

.btn--ghost-light {
  background: rgba(255, 252, 250, 0.12);
  border-color: rgba(255, 252, 250, 0.45);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn--ghost-light:hover {
  background: rgba(255, 252, 250, 0.22);
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  border-color: var(--anthracite);
  color: var(--anthracite);
}

.btn--outline:hover {
  background: var(--anthracite);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  color: var(--text-soft);
  border-color: var(--line);
}

.btn--ghost:hover {
  color: var(--anthracite);
  border-color: var(--anthracite);
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), backdrop-filter 0.4s ease;
}

.header--scrolled {
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line), 0 12px 40px rgba(28, 31, 35, 0.06);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 2;
}

.logo__img {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(230px, 48vw);
  object-fit: contain;
  background: #0a0a0a;
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}

.logo:hover .logo__img {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.logo--footer .logo__img {
  height: 64px;
  padding: 0.4rem 0.65rem;
}

.header:not(.header--scrolled) .nav-link {
  color: var(--white);
}

.header:not(.header--scrolled) .menu-toggle span {
  background: var(--white);
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 100%;
  height: 1.5px;
  background: var(--oak);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--anthracite);
}

.header:not(.header--scrolled) .nav-link:hover,
.header:not(.header--scrolled) .nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header__cta {
  display: none;
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--anthracite);
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
  transform-origin: center;
}

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

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

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

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  background:
    linear-gradient(160deg, var(--charcoal) 0%, var(--walnut) 55%, var(--anthracite) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 6rem 2.5rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
}

.mobile-nav .btn {
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

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

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}

.hero .hero__scroll-line {
  position: relative;
}

.hero .hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 10px;
  margin-left: -1.5px;
  border-radius: 999px;
  background: var(--brand);
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: 0; opacity: 1; }
  100% { top: 38px; opacity: 0; }
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  will-change: transform;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.08);
  animation: heroZoom 18s var(--ease) infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.12); }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 31, 35, 0.35) 0%, rgba(28, 31, 35, 0.15) 35%, rgba(28, 31, 35, 0.72) 100%),
    linear-gradient(90deg, rgba(28, 31, 35, 0.45) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(5.5rem, 12vh, 8rem);
  padding-top: calc(var(--header-h) + 2rem);
  max-width: 52rem;
}

.hero__brand {
  margin-bottom: 1.35rem;
}

.hero__brand-logo {
  display: block;
  width: min(420px, 78vw);
  height: auto;
  background: rgba(10, 10, 10, 0.55);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  backdrop-filter: blur(6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.2vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin-bottom: 1rem;
  color: var(--white);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255, 252, 250, 0.86);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.75rem;
  right: 2rem;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 252, 250, 0.7);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--oak), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

@media (min-width: 768px) {
  .hero__scroll {
    display: flex;
  }
}

/* ---------- Services ---------- */

.services {
  padding-top: clamp(4rem, 8vw, 6rem);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.service-card {
  position: relative;
  padding: 2rem 1.75rem;
  background: rgba(255, 252, 250, 0.55);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: default;
  transition: transform 0.45s var(--ease), background 0.35s ease, border-color 0.35s ease, box-shadow 0.45s var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(184, 149, 107, 0.12), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-6px);
  background: var(--white);
  border-color: rgba(184, 149, 107, 0.35);
  box-shadow: var(--shadow);
  outline: none;
}

.service-card:hover::before,
.service-card:focus-visible::before {
  opacity: 1;
}

.service-card__icon {
  position: relative;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  color: var(--brand-deep);
  display: grid;
  place-items: center;
  transition: transform 0.5s var(--ease), color 0.3s ease;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__orbit {
  display: none;
}

.service-card:hover .service-card__icon {
  transform: translateY(-4px);
  color: var(--brand);
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  position: relative;
}

.service-card__text {
  color: var(--text-soft);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
  position: relative;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--walnut);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-card__link::after {
  content: "→";
  transition: transform 0.3s var(--ease);
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

/* ---------- About ---------- */

.about {
  overflow: hidden;
}

.about__bg {
  position: absolute;
  inset: 10% 0 auto 0;
  height: 70%;
  background:
    linear-gradient(90deg, transparent, rgba(107, 143, 113, 0.08) 40%, transparent),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 18px,
      rgba(184, 149, 107, 0.04) 18px,
      rgba(184, 149, 107, 0.04) 19px
    );
  pointer-events: none;
}

.about__grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 5rem;
  }
}

.about__visual {
  position: relative;
}

.about__image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
}

.about__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 1.2s var(--ease);
}

.about__visual:hover .about__image-wrap img {
  transform: scale(1.04);
}

.about__accent {
  position: absolute;
  width: 42%;
  height: 42%;
  right: -8%;
  bottom: -8%;
  border: 2px solid var(--oak);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.55;
}

.about__text {
  color: var(--text-soft);
  margin-bottom: 1.15rem;
}

.about__values {
  margin-top: 2.25rem;
  display: grid;
  gap: 1.15rem;
}

.about__values li {
  padding-left: 1.15rem;
  border-left: 2px solid var(--oak);
}

.about__values strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.about__values span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* ---------- Projects ---------- */

.ba-compare {
  margin-bottom: 3.5rem;
}

.ba-compare__intro {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.ba-compare__title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  color: var(--anthracite);
}

.ba-compare__text {
  color: var(--text-soft);
  font-size: 1.02rem;
}

.ba-compare__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

@media (min-width: 760px) {
  .ba-compare__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
  }
}

.ba-compare__item {
  margin: 0;
}

.ba-compare__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--anthracite);
  box-shadow: var(--shadow);
}

.ba-compare__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.ba-compare__item:hover .ba-compare__media img {
  transform: scale(1.04);
}

.ba-compare__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  z-index: 2;
  padding: 0.35rem 0.75rem;
  background: rgba(28, 31, 35, 0.72);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(6px);
}

.ba-compare__badge--after {
  background: rgba(232, 90, 27, 0.9);
}

.ba-compare__item figcaption {
  padding: 1rem 0.15rem 0;
}

.ba-compare__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.ba-compare__item span {
  font-size: 0.92rem;
  color: var(--text-soft);
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-item--wide {
    grid-column: 1 / -1;
    aspect-ratio: 21 / 9;
  }
}

.project-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  background: var(--anthracite);
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), opacity 0.4s ease;
  opacity: 0.92;
}

.project-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(28, 31, 35, 0.85) 100%);
  pointer-events: none;
}

.project-item figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  color: var(--white);
}

.project-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.2rem;
}

.project-item span {
  font-size: 0.875rem;
  opacity: 0.8;
}

.project-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

/* ---------- Contact ---------- */

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(92, 61, 46, 0.04)),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(232, 90, 27, 0.08), transparent);
}

.contact__simple {
  max-width: 920px;
}

.contact__simple .section__intro {
  margin-bottom: 2.5rem;
}

.contact__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .contact__cards {
    grid-template-columns: 1fr 1fr;
  }
}

.contact__card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.5rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(232, 90, 27, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(28, 31, 35, 0.05);
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}

a.contact__card:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 90, 27, 0.4);
  box-shadow: var(--shadow);
}

.contact__card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.contact__card strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--anthracite);
}

.contact__card-meta {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin-top: 0.2rem;
}

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

.footer {
  background: var(--charcoal);
  color: rgba(255, 252, 250, 0.78);
  padding: 4.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 700px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer__brand p {
  margin-top: 0.85rem;
  max-width: 22rem;
  font-size: 0.95rem;
}

.footer__nav,
.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer__nav a,
.footer__legal a {
  font-size: 0.95rem;
  transition: color 0.25s ease;
}

.footer__nav a:hover,
.footer__legal a:hover {
  color: var(--oak);
}

.footer__company p {
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__company strong {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 252, 250, 0.1);
  padding-top: 1.5rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Reveal animations ---------- */

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  filter: blur(4px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out),
    filter 0.85s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.projects__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.projects__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.projects__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.projects__grid .reveal:nth-child(5) { transition-delay: 0.1s; }

/* ---------- Legal pages ---------- */

.legal-page {
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  min-height: 70vh;
}

.legal-content {
  max-width: 720px;
}

.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.legal-content .legal-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.legal-content ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.legal-content a {
  color: var(--walnut);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--walnut);
  margin-bottom: 2rem;
  text-decoration: none;
}

.back-link:hover {
  color: var(--oak-deep);
}

.header--legal {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.header--legal .nav-link {
  color: var(--anthracite);
}

.header--legal .menu-toggle span {
  background: var(--anthracite);
}

/* ---------- Cookie Banner (DSGVO) ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 200;
  padding: 1.25rem;
  animation: cookieUp 0.5s var(--ease);
}

@keyframes cookieUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner--hidden {
  opacity: 0;
  transform: translateY(30%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.cookie-banner__inner {
  width: min(100%, 920px);
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(184, 149, 107, 0.25);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(28, 31, 35, 0.18);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .cookie-banner__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: 1.75rem;
  }
}

.cookie-banner__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.cookie-banner__text {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.cookie-banner__text a {
  color: var(--walnut);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-modal--open {
  opacity: 1;
  visibility: visible;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 31, 35, 0.55);
  backdrop-filter: blur(4px);
}

.cookie-modal__panel {
  position: relative;
  width: min(100%, 520px);
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}

.cookie-modal--open .cookie-modal__panel {
  transform: translateY(0);
}

.cookie-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.cookie-modal__header h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.cookie-modal__close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-soft);
  padding: 0.35rem;
}

.cookie-modal__body {
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 1.15rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-option__info strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.cookie-option__info p {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.cookie-modal__footer {
  padding: 1.15rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
}

/* Toggle switch */
.toggle {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__slider {
  position: absolute;
  inset: 0;
  background: #CFC8BD;
  border-radius: 999px;
  transition: background 0.25s ease;
}

.toggle__slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.toggle input:checked + .toggle__slider {
  background: var(--sage);
}

.toggle input:checked + .toggle__slider::before {
  transform: translateX(20px);
}

.toggle--disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.toggle--disabled input:checked + .toggle__slider {
  background: var(--oak);
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }

}
