/* Kunstfenster Kronenstraße 5
   Behutsame Modernisierung des bestehenden Designs:
   Helvetica + Roboto Slab, Türkis #22eedd, großes Logo, dunkles Navigationsband. */
[hidden] { display: none !important; }  /* sonst schlagen display-Regeln das hidden-Attribut */



@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/roboto-slab-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/roboto-slab-300-ext.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Roboto Slab"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/roboto-slab-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #ffffff;
  --bg-soft: #f4f4f2;
  --ink: #111111;
  --ink-2: #4a4a4a;
  --ink-3: #8a8a8a;
  --line: #e4e4e0;
  --accent: #22eedd;
  --accent-ink: #0a8a80;      /* Türkis für Text: ausreichend Kontrast auf Weiß */
  --on-accent: #0b1f1d;
  --band: #111111;
  --band-ink: #f2f2f0;
  --band-ink-2: #8d8d8a;
  --band-line: #2a2a2a;
  --card-shadow: 0 1px 0 rgba(0,0,0,.04);
  --overlay: rgba(10,10,10,.94);

  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --slab: "Roboto Slab", Georgia, serif;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --radius: 2px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #121314;
  --bg-soft: #1b1c1e;
  --ink: #ecebe7;
  --ink-2: #bdbcb7;
  --ink-3: #85847f;
  --line: #2b2c2e;
  --accent: #22eedd;
  --accent-ink: #3ff3e3;
  --on-accent: #0b1f1d;
  --band: #0a0a0b;
  --band-ink: #f2f2f0;
  --band-ink-2: #7d7d7a;
  --band-line: #232324;
  --card-shadow: none;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Bausteine ---------- */
