/* St. Johannes-Nachbarschaft – Design-Prototyp
   Palette aus Fahne: Königsblau + Gold, kühles Stein-Grau */

:root {
  --blau-tief: #0a2744;
  --blau: #123a5c;
  --blau-hell: #1e4f78;
  --gold: #b8954a;
  --gold-hell: #d4b56a;
  --stein: #e8edf2;
  --stein-hell: #f4f6f8;
  --weiss: #ffffff;
  --text: #1a2330;
  --text-weich: #4a5564;
  --linie: rgba(10, 39, 68, 0.12);
  --schatten: 0 18px 50px rgba(10, 39, 68, 0.12);
  --radius: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 4.5rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--stein-hell);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blau-hell);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold);
}

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--blau-tief);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: 0.01em;
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  margin: 0 0 0.6rem;
}

h3 {
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ——— Header / Navigation ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linie);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(184, 149, 74, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-size: 1.2rem;
  margin: 0;
  color: var(--blau-tief);
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--text-weich);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linie);
  background: var(--weiss);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--blau-tief);
  transition: 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--blau-tief);
  background: rgba(18, 58, 92, 0.06);
}

.nav .btn-nav {
  margin-left: 0.35rem;
  background: var(--blau-tief);
  color: var(--weiss) !important;
  padding-inline: 1.1rem;
}

.nav .btn-nav:hover {
  background: var(--blau);
  color: var(--weiss) !important;
}

.nav .btn-nav[aria-current="page"] {
  background: var(--blau);
  color: var(--weiss) !important;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--blau-tief);
  color: var(--weiss);
}

.btn-primary:hover {
  background: var(--blau);
  color: var(--weiss);
}

/* Auf blauem Hintergrund (Startseite): Gold beibehalten */
.hero .btn-primary,
.section-dark .btn-primary {
  background: var(--gold);
  color: var(--blau-tief);
}

.hero .btn-primary:hover,
.section-dark .btn-primary:hover {
  background: var(--gold-hell);
  color: var(--blau-tief);
}

.btn-ghost {
  background: transparent;
  color: var(--weiss);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--weiss);
}

.btn-outline {
  background: transparent;
  color: var(--blau-tief);
  border-color: rgba(10, 39, 68, 0.25);
}

.btn-outline:hover {
  border-color: var(--blau-tief);
  color: var(--blau-tief);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: grid;
  align-items: end;
  color: var(--weiss);
  overflow: hidden;
  background: var(--blau-tief);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 39, 68, 0.35) 0%, rgba(10, 39, 68, 0.55) 42%, rgba(10, 39, 68, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 39, 68, 0.45) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 3.5rem;
  max-width: 38rem;
  animation: riseIn 0.9s ease both;
}

.hero .brand-signal {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  margin: 0 0 0.35rem;
  color: var(--weiss);
  text-wrap: balance;
}

.hero .brand-place {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  color: var(--gold-hell);
  margin: 0 0 1.25rem;
  letter-spacing: 0.04em;
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 32rem;
}

.hero-meta {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.06em;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--weiss);
}

.section-dark {
  background:
    radial-gradient(ellipse at top right, rgba(184, 149, 74, 0.18), transparent 45%),
    linear-gradient(160deg, var(--blau-tief), var(--blau));
  color: var(--weiss);
}

.section-dark h2,
.section-dark h3 {
  color: var(--weiss);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.86);
}

.section-head {
  margin-bottom: 4.5rem;
}

.section-head h2 {
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--text-weich);
  font-size: 1.15rem;
  margin: 0;
}

.section-dark .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

.home-history {
  padding-bottom: 2.5rem;
}

.home-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.home-history-copy {
  max-width: 38rem;
}

.home-flag {
  width: 100%;
  max-width: 28rem;
  margin: 0 0 0 auto;
  line-height: 0;
}

.home-flag img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (max-width: 900px) {
  .home-history-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-flag {
    max-width: min(100%, 24rem);
    margin-inline: auto;
  }
}

/* ——— Feature grid ——— */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature {
  padding: 1.6rem 0 0;
  border-top: 2px solid var(--gold);
}

