@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url("../fonts/Geist-Variable.woff2") format("woff2");
}

:root {
  --background: #ffffff;
  --foreground: #171717;
  --border: rgba(0, 0, 0, 0.1);
  --surface: rgba(0, 0, 0, 0.05);
  --accent: #1a56db;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Geist", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

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

.site-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 1024px) {
  .site-layout {
    flex-direction: row;
    align-items: flex-start;
  }
}

.site-main {
  flex: 1;
  min-width: 0;
}

img {
  max-width: 100%;
  display: block;
}

a:focus-visible,
button:focus-visible,
.artwork-card:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

.container--narrow {
  max-width: 56rem;
}

.container--text {
  max-width: 42rem;
}

.opacity-60 {
  opacity: 0.7;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-80 {
  opacity: 0.8;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--background) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-header__logo {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.site-nav a:hover {
  opacity: 0.6;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
  .mobile-nav-toggle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-header {
    display: none;
  }
}

/* Sidebar (Desktop, ab 1024px) */

.site-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .site-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: sticky;
    top: 0;
    height: 100vh;
    width: 15rem;
    flex-shrink: 0;
    padding: 2.5rem 1.5rem;
    border-right: 1px solid var(--border);
  }
}

.site-sidebar__logo {
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 2.5rem;
}

.site-sidebar__groups {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.site-sidebar__group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.site-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9375rem;
}

.site-sidebar__links a {
  color: var(--accent);
}

.site-sidebar__links a:hover,
.site-sidebar__links a:focus-visible {
  text-decoration: underline;
}

.site-sidebar__footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8125rem;
  opacity: 0.7;
}

.site-sidebar__footer a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.site-sidebar__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-sidebar__instagram:hover {
  opacity: 0.7;
  text-decoration: none;
  transform: scale(1.08);
}

.site-sidebar__legal {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Mobile nav */

.mobile-nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-right: -0.5rem;
  gap: 0.375rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  height: 1px;
  width: 1.5rem;
  background: currentColor;
  transition: transform 0.2s ease;
}

.mobile-nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav-panel {
  display: none;
  position: fixed;
  inset-inline: 0;
  top: 4rem;
  z-index: 30;
  height: calc(100vh - 4rem);
  background: var(--background);
  overflow-y: auto;
}

.mobile-nav-panel.open {
  display: block;
}

