:root {
  --pf-obsidian: #0b0908;
  --pf-espresso: #17110d;
  --pf-bronze: #c4ad9e;
  --pf-gold: #dcc2a4;
  --pf-ivory: #efe4d6;
  --pf-ash: rgba(239, 228, 214, 0.72);
  --pf-line: rgba(196, 173, 158, 0.2);
  --pf-shadow: 0 24px 70px rgba(5, 4, 3, 0.55);
  --pf-radius: 16px;
  --pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.pf-showroom-page {
  background-color: #0b0907;
  color: var(--pf-ivory);
  font-family: "Source Sans 3", sans-serif;
  position: relative;
}

.pf-showroom-page > * {
  position: relative;
  z-index: 2;
}

.pf-showroom-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../images/Portfolio/MaisonPortfolio.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.pf-showroom-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(8, 6, 5, 0.62), rgba(8, 6, 5, 0.62));
  background-size: 160px 160px, auto;
  background-repeat: repeat, no-repeat;
  background-position: 0 0, 0 0;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 768px) {
  .pf-showroom-page::before {
    background-image: url("../images/Portfolio/logohintergrungportfolio.PNG");
  }
}

.pf-header {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10;
}

.pf-header .navbar-collapse .nav-link {
  color: rgba(239, 228, 214, 0.82);
}

.pf-header .navbar-collapse .nav-link.active,
.pf-header .navbar-collapse .nav-link:hover {
  color: var(--pf-gold);
}

.pf-showroom-page .pf-header.is-scrolled {
  background: rgba(11, 8, 9, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.pf-showroom {
  padding-top: 150px;
}

.pf-center {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.pf-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.38em;
  font-size: 12px;
  color: rgba(220, 194, 164, 0.7);
  margin-bottom: 16px;
}

.pf-tabs {
  padding: 30px 0 36px;
}

.pf-tabs-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  justify-content: center;
  white-space: nowrap;
}

.pf-tab {
  padding: 8px 16px 10px;
  border: none;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(239, 228, 214, 0.6);
  position: relative;
  transition: color 0.4s var(--pf-ease);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .pf-tab {
    background: rgba(8, 6, 5, 0.24);
    border-radius: 6px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  }
}

.pf-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(220, 194, 164, 0.6);
  transform: scaleX(0.2);
  transform-origin: center;
  opacity: 0;
  transition: transform 0.6s var(--pf-ease), opacity 0.6s var(--pf-ease);
}

.pf-tab.is-active {
  color: rgba(239, 228, 214, 0.95);
}

.pf-tab.is-active::after {
  opacity: 1;
  transform: scaleX(0.85);
}

.pf-tab:focus-visible {
  outline: 2px solid rgba(220, 194, 164, 0.7);
  outline-offset: 3px;
}

.pf-divider {
  width: min(640px, 88vw);
  height: 1px;
  margin: 10px auto 0;
  background: rgba(196, 173, 158, 0.25);
}

.pf-divider--footer {
  margin: 10px auto 10px;
}

.pf-stage {
  padding: 0 0 90px;
}

.pf-stage-shell {
  position: relative;
  padding: 12px 0 0;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
  border-radius: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: opacity 0.6s var(--pf-ease), transform 0.6s var(--pf-ease);
}

.pf-stage-shell.is-dimming {
  opacity: 0.85;
  transform: translateY(6px);
}

.pf-spotlight {
  position: absolute;
  top: -12px;
  left: 50%;
  width: 320px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 0%, rgba(239, 228, 214, 0.22), transparent 74%);
  opacity: 0.45;
  pointer-events: none;
}

.pf-stage-shell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: min(220px, 40vw);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(239, 228, 214, 0.6), transparent);
  opacity: 0;
}

.pf-stage-shell.is-switching::after {
  animation: pfLineGlow 800ms var(--pf-ease) 1;
}