.feature p {
  color: var(--text-weich);
  margin: 0;
}

/* ——— News / Event cards (interaction containers) ——— */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten);
  color: inherit;
}

.news-card figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stein);
}

.news-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover img {
  transform: scale(1.05);
}

.news-card .body {
  padding: 1.25rem 1.3rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card .date {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.news-card p {
  color: var(--text-weich);
  font-size: 1.02rem;
  flex: 1;
}

.news-card .more {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--blau);
  text-decoration: none;
}

/* ——— Ähnliche Beiträge (kompakter als Startseiten-Karten) ——— */
.related-section .related-head {
  margin-bottom: 1.75rem;
}

.related-section .related-head h2 {
  margin-bottom: 0;
  font-size: 1.65rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--weiss);
  border: 1px solid var(--linie);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--schatten);
  color: inherit;
}

.related-card figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stein);
}

.related-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.related-card:hover img {
  transform: scale(1.04);
}

.related-card-body {
  padding: 0.85rem 0.95rem 1rem;
}

.related-card .date {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.related-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--blau-tief);
}

.related-card .hint {
  font-size: 0.88rem;
  color: var(--text-weich);
}

/* ——— Split ——— */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split-media {
  position: relative;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--schatten);
}

.split-media.stacked {
  display: grid;
  gap: 1rem;
}

.split-media.stacked img {
  aspect-ratio: 16 / 10;
}

.media-card {
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: zoom-in;
  overflow: hidden;
  background: var(--weiss);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  box-shadow: none;
  transition: transform 0.45s ease;
}

.media-card:hover img {
  transform: scale(1.03);
}

.media-caption {
  display: block;
  padding: 0.65rem 0.85rem 0.8rem;
  font-size: 0.92rem;
  color: var(--text-weich);
  background: var(--weiss);
}

.split-media .caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-weich);
}

.split.reverse .split-media {
  order: 2;
}

/* ——— Timeline / years ——— */
.year-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--linie);
}

.year-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--linie);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.year-item.has-thumb {
  grid-template-columns: 5.5rem 4.5rem 1fr auto;
}

.year-item:hover {
  background: rgba(18, 58, 92, 0.04);
  padding-left: 0.5rem;
  color: inherit;
}

.year-item .year {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--blau-tief);
}

.year-thumb {
  display: block;
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(18, 58, 92, 0.06);
  border: 1px solid var(--linie);
  box-shadow: var(--schatten);
}

.year-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.year-thumb.is-video::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 39, 68, 0.15), rgba(10, 39, 68, 0.45));
  pointer-events: none;
}

.year-thumb-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8c56a, #c9a227);
  box-shadow: 0 4px 12px rgba(10, 39, 68, 0.35);
  pointer-events: none;
}

.year-thumb-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.38rem 0 0.38rem 0.62rem;
  border-color: transparent transparent transparent #0a2744;
}

.year-item .year-copy {
  min-width: 0;
}

.year-item .label {
  font-weight: 600;
}

.year-item .hint {
  color: var(--text-weich);
  font-size: 0.98rem;
}

.year-item .arrow {
  color: var(--gold);
  font-size: 1.25rem;
}

/* ——— People ——— */
.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.person {
  text-align: left;
}

.person img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1rem;
  background: var(--stein);
}

.person .role {
  font-size: 0.9rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
}

.person .meta {
  color: var(--text-weich);
  font-size: 0.98rem;
  margin: 0;
}

/* ——— Page hero (inner) ——— */
.page-hero {
  background:
    linear-gradient(135deg, var(--blau-tief), var(--blau-hell));
  color: var(--weiss);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 149, 74, 0.25), transparent 40%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
}

.page-hero h1 {
  color: var(--weiss);
  margin: 0 0 0.75rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  margin: 0;
}

/* ——— Prose ——— */
.prose {
  max-width: none;
  width: 100%;
}

