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

html {
  width: 100%;
  height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  background: black;
  color: white;
}

/* Background Video */
.video-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: black;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  display: block;
}

.video-background::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.08), rgba(0,0,0,0.58)),
    rgba(0,0,0,0.18);
}

/* Menu bar */
.menu-bar-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 3;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  filter: blur(8px);
  transition: opacity 0.45s ease, transform 0.45s ease, filter 0.45s ease;
}

.menu-open .menu-bar-bg {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Form overlay */
.form-overlay {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: rgba(0,0,0,0);
  backdrop-filter: blur(0);
  transition: background 0.55s ease, backdrop-filter 0.55s ease;
}

.form-open .form-overlay {
  pointer-events: auto;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

/* Top bar */
.top-bar {
  position: fixed;
  top: 22px;
  left: 22px;
  right: 22px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  pointer-events: none;
}

.menu-group,
.quick-links {
  pointer-events: auto;
}

.menu-group {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Quick links */
.quick-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.instagram-link,
.mail-link {
  width: 26px;
  height: 26px;
  color: white;
  opacity: 0.72;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.instagram-link svg,
.mail-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.instagram-link rect,
.instagram-link circle,
.mail-link rect,
.mail-link path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.instagram-link:hover,
.mail-link:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Menu button */
.menu-button {
  position: relative;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: white;
  opacity: 0.68;
  transition: opacity 0.3s ease;
}

.menu-button:hover {
  opacity: 1;
}

.hamburger,
.close-icon {
  position: absolute;
  inset: 0;
  display: block;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition: opacity 0.42s ease, filter 0.42s ease, transform 0.42s ease;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.close-icon {
  opacity: 0;
  filter: blur(8px);
  transform: scale(0.92);
  transition: opacity 0.42s ease, filter 0.42s ease, transform 0.42s ease;
}

.close-icon::before,
.close-icon::after,
.privacy-close::before,
.privacy-close::after,
.impressum-close::before,
.impressum-close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.close-icon::before,
.privacy-close::before,
.impressum-close::before {
  transform: rotate(45deg);
}

.close-icon::after,
.privacy-close::after,
.impressum-close::after {
  transform: rotate(-45deg);
}

.menu-open .hamburger {
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.08);
}

.menu-open .close-icon {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

/* Divider */
.menu-divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.42);
  opacity: 0;
  filter: blur(8px);
  transform: scaleY(0.5);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
}

.menu-open .menu-divider {
  opacity: 1;
  filter: blur(0);
  transform: scaleY(1);
}

/* Menu links */
.menu-links {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(12px);
  transform: translateX(-12px);
  transition: opacity 0.62s ease, filter 0.62s ease, transform 0.62s ease, visibility 0.62s ease;
}

.menu-links a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  opacity: 0;
  filter: blur(8px);
  transform: translateX(-6px);
  transition: opacity 0.65s ease, filter 0.65s ease, transform 0.65s ease, text-shadow 0.3s ease;
}

.menu-open .menu-links {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translateX(0);
}

.menu-open .menu-links a {
  opacity: 0.55;
  filter: blur(0);
  transform: translateX(0);
}

.menu-open .menu-links a:nth-child(1) { transition-delay: 0.08s; }
.menu-open .menu-links a:nth-child(2) { transition-delay: 0.16s; }
.menu-open .menu-links a:nth-child(3) { transition-delay: 0.24s; }

.menu-open .menu-links a:hover {
  opacity: 1;
  text-shadow: 0 0 6px rgba(255,255,255,0.15);
  transition-delay: 0s;
}

/* Main content */
.content {
  position: relative;
  z-index: 2;
  height: 100vh;
  padding: 24px 24px 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  filter: blur(18px);
  transform: translateY(8px) scale(1.015);
  animation: blurFadeIn 2s ease forwards;
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease;
}

@keyframes blurFadeIn {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.form-open .content {
  opacity: 0;
  filter: blur(22px);
  transform: translateY(8px) scale(1.02);
  pointer-events: none;
}

.logo {
  width: min(85vw, 700px);
  height: auto;
}

.contact-button,
.contact-button:visited {
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  padding: 10px 26px;
  color: white;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background: white;
  color: black;
  border-color: white;
}

/* Contact form */
.contact-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 9;
  width: min(560px, calc(100vw - 42px));
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  transform: translate(-50%, -48%) scale(0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(16px);
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.form-open .contact-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
}

.form-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.form-close:hover {
  opacity: 1;
}

.form-close::before,
.form-close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.form-close::before { transform: rotate(45deg); }
.form-close::after { transform: rotate(-45deg); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 48px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  color: white;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.42);
  outline: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  padding: 0 0 12px;
  border-radius: 0;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
  line-height: 1.8;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255,255,255,0.58);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}


.website-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.feedback-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 11;
  width: min(480px, calc(100vw - 42px));
  transform: translate(-50%, -48%) scale(0.985);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  filter: blur(16px);
  transition: opacity 0.55s ease, filter 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.feedback-open .feedback-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  filter: blur(0);
  transform: translate(-50%, -50%) scale(1);
}

