:root {
  --bg: #07080d;
  --bg-soft: rgba(255,255,255,.065);
  --text: #f7f3ec;
  --muted: rgba(247,243,236,.68);
  --line: rgba(255,255,255,.13);
  --card: rgba(255,255,255,.08);
  --shadow: 0 30px 90px rgba(0,0,0,.38);
  --radius: 28px;
  --max: 1220px;
  --accent: #ff7a1a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 30rem),
              radial-gradient(circle at 80% 0%, rgba(122, 92, 255, .18), transparent 28rem),
              linear-gradient(135deg, #050507 0%, var(--bg) 45%, #111017 100%);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body.style-warm {
  --bg: #160d09;
  --text: #fff4e8;
  --muted: rgba(255,244,232,.72);
  --card: rgba(255,196,132,.10);
  --line: rgba(255,218,180,.18);
}
body.style-clean {
  --bg: #f7f4ef;
  --text: #111014;
  --muted: rgba(17,16,20,.62);
  --card: rgba(255,255,255,.76);
  --line: rgba(17,16,20,.10);
  color-scheme: light;
  background: radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--accent) 19%, transparent), transparent 30rem), #f7f4ef;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
code { color: var(--accent); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(var(--max), calc(100vw - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 68%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border-radius: 999px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 40%, #ffffff));
  color: #060606;
  font-weight: 900;
  letter-spacing: -.04em;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-size: .95rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.brand-copy small { color: var(--muted); font-size: .78rem; }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .94rem;
  transition: .22s ease;
}
.site-nav a:hover, .site-nav .pill {
  color: var(--text);
  background: var(--bg-soft);
}
.site-nav .pill { border: 1px solid var(--line); }
.nav-toggle { display: none; }

main, footer { position: relative; z-index: 1; }
.hero {
  width: min(var(--max), calc(100vw - 32px));
  margin: 62px auto 0;
  min-height: 72vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(28px, 5vw, 84px);
  align-items: center;
  position: relative;
}
.hero-copy h1, .page-hero h1 {
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 8.4rem);
  line-height: .88;
  letter-spacing: -.075em;
  max-width: 980px;
}
.hero-copy p:not(.kicker), .page-hero p:not(.kicker) {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.7;
  max-width: 700px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .78rem;
  font-weight: 800;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.centered { justify-content: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #080808;
  font-weight: 850;
  border: 1px solid color-mix(in srgb, var(--accent) 80%, white);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 32%, transparent);
  transition: transform .22s ease, box-shadow .22s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 46px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.ghost { background: var(--bg-soft); color: var(--text); box-shadow: none; border-color: var(--line); }

.hero-frame {
  position: relative;
  min-height: 640px;
  border-radius: 42px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent 55%);
  pointer-events: none;
}
.hero-frame img { width: 100%; height: 100%; min-height: 640px; object-fit: cover; filter: saturate(1.05) contrast(1.03); }

.placeholder-frame { display: grid; place-items: center; min-height: 640px; padding: 24px; color: var(--muted); text-align: center; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(24px); opacity: .45; pointer-events: none; }
.hero-orb.one { width: 190px; height: 190px; background: var(--accent); right: 30%; top: 5%; }
.hero-orb.two { width: 130px; height: 130px; background: #8f63ff; right: 2%; bottom: 8%; }
.stat-strip {
  position: absolute;
  left: 32px;
  bottom: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 510px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--bg) 52%, transparent);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.stat-strip div { padding: 14px 18px; border-radius: 18px; background: var(--bg-soft); }
.stat-strip strong { display: block; font-size: 1.7rem; letter-spacing: -.04em; }
.stat-strip span { color: var(--muted); font-size: .82rem; }

.page-hero {
  width: min(var(--max), calc(100vw - 32px));
  margin: 70px auto 36px;
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(135deg, var(--card), rgba(255,255,255,.02));
  box-shadow: var(--shadow);
}
.page-hero.compact h1 { font-size: clamp(3rem, 7vw, 7.2rem); }

.content-section, .wow-section, .contact-section {
  width: min(var(--max), calc(100vw - 32px));
  margin: 88px auto 0;
}
.content-section.wide { width: min(1480px, calc(100vw - 32px)); }
.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 24px;
}
.section-heading.split {
  grid-template-columns: 1fr minmax(220px, 420px);
  align-items: end;
  gap: 26px;
}
.section-heading span {
  color: var(--accent);
  text-transform: uppercase;
  font-weight: 850;
  letter-spacing: .15em;
  font-size: .76rem;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.8rem);
  letter-spacing: -.06em;
  line-height: .95;
}
.section-heading p { color: var(--muted); line-height: 1.7; margin: 0; }

.category-grid, .album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.category-card, .album-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(0,0,0,.22);
}
.category-card img, .album-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.category-card:hover img, .album-card:hover img { transform: scale(1.055); }
.category-card::after, .album-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), transparent 58%);
}
.category-card span, .album-overlay {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 3px;
}
.category-card small, .album-overlay small { color: rgba(255,255,255,.72); }
.category-card strong, .album-overlay strong { color: #fff; font-size: 1.8rem; letter-spacing: -.05em; line-height: 1; }

.masonry {
  columns: 4 260px;
  column-gap: 18px;
}
.photo-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(0,0,0,.22);
  cursor: default;
}
.photo-card img { width: 100%; height: auto; transition: transform .75s cubic-bezier(.2,.7,.2,1), filter .75s ease; }
.photo-card:hover img { transform: scale(1.035); filter: saturate(1.08) contrast(1.04); }
.photo-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  gap: 2px;
  padding: 46px 16px 15px;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.76), transparent);
  opacity: 0;
  transform: translateY(8px);
  transition: .25s ease;
}
.photo-card:hover figcaption { opacity: 1; transform: translateY(0); }
.photo-card figcaption strong { font-size: .98rem; }
.photo-card figcaption span { color: rgba(255,255,255,.72); font-size: .82rem; }

.wow-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.wow-card {
  min-height: 240px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--card), rgba(255,255,255,.025));
  box-shadow: 0 20px 70px rgba(0,0,0,.2);
}
.wow-card span { color: var(--accent); font-weight: 900; }
.wow-card h3 { margin: 38px 0 10px; font-size: 1.7rem; letter-spacing: -.045em; }
.wow-card p { margin: 0; color: var(--muted); line-height: 1.65; }

.contact-section {
  text-align: center;
  padding: clamp(34px, 6vw, 78px);
  border-radius: 40px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 24rem), var(--card);
}
.contact-section h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 5.8rem); letter-spacing: -.07em; line-height: .93; }
.contact-section p:not(.kicker) { color: var(--muted); font-size: 1.1rem; }
.site-footer {
  width: min(var(--max), calc(100vw - 32px));
  margin: 70px auto 26px;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.empty-state {
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--card);
}
.empty-state h3 { color: var(--text); margin-top: 0; }