.prose p + p {
  margin-top: 1rem;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

.prose li {
  margin-bottom: 0.4rem;
}

.callout {
  border-left: 3px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.25rem;
  margin: 1.75rem 0;
}

.callout strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--blau-tief);
  margin-bottom: 0.25rem;
}

/* ——— Form ——— */
.form-panel {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 2rem;
  max-width: 36rem;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid rgba(10, 39, 68, 0.2);
  border-radius: var(--radius);
  background: var(--stein-hell);
  color: var(--text);
}

.form-group select {
  padding-right: 2.25rem;
}

.form-group textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  font-size: 0.95rem;
  color: var(--text-weich);
  margin-top: 0.75rem;
}

.contact-aside {
  display: grid;
  gap: 1.5rem;
}

.contact-block h3 {
  margin-bottom: 0.5rem;
}

.contact-block p {
  margin: 0;
  color: var(--text-weich);
}

.contact-block a {
  font-weight: 600;
}

/* ——— Footer ——— */
.site-footer {
  background: #071b2f;
  color: rgba(255, 255, 255, 0.78);
  padding: 3rem 0 2rem;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer h3 {
  color: var(--weiss);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-hell);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.footer-legal {
  display: inline-flex;
  gap: 1.25rem;
  margin-left: auto;
}

.footer-legal a {
  white-space: nowrap;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--linie);
  background: var(--weiss);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: var(--radius);
}

.filter-chip:hover,
.filter-chip.is-active {
  background: var(--blau-tief);
  border-color: var(--blau-tief);
  color: var(--weiss);
}

.content-body img {
  margin: 1rem 0;
  border-radius: var(--radius);
}

.content-body a.js-lightbox {
  display: inline-block;
  cursor: zoom-in;
  text-decoration: none;
}

.content-body a.js-lightbox img {
  transition: opacity 0.2s ease;
}

.content-body a.js-lightbox:hover img {
  opacity: 0.92;
}

.content-gallery a.js-lightbox {
  display: block;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 4.5rem 4.25rem 2rem;
}

.lightbox[hidden] {
  display: none !important;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 30, 0.86);
  backdrop-filter: blur(4px);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 100%;
  display: grid;
  place-items: center;
}

.lightbox-figure {
  margin: 0;
  width: 100%;
  max-height: calc(100vh - 6.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  overflow: visible;
}

.lightbox-figure img {
  max-width: min(82vw, 1100px);
  max-height: min(70vh, 740px);
  width: auto;
  height: auto;
  flex: 0 1 auto;
  object-fit: contain;
  image-rendering: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #0a1522;
}

.lightbox-caption {
  margin: 0;
  max-width: min(82vw, 42rem);
  padding: 0 0.75rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.88);
  flex: 0 0 auto;
}

.lightbox-caption[hidden] {
  display: none !important;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  z-index: 3;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.26);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-nav.prev {
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:disabled,
.lightbox-nav[hidden] {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.doc-card {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
  min-height: 8.5rem;
  padding: 1.35rem 1.4rem;
  background: var(--weiss);
  border: 1px solid var(--linie);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--schatten);
  border-color: rgba(10, 39, 68, 0.22);
  color: inherit;
}

.doc-card.is-missing {
  opacity: 0.55;
  pointer-events: none;
}

.doc-icon {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  min-width: 3.2rem;
  height: 3.2rem;
  padding: 0 0.5rem;
  background: var(--blau-tief);
  color: var(--weiss);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.doc-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blau-tief);
}

.doc-desc {
  color: var(--text-weich);
  font-size: 1rem;
  line-height: 1.45;
}

.doc-action {
  margin-top: auto;
  padding-top: 0.85rem;
  font-weight: 600;
  color: var(--blau);
  text-align: right;
  align-self: flex-end;
}

@media (max-width: 780px) {
  .doc-grid {
    grid-template-columns: 1fr;
  }
}

.impressum-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: start;
}

.impressum-grid h2 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.6rem;
}

.impressum-grid h2:first-child {
  margin-top: 0;
}

.impressum-aside {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 1.5rem 1.4rem;
}

.impressum-aside > h2 {
  margin-top: 0;
}

