/* ==========================================================
   joerg-wolke.de – Stylesheet
   Farben: Hintergrund Lichtgrau, Schrift 90 % Schwarz.
   Schrift: Montserrat, lokal eingebunden (kein Google-Server → DSGVO).
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --bg: #ececec;          /* Lichtgrau */
  --surface: #f6f6f6;
  --text: #1a1a1a;        /* 90 % Schwarz */
  --muted: #666666;
  --line: #d4d4d4;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.7 var(--font);
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { opacity: .6; }

h1, h2, h3 { font-weight: 600; line-height: 1.15; margin: 0 0 .6em; letter-spacing: .02em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); text-transform: uppercase; letter-spacing: .12em; font-weight: 500; }
h2 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); text-transform: uppercase; letter-spacing: .14em; font-weight: 500; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

.eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; }

/* ---------- Kopfbereich ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(236, 236, 236, .94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: block; line-height: 0; }
.logo img { height: 52px; width: auto; filter: brightness(0) opacity(.9); }
.logo:hover { opacity: .7; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(16px, 2.4vw, 34px); }
.nav a {
  text-decoration: none; font-size: .78rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  color: inherit; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 24px; height: 2px; background: currentColor; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); background: var(--bg); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
  .nav a { display: block; padding: 12px 0; border: 0; }
  .nav a[aria-current="page"] { font-weight: 700; }
  .logo img { height: 42px; }
}

/* ---------- Startseite: großes Bild ---------- */
.hero { position: relative; height: clamp(220px, 34vh, 380px); overflow: hidden; background: #222; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero + .section { padding-top: clamp(20px, 3vw, 36px); }
.hero-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 80px var(--gutter) clamp(28px, 5vw, 56px);
  background: linear-gradient(to top, rgba(0,0,0,.6), transparent);
  color: #fff;
}
.hero-text .wrap { padding: 0; }
.hero-text h1 { margin: 0 0 .2em; }
.hero-text p { margin: 0; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; }

