/* ============================================================================
   Vanetta d+e / itc — Master Stylesheet
   ============================================================================
   Scope: All redesigned content, hub, profil, impressum and v_itc pages.
   Palette switch: body.itc overrides --bg / --bg2 / --bg3 / --bg-frame.
============================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* V_d_e palette */
  --bg:        #c2c6ca;
  --bg2:       #b2b7bc;
  --bg3:       #a8adb3;
  --bg-frame:  #9aa0a6;
  --fg:        #1a1c1e;
  --fg-muted:  #4a4f55;
  --fg-dim:    #8e9399;
  --accent:    #b91c1c;
  --accent-h:  #991616;
  --logo-accent: #8a5a2c;
  --sans:      'Barlow', sans-serif;
  --nav-h:     80px;
  --pad:       clamp(1.5rem, 5vw, 4rem);
}

body.itc {
  /* V_itc palette — lighter */
  --bg:        #d4d8dc;
  --bg2:       #c4c9cd;
  --bg3:       #bac0c5;
  --bg-frame:  #aab0b6;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

em { font-style: normal; font-weight: 500; }

/* =============================================================================
   Navigation (injected by vanetta.js — placeholder is <nav id="vanetta-nav">)
============================================================================= */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #ddd;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 50px; width: auto; display: block; }
.nav-links {
  display: none;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 50%;
  top: 60%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 240px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10);
  padding: 1rem 0 1.5rem;
  z-index: 101;
  list-style: none;
}
.nav-links.open {
  display: flex;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > span {
  display: block;
  padding: 0.75rem 2.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.nav-links > li > a:hover,
.nav-links > li:hover > span { color: var(--accent); }
.has-dropdown:hover > .dropdown,
.has-dropdown.open > .dropdown { display: block; }
.dropdown {
  display: none;
  position: absolute;
  left: 50%;
  top: 0;
  width: max-content;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.10);
  box-shadow: 4px 4px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem 0;
  z-index: 3;
}
.dropdown a {
  display: block;
  padding: 0.4rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
}
.dropdown a:hover { color: var(--accent); background: rgba(185, 28, 28, 0.07); }

.nav-toggle {

  position: absolute;

  left: 70%;
  top: 50%;

  transform: translate(-50%, -50%);

  width: 44px;
  height: 44px;

  border: none;
  background: none;

  cursor: pointer;

  padding: 0;

  overflow: visible;

}

/* ==========================================================================
   Hamburger Bars
========================================================================== */

.nav-toggle span {

  position: absolute;

  left: 50%;

  width: 26px;
  height: 1.5px;

  background: var(--fg);

  transform-origin: center;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease;

  margin-left: -13px;

}

/* obere Linie */
.nav-toggle span:nth-child(1) {
  top: 12px;
}

/* mittlere Linie */
.nav-toggle span:nth-child(2) {
  top: 21px;
}

/* untere Linie */
.nav-toggle span:nth-child(3) {
  top: 30px;
}

/* ==========================================================================
   Open State → X
========================================================================== */

.nav-toggle.open span:nth-child(1) {

  top: 21px;

  transform: rotate(45deg);

}

.nav-toggle.open span:nth-child(2) {

  opacity: 0;

}

.nav-toggle.open span:nth-child(3) {

  top: 21px;

  transform: rotate(-45deg);

}
.nav-flag {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem !important;
}
.nav-active { font-weight: 600 !important; color: var(--accent) !important; }

/* =============================================================================
   Page header (eyebrow + title) — every page has this directly in HTML
============================================================================= */
.page-header {
  background: var(--bg-frame);
  padding-top: calc(var(--nav-h) + 0.9rem);
  padding-bottom: 0.2rem;
  padding-left: var(--pad);
  padding-right: var(--pad);
  
}
.page-eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin: 0;
  line-height: 1;
}
.page-title {
  font-family: var(--sans);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.1em;
text-transform: uppercase;
  margin: 0;
	
}