.pf-stage-frame {
  position: relative;
  width: min(520px, 88vw);
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(196, 173, 158, 0.35);
  background: rgba(10, 7, 6, 0.15);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  transition: transform 0.8s var(--pf-ease), box-shadow 0.8s var(--pf-ease);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.pf-stage-frame.is-placeholder {
  background:
    linear-gradient(140deg, rgba(24, 18, 14, 0.75), rgba(10, 7, 6, 0.9)),
    repeating-linear-gradient(45deg, rgba(220, 194, 164, 0.12), rgba(220, 194, 164, 0.12) 8px, transparent 8px, transparent 18px);
  border-color: rgba(196, 173, 158, 0.5);
}

.pf-stage-frame.is-placeholder::after {
  content: "Platzhalter";
  position: absolute;
  inset: auto 0 22px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: rgba(239, 228, 214, 0.75);
}

.pf-stage-frame.is-placeholder .pf-stage-image {
  opacity: 0;
}

.pf-stage-frame.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 11, 0.04);
}

@media (max-width: 768px) {
  .pf-stage-frame.is-loading::before {
    background: rgba(20, 14, 11, 0.04);
  }

  .pf-stage-frame {
    background: rgba(10, 7, 6, 0.15);
  }

  .pf-stage-links {
    margin-top: 8px;
  }
}

.pf-stage-shell.is-switching[data-direction="next"] .pf-stage-frame {
  transform: rotateY(-6deg) translateY(4px);
}

.pf-stage-shell.is-switching[data-direction="prev"] .pf-stage-frame {
  transform: rotateY(6deg) translateY(4px);
}

.pf-stage-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.6s var(--pf-ease);
}

.pf-stage-image.is-contain {
  object-fit: contain;
}

.pf-stage-frame:not(.is-loading) .pf-stage-image {
  opacity: 1;
}

.pf-stage-caption {
  max-width: 420px;
  display: grid;
  gap: 6px;
  text-align: center;
}

.pf-stage-caption span {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: rgba(220, 194, 164, 0.7);
}

.pf-stage-caption h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
}

.pf-stage-caption p {
  margin: 0;
  color: var(--pf-ash);
  line-height: 1.7;
}

.pf-stage-detail-toggle {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(220, 194, 164, 0.55);
  background: rgba(16, 12, 10, 0.75);
  color: rgba(239, 228, 214, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pf-stage-detail-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}

.pf-stage-detail-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(220, 194, 164, 0.85);
  color: #dcc2a4;
}

.pf-stage-detail {
  display: none;
  max-width: 420px;
  text-align: left;
  color: var(--pf-ash);
  line-height: 1.7;
  font-size: 13px;
}

.pf-stage-detail.is-open {
  display: block;
}

.pf-stage-links {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 10px;
  color: rgba(239, 228, 214, 0.6);
}

.pf-stage-links a {
  color: rgba(239, 228, 214, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(220, 194, 164, 0.3);
  transition: color 0.4s var(--pf-ease), border-color 0.4s var(--pf-ease);
}

.pf-stage-links a:hover {
  color: rgba(239, 228, 214, 0.95);
  border-color: rgba(220, 194, 164, 0.6);
}

.pf-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(220, 194, 164, 0.35);
  border-radius: 999px;
  color: rgba(239, 228, 214, 0.7);
  background: rgba(12, 9, 8, 0.75);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--pf-ease), transform 0.4s var(--pf-ease);
  transform: translateY(6px);
  z-index: 50;
}