/* V5.2: Lightbox entfernt – keine grosse Klick-/Downloadansicht für Portfolio-Bilder. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
body[data-motion="off"] .reveal { opacity: 1; transform: none; transition: none; }

@media (max-width: 960px) {
  .site-header { border-radius: 28px; align-items: flex-start; }
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 999px;
    padding: 10px 13px;
  }
  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
  }
  .site-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: unset; margin-top: 46px; }
  .hero-frame { min-height: 440px; transform: none; }
  .hero-frame img, .placeholder-frame { min-height: 440px; }
  .stat-strip { position: static; grid-template-columns: repeat(3, 1fr); margin-top: -18px; }
  .category-grid, .album-grid, .wow-section { grid-template-columns: 1fr; }
  .category-card, .album-card { min-height: 280px; }
  .section-heading.split { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .site-header, .hero, .content-section, .content-section.wide, .wow-section, .contact-section, .page-hero, .site-footer { width: min(100vw - 20px, var(--max)); }
  .brand-copy strong { max-width: 170px; }
  .hero-copy h1, .page-hero.compact h1 { font-size: clamp(2.7rem, 16vw, 4.5rem); }
  .hero-frame, .hero-frame img, .placeholder-frame { min-height: 340px; border-radius: 28px; }
  .stat-strip { grid-template-columns: 1fr; }
  .masonry { columns: 1; }
  .site-footer { flex-direction: column; gap: 12px; }
}

/* V4 visitor-facing category hero */
.category-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(22px, 4vw, 46px);
  align-items: center;
  overflow: hidden;
}
.category-hero-copy { position: relative; z-index: 2; }
.category-hero-copy > p:not(.kicker) { max-width: 780px; }
.category-hero-image {
  position: relative;
  min-height: clamp(280px, 38vw, 520px);
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}
.category-hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent 62%);
}
.category-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}
.category-hero-image span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff;
  font-weight: 850;
  letter-spacing: -.03em;
}
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.mini-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: color-mix(in srgb, var(--card) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-size: .9rem;
  font-weight: 750;
}

@media (max-width: 860px) {
  .category-hero { grid-template-columns: 1fr; }
  .category-hero-image { min-height: 260px; }
}


/* V5: Bereiche + Model Credits */
.section-grid .section-card { min-height: 340px; }
.section-card { position: relative; display: block; overflow: hidden; border-radius: 30px; min-height: 320px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 80px rgba(0,0,0,.22); }
.section-card img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; transform: scale(1.02); transition: transform .7s ease, filter .7s ease; }
.section-card:hover img { transform: scale(1.08); filter: contrast(1.05) saturate(1.08); }
.album-overlay em { display: block; margin-top: 6px; font-style: normal; font-size: .82rem; opacity: .76; }
.album-meta-box { margin: 22px 0 2px; display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.model-credit { padding: 14px 16px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.07); border-radius: 20px; min-width: 220px; backdrop-filter: blur(18px); }
.model-credit span { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.model-credit strong { display: block; font-size: 1.05rem; }
.model-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.model-links a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; opacity: .9; }
.model-links a:hover { opacity: 1; color: var(--accent); }
.album-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.album-tags span { padding: 10px 13px; border-radius: 999px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.06); font-size: .86rem; opacity: .9; }
@media (max-width: 720px){ .album-meta-box{display:block}.model-credit{margin-bottom:12px}.section-card,.section-card img{min-height:260px} }


/* V5.1 Synology clean fix: remove homepage statistics panel so it cannot overlap cards/buttons. */
.stat-strip { display: none !important; }


/* V5.2 Portfolio-only Bildkarten: kein Plus-Cursor, kein Klick-Zoom. */
.photo-card { cursor: default !important; }
.photo-card img { user-select: none; }
.photo-card a, .photo-card button { pointer-events: none; }

/* V5.2 schöner Credit-Kasten für Model/Ort/Tags pro Serie. */
.album-meta-box { display: none !important; }
.credit-panel {
  margin: 24px 0 4px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.14);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 16rem),
    rgba(255,255,255,.065);
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
  max-width: 640px;
}
.credit-panel-head { display:flex; justify-content:space-between; gap:12px; align-items:center; padding-bottom:12px; margin-bottom:12px; border-bottom:1px solid rgba(255,255,255,.12); }
.credit-panel-head span, .credit-label { font-size:.72rem; letter-spacing:.17em; text-transform:uppercase; color:var(--muted); }
.credit-panel-head strong { font-size:.95rem; }
.credit-row { display:grid; grid-template-columns:96px 1fr; gap:16px; align-items:start; }
.credit-main strong { display:block; font-size:1.15rem; letter-spacing:-.02em; }
.credit-links { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.credit-links a { display:inline-flex; align-items:center; justify-content:center; min-height:34px; padding:8px 13px; border-radius:999px; text-decoration:none; color:var(--text); border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); }
.credit-links a:hover { border-color:var(--accent); color:var(--accent); }
.credit-tags { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
.credit-tags span { padding:9px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.055); font-size:.84rem; color:var(--muted); }
@media (max-width:720px){ .credit-row{grid-template-columns:1fr; gap:8px}.credit-panel{padding:16px} }


/* V5.3: Credits nicht mehr im Hero/oben, sondern dezent am Ende der Serie. */
.series-credit-bottom {
  margin: 42px auto 0;
  display: flex;
  justify-content: center;
}
.series-credit-bottom .credit-panel {
  width: min(760px, 100%);
  margin: 0;
  padding: 20px 22px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035)),
    radial-gradient(circle at 14% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 18rem);
  box-shadow: 0 22px 80px rgba(0,0,0,.18);
}
.series-credit-bottom .credit-panel-head strong::after {
  content: "";
}
@media (max-width:720px){
  .series-credit-bottom { margin-top: 30px; }
  .series-credit-bottom .credit-panel { padding: 17px; border-radius: 24px; }
}


/* V5.4 Content Polish: mehr redaktioneller Inhalt + dezente DE/EN Ebene. */
.hero-english {
  margin-top: 10px !important;
  color: var(--muted);
  font-size: clamp(.95rem, 1.15vw, 1.08rem) !important;
  line-height: 1.75 !important;
  max-width: 760px;
}
.story-section {
  width: min(1180px, calc(100% - 40px));
  margin: 18px auto 84px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: stretch;
}
.story-copy,
.story-points {
  border: 1px solid rgba(255,255,255,.13);
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.032)),
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 18rem);
  border-radius: 32px;
  box-shadow: 0 24px 90px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.story-copy { padding: clamp(26px, 4vw, 48px); }
.story-copy .eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .76rem;
  font-weight: 800;
}
.story-copy h2 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.story-copy p {
  margin: 0 0 14px;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.8;
}
.story-copy .english-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
}
.story-points {
  padding: 14px;
  display: grid;
  gap: 12px;
}
.story-points div {
  min-height: 118px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
}
.story-points strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  letter-spacing: -.02em;
}
.story-points span {
  display: block;
  color: var(--muted);
  line-height: 1.65;
}
@media (max-width: 900px) {
  .story-section { grid-template-columns: 1fr; margin-bottom: 58px; }
  .story-points div { min-height: auto; }
}
@media (max-width: 560px) {
  .story-section { width: min(100% - 28px, 1180px); }
  .story-copy { padding: 24px; border-radius: 26px; }
  .story-points { border-radius: 26px; }
}

