:root {
  --bg: #ffffff;
  --bg-alt: #f5f3ef;
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e5e2dc;
  --accent: #0a0a0a;
  --max: 1200px;
  --max-narrow: 760px;
  --gap: clamp(1rem, 2vw, 2rem);
  --radius: 2px;
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}
a:hover { opacity: 0.65; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}
.container.narrow { max-width: var(--max-narrow); }

/* ============ HEADER / NAV ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--serif);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px; height: 32px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.brand-text { font-size: 1.15rem; letter-spacing: 0.02em; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.4rem;
  list-style: none;
  margin: 0; padding: 0;
}
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--ink); opacity: 1; }
.site-nav a.active { border-bottom-color: var(--ink); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 80vh; overflow-y: auto; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 1rem 0; }
  .site-nav li { width: 100%; }
  .site-nav a {
    display: block;
    padding: 0.85rem clamp(1.25rem, 4vw, 3rem);
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }
}

/* ============ TYPOGRAPHY ============ */

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 1rem;
  line-height: 1.15;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1.25rem; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.55rem); margin-top: 2.5rem; }

p { margin: 0 0 1.1rem; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft); }

.quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--ink);
  border-left: 2px solid var(--ink);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin-top: 2rem;
  max-width: 36em;
}
.quote-by {
  display: block;
  font-style: normal;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 78vh;
  background: var(--bg-alt);
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.hero-image-credit {
  position: absolute;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.5rem;
}
.hero-text {
  margin-top: clamp(2rem, 5vw, 4rem);
  max-width: 880px;
}

/* ============ SECTIONS ============ */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}
.section-alt { background: var(--bg-alt); }
.section-intro { max-width: 60ch; color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ============ BIOGRAFIE ============ */

.bio-intro {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  margin: 1rem 0 clamp(2.5rem, 5vw, 4rem);
}
.bio-text { max-width: 56ch; }
.bio-lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.bio-portrait { margin: 0; }
.bio-portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: grayscale(0.2) contrast(1.02);
  background: var(--bg-alt);
}
.bio-portrait figcaption {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.7rem;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bio-portrait figcaption span { font-size: 0.7rem; opacity: 0.8; }

@media (max-width: 760px) {
  .bio-intro { grid-template-columns: 1fr; }
  .bio-portrait { max-width: 360px; }
}

#biografie h3,
#ansatz h3 {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.25rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
}

/* ============ ANSATZ — PHASEN ============ */

.ansatz-text { max-width: 64ch; }

.phases-intro {
  max-width: 56ch;
  color: var(--muted);
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1.5rem);
  position: relative;
}

.phases::before {
  content: "";
  position: absolute;
  top: 1.5rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--ink);
  opacity: 0.18;
  z-index: 0;
}

.phase {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.4rem;
}

.phase-num {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.05em;
  border-radius: 50%;
  margin: 0 0 1.1rem;
  box-shadow: 0 0 0 7px var(--bg-alt);
  flex-shrink: 0;
}

.phase-content { display: flex; flex-direction: column; }