.pf-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.pf-chevron {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 6px 10px;
  border: none;
  background: transparent;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: rgba(239, 228, 214, 0.72);
  transition: color 0.4s var(--pf-ease);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.pf-chevron:active {
  color: rgba(239, 228, 214, 0.95);
  text-shadow: 0 0 10px rgba(239, 228, 214, 0.35);
}

  .pf-chevron.is-glow {
    color: rgba(239, 228, 214, 0.95);
    text-shadow: 0 0 12px rgba(239, 228, 214, 0.4);
  }

  @media (max-width: 767px) {
  .pf-chevron.is-glow {
    background: transparent;
  }

  .pf-chevron.is-glow::before {
    background: rgba(239, 228, 214, 0.18);
  }
  }

.pf-chevron-left {
  left: 4px;
}

.pf-chevron-right {
  right: 4px;
}

.pf-chevron:hover {
  color: rgba(239, 228, 214, 0.95);
}

.pf-chevron:focus-visible {
  outline: 2px solid rgba(220, 194, 164, 0.7);
  outline-offset: 3px;
}


.pf-sidepanel {
  position: fixed;
  inset: 0;
  background: rgba(8, 7, 7, 0.88);
  display: none;
  z-index: 1000000;
  padding: 20px;
}

.pf-sidepanel.is-open {
  display: block;
}

.pf-sidepanel-inner {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(10, 8, 7, 0.96);
  border: 1px solid rgba(196, 173, 158, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  max-height: calc(100vh - 40px);
}

.pf-sidepanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(196, 173, 158, 0.18);
}

.pf-sidepanel-header h3 {
  margin: 6px 0 0;
  font-size: 18px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pf-sidepanel-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(196, 173, 158, 0.28);
  background: transparent;
  color: rgba(239, 228, 214, 0.85);
  font-size: 18px;
}

.pf-sidepanel-body {
  overflow-y: auto;
  padding: 20px 22px;
  display: grid;
  gap: 14px;
}

.pf-sidepanel-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  padding: 10px 0;
  border: none;
  background: transparent;
  text-align: left;
  color: inherit;
}

.pf-sidepanel-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(196, 173, 158, 0.22);
}

.pf-sidepanel-thumb.is-placeholder {
  background:
    linear-gradient(140deg, rgba(24, 18, 14, 0.75), rgba(10, 7, 6, 0.9)),
    repeating-linear-gradient(45deg, rgba(220, 194, 164, 0.12), rgba(220, 194, 164, 0.12) 6px, transparent 6px, transparent 14px);
  position: relative;
}

.pf-sidepanel-thumb.is-placeholder::after {
  content: "Platzhalter";
  position: absolute;
  inset: auto 6px 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 8px;
  color: rgba(239, 228, 214, 0.75);
}

.pf-sidepanel-thumb.is-contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: rgba(12, 9, 7, 0.8);
}

.pf-sidepanel-text span {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  color: rgba(239, 228, 214, 0.9);
}

body.pf-sidepanel-open {
  overflow: hidden;
}

@keyframes pfLineGlow {
  0% {
    opacity: 0;
  }
  40% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 767px) {
  .pf-showroom-page {
    background-position: center;
    background-size: cover;
    background-attachment: scroll;
  }

  .pf-showroom {
    padding-top: 110px;
  }

  .pf-stage .pf-center {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .pf-stage-shell {
    padding: 4px 0 0;
  }

  .pf-stage-shell::after {
    top: 4px;
    height: 2px;
  }

  .pf-tabs-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    justify-items: center;
  }

  .pf-tab {
    text-align: center;
    padding: 8px 8px 10px;
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
    width: 100%;
  }

  .pf-stage-frame {
    margin: 0 auto;
  }


  .pf-stage-caption h3 {
    font-size: 20px;
  }

  .pf-sidepanel-item {
    grid-template-columns: 70px 1fr;
  }

  .pf-chevron {
    font-size: 12px;
    letter-spacing: 0.14em;
    color: rgba(239, 228, 214, 0.95);
    background: transparent;
    border-radius: 0;
    padding: 0 6px;
    line-height: 1.2;
    z-index: 2;
    top: 60%;
  }

  .pf-chevron::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 16px;
    transform: translateY(-50%);
    background: rgba(8, 7, 7, 0.6);
    border-radius: 4px;
    z-index: -1;
  }

  .pf-divider {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .pf-stage-shell,
  .pf-stage-frame,
  .pf-tab::after {
    animation: none;
    transition: none;
  }
}