.impressum-person {
  padding: 1rem 0;
  border-bottom: 1px solid var(--linie);
}

.impressum-person:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.impressum-person .role {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.2rem;
}

.impressum-person .name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blau-tief);
  margin: 0 0 0.35rem;
}

.impressum-person p {
  margin: 0.15rem 0;
  color: var(--text-weich);
  font-size: 1rem;
}

/* ——— Datenschutz / Legal ——— */
.legal-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.35fr;
  gap: 2rem;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 5.5rem;
  background:
    linear-gradient(165deg, rgba(18, 58, 92, 0.06), rgba(201, 162, 39, 0.08)),
    var(--weiss);
  border: 1px solid var(--linie);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--schatten);
}

.legal-aside-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
}

.legal-aside h2 {
  margin: 0 0 1rem;
  font-size: 1.55rem;
  color: var(--blau-tief);
}

.legal-aside-list {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  color: var(--text);
}

.legal-aside-list li {
  margin: 0.35rem 0;
}

.legal-aside-note {
  margin: 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--linie);
  font-size: 0.95rem;
  color: var(--text-weich);
}

.legal-aside-note a {
  color: var(--blau);
  font-weight: 600;
}

.legal-main {
  display: grid;
  gap: 1rem;
}

.legal-card {
  background: var(--weiss);
  border: 1px solid var(--linie);
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: var(--schatten);
}

.legal-card h2 {
  margin: 0 0 0.7rem;
  font-size: 1.28rem;
  color: var(--blau-tief);
}

.legal-card p {
  margin: 0 0 0.75rem;
  color: var(--text);
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--blau);
  font-weight: 600;
  word-break: break-word;
}

@media (max-width: 860px) {
  .impressum-grid {
    grid-template-columns: 1fr;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }

  .lightbox {
    padding: 4rem 0.75rem 1.25rem;
  }

  .lightbox-nav.prev {
    left: 0.35rem;
  }

  .lightbox-nav.next {
    right: 0.35rem;
  }

  .lightbox-figure img {
    max-width: min(92vw, 1100px);
  }
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(11rem, 0.85fr);
  gap: 2rem;
  align-items: start;
  margin: 0 0 1.75rem;
}

.content-split-text > :first-child {
  margin-top: 0;
}

.content-split-media {
  position: sticky;
  top: 5.5rem;
  min-width: 0;
}

.content-split-media .content-split-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  max-width: 100%;
}

.content-split-media .content-split-figure.is-landscape {
  width: 100%;
}

.content-split-media .content-split-figure.is-portrait {
  margin-inline: auto;
}

.content-split-media .content-split-figure + .content-split-figure {
  margin-top: 1.1rem;
}

.content-split-media a.js-lightbox {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  text-decoration: none;
}

.content-split-media .is-landscape a.js-lightbox {
  width: 100%;
}

.content-split-media img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
  border-radius: var(--radius);
  box-shadow: var(--schatten);
  background: rgba(10, 39, 68, 0.04);
  object-fit: contain;
  object-position: center top;
}

/* Querformat: Spalte ausfüllen */
.content-split-media .is-landscape img {
  width: 100%;
}

/* Hochformat: natürliche Proportion, nicht in die Breite ziehen */
.content-split-media .is-portrait img {
  width: auto;
  max-width: 100%;
  max-height: min(70vh, 38rem);
}

.content-split-media.stacked {
  display: grid;
  gap: 1.1rem;
}

.content-split-media.stacked .content-split-figure {
  margin: 0;
}

.content-split-media.stacked .content-split-figure.is-portrait {
  margin-inline: auto;
}

.content-split-media.stacked .content-split-figure + .content-split-figure {
  margin-top: 0;
}

.content-split-media figcaption {
  margin: 0.45rem 0 0;
  padding: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--text-weich);
  text-align: left;
  width: 100%;
}