/* V5.5 Language + editorial content on all portfolio levels */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
}
.lang-switch a {
  padding: 7px 9px;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  color: var(--muted);
}
.lang-switch a.active {
  color: #060606;
  background: var(--accent);
}
.editorial-note {
  width: min(980px, calc(100vw - 32px));
  margin: 28px auto 64px;
  padding: clamp(22px, 3.5vw, 42px);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.072), rgba(255,255,255,.028)),
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 18rem);
  box-shadow: 0 24px 80px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
}
.editorial-note span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: .74rem;
  font-weight: 850;
}
.editorial-note h2 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 3.8rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.editorial-note p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}
.editorial-note p:last-child { margin-bottom: 0; }
@media (max-width: 720px) {
  .lang-switch { width: fit-content; }
  .editorial-note { margin-top: 18px; margin-bottom: 48px; border-radius: 26px; }
}


/* V5.8 Design Refine: weniger Textdruck, klarere Bildbereiche, dezente Credits */
.section-heading.split {
  align-items: end;
  gap: clamp(18px, 4vw, 54px);
}
.section-heading.split p {
  max-width: 470px;
  font-size: .98rem;
  line-height: 1.65;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
}
.editorial-note {
  max-width: 920px;
  padding: clamp(26px, 4vw, 44px);
  border-radius: 32px;
}
.editorial-note p {
  max-width: 760px;
}
.category-card span small,
.album-overlay small {
  opacity: .72;
}
.series-credit-bottom {
  margin: 26px auto 0;
  justify-content: flex-start;
}
.credit-panel { display: none !important; }
.credit-strip {
  width: min(860px, 100%);
  margin: 0;
  padding: 13px 15px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.045);
  box-shadow: none;
  backdrop-filter: blur(14px);
}
.credit-strip-label {
  flex: 0 0 auto;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
}
.credit-strip-content {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.credit-strip-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.credit-strip-main span {
  color: var(--muted);
  font-size: .82rem;
}
.credit-strip-main strong {
  font-size: .96rem;
  font-weight: 650;
}
.credit-strip-links,
.credit-strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.credit-strip-links a,
.credit-strip-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .82rem;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,.105);
  background: rgba(255,255,255,.035);
}
.credit-strip-links a:hover {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
}
@media (max-width:720px){
  .section-heading.split { align-items: start; }
  .credit-strip { align-items: flex-start; flex-direction: column; }
  .credit-strip-content { align-items: flex-start; }
}


/* V6.2 Layout Fix: Texte nicht mehr rechts neben Bildbereichen platzieren */
.section-heading.split,
.section-heading.split.clean-heading {
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 10px !important;
  max-width: 900px;
}
.section-heading.split p,
.section-heading.split.clean-heading p {
  max-width: 680px !important;
  margin-top: 4px !important;
  font-size: .98rem;
  line-height: 1.55;
}
.content-section.wide .section-heading.split {
  margin-left: 0;
}

/* V6.2 dezenter Model-/Seriencredit */
.series-credit-bottom {
  margin-top: 22px !important;
}
.credit-strip {
  width: min(760px, 100%) !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  background: rgba(255,255,255,.032) !important;
  border-color: rgba(255,255,255,.085) !important;
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
}
.credit-strip-label {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: color-mix(in srgb, var(--muted) 82%, transparent) !important;
}
.credit-strip-main strong {
  font-size: .92rem !important;
  font-weight: 600 !important;
}
.credit-strip-links a,
.credit-strip-tags span {
  min-height: 26px !important;
  padding: 4px 9px !important;
  font-size: .78rem !important;
  background: rgba(255,255,255,.025) !important;
}

/* V6.4 Visual spacing audit: einheitlichere Abstände und ruhigere Portfolio-Blöcke */
:root {
  --section-gap: clamp(58px, 7vw, 94px);
  --section-gap-tight: clamp(36px, 5vw, 62px);
  --heading-gap: clamp(18px, 2.4vw, 28px);
  --card-gap: clamp(14px, 2vw, 20px);
}

.hero {
  margin-top: clamp(44px, 6vw, 68px);
  min-height: clamp(560px, 70vh, 760px);
}

.content-section,
.wow-section,
.contact-section {
  margin-top: var(--section-gap) !important;
}

.story-section {
  margin-top: var(--section-gap-tight) !important;
  margin-bottom: var(--section-gap) !important;
}

.page-hero {
  margin-top: clamp(46px, 6vw, 70px) !important;
  margin-bottom: var(--section-gap-tight) !important;
}

.editorial-note {
  margin-top: var(--section-gap-tight) !important;
  margin-bottom: var(--section-gap-tight) !important;
}

.section-heading,
.section-heading.split,
.section-heading.split.clean-heading {
  margin-bottom: var(--heading-gap) !important;
  gap: 8px !important;
}

.section-heading h2 {
  max-width: 900px;
}

.section-heading p {
  max-width: 680px !important;
}

.category-grid,
.album-grid,
.wow-section {
  gap: var(--card-gap) !important;
}

.category-grid:has(> :only-child),
.album-grid:has(> :only-child) {
  grid-template-columns: minmax(280px, 430px) !important;
  justify-content: start;
}

.category-grid:has(> :nth-child(2):last-child),
.album-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 430px)) !important;
  justify-content: start;
}

.category-card,
.album-card,
.section-card {
  min-height: clamp(280px, 31vw, 360px) !important;
}

.section-card img {
  min-height: clamp(280px, 31vw, 360px) !important;
}

.masonry {
  column-gap: var(--card-gap) !important;
}
.photo-card {
  margin-bottom: var(--card-gap) !important;
}

/* Model-/Serien-Credit noch ruhiger und mit gleichmässigem Abstand zur Serie */
.series-credit-bottom {
  margin-top: var(--section-gap-tight) !important;
  margin-bottom: 0 !important;
}
.credit-strip {
  width: min(720px, 100%) !important;
  padding: 11px 13px !important;
  opacity: .92;
}

/* Auf kleineren Screens gleiche Logik, aber kompakter */
@media (max-width: 960px) {
  .hero { min-height: unset; }
  .category-grid:has(> :only-child),
  .album-grid:has(> :only-child),
  .category-grid:has(> :nth-child(2):last-child),
  .album-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  :root {
    --section-gap: 54px;
    --section-gap-tight: 34px;
    --heading-gap: 18px;
  }
  .content-section,
  .content-section.wide,
  .wow-section,
  .contact-section,
  .page-hero,
  .site-footer,
  .editorial-note {
    width: min(100vw - 24px, var(--max)) !important;
  }
  .category-card,
  .album-card,
  .section-card,
  .section-card img {
    min-height: 270px !important;
  }
}


