:root {
  --cream: #fff7e8;
  --ink: #20150f;
  --header-height: clamp(76px, 8vw, 98px);
  --page-space: clamp(20px, 5vw, 76px);
  --content-max: 1280px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--cream);
  background: #29341f;
  font-family: Arial, Helvetica, sans-serif;
}

body.menu-open { overflow: hidden; }
button, a { color: inherit; font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.project-stage {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-height) + 28px) var(--page-space) 28px;
  overflow: hidden;
  background: url("../imgs/background.jpg") 50% 58% / cover no-repeat;
}

.stage-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(14, 20, 10, .78) 0%, rgba(18, 24, 12, .34) 52%, rgba(18, 23, 13, .22) 100%),
    linear-gradient(0deg, rgba(9, 12, 7, .63) 0%, transparent 68%);
}

.site-header {
  position: fixed;
  z-index: 3000;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  background: linear-gradient(180deg, rgba(18, 24, 12, .72), rgba(18, 24, 12, .22));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.site-header-inner {
  width: min(var(--content-max), calc(100% - (var(--page-space) * 2)));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.2vw, 16px);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  flex: 0 0 auto;
  width: clamp(48px, 4.6vw, 64px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 247, 232, .76);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
}

.brand-orbit {
  position: absolute;
  width: 70%;
  height: 44%;
  border: 1px solid rgba(255, 247, 232, .72);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.brand-initials {
  position: relative;
  z-index: 1;
  font-size: clamp(8px, .72vw, 10px);
  font-weight: 750;
  letter-spacing: .08em;
}

.logoname { display: flex; flex-direction: column; gap: 2px; }
.logoname span {
  display: block;
  font-size: clamp(12px, 1.2vw, 16px);
  line-height: 1.15;
  font-weight: 560;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.logoname span:last-child { color: rgba(255, 247, 232, .65); font-size: clamp(10px, .95vw, 13px); font-weight: 400; }

.lines {
  position: relative;
  flex: 0 0 auto;
  width: clamp(44px, 4.6vw, 60px);
  height: clamp(44px, 4.6vw, 60px);
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.lines:hover, .lines:focus-visible { background: rgba(255, 255, 255, .14); outline: none; }
.line { position: relative; width: 48%; height: 16px; }
.line::before, .line::after, .menucross::before, .menucross::after {
  content: "";
  position: absolute;
  height: 1.5px;
  border-radius: 999px;
  background: var(--cream);
}
.line::before, .line::after { left: 0; width: 100%; transition: clip-path 280ms ease; }
.line::before { top: 2px; clip-path: inset(0); }
.line::after { top: 12px; clip-path: inset(0); }
.menucross { position: absolute; inset: 0; pointer-events: none; }
.menucross::before, .menucross::after {
  left: 26%;
  top: 50%;
  width: 48%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 320ms ease 70ms;
}
.menucross::before { transform: rotate(-45deg); }
.menucross::after { transform: rotate(45deg); }
.lines.is-active .line::before { clip-path: inset(0 100% 0 0); }
.lines.is-active .line::after { clip-path: inset(0 0 0 100%); }
.lines.is-active .menucross::before, .lines.is-active .menucross::after { clip-path: inset(0); }

.menu {
  position: fixed;
  z-index: 2900;
  inset: 0;
  height: 100dvh;
  padding-top: var(--header-height);
  overflow: hidden auto;
  background: rgba(9, 15, 10, .9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  clip-path: circle(0 at calc(100% - max(24px, 5vw)) 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: clip-path 430ms cubic-bezier(.22, .8, .24, 1), opacity 260ms ease, visibility 430ms;
}
.menu.menuactive {
  clip-path: circle(150vmax at calc(100% - max(24px, 5vw)) 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.menu-shell {
  width: min(var(--content-max), calc(100% - (var(--page-space) * 2)));
  min-height: calc(100dvh - var(--header-height));
  margin: 0 auto;
  padding: clamp(24px, 4vh, 48px) 0 clamp(22px, 4vh, 42px);
  display: flex;
  flex-direction: column;
}
.menu-label {
  margin: 0 0 clamp(14px, 2vh, 26px);
  color: rgba(255, 255, 255, .56);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}
.menuitems { display: flex; flex-direction: column; }
.menuitems a, .menuitems button {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  margin: 0;
  padding: clamp(8px, 1.1vh, 15px) 0 clamp(10px, 1.25vh, 17px);
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .23);
  color: #f5f5f0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  font-size: clamp(36px, 5vw, 70px);
  line-height: .96;
  font-weight: 520;
  letter-spacing: -.055em;
  cursor: pointer;
  transition: color 180ms ease, padding-left 220ms ease;
}
.menuitems a::before, .menuitems button::before {
  content: "+";
  margin-right: clamp(10px, 1.2vw, 18px);
  color: rgba(255, 255, 255, .44);
  font-size: .42em;
  transition: transform 220ms ease, color 180ms ease;
}
.menuitems a:hover, .menuitems a:focus-visible, .menuitems button:hover, .menuitems button:focus-visible { padding-left: clamp(6px, .7vw, 12px); outline: none; }
.menuitems a:hover::before, .menuitems button:hover::before { color: #fff; transform: rotate(45deg); }
.menu-bottom {
  margin-top: auto;
  padding-top: clamp(26px, 5vh, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .62fr);
  gap: clamp(18px, 4vw, 64px);
  align-items: end;
}
.menu-meta { display: grid; gap: 5px; color: rgba(255, 255, 255, .54); font-size: clamp(13px, 1.2vw, 18px); }
.menu-cta {
  min-height: 64px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  background: rgba(0, 0, 0, .4);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.menu-cta span { font-size: 1.8em; font-weight: 300; }

.project-content {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  margin: 0 auto;
  transform: translateY(clamp(-44px, -4vh, -20px));
}
.project-intro { margin-bottom: clamp(18px, 2.6vh, 30px); text-align: center; }
.project-intro h1 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 86px);
  line-height: .9;
  font-weight: 480;
  letter-spacing: -.065em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, .22);
}
.main-ziel-slider { display: grid; align-items: start; }
.main-ziel-slide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(22px);
  transition: opacity 300ms ease, transform 430ms cubic-bezier(.22, 1, .36, 1), visibility 300ms;
}
.main-ziel-slide.is-active { z-index: 2; opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.main-ziel-feature-card {
  display: grid;
  grid-template-columns: clamp(160px, 22vw, 210px) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(15px, 2.2vw, 24px);
  row-gap: 13px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  background: rgba(20, 27, 16, .5);
  box-shadow: 0 22px 62px rgba(0, 0, 0, .23);
  backdrop-filter: blur(20px) saturate(112%);
  -webkit-backdrop-filter: blur(20px) saturate(112%);
}
.project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  align-self: start;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
}
.project-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(10, 14, 8, .2));
}
.project-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.025);
  transition: transform 700ms cubic-bezier(.22, 1, .36, 1);
}
.main-ziel-slide.is-active .project-card-image img { transform: scale(1); }
.project-card-image .main-ziel-card-count {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  min-width: 38px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  color: var(--cream);
  background: rgba(9, 15, 10, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px) saturate(125%);
  -webkit-backdrop-filter: blur(12px) saturate(125%);
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .04em;
}
.main-ziel-feature-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0 7px 0 0;
}
.main-ziel-feature-content h2 {
  margin: 0 0 7px;
  color: rgba(255, 255, 255, .97);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1;
  font-weight: 720;
  letter-spacing: -.055em;
}
.main-ziel-description { margin: 0; max-width: 470px; color: rgba(255, 247, 232, .7); font-size: clamp(11px, 1.15vw, 14px); line-height: 1.4; }
.project-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.project-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .09);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.project-pills span.is-primary { color: var(--ink); border-color: var(--cream); background: var(--cream); }
.main-ziel-feature-actions {
  grid-column: 1 / -1;
  width: 100%;
}
.main-ziel-order-btn {
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 247, 232, .28);
  border-radius: 14px;
  color: var(--cream);
  background: rgba(255, 247, 232, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 8px 24px rgba(0, 0, 0, .08);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.main-ziel-order-btn:hover, .main-ziel-order-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 247, 232, .46);
  background: rgba(255, 247, 232, .22);
  outline: none;
}
.main-ziel-carousel-nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 16px;
}
.main-ziel-arrow {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 247, 232, .96);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .16);
  cursor: pointer;
  font-size: 21px;
  font-weight: 760;
  transition: transform 180ms ease, background 180ms ease;
}
.main-ziel-arrow:hover, .main-ziel-arrow:focus-visible { transform: scale(1.05); background: #fff; outline: none; }
.main-ziel-dots { display: flex; align-items: center; justify-content: center; gap: 7px; }
.main-ziel-dot {
  width: 8px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  transition: width 180ms ease, background 180ms ease;
}
.main-ziel-dot.is-active { width: 22px; background: var(--cream); }

@media (max-width: 700px) {
  :root { --header-height: 76px; --page-space: clamp(16px, 4vw, 24px); }
  .project-stage { padding-top: calc(var(--header-height) + 22px); padding-bottom: 18px; background-position: 55% 50%; overflow-y: auto; }
  .stage-overlay { background: linear-gradient(0deg, rgba(11, 15, 8, .82), rgba(16, 21, 11, .28)); }
  .project-content { transform: translateY(-18px); }
  .project-intro { margin-bottom: 16px; }
  .project-intro h1 { font-size: clamp(42px, 13vw, 64px); }
  .main-ziel-feature-card { grid-template-columns: 120px minmax(0, 1fr); column-gap: 12px; row-gap: 11px; padding: 11px; border-radius: 23px; }
  .project-card-image { border-radius: 18px; }
  .main-ziel-feature-content { padding-right: 3px; }
  .main-ziel-feature-content h2 { font-size: clamp(21px, 6vw, 29px); }
  .main-ziel-description { font-size: 11px; }
  .menuitems a, .menuitems button { font-size: clamp(30px, 9.8vw, 48px); }
  .menu-bottom { grid-template-columns: 1fr; gap: 20px; }
  .menu-cta { width: 100%; }
}

@media (max-width: 430px) {
  .brand-mark { width: 44px; }
  .logoname span:first-child { max-width: 190px; white-space: normal; line-height: 1.04; }
  .logoname span:last-child { display: none; }
  .project-content { transform: translateY(-10px); }
  .project-intro { margin-bottom: 13px; }
  .main-ziel-feature-card { grid-template-columns: 102px minmax(0, 1fr); column-gap: 10px; row-gap: 10px; padding: 10px; }
  .project-pills { gap: 4px; margin-top: 7px; }
  .project-pills span { min-height: 20px; padding: 4px 6px; font-size: 7px; }
  .main-ziel-order-btn { min-height: 42px; padding: 0 10px; font-size: 8px; }
  .main-ziel-carousel-nav { margin-top: 12px; }
  .main-ziel-arrow { width: 40px; height: 40px; }
}

@media (max-height: 720px) and (min-width: 701px) {
  .project-content { transform: translateY(-12px); }
  .project-intro { margin-bottom: 12px; }
  .project-intro h1 { font-size: 54px; }
  .main-ziel-order-btn { min-height: 42px; }
  .main-ziel-carousel-nav { margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