.mobile-nav-panel ul {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.mobile-nav-panel li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav-panel a {
  display: block;
  padding: 1rem 0;
  font-size: 1.125rem;
}

@media (min-width: 768px) {
  .mobile-nav-panel {
    display: none !important;
  }
}

/* Page heading */

.page-heading {
  margin-bottom: 2.5rem;
  max-width: 42rem;
}

@media (min-width: 640px) {
  .page-heading {
    margin-bottom: 3.5rem;
  }
}

.page-heading h1 {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  .page-heading h1 {
    font-size: 2.25rem;
  }
}

.page-heading p {
  margin-top: 0.75rem;
  font-size: 1rem;
  opacity: 0.7;
}

.home-tagline {
  font-size: 1.875rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  opacity: 1;
  margin: 0;
}

@media (min-width: 640px) {
  .home-tagline {
    font-size: 2.25rem;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-image {
  max-width: 42rem;
  background: var(--surface);
}

.home-image img {
  width: 100%;
  height: auto;
  display: block;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .section-heading {
    margin-bottom: 3.5rem;
  }
}

.section-heading::before,
.section-heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-heading h1 {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
  white-space: nowrap;
}

.section-description {
  text-align: center;
  opacity: 0.7;
  margin: -1.5rem 0 2.5rem;
}

@media (min-width: 640px) {
  .section-description {
    margin: -2.5rem 0 3.5rem;
  }
}

.page {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .page {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Gallery — Thumbnail-Grid, öffnet Lightbox */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.25rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 1280px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.artwork-card {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.artwork-card.js-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.artwork-card.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .artwork-card.js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.artwork-card__image-wrap {
  position: relative;
  width: 100%;
  min-height: 8rem;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
}

.artwork-card__image-wrap img {
  width: 100%;
  height: 100%;
  min-height: 8rem;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.artwork-card:hover .artwork-card__image-wrap img,
.artwork-card:focus-visible .artwork-card__image-wrap img {
  transform: scale(1.03);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--background) 96%, transparent);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  font-size: 0.8125rem;
  opacity: 0.8;
  flex-shrink: 0;
}

.lightbox__counter {
  font-variant-numeric: tabular-nums;
}

.lightbox__close {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.lightbox__close:hover {
  opacity: 0.6;
}

.lightbox__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3.5rem;
}

@media (max-width: 640px) {
  .lightbox__stage {
    padding: 0 3rem;
  }
}

.lightbox__image-wrap {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__image-wrap img {
  position: absolute;
  max-width: 100%;
  max-height: calc(100vh - 11rem);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
  touch-action: none;
}

.lightbox__image-wrap img.is-loaded {
  position: relative;
  opacity: 1;
}

.lightbox__image-wrap img.is-zoomed {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox__image-wrap img {
    transition: none;
    opacity: 1;
  }
}

.lightbox__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-size: 1.75rem;
}

.lightbox__nav:hover {
  opacity: 0.6;
}

.lightbox__nav--prev {
  left: 0;
}

.lightbox__nav--next {
  right: 0;
}

/* Artwork detail */

.artwork-detail {
  display: block;
  max-width: 42rem;
  margin: 0 auto;
}

.artwork-detail__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: var(--surface);
  border: none;
  padding: 0;
  cursor: pointer;
}

.artwork-detail__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artwork-detail__back {
  font-size: 0.875rem;
  opacity: 0.6;
}

.artwork-detail__back:hover {
  opacity: 1;
}

.artwork-detail__more-images {
  margin-top: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .artwork-detail__more-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

.artwork-detail__more-images button {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  overflow: hidden;
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
}

.artwork-detail__more-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vita */

.vita-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 640px) {
  .vita-layout {
    grid-template-columns: 160px 1fr;
    gap: 3rem;
  }
}

.vita-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  max-width: 160px;
  background: var(--surface);
}

.vita-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vita-bio {
  font-size: 1rem;
  line-height: 1.7;
}

.vita-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vita-entry {
  display: flex;
  gap: 1rem;
}

.vita-entry__year {
  opacity: 0.7;
  width: 6.5rem;
  flex-shrink: 0;
}

.vita-location {
  margin-top: 2rem;
  opacity: 0.7;
}

/* Legal pages (Impressum, Datenschutz) */

.legal-page {
  line-height: 1.7;
}

.legal-page h2 {
  font-size: 1.125rem;
  font-weight: 500;
  margin: 2.5rem 0 0.75rem;
}

.legal-page h2:first-of-type {
  margin-top: 2rem;
}

.legal-page p {
  margin: 0 0 0.5rem;
}

.legal-page a {
  text-decoration: underline;
}

.legal-placeholder-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
}

/* Exhibitions */

.exhibition-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.exhibition-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .exhibition-item {
    grid-template-columns: 140px 1fr;
    gap: 2rem;
  }
}

.exhibition-item__image {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 140px;
  background: var(--surface);
}

.exhibition-item__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exhibition-item__date-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  opacity: 0.6;
}

.badge {
  border-radius: 9999px;
  border: 1px solid currentColor;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
}

.exhibition-item__title {
  margin: 0.25rem 0 0;
  font-size: 1.25rem;
  font-weight: 400;
}

.exhibition-item__location {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  opacity: 0.7;
}

.exhibition-item__description {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.8;
}

/* Contact form */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: currentColor;
}

.btn {
  min-height: 2.75rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  align-self: flex-start;
}

.btn:hover {
  background: var(--foreground);
  color: var(--background);
}

.form-privacy-note {
  font-size: 0.8125rem;
  opacity: 0.7;
  margin-top: -0.5rem;
}

.form-privacy-note a {
  text-decoration: underline;
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
}

.site-footer__inner {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.7;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
  }
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.site-footer__links a:hover {
  opacity: 0.6;
}

.site-footer__instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.site-footer__instagram:hover {
  opacity: 0.6;
  transform: scale(1.08);
}

.empty-state {
  opacity: 0.6;
}
