/* www.drucktest.com – KD Hochdrucktechnik, Krisch-Dienst GmbH Fluidtechnik
   Basis: Design www.wasser-hydraulik.de (2026); Ergaenzungen fuer drucktest.com am Dateiende */
/* Roboto lokal eingebunden (DSGVO-konform, keine Google-Server) */
@font-face { font-family: Roboto; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/roboto-300.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-400.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-500.woff2") format("woff2"); }
@font-face { font-family: Roboto; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-700.woff2") format("woff2"); }

:root {
  --blue: #1e73be;
  --blue-dark: #09589e;
  --blue-deep: #0b3a66;
  --text: #404040;
  --text-light: #707070;
  --heading: #333333;
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --border: #e2e6ea;
  --footer: #2a3439;
  --footer-text: #c3cbd0;
  --radius: 4px;
  --shadow: 0 2px 10px rgba(0, 0, 0, .07);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
h1, h2, h3, h4 { color: var(--heading); font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
strong { font-weight: 500; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 10px; top: 10px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* ---------- Topbar ---------- */
.topbar { background: var(--blue-deep); color: #dce8f3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar span + span { margin-left: 18px; }
/* Sprachumschalter (Flaggen) */
.lang-switch { display: flex; gap: 7px; align-items: center; margin-left: auto; }
.lang-switch a { display: block; line-height: 0; opacity: .55; border-radius: 2px; transition: opacity .15s; }
.lang-switch a:hover, .lang-switch a:focus-visible, .lang-switch a.active { opacity: 1; }
.lang-switch a.active { box-shadow: 0 0 0 1.5px #fff; }
.lang-switch img { width: 21px; height: 14px; object-fit: cover; border-radius: 2px; display: block; }
@media (max-width: 1260px) { .topbar .container > div.hide-sm { display: none; } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--heading); }
.logo:hover { text-decoration: none; color: var(--heading); }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo-wh { height: 54px; width: auto; flex: none; }
.logo-kd { flex: none; display: block; line-height: 0; }
.logo-kd img { height: 56px; width: auto; }
.main-nav a { white-space: nowrap; }
@media (max-width: 1300px) and (min-width: 961px) {
  .site-header .container { gap: 12px; }
  .main-nav > ul { gap: 0; }
  .main-nav > ul > li > a { padding: 10px 9px; font-size: .9rem; }
  .logo-wh { height: 46px; }
  .logo-kd img { height: 48px; }
}
@media (max-width: 1140px) and (min-width: 961px) {
  .logo .logo-text { display: none; }
}
@media (max-width: 960px) {
  .logo-kd { margin-left: auto; }
  .nav-toggle { order: 3; }
}
@media (max-width: 480px) {
  .logo-wh { height: 40px; }
  .logo-kd img { height: 42px; }
  .logo .logo-text small { display: none; }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-weight: 700; font-size: 1.15rem; letter-spacing: .3px; }
.logo-text b span { color: var(--blue); }
.logo-text small { font-size: .78rem; color: var(--text-light); font-weight: 400; }

.main-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.main-nav li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: var(--heading); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a.active { color: var(--blue); text-decoration: none; }
.main-nav .has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; transform: translateY(2px); }
.main-nav .sub { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: 100%; left: 0; min-width: 250px; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-top: 3px solid var(--blue); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.main-nav li:hover > .sub, .main-nav li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub a { font-weight: 400; padding: 8px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--heading); margin: 5px 0; border-radius: 2px; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.1); display: none; max-height: calc(100vh - 84px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; padding: 8px 0; }
  .main-nav a { padding: 12px 20px; }
  .main-nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; }
  .topbar .hide-sm { display: none; }
}

/* ---------- Hero slider ---------- */
.hero { position: relative; height: clamp(420px, 62vh, 620px); overflow: hidden; background: var(--blue-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; z-index: 1; }
.slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,40,72,.88) 0%, rgba(8,40,72,.6) 50%, rgba(8,40,72,.15) 100%); z-index: 1; }
.slide .container { position: relative; z-index: 2; width: 100%; }
.slide-content { max-width: 620px; color: #fff; }
.slide-content h1, .slide-content h2 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 700; }
.slide-content p { font-size: 1.1rem; color: #e3edf6; }
.slide-content ul { margin: 0 0 1.4em; padding-left: 1.2em; color: #e3edf6; }
.hero-ctrl { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.hero-ctrl:hover { background: rgba(255,255,255,.3); }
.hero-ctrl.prev { left: 16px; } .hero-ctrl.next { right: 16px; }
.hero-dots { position: absolute; z-index: 3; bottom: 22px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; padding: 0; cursor: pointer; }
.hero-dots button.active { background: #fff; }
@media (max-width: 640px) { .hero-ctrl { display: none; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; background: var(--blue); color: #fff; padding: 12px 28px; border-radius: var(--radius); font-weight: 500; letter-spacing: .3px; transition: background .2s; }
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--blue-dark); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section-head h2::after { content: ""; display: block; width: 60px; height: 3px; background: var(--blue); margin: 16px auto 0; }
.section-head p { color: var(--text-light); }

/* ---------- Page header (sub pages) ---------- */
.page-header { background: linear-gradient(120deg, var(--blue-deep), var(--blue)); color: #fff; padding: 56px 0 48px; }
.page-header h1 { color: #fff; margin: 0; }
.page-header p { margin: 10px 0 0; color: #dce8f3; max-width: 760px; font-size: 1.1rem; }
.breadcrumb { font-size: .85rem; margin-bottom: 10px; color: #b8d0e6; }
.breadcrumb a { color: #fff; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(0,0,0,.1); transform: translateY(-3px); }
.card-img { aspect-ratio: 4 / 3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.card-img.cover img { object-fit: cover; padding: 0; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body h3 a { color: var(--heading); }
.card-body p { font-size: .95rem; flex: 1; }
.more { font-weight: 500; font-size: .95rem; }
.more::after { content: " →"; }

/* ---------- Feature / stats ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.feature { text-align: center; padding: 10px; }
.feature .icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: #e4eff9; color: var(--blue); display: flex; align-items: center; justify-content: center; }
.feature .icon svg { width: 30px; height: 30px; }
.feature h3 { font-size: 1.1rem; }
.feature p { font-size: .95rem; color: var(--text-light); }

.stats { background: var(--blue-deep); color: #fff; padding: 48px 0; }
.stats .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1; }
.stat span { color: #b8d0e6; font-size: .95rem; }

/* ---------- Content ---------- */
.content { max-width: 860px; }
.content ul, .check-list { padding-left: 1.2em; }
.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: start; }
.split.rev { grid-template-columns: 1fr 1.3fr; }
@media (max-width: 860px) { .split, .split.rev { grid-template-columns: 1fr; } }
.img-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.img-stack { display: grid; gap: 18px; }

.notice { background: #e4eff9; border-left: 4px solid var(--blue); padding: 16px 20px; border-radius: var(--radius); margin: 0 0 1.4em; }

/* product tables */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5em; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: top; }
.spec-table th { background: var(--blue-deep); color: #fff; font-weight: 500; }
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table tr:hover td { background: #f8fafc; }
.pdf { white-space: nowrap; font-weight: 500; font-size: .9rem; }
.pdf::before { content: "PDF"; display: inline-block; background: #c62828; color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 3px; margin-right: 6px; vertical-align: 1px; }
.table-wrap { overflow-x: auto; }

/* tags */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li { background: #fff; border: 1px solid var(--border); padding: 9px 16px; border-radius: 30px; font-size: .95rem; }
.tags li:hover { border-color: var(--blue); color: var(--blue); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--blue); }
.timeline li { position: relative; padding: 0 0 22px 28px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.timeline b { display: block; color: var(--blue-dark); font-weight: 700; }

/* news */
.news-list { display: grid; gap: 20px; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.news-item time { font-weight: 700; color: var(--blue); font-size: 1.1rem; }
.news-item h3 { margin-bottom: .3em; }
.news-item p:last-child { margin: 0; }
.features-3 { max-width: 960px; margin: 0 auto; }
.hist-title { margin: 48px 0 20px; }
.hist-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.hist-gallery figure { margin: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hist-gallery img { display: block; width: 100%; aspect-ratio: 900 / 1270; object-fit: cover; object-position: top; transition: transform .2s; }
.hist-gallery a:hover img { transform: scale(1.03); }
.hist-gallery figcaption { padding: 8px 10px; font-size: .85rem; color: var(--text-light); text-align: center; }
.check-list a.pdf { display: inline-block; margin: 4px 14px 0 0; }
.news-img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: var(--radius); }
@media (max-width: 560px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* contact */
.contact-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-box h3 { margin-top: 0; }
.person { display: flex; gap: 20px; align-items: center; }
.person img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.cta-band { background: linear-gradient(120deg, var(--blue-dark), var(--blue)); color: #fff; padding: 56px 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dce8f3; max-width: 680px; margin: 0 auto 1.4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: var(--footer-text); font-size: .93rem; padding: 60px 0 0; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1em; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5em; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding: 20px 0; font-size: .82rem; color: #8d999f; }
.footer-legal .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.img-stack .img-frame img { width: 100%; max-height: 480px; object-fit: contain; }

/* =====================================================================
   Ergaenzungen www.drucktest.com
   ===================================================================== */
.logo-kdlogo { height: 56px; width: auto; flex: none; }
.logo-text { white-space: nowrap; }
.site-header .logo, .site-header .logo-text { flex: none; }
.site-header .main-nav { min-width: 0; }
.logo-text b span { color: var(--blue); }
.logo-text b { color: #84867a; } /* "KD" im Grau von "Fluidtechnik" aus dem Krisch-Dienst-Logo */
@media (max-width: 1300px) and (min-width: 961px) { .logo-kdlogo { height: 48px; } }
@media (max-width: 480px) { .logo-kdlogo { height: 42px; } }
.header-cta { flex: none; padding: 10px 18px; font-size: .9rem; }
.header-cta:hover { color: #fff; }
/* Kopfzeile: 8 Menuepunkte + Logo + Button brauchen Platz */
.site-header .container { max-width: 1440px; }
@media (max-width: 960px) { .header-cta { display: none; } }
@media (max-width: 560px) { .logo .logo-text small { display: none; } .logo-text b { font-size: 1rem; } }
@media (max-width: 360px) { .logo .logo-text { display: none; } }
@media (max-width: 1560px) and (min-width: 961px) { .header-cta { display: none; } .logo .logo-text small { display: none; } }
@media (max-width: 1400px) and (min-width: 961px) { .logo .logo-text { display: none; } }
@media (max-width: 1060px) and (min-width: 961px) { .main-nav > ul > li > a { padding: 10px 7px; font-size: .86rem; } }

/* Hero mit freigestellten Produktbildern */
.hero.product-hero { background: radial-gradient(ellipse at 72% 55%, #2d6fb3 0%, #0f4a83 38%, #0b3a66 70%, #082c4f 100%); }
.product-hero .slide::before { display: none; }
.product-hero .slide > img.hero-product { position: absolute; inset: auto; right: 3%; top: 50%; left: auto; transform: translateY(-50%); width: min(48%, 720px); height: auto; max-height: 84%; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); }
.product-hero .slide-content { max-width: 470px; }
@media (min-width: 641px) { .product-hero .slide .container { padding-left: 76px; } }
@media (min-width: 861px) and (max-width: 1100px) { .product-hero .slide > img.hero-product { width: 44%; right: 2%; } .product-hero .slide-content { max-width: 50%; } }
.product-hero .eyebrow { display: inline-block; font-size: .8rem; letter-spacing: 1.5px; text-transform: uppercase; color: #9fc4ea; font-weight: 500; margin-bottom: 10px; }
@media (max-width: 860px) {
  .product-hero .slide > img.hero-product { width: 78%; right: -8%; opacity: .28; }
  .product-hero .slide-content { max-width: 100%; }
}

/* Produktkarten: Bild auf hellem Grund */
.card-img { background: linear-gradient(180deg, #fff 0%, #f1f4f7 100%); }
.card-img img { padding: 18px; }
.card .badge { display: inline-block; background: #e4eff9; color: var(--blue-dark); font-size: .78rem; font-weight: 500; padding: 2px 9px; border-radius: 20px; margin-bottom: 8px; }

.product-shot { background: linear-gradient(180deg, #fff 0%, #eef2f6 100%); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.product-shot img { width: 100%; max-height: 460px; object-fit: contain; }
.product-shot figcaption { font-size: .88rem; color: var(--text-light); text-align: center; margin-top: 8px; }
figure { margin: 0; }

/* Optionen */
.option-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.option { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 20px 22px; }
.option code { display: inline-block; font-family: inherit; font-size: .8rem; font-weight: 500; color: var(--blue-dark); background: #e4eff9; padding: 2px 8px; border-radius: 3px; margin-bottom: 8px; }
.option h3 { font-size: 1.08rem; margin-bottom: .35em; }
.option p { font-size: .95rem; margin: 0; }

/* Tabellen kompakt */
.spec-table.compact th, .spec-table.compact td { padding: 9px 12px; font-size: .92rem; white-space: nowrap; }
.spec-table td.num, .spec-table th.num { text-align: right; }
.spec-table .grp td { background: #e9f1f9; font-weight: 500; color: var(--blue-dark); }
.table-note { font-size: .88rem; color: var(--text-light); }

/* Schritte */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; }
.steps li::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; }
.steps p { font-size: .95rem; margin: 0; color: var(--text-light); }

/* Galerie + Lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.gallery a { display: block; background: linear-gradient(180deg, #fff 0%, #f1f4f7 100%); border: 1px solid var(--border); border-radius: var(--radius); aspect-ratio: 4 / 3; padding: 12px; transition: box-shadow .2s, transform .2s; }
.gallery a[hidden] { display: none; }
.gallery a:hover { box-shadow: 0 10px 24px rgba(0,0,0,.1); transform: translateY(-2px); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 30px; }
.gallery-filter button { font: inherit; font-size: .92rem; background: #fff; border: 1px solid var(--border); padding: 7px 16px; border-radius: 30px; cursor: pointer; color: var(--text); }
.gallery-filter button.active, .gallery-filter button:hover { border-color: var(--blue); color: var(--blue); }
.gallery-filter button.active { background: var(--blue); color: #fff; }
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(8,20,34,.92); display: none; align-items: center; justify-content: center; padding: 40px 16px; }
.lightbox.open { display: flex; }
.lightbox figure { max-width: 1200px; width: 100%; text-align: center; }
.lightbox img { margin: 0 auto; max-height: 78vh; width: auto; max-width: 100%; background: #fff; border-radius: var(--radius); padding: 16px; }
.lightbox figcaption { color: #dce8f3; margin-top: 12px; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: 0; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

[id] { scroll-margin-top: 96px; }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.anchor-nav a { font-weight: 500; }
.section-tight { padding: 48px 0; }
.lead { font-size: 1.12rem; }
.two-col-list { columns: 2 300px; column-gap: 40px; }
.two-col-list li { break-inside: avoid; }