/* ---------- Startseite: Canvas · Mural · Truck ---------- */
.triptych { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.triptych a { display: block; text-decoration: none; position: relative; overflow: hidden; background: #ccc; }
.triptych a:hover { opacity: 1; }
.triptych img { width: 100%; aspect-ratio: 4 / 5; max-height: 52vh; object-fit: cover; transition: transform .6s ease; }
.triptych a:hover img { transform: scale(1.04); }
.triptych span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 20px; color: #fff; font-weight: 500;
  letter-spacing: .3em; text-transform: uppercase; font-size: .95rem;
  background: linear-gradient(to top, rgba(0,0,0,.55), transparent);
}
@media (max-width: 700px) {
  .triptych { grid-template-columns: 1fr; }
  .triptych img { aspect-ratio: 16 / 10; }
}

.section { padding: clamp(48px, 7vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.button {
  display: inline-block; padding: 13px 28px;
  border: 1px solid var(--text); text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.button:hover { background: var(--text); color: var(--bg); opacity: 1; }

.social { display: flex; gap: 14px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500; }
.social svg { width: 22px; height: 22px; }

/* ---------- Galerie-Seiten ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 12px; }
.theme-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 8px; }
.theme-nav a {
  text-decoration: none; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; background: var(--surface);
}
.theme-nav a:hover { opacity: 1; border-color: var(--text); }

.theme { padding: clamp(36px, 5vw, 64px) 0 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.theme h2 { display: flex; align-items: baseline; gap: 14px; }
.theme h2 small { font-size: .7rem; color: var(--muted); letter-spacing: .1em; font-weight: 400; }
.theme > p { color: var(--muted); max-width: 46em; }

/* Zeilen-Layout: Bilder stehen nebeneinander (von links nach rechts gelesen),
   jedes in seinem Originalformat – nichts wird beschnitten. --r = Breite/Höhe */
.gallery {
  --row-h: clamp(200px, 24vw, 300px);
  display: flex; flex-wrap: wrap; align-items: flex-start;
  gap: clamp(18px, 2.4vw, 32px) clamp(14px, 2vw, 28px);
}
.gallery::after { content: ""; flex-grow: 999999; }   /* letzte Zeile nicht aufziehen */
.work { margin: 0; flex: var(--r) 1 calc(var(--r) * var(--row-h)); min-width: 0; max-width: calc(var(--r) * var(--row-h) * 1.6); }
.work .frame { aspect-ratio: var(--r); }
@media (max-width: 600px) {
  .gallery { --row-h: 150px; }
  .work { flex-basis: 100%; max-width: none; }
  .work .frame { aspect-ratio: auto; }
}
.work a { display: block; text-decoration: none; }
.work a:hover { opacity: 1; }
.work .frame { overflow: hidden; background: #dcdcdc; }
.work img { width: 100%; height: auto; transition: opacity .3s ease; }
.work a:hover img { opacity: .88; }
.work figcaption { padding-top: 10px; font-size: .82rem; line-height: 1.5; }
.work .title { display: block; font-weight: 600; }
.work .meta { color: var(--muted); display: block; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(236, 236, 236, .98);
  display: none; align-items: center; justify-content: center;
  padding: 56px 56px 40px;
}
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1200px; width: 100%; text-align: center; }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.lightbox figcaption { margin-top: 16px; font-size: .88rem; }
.lightbox figcaption .meta { color: var(--muted); display: block; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--text); font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 12px; font-family: var(--font); font-weight: 300; }
.lb-close { top: 6px; right: 10px; }
.lb-prev { left: 4px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 4px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox { padding: 56px 12px 24px; } .lb-prev, .lb-next { top: auto; bottom: 4px; transform: none; } }

/* ---------- Katalog (Blätterkatalog) ---------- */
.catalog-teaser { display: grid; grid-template-columns: minmax(180px, 320px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.catalog-teaser a.cover { display: block; box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.catalog-teaser a.cover:hover { opacity: 1; transform: translateY(-3px); transition: transform .3s; }
@media (max-width: 640px) { .catalog-teaser { grid-template-columns: 1fr; } .catalog-teaser a.cover { max-width: 260px; } }

.flipbook-wrap { position: relative; margin: 24px auto 0; max-width: 1100px; }
.flipbook { margin: 0 auto; }
.flipbook .page { background: #fff; }
.flipbook .page canvas, .flipbook .page img { width: 100%; height: 100%; display: block; }
.flip-controls { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 22px 0 0; font-size: .85rem; }
.flip-controls button {
  font: inherit; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500;
  background: none; border: 1px solid var(--text); color: var(--text); padding: 10px 18px; cursor: pointer;
}
.flip-controls button:hover { background: var(--text); color: var(--bg); }
.flip-status { min-width: 7em; text-align: center; color: var(--muted); }
.flip-loading { text-align: center; color: var(--muted); padding: 60px 0; }

/* ---------- Graue Textflächen (wie im Print-Folder) ---------- */
.panel { background: #767676; color: #fff; padding: clamp(22px, 3.5vw, 40px); }
.panel strong { font-weight: 700; }
.panel .eyebrow { color: rgba(255,255,255,.75); }
.panel .button { border-color: #fff; color: #fff; }
.panel .button:hover { background: #fff; color: #1a1a1a; }

.exhibit { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: stretch; }
.exhibit .panel { display: flex; flex-direction: column; justify-content: center; }
.exhibit .panel h2 { margin-bottom: .4em; }
.exhibit .panel p { font-size: 1.02rem; line-height: 1.6; margin: 0 0 .8em; }
.exhibit img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
@media (max-width: 800px) { .exhibit { grid-template-columns: 1fr; } }

.wordmark { font-weight: 300; letter-spacing: .02em; text-transform: none; line-height: 1; }
.wordmark b { font-weight: 800; letter-spacing: .01em; }

/* ---------- Über mich: Porträt freigestellt ---------- */
.about { display: grid; grid-template-columns: 1.15fr 1fr; align-items: end; gap: 0; position: relative; }
/* Porträt liegt ÜBER der grauen Fläche (wie im Print-Folder) */
.about .portrait { position: relative; z-index: 3; pointer-events: none; }
.about .portrait img { width: 100%; max-width: 640px; margin: 0 auto; filter: grayscale(1); }
.about .panel { margin-left: -8%; margin-bottom: 6%; padding-left: clamp(36px, 7%, 96px); position: relative; z-index: 2; }
.about .panel p { line-height: 1.75; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
  .about .portrait img { max-width: 360px; }
  .about .panel { margin: -40px 0 0; }
}

/* ---------- Portfolio ---------- */
.portfolio-item + .portfolio-item { margin-top: clamp(56px, 8vw, 110px); padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.flipbook img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Video ---------- */
video.video-player { width: 100%; aspect-ratio: 16 / 9; background: #1a1a1a; display: block; }
.video-credit { font-size: .72rem; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }

/* ---------- Video (2-Klick-Lösung, nur für externe Einbettungen) ---------- */
.video {
  position: relative; aspect-ratio: 16 / 9; background: #1a1a1a; color: #eee; overflow: hidden;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-consent {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 14px;
  background-size: cover; background-position: center;
}
.video-consent::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.video-consent > * { position: relative; }
.video-consent p { max-width: 34em; font-size: .82rem; color: #ddd; margin: 0; }
.video-consent .button { border-color: #fff; color: #fff; }
.video-consent .button:hover { background: #fff; color: #1a1a1a; }
.video-consent .play { width: 64px; height: 64px; border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center; }

/* ---------- Textseiten ---------- */
.prose { max-width: 44em; }
.prose h2 { margin-top: 1.8em; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Fußbereich ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .78rem; letter-spacing: .06em; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 22px; }
.site-footer a { text-decoration: none; }

/* ---------- Instagram-Auswahl (Startseite) ---------- */
.insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(8px, 1.2vw, 16px); }
.insta a { display: block; overflow: hidden; background: #dcdcdc; }
.insta a:hover { opacity: 1; }
.insta img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s ease; }
.insta a:hover img { transform: scale(1.04); }
@media (max-width: 700px) { .insta { grid-template-columns: repeat(2, 1fr); } }

/* Maßangabe nie mitten drin umbrechen: passt sie nicht mehr in die Zeile, rutscht sie komplett in die nächste */
.work .size, .lightbox .size { white-space: nowrap; display: inline-block; }
.work.zweizeilig .size { display: block; }
.work.zweizeilig .sep { display: none; }
.work .meta { position: relative; }

/* =========================================================
   Künstlerische Elemente: Leinwand-Struktur, Pinsel, Pinselstrich
   ========================================================= */
body {
  background-color: var(--bg);
  background-image: linear-gradient(rgba(236,236,236,.72), rgba(236,236,236,.72)), url("../bilder/deko/leinwand.jpg");
  background-size: auto, 540px auto;
}
.site-header { background: rgba(236,236,236,.88); }

/* Pinsel aus dem Print-Folder – weißer Hintergrund verschmilzt per "multiply" mit der Leinwand */
.pinsel { mix-blend-mode: multiply; pointer-events: none; user-select: none; }
.insta-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.insta-cta .pinsel { position: relative; z-index: 2; width: clamp(280px, 44vw, 600px); height: auto; margin: 0 -12px -26px 0; transform: rotate(-4deg); }
.pinsel-kontakt { display: block; width: clamp(240px, 40vw, 460px); height: auto; margin: 56px 0 0 auto; transform: rotate(-3deg); }

/* Pinselstrich als senkrechter Trenner zwischen zwei Spalten */
.two-col.divided { position: relative; }
.two-col.divided::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 10px; transform: translateX(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 400' preserveAspectRatio='none'%3E%3Cpath d='M5 2 C3.6 60 6.4 120 4.6 180 S6.2 300 4.8 398' fill='none' stroke='%23a3a3a3' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M5.4 30 C4.6 90 6 150 5.2 210 S5.8 330 5 370' fill='none' stroke='%23a3a3a3' stroke-width='1' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
@media (max-width: 800px) { .two-col.divided::before { display: none; } }

/* Telefon in der Kopfzeile – dezent, aber auf jeder Seite sichtbar */
.header-right { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 34px); }
.header-tel {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; white-space: nowrap;
  padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line);
}
.header-tel svg { width: 16px; height: 16px; }
@media (max-width: 900px) {
  .header-tel { border-left: 0; padding-left: 0; }
  .header-tel span { display: none; }           /* auf dem Handy nur das Symbol – tippen ruft an */
  .header-tel svg { width: 22px; height: 22px; }
  .nav-toggle { margin-right: -10px; }
}


/* Bodenlinie unter dem Porträt (Artist), damit es nicht schwebt */
.about { border-bottom: 3px solid #767676; }
.about .portrait img { margin-bottom: -1px; }

/* ---------- Signet: größer, ragt mit dem „J“ über die Kopfzeile ---------- */
.site-header .wrap { overflow: visible; }
.logo { align-self: flex-start; height: var(--header-h); position: relative; z-index: 2; }
.logo img { height: 78px; transform: translateY(22px); }
@media (max-width: 900px) { .logo img { height: 60px; transform: translateY(20px); } }

/* ---------- Galerie-Kopf mit freigestelltem Bild ---------- */
.page-head.mit-bild { display: grid; grid-template-columns: 1fr minmax(220px, 34%); gap: 24px; align-items: end; }
.kopfbild { width: 100%; max-height: 440px; object-fit: contain; object-position: bottom right; margin-bottom: -12px; }
.kopfbild-mural { mix-blend-mode: multiply; }
@media (max-width: 800px) { .page-head.mit-bild { grid-template-columns: 1fr; } .kopfbild { max-height: 300px; justify-self: end; width: auto; } }

/* ---------- Kontakt: ausgefranste Leinwand als Streifen links (Kopfzeile bis Fußzeile), Kontaktdaten rechts ---------- */
.kontakt { display: grid; grid-template-columns: clamp(300px, 36vw, 640px) 1fr; gap: clamp(40px, 6vw, 110px); align-items: stretch; }
.kontakt-leinwand { position: relative; min-height: 640px; filter: drop-shadow(0 14px 22px rgba(0,0,0,.10)); }
.kontakt-leinwand-stoff {
  position: absolute; inset: 0;
  background: url("../bilder/deko/kontakt-leinwand.jpg") right bottom / cover no-repeat;
  -webkit-mask: url("../bilder/deko/kontakt-leinwand-maske.png") right bottom / cover no-repeat;
          mask: url("../bilder/deko/kontakt-leinwand-maske.png") right bottom / cover no-repeat;
}
.siegel { position: absolute; left: 49%; top: 66%; width: 120%; max-width: none; height: auto; transform: translate(-35%, -50%) rotate(-6deg); pointer-events: none; }
.kontakt-daten { padding: 0 var(--gutter) clamp(56px, 8vw, 110px) 0; max-width: 680px; }
.contact-list .titel { display: block; font-size: inherit; letter-spacing: .02em; text-transform: none; color: inherit; font-weight: 300; }
.kontakt-daten .page-head { padding-top: clamp(40px, 7vw, 96px); padding-bottom: 20px; }
@media (max-width: 760px) {
  .kontakt { grid-template-columns: 1fr; gap: 8px; }
  .kontakt-leinwand { width: 86vw; min-height: 0; height: 68vw; }
  .siegel { width: 88%; left: 46%; top: 50%; }
  .kontakt-daten { padding: 0 var(--gutter) 56px; }
  .kontakt-daten .page-head { padding-top: 16px; }
}
@media (min-width: 901px) and (max-width: 1150px) { .logo img { height: 64px; transform: translateY(24px); } .nav ul { gap: 18px; } }

/* Abstand zwischen Signet und Menü */
.site-header .wrap { gap: clamp(24px, 3vw, 48px); }
@media (min-width: 901px) and (max-width: 1250px) {
  .logo img { height: 60px; transform: translateY(26px); }
  .nav ul { gap: 16px; }
  .nav a { letter-spacing: .12em; }
  .header-right { gap: 18px; }
  .header-tel { padding-left: 16px; }
}

/* Signet: „J“ ragt etwas weiter über die Kopfzeile, „E“ bleibt auf Menühöhe */
.logo img { height: 92px; transform: translateY(19px); }
@media (min-width: 901px) and (max-width: 1250px) { .logo img { height: 84px; transform: translateY(20px); } }
@media (max-width: 900px) { .logo img { height: 66px; transform: translateY(20px); } }

/* Kopfbild bis an den rechten Bildschirmrand (Person ist im Bild rechts angeschnitten) */
html { overflow-x: clip; }
.kopfbild-rand {
  object-position: bottom right;
  margin-right: calc(-1 * (max(0px, (100vw - var(--max)) / 2) + var(--gutter)));
  width: calc(100% + max(0px, (100vw - var(--max)) / 2) + var(--gutter));
  max-width: none;
}

/* Canvas-Kopfbild ragt etwas in die Kopfzeile (unterhalb der Schrift) */
.kopfbild-rand {
  align-self: start; position: relative; z-index: 40;
  margin-top: calc(-1 * (clamp(40px, 6vw, 80px) + 24px));
  max-height: 520px;
  transition: opacity .2s;
}
html.gescrollt .kopfbild-rand { z-index: 1; }     /* beim Scrollen unter die Kopfzeile */
@media (max-width: 800px) { .kopfbild-rand { margin-top: 0; z-index: auto; } }

/* Canvas-Kopf: Textunterkante bündig mit dem „Boden“ im Bild */
.page-head.mit-bild > div { align-self: end; }
.page-head.mit-bild > div > :last-child { margin-bottom: 0; }
.kopfbild-rand { margin-bottom: 0; }
.page-head.mit-bild:has(.kopfbild-rand) { padding-bottom: 0; margin-bottom: clamp(28px, 4vw, 48px); }

/* Text und Bild gemeinsam unten ausrichten – Bodenlinie immer bündig */
.page-head.mit-bild { align-items: end; }
.kopfbild-rand { align-self: end; }
.page-head.mit-bild .lead { margin-bottom: -.35em; }   /* Unterlängen-Luft ausgleichen: Schriftlinie = Boden */
.page-head.mit-bild .lead { margin-bottom: -.88em; }   /* Schriftlinie der letzten Zeile = Schuhsohlen */
.page-head.mit-bild > div > .lead:last-child { margin-bottom: -.56em; }

/* Kopfbild mit Schatten: der Rahmen endet an den Schuhsohlen (873 von 944 px),
   der Schatten darunter darf überstehen */
.kopfbild-box { max-height: none; display: flex; justify-content: flex-end; align-items: flex-start; }
.kopfbild-boden { position: relative; aspect-ratio: 688 / 873; width: min(100%, 410px); }
.kopfbild-boden img { position: absolute; top: 0; left: 0; width: 100%; height: auto; max-width: none; }
@media (max-width: 800px) { .kopfbild-boden { width: min(100%, 240px); } }
.kopfbild-rand {
  margin-right: calc(-1 * (max(0px, (100vw - var(--sbw, 0px) - var(--max)) / 2) + var(--gutter)));
  width: calc(100% + max(0px, (100vw - var(--sbw, 0px) - var(--max)) / 2) + var(--gutter));
}

/* Bildunterschrift: Titel / Untertitel / Technik / Maß – immer untereinander */
.work figcaption { line-height: 1.45; }
.work .title { display: block; }
.work .sub { display: block; font-size: .9em; font-style: italic; color: var(--text); opacity: .75; }
.work .meta { display: block; }
.work .size { white-space: nowrap; }
.work .title + .meta, .work .sub + .meta { margin-top: 4px; }
.work .kopf { display: block; }
.work .kopf + .meta { margin-top: 4px; }
.work .frame:has(img[src$=".png"]) { background: none; }

/* Blocksatz-Galerie (Breiten setzt js/main.js) */
.gallery::after { display: none; }
.work { max-width: none; min-width: 0; }
.work .frame { aspect-ratio: var(--r); }
@media (max-width: 600px) { .work { width: 100% !important; flex: 0 0 100% !important; } }

/* Untertitel nicht kursiv */
.work .sub { font-style: normal; opacity: 1; font-weight: 500; font-size: .92em; color: var(--text); }
@media (max-width: 600px) { .work .meta:not(.size) { white-space: normal; } }
.work.frei figcaption { width: max-content; max-width: 70vw; }

/* Signet: Kontur in Kopfzeilenfarbe + Schlagschatten (wirkt dort, wo das „J“ übersteht) */
.logo img {
  filter: brightness(0) opacity(.9)
    drop-shadow(2px 0 0 #ececec) drop-shadow(-2px 0 0 #ececec)
    drop-shadow(0 2px 0 #ececec) drop-shadow(0 -2px 0 #ececec)
    drop-shadow(0 4px 5px rgba(0, 0, 0, .22));
}
/* Unterkante der Kopfzeile: weiße Haarlinie */
.site-header { border-bottom: 1px solid #fff; }

/* Titelbild: Ränder laufen ins Lichtgrau aus – Schrift dunkel, ohne dunklen Verlauf */
.hero { background: transparent; }
.hero img { object-position: center 35%; }
.hero-text { background: none; color: var(--text); }
.hero-text p { color: var(--muted); }
.hero { height: auto; overflow: visible; }
.hero img { height: clamp(220px, 34vh, 380px); }
.hero-text { position: static; padding: clamp(18px, 2.4vw, 28px) var(--gutter) 0; }
.hero-text .wrap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.hero-text h1 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 0; }
.hero img { -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }

/* Auftraggeber in Galerie-Überschriften: bricht nur als Ganzes um */
.theme h2 .kunde{white-space:nowrap}
.theme h2 .kunde.umbruch .strich{display:none}

/* Fußzeile Handy: Ort in eigener Zeile, ohne Trennstrich */
@media (max-width: 600px) { .fuss-strich { display: none; } .fuss-ort { display: block; } }

/* Temporärer Hinweis auf das MDR-Video (Startseite) */
.hero-hinweis { margin-left: auto; display: inline-flex; align-items: center; gap: .55em; padding: .5em 1.05em; border: 1px solid #3a3a3a; border-radius: 999px; font-size: .78rem; letter-spacing: .04em; background: #3a3a3a; color: #fff; text-decoration: none; transition: background .2s, color .2s; }
.hero-hinweis:hover { background: #1a1a1a; border-color: #1a1a1a; color: #fff; opacity: 1; }
.hero-hinweis .play { font-size: .7em; }
#mdr { scroll-margin-top: 110px; }
@media (max-width: 600px) { .hero-hinweis { margin-left: 0; } }

/* Mural: Lichtenauer-Hallenwand – freigestellte Laterne ragt hinter die Überschrift */
#lichtenauer-mineralquellen-gmbh-hallenwand h2 { position: relative; z-index: 2; }
#lichtenauer-mineralquellen-gmbh-hallenwand .gallery { position: relative; z-index: 1; margin-top: -11.5%; }
#lichtenauer-mineralquellen-gmbh-hallenwand { padding-top: 11%; }   /* Platz für den Laternenkopf über der Überschrift */

/* Artist: Porträt kleiner, Textkasten breiter (Wunsch Jörg, 18.11.) */
@media (min-width: 801px) {
  .about { grid-template-columns: 0.8fr 1.35fr; }
  .about .portrait img { max-width: 470px; }
}