/* V6.5 Portfolio Rhythm: Serien & Themen und Featured Work gleich behandeln */
.portfolio-block {
  width: min(1480px, calc(100vw - 32px)) !important;
  margin-top: var(--section-gap) !important;
}
.portfolio-block + .portfolio-block {
  margin-top: var(--section-gap) !important;
}
.portfolio-heading,
.section-heading.portfolio-heading {
  display: grid !important;
  grid-template-columns: 1fr !important;
  align-items: start !important;
  gap: 8px !important;
  max-width: 900px !important;
  margin: 0 0 var(--heading-gap) 0 !important;
}
.portfolio-heading h2 {
  margin: 0 !important;
  font-size: clamp(2.4rem, 4.4vw, 5.2rem) !important;
  line-height: .94 !important;
  letter-spacing: -.06em !important;
}
.portfolio-heading span {
  display: block;
  margin-bottom: 2px;
}
.portfolio-block .album-grid,
.portfolio-block .image-grid {
  margin-top: 0 !important;
}
@media (max-width: 720px) {
  .portfolio-block {
    width: min(100vw - 20px, var(--max)) !important;
  }
  .portfolio-heading h2 {
    font-size: clamp(2rem, 10vw, 3.3rem) !important;
  }
}

/* V6.6 Global alignment audit: alle Hauptbereiche teilen dieselbe linke/rechte Kante */
:root {
  --page-width: min(var(--max), calc(100vw - 32px));
}

