/* =========================================================================
   STUDIO EFA – zentrale Designbasis
   Gilt für alle regulären Seiten mit .site-shared.
   news.html bleibt wegen seines eigenständigen Layouts ausgenommen.
   ========================================================================= */

html {
  margin: 0;
  padding: 0;
}

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

:root {
  --grid-padding: 2rem;
  --grid-gap: 2rem;
  --grid-padding-top: 6rem;
}

/* ---------- .page-project: gemeinsames Template der Projektseiten ---------- */

.page-project {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  background: #ffffff;
  color: #000;
  scroll-behavior: smooth;
  opacity: 0;
  transition: opacity 4s ease;
}

/* MUE hatte schon immer eine kürzere Einblendzeit (3s statt 4s) */
.page-project.fade-3s {
  transition: opacity 3s ease;
}

.page-project.loaded {
  opacity: 1;
}

.page-project header {
  position: sticky;
  top: 0;
}

.page-project .menu-links {
  margin-right: 36px;
}

.page-project .header-text {
  max-width: 800px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem;
  text-align: left;
}

.page-project .breadcrumb {
  font-size: 0.75rem;
  margin: 1rem 0 0 0;
}

.page-project .breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.page-project .breadcrumb a:hover {
  font-style: italic;
}

.page-project .header-text h1 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0.85rem 0 0.5rem 0;
}

.page-project .header-text h2 {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  text-transform: uppercase;
}

.page-project main {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  padding-bottom: 8rem;
}

.page-project main p {
  text-align: left;
}

.page-project h2 {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  margin: 2rem 0 1rem;
}

.page-project a {
  color: #000;
  text-decoration: none;
}

.page-project a:hover {
  font-weight: bold;
  font-style: italic;
}

/* Slideshow: weiches Überblenden (Crossfade), Container-Höhe wird per JS
   immer ans Seitenverhältnis des aktuellen Bildes angepasst (kein Zuschneiden) */
.page-project .slideshow-container {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: min(70vh, 800px);
  margin: 0 auto 2rem auto;
  overflow: hidden;
  background: #ffffff;
}

.page-project.slideshow-80vh .slideshow-container {
  height: min(80vh, 800px);
}

.page-project .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 0;
}

.page-project .slide.active {
  opacity: 1;
  z-index: 1;
}

.page-project .slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.page-project .prev,
.page-project .next {
  opacity: 0.4;
  transition: opacity 0.3s ease;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: black;
  font-weight: bold;
  font-size: 24px;
  user-select: none;
  z-index: 10;
}

.page-project .prev:hover,
.page-project .next:hover {
  opacity: 1;
}

.page-project .prev {
  left: 0;
}

.page-project .next {
  right: 0;
}

.page-project .project-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 1rem;
  row-gap: 0.2rem;
  margin: 0 0 2rem 0;
  align-items: start;
}

.page-project .project-meta-label {
  font-weight: bold;
  white-space: nowrap;
}

.page-project .project-meta-value {
  text-align: left;
}

/* Ungenutzt (Rest aus KIP), der Vollständigkeit halber mit übernommen */
.page-project .project-code {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-project footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.page-project footer.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .page-project .logo {
    margin-left: -1rem;
  }

  .page-project main p {
    text-align: left;
  }
}


@font-face {
  font-family: 'Nimbus Sans Becker';
  src: url('/fonts/Nimbus%20Sans%20Becker%20PBla%20Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================================
   Gemeinsame Designbasis aller Seiten mit .site-shared.
   news.html verwendet diese Basis bewusst nicht.
   ========================================================================= */

.site-shared {
  margin: 0;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  background: #ffffff;
  color: #000000;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.site-shared input,
.site-shared textarea,
.site-shared button {
  font-family: inherit;
}

.site-shared header {
  z-index: 1000;
  background: #ffffff;
  color: #000000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--grid-padding);
  box-shadow: none;
}

.site-shared header .logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: inherit;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.site-shared header .logo,
.site-shared header .logo * {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

.site-shared header .logo img {
  display: block;
  max-height: 20px;
  width: auto;
  height: auto;
}

.site-shared .hamburger {
  width: 36px;
  height: 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 2001;
}

.site-shared .hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #000000;
  border-radius: 2px;
  transition: 0.3s;
}

.site-shared .hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(1px, 11px);
}

.site-shared .hamburger.open span:nth-child(2) {
  opacity: 0;
}

.site-shared .hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -15px);
}

