@import url("/projects/shared/fonts.css"); /* self-hosted (kein Google-CDN, DSGVO) */

/* Shared chrome + portfolio overview — loaded by all pages */

html,
body {
  margin: 0;
  min-height: 100%;
  background-color: #13171f;
  color: #fff8ef;
  font-family: "Averia Serif Libre", serif;
}

html {
  scroll-behavior: smooth;
  /* clip statt hidden: 'overflow-x: hidden' macht die y-Achse zum Scrollcontainer ->
     zweiter Scrollbalken (Double-Scroll). 'clip' kappt nur horizontal, kein Scrollcontainer. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@supports (animation-timeline: scroll()) {
  html {
    scroll-timeline-name: --site-document-scroll;
    scroll-timeline-axis: block;
  }
}

body {
  position: relative;
  overflow-x: clip;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 900;
  opacity: 0.03;
  background-color: #a8a8a8;
  filter: url(#page-grain);
}

/* Fullscreen-SVG-feTurbulence-Grain ist auf schwachen GPUs ein Scroll-/Composite-Killer
   -> auf Mobile + reduced-motion abschalten (bei 0.03 Opacity eh kaum sichtbar). */
@media (max-width: 760px), (prefers-reduced-motion: reduce) {
  body::after {
    filter: none;
    opacity: 0;
  }
}

.grain-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

#projects {
  scroll-margin-top: 5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ——— Site nav (single bar: column default, compact on scroll / mobile row) ——— */

.site-nav {
  --nav-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 960;
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(20px - 12px * var(--nav-shrink, 0)) clamp(16px, 4vw, 56px);
  /* Opaque base: gradient must not end in alpha or scrolling content shows through the bar. */
  background-color: rgb(13, 13, 21);
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.04) 0%,
    transparent 36%
  );
  border-bottom: 1px solid rgba(255, 248, 239, 0.12);
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-nav__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(20px * var(--nav-shrink, 0));
}

.site-nav .arche-nav.site-nav__collapsible {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: calc(16px * (1 - var(--nav-shrink, 0)));
  box-sizing: border-box;
}

.site-nav .site-nav__links {
  justify-content: center;
}

.site-nav .site-nav__link--primary.arche-nav-link {
  font-size: calc(18px - 5px * var(--nav-shrink, 0));
}

.site-nav .arche-logo {
  height: calc(188px - 152px * var(--nav-shrink, 0));
  width: auto;
}

.site-nav .site-nav__brand-img {
  margin-bottom: 0;
  display: block;
}

.site-nav.site-nav--compact {
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

.site-nav.site-nav--compact .site-nav__inner {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  width: 100%;
}

.site-nav.site-nav--compact .arche-nav.site-nav__collapsible {
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.site-nav.site-nav--compact .site-nav__links {
  justify-content: flex-end;
}

.site-nav__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.arche-logo-link.site-nav__brand {
  flex-shrink: 0;
}

.site-nav__brand:focus-visible {
  outline: 2px solid rgba(255, 248, 239, 0.45);
  outline-offset: 3px;
}

.site-nav__brand-img--wordmark,
.site-nav__brand-img--mark {
  width: auto;
}

.site-nav__brand-img.arche-logo {
  opacity: 1;
}

.site-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: inline-block;
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  letter-spacing: normal;
  text-decoration: none;
  transition: color 160ms ease;
}

.site-nav__link--primary {
  color: #fff8ef;
}

.site-nav__link.site-nav__link--primary.arche-nav-link {
  opacity: 1;
}

.arche-nav-link {
  transition: color 0.16s ease;
}

.site-nav__link--primary:hover {
  color: #fff8ef;
}

.site-nav__link--primary:focus-visible {
  outline: 2px solid rgba(255, 248, 239, 0.45);
  outline-offset: 3px;
  color: #fff8ef;
}

.site-nav__toggle {
  display: none;
  flex-shrink: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: none;
  font: inherit;
  cursor: pointer;
  background: transparent;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.site-nav__toggle:hover {
  opacity: 0.85;
}

.site-nav__toggle:focus-visible {
  outline: 2px solid rgba(255, 248, 239, 0.55);
  outline-offset: 3px;
}

.site-nav__toggle-bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background-color: #fff8ef;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-nav.is-menu-open .site-nav__toggle-bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-nav.is-menu-open .site-nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-nav.is-menu-open .site-nav__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .site-nav {
    transition: none;
  }

  .site-nav__brand-img {
    transition: none;
  }

  .site-nav__link {
    transition: none;
  }

  .site-nav__link--primary {
    transition: none;
  }

  .site-nav__brand-img.arche-logo {
    transition: none;
  }

  .arche-nav-link {
    transition: none;
  }

  .site-nav__toggle-bar {
    transition: none;
  }

  .site-nav .arche-nav.site-nav__collapsible {
    transition: none;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .site-nav.site-nav--compact {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 12px 16px;
  }

  .site-nav .site-nav__inner,
  .site-nav.site-nav--compact .site-nav__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: none;
    flex: none;
  }

  .site-nav .arche-logo-link.site-nav__brand,
  .site-nav.site-nav--compact .arche-logo-link.site-nav__brand {
    order: 1;
    margin: 0 auto 0 0;
  }

  .site-nav .site-nav__toggle,
  .site-nav.site-nav--compact .site-nav__toggle {
    order: 2;
    display: flex;
    position: relative;
    align-self: center;
    margin-left: auto;
    padding: 8px;
  }

  .site-nav .arche-nav.site-nav__collapsible,
  .site-nav.site-nav--compact .arche-nav.site-nav__collapsible {
    order: 3;
    flex: none;
    flex-basis: 100%;
    width: calc(100% + 32px);
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    margin-top: 0;
    margin-left: -16px;
    margin-right: -16px;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    pointer-events: none;
    transition: max-height 0.4s ease;
  }

  .site-nav.is-menu-open .arche-nav.site-nav__collapsible,
  .site-nav.site-nav--compact.is-menu-open .arche-nav.site-nav__collapsible {
    max-height: 300px;
    pointer-events: auto;
    padding: 24px 16px;
    background: rgba(13, 13, 21, 0.97);
    box-sizing: border-box;
  }

  .site-nav .site-nav__links,
  .site-nav.site-nav--compact .site-nav__links {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
  }

  .site-nav .site-nav__link--primary.arche-nav-link,
  .site-nav.site-nav--compact .site-nav__link--primary.arche-nav-link {
    font-size: 18px;
  }

  .site-nav .arche-logo,
  .site-nav.site-nav--compact .arche-logo {
    height: 36px;
  }
}

