/* ==========================================================
   jochenpetz.at – helles, luftiges Design
   ========================================================== */

@font-face {
  font-family: "Marcellus";
  src: url(../fonts/marcellus-latin-400-normal.woff2) format("woff2");
  font-weight: 400; 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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Marcellus";
  src: url(../fonts/marcellus-latin-ext-400-normal.woff2) format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  src: url(../fonts/jost-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+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Jost";
  src: url(../fonts/jost-latin-ext-wght-normal.woff2) format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #FBF8F3;
  --paper-2: #F4EEE5;
  --surface: #FFFFFF;
  --ink: #2B2622;
  --ink-2: #4A433C;
  --muted: #7A7066;
  --line: #E8E0D4;
  --line-2: #DCD2C4;
  --kakao: #8A5A3A;
  --accent: var(--kakao);

  --serif: "Marcellus", "Iowan Old Style", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .04), 0 12px 32px -12px rgba(60, 40, 20, .14);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --c1: #B24A3B; --c2: #C9702F; --c3: #D2A62A; --c4: #4F8558; --c5: #35759C; --c6: #4A4C97; --c7: #83549F;
}

*, *::before, *::after { box-sizing: border-box; }
/* Versteckte Elemente bleiben versteckt – egal welche display-Regel sonst gilt */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 18px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
  font: 500 16px/1.2 var(--sans); text-decoration: none; color: var(--ink);
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); border-color: var(--ink); box-shadow: var(--shadow); }
.btn--solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--solid:hover { background: #000; }
.btn--accent { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.btn--accent:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Kopfzeile ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.is-scrolled { border-bottom-color: var(--line); }
.topbar__inner { max-width: var(--wrap); margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { font: 400 22px/1 var(--serif); text-decoration: none; letter-spacing: -.01em; margin: 0; }
.topbar__nav { display: flex; align-items: center; gap: 6px; }
.topbar__lang, .topbar__link { font: 500 15px/1 var(--sans); text-decoration: none; padding: 10px 12px; border-radius: 999px; color: var(--ink-2); }
.topbar__lang { letter-spacing: .08em; font-size: 13px; }
.topbar__lang:hover, .topbar__link:hover { background: var(--paper-2); }
.topbar__menu { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 15px; }
.topbar__menu:hover { border-color: var(--ink); }
@media (max-width: 520px) { .topbar__link { display: none; } }

/* ---------- Projekt-Menü (Overlay) ---------- */
.menu { position: fixed; inset: 0; z-index: 50; background: rgba(43, 38, 34, .28); backdrop-filter: blur(4px); display: flex; justify-content: flex-end; opacity: 0; transition: opacity .3s; }
.menu.is-open { opacity: 1; }
.menu__panel { width: min(480px, 100%); height: 100%; background: var(--paper); overflow-y: auto; padding: 22px clamp(20px, 5vw, 40px) 40px; transform: translateX(24px); transition: transform .35s var(--ease); box-shadow: -20px 0 60px -30px rgba(0,0,0,.3); }
.menu.is-open .menu__panel { transform: none; }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.menu__title { font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.menu__close { background: none; border: 0; padding: 8px; border-radius: 50%; cursor: pointer; }
.menu__close:hover { background: var(--paper-2); }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s var(--ease), color .2s; }
.menu__list a:hover { padding-left: 12px; color: var(--accent); }
.menu__num { font: 500 13px/1 var(--sans); color: var(--accent); letter-spacing: .06em; min-width: 22px; }
.menu__name { font: 400 21px/1.25 var(--serif); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: clamp(40px, 8vw, 110px) var(--gutter) clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 88px); align-items: center;
}
.hero__title { font-size: clamp(42px, 7vw, 88px); line-height: 1.05; margin-bottom: 28px; letter-spacing: -.005em; }
.hero__intro { font-size: 20px; color: var(--ink-2); max-width: 34em; }
.hero__intro strong { color: var(--ink); font-weight: 500; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border-radius: 999px; font-size: 15px; text-decoration: none; color: var(--ink-2); background: var(--paper-2); transition: background .2s, color .2s; }
.chip:hover { background: var(--ink); color: var(--paper); }

.hero__portrait { margin: 0; justify-self: center; width: min(100%, 420px); }
.arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.chakra-line { display: flex; gap: 6px; justify-content: center; margin-top: 22px; }
.chakra-line i { width: 9px; height: 9px; border-radius: 50%; }
.chakra-line i:nth-child(1) { background: var(--c1); } .chakra-line i:nth-child(2) { background: var(--c2); }
.chakra-line i:nth-child(3) { background: var(--c3); } .chakra-line i:nth-child(4) { background: var(--c4); }
.chakra-line i:nth-child(5) { background: var(--c5); } .chakra-line i:nth-child(6) { background: var(--c6); }
.chakra-line i:nth-child(7) { background: var(--c7); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; width: min(72%, 320px); }
  .hero__text { text-align: left; }
}

.banner { max-width: var(--wrap); margin: 0 auto clamp(40px, 6vw, 80px); padding: 0 var(--gutter); }
.banner .media { border-radius: var(--radius); }
.banner img { width: 100%; }

/* ---------- Übersicht ---------- */
.overview { max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter); border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(34px, 4.6vw, 56px); }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.tile a { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.tile__img { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: color-mix(in srgb, var(--accent) 10%, var(--paper-2)); margin-bottom: 14px; position: relative; }
.tile__img::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile a:hover .tile__img img { transform: scale(1.04); }
.tile a:hover .tile__img::after { transform: scaleX(1); }
.tile__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tile__title { font: 400 22px/1.2 var(--serif); }
.tile a:hover .tile__title { color: var(--accent); }

/* ---------- Kategorie-Abschnitte ---------- */
.cat { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); border-top: 1px solid var(--line); position: relative; }
.cat__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 36px); align-items: start; margin-bottom: clamp(28px, 4vw, 52px); }
.cat__num { font: 400 clamp(40px, 5vw, 64px)/1 var(--serif); color: color-mix(in srgb, var(--accent) 55%, var(--paper)); padding-top: 4px; }
.cat__kicker { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 500; }
.cat__title { font-size: clamp(32px, 4.4vw, 56px); max-width: 16em; }
.cat__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.cat--flip .cat__text { order: 2; }
.cat--textonly .cat__grid { grid-template-columns: minmax(0, 46rem); }
@media (max-width: 860px) {
  .cat__grid { grid-template-columns: 1fr; }
  .cat--flip .cat__text { order: 0; }
  .cat__media { order: -1; }
  .cat__head { grid-template-columns: 1fr; }
  .cat__num { display: none; }
}