/* =============================================================================
   Detail section (.pd-section) — Variant A, D, E, F, I content base
============================================================================= */
.pd-section {
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  border-bottom: 1px solid var(--fg-dim);
  background: var(--bg2);
}
.pd-container {
  max-width: 1500px;
  margin: 0 auto;
}
/* Default container: stacked (Variant A) */
.pd-container.stack {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}
/* Two-column grid: text + aside (Variant E, H, I) */
.pd-container.grid-2-1 {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.pd-container.grid-1 {
  display: block;
  max-width: 1100px;
}
/* Variant A: pd-group with thumbs + heading + bullet list */
.pd-group { display: flex; flex-direction: column; gap: 1rem; }
.pd-thumbs { display: flex; flex-wrap: wrap; gap: clamp(6px, 0.8vw, 12px); }
.pd-thumbs .thumb-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg-dim);
  background: var(--bg3);
  cursor: zoom-in;
  flex: 1 1 0;
  min-width: 0;
  aspect-ratio: 4 / 3;
}
.pd-thumbs .thumb-wrap .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
}
.pd-thumbs .thumb-wrap:hover .thumb-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}
.thumb-arrow {
  position: absolute;
  right: 0.5rem;
  bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.pd-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.pd-heading {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  text-transform: uppercase;
  margin: 0;
  margin-bottom: 1.25rem;
}
.pd-list {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0.5rem;
}
.pd-list li {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.75;
  padding: 0.15rem 0 0.15rem 1.2rem;
  position: relative;
}
.pd-list li::before {
  content: '\2022';
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1rem;
  line-height: 1.75;
}
.pd-list li.spacer { padding: 0.4rem 0; }
.pd-list li.spacer::before { content: none; }
.pd-prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}
.pd-prose p {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.85;
}
.pd-prose .label {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.pd-prose .label:first-child { margin-top: 0; }
.pd-prose a {
  color: var(--fg);
  font-style: italic;
  text-decoration: none;
  transition: color 0.2s;
}
.pd-prose a:hover { color: var(--accent); }
.pd-prose h3,
.pd-prose .sub-tag {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fg);
  margin-top: 0.5rem;
}
.pd-prose .sub-h4 {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}
.pd-prose .sub-h4:first-child { margin-top: 0; }
.pd-prose .imp-h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  text-transform: uppercase;
  margin: 0.5rem 0 0.25rem;
}
.pd-prose .imp-h3:first-child { margin-top: 0; }

/* Variant D — gallery row with caption below image + red bar */
.gallery-row { display: flex; flex-wrap: wrap; gap: clamp(6px, 0.8vw, 12px); }
.gallery-item { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.thumb-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg-dim);
  background: var(--bg3);
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.thumb-wrap .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
}
.thumb-wrap:hover .thumb-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}
a.thumb-wrap { display: block; text-decoration: none; }
.gallery-caption {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--fg);
  letter-spacing: 0.02em;
  padding: 0.85rem 0 0.25rem;
  border-top: 2px solid var(--accent);
  margin: 0;
}

/* CV list (Variant F — Historie/Zur Person) */
.cv-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(120px, max-content) 1fr;
  gap: 0.5rem 1.25rem;
}
.cv-list dt {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.04em;
}
.cv-list dd {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Profil aside (Xing/LinkedIn thumbs) */
.pd-aside {
  background: var(--bg3);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pd-aside img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--fg-dim);
}
.pd-aside a { display: block; transition: opacity 0.2s; }
.pd-aside a:hover { opacity: 0.85; }
.pd-aside .thumb-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg-dim);
  background: var(--bg3);
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: auto;
}
.pd-aside .thumb-wrap .thumb-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0.96) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
}
.pd-aside .thumb-wrap:hover .thumb-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}