@media (min-width: 761px) {
  .site-nav__toggle {
    display: none !important;
  }

  .site-nav .arche-nav.site-nav__collapsible {
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow: visible !important;
    pointer-events: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border-top: none !important;
    transition: none !important;
  }

  .site-nav.site-nav--compact .arche-nav.site-nav__collapsible {
    width: auto !important;
  }
}

/* ——— Site footer ——— */

.site-footer {
  position: relative;
  z-index: 2;
  padding: 24px clamp(20px, 4vw, 56px) 16px;
  background-color: #070708;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 248, 239, 0.6);
  box-sizing: border-box;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  box-sizing: border-box;
}

.site-footer__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 248, 239, 0.7);
  line-height: 0;
  transition: color 0.2s ease;
}

.site-footer__social-link:hover {
  color: rgba(255, 248, 239, 1);
}

.site-footer__social-link:focus-visible {
  outline: 2px solid rgba(255, 248, 239, 0.45);
  outline-offset: 4px;
  color: rgba(255, 248, 239, 1);
}

.site-footer__meta {
  margin: 1rem 0 0;
  padding: 0;
  line-height: 1.5;
}

.site-footer__credit {
  margin: 0.5rem 0 0;
  padding: 0;
  line-height: 1.5;
}

.site-footer__inline-link {
  color: inherit;
  text-decoration: underline;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__credit a:hover {
  color: rgba(255, 248, 239, 1);
}

.site-footer__credit a:focus-visible {
  outline: 2px solid rgba(255, 248, 239, 0.45);
  outline-offset: 2px;
}

/* ——— Portfolio overview (root index) ——— */

body.portfolio-overview {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #000000;
  padding-top: 0 !important;
}

.portfolio-overview main {
  flex: 1 1 auto;
  position: relative;
  z-index: 0;
  padding-top: 0;
  margin-top: 0;
  display: flex;
  flex-direction: column;
}

body.portfolio-overview .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

#projects.portfolio-projects {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  padding: 220px 1.5rem 2.5rem;
  box-sizing: border-box;
  background-color: #000000;
}

#projects .starfield-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

#projects .plexus-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  display: block;
}

@media (max-width: 899px) {
  #projects .plexus-canvas {
    display: none !important;
  }
}

.portfolio-overview #projects.portfolio-projects {
  flex: 1 1 auto;
}

.portfolio-projects__heading {
  margin: 0 auto 1.5rem;
  max-width: 1200px;
  padding-top: 1.25rem;
  padding-bottom: 0.35rem;
  font-family: "Comfortaa", cursive;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  line-height: 1.2;
  color: #ebe8e4;
  text-align: center;
}