.phase-months {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.phase h4 {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
  color: var(--ink);
}

.phase-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 880px) {
  .phases {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .phases::before {
    top: 1.5rem;
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  .phase {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    padding: 1rem 0;
    gap: 1.25rem;
    border-bottom: 1px solid var(--line);
  }
  .phase:last-child { border-bottom: 0; }
  .phase-num {
    margin: 0;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 0.9rem;
  }
  .phase-content { flex: 1; }
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: 0 0 1rem;
}
.method-grid article {
  border-top: 2px solid var(--ink);
  padding-top: 1rem;
}
.method-num {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.7rem;
}
.method-grid h4 {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  font-weight: 500;
  margin: 0 0 0.55rem;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.method-grid p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .method-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

.timeline-vertical {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  max-width: 720px;
}
.timeline-vertical::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 130px;
  width: 1px;
  background: var(--line);
}
.timeline-vertical li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 2rem;
  padding: 0.85rem 0;
  position: relative;
}
.timeline-vertical li::before {
  content: "";
  position: absolute;
  left: 126px;
  top: 1.55rem;
  width: 9px;
  height: 9px;
  background: var(--ink);
  border-radius: 50%;
  border: 2px solid var(--bg);
  box-sizing: content-box;
}
.t-year {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.t-event {
  color: var(--ink-soft);
  font-size: 1rem;
  padding-top: 0.45rem;
  line-height: 1.5;
}
.t-event em {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1.1em;
  color: var(--ink);
}
@media (max-width: 600px) {
  .timeline-vertical::before { left: 80px; }
  .timeline-vertical li {
    grid-template-columns: 80px 1fr;
    gap: 1.25rem;
  }
  .timeline-vertical li::before { left: 76px; }
}

/* ============ EXERCISES ============ */

.exercises {
  list-style: none;
  counter-reset: ex;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.exercise {
  counter-increment: ex;
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  display: flex;
  flex-direction: column;
}
.section-alt .exercise { background: #fff; }
.exercise::before {
  content: counter(ex, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}
.exercise h3 {
  margin-top: 0;
  font-size: 1.3rem;
  letter-spacing: 0;
}
.exercise .exercise-goal {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}
.exercise ol {
  padding-left: 1.1rem;
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.exercise ol li { margin-bottom: 0.35rem; }
.exercise .video-hint {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.7rem;
}

/* ============ THEMES ============ */

.themes {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.5rem;
}
.themes li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 1.25rem;
}
.themes li::before {
  content: "—";
  color: var(--muted);
}

/* ============ GALLERY ============ */

.gallery {
  display: grid;
  gap: clamp(0.5rem, 1.2vw, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.gallery-item {
  position: relative;
  background: var(--bg-alt);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid transparent;
}
.gallery-item:hover { border-color: var(--ink); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: grayscale(0.05);
}
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(to top, rgba(10,10,10,0.85), rgba(10,10,10,0));
  color: #fff;
  font-size: 0.78rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
}
.gallery-item .caption-text { opacity: 0.95; }
.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border: 1px solid currentColor;
  border-radius: 1px;
  flex-shrink: 0;
}
.badge-free { color: #c8f0c8; }
.badge-perm { color: #f0d8a8; }

.note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.note .badge { color: var(--muted); }

/* ============ VIDEOS ============ */

.videos {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.video-card {
  background: #fff;
  border: 1px solid var(--line);
}
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}
.video-frame iframe,
.video-frame .video-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.7rem;
  color: #fff;
  text-align: center;
  padding: 1rem;
}
.video-placeholder .play {
  font-size: 2rem;
  opacity: 0.85;
}
.video-meta { padding: 1rem 1.2rem 1.2rem; }
.video-meta h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
}
.video-meta p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}
.video-meta .timestamps {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.video-meta .rights {
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.6rem;
  margin-top: 0.4rem;
}
.video-meta .external {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

/* ============ MERMAID ============ */

.mermaid {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 2rem);
  margin: 1.5rem 0;
  overflow-x: auto;
  text-align: center;
}
.section-alt .mermaid { background: #fff; }

/* ============ KONTAKT / QR ============ */

.contact { text-align: left; }
.qr-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin: 2rem 0 1.25rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
}
.qr {
  width: 180px; height: 180px;
  background: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.qr canvas, .qr img { max-width: 100%; height: auto; }
.qr-meta { flex: 1; min-width: 200px; }
.qr-url {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--ink-soft);
  word-break: break-all;
  margin: 0 0 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.3rem;
}
.qr-url:hover { color: var(--ink); border-bottom-color: var(--ink); opacity: 1; }
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.qr-status {
  margin: 0.7rem 0 0;
  font-size: 0.78rem;
  min-height: 1.1em;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.qr-status[data-tone="ok"] { color: #1f6b3a; }
.qr-status[data-tone="error"] { color: #a04040; }
.qr-status[data-tone="info"] { color: var(--muted); font-style: italic; }

.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  padding: 0.55rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: #fff; color: var(--ink); opacity: 1; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.contact-info { color: var(--muted); font-size: 0.95rem; }

.contact-card {
  margin: 2rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
}
.contact-card p, .contact-card a { margin: 0; }
.contact-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem !important;
}
.contact-school-link {
  display: inline-block;
  text-decoration: none;
  border: 0;
  transition: opacity 0.2s ease, transform 0.3s ease;
}
.contact-school-link:hover {
  opacity: 0.78;
  transform: translateX(2px);
}
.contact-school-link:hover .contact-logo { filter: none; }
.contact-logo {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  /* Bei Hover: volle Sättigung. Standard: dezent zurückgenommen. */
  filter: saturate(0.95);
}
.contact-rule {
  height: 1px;
  background: linear-gradient(to right, var(--ink) 0, var(--ink) 60px, var(--line) 60px, var(--line) 100%);
  margin: 1.4rem 0 1.1rem;
}
.contact-project {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-style: italic;
  color: var(--ink);
  margin-bottom: 1.1rem !important;
  letter-spacing: 0.01em;
}
.contact-mail {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
  word-break: break-all;
  transition: opacity 0.2s ease;
}
.contact-mail::before {
  content: "✉  ";
  font-family: var(--sans);
  opacity: 0.6;
}
.contact-mail:hover { opacity: 0.65; }

/* ============ FOOTER ============ */

.site-footer {
  background: var(--ink);
  color: #d8d6d2;
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  font-size: 0.88rem;
  line-height: 1.55;
}
.site-footer a { color: #fff; }
.site-footer .footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.footer-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 0.6rem;
}
.footer-links {
  list-style: none;
  padding: 0; margin: 0;
}
.footer-links li { margin-bottom: 0.35rem; }
.footer-meta {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: #888;
}

/* ============ LIGHTBOX ============ */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox figure {
  margin: 0;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}
.lightbox figcaption {
  color: #eee;
  font-size: 0.9rem;
  text-align: center;
  max-width: 60ch;
}
.lightbox figcaption a { color: #fff; }
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.6rem;
}

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

/* ============ PRINT ============ */

@media print {
  .site-header, .nav-toggle, .lightbox, .qr-block { display: none !important; }
  .section { padding: 1rem 0; border: 0; }
  body { font-size: 11pt; }
}