/* V_itc Leistungen: has-aside container = 2-col grid */
.pd-section .pd-container.has-aside {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

/* Patent-aside (V_itc Referenzen) */
.pd-aside-patent {
  background: var(--bg3);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.patent-link {
  font-family: var(--sans);
  font-size: 1.2rem;
  color: var(--fg);
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.2s;
}
.patent-link strong { font-weight: 400; }
.patent-link em { font-style: italic; font-weight: inherit; }
.patent-link:hover { color: var(--accent); }

/* Vision-flow (Profil/Leitsatz) */
.vision-flow {
  background: var(--bg3);
  border-left: 4px solid var(--accent);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
}
.vision-flow ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.vision-flow li {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--fg);
  text-align: center;
  padding: 0.4rem 0;
  letter-spacing: 0.02em;
	color: white;
}
.vision-flow .vf-arrow {
  font-size: 0.9rem;
  color: white;
  padding: 0.1rem 0;
  opacity: 0.8;
}
.vision-flow li:last-child { color: var(--accent); font-weight: 400; }

/* Impressum card (right side) */
.imp-card {
  background: var(--bg3);
  border-left: 4px solid var(--accent);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.imp-card .card-h {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--fg);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.imp-card .addr {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.85;
}
.imp-card .addr strong { font-weight: 500; color: var(--fg); }
.imp-card .addr a { color: var(--accent); text-decoration: none; font-style: italic; }
.imp-card .addr a:hover { color: var(--accent-h); }
.imp-card .addr-sep { display: block; height: 0.6rem; }
.imp-card .meta-tag {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  
  color: var(--accent);
  margin-top: 1.4rem;
  margin-bottom: 0.2rem;
}

/* V_itc PDF link (Konzept) */
.vitc-pdf-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  padding: 0.5rem 0;
  font-style: italic;
  transition: color 0.2s;
}
.vitc-pdf-link:hover { color: var(--accent-h); }

/* =============================================================================
   Hub variant (Portfolio Hub, Studienarbeiten, Press hub, Fahrzeugstudien)
============================================================================= */
.portfolio-block {
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  border-bottom: 1px solid #ddd;
  background: var(--bg2);
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(8px, 1.2vw, 18px);
  max-width: 1500px;
  margin: 0 auto;
}
.proj-tile {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg3);
  border: 1px solid var(--fg-dim);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.proj-tile:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12); }
.proj-tile-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg3);
}
.proj-tile-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.97) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}
.proj-tile:hover .proj-tile-img img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}
.proj-tile-body {
  padding: 0.85rem 1rem 1rem;
  background: rgba(255, 255, 255, 0);
  border-top: 2px solid var(--accent);
}
.proj-name {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}
.proj-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-weight: 100;
  line-height: 1.25;
  margin-bottom: 1rem;
}
.proj-meta {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
	text-align: right;
}
.proj-client {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 300;
	text-align: right;
}
/* Press tile fallback (no image) */
.press-tile-fallback {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
}
.press-tile-fallback span {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 400;
  color: white;
  letter-spacing: 0.04em;
}

@media (max-width: 1150px) { .proj-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .proj-grid { grid-template-columns: 1fr; } }

/* =============================================================================
   Leistungen/Einführung — hub with portfolio-block + img-grid + services-summary
============================================================================= */
.einf-block { background: var(--bg2); }
body.einf .portfolio-block { background: var(--bg2); }

/* V_itc Konzept aside — same look as pd-aside */
.vitc-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.vitc-aside .thumb-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--fg-dim);
  background: var(--bg3);
  cursor: zoom-in;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.vitc-aside .thumb-wrap .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.96) contrast(1.04);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.3s;
}
.vitc-aside .thumb-wrap:hover .thumb-img {
  transform: scale(1.05);
  filter: brightness(1) contrast(1.06);
}
.block-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  gap: 1rem;
}
.block-num {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.block-title {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.2;
  position: relative;
  padding-left: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.block-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}
.block-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-align: right;
  line-height: 1.65;
  max-width: calc(66.66% - 0.4rem);
}
.desc-sub { font-size: 0.9rem; color: var(--fg-muted); line-height: 1.6; }
.img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: clamp(4px, 0.6vw, 10px);
}
.img-cell {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  border: 1px solid var(--fg-dim);
  aspect-ratio: 4 / 3;
}
.img-cell img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.97) contrast(1.03);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
  cursor: zoom-in;
}
.img-cell:hover img { transform: scale(1.05); filter: brightness(1) contrast(1.06); }