.portfolio-projects {
  padding: 2rem 1.5rem 2.5rem;
  box-sizing: border-box;
}

#projects .portfolio-projects__inner {
  position: relative;
  z-index: 1;
}

.portfolio-projects__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-projects__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 0;
}

@media (min-width: 640px) {
  .portfolio-projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .portfolio-projects__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: rgba(12, 12, 16, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

a.project-card {
  cursor: pointer;
}

.project-card--soon {
  cursor: default;
}

.project-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #0c0c10;
  overflow: hidden;
}

.project-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: var(--thumb-object-position, center);
}

.project-card--soon .project-card__thumb {
  background: linear-gradient(
    145deg,
    rgba(20, 20, 28, 0.95) 0%,
    rgba(12, 12, 16, 1) 50%,
    rgba(24, 22, 18, 0.9) 100%
  );
}

.project-card__body {
  padding: 1.25rem 1.35rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.project-card__title {
  margin: 0;
  font-family: "Comfortaa", cursive;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: normal;
  color: #ebe8e4;
}

.project-card__tag {
  margin: 0;
  font-family: "Comfortaa", cursive;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #888;
}

.project-card--soon .project-card__title,
.project-card--soon .project-card__tag {
  color: #666;
}

.portfolio-scroll-anchor {
  display: block;
  width: 100%;
  height: 2px;
  margin: 0;
  padding: 0;
  scroll-margin-top: 5rem;
  pointer-events: none;
  visibility: hidden;
  overflow: hidden;
}

.portfolio-scroll-anchor--after-grid {
  min-height: 5rem;
  height: auto;
}

#overview-video.project-card,
#overview-lumihedron.project-card,
#overview-galerie.project-card,
#overview-technik.project-card {
  scroll-margin-top: 5rem;
}

.project-card--link:hover {
  transform: translateY(-6px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(200, 169, 110, 0.15);
  border-color: #c8a96e;
}

.project-card--link:focus-visible {
  outline: 2px solid #c8a96e;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }

  .project-card--link:hover {
    transform: none;
  }
}

/* Project page video cells + mobile play overlay */
.videos .videos__cell {
  position: relative;
}

.videos__play {
  display: none;
}

@media (pointer: coarse) and (max-width: 900px) {
  .videos__play {
    display: flex;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(5, 5, 8, 0.42);
    z-index: 2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.22s ease;
  }

  .videos__play:focus-visible {
    outline: 2px solid rgba(200, 169, 110, 0.9);
    outline-offset: 2px;
  }

  .videos__play-icon {
    width: min(32vw, 132px);
    height: min(32vw, 132px);
    flex-shrink: 0;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.55));
  }

  .videos__cell.videos__cell--playing .videos__play {
    opacity: 0;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .videos__play {
    transition: none;
  }
}

/* Project page inline clips: keep native aspect (portrait / landscape); size cap matches gallery philosophy */
.videos .videos__clip {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(85vh, 1200px);
  margin-inline: auto;
  object-fit: contain;
  background-color: #0c0c10;
  pointer-events: auto;
  touch-action: manipulation;
}

@media (pointer: coarse) and (max-width: 900px) {
  .videos .videos__clip {
    cursor: pointer;
  }
}

/* Arche project pages: stacked #videos clips — ~48% centered column, no #0c0c10 chrome / grey bars */
body.boomfestival-page .videos__stack,
body.cosmicmoon-page .videos__stack,
body.interferenzen-page .videos__stack,
body.lichtung-page .videos__stack,
body.lumihedron-page .videos__stack,
body.naturaillumina-page .videos__stack {
  grid-template-columns: 1fr;
}

body.boomfestival-page .videos__cell,
body.cosmicmoon-page .videos__cell,
body.interferenzen-page .videos__cell,
body.lichtung-page .videos__cell,
body.lumihedron-page .videos__cell,
body.naturaillumina-page .videos__cell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 48%;
  margin-left: auto;
  margin-right: auto;
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

body.boomfestival-page .videos__cell:hover,
body.cosmicmoon-page .videos__cell:hover,
body.interferenzen-page .videos__cell:hover,
body.lichtung-page .videos__cell:hover,
body.lumihedron-page .videos__cell:hover,
body.naturaillumina-page .videos__cell:hover {
  box-shadow: none;
}

