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

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  background: #fff;
  color: #000;
  animation: appear 0.4s ease forwards;
}

@keyframes appear {
  from { opacity: 0; }
  to   { opacity: 1; }
}

a { color: #000; text-decoration: none; }
a:hover { opacity: 0.4; }

/* SHARED HEADER */
.home-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 24px;
  background: #fff;
  color: #000;
  transition: top 2.8s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.6s ease, color 0.6s ease;
}

.home-header a,
.home-header .corner-button {
  color: inherit;
}

.brand {
  display: flex;
  align-items: center;
  justify-self: start;
  align-self: center;
}

.brand-name {
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-self: end;
  align-self: center;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  text-transform: uppercase;
}

.header-logo {
  justify-self: center;
  display: block;
  align-self: center;
}

.home-logo {
  display: block;
  width: 85px;
  max-height: 38px;
  height: auto;
  transition: filter 0.6s ease;
}

body.header-scrolled .home-header {
  background-color: #000;
  color: #fff;
}

body.header-scrolled .home-logo {
  filter: invert(1);
}

.corner-button {
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  color: #999;
}

.corner-button:hover { color: #000; }

.impressum-button {
  color: #000;
  text-transform: uppercase;
}

#imp {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.78);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 2;
  color: #999;
  text-align: center;
  z-index: 10000;
}

#imp.on { display: flex; }
#imp strong { color: #000; font-weight: 400; }

.imp-panel {
  position: relative;
  width: min(360px, calc(100vw - 48px));
  padding: 42px 34px 36px;
  background: #fff;
  border: 1px solid #f0f0f0;
}

.imp-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  color: #999;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
}

.imp-close:hover { color: #000; }

.imp-logo {
  display: block;
  width: 86px;
  height: auto;
  margin: 0 auto 28px;
}

/* ── LAYOUT ── */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 100px;
}

/* ── TOP BAR ── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 64px;
}

.top .site-name { font-size: 13px; }
.top .section   { color: #999; }

/* ── PAGE HEADER ── */
.page-header {
  margin-bottom: 48px;
}

.page-header h1 {
  font-size: 13px;
  font-weight: 400;
}

.page-header .sub {
  margin-top: 6px;
  color: #999;
}

.project-description {
  margin: -28px 0 48px;
  color: #000;
  font-size: 13px;
  line-height: 1.45;
}

.project-description .location {
  display: block;
  margin-bottom: 14px;
  color: #999;
  line-height: 1;
}

.project-iso {
  margin: -24px 0 32px;
}

.project-iso img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PROJECT LIST (arch.php) ── */
.project-list { list-style: none; }

.project-list li {
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.project-list li:last-child { border-bottom: 1px solid #f0f0f0; }

.project-list a {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 14px 0;
  transition: opacity 0.15s;
}

.project-list a:hover { opacity: 0.4; }
.project-list .num { color: #ccc; }

/* ── GALLERY (p1–p4) ── */
.gallery { display: flex; flex-direction: column; gap: 1px; }

.gallery figure { cursor: zoom-in; }
.gallery figure img { width: 100%; height: auto; display: block; }

.gallery figcaption {
  font-size: 11px;
  color: #999;
  padding: 8px 0 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

/* ── PAINTINGS ── */
.paint-page .page { padding-top: 104px; }
.painting { margin-bottom: 48px; }
.painting img { width: 100%; height: auto; display: block; }
.painting figcaption { font-size: 11px; color: #999; padding-top: 8px; }
.divider { border: none; border-top: 1px solid #f0f0f0; margin: 0 0 48px; }

.collection-link {
  display: block;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
}

.exhibition-ticker {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 14;
  height: 26px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
  white-space: nowrap;
  transform: translateY(-100%);
  transition: transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
}

body.exhibition-ticker-on .exhibition-ticker {
  transform: translateY(0);
}

body.exhibition-ticker-on .home-header {
  top: 26px;
}

body.exhibition-ticker-on.paint-page .page {
  padding-top: 130px;
}

.exhibition-ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: exhibitionTicker 42s linear infinite;
}

.exhibition-ticker-text {
  flex: 0 0 auto;
  min-width: 100vw;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 0 4px;
  font-size: 13px;
  text-transform: uppercase;
}

.exhibition-ticker-text span + span::before {
  content: "\25CB";
  display: inline-block;
  margin-right: 4px;
  font-size: 0.8em;
  transform: translateY(-0.05em);
}

@keyframes exhibitionTicker {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-50%,0,0); }
}

/* ── LIGHTBOX ── */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  z-index: 9999;
}
.lb.on { display: flex; }
.lb img { max-width: 92vw; max-height: 92vh; object-fit: contain; }

/* ── BOTTOM NAV ── */
.btm {
  display: flex;
  justify-content: space-between;
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
  font-size: 11px;
  color: #999;
}

.btm a { color: #999; }
.btm a:hover { color: #000; opacity: 1; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .page { padding: 56px 18px 80px; }
  .paint-page .page { padding-top: 78px; }
  .grid-2 { grid-template-columns: 1fr; }
  .home-header {
    grid-template-columns: auto 1fr;
    height: 46px;
    padding: 6px 18px 6px 4px;
  }

  .brand {
    display: none;
  }

  .header-logo {
    position: static;
    justify-self: start;
    align-self: center;
    transform: none;
  }

  .home-logo {
    width: 82px;
    max-height: 36px;
  }
  .home-nav,
  .corner-button { font-size: 10px; }
  .header-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.05;
  }

  .home-nav {
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    line-height: 1.05;
    white-space: nowrap;
  }

  .exhibition-ticker {
    height: 24px;
  }

  body.exhibition-ticker-on .home-header {
    top: 24px;
  }

  body.exhibition-ticker-on.paint-page .page {
    padding-top: 102px;
  }

  .exhibition-ticker-track {
    animation-duration: 34s;
  }

  .exhibition-ticker-text {
    justify-content: flex-start;
    gap: 4px;
    padding: 0 4px;
    font-size: 10px;
  }

  .exhibition-ticker-text span + span::before {
    margin-right: 4px;
  }

}