.site-header,
.hero,
.page-hero,
.content-section,
.content-section.wide,
.wow-section,
.contact-section,
.story-section,
.site-footer,
.editorial-note {
  width: var(--page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Keine breiteren Sondercontainer mehr auf der Startseite: Titel, Textboxen und Bildraster starten gleich. */
.content-section.wide {
  max-width: var(--max) !important;
}

.story-section {
  max-width: var(--max) !important;
}

.section-heading,
.section-heading.split,
.section-heading.split.clean-heading {
  width: 100% !important;
  max-width: 900px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.category-grid,
.album-grid,
.masonry,
.section-grid {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.series-credit-bottom,
.credit-strip,
.credit-panel,
.credit-row {
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (max-width: 560px) {
  :root { --page-width: min(100vw - 20px, var(--max)); }
}

/* V6.7 Subpage spacing & alignment audit: Kategorie-/Bereich-/Serienseiten ruhiger und gleiche linke Kante */
:root {
  --subpage-gap: clamp(46px, 5.6vw, 76px);
  --subpage-gap-tight: clamp(24px, 3.5vw, 42px);
  --subpage-heading-gap: clamp(16px, 2.2vw, 24px);
}

/* Unterseiten sollen wie ein Portfolio-Layout wirken: Hero, Textboxen, Serien und Bilder sitzen auf derselben Kante. */
.page-hero.category-hero {
  margin-top: clamp(42px, 5.2vw, 64px) !important;
  margin-bottom: 0 !important;
  padding: clamp(24px, 4vw, 46px) !important;
  gap: clamp(22px, 4vw, 42px) !important;
}

.category-hero-copy > p:not(.kicker) {
  max-width: 680px !important;
  margin-bottom: 0 !important;
}

.category-hero-copy .mini-stats {
  margin-top: 20px !important;
}

.category-hero-copy .hero-actions {
  margin-top: 22px !important;
}

.category-hero-image {
  min-height: clamp(250px, 32vw, 430px) !important;
  border-radius: 28px !important;
}

/* Die redaktionellen Textboxen waren zu schmal und zentriert; jetzt starten sie links wie die Bildbereiche. */
.editorial-note {
  width: var(--page-width) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: var(--subpage-gap-tight) !important;
  margin-bottom: 0 !important;
  padding: clamp(22px, 3.2vw, 36px) !important;
}

.editorial-note h2,
.editorial-note p {
  max-width: 780px !important;
}

/* Nach Hero/Textbox kommen die Inhalte mit einem klaren, konsistenten Abstand. */
.page-hero + .content-section,
.page-hero + .content-section.wide,
.editorial-note + .content-section,
.editorial-note + .content-section.wide {
  margin-top: var(--subpage-gap) !important;
}

.content-section + .content-section,
.content-section + .content-section.wide,
.content-section.wide + .content-section,
.content-section.wide + .content-section.wide {
  margin-top: var(--subpage-gap) !important;
}

.content-section .section-heading,
.content-section .section-heading.split {
  margin-bottom: var(--subpage-heading-gap) !important;
}

/* Auf Unterseiten keine seitlich versetzten Erklärungssätze: Headings bleiben einspaltig und ruhig. */
.content-section .section-heading.split {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  align-items: start !important;
}

.content-section .section-heading.split p {
  max-width: 680px !important;
  margin: 0 !important;
}

/* Wenn nur wenige Serien/Karten vorhanden sind, bleiben sie linksbündig statt optisch zufällig zu wandern. */
.content-section .album-grid,
.content-section .category-grid,
.content-section .section-grid {
  justify-content: start !important;
}

/* Serien-Credit unter der Bildserie: gleiche linke Kante und weniger Abstand nach oben. */
.series-credit-bottom {
  width: 100% !important;
  margin-top: clamp(24px, 3.8vw, 40px) !important;
}

.credit-strip {
  max-width: 820px !important;
}

@media (max-width: 860px) {
  .page-hero.category-hero {
    grid-template-columns: 1fr !important;
  }
  .category-hero-image {
    min-height: 260px !important;
  }
}

@media (max-width: 560px) {
  :root {
    --subpage-gap: 46px;
    --subpage-gap-tight: 22px;
  }
  .page-hero.category-hero,
  .editorial-note {
    border-radius: 24px !important;
  }
  .page-hero.category-hero {
    padding: 20px !important;
  }
  .editorial-note {
    padding: 20px !important;
  }
}


/* V6.8 Subpage alignment final: Unterseiten gleichmässiger, keine schwebenden Textboxen */
:root {
  --page-width: min(1220px, calc(100vw - 32px));
  --subpage-stack-gap: clamp(42px, 5.2vw, 72px);
  --subpage-block-gap: clamp(22px, 3vw, 34px);
}

/* Der Kategorie-Hero bleibt der grosse Auftakt, aber mit kontrolliertem Abstand. */
.page-hero.category-hero {
  width: var(--page-width) !important;
  margin: clamp(42px, 5vw, 64px) auto 0 !important;
  padding: clamp(28px, 4.2vw, 54px) !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) !important;
  gap: clamp(28px, 4.4vw, 56px) !important;
  align-items: center !important;
}

.page-hero.category-hero .category-hero-copy {
  max-width: 760px !important;
}

.page-hero.category-hero .category-hero-copy h1 {
  max-width: 760px !important;
}

.page-hero.category-hero .category-hero-copy > p:not(.kicker) {
  max-width: 740px !important;
}

.page-hero.category-hero .category-hero-image {
  width: 100% !important;
  max-width: 360px !important;
  min-height: clamp(300px, 31vw, 460px) !important;
  justify-self: end !important;
}

/* Die Textbox auf Unterseiten ist jetzt kein zentrierter Fremdkörper mehr. */
.editorial-note {
  width: var(--page-width) !important;
  max-width: 1220px !important;
  margin: var(--subpage-block-gap) auto 0 !important;
  padding: clamp(22px, 3vw, 34px) clamp(24px, 3.2vw, 42px) !important;
  border-radius: 28px !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.052), rgba(255,255,255,.022)),
    radial-gradient(circle at 0% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 18rem) !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.16) !important;
}

.editorial-note span,
.editorial-note h2,
.editorial-note p {
  max-width: 820px !important;
}

.editorial-note h2 {
  font-size: clamp(2.1rem, 3.8vw, 4.2rem) !important;
}

.editorial-note p {
  line-height: 1.72 !important;
}

/* Nach der Textbox kommt der eigentliche Inhalt mit gleichem Rhythmus und gleicher Kante. */
.editorial-note + .content-section,
.editorial-note + .content-section.wide,
.page-hero.category-hero + .content-section,
.page-hero.category-hero + .content-section.wide {
  width: var(--page-width) !important;
  margin-top: var(--subpage-stack-gap) !important;
}

.content-section,
.content-section.wide,
.wow-section,
.contact-section,
.story-section {
  width: var(--page-width) !important;
  max-width: 1220px !important;
}

.content-section .section-heading,
.content-section .section-heading.split,
.content-section.wide .section-heading,
.content-section.wide .section-heading.split {
  max-width: 820px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: clamp(18px, 2.2vw, 28px) !important;
}

.content-section .section-heading.split,
.content-section.wide .section-heading.split {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.content-section .section-heading.split p,
.content-section.wide .section-heading.split p {
  max-width: 720px !important;
  margin: 0 !important;
}

/* Karten und Bildraster bleiben exakt innerhalb derselben Seitenbreite. */
.content-section .album-grid,
.content-section .category-grid,
.content-section .section-grid,
.content-section.wide .album-grid,
.content-section.wide .category-grid,
.content-section.wide .section-grid,
.content-section .masonry,
.content-section.wide .masonry {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Gleichmässige Zwischenräume auf Unterseiten. */
.content-section + .content-section,
.content-section + .content-section.wide,
.content-section.wide + .content-section,
.content-section.wide + .content-section.wide {
  margin-top: var(--subpage-stack-gap) !important;
}

/* Weniger zufällige Optik bei nur einem Bereich oder einer Serie. */
.content-section .album-grid:has(> :only-child),
.content-section .section-grid:has(> :only-child),
.content-section.wide .album-grid:has(> :only-child),
.content-section.wide .section-grid:has(> :only-child) {
  grid-template-columns: minmax(280px, 430px) !important;
  justify-content: start !important;
}

/* Mobil: alles untereinander, kompakter aber weiterhin gleiche linke Kante. */
@media (max-width: 900px) {
  .page-hero.category-hero {
    grid-template-columns: 1fr !important;
  }
  .page-hero.category-hero .category-hero-image {
    justify-self: start !important;
    max-width: 100% !important;
    min-height: 280px !important;
  }
}

@media (max-width: 560px) {
  :root { --page-width: min(100vw - 22px, 1220px); }
  .page-hero.category-hero,
  .editorial-note {
    border-radius: 24px !important;
    padding: 20px !important;
  }
  .editorial-note + .content-section,
  .editorial-note + .content-section.wide {
    margin-top: 46px !important;
  }
}

/* V6.9 Subpage spacing final: Unterseiten bekommen einen klaren, gemeinsamen Raster */
:root {
  --page-width: min(1220px, calc(100vw - 32px));
  --subpage-flow-gap: clamp(36px, 4.8vw, 64px);
  --subpage-mini-gap: clamp(18px, 2.8vw, 32px);
}

/* Hero, Infobereich und Inhaltsbereiche verwenden exakt dieselbe Außenkante. */
body .page-hero.category-hero,
body .editorial-note,
body .content-section,
body .content-section.wide {
  width: var(--page-width) !important;
  max-width: var(--page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Der redaktionelle Textblock war zu stark eingerückt/zentriert. Jetzt liegt er im gleichen Raster. */
body .editorial-note {
  margin-top: var(--subpage-mini-gap) !important;
  margin-bottom: 0 !important;
  padding: clamp(24px, 3vw, 38px) !important;
  border-radius: 30px !important;
  display: block !important;
}

body .editorial-note span,
body .editorial-note h2,
body .editorial-note p {
  max-width: 820px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body .editorial-note h2 {
  margin-bottom: 14px !important;
}

/* Nach dem Textblock folgt der nächste Bereich mit ruhigem, aber nicht übertriebenem Abstand. */
body .editorial-note + .content-section,
body .editorial-note + .content-section.wide {
  margin-top: var(--subpage-flow-gap) !important;
}

body .content-section + .content-section,
body .content-section + .content-section.wide,
body .content-section.wide + .content-section,
body .content-section.wide + .content-section.wide {
  margin-top: var(--subpage-flow-gap) !important;
}

/* Überschriften auf Unterseiten sitzen links bündig zum Bildraster und bekommen identischen Abstand zum Grid. */
body .content-section .section-heading,
body .content-section .section-heading.split,
body .content-section.wide .section-heading,
body .content-section.wide .section-heading.split {
  max-width: 820px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: clamp(18px, 2.2vw, 26px) !important;
}

body .content-section .section-heading.split,
body .content-section.wide .section-heading.split {
  grid-template-columns: 1fr !important;
}

/* Bei nur einer Karte soll sie links im Raster bleiben, nicht wie ein zentrierter Fremdkörper wirken. */
body .section-grid:has(> :only-child),
body .album-grid:has(> :only-child),
body .category-grid:has(> :only-child) {
  justify-content: start !important;
  grid-template-columns: minmax(280px, 430px) !important;
}

@media (max-width: 560px) {
  :root {
    --page-width: min(100vw - 22px, 1220px);
    --subpage-flow-gap: 44px;
    --subpage-mini-gap: 20px;
  }
  body .editorial-note {
    padding: 20px !important;
    border-radius: 24px !important;
  }
}


/* V7.0 Complete layout audit: Startseite bleibt ruhig, Unterseiten bekommen ein einheitliches Raster. */
:root {
  --v7-page-width: min(1220px, calc(100vw - clamp(32px, 8vw, 120px)));
  --v7-section-gap: clamp(46px, 5.2vw, 72px);
  --v7-card-gap: clamp(22px, 3vw, 38px);
  --v7-heading-gap: clamp(18px, 2vw, 28px);
}

/* Alle relevanten Unterseiten-Elemente nutzen dieselbe Außenkante. */
body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero,
body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note,
body.page-category .content-section,
body.page-category .content-section.wide,
body.page-section .content-section,
body.page-section .content-section.wide,
body.page-album .content-section,
body.page-album .content-section.wide {
  width: var(--v7-page-width) !important;
  max-width: var(--v7-page-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Kategorie-Hero: kräftiger Auftakt, aber nicht mit willkürlichen Versätzen. */
body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero {
  margin-top: clamp(34px, 4.8vw, 58px) !important;
  padding: clamp(28px, 4vw, 52px) !important;
  gap: clamp(28px, 4vw, 52px) !important;
}

/* Der Textkasten sitzt jetzt wirklich im gleichen Raster wie Hero, Überschriften und Bilder. */
body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note {
  margin-top: var(--v7-card-gap) !important;
  margin-bottom: 0 !important;
  padding: clamp(22px, 3vw, 36px) !important;
  border-radius: 28px !important;
  display: block !important;
  overflow: hidden !important;
}

body.page-category .editorial-note span,
body.page-section .editorial-note span,
body.page-album .editorial-note span,
body.page-category .editorial-note h2,
body.page-section .editorial-note h2,
body.page-album .editorial-note h2,
body.page-category .editorial-note p,
body.page-section .editorial-note p,
body.page-album .editorial-note p {
  max-width: 840px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.page-category .editorial-note h2,
body.page-section .editorial-note h2,
body.page-album .editorial-note h2 {
  font-size: clamp(2rem, 3.2vw, 3.6rem) !important;
  line-height: .98 !important;
  margin-bottom: 14px !important;
}

body.page-category .editorial-note p,
body.page-section .editorial-note p,
body.page-album .editorial-note p {
  font-size: clamp(1rem, 1.25vw, 1.12rem) !important;
  line-height: 1.7 !important;
}

/* Nach jedem Block folgt der nächste mit gleichem Rhythmus. */
body.page-category .editorial-note + .content-section,
body.page-category .editorial-note + .content-section.wide,
body.page-section .editorial-note + .content-section,
body.page-section .editorial-note + .content-section.wide,
body.page-album .editorial-note + .content-section,
body.page-album .editorial-note + .content-section.wide,
body.page-category .page-hero.category-hero + .content-section,
body.page-section .page-hero.category-hero + .content-section,
body.page-album .page-hero.category-hero + .content-section {
  margin-top: var(--v7-section-gap) !important;
}

body.page-category .content-section + .content-section,
body.page-category .content-section + .content-section.wide,
body.page-category .content-section.wide + .content-section,
body.page-category .content-section.wide + .content-section.wide,
body.page-section .content-section + .content-section,
body.page-section .content-section + .content-section.wide,
body.page-section .content-section.wide + .content-section,
body.page-section .content-section.wide + .content-section.wide,
body.page-album .content-section + .content-section,
body.page-album .content-section + .content-section.wide,
body.page-album .content-section.wide + .content-section,
body.page-album .content-section.wide + .content-section.wide {
  margin-top: var(--v7-section-gap) !important;
}

/* Überschriften, Text und Grid: gleiche linke Kante, kein rechts verlorener Erklärungstext. */
body.page-category .section-heading,
body.page-category .section-heading.split,
body.page-category .section-heading.split.clean-heading,
body.page-section .section-heading,
body.page-section .section-heading.split,
body.page-section .section-heading.split.clean-heading,
body.page-album .section-heading,
body.page-album .section-heading.split,
body.page-album .section-heading.split.clean-heading {
  max-width: 860px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: var(--v7-heading-gap) !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

body.page-category .section-heading p,
body.page-category .section-heading.split p,
body.page-section .section-heading p,
body.page-section .section-heading.split p,
body.page-album .section-heading p,
body.page-album .section-heading.split p {
  max-width: 760px !important;
  margin: 0 !important;
}

/* Bild- und Kartenraster füllen denselben Container, aber einzelne Karten bleiben linksbündig. */
body.page-category .album-grid,
body.page-category .category-grid,
body.page-category .section-grid,
body.page-category .masonry,
body.page-section .album-grid,
body.page-section .category-grid,
body.page-section .section-grid,
body.page-section .masonry,
body.page-album .album-grid,
body.page-album .category-grid,
body.page-album .section-grid,
body.page-album .masonry {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.page-category .album-grid:has(> :only-child),
body.page-category .section-grid:has(> :only-child),
body.page-section .album-grid:has(> :only-child),
body.page-section .section-grid:has(> :only-child) {
  grid-template-columns: minmax(280px, 430px) !important;
  justify-content: start !important;
}

/* Credit-Leiste bleibt dezent und bündig mit dem Bildraster. */
body.page-album .series-credit-bottom,
body.page-album .credit-strip {
  margin-left: 0 !important;
  margin-right: auto !important;
}

@media (max-width: 900px) {
  body.page-category .page-hero.category-hero,
  body.page-section .page-hero.category-hero,
  body.page-album .page-hero.category-hero {
    grid-template-columns: 1fr !important;
  }
  body.page-category .page-hero.category-hero .category-hero-image,
  body.page-section .page-hero.category-hero .category-hero-image,
  body.page-album .page-hero.category-hero .category-hero-image {
    max-width: 100% !important;
    justify-self: stretch !important;
    min-height: 260px !important;
  }
}

@media (max-width: 560px) {
  :root {
    --v7-page-width: min(100vw - 22px, 1220px);
    --v7-section-gap: 44px;
    --v7-card-gap: 20px;
  }
  body.page-category .page-hero.category-hero,
  body.page-section .page-hero.category-hero,
  body.page-album .page-hero.category-hero,
  body.page-category .editorial-note,
  body.page-section .editorial-note,
  body.page-album .editorial-note {
    border-radius: 24px !important;
    padding: 20px !important;
  }
}

/* V7.1 Final QA: subpage alignment + mobile responsive polish
   Goal: Startseite, Unterseiten, Textboxen, Karten und Bildraster folgen einer sauberen Kante. */
:root {
  --qa-page: min(1120px, calc(100vw - clamp(24px, 7vw, 96px)));
  --qa-gap-lg: clamp(42px, 5vw, 68px);
  --qa-gap-md: clamp(24px, 3vw, 38px);
  --qa-gap-sm: clamp(14px, 2vw, 22px);
}

body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero,
body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note,
body.page-category .content-section,
body.page-category .content-section.wide,
body.page-section .content-section,
body.page-section .content-section.wide,
body.page-album .content-section,
body.page-album .content-section.wide {
  width: var(--qa-page) !important;
  max-width: var(--qa-page) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero {
  margin-top: clamp(30px, 4.2vw, 54px) !important;
  margin-bottom: 0 !important;
  padding: clamp(24px, 3.8vw, 46px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 330px) !important;
  gap: clamp(24px, 4vw, 48px) !important;
  align-items: center !important;
}

body.page-category .category-hero-copy,
body.page-section .category-hero-copy,
body.page-album .category-hero-copy {
  max-width: 760px !important;
}

body.page-category .category-hero-copy h1,
body.page-section .category-hero-copy h1,
body.page-album .category-hero-copy h1 {
  max-width: 760px !important;
}

body.page-category .category-hero-copy > p:not(.kicker),
body.page-section .category-hero-copy > p:not(.kicker),
body.page-album .category-hero-copy > p:not(.kicker) {
  max-width: 720px !important;
  line-height: 1.55 !important;
}

body.page-category .category-hero-image,
body.page-section .category-hero-image,
body.page-album .category-hero-image {
  justify-self: end !important;
  width: 100% !important;
  max-width: 330px !important;
  min-height: clamp(270px, 30vw, 430px) !important;
}

body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note {
  margin-top: var(--qa-gap-md) !important;
  margin-bottom: 0 !important;
  padding: clamp(20px, 2.8vw, 34px) !important;
  border-radius: 26px !important;
  display: block !important;
  box-shadow: 0 18px 54px rgba(0,0,0,.14) !important;
}

body.page-category .editorial-note span,
body.page-section .editorial-note span,
body.page-album .editorial-note span,
body.page-category .editorial-note h2,
body.page-section .editorial-note h2,
body.page-album .editorial-note h2,
body.page-category .editorial-note p,
body.page-section .editorial-note p,
body.page-album .editorial-note p {
  max-width: 800px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.page-category .editorial-note h2,
body.page-section .editorial-note h2,
body.page-album .editorial-note h2 {
  font-size: clamp(1.9rem, 3.1vw, 3.35rem) !important;
  margin-bottom: 12px !important;
}

body.page-category .editorial-note + .content-section,
body.page-category .editorial-note + .content-section.wide,
body.page-section .editorial-note + .content-section,
body.page-section .editorial-note + .content-section.wide,
body.page-album .editorial-note + .content-section,
body.page-album .editorial-note + .content-section.wide,
body.page-category .page-hero.category-hero + .content-section,
body.page-section .page-hero.category-hero + .content-section,
body.page-album .page-hero.category-hero + .content-section {
  margin-top: var(--qa-gap-lg) !important;
}

body.page-category .content-section + .content-section,
body.page-category .content-section + .content-section.wide,
body.page-section .content-section + .content-section,
body.page-section .content-section + .content-section.wide,
body.page-album .content-section + .content-section,
body.page-album .content-section + .content-section.wide {
  margin-top: var(--qa-gap-lg) !important;
}

body.page-category .section-heading,
body.page-category .section-heading.split,
body.page-section .section-heading,
body.page-section .section-heading.split,
body.page-album .section-heading,
body.page-album .section-heading.split {
  max-width: 800px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: var(--qa-gap-sm) !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
}

body.page-category .section-heading p,
body.page-category .section-heading.split p,
body.page-section .section-heading p,
body.page-section .section-heading.split p,
body.page-album .section-heading p,
body.page-album .section-heading.split p {
  max-width: 660px !important;
  margin: 0 !important;
  font-size: .95rem !important;
  line-height: 1.55 !important;
}

body.page-category .album-grid:has(> :only-child),
body.page-category .section-grid:has(> :only-child),
body.page-section .album-grid:has(> :only-child),
body.page-section .section-grid:has(> :only-child) {
  grid-template-columns: minmax(280px, 410px) !important;
  justify-content: start !important;
}

@media (max-width: 900px) {
  body.page-category .page-hero.category-hero,
  body.page-section .page-hero.category-hero,
  body.page-album .page-hero.category-hero {
    grid-template-columns: 1fr !important;
  }
  body.page-category .category-hero-image,
  body.page-section .category-hero-image,
  body.page-album .category-hero-image {
    justify-self: stretch !important;
    max-width: 100% !important;
    min-height: 260px !important;
  }
}

@media (max-width: 680px) {
  :root {
    --qa-page: min(100vw - 20px, 1120px);
    --qa-gap-lg: 42px;
    --qa-gap-md: 20px;
    --qa-gap-sm: 16px;
  }
  .site-header {
    width: var(--qa-page) !important;
    margin-top: 10px !important;
    padding: 10px !important;
  }
  .brand-mark { width: 40px !important; height: 40px !important; }
  .brand-copy strong { max-width: 155px !important; font-size: .88rem !important; }
  .brand-copy small { font-size: .72rem !important; }

  body.page-category .page-hero.category-hero,
  body.page-section .page-hero.category-hero,
  body.page-album .page-hero.category-hero,
  body.page-category .editorial-note,
  body.page-section .editorial-note,
  body.page-album .editorial-note {
    border-radius: 22px !important;
    padding: 18px !important;
  }
  body.page-category .category-hero-copy h1,
  body.page-section .category-hero-copy h1,
  body.page-album .category-hero-copy h1 {
    font-size: clamp(2.55rem, 17vw, 4.2rem) !important;
    line-height: .9 !important;
    letter-spacing: -.07em !important;
  }
  body.page-category .category-hero-copy > p:not(.kicker),
  body.page-section .category-hero-copy > p:not(.kicker),
  body.page-album .category-hero-copy > p:not(.kicker) {
    font-size: 1rem !important;
    line-height: 1.5 !important;
  }
  .mini-stats { gap: 8px !important; margin-top: 16px !important; }
  .mini-stats span { min-height: 34px !important; padding: 0 12px !important; font-size: .82rem !important; }
  body.page-category .category-hero-image,
  body.page-section .category-hero-image,
  body.page-album .category-hero-image {
    min-height: 230px !important;
    border-radius: 20px !important;
  }
  body.page-category .editorial-note h2,
  body.page-section .editorial-note h2,
  body.page-album .editorial-note h2,
  body.page-category .section-heading h2,
  body.page-section .section-heading h2,
  body.page-album .section-heading h2 {
    font-size: clamp(2rem, 11vw, 3rem) !important;
    line-height: .95 !important;
  }
  body.page-category .editorial-note p,
  body.page-section .editorial-note p,
  body.page-album .editorial-note p,
  body.page-category .section-heading p,
  body.page-section .section-heading p,
  body.page-album .section-heading p {
    font-size: .95rem !important;
    line-height: 1.55 !important;
  }
  .category-grid,
  .album-grid,
  .section-grid,
  body.page-category .album-grid:has(> :only-child),
  body.page-category .section-grid:has(> :only-child),
  body.page-section .album-grid:has(> :only-child),
  body.page-section .section-grid:has(> :only-child) {
    grid-template-columns: 1fr !important;
  }
  .category-card,
  .album-card,
  .section-card,
  .section-card img {
    min-height: 240px !important;
    border-radius: 22px !important;
  }
  .masonry { columns: 1 !important; }
  .photo-card { border-radius: 18px !important; }
  .credit-strip {
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}


/* V7.2 Subpage same-left-edge fix
   Problem: category/detail URLs used a slightly narrower centered container,
   so ?category=... pages appeared shifted to the right compared with the home page.
   Fix: every major page block uses the same global page width and same left/right edge. */
:root {
  --v72-page: min(var(--max), calc(100vw - 32px));
  --v72-mobile-page: min(100vw - 20px, var(--max));
}

/* Header, home, category, section and album pages now share the same outer grid. */
.site-header,
.hero,
.page-hero,
.page-hero.category-hero,
.content-section,
.content-section.wide,
.wow-section,
.contact-section,
.story-section,
.site-footer,
.editorial-note,
body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero,
body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note,
body.page-category .content-section,
body.page-category .content-section.wide,
body.page-section .content-section,
body.page-section .content-section.wide,
body.page-album .content-section,
body.page-album .content-section.wide {
  width: var(--v72-page) !important;
  max-width: var(--v72-page) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Category hero should no longer feel offset inward. */
body.page-category .page-hero.category-hero,
body.page-section .page-hero.category-hero,
body.page-album .page-hero.category-hero {
  margin-top: clamp(34px, 4.8vw, 58px) !important;
  padding: clamp(28px, 4vw, 52px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 360px) !important;
  gap: clamp(26px, 4vw, 52px) !important;
}

/* Text box under category hero: full grid width, content aligned left. */
body.page-category .editorial-note,
body.page-section .editorial-note,
body.page-album .editorial-note {
  margin-top: clamp(22px, 3vw, 36px) !important;
  padding: clamp(24px, 3vw, 38px) !important;
}

body.page-category .editorial-note span,
body.page-section .editorial-note span,
body.page-album .editorial-note span,
body.page-category .editorial-note h2,
body.page-section .editorial-note h2,
body.page-album .editorial-note h2,
body.page-category .editorial-note p,
body.page-section .editorial-note p,
body.page-album .editorial-note p {
  max-width: 820px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Headings and grids keep the same left edge as the hero and text box. */
body.page-category .section-heading,
body.page-category .section-heading.split,
body.page-section .section-heading,
body.page-section .section-heading.split,
body.page-album .section-heading,
body.page-album .section-heading.split,
body.page-category .album-grid,
body.page-category .category-grid,
body.page-category .section-grid,
body.page-category .masonry,
body.page-section .album-grid,
body.page-section .category-grid,
body.page-section .section-grid,
body.page-section .masonry,
body.page-album .album-grid,
body.page-album .category-grid,
body.page-album .section-grid,
body.page-album .masonry {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* If a category currently has only one visible card, it starts left and does not float to the center. */
body.page-category .album-grid:has(> :only-child),
body.page-category .section-grid:has(> :only-child),
body.page-section .album-grid:has(> :only-child),
body.page-section .section-grid:has(> :only-child) {
  grid-template-columns: minmax(280px, 430px) !important;
  justify-content: start !important;
}

@media (max-width: 900px) {
  body.page-category .page-hero.category-hero,
  body.page-section .page-hero.category-hero,
  body.page-album .page-hero.category-hero {
    grid-template-columns: 1fr !important;
  }
  body.page-category .category-hero-image,
  body.page-section .category-hero-image,
  body.page-album .category-hero-image {
    max-width: 100% !important;
    justify-self: stretch !important;
  }
}

@media (max-width: 680px) {
  :root { --v72-page: var(--v72-mobile-page); }
  .site-header,
  .hero,
  .page-hero,
  .page-hero.category-hero,
  .content-section,
  .content-section.wide,
  .wow-section,
  .contact-section,
  .story-section,
  .site-footer,
  .editorial-note {
    width: var(--v72-page) !important;
    max-width: var(--v72-page) !important;
  }
}


/* V7.3 Portfolio protection + mobile polish */
.protected-image,
.photo-card img,
.hero-frame img,
.category-card img,
.album-card img,
.section-card img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.photo-card {
  cursor: default !important;
}

.photo-card img {
  pointer-events: none;
}

.photo-card figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  right: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
}

.photo-card figcaption span,
.photo-card figcaption:empty {
  display: none !important;
}

.share-btn {
  cursor: pointer;
}

.share-feedback {
  align-self: center;
  min-width: 82px;
  color: rgba(255,255,255,.72);
  font-size: .86rem;
  font-weight: 700;
}

/* Auf Mobil wird Featured Work bewusst kompakt gehalten: weniger Scrollen, schnellerer erster Eindruck. */
@media (max-width: 680px) {
  .home-grid .photo-card:nth-of-type(n+11) {
    display: none !important;
  }
  .hero-actions {
    gap: 10px;
  }
  .share-feedback {
    width: 100%;
    min-width: 0;
  }
}

/* V7.4 rotating series controls */
.series-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-soft) 72%, transparent);
  color: var(--muted);
  font-size: .9rem;
}
.series-controls > div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn.small {
  min-height: auto;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .82rem;
}
@media (max-width: 720px) {
  .series-controls {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .series-controls > div {
    width: 100%;
    justify-content: flex-start;
  }
}


/* V7.8: Missing images should not reserve dark boxes in the layout. */
.photo-card img[data-remove-on-error="1"] { min-height: 0; }

/* V7.9: Portfolio protection polish - no image context menu/drag focus */
img,
.photo-card,
.album-card,
.category-card,
.hero-frame,
.site-logo {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

.photo-card img,
.album-card img,
.category-card img,
.hero-frame img {
  pointer-events: none;
}

/* V8.1: Consistent portfolio image tiles.
   Images of different formats/heights are cropped into calm, equal cards.
   This prevents black gaps and keeps series pages visually aligned. */
.masonry,
.image-grid,
.home-grid {
  columns: initial !important;
  column-gap: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: var(--card-gap, 18px) !important;
  align-items: stretch !important;
}

.photo-card {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  aspect-ratio: 4 / 5 !important;
  min-height: 0 !important;
  background: #111 !important;
}

.photo-card img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.photo-card figcaption {
  display: none !important;
}

/* Landscape images get the same frame, no letterbox. */
.photo-card.is-landscape img,
.photo-card.is-portrait img,
.photo-card.is-square img {
  object-fit: cover !important;
}

@media (max-width: 1100px) {
  .masonry,
  .image-grid,
  .home-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 680px) {
  .masonry,
  .image-grid,
  .home-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .photo-card {
    aspect-ratio: 4 / 5 !important;
    border-radius: 20px !important;
  }
}

/* V8.2: No-crop natural portfolio flow.
   Equal-height cover tiles cut off feet/headroom in portrait images.
   This switches gallery image grids to a masonry-style natural flow so the full image stays visible. */
.masonry,
.image-grid,
.home-grid {
  display: block !important;
  columns: 3 260px !important;
  column-gap: var(--card-gap, 18px) !important;
}

.photo-card {
  display: inline-block !important;
  width: 100% !important;
  margin: 0 0 var(--card-gap, 18px) !important;
  aspect-ratio: auto !important;
  min-height: 0 !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
  background: transparent !important;
}

.photo-card img,
.photo-card.is-landscape img,
.photo-card.is-portrait img,
.photo-card.is-square img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center center !important;
}

@media (max-width: 1100px) {
  .masonry,
  .image-grid,
  .home-grid {
    columns: 2 260px !important;
  }
}

@media (max-width: 680px) {
  .masonry,
  .image-grid,
  .home-grid {
    columns: 1 !important;
    column-gap: 0 !important;
  }
  .photo-card {
    margin-bottom: 14px !important;
    border-radius: 20px !important;
  }
}