.prose { color: var(--ink-2); max-width: 38em; }
.prose > :last-child { margin-bottom: 0; }
.prose strong, .prose b { color: var(--ink); font-weight: 500; }
.prose a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose h3, .prose h4 { color: var(--ink); margin: 1.8em 0 .6em; font-size: 24px; }
.prose h4 { font-size: 21px; }
.prose ul, .prose ol { padding-left: 0; margin: 0 0 1.2em; list-style: none; }
.prose ol { counter-reset: n; }
.prose li { position: relative; padding-left: 26px; margin-bottom: .45em; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--accent); }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n) "."; position: absolute; left: 0; color: var(--accent); font-weight: 500; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--accent); font: 400 20px/1.5 var(--serif); color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.links { list-style: none; margin: 28px 0; padding: 0; border-top: 1px solid var(--line); max-width: 38em; }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 450; transition: color .2s, padding .25s var(--ease); }
.links a .icon { color: var(--accent); transition: transform .25s var(--ease); }
.links a:hover { color: var(--accent); padding-left: 8px; }
.links a:hover .icon { transform: translateX(4px); }
.cat__text > .btn { margin-top: 8px; }

/* Medien */
.cat__media { display: grid; gap: 14px; }
.media { display: block; position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); cursor: zoom-in; }
.media--link { cursor: pointer; }
.media img { width: 100%; transition: transform .7s var(--ease), opacity .4s; }
.media:hover img { transform: scale(1.025); }
.media--main { box-shadow: var(--shadow); }
.media__badge { position: absolute; right: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--ink); opacity: 0; transform: translateY(-4px); transition: .25s var(--ease); }
.media:hover .media__badge, .media:focus-visible .media__badge { opacity: 1; transform: none; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery .media { border-radius: var(--radius-sm); aspect-ratio: 1; }
.gallery--1 .media { aspect-ratio: auto; }
.gallery .media img { width: 100%; height: 100%; object-fit: cover; }
.gallery--1 .media img { height: auto; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--paper-2)), var(--paper-2)); }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; background: rgba(251, 248, 243, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; text-align: center; transition: background .25s; }
.video__play:hover { background: rgba(251, 248, 243, .15); }
.video__icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.video__play:hover .video__icon { transform: scale(1.06); }
.video__label { font-weight: 500; }
.video__note { font-size: 13px; color: var(--ink-2); max-width: 28em; }

