/* Galerie Marianne Grob – eigenständiges ProcessWire-Design.
 * Referenz: bisheriges WordPress-Theme; bewusst ohne externe Abhängigkeiten.
 */
:root {
  --ink: #151515;
  --muted: #838383;
  --quiet: #f7f6f3;
  --line: #eae9e5;
  --canvas: #fff;
  --container: 1680px;
  --page-padding: clamp(22px, 5.8vw, 96px);
  --font: 'Galerie Myriad', 'Myriad Pro', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; }
body:has(.lightbox[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: #666; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #151515; outline-offset: 4px; }
::selection { background: #e6c4cb; color: #000; }
.site-shell { max-width: var(--container); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.skip-link { position: absolute; left: -100vw; top: 8px; z-index: 9999; padding: 10px 16px; background: white; border: 2px solid; }
.skip-link:focus { left: 8px; }

/* Header: Typografisches Logo links, lineare Navigation rechts. */
.site-header { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 36px; padding: 34px clamp(23px, 3.35vw, 62px) 0; z-index: 100; }
.brand { position: relative; display: block; width: 215px; min-width: 215px; height: 74px; letter-spacing: .01em; line-height: .95; color: var(--ink); font-weight: 750; }
.brand:hover { color: var(--ink); }
.brand__galerie { display: block; font-size: 23px; padding-left: 112px; letter-spacing: -.025em; }
.brand__name { display: block; white-space: nowrap; font-size: 22px; letter-spacing: -.02em; margin-top: 2px; }
.brand__locations { display: block; font-size: 16px; font-weight: 400; color: #9c9c9c; letter-spacing: -.01em; margin-top: 5px; padding-left: 79px; white-space: nowrap; }
.site-nav { padding-top: 0; flex: 1; display: flex; justify-content: flex-end; }
.nav-list, .submenu { padding: 0; margin: 0; list-style: none; }
.nav-list { display: flex; align-items: start; gap: clamp(10px, 1.25vw, 24px); }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: block; font-size: 12px; line-height: 20px; font-weight: 700; white-space: nowrap; text-transform: lowercase; padding-bottom: 8px; }
.nav-item > a:hover, .nav-item.is-active > a { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.submenu-toggle { background: transparent; border: none; color: var(--ink); font-size: 14px; padding: 0 4px 8px; line-height: 20px; }
.submenu { display: none; position: absolute; top: 100%; left: -18px; min-width: 190px; max-height: 66vh; overflow: auto; padding: 10px 18px 15px; background: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.08); border: 1px solid var(--line); z-index: 150; }
.nav-item:hover > .submenu, .nav-item:focus-within > .submenu, .nav-item.submenu-open > .submenu { display: block; }
.submenu a { display: block; font-size: 12px; font-weight: 600; padding: 5px 0; white-space: nowrap; line-height: 1.4; }
.submenu a:hover { text-decoration: underline; }
.nav-toggle { display: none; }

/* Global Layout */
.main-content { flex: 1; }
.content-region { padding: 68px var(--page-padding) 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
h1,h2,h3,h4,p,figure { margin-top: 0; }
h1,h2,h3 { font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 3.6vw, 56px); line-height: 1.13; margin-bottom: 28px; }
h2 { font-size: clamp(25px, 2.5vw, 39px); line-height: 1.15; }
h3 { font-size: 21px; }
.section-heading h1, .section-heading h2 { font-size: clamp(22px, 2.1vw, 31px); margin: 0; letter-spacing: -.02em; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.text-link:hover, .back-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link span { font-size: 16px; }
.eyebrow { text-transform: lowercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 18px; }
.prose { font-size: clamp(16px, 1.5vw, 20px); font-weight: 400; line-height: 1.67; max-width: 850px; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(22px, 2vw, 30px); margin: 1.7em 0 .5em; }
.prose h3 { margin: 1.5em 0 .5em; }
.prose a, .contact-details a { text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose img { max-width: 100%; height: auto; }
.lead { font-size: clamp(21px, 2.25vw, 32px); line-height: 1.35; max-width: 800px; margin: 0 0 40px; }
.fine-print { color: #777; font-size: 13px; }

/* Kacheln – Farbwelt des bisherigen Galerie-Themes. */
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(15px, 1.8vw, 24px); }
.card { position: relative; min-width: 0; display: grid; place-items: center; aspect-ratio: 1.11 / 1; background: var(--card-tone, #a2a49b); color: #111; text-align: center; isolation: isolate; overflow: hidden; }
.card--editorial { aspect-ratio: 1.11 / 1; }
.card__image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; z-index: -1; }
.card__caption { display: inline-block; max-width: 88%; padding: 14px 16px; font-size: clamp(12px, 1vw, 16px); line-height: 1.25; font-weight: 750; letter-spacing: -.025em; }
.card:has(.card__image) .card__caption { background: rgba(255,255,255,.88); }
a.card:hover { color: #000; }
a.card:hover .card__image { transform: scale(1.035); }
a.card:hover .card__caption { text-decoration: underline; text-underline-offset: 3px; }
.card--preview { cursor: default; }
.preview-notice { color: var(--muted); font-size: 11px; margin: 13px 0 0; }

/* Startseite */
.content-region--home { padding-top: 54px; }
.home-exhibition > .section-heading { margin-bottom: 24px; }
.feature-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.feature-gallery img { width: 100%; max-height: 72vh; object-fit: contain; }
.home-statement { padding: 38px 0 10px; }
.home-section { margin-top: clamp(65px, 8vw, 136px); }
.home-section > .section-heading { padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 29px; }
.artist-strip { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.artist-strip a, .artist-strip span { font-size: clamp(17px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.018em; }
.artist-strip a:hover { text-decoration: underline; text-underline-offset: 3px; }
.artist-strip--preview { color: #555; }
.section-placeholder { max-width: 580px; color: #777; font-size: 17px; line-height: 1.6; }
.home-bottom { margin-top: 75px; border-top: 1px solid var(--line); padding-top: 21px; }
.home-bottom h2 { font-size: 23px; margin-bottom: 12px; }
.home-bottom p { max-width: 600px; font-size: 17px; }
.home-bottom a { text-decoration: underline; text-underline-offset: 4px; }

/* Listen */
.page-heading { margin-bottom: 42px; }
.page-heading h1 { margin-bottom: 0; }
.page-intro { margin-bottom: 42px; }
.empty-editorial { display: grid; place-items: center; min-height: 280px; background: var(--quiet); padding: 30px; }
.empty-editorial p { text-align: center; max-width: 470px; color: #666; }
.exhibition-card { min-width: 0; }
.exhibition-card__date { color: #666; font-size: 12px; padding-top: 10px; }

/* Detailseiten und Bildergalerien */
.detail-layout { max-width: 1200px; }
.detail-heading { margin-bottom: 32px; }
.detail-heading h1 { max-width: 1000px; margin-bottom: 10px; }
.detail-subtitle { max-width: 790px; font-size: clamp(20px, 2.3vw, 31px); line-height: 1.3; margin-top: 12px; }
.date-line { color: #6d6d6d; font-size: 14px; margin-top: 14px; }
.back-link { display: inline-block; margin-bottom: 56px; font-size: 12px; font-weight: 700; }
.detail-layout > .prose { margin: 0 0 45px; }
.artist-bio { max-width: 750px; }
.image-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 38px; }
.gallery-image { width: 100%; display: flex; padding: 0; align-items: center; justify-content: center; border: 0; background: #f4f4f1; overflow: hidden; }
.gallery-image img { width: 100%; height: 100%; max-height: 650px; object-fit: contain; transition: transform .3s ease; }
.gallery-image:hover img { transform: scale(1.015); }
.related-artists { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 22px; margin: 30px 0 42px; font-size: 14px; }
.related-artists > span { color: var(--muted); font-size: 12px; }
.related-artists a { font-weight: 700; }
.related-artists a:hover { text-decoration: underline; }
.simple-link-list { border-top: 1px solid var(--line); margin-top: 55px; max-width: 900px; }
.simple-link-list a { padding: 15px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.contact-details { padding: 36px 0; margin-top: 45px; border-top: 1px solid var(--line); max-width: 660px; }
.contact-details p { display: grid; grid-template-columns: 105px 1fr; gap: 20px; margin-bottom: 14px; font-size: 17px; overflow-wrap: anywhere; }
.contact-details span { color: var(--muted); font-size: 13px; }

/* Leichtgewichtige, zugängliche Bildansicht */
.lightbox { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; padding: 48px; margin: 0; border: none; background: #111; color: white; text-align: center; }
.lightbox::backdrop { background: rgba(0,0,0,.95); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox__image { width: auto; max-width: min(90vw, 1400px); max-height: 76vh; height: auto; object-fit: contain; }
.lightbox__caption { margin: 16px 0 0; color: #d4d4d4; font-size: 13px; }
.lightbox__close { position: absolute; right: 25px; top: 13px; border: 0; background: transparent; color: white; font-size: 38px; line-height: 1; }

.site-footer { display: flex; justify-content: space-between; gap: 22px; padding: 50px var(--page-padding) 32px; color: #8b8b8b; font-size: 11px; text-transform: lowercase; }
.site-footer a:hover { color: #333; }

@media (min-width: 1700px) {
  .content-region { padding-top: 85px; }
  .content-region--home { padding-top: 68px; }
}
@media (max-width: 960px) {
  .site-header { padding: 22px 25px 0; align-items: flex-start; gap: 12px; }
  .site-nav { position: absolute; right: 25px; left: 25px; top: 104px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.08); display: none; }
  .site-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: flex; flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid #eee; }
  .nav-item:last-child { border-bottom: none; }
  .nav-item > a { flex: 1; font-size: 16px; padding: 11px 0; }
  .submenu-toggle { min-width: 44px; font-size: 23px; padding: 0; }
  .submenu { position: static; max-height: none; min-width: 100%; width: 100%; padding: 0 0 15px 16px; border: 0; box-shadow: none; display: none; }
  .nav-item:hover > .submenu, .nav-item:focus-within > .submenu { display: none; }
  .nav-item.submenu-open > .submenu { display: block; }
  .submenu a { font-size: 14px; padding: 8px 0; }
  .nav-toggle { display: inline-flex; align-items: center; gap: 9px; padding: 9px 5px; border: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 700; text-transform: lowercase; }
  .nav-toggle__icon { display: flex; width: 19px; height: 15px; justify-content: space-between; flex-direction: column; }
  .nav-toggle__icon span { width: 100%; height: 1.5px; background: currentColor; }
  .content-region { padding-top: 62px; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  :root { --page-padding: 20px; }
  .site-header { padding: 20px 20px 0; }
  .brand { transform: scale(.78); transform-origin: top left; margin-bottom: -14px; }
  .site-nav { right: 18px; left: 18px; top: 83px; }
  .content-region, .content-region--home { padding-top: 52px; padding-bottom: 55px; }
  .tile-grid { gap: 13px; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .card { aspect-ratio: 1 / 1.12; }
  .card__caption { font-size: 13px; padding: 8px; max-width: 97%; }
  .section-heading { margin-bottom: 17px; }
  .home-section { margin-top: 65px; }
  .artist-strip { gap: 10px 16px; }
  .artist-strip a, .artist-strip span { font-size: 16px; }
  .page-heading { margin-bottom: 27px; }
  .back-link { margin-bottom: 31px; }
  .image-gallery { grid-template-columns: 1fr; gap: 14px; }
  .contact-details p { grid-template-columns: 70px 1fr; font-size: 15px; gap: 10px; }
  .site-footer { padding-top: 30px; padding-bottom: 25px; flex-wrap: wrap; }
  .lightbox { padding: 12px; }
}
@media (max-width: 380px) {
  .tile-grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 1.4 / 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* v2: nur der Bereich "Aktuell" auf der Startseite, übrige Inhalte auf Unterseiten. */
.content-region--home { min-height: min(72vh, 840px); }
.section-heading--home { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.tile-grid--home { align-items: start; }

/* V3: vollständige Originalnavigation mit eigenständigen Unterseiten. */
.nav-item--children > a { padding-right: 2px; }
.submenu { overscroll-behavior: contain; }
.submenu a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 961px) {
  .submenu { min-width: 225px; max-width: min(340px, 85vw); max-height: min(75vh, 650px); }
  .nav-item:nth-last-child(-n+2) > .submenu { left: auto; right: -16px; }
  .submenu a { white-space: normal; }
}
@media (max-width: 960px) {
  .site-nav { max-height: calc(100dvh - 118px); overflow-y: auto; overscroll-behavior: contain; }
  .submenu { overflow: visible; }
}


/* ==========================================================
 * V5 – Typografie des alten WordPress-Themes (Myriad Pro)
 * Font-Dateien sind NICHT im Paket enthalten. Siehe fonts/README.
 * ========================================================== */
@font-face {
  font-family: 'Galerie Myriad';
  src: url('../fonts/MyriadProRegular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: 'Galerie Myriad';
  src: url('../fonts/MyriadProSemibold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
body { font-family: var(--font); font-weight: 400; }
.site-nav a, .site-nav button, .brand, h1, h2, h3, .card__caption,
.current-caption__subtitle, .current-caption__notice { font-family: var(--font); }
.site-nav .nav-item > a { font-size: clamp(14px, 1vw, 18px); font-weight: 700; }
.site-nav .submenu a { font-size: 15px; font-weight: 600; }
.brand { font-weight: 700; }

/* ==========================================================
 * V5 – "aktuell" nach der bisherigen Startseite: eine mittige
 * Bilder-Slideshow, links/rechts Pfeile, Ausstellungstext darunter.
 * ========================================================== */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.content-region--home { padding: 104px 0 70px; min-height: 0; }
.current-exhibition { width: 100%; }
.current-slider { --arrow-space: 40px; position: relative; display: grid; grid-template-columns: var(--arrow-space) minmax(0, 800px) var(--arrow-space); justify-content: center; align-items: center; gap: 17px; max-width: 960px; margin: 0 auto; }
.current-slider__frame { width: 100%; min-width: 0; aspect-ratio: 8 / 5; overflow: hidden; background: #fff; }
.current-slide, .current-slide img { width: 100%; height: 100%; }
.current-slide { margin: 0; }
.current-slide[hidden] { display: none !important; }
.current-slide img { object-fit: contain; }
.current-slider__arrow { width: 40px; height: 54px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #292929; font-family: Arial, sans-serif; font-size: 34px; line-height: 1; transition: color .15s ease; }
.current-slider__arrow:not(:disabled):hover { color: #8b8b8b; }
.current-slider__arrow:disabled { opacity: .4; cursor: default; }
.current-caption { margin: 48px clamp(22px, 3vw, 54px) 0; padding: 0; color: #060606; }
.current-caption h2 { font-size: 27px; line-height: 1.04; font-weight: 700; margin: 0 0 8px; letter-spacing: 0; }
.current-caption__subtitle { font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0 0 28px; }
.current-caption__notice { font-size: 20px; font-weight: 600; line-height: 1.32; max-width: 920px; margin: 0; white-space: normal; }
@media (max-width: 960px) {
  .site-nav .nav-item > a { font-size: 16px; }
  .content-region--home { padding-top: 65px; }
  .current-slider { grid-template-columns: 30px minmax(0, 800px) 30px; gap: 8px; padding: 0 12px; }
  .current-slider__arrow { width: 30px; }
  .current-caption { margin-top: 35px; }
}
@media (max-width: 600px) {
  .content-region--home { padding-top: 42px; padding-bottom: 55px; }
  .current-slider { grid-template-columns: 23px minmax(0, 1fr) 23px; padding: 0 9px; gap: 5px; }
  .current-slider__arrow { width: 23px; height: 42px; font-size: 26px; }
  .current-slider__frame { aspect-ratio: 8 / 5; }
  .current-caption { margin: 28px 20px 0; }
  .current-caption h2 { font-size: 23px; }
  .current-caption__subtitle, .current-caption__notice { font-size: 17px; }
  .current-caption__subtitle { margin-bottom: 18px; }
}
