/* ==========================================================================
   das konglomerat — Fonts & Base
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('/fonts/Outfit-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --black: #000000;
  --white: #ffffff;
  --pink: #ff00e6;
}

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

html,
body {
  height: 100%;
  background: var(--black);
  color: var(--white);
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

body.is-inverted {
  background: var(--white);
  color: var(--black);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.app {
  min-height: 100dvh;
  width: 100%;
  position: relative;
}

/* ==========================================================================
   Shared: Kleines "zurück" oben links
   ========================================================================== */

.back-btn {
  position: fixed;
  top: clamp(18px, 2.6vh, 28px);
  left: clamp(18px, 2.4vw, 32px);
  z-index: 50;
  font-size: clamp(13px, 1.05vw, 17px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
  padding: 4px 2px;
  transition: opacity 120ms ease;
}

body.is-inverted .back-btn {
  color: var(--black);
}

.back-btn:hover {
  opacity: 0.55;
}

/* ==========================================================================
   View: Home / Start (PDF Seiten 1–3 Desktop, 9–10 Mobile)
   ========================================================================== */

.view-home {
  height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  user-select: none;
}

.home-group {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Invisible hover bridge active only while menu is open so moving diagonally
   from "das" down to "impressum" never breaks hover */
.home-group.is-open::after {
  content: '';
  position: absolute;
  top: -16px;
  left: -20px;
  right: -28px;
  bottom: calc(-1 * (100% + 9.5em));
  z-index: 1;
}

.home-wordmark {
  position: relative;
  z-index: 2;
  font-size: clamp(28px, 2.93vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  cursor: pointer;
}

.home-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 0.72em);
  left: 66%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(15px, 1.46vw, 28px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.015em;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.home-group.is-open .home-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.home-menu a {
  display: block;
  white-space: nowrap;
  transition: opacity 100ms ease;
}

.home-menu a:hover {
  opacity: 0.45;
}

/* ==========================================================================
   View: About (PDF Seiten 4 & 6 Desktop, 11 & 12 Mobile)
   ========================================================================== */

.view-about {
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

/* --- Desktop About --- */
.about-desktop {
  height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
}

.about-desktop-stage {
  position: relative;
  display: inline-block;
  /* Move giant "about" slightly up to match PDF optical balance with names below */
  transform: translateY(-2.5vh);
}

/* Hover bridge while revealed so moving cursor to tagline or names stays open */
.about-desktop-stage.is-open::after {
  content: '';
  position: absolute;
  top: -0.38em;
  left: -0.25em;
  right: -0.08em;
  bottom: -0.95em;
  font-size: clamp(110px, 21.5vw, 380px);
  z-index: 1;
}

.about-word-desktop {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(110px, 21.5vw, 380px);
  font-weight: 900;
  line-height: 0.84;
  letter-spacing: -0.035em;
  cursor: pointer;
}

.about-tagline {
  position: absolute;
  z-index: 3;
  /* Both lines sit cleanly above the "b" stem with zero collision */
  bottom: calc(100% + 0.055em);
  left: -0.05em;
  font-size: clamp(110px, 21.5vw, 380px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.about-tagline-inner {
  font-size: clamp(15px, 1.95vw, 36px);
  font-weight: 900;
  line-height: 1.32;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.about-members {
  position: absolute;
  z-index: 3;
  /* Exact horizontal center directly underneath the "o" of "about" */
  left: 49.5%;
  top: calc(100% + 0.04em);
  font-size: clamp(110px, 21.5vw, 380px);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.about-members-list {
  list-style: none;
  font-size: clamp(15px, 1.95vw, 36px);
  font-weight: 900;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.about-member-btn,
.about-member-link {
  display: inline-block;
  text-align: left;
  color: var(--black);
  transition: color 80ms ease;
}

.about-member-btn:hover,
.about-member-btn:focus-visible,
.about-member-btn.is-active,
.about-member-link:hover,
.about-member-link:focus-visible,
.about-member-link:active {
  color: var(--pink);
}

.about-member-preview {
  position: absolute;
  left: calc(100% + clamp(24px, 2.8vw, 48px));
  top: 0;
  width: clamp(120px, 13vw, 210px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f2f2f2;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 160ms ease, visibility 140ms ease;
  pointer-events: none;
}

.about-member-preview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.about-member-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-desktop-stage.is-open .about-tagline,
.about-desktop-stage.is-open .about-members {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* --- Mobile About (hidden on Desktop) --- */
.about-mobile {
  display: none;
}

/* ==========================================================================
   View: Projekte (PDF Seite 7 Desktop, Seite 13 Mobile)
   ========================================================================== */

.view-projects {
  min-height: 100dvh;
  width: 100%;
  position: relative;
}

.projects-heading {
  position: absolute;
  top: 9.5vh;
  left: 5.6vw;
  font-size: clamp(28px, 2.93vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.projects-list {
  position: absolute;
  top: 40.7vh;
  left: 5.6vw;
  right: 5.6vw;
  font-size: clamp(18px, 1.95vw, 36px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -0.015em;
}

.project-link {
  display: inline-block;
  color: var(--white);
  transition: color 70ms ease;
}

.project-link:hover,
.project-link:focus-visible,
.project-link:active {
  color: var(--pink);
}

.project-dot {
  display: inline-block;
  margin-inline: 0.28em;
  color: var(--white);
  user-select: none;
}

.br-desktop {
  display: inline;
}

.dot-mobile-only,
.br-mobile {
  display: none;
}

/* ==========================================================================
   View: Projekt Detail (PDF Seite 8 Desktop, Seite 14 Mobile)
   ========================================================================== */

.view-project-detail {
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 7vh, 84px) 4vw clamp(36px, 6vh, 64px);
}

.project-media-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.project-media-box {
  position: relative;
  width: min(86vw, 780px, calc((100dvh - 235px) * 16 / 9));
  container-type: inline-size;
}

.project-detail-title {
  margin-bottom: clamp(10px, 2cqi, 18px);
  font-size: clamp(32px, var(--title-cqi, 15.5cqi), 136px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--white);
}

.project-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0b0b;
  overflow: hidden;
}

.project-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-consent-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 45%, #151515 0%, #070707 100%);
  transition: border-color 140ms ease;
}

.video-consent-btn:hover,
.video-consent-btn:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
}

.video-consent-btn.has-poster {
  border: 0;
  background: #0b0b0b;
}

.video-consent-btn.has-poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.36);
  z-index: 1;
}

.project-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-consent-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.video-consent-btn .video-play-icon {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.video-consent-btn.has-poster .video-play-icon {
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 255, 255, 0.24);
}

.video-consent-btn:hover .video-play-icon,
.video-consent-btn:focus-visible .video-play-icon {
  background: var(--pink);
  border-color: var(--pink);
  transform: scale(1.04);
}

.video-consent-title {
  font-size: clamp(13px, 1.15vw, 17px);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--white);
}

.video-consent-note {
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.48);
}

.project-image-frame {
  width: 100%;
  display: flex;
  justify-content: center;
  background: #0b0b0b;
  overflow: hidden;
}

.project-image {
  display: block;
  width: 100%;
  max-height: 60dvh;
  object-fit: contain;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 50% 45%, #161616 0%, #070707 100%);
}

.video-play-icon {
  width: 68px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: background 120ms ease, transform 120ms ease;
}

.video-placeholder:hover .video-play-icon {
  background: var(--pink);
  transform: scale(1.04);
}

.video-play-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--white);
  margin-left: 3px;
}

.video-placeholder-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.48);
}

.project-media-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}

.project-external-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.project-external-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 34px;
  min-height: 34px;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  opacity: 0.9;
  transition: color 100ms ease, opacity 100ms ease;
}