body.boomfestival-page .videos .videos__clip,
body.cosmicmoon-page .videos .videos__clip,
body.interferenzen-page .videos .videos__clip,
body.lichtung-page .videos .videos__clip,
body.lumihedron-page .videos .videos__clip,
body.naturaillumina-page .videos .videos__clip {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  margin-left: auto;
  margin-right: auto;
  vertical-align: top;
  object-fit: contain;
  background-color: transparent;
}

@media (max-width: 768px) {
  body.boomfestival-page .videos__cell,
  body.boomfestival-page .videos .videos__clip,
  body.cosmicmoon-page .videos__cell,
  body.cosmicmoon-page .videos .videos__clip,
  body.interferenzen-page .videos__cell,
  body.interferenzen-page .videos .videos__clip,
  body.lichtung-page .videos__cell,
  body.lichtung-page .videos .videos__clip,
  body.lumihedron-page .videos__cell,
  body.lumihedron-page .videos .videos__clip,
  body.naturaillumina-page .videos__cell,
  body.naturaillumina-page .videos .videos__clip {
    max-width: 100%;
    width: 100%;
  }
}

/* ——— Galerie: Orientierung beibehalten (Portrait/Landscape/sonstige), nicht beschneiden ——— */

.galerie__thumb,
.galerie__thumb--featured {
  display: block;
}

.galerie__thumb img,
.galerie__thumb video,
.galerie__thumb--featured img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(85vh, 1800px);
  margin-inline: auto;
  vertical-align: top;
  transition: filter 0.3s ease;
}

.galerie__thumb:hover img,
.galerie__thumb:hover video {
  filter: brightness(1.1);
}

.galerie__thumb:has(img[src=""]) {
  pointer-events: none;
  cursor: default;
}

.galerie__thumb:has(img[src=""]):hover {
  transform: none;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.galerie__thumb img[src=""] {
  width: 100%;
  min-height: 200px;
  max-height: none;
  background-color: #121218;
}

@media (prefers-reduced-motion: reduce) {
  .galerie__thumb img,
  .galerie__thumb video,
  .galerie__thumb--featured img {
    transition: none;
  }

  .galerie__thumb:hover img,
  .galerie__thumb:hover video {
    filter: none;
  }
}

/* ============================================================
   Pill Header (v2 — matches Nuxt MainNavigation.vue)
   ============================================================ */

.pill-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 16px clamp(12px, 3vw, 32px);
  pointer-events: none;
  transition: padding 0.4s ease;
}

.pill-header .pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(960px, 100%);
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,248,239,0.06) 0%, rgba(255,248,239,0.02) 100%);
  border: 1px solid rgba(255,248,239,0.12);
  box-shadow: 0 8px 32px -8px rgba(0,0,0,0.6), inset 0 1px 0 0 rgba(255,248,239,0.08);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: all 0.5s cubic-bezier(0.22,1,0.36,1);
  position: relative;
  overflow: hidden;
}

.pill-header .pill::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(200,169,110,0.08) 50%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.pill-header .pill:hover::before {
  opacity: 1;
}

.pill-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff8ef;
  text-decoration: none;
}

.pill-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(200,169,110,0.4));
}

.pill-brand-text {
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: none;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.pill-link {
  background: transparent;
  border: 0;
  color: rgba(255,248,239,0.92);
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  text-decoration: none;
}

.pill-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(200,169,110,0.12);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.pill-link:hover {
  color: #e8d9b4;
}

.pill-link:hover::after {
  opacity: 1;
}

.pill-lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  padding: 4px 10px;
  border-left: 1px solid rgba(255,248,239,0.18);
}

.pill-lang-btn {
  font-family: "Comfortaa", cursive;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: rgba(255,248,239,0.5);
  padding: 4px 6px;
  border-radius: 999px;
  transition: color 0.25s ease;
  text-decoration: none;
}

.pill-lang-btn:hover {
  color: #e8d9b4;
}

.pill-lang-btn.active {
  color: #c8a96e;
}

.pill-lang-sep {
  color: rgba(255,248,239,0.25);
  font-size: 0.78rem;
}

.pill-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  margin-left: auto;
  cursor: pointer;
}

.pill-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: #fff8ef;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

.pill-toggle span.x:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pill-toggle span.x:nth-child(2) { opacity: 0; }
.pill-toggle span.x:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .pill-header .pill { padding: 6px 6px 6px 14px; }
  .pill-brand-text { display: none; }
  .pill-toggle { display: flex; }
  .pill-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(13,13,21,0.85);
    border: 1px solid rgba(255,248,239,0.1);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }
  .pill-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .pill-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.85rem;
  }
}

/* hide legacy .site-nav if it accidentally renders alongside pill */
.site-nav { display: none !important; }