.site-shared .menu-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 2000;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.site-shared .menu-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.site-shared .menu-content {
  width: 100%;
  min-height: 100vh;
  padding: 3rem var(--grid-padding);
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.site-shared .menu-links {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.2rem;
}

.site-shared .menu-links a {
  color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-style: normal;
  font-weight: normal;
  letter-spacing: normal;
  text-align: right;
  text-decoration: none;
  transition: font-weight 0.2s, font-style 0.2s;
}

.site-shared .menu-links a:hover,
.site-shared .menu-links a:focus-visible {
  color: #000000;
  font-weight: bold;
  font-style: italic;
}

/* KIP-Menüvariante für Seiten, die das schlichte Projektmenü verwenden */
.site-shared main h1:not(.wordmark-main),
.site-shared main h2,
.site-shared main h3,
.site-shared .header-text h1,
.site-shared .header-text h2 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
}

.site-shared .site-heading {
  display: block;
  width: auto;
  max-width: 100%;
  padding: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: normal;
  font-style: normal;
  letter-spacing: normal;
  line-height: 1.3;
  text-transform: none;
  color: #000000;
}

.site-shared h1.site-heading {
  margin: 0.85rem 0 0.5rem;
  font-size: 2rem;
}

.site-shared h2.site-heading {
  margin: 2rem 0 1rem;
  font-size: 1.5rem;
}

.site-shared .header-text h2.site-heading {
  margin: 0 0 1rem;
}

.site-shared .accordion-header h2.site-heading {
  margin: 0 3rem 0 0;
}

.site-shared #page h2.site-heading {
  margin: 0 0 1.4rem;
}

.site-shared .site-heading .hl-bg {
  display: none;
}

.site-shared footer {
  padding: var(--grid-padding);
  text-align: center;
  background: #ffffff;
  color: #000000;
}

.site-shared .instagram-logo {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  fill: none;
  stroke: #000000;
  stroke-width: 20;
  transition: stroke 0.3s ease;
}

.site-shared .instagram-logo:hover {
  stroke: #555555;
}

.site-shared .footer-nap {
  margin: 0 0 1rem;
  font-style: normal;
  font-size: 0.75rem;
  line-height: 1.6;
}

.site-shared .footer-nap a {
  color: inherit;
  text-decoration: none;
}

.site-shared .footer-nap a:hover {
  font-style: italic;
}

.site-shared .footer-copyright {
  margin: 0;
  font-size: 0.75rem;
}

.maintenance-notice {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1900;
  text-align: center;
  box-sizing: border-box;
  padding: 0.55rem 3.5rem 0.55rem var(--grid-padding);
  border-top: 1px solid #d6d6d6;
  background: rgba(255, 255, 255, 0.96);
  color: #555555;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  line-height: 1.4;
}

.maintenance-notice__message {
  max-width: 1100px;
  margin: 0 auto;
}

.maintenance-notice__close {
  position: absolute;
  top: 50%;
  right: var(--grid-padding);
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #666666;
  font: inherit;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.maintenance-notice__close:hover,
.maintenance-notice__close:focus-visible {
  font-weight: bold;
}

.maintenance-notice__close:focus-visible {
  outline: 1px solid #666666;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .site-shared h1.site-heading {
    font-size: 1.6rem;
  }

  .maintenance-notice {
    padding: 0.5rem 3rem 0.5rem 1rem;
    font-size: 0.68rem;
  }

  .maintenance-notice__close {
    right: 1rem;
  }
}