.project-external-link:hover,
.project-external-link:focus-visible {
  color: var(--pink);
  opacity: 1;
}

.project-external-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.project-description {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   View: Kontakt (PDF Seite 5)
   ========================================================================== */

.view-contact {
  height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.contact-email {
  font-size: clamp(18px, 1.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--white);
  transition: opacity 120ms ease;
}

.contact-email:hover {
  opacity: 0.65;
}

.contact-copy-btn {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.46);
  padding: 4px 8px;
  transition: color 120ms ease;
}

.contact-copy-btn:hover,
.contact-copy-btn:focus-visible {
  color: var(--white);
}

.contact-copy-btn.is-copied {
  color: var(--pink);
}

/* ==========================================================================
   View: 404
   ========================================================================== */

.view-not-found {
  height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.not-found-title {
  font-size: clamp(30px, 4.2vw, 72px);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--white);
}

/* ==========================================================================
   View: Impressum
   ========================================================================== */

.view-impressum {
  min-height: 100dvh;
  width: 100%;
  padding: clamp(72px, 11vh, 110px) 5.6vw 64px;
  max-width: 780px;
}

.impressum-heading {
  font-size: clamp(28px, 2.93vw, 52px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 5vh, 48px);
}

.impressum-block {
  margin-bottom: 28px;
}

.impressum-block h2 {
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--white);
}