/* Einladungs-Karte (Pergament) */
.content-invite {
  position: relative;
  padding: 1.4rem 1.25rem 1.55rem;
  color: #3b2f1c;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255, 255, 255, 0.4), transparent 50%),
    radial-gradient(ellipse at 80% 90%, rgba(120, 80, 30, 0.12), transparent 45%),
    linear-gradient(155deg, #f6ebd4 0%, #ead6ae 48%, #dfc48f 100%);
  border: 1px solid rgba(184, 149, 74, 0.55);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.4),
    inset 0 0 0 7px rgba(184, 149, 74, 0.12),
    var(--schatten);
  border-radius: 2px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.content-invite-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a6b2e;
  font-weight: 600;
}

.content-invite h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--blau-tief);
  line-height: 1.15;
}

.content-invite-date {
  margin: 0 0 0.2rem;
  font-weight: 600;
  color: #4a3a22;
}

.content-invite-place {
  margin: 0 0 0.9rem;
  color: #5a4a32;
}

.content-invite-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6b2e;
  font-weight: 600;
}

.content-invite ol {
  margin: 0 0 0.95rem;
  padding-left: 1.15rem;
  color: #4a3a22;
}

.content-invite ol li {
  margin: 0.12rem 0;
}

.content-invite-schedule {
  margin: 0 0 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(138, 107, 46, 0.28);
  color: #4a3a22;
}

.content-invite-sign {
  margin: 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(138, 107, 46, 0.28);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blau-tief);
  line-height: 1.25;
}

.content-invite-sign span {
  display: block;
  margin-top: 0.1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: #8a6b2e;
  letter-spacing: 0.04em;
}

.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 0.85rem;
  margin: 1.5rem 0;
}

.content-gallery > figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0;
  border-radius: var(--radius);
  background: rgba(10, 39, 68, 0.04);
}

.content-gallery figcaption {
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.35;
  color: var(--text-weich);
}

@media (max-width: 860px) {
  .content-split {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .content-split-media {
    position: static;
    max-width: 22rem;
  }

  .content-split-media .content-split-figure.is-portrait {
    margin-inline: 0;
  }
}

.content-signoff {
  margin: 2rem 0 0.35rem;
  padding: 1rem 0 0;
  border-top: 1px solid var(--linie);
  max-width: 26rem;
}

.content-body .content-signoff p {
  margin-bottom: 0;
}

.content-signoff-greeting {
  margin: 0 0 0.55rem;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--text-weich);
}

.content-signoff-name {
  margin: 0 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--blau-tief);
  letter-spacing: 0.01em;
}

.content-signoff-meta {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.2;
  color: var(--text-weich);
}

.content-signoff-meta .content-signoff-role,
.content-signoff-meta .content-signoff-org {
  margin: 0;
  display: block;
}

.content-video {
  position: relative;
  width: 100%;
  margin: 1.25rem 0 1.75rem;
  aspect-ratio: 16 / 9;
  background: #0a1624;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--schatten);
}

.content-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.content-body p {
  margin-bottom: 1rem;
}

.content-body p:empty,
.content-body br + br {
  display: none;
}

/* ——— Schöffen-Slider / Scroll-Galerie ——— */
.people-scroll-section {
  background: var(--weiss);
  position: relative;
}

#schoeffenstuhl.section {
  padding-bottom: 4.5rem;
}

.people-scroll-sticky {
  position: sticky;
  /* top wird per JS auf vertikale Mitte gesetzt */
  top: 0;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 4.5rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(184, 149, 74, 0.12), transparent 45%),
    linear-gradient(180deg, var(--stein-hell), var(--weiss) 45%, var(--stein-hell));
}

.people-scroll-intro {
  margin-bottom: 4.5rem;
}

.people-scroll-intro .eyebrow {
  display: inline-block;
}

.people-scroll-intro h2 {
  margin: 0;
}

.people-scroll-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.people-scroll-viewport.is-dragging {
  cursor: grabbing;
}

.people-scroll-viewport.is-dragging * {
  cursor: grabbing;
}

.people-scroll-track {
  display: flex;
  gap: 1.5rem;
  padding-left: max(1.25rem, calc((100vw - var(--max)) / 2));
  /* Extra Luft rechts, damit das letzte Bild nicht am Rand klebt */
  padding-right: max(4.5rem, calc((100vw - var(--max)) / 2 + 3.5rem));
  will-change: transform;
  transition: none;
}