.feedback-open .form-overlay {
  pointer-events: auto;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(8px);
}

.feedback-panel p {
  padding: 48px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.08em;
}

.feedback-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.feedback-close:hover {
  opacity: 1;
}

.feedback-close::before,
.feedback-close::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.feedback-close::before { transform: rotate(45deg); }
.feedback-close::after { transform: rotate(-45deg); }

.privacy-text,
.privacy-check {
  font-size: 9px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
}


.privacy-check a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: 0.85;
}

.privacy-check a:hover {
  opacity: 1;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.privacy-check input {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  accent-color: white;
}

.send-button {
  align-self: flex-start;
  margin-top: 4px;
  padding: 10px 26px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: white;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.send-button:hover {
  background: white;
  color: black;
  border-color: white;
}

/* Impressum */
.impressum {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 7;
  padding: 6px 48px 6px 12px;
  font-size: 9px;
  font-weight: 300;
  line-height: 1.3;
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.3);
}

.impressum a {
  color: white;
  text-decoration: none;
  opacity: 0.75;
}

.impressum a:hover {
  opacity: 1;
}

/* Privacy page */
.privacy-page,
.impressum-page {
  overflow-y: auto;
}

.privacy-content,
.impressum-content {
  width: min(720px, calc(100vw - 42px));
  margin: 0 auto;
  padding: 88px 0 80px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.86);
}

.privacy-content h1,
.impressum-content h1 {
  margin-bottom: 42px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.28em;
}

.privacy-content h2,
.impressum-content h2 {
  margin: 34px 0 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.privacy-content p,
.impressum-content p {
  margin-bottom: 14px;
}

.privacy-close,
.impressum-close {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 5;
  width: 28px;
  height: 28px;
  color: white;
  opacity: 0.68;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.privacy-close:hover,
.impressum-close:hover {
  opacity: 1;
}

/* Mobile */
@media (max-width: 767px) {
  .menu-bar-bg {
    top: auto;
    bottom: 34px;
    height: 66px;
    transform: translateY(100%);
  }

  .menu-open .menu-bar-bg {
    transform: translateY(0);
  }

  .top-bar {
    top: auto;
    bottom: 56px;
    left: 18px;
    right: 18px;
    align-items: flex-end;
  }

  .menu-group {
    gap: 14px;
  }

  .menu-links {
    gap: 14px;
  }

  .menu-links a {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .menu-divider {
    height: 18px;
  }

  .quick-links {
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 14px;
  }

  .instagram-link,
  .mail-link {
    width: 24px;
    height: 24px;
  }

  .content {
    gap: 30px;
    padding: 0 24px 85px;
  }

  .logo {
    width: 88vw;
  }

  .contact-button,
  .contact-button:visited {
    font-size: 11px;
    padding: 9px 22px;
    letter-spacing: 0.28em;
  }

  .contact-panel {
    width: calc(100vw - 38px);
    max-height: calc(100vh - 110px);
  }

  .contact-form {
    gap: 20px;
    padding-top: 42px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .privacy-text,
  .privacy-check,
  .form-status {
    font-size: 8px;
  }

  .feedback-panel p {
    font-size: 11px;
  }

  .send-button {
    font-size: 11px;
    padding: 9px 22px;
    letter-spacing: 0.28em;
  }

  .impressum {
    font-size: 8px;
    padding: 7px 44px 7px 10px;
  }

  .privacy-content,
.impressum-content {
    padding: 72px 0 72px;
    font-size: 11px;
  }

  .privacy-close,
.impressum-close {
    top: 18px;
    left: 18px;
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 430px) {
  .menu-links {
    gap: 10px;
  }

  .menu-links a {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .menu-group {
    gap: 11px;
  }
}

@media (pointer: coarse) and (orientation: landscape) {
  .orientation-lock {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    text-align: center;
    background: black;
    color: white;
  }

  .orientation-lock p {
    max-width: 320px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
}


/* No-menu version overrides */
.top-bar {
  justify-content: flex-end;
}

.privacy-close,
.impressum-close {
  left: max(21px, calc((100vw - 720px) / 2));
}

@media (max-width: 767px) {
  .top-bar {
    justify-content: flex-end;
  }

  .privacy-close,
  .impressum-close {
    left: 21px;
  }
}