/* =============================================================================
   Footer (injected by vanetta.js — placeholder is <footer id="vanetta-footer">)
============================================================================= */
footer {
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
  border-top: 1px solid var(--fg-dim);
  background: var(--bg-frame);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}
.footer-name { display: block; font-weight: 400; color: var(--fg); }
.footer-links a {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  
  color: var(--fg-muted);
  text-decoration: none;
  line-height: 1.7;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.9rem;
  color: var(--fg);
  font-family: var(--sans);
  letter-spacing: 0.12em;
}

@media (max-width: 768px) {
  footer { flex-direction: column; align-items: center; text-align: center; }
  footer .footer-brand { align-items: center; text-align: center; }
  footer .footer-links { align-items: center; }
  footer .footer-name { text-align: center; text-align-last: center; }
}

/* =============================================================================
   Lightbox (injected by vanetta.js)
============================================================================= */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img {

  display: block;

  max-width: 82vw;
  max-height: 84vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border: 1px solid rgba(255,255,255,0.15);

  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  will-change: opacity;

  backface-visibility: hidden;
  transform: translateZ(0);

  /* ==========================================================================
     Touch / Swipe Optimierung
  ========================================================================== */

  touch-action: pan-y;

  -webkit-user-drag: none;
  -webkit-touch-callout: none;

  user-select: none;
  -webkit-user-select: none;

}


/* ============================================================================
   Mobile Lightbox Optimierung
============================================================================ */

@media (max-width: 768px) {

  .lb-nav {

    width: 38px;
    height: 52px;

    font-size: 1rem;

    background: rgba(255,255,255,0.08);

  }

  #lb-prev {
    left: 0.5rem;
  }

  #lb-next {
    right: 0.5rem;
  }

  #lightbox-close {

    top: 0.8rem;
    right: 1rem;

    font-size: 1rem;

  }

  #lightbox img {

    max-width: 94vw;
    max-height: 82vh;

  }

}


#lightbox img.fade { opacity: 0; }
#lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  background: none;
  border: none;
  z-index: 10;
}
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.2rem;
  width: 44px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
#lb-prev { left: 1.5rem; }
#lb-next { right: 1.5rem; }
#lb-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

/* =============================================================================
   Reveal-on-scroll
============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* =============================================================================
   Leitsatz hero (zentrale Aussage) — Profil/Leitsatz wenn ohne Standard-Header
============================================================================= */
.leitsatz-hero {
  padding: clamp(3rem, 6vw, 5rem) var(--pad);
  background: var(--bg);
  text-align: center;
  border-bottom: 1px solid var(--fg-dim);
}
.leitsatz-hero-title {
  font-family: var(--sans);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.15;
  max-width: 24ch;
  margin: 0 auto;
}
.leitsatz-hero-title .accent-bar {
  display: block;
  width: 80px;
  height: 3px;
  background: var(--accent);
  margin: 0 auto 1.5rem;
}

/* =============================================================================
   Responsive
============================================================================= */
@media (max-width: 768px) {
  .pd-container.grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .pd-section .pd-container.has-aside { grid-template-columns: 1fr; }
  .pd-aside { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .pd-thumbs .thumb-wrap { flex: 1 1 calc(50% - 0.4rem); }
}
@media (max-width: 480px) {
  .pd-thumbs .thumb-wrap { flex: 1 1 100%; }
  .gallery-item { flex: 1 1 100%; }
}
@media (max-width: 768px) {
  .gallery-row { flex-wrap: wrap; }
  .gallery-item { flex: 1 1 calc(50% - 0.4rem); }
  .block-header { flex-direction: column; align-items: flex-start; }
  .block-desc { text-align: left; max-width: 100%; }
}
@media (max-width: 600px) {
  .img-grid { grid-template-columns: 1fr; grid-template-rows: unset; }
}