.people-scroll-track::after {
  content: "";
  flex: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.people-slide {
  flex: 0 0 min(88vw, 460px);
  background: var(--weiss);
  border: 1px solid var(--linie);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.people-slide figure {
  margin: 0;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stein);
  pointer-events: none;
}

.people-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Personen sitzen meist rechts im Breitbild */
  object-position: 82% center;
  pointer-events: none;
  -webkit-user-drag: none;
}

.people-slide.is-placeholder figure {
  background: #e8d5a8;
}

.people-slide.is-placeholder img {
  object-fit: cover;
  object-position: center;
}

.people-slide-copy {
  padding: 1.1rem 1.15rem 1.35rem;
}

.people-slide-copy .place {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.people-slide-copy h3 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
}

.people-slide-copy .role {
  color: var(--blau);
  font-weight: 600;
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
}

.people-slide-copy .meta {
  margin: 0;
  color: var(--text-weich);
  font-size: 0.95rem;
  line-height: 1.45;
}

.people-slide-copy .meta a,
.person .meta a {
  color: var(--blau);
  font-weight: 600;
  word-break: break-word;
}

.people-scroll-btn {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--linie);
  background: rgba(255, 255, 255, 0.92);
  color: var(--blau-tief);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: var(--schatten);
}

.people-scroll-btn:hover {
  background: var(--blau-tief);
  color: var(--weiss);
  border-color: var(--blau-tief);
}

.people-scroll-btn.prev { left: 0.75rem; }
.people-scroll-btn.next { right: 0.75rem; }
.people-scroll-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.people-scroll-btn:disabled:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--blau-tief);
  border-color: var(--linie);
}

.people-scroll-progress {
  margin-top: 1rem;
}

.people-scroll-bar {
  height: 3px;
  background: rgba(10, 39, 68, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.people-scroll-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 0.05s linear;
}

@media (min-width: 900px) {
  .people-slide {
    flex-basis: min(44vw, 520px);
  }
}

@media (max-width: 780px) {
  .people-scroll-sticky {
    position: relative;
    top: auto !important;
    min-height: 0;
    padding: 3.25rem 0;
  }

  .people-scroll-viewport {
    cursor: default;
    touch-action: pan-x pan-y;
  }

  .people-scroll-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    padding-bottom: 0.5rem;
    padding-right: max(3rem, 12vw);
    -webkit-overflow-scrolling: touch;
  }

  .people-slide {
    scroll-snap-align: start;
    flex-basis: min(86vw, 400px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .people-scroll-section.is-scroll-driven {
    height: auto !important;
  }

  .people-scroll-sticky {
    position: relative;
  }

  .people-scroll-track {
    transform: none !important;
    overflow-x: auto;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--weiss);
  margin: 0 0 0.5rem;
}

/* ——— Reveal animation ——— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.08) translateY(-1.5%);
  }
}

/* ——— Responsive ——— */
@media (max-width: 960px) {
  .feature-grid,
  .news-grid,
  .related-grid,
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .split.reverse .split-media {
    order: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--weiss);
    border-bottom: 1px solid var(--linie);
    padding: 0.75rem;
    box-shadow: var(--schatten);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.95rem 1rem;
    font-size: 1.1rem;
  }

  .nav .btn-nav {
    margin: 0.5rem 0 0;
    text-align: center;
    justify-content: center;
  }

  .feature-grid,
  .news-grid,
  .related-grid,
  .people-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
  }

  .footer-legal {
    margin-left: 0;
    justify-content: center;
  }

  .year-item {
    grid-template-columns: 4rem 1fr;
  }

  .year-item.has-thumb {
    grid-template-columns: 4rem 3.5rem 1fr;
  }

  .year-thumb {
    width: 3.5rem;
    height: 3.5rem;
  }

  .year-item .arrow {
    display: none;
  }

  .hero {
    min-height: min(88vh, 680px);
  }

  .section {
    padding: 3.25rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