.label {
  display: inline-block; font-size: 14px; font-weight: 700; letter-spacing: .01em;
  color: var(--accent-ink); padding-bottom: 8px; margin-bottom: 28px; position: relative;
}
.label::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent);
  transform-origin: left center;
}
.eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.lead { font-family: var(--slab); font-weight: 300; font-size: clamp(20px, 2.1vw, 26px); line-height: 1.65; color: var(--ink); }
.slab { font-family: var(--slab); font-weight: 300; }
.muted { color: var(--ink-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 15px;
  cursor: pointer; transition: background-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { background: #4ff3e6; }
.btn:active { transform: translateY(1px); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }
.link {
  font-weight: 700; font-size: 15px; display: inline-flex; gap: 8px; align-items: center;
  border-bottom: 2px solid var(--accent); padding-bottom: 2px;
}
.link .arrow { transition: transform .25s var(--ease); }
.link:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .container { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.site-header .nav { margin-left: auto; }
.site-header .header-tools { margin-left: auto; }
@media (min-width: 901px) { .site-header .nav + .header-tools { margin-left: 8px; } }
.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
.logo-dark-only { display: block; }
.logo-light-only { display: none; }
[data-theme="dark"] .logo-dark-only { display: none; }
[data-theme="dark"] .logo-light-only { display: block; }
/* Auf der Startseite steht das große Logo im Intro; das kleine erscheint erst beim Scrollen */
.is-home .site-header .brand { opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.is-home .site-header.show-brand .brand { opacity: 1; visibility: visible; }

.nav { display: flex; gap: clamp(20px, 3vw, 44px); align-items: stretch; }
.nav > li { position: relative; list-style: none; }
.nav ul, .nav { margin: 0; padding: 0; }
.nav-top {
  display: flex; flex-direction: column; justify-content: center; height: var(--header-h);
  font-weight: 700; font-size: 15px; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer;
  transition: color .2s;
}
.nav-top .num { font-size: 10px; font-weight: 400; color: var(--ink-3); letter-spacing: .05em; line-height: 1; margin-bottom: 4px; }
.nav-top:hover, .nav-top[aria-expanded="true"], .nav-top.is-current { color: var(--ink); }
.nav-top .caret { display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-top.is-current .txt { box-shadow: inset 0 -2px 0 var(--accent); }
.dropdown {
  position: absolute; top: calc(100% - 10px); left: -18px; min-width: 240px; padding: 10px 0;
  background: var(--bg); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.nav > li:hover .dropdown, .nav > li:focus-within .dropdown, .dropdown.is-open { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: block; padding: 9px 18px; font-size: 15px; color: var(--ink-2); }
.dropdown a:hover { color: var(--ink); background: var(--bg-soft); }
.dropdown .sub { padding-left: 34px; font-size: 14px; color: var(--ink-3); }

.header-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: none;
  border-radius: 50%; cursor: pointer; color: var(--ink-2);
}
.icon-btn:hover { color: var(--ink); background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
  .brand img { height: 34px; }
}

/* Mobiles Menü */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column;
  padding: 0 var(--gutter) 32px; overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__head { display: flex; justify-content: space-between; align-items: center; height: var(--header-h); flex: none; }
.mobile-menu__head img { height: 34px; width: auto; }
.mobile-menu nav { margin-top: 12px; }
.mobile-menu .group { border-top: 1px solid var(--line); padding: 18px 0; }
.mobile-menu .group-title { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 6px; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; font-size: 22px; font-weight: 700; }
.mobile-menu a.sub { font-size: 17px; font-weight: 400; color: var(--ink-2); padding-left: 16px; min-height: 42px; }
.mobile-menu .foot { margin-top: auto; padding-top: 24px; font-size: 14px; color: var(--ink-3); }

/* ---------- Startseite: Intro ---------- */
.intro { padding: clamp(28px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.intro .container { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.intro__logo { max-width: 480px; width: 100%; }
.intro__logo img { width: 100%; }
#intro-logo { display: block; }
.intro__desc { font-size: 17px; line-height: 1.45; color: var(--ink-3); padding-top: 6px; }
.intro__desc strong { display: block; color: var(--accent-ink); font-weight: 400; }
@media (max-width: 700px) {
  .intro .container { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .intro__desc { font-size: 15px; }
}

/* ---------- Startseite: Slider + dunkles Band ---------- */
.hero { position: relative; }
.hero__stage { position: relative; aspect-ratio: 1600 / 550; overflow: hidden; background: var(--bg-soft); }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .hero__stage { aspect-ratio: 4 / 3; } }

.band { background: var(--band); color: var(--band-ink); }
.band__tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.band__tab {
  position: relative; text-align: left; padding: 30px 24px 34px; border: 0; background: none; cursor: pointer;
  color: var(--band-ink-2); border-right: 1px solid var(--band-line); transition: color .25s, background-color .25s;
}
.band__tab:first-child { border-left: 1px solid var(--band-line); }
.band__tab:hover { color: var(--band-ink); background: rgba(255,255,255,.03); }
.band__tab.is-active { color: var(--band-ink); }
.band__tab h3 { font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 14px; }
.band__tab .rule { display: block; height: 2px; width: 60%; background: var(--band-line); position: relative; overflow: hidden; margin-bottom: 14px; }
.band__tab .rule i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.band__tab.is-active .rule i { transform: scaleX(1); }
.band__tab .cat { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }
.band__go { display: none; }
@media (max-width: 900px) {
  .band__tabs { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .band__tabs::-webkit-scrollbar { display: none; }
  .band__tab { scroll-snap-align: start; padding: 22px 18px 24px; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding-top: clamp(36px, 5vw, 64px); }
.section--soft { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .split { grid-template-columns: minmax(0, 1fr); } }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
.section-head .label { margin-bottom: 0; }
.page-title { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.02em; line-height: 1.02; margin-bottom: 18px; }
.page-intro { max-width: 640px; color: var(--ink-2); font-size: 17px; }

/* Aktuell-Block */
.aktuell { display: grid; gap: 22px; align-content: start; }
a.aktuell__pics { display: block; background: var(--bg-soft); overflow: hidden; }
a.aktuell__pics img { width: 100%; height: auto; transition: transform .6s var(--ease); }
a.aktuell__pics:hover img { transform: scale(1.03); }
.aktuell h2 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em; }
.aktuell__meta { font-size: 14px; color: var(--ink-3); }
.aktuell__pics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.aktuell__pics button { padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; }
.aktuell__pics img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.aktuell__pics button:hover img { transform: scale(1.03); }

/* ---------- Karten (Ausstellungen) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 40px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards, .cards--3 { grid-template-columns: minmax(0, 1fr); } }
.card { display: block; }
.card__img { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 945 / 514; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.card:hover .card__img img { transform: scale(1.035); }
.card__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.card:hover .card__img::after, .card:focus-visible .card__img::after { transform: scaleX(1); }
.card__body { padding-top: 14px; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.card__title { font-size: 16px; font-weight: 700; }
.card__who { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.card__year { font-family: var(--slab); font-weight: 300; font-size: 22px; color: var(--ink-3); flex: none; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }

/* Filter */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 40px; }
.chip {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.year-group { margin-bottom: clamp(40px, 6vw, 72px); }
.year-group__head { display: flex; align-items: baseline; gap: 18px; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 26px; }
.year-group__year { font-family: var(--slab); font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.year-group__count { font-size: 13px; color: var(--ink-3); }

/* ---------- Ausstellung (Detail) ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .detail { grid-template-columns: minmax(0, 1fr); } }
.detail__banner { background: var(--bg-soft); }
.detail__banner img { width: 100%; }
.aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 22px; }
@media (max-width: 900px) { .aside { position: static; order: -1; } }
.aside__block { border-top: 1px solid var(--line); padding-top: 16px; }
.aside__title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; }
.aside__year { font-family: var(--slab); font-weight: 300; font-size: 22px; color: var(--ink-3); }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside li { font-size: 16px; padding: 2px 0; }
.flyer-btn { display: flex; gap: 14px; align-items: center; border: 0; padding: 0; background: none; cursor: zoom-in; text-align: left; }
.flyer-btn img { width: 88px; aspect-ratio: 945/514; object-fit: cover; }
.flyer-btn span { font-size: 14px; font-weight: 700; border-bottom: 2px solid var(--accent); }
.detail__text { max-width: 720px; margin: 40px 0 8px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin-top: 40px; }
.gallery button { padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; position: relative; display: block; width: 100%; }
.gallery img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .7s var(--ease); }
.gallery button:hover img { transform: scale(1.03); }
.gallery button:first-child { grid-column: 1 / -1; }
.gallery button:first-child img { aspect-ratio: 16/9; }
@media (max-width: 520px) { .gallery { grid-template-columns: minmax(0, 1fr); } }
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: clamp(56px, 8vw, 96px); }
.pager a { padding: 28px 0; display: grid; gap: 4px; }
.pager a:last-child { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.pager small { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.pager strong { font-size: clamp(16px, 2vw, 22px); }
.pager a:hover strong { color: var(--accent-ink); }

/* ---------- Künstler ---------- */
.banner-wide { aspect-ratio: 1600 / 550; overflow: hidden; background: var(--bg-soft); }
.banner-wide img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .banner-wide { aspect-ratio: 16/9; } }
.artist { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .artist { grid-template-columns: minmax(0, 1fr); } .artist__side { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: end; } }
.artist__portrait img { width: 100%; aspect-ratio: 414/479; object-fit: cover; }
.artist__meta { font-size: 14px; margin-top: 14px; display: grid; gap: 6px; }
.artist__name { font-family: var(--slab); font-weight: 300; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; margin-bottom: 28px; }
.quote { margin: clamp(32px, 5vw, 56px) 0; }
.quote p { font-family: var(--slab); font-weight: 300; font-style: italic; font-size: clamp(24px, 3vw, 38px); line-height: 1.45; margin-bottom: 18px; }
.quote cite { display: inline-block; font-style: italic; font-size: 13px; color: var(--accent-ink); padding-top: 10px; border-top: 2px solid var(--accent); min-width: 72px; }

/* ---------- Info / Textseiten ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin: 44px 0 12px; }
.prose p { font-size: 17px; color: var(--ink-2); }
.chapters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(32px, 5vw, 72px); margin-top: 56px; }
@media (max-width: 760px) { .chapters { grid-template-columns: minmax(0, 1fr); } }
.chapter h2 { font-family: var(--slab); font-weight: 300; font-size: 26px; margin-bottom: 12px; }
.chapter p { color: var(--ink-2); }
.chapter .n { font-size: 12px; font-weight: 700; color: var(--accent-ink); letter-spacing: .1em; display: block; margin-bottom: 6px; }
.photo-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 48px; }
.photo-row img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 640px) { .photo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
.contact dl { margin: 0; display: grid; gap: 22px; }
.contact dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 18px; }
.contact dd a { border-bottom: 2px solid var(--accent); }
.map-card { position: relative; background: var(--bg-soft); overflow: hidden; }
.map-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.map-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-top: 0; font-size: 14px; flex-wrap: wrap; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: 14px; color: var(--ink-2); margin-top: clamp(40px, 6vw, 80px); }
.site-footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.site-footer .copy { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink-3); }
.site-footer .copy em { color: var(--accent-ink); }
@media (max-width: 700px) { .site-footer .container { grid-template-columns: 1fr 1fr; } .site-footer .brandcol { grid-column: 1 / -1; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: var(--overlay); color: #f2f2f0;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr);
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 10px 20px; font-size: 14px; }
.lightbox__count { font-variant-numeric: tabular-nums; color: #b8b8b3; }
/* feste Zeile/Spalte: sonst hat die Bühne keine definierte Höhe, max-height:100 % am Bild greift nicht und
   Hochformate ragen unten aus dem Fenster */
.lightbox__stage { position: relative; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; padding: 0 clamp(8px, 6vw, 88px); min-height: 0; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox__caption { text-align: center; padding: 14px 20px 22px; font-size: 14px; color: #c9c9c4; min-height: 52px; }
.lightbox .icon-btn { color: #f2f2f0; }
.lightbox .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }
@media (max-width: 640px) { .lightbox__caption { padding: 14px 76px 22px; } .lightbox__nav { top: auto; bottom: -58px; transform: none; } .lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; } }
body.no-scroll { overflow: hidden; }

/* ---------- Ruhige Grundbewegung / Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Audio ---------- */
.tracks { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.track { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 58px; border-bottom: 1px solid var(--line); }
.track__n { font-family: var(--slab); font-weight: 300; color: var(--ink-3); }
.track__t { font-weight: 700; }
.track__d { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track__play { font-size: 13px; box-shadow: inset 0 0 0 1.5px var(--line); }
.track__na { text-align: center; color: var(--ink-3); }
.track.is-playing .track__t { color: var(--accent-ink); }
.track.is-playing .track__play { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* ---------- Ergänzungen für die Flask-Templates ---------- */
.draft-note { background: #fff1d6; color: #8a5200; font-weight: 700; padding: 12px 16px; border-radius: 8px; margin-bottom: 24px; }
.track__actions { display: flex; gap: 4px; }
.track__dl { font-size: 15px; color: var(--ink-3); }
.track__dl:hover { color: var(--ink); background: var(--bg-soft); }
.page-intro p + p { margin-top: .8em; }
.link--back { margin-bottom: 18px; }
.link--back:hover .arrow { transform: translateX(-4px); }
.albums { list-style: none; margin: 0; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.album { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; min-height: 76px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.album__t { font-family: var(--slab); font-size: clamp(20px, 2.4vw, 26px); font-weight: 400; }
.album__m { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.album .arrow { transition: transform .25s var(--ease); }
.album:hover .album__t { color: var(--accent-ink); }
.album:hover .arrow { transform: translateX(4px); }
@media (max-width: 560px) { .album { grid-template-columns: minmax(0, 1fr) auto; } .album__m { grid-row: 2; } }
.gallery--works { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--works button:first-child { grid-column: auto; }
.gallery--works img, .gallery--works button:first-child img { aspect-ratio: 1; object-fit: contain; background: var(--bg); }
@media (max-width: 760px) { .gallery--works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Ordner „Aus dem Atelier“ (z. B. Zeiträume) – Titelbild ist das erste sichtbare Bild */
.card--folder .card__img { aspect-ratio: 4 / 3; }
.card--folder .card__body { align-items: center; }
.card--folder .arrow { color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.card--folder:hover .arrow { transform: translateX(4px); color: var(--ink); }
@media (max-width: 640px) { .cards--folders { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } .card--folder .card__title { font-size: 15px; } }
.works-more { font-family: var(--slab); font-weight: 300; font-size: clamp(22px, 2.4vw, 28px); margin-top: clamp(56px, 7vw, 88px); }
.works-more + .gallery { margin-top: 24px; }
.filters + .gallery { margin-top: 0; }
.photo-row button { padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; display: block; }
.detail__text p + p { margin-top: 1em; }