/* Embed mode (project page loaded inside onepager modal-iframe) */
html.is-embed body { padding-top: 0 !important; }
html.is-embed .site-footer { display: none !important; }
html.is-embed #preloader { display: none !important; }

/* Embed mode — robust scroll + remove top padding */
html.is-embed,
html.is-embed body {
  padding-top: 0 !important;
  margin: 0 !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100% !important;
}
html.is-embed .site-nav,
html.is-embed .pill-header { display: none !important; }

/* Embed mode — final: single scroll (html only, body never) */
html.is-embed { overflow-y: auto !important; overflow-x: hidden !important; }
html.is-embed body { overflow: visible !important; }

/* ── Share mode — versendbare Standalone-Seite: Header/Footer aus, nur Mini-Pill oben links ── */
html.is-share .site-footer { display: none !important; }
html.is-share .pill-header { display: none !important; }
html.is-share #preloader { display: none !important; }
html.is-share body { padding-top: 0 !important; }

.share-pill-wrap {
  position: fixed;
  top: 0;
  z-index: 60;
  padding: clamp(14px, 2.5vw, 24px) clamp(14px, 3vw, 28px);
  pointer-events: none;
}
.share-pill-wrap--left { left: 0; }
.share-pill-wrap--right { right: 0; }
.share-pill {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.07) 0%, rgba(255, 248, 239, 0.025) 100%);
  border: 1px solid rgba(255, 248, 239, 0.13);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.6), inset 0 1px 0 0 rgba(255, 248, 239, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
.share-pill--lang { padding: 12px 24px; }
.share-pill:hover { border-color: rgba(200, 169, 110, 0.4); }
.share-pill__home {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.share-pill__home:hover { transform: scale(1.08); }
.share-pill__home img { width: 52px; height: 52px; display: block; }
.share-pill__sep {
  width: 2px;
  height: 44px;
  background: rgba(255, 248, 239, 0.18);
  margin: 0 4px;
}
.share-pill__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  color: rgba(255, 248, 239, 0.72);
  transition: color 0.25s ease, background 0.25s ease;
}
.share-pill__social:hover { color: #c8a96e; background: rgba(255, 248, 239, 0.06); }
.share-pill__social svg { width: 40px; height: 40px; }
@media (max-width: 600px) {
  .share-pill-wrap { padding: clamp(10px, 2vw, 16px) 10px; }
  .share-pill { gap: 7px; padding: 8px 14px 8px 10px; }
  .share-pill__home img { width: 34px; height: 34px; }
  .share-pill__sep { height: 30px; margin: 0 2px; }
  .share-pill__social { width: 42px; height: 42px; }
  .share-pill__social svg { width: 25px; height: 25px; }
}
@media (max-width: 380px) {
  .share-pill-wrap { padding: 9px 8px; }
  .share-pill { gap: 5px; padding: 7px 11px 7px 9px; }
  .share-pill__home img { width: 31px; height: 31px; }
  .share-pill__social { width: 36px; height: 36px; }
  .share-pill__social svg { width: 22px; height: 22px; }
}

/* EN/DE-Umschalter — eigene Pill oben rechts */
.share-pill--lang { gap: 8px; font-family: "Comfortaa", sans-serif; }
.share-pill__lang-btn {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 248, 239, 0.6);
  padding: 2px 8px;
  transition: color 0.25s ease;
}
.share-pill__lang-btn:hover { color: #fff8ef; }
.share-pill__lang-btn.is-active { color: #c8a96e; }
.share-pill__lang-div { color: rgba(255, 248, 239, 0.3); font-size: 1.4rem; }
@media (max-width: 600px) {
  .share-pill--lang { padding: 7px 13px; gap: 6px; }
  .share-pill__lang-btn { font-size: 0.98rem; letter-spacing: 0.02em; padding: 2px 6px; }
  .share-pill__lang-div { font-size: 0.95rem; }
}
@media (max-width: 380px) {
  .share-pill--lang { padding: 6px 11px; gap: 4px; }
  .share-pill__lang-btn { font-size: 0.9rem; padding: 2px 5px; }
  .share-pill__lang-div { font-size: 0.88rem; }
}

/* Share-Modus: Footer ist ausgeblendet -> Luft nach dem letzten Inhalt.
   Body/HTML erben sonst das globale #13171f (bläulich) -> der Padding-Streifen
   unten wirkt blau. Auf die Seiten-Basisfarbe #050508 setzen = gleich wie Rest. */
html.is-share,
html.is-share body { background-color: #050508; }
html.is-share body { padding-bottom: clamp(4rem, 12vh, 9rem); }