.impressum-block p {
  font-size: clamp(14px, 1.05vw, 16px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

/* ==========================================================================
   Mobile Layout (<= 768px — PDF Seiten 9–14)
   ========================================================================== */

@media (max-width: 768px) {
  .back-btn {
    top: max(16px, env(safe-area-inset-top, 16px));
    left: 18px;
    font-size: 14px;
  }

  /* Home Mobile (Seiten 9 & 10) */
  .home-wordmark {
    font-size: clamp(28px, 7.6vw, 44px);
  }

  .home-menu {
    top: calc(100% + 0.65em);
    left: 59%;
    font-size: clamp(16px, 4.1vw, 22px);
    line-height: 1.42;
  }

  .home-group.is-open::after {
    display: none;
  }

  /* About Mobile (Seiten 11 & 12 — riesig gestapeltes a / b / o / u / t) */
  .about-desktop {
    display: none;
  }

  .about-mobile {
    display: block;
    position: relative;
    height: 100dvh;
    width: 100%;
    overflow: hidden;
  }

  .about-word-mobile {
    position: absolute;
    top: calc(max(16px, env(safe-area-inset-top, 16px)) + 34px);
    bottom: max(20px, env(safe-area-inset-bottom, 20px));
    left: 2.5vw;
    width: 28vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    font-size: min(41vw, 19.2dvh);
    font-weight: 900;
    line-height: 0.74;
    cursor: pointer;
    z-index: 2;
  }

  .about-word-mobile span {
    display: block;
    text-align: center;
  }

  .about-mobile-tagline {
    position: absolute;
    top: 39.5dvh;
    left: 32.5vw;
    right: 3vw;
    font-size: clamp(14px, 4.1vw, 23px);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -0.015em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .about-mobile-members-wrap {
    position: absolute;
    top: 63dvh;
    left: 36vw;
    right: 4vw;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .about-mobile-members {
    list-style: none;
    flex-shrink: 0;
    font-size: clamp(16px, 4.65vw, 25px);
    font-weight: 900;
    line-height: 1.32;
    letter-spacing: -0.015em;
  }

  .about-mobile-preview {
    flex: 1;
    max-width: 148px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f2f2f2;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 140ms ease, transform 160ms ease, visibility 140ms ease;
    pointer-events: none;
  }

  .about-mobile-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .about-mobile-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-mobile.is-open .about-mobile-tagline,
  .about-mobile.is-open .about-mobile-members-wrap {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Projekte Mobile (Seite 13 — 3 Zeilen à 2 Projekte) */
  .projects-heading {
    top: 18.5dvh;
    left: 10vw;
    font-size: clamp(34px, 10.2vw, 54px);
  }

  .projects-list {
    top: 43.5dvh;
    left: 10vw;
    right: 6vw;
    font-size: clamp(19px, 5.4vw, 28px);
    line-height: 1.44;
  }

  .dot-desktop-only,
  .br-desktop {
    display: none;
  }

  .dot-mobile-only,
  .br-mobile {
    display: inline;
  }

  /* Projekt Detail Mobile (Titel direkt über dem Video) */
  .view-project-detail {
    padding: calc(max(16px, env(safe-area-inset-top, 16px)) + 44px) 5vw 48px;
  }

  .project-media-box {
    width: 90vw;
  }

  .video-play-icon {
    width: 56px;
    height: 40px;
  }

  /* Kontakt Mobile */
  .contact-email {
    font-size: clamp(15px, 4.6vw, 24px);
    word-break: break-word;
    text-align: center;
  }

  /* Impressum Mobile */
  .view-impressum {
    padding: 78px 10vw 48px;
  }

  .impressum-heading {
    font-size: clamp(34px, 10.2vw, 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
