html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.hero {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  background: #000;
}

.hero a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -15rem;
}

.hero a img {
  width: 60%;
}

.hero-text {
  text-align: center;
  padding-top: 2rem;
}

.hero-text h2 {
  color: #fff;
  font-family: mersad;
  font-size: clamp(1rem, 1vw + 1rem, 10rem);
  font-weight: 200;
  letter-spacing: 4px;
  white-space: nowrap;
}

.hero-text h2::after {
  content: "|";
  margin-left: 4px;
  -webkit-animation: blink 1s infinite;
  animation: blink 1s infinite;
}

.hero {
  position: relative;
}

/* Keyframes: nur “halber” Puls → endet im Peak und bleibt dort (50% vom klassischen Puls) */
@keyframes halfPulseIn {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.985);
    filter: blur(2px);
  }
  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03); /* Peak */
    filter: blur(0px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1.03); /* bleibt im Peak */
    filter: blur(0px);
  }
}

@-webkit-keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* Overlay full screen */
.menu-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 250ms ease,
    visibility 0s linear 250ms;
  z-index: 9000;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease;
}

/* Blur / Glass */
.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* optional: leicht abdunkeln */
  pointer-events: none;
}

/* Panel (optional) – kannst du auch weglassen 
.menu-panel{
  position: relative;
  width: min(900px, 92vw);
  height: min(600px, 80vh);
  margin: 8vh auto 0;
  border-radius: 24px;  
}*/

/* Open state */

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease;
}

/* Wenn Menu offen: Scroll lock */
body.menu-open {
  overflow: hidden;
}

.pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500; /* über menu, unter cursor */
  pointer-events: none;
  display: grid;
}

.pixel-tile {
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
}

.menu-pannel-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a a"
    "b c";
  width: 100vw;
  height: 100vh;
}

/* linke Seite */

.menu-panel,
.menu-pannel-wrapper {
  position: relative;
  z-index: 1;
}

/*body.cursor-fixed-white .custom-cursor{
  mix-blend-mode: normal;
}*/

body.cursor-fixed-white .cursor-dot {
  background: #fff;
}

body.cursor-fixed-white .cursor-label {
  color: #fff;
}

/* Touch-Geräte: Custom Cursor komplett aus */
@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .cursor-dot,
  .cursor-label {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

.hero-insta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.hero-insta {
  z-index: 999999999999;
}

.hero-insta svg {
  width: 50px;
  height: 50px;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
}

.hero {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100dvh;
  width: 100%;
  background: #000;
  position: relative;
}

.hero a {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -15rem;
}

.hero a img {
  width: 60%;
}

.hero-text {
  text-align: center;
  padding-top: 2rem;
}

.hero-text h2 {
  color: #fff;
  font-family: mersad;
  font-size: clamp(1rem, 1vw + 1rem, 10rem);
  font-weight: 200;
  letter-spacing: 4px;
  white-space: nowrap;
}

.hero-text h2::after {
  content: "|";
  margin-left: 4px;
  -webkit-animation: blink 1s infinite;
  animation: blink 1s infinite;
}

/* CTA Wrapper */
.hero-ctas {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12rem;
  width: min(1300px, 92vw);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 4rem);
  z-index: 5;
  pointer-events: auto;
  cursor: none;
  isolation: isolate;
}

/* CTA blocks */
.read-more,
.jobs {
  width: clamp(220px, 25vw, 420px);
  text-align: left;
  cursor: none;
}

.jobs {
  text-align: right;
}

/* Toggle */
.read-more-toggle,
.jobs-toggle {
  margin: 0;
  color: #fff;
  font-family: mersad;
  font-weight: 200;
  letter-spacing: 3px;
  cursor: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Texte im normalen Layout verstecken */
.read-more p,
.jobs p {
  display: none;
}

/* Insta */
.hero-insta {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 999999999999;
}

.hero-insta svg {
  width: 50px;
  height: 50px;
}

/* Overlay open */
body.info-open {
  overflow: hidden;
}

/* Overlay container */
.info-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.info-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Background blur */
.info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Modal */
.info-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(820px, 90vw);
  max-height: 80vh;
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(0.96);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  z-index: 1;
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.info-overlay.is-open .info-modal {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* Title */
.info-title {
  margin: 0 0 1.2rem 0;
  color: #fff;
  font-family: mersad;
  font-weight: 200;
  letter-spacing: 3px;
  font-size: clamp(1.2rem, 1vw + 1rem, 2.2rem);
  text-align: center;
}

/* Text */
.info-text {
  margin: 0;
  color: #fff;
  font-family: mersad;
  font-size: clamp(0.95rem, 0.25vw + 0.95rem, 1.15rem);
  line-height: 1.6;
  text-align: center;
}

/* Close button */
.info-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.info-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Während Transition ausblenden */
body.is-transitioning .custom-cursor,
body.is-transitioning #typewriter,
body.is-transitioning .hero-ctas,
body.is-transitioning .hero-insta {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.menu-open .hero-insta {
  display: none !important;
}

@-webkit-keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

@keyframes blink {
  0%,
  50%,
  100% {
    opacity: 1;
  }
  25%,
  75% {
    opacity: 0;
  }
}

/* Overlay full screen */
.menu-overlay {
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 250ms ease,
    visibility 0s linear 250ms;
  z-index: 9000;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 250ms ease;
}

.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

body.menu-open {
  overflow: hidden;
}

.pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
  display: grid;
}

.pixel-tile {
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1);
}

.menu-pannel-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "a a"
    "b c";
  width: 100vw;
  height: 100vh;
}

.menu-panel,
.menu-pannel-wrapper {
  position: relative;
  z-index: 1;
}

body.cursor-fixed-white .cursor-dot {
  background: #fff;
}

body.cursor-fixed-white .cursor-label {
  color: #fff;
}

/* Datenschutz / Impressum unten mittig */
.hero-legal {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  z-index: 6;
  pointer-events: auto;
  cursor: none;
}

.hero-legal .legal-sep {
  color: rgba(255, 255, 255, 0.6);
  font-family: mersad;
  font-weight: 200;
  letter-spacing: 2px;
}

.privacy-toggle,
.imprint-toggle {
  margin: 0;
  color: #fff;
  font-family: mersad;
  font-weight: 200;
  letter-spacing: 3px;
  cursor: none;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Text im normalen Layout verstecken (wie bei read-more/jobs) */
.hero-legal p {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor,
  .cursor-dot,
  .cursor-label {
    display: none !important;
  }

  body {
    cursor: auto;
  }
}

.privacy-toggle,
.imprint-toggle {
  margin: 0;
  color: #fff;
  font-family: mersad;
  font-weight: 200;
  letter-spacing: 3px;
  cursor: none;
  user-select: none;
}

.privacy-toggle:hover,
.imprint-toggle:hover,
.read-more-toggle:hover,
.jobs-toggle:hover {
  opacity: 0.75;
}
