/* ============================================================
   tschalolag - retrospektive
   Redesign 2026 — warm gallery aesthetic
   ============================================================ */

:root {
  /* Color palette */
  --color-paper:      #FBF5F1;   /* soft blush-cream background, echoes the title painting */
  --color-paper-deep: #F3E9E3;   /* deeper blush panel tone */
  --color-ink:        #2E2A26;   /* near-black warm text */
  --color-indigo:     #3C4A6E;   /* original brand blue, retained */
  --color-saffron:    #E2862F;   /* terracotta / saffron accent, from original orange */
  --color-saffron-soft: #F2C18B; /* lighter accent for backgrounds */
  --color-line:       #E5D8CF;   /* hairline rule color */
  --color-muted:      #87766E;   /* secondary text */

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-ink);
  background-color: var(--color-paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-indigo);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}

a:hover,
a:focus-visible {
  border-bottom-color: currentColor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-saffron);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-weight: 400; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 {
  font-size: 0.78rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: 0.85em;
}

p { margin: 0 0 1em; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-saffron);
  margin-bottom: 0.9em;
}

.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 42em;
}

/* ============================================================
   Layout helpers
   ============================================================ */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
}

.section + .section {
  border-top: 1px solid var(--color-line);
}

.section--deep {
  background-color: var(--color-paper-deep);
}

.section-head {
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.two-col {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================================
   Header / Navigation
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(247, 243, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--color-ink);
  border-bottom: none;
}

.brand span {
  color: var(--color-saffron);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  width: 44px;
  height: 40px;
  position: relative;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 19px; }
.nav-toggle::after { top: 24px; }

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-5px) rotate(-45deg);
}
.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.main-nav__list {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-ink);
  padding-bottom: 2px;
}

.main-nav__list a[aria-current="page"] {
  color: var(--color-saffron);
  border-bottom-color: var(--color-saffron);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-paper);
    border-bottom: 1px solid var(--color-line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.is-open {
    max-height: 320px;
  }

  .main-nav__list {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .main-nav__list li {
    border-top: 1px solid var(--color-line);
  }

  .main-nav__list a {
    display: block;
    padding: 0.9rem 0;
  }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  padding-top: clamp(3rem, 9vw, 6rem);
  padding-bottom: clamp(3rem, 9vw, 6rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 860px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
  .hero__image {
    order: -1;
  }
}

.hero h1 {
  margin-bottom: 0.4em;
}

.hero__dates {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  margin-bottom: 1.6em;
}

.hero__notice {
  background-color: var(--color-paper-deep);
  border-left: 3px solid var(--color-saffron);
  padding: 1.1rem 1.4rem;
  font-size: 0.98rem;
  margin-bottom: 1.6em;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero__image img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(46, 42, 38, 0.35);
  width: 100%;
  height: auto;
}

.cta-row {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-ink);
  color: var(--color-ink);
  border-bottom-width: 1px;
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-ink);
  color: var(--color-paper);
}

.btn--primary {
  background-color: var(--color-saffron);
  border-color: var(--color-saffron);
  color: #FFFDF8;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: var(--color-ink);
  border-color: var(--color-ink);
  color: var(--color-paper);
}

/* ============================================================
   Gallery
   ============================================================ */

.gallery-intro {
  max-width: 42em;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: clamp(0.6rem, 1.4vw, 1.1rem);
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-color: var(--color-paper-deep);
  cursor: zoom-in;
  aspect-ratio: 4 / 5;
}

.gallery__item a {
  position: absolute;
  inset: 0;
  display: block;
  cursor: zoom-in;
}

.gallery__item a:hover,
.gallery__item a:focus-visible {
  border-bottom: none;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.05);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(46, 42, 38, 0.92);
  padding: clamp(1rem, 4vw, 3rem);
}

.lightbox.is-open {
  display: flex;
}

.lightbox__figure {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__figure img {
  max-height: 82vh;
  max-width: 100%;
  width: auto;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}

.lightbox__caption {
  color: var(--color-paper);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  text-transform: uppercase;
  opacity: 0.8;
}

.lightbox__caption a {
  color: var(--color-saffron-soft);
}

.lightbox__caption a:hover,
.lightbox__caption a:focus-visible {
  border-bottom-color: currentColor;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(247, 243, 236, 0.12);
  border: 1px solid rgba(247, 243, 236, 0.35);
  color: var(--color-paper);
  border-radius: 50%;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  transition: background-color 0.18s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background-color: rgba(247, 243, 236, 0.25);
}

.lightbox__close {
  top: -56px;
  right: 0;
}

.lightbox__nav--prev { left: clamp(-4px, -6vw, -60px); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(-4px, -6vw, -60px); top: 50%; transform: translateY(-50%); }

@media (max-width: 760px) {
  .lightbox__close { top: -50px; right: 0; }
  .lightbox__nav--prev { left: 0.25rem; }
  .lightbox__nav--next { right: 0.25rem; }
  .lightbox__nav { background-color: rgba(46,42,38,0.55); }
}

/* ============================================================
   Project / Child's Dream block
   ============================================================ */

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

@media (max-width: 820px) {
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-card__image {
    order: -1;
  }
}

.project-card__image img {
  border-radius: var(--radius);
}

.quote-block {
  border-left: 3px solid var(--color-saffron-soft);
  padding-left: 1.4rem;
  font-style: italic;
  color: var(--color-muted);
}

.quote-block cite {
  display: block;
  margin-top: 0.6em;
  font-style: normal;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* ============================================================
   Biografie timeline / tables
   ============================================================ */

.bio-portrait img {
  border-radius: var(--radius);
}

.bio-portrait__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.bio-portrait__grid figure {
  margin: 0;
}

.bio-portrait__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 399 / 645;
}

@media (max-width: 480px) {
  .bio-portrait__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
}

.timetable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.timetable td {
  padding: 0.6rem 0.8rem 0.6rem 0;
  border-bottom: 1px solid var(--color-line);
  vertical-align: top;
}

.timetable td:first-child {
  font-weight: 700;
  white-space: nowrap;
  color: var(--color-saffron);
  width: 8.5em;
}

.timetable + h3 {
  margin-top: 2.4rem;
}

/* ============================================================
   Contact section
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background-color: var(--color-paper-deep);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}

.contact-card a {
  font-weight: 600;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 2.2rem 0;
  font-size: 0.82rem;
  color: var(--color-muted);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--color-muted);
}

/* ============================================================
   Karte page specific
   ============================================================ */

.karte-image img {
  border-radius: var(--radius);
  transition: opacity 0.18s ease;
}

.karte-image a {
  display: block;
  border-bottom: none;
  cursor: zoom-in;
}

.karte-image a:hover img,
.karte-image a:focus-visible img {
  opacity: 0.92;
}

.transit-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transit-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-line);
}

.transit-list li:first-child {
  padding-top: 0;
}

/* ============================================================
   Painting detail pages (subpages)
   ============================================================ */

.painting-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.painting-nav--top {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.painting-nav__count {
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-ink);
}

.painting-figure {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
}

.painting-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(46, 42, 38, 0.35);
}

.painting-figure figcaption {
  margin-top: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.painting-nav--bottom {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
}

.painting-nav__arrow,
.painting-nav__grid-link {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.painting-nav__grid-link {
  color: var(--color-saffron);
}

@media (max-width: 540px) {
  .painting-nav--bottom {
    flex-direction: column;
    gap: 1rem;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