.edit-pin { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 7px 12px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; opacity: .75; }
.edit-pin:hover { opacity: 1; }

/* ---------- Unterstützen / Newsletter ---------- */
.support { max-width: var(--wrap); margin: 0 auto; padding: clamp(56px, 8vw, 112px) var(--gutter); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(20px, 3vw, 32px); align-items: start; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 4vw, 44px); }
.card h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 14px; }
.card p { color: var(--ink-2); }
.card__img { width: 100%; max-height: 240px; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 26px; }
.card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 18px; }
.iban { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.iban span { letter-spacing: .12em; font-size: 12px; text-transform: uppercase; color: var(--muted); }
.iban code { font: 500 16px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .02em; }
.copy { border: 1px solid var(--line-2); background: none; border-radius: 999px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }

.form { display: grid; gap: 14px; margin-top: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form__row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-size: 15px; font-weight: 500; }
.form input:not([type=checkbox]) { font: 400 17px/1.3 var(--sans); padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); color: var(--ink); width: 100%; transition: border-color .2s, background .2s; }
.form input:focus { outline: none; border-color: var(--ink); background: #fff; }
.form fieldset { border: 0; padding: 0; margin: 4px 0; display: grid; gap: 8px; }
.form legend { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.form .check input { width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--kakao); flex: none; }
.check--small { font-size: 14px !important; color: var(--muted); line-height: 1.5; }
.form .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 12px; font-size: 16px; }
.notice--ok { background: #EAF3EA; color: #2F5E36; }
.notice--err { background: #F8E9E6; color: #8A3226; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--paper-2); margin-top: 0; }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 52px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer .brand { font-size: 28px; margin-bottom: 10px; }
.footer__text { color: var(--muted); margin: 0; }
.footer__contact { display: grid; gap: 14px; justify-items: end; }
.footer__contact > a { font-size: 18px; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.footer__social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); color: var(--ink-2); transition: .2s; }
.footer__social a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 640px) { .footer__contact { justify-items: start; } }
.imprint { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 10px; font-size: 15px; }
.imprint summary { cursor: pointer; color: var(--muted); }
.imprint .prose { padding: 16px 0; }
.footer__legal { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 34px; font-size: 14px; color: var(--muted); }
.footer__legal a { color: var(--muted); }

/* ---------- Schwebende Knöpfe ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 20; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(8px); transition: .3s var(--ease); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.admin-pill { position: fixed; left: 20px; bottom: 20px; z-index: 20; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-size: 15px; box-shadow: var(--shadow); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(251, 248, 243, .97); display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; opacity: 0; transition: opacity .25s; }
.lightbox.is-open { opacity: 1; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; padding: 64px 0 24px; max-height: 100vh; }
.lightbox img { max-height: calc(100vh - 130px); width: auto; max-width: 100%; border-radius: 8px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.35); }
.lightbox figcaption { font-size: 15px; color: var(--muted); }
.lightbox button { background: none; border: 0; cursor: pointer; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; justify-self: center; }
.lightbox button:hover { background: var(--paper-2); }
.lightbox__close { position: absolute; top: 14px; right: 14px; }
.lightbox__prev .icon { transform: rotate(180deg); }
@media (max-width: 640px) { .lightbox { grid-template-columns: 44px 1fr 44px; } }

/* ---------- Video-Vollbild ---------- */
.vmodal { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 13, .94); display: grid; place-items: center; padding: max(56px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); opacity: 0; transition: opacity .25s; }
.vmodal.is-open { opacity: 1; }
.vmodal__frame { position: relative; width: min(100%, calc((100vh - 110px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 30px 90px -20px rgba(0,0,0,.7); transform: scale(.97); transition: transform .3s var(--ease); }
.vmodal.is-open .vmodal__frame { transform: none; }
.vmodal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.vmodal__close:hover, .vmodal__close:focus-visible { background: rgba(255,255,255,.25); }

/* ---------- Einblenden beim Scrollen ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
