:root {
  --header-bg: rgba(255, 255, 255, 0.96);
  --header-border: rgba(21, 75, 42, 0.12);
  --text: #17472d;
  --muted: rgba(23, 71, 45, 0.72);
  --page-bg: #f3f5f8;
  --section-bg: #ffffff;
  --section-alt-bg: #e5efe7;
  --accent: #c9a66b;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  --header-height: 172px;
  /* tatsächlich gemessene Header-Höhe, per JS gesetzt */
  --header-offset: 172px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #eef2f7 0%, var(--page-bg) 100%);
  color: #1f2937;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: var(--header-height);
  padding: 1.1rem 1.5rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--header-bg);
  color: var(--text);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  padding-top: 0.15rem;
  margin-left: 0.75rem;
}

.brand-link {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-radius: 6px;
}

.brand-link:hover,
.brand-link:focus,
.brand-link:focus-visible {
  outline: none;
}

.brand-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin-left: 0.95rem;
  padding: 0 0 0 1rem;
  border: 0;
  border-left: 1px solid rgba(21, 75, 42, 0.18);
  background: transparent;
  cursor: pointer;
  text-align: left;
  line-height: 1.05;
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.brand-title:hover,
.brand-title:focus,
.brand-title:focus-visible {
  outline: none;
}

.brand-title:hover .brand-title__name {
  color: #0f3a23;
}

.brand-title:hover .brand-title__place {
  color: #a8763c;
}

.brand-title__name,
.brand-title__place {
  transition: color 0.2s ease;
}

.brand-title__name {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

.brand-title__place {
  margin-top: 0.28rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b5e2f;
}

.brand-logo-crop {
  display: block;
  overflow: hidden;
  width: 156px;
  height: 88px;
}

.brand-logo {
  height: 88px;
  width: auto;
  max-width: none;
  display: block;
}

.header-art {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 300px;
  padding: 0 0.75rem 0 0.25rem;
}

.header-art img {
  display: block;
  width: min(100%, 1100px);
  max-height: 150px;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.9) contrast(1.02);
  opacity: 0.92;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.55rem 1.05rem;
  flex: 0 1 auto;
  max-width: 420px;
}

.main-nav a {
  white-space: nowrap;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.15rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  border-color: var(--accent);
  color: #0f3a23;
}

.page-content {
  padding-top: var(--header-offset);
}

/* --- Hero-Video --- */
.hero-video {
  position: relative;
  z-index: 0;
  height: calc(100vh - var(--header-offset));
  margin: 0;
}

.page-content > section.hero-video {
  background: transparent;
}

.page-content > section:not(.hero-video) {
  position: relative;
  z-index: 1;
}

.hero-video__media {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-offset));
  object-fit: cover;
  z-index: 0;
  will-change: opacity;
}

.hero-video__title {
  position: fixed;
  top: calc(var(--header-offset) + clamp(1.4rem, 4vh, 3rem));
  left: clamp(1.25rem, 3.5vw, 3.25rem);
  z-index: 1;
  margin: 0;
  max-width: min(18ch, 70vw);
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.25rem, 2.1vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: 0.07em;
  color: #f7efdb;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.55);
  will-change: opacity;
}

.hero-video__title::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 2px;
  margin-top: 0.7rem;
  background: linear-gradient(90deg, rgba(236, 212, 154, 0.95), rgba(236, 212, 154, 0));
}

.hero,
.content-section {
  width: 100%;
  margin: 0;
}

.visit-section {
  background: var(--section-bg);
}

.intro-collage {
  width: min(1440px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.5rem 1rem 4rem;
}

/* --- Motto / Napoleonisches Thema --- */
.collage-motto {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 0 auto 3.25rem;
  max-width: 900px;
}

.collage-motto__rule {
  flex: 1 1 auto;
  height: 1px;
  max-width: 240px;
  background: linear-gradient(90deg, transparent, rgba(180, 138, 74, 0.9));
}

.collage-motto__rule:last-child {
  background: linear-gradient(90deg, rgba(180, 138, 74, 0.9), transparent);
}

.collage-motto__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  white-space: nowrap;
}

.collage-motto__year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #8b5e2f;
  padding-left: 0.4em;
}

.collage-motto__latin {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  letter-spacing: 0.02em;
  color: #1e2f21;
}

/* --- Bildergalerie --- */
.collage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.4rem, 3vw, 3rem);
}

.collage-frame {
  --lift: 0rem;
  position: relative;
  margin: 0;
  opacity: 0;
  transform: translateY(var(--lift));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  animation: collage-fade 0.9s ease forwards;
}

.collage-frame__inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0f1a12;
  box-shadow:
    0 0 0 4px #16241a,
    0 0 0 5px rgba(190, 148, 84, 0.95),
    0 0 0 11px #16241a,
    0 28px 55px -20px rgba(15, 26, 18, 0.55),
    0 10px 22px -14px rgba(15, 26, 18, 0.4);
  transition: box-shadow 0.55s ease;
  animation: frame-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.collage-frame__inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(1.05);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
}

.collage-frame__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(234, 216, 184, 0.3);
  background: radial-gradient(ellipse at 50% 40%, transparent 58%, rgba(10, 18, 12, 0.32) 100%);
  transition: opacity 0.55s ease;
}

.collage-frame figcaption {
  width: fit-content;
  margin: 1.15rem auto 0;
  padding: 0.28rem 1.15rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3a2c14;
  background: linear-gradient(180deg, #ecd49a 0%, #cba764 46%, #a9823f 100%);
  border: 1px solid rgba(90, 64, 26, 0.55);
  border-radius: 2px;
  box-shadow:
    0 2px 7px rgba(60, 42, 16, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.collage-frame:hover {
  transform: translateY(calc(var(--lift) - 12px));
  z-index: 3;
}

.collage-frame:hover .collage-frame__inner {
  box-shadow:
    0 0 0 4px #16241a,
    0 0 0 5px rgba(214, 172, 98, 1),
    0 0 0 11px #16241a,
    0 0 0 13px rgba(201, 166, 107, 0.28),
    0 42px 72px -20px rgba(15, 26, 18, 0.6),
    0 18px 32px -14px rgba(15, 26, 18, 0.45);
}

.collage-frame:hover .collage-frame__inner img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.03);
}

.collage-frame:hover .collage-frame__inner::after {
  opacity: 0.5;
}

.collage-frame--two {
  --lift: -1.75rem;
}

.collage-frame--one .collage-frame__inner {
  animation-delay: 0.08s;
}

.collage-frame--two .collage-frame__inner {
  animation-delay: 0.22s;
}

.collage-frame--three .collage-frame__inner {
  animation-delay: 0.36s;
}

@keyframes collage-fade {
  to {
    opacity: 1;
  }
}

@keyframes frame-rise {
  from {
    opacity: 0;
    transform: translateY(2.2rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.section-shell {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4rem 0 3.25rem;
  background: transparent;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: #8b5e2f;
  font-weight: 700;
}

.hero h1,
.content-section h2,
.visit-heading {
  margin: 0 0 1rem;
  line-height: 1.1;
}

.section-shell h1 {
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  max-width: 14ch;
}

.section-intro,
.content-section p {
  margin: 0;
  max-width: 72ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4b5563;
}

/* Hintergruende bewusst per Klasse statt per nth-of-type: so verrutscht
   nichts, wenn eine Rubrik dazukommt oder wegfaellt. */
.page-content > section {
  background: var(--section-bg);
}

.page-content > section.has-leaf-bg {
  background: #d6e6d8;
  position: relative;
  overflow: hidden;
}

.page-content > section.has-leaf-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(214, 230, 216, 0.58), rgba(214, 230, 216, 0.48)),
    url("bg-laub.jpg");
  background-repeat: no-repeat, no-repeat;
  background-position: center, center center;
  /* Das Bild am Viewport ausrichten statt an der Sektion: sonst wird es in
     sehr hohen Sektionen (Zeitepochen ist ~13000px) extrem hochskaliert. */
  background-attachment: scroll, fixed;
  background-size: cover, cover;
  opacity: 0.42;
  pointer-events: none;
}

/* Touch-Geräte unterstützen background-attachment: fixed nur unzuverlässig */
@media (hover: none), (max-width: 900px) {
  .page-content > section.has-leaf-bg::before {
    background-attachment: scroll, scroll;
    background-repeat: no-repeat, repeat-y;
    background-size: cover, 100% auto;
  }
}

.page-content > section.has-leaf-bg > * {
  position: relative;
  z-index: 1;
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: none;
  width: 50px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: var(--accent);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.scroll-to-top.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top:hover {
  background: #b39556;
  transform: translateY(-2px);
}

.content-section {
  padding: 2.5rem 0;
}

.visit-section .section-shell > * {
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.visit-section .section-shell > .section-intro,
.visit-section .section-shell > .visit-contact,
.visit-section .section-shell > .visit-panel,
.visit-section .section-shell > .visit-form-panel {
  width: 100%;
}

.visit-contact {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.65);
  color: #17472d;
  font-weight: 700;
}

.visit-panel,
.visit-form-panel {
  margin-top: 1rem;
}

.visit-panel {
  padding: 1.4rem 1.5rem;
}

.visit-panel--text h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

.visit-rules {
  background: #f7faf8;
}

.visit-map {
  background: #edf4ee;
}

.visit-map iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 18px;
  margin-top: 0.75rem;
}

.section-label {
  margin: 0 0 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  color: #46704e;
  font-weight: 700;
}

.visit-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

.visit-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 700;
  color: #17472d;
}

.visit-form input,
.visit-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 71, 45, 0.2);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.95);
}

.visit-form textarea {
  resize: vertical;
  min-height: 140px;
}

.visit-form button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  background: #2f6b45;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.visit-form button:hover {
  background: #245536;
}

.content-section > * {
  width: min(1100px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.content-section h2,
.visit-heading {
  font-size: clamp(2.55rem, 4vw, 4.1rem);
  line-height: 1.05;
  text-align: left;
  max-width: none;
}

.content-section p {
  max-width: 72ch;
}

.content-section .eyebrow {
  font-size: 0.92rem;
}

.visit-heading {
  color: #1f2937;
}

.visit-intro {
  margin-top: 1.5rem;
  margin-bottom: 1.25rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  line-height: 1.45;
  font-weight: 700;
  color: #1f2937;
}

.content-section--portrait h2 {
  max-width: none;
}

/* --- Grosse Bildschirme / Vollbild: alles nebeneinander, Bild gross --- */
@media (min-width: 1600px) {
  :root {
    --header-height: 215px;
  }

  .site-header {
    padding: 1.1rem 2.5rem 0.95rem;
    gap: 2rem;
  }

  .main-nav {
    flex-wrap: nowrap;
    max-width: none;
    gap: 1.1rem;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .header-art {
    flex: 1 1 auto;
    min-width: 340px;
    padding: 0 0.5rem;
  }

  .header-art img {
    width: 100%;
    max-height: 215px;
  }
}

@media (min-width: 1900px) {
  .main-nav a {
    font-size: 1.08rem;
  }
}

@media (max-width: 1599px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.85rem;
  }

  .brand {
    min-width: 0;
    padding-top: 0;
    margin-left: 0;
  }

  .header-art {
    order: 3;
    padding: 0;
    min-width: 0;
  }

  .header-art img {
    width: 100%;
    max-height: 120px;
  }

  .main-nav {
    justify-content: flex-start;
    max-width: none;
    gap: 0.5rem 1.15rem;
  }
}

/* Sehr schmale Fenster: Mittelbild ausblenden, Platz für Logo + Titel + Navigation */
@media (max-width: 700px) {
  .header-art {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  .brand-logo-crop {
    width: 124px;
    height: 70px;
  }

  .brand-logo {
    height: 70px;
  }

  .brand-title__name {
    font-size: 1.2rem;
  }

  .brand-title__place {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
  }

  .intro-collage {
    padding: 2.5rem 0;
  }

  .collage-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
    gap: 2rem;
  }

  .collage-frame--two {
    --lift: 0rem;
  }

  .main-nav {
    gap: 0.45rem 0.9rem;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero-inner {
    width: min(1100px, calc(100% - 2rem));
    padding: 3rem 0 2.5rem;
  }

  .visit-map iframe {
    min-height: 280px;
  }

  .content-section {
    padding: 2rem 0;
  }

  .content-section h2,
  .section-shell h1 {
    max-width: 100%;
  }
}

/* ===================== Bildergalerie ===================== */
.page-content > section[id] {
  scroll-margin-top: var(--header-offset);
}

.gallery-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(3rem, 5vw, 5.5rem) clamp(1rem, 2.5vw, 3rem);
}

.gallery-head {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.gallery-intro {
  margin: 1.2rem 0 0;
  max-width: 72ch;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #4b5563;
}

.gallery-grid {
  column-count: 3;
  column-gap: clamp(1rem, 1.6vw, 2rem);
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
}

@media (min-width: 2400px) {
  .gallery-grid {
    column-count: 4;
  }
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #0f1a12;
  overflow: hidden;
  cursor: pointer;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(30px);
  box-shadow:
    0 0 0 1px rgba(190, 148, 84, 0.5),
    0 20px 40px -20px rgba(0, 0, 0, 0.7);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.gallery-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.95) contrast(1.03);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.5s ease;
}

.gallery-item__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 16, 10, 0.6), transparent 48%);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.gallery-item__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 300 1.7rem/1 Georgia, "Times New Roman", serif;
  color: #17472d;
  background: linear-gradient(180deg, #ecd49a 0%, #cba764 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-item.is-visible:hover,
.gallery-item.is-visible:focus-visible {
  transform: translateY(-7px);
  box-shadow:
    0 0 0 1px rgba(214, 172, 98, 1),
    0 0 0 5px rgba(201, 166, 107, 0.2),
    0 34px 60px -22px rgba(0, 0, 0, 0.8);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1.08) contrast(1.02);
}

.gallery-item:hover .gallery-item__glow,
.gallery-item:focus-visible .gallery-item__glow {
  opacity: 1;
}

.gallery-item:hover .gallery-item__zoom,
.gallery-item:focus-visible .gallery-item__zoom {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(8, 14, 10, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
  max-width: 100%;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(1500px, 90vw);
  max-height: 80vh;
  object-fit: contain;
  box-shadow:
    0 0 0 1px rgba(190, 148, 84, 0.6),
    0 40px 80px -30px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 0.4s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox__img {
  opacity: 1;
  transform: scale(1);
}

.lightbox__caption {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #d8c08a;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 166, 107, 0.45);
  border-radius: 50%;
  background: rgba(22, 36, 26, 0.75);
  color: #f0e3c4;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.lightbox__close {
  top: 1.2rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox__nav {
  top: 50%;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  font-size: 2.1rem;
  line-height: 1;
  padding-bottom: 4px;
}

.lightbox__nav--prev {
  left: 1.2rem;
}

.lightbox__nav--next {
  right: 1.2rem;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(201, 166, 107, 0.9);
  border-color: rgba(236, 212, 154, 1);
  color: #16241a;
  transform: scale(1.08);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .gallery-grid {
    column-count: 2;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    column-count: 1;
    column-gap: 0;
  }

  .gallery-shell {
    padding: 3rem 0;
  }

  .lightbox__nav {
    width: 46px;
    height: 46px;
    margin-top: -23px;
    font-size: 1.7rem;
  }

  .lightbox__nav--prev {
    left: 0.5rem;
  }

  .lightbox__nav--next {
    right: 0.5rem;
  }
}

/* ===================== Zeitepochen ===================== */
.epoch-index {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.75rem 0 0;
}

.epoch-index a {
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(23, 71, 45, 0.25);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  color: #17472d;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.epoch-index a:hover,
.epoch-index a:focus-visible {
  background: #2f6b45;
  border-color: #2f6b45;
  color: #ffffff;
}

.epoch {
  margin-top: clamp(1.75rem, 2.8vw, 2.5rem);
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--accent);
  box-shadow: 0 14px 34px -24px rgba(15, 26, 18, 0.5);
  scroll-margin-top: calc(var(--header-offset) + 1.5rem);
}

.epoch__title {
  margin: 0;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.15;
  color: #17472d;
  font-family: Georgia, "Times New Roman", serif;
}

.epoch__period {
  margin: 0.4rem 0 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b5e2f;
}

.epoch__subtitle {
  margin: 2rem 0 0.9rem;
  font-size: clamp(1.15rem, 1.7vw, 1.4rem);
  color: #17472d;
  font-family: Georgia, "Times New Roman", serif;
}

.epoch p {
  margin: 0 0 1.1rem;
  max-width: 72ch;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #4b5563;
}

.epoch__tools {
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

.epoch-timeline {
  margin: 1.75rem 0;
  padding: 0;
  list-style: none;
  max-width: 72ch;
}

.epoch-timeline li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(23, 71, 45, 0.14);
}

.epoch-timeline li:last-child {
  border-bottom: 1px solid rgba(23, 71, 45, 0.14);
}

.epoch-timeline__year {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #8b5e2f;
  line-height: 1.5;
}

.epoch-timeline__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

.epoch__media {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: clamp(0.9rem, 1.5vw, 1.5rem);
  margin-top: 1.9rem;
}

.epoch-figure {
  margin: 0;
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.epoch-figure.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.epoch-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 330px;
  border-radius: 2px;
  box-shadow:
    0 0 0 1px rgba(190, 148, 84, 0.6),
    0 16px 32px -18px rgba(15, 26, 18, 0.55);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.epoch-figure:hover img {
  transform: translateY(-5px);
  box-shadow:
    0 0 0 1px rgba(214, 172, 98, 1),
    0 24px 44px -18px rgba(15, 26, 18, 0.65);
}

@media (max-width: 700px) {
  .epoch-timeline li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .epoch-figure img {
    max-height: 260px;
  }
}

/* ===================== Vorstand ===================== */
.board-intro {
  margin-top: 1.1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #17472d;
  font-family: Georgia, "Times New Roman", serif;
}

.board-table {
  width: 100%;
  max-width: 900px;
  margin-top: 1.9rem;
  border-collapse: collapse;
  font-size: 1.02rem;
}

.board-table thead th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8b5e2f;
  border-bottom: 2px solid rgba(201, 166, 107, 0.75);
  white-space: nowrap;
}

.board-table tbody tr {
  border-bottom: 1px solid rgba(23, 71, 45, 0.14);
  transition: background-color 0.2s ease;
}

.board-table tbody tr:hover {
  background: rgba(201, 166, 107, 0.09);
}

.board-table tbody th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #17472d;
  white-space: nowrap;
}

.board-table td {
  padding: 0.85rem 1rem;
  color: #4b5563;
  vertical-align: top;
}

.board-table a {
  color: #2f6b45;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 69, 0.35);
  white-space: nowrap;
}

.board-table a:hover {
  color: #17472d;
  border-bottom-color: var(--accent);
}

@media (max-width: 760px) {
  .board-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .board-table,
  .board-table tbody,
  .board-table tr,
  .board-table th,
  .board-table td {
    display: block;
    width: 100%;
  }

  .board-table tbody tr {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(23, 71, 45, 0.16);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.72);
  }

  .board-table tbody th {
    padding: 0 0 0.35rem;
    font-size: 1.05rem;
  }

  .board-table td {
    padding: 0.2rem 0;
  }

  .board-table td:empty {
    display: none;
  }

  .board-table td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
    color: #17472d;
  }
}

/* ===================== PDF Download + Formulare ===================== */
.download-card {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  max-width: 900px;
  margin-top: 2rem;
  padding: clamp(1.1rem, 2vw, 1.6rem);
  border: 1px solid rgba(23, 71, 45, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 12px 28px -22px rgba(15, 26, 18, 0.55);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px -22px rgba(15, 26, 18, 0.65);
}

.download-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 72px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2f6b45, #17472d);
  color: #f4ead3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.download-card__body {
  flex: 1 1 auto;
  display: block;
}

.download-card__title {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  color: #17472d;
}

.download-card__text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #4b5563;
}

.download-card__action {
  flex: 0 0 auto;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  background: #2f6b45;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.download-card:hover .download-card__action {
  background: #17472d;
}

.brochure {
  max-width: 72ch;
  margin-top: 3rem;
  padding: 1.3rem 1.5rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
}

.brochure h3 {
  margin: 0 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  color: #17472d;
}

.brochure p {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4b5563;
}

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

.rk-form {
  max-width: 900px;
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 2.5vw, 2.25rem);
  border: 1px solid rgba(23, 71, 45, 0.16);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 14px 34px -26px rgba(15, 26, 18, 0.5);
}

.rk-form__title {
  margin: 0 0 1.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  color: #17472d;
}

.rk-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.2rem;
}

.rk-field {
  display: grid;
  gap: 0.4rem;
}

.rk-field--wide,
.rk-field--full {
  grid-column: 1 / -1;
}

.rk-field--full {
  margin-top: 1.2rem;
}

.rk-field__label {
  font-weight: 700;
  font-size: 0.95rem;
  color: #17472d;
}

.rk-field input,
.rk-field select,
.rk-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(23, 71, 45, 0.22);
  border-radius: 8px;
  font: inherit;
  color: #1f2937;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rk-field textarea {
  resize: vertical;
  min-height: 120px;
}

.rk-field input:focus,
.rk-field select:focus,
.rk-field textarea:focus {
  outline: none;
  border-color: #2f6b45;
  box-shadow: 0 0 0 3px rgba(47, 107, 69, 0.15);
}

.rk-field input.is-invalid,
.rk-field select.is-invalid,
.rk-field textarea.is-invalid {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}

.rk-choices {
  margin: 1.5rem 0 0;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(23, 71, 45, 0.18);
  border-radius: 8px;
  background: rgba(237, 244, 238, 0.6);
}

.rk-choices legend {
  padding: 0 0.5rem;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #17472d;
}

.rk-choices label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
  cursor: pointer;
  color: #3c4752;
}

.rk-choices input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #2f6b45;
  flex: 0 0 auto;
}

.rk-choices.is-invalid {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}

.robot-check {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(23, 71, 45, 0.2);
  border-radius: 8px;
  background: #f7faf8;
}

.robot-check.is-invalid {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}

.robot-check__confirm {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  color: #17472d;
  cursor: pointer;
}

.robot-check__confirm input {
  width: 1.4rem;
  height: 1.4rem;
  accent-color: #2f6b45;
}

.robot-check__quiz {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #3c4752;
  cursor: pointer;
}

.robot-check__quiz input {
  width: 6.5rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid rgba(23, 71, 45, 0.22);
  border-radius: 8px;
  font: inherit;
}

.rk-form button[type="submit"] {
  margin-top: 1.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.6rem;
  background: #2f6b45;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.rk-form button[type="submit"]:hover {
  background: #17472d;
}

.rk-form__status {
  margin: 1rem 0 0;
  font-weight: 700;
  font-size: 0.98rem;
}

.rk-form__status.is-error {
  color: #b4452f;
}

.rk-form__status.is-ok {
  color: #2f6b45;
}

@media (max-width: 700px) {
  .rk-form__grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    flex-wrap: wrap;
  }

  .download-card__action {
    width: 100%;
    text-align: center;
  }
}

/* ===================== Intranet ===================== */
.intranet-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #eef2f7 0%, var(--page-bg) 100%);
}

.intranet-header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow);
}

.intranet-header__brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.intranet-header__back {
  color: #2f6b45;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 69, 0.35);
  white-space: nowrap;
}

.intranet-header__back:hover {
  color: #17472d;
  border-bottom-color: var(--accent);
}

.intranet-main {
  flex: 1 0 auto;
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 0;
}

.intranet-login {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border: 1px solid rgba(23, 71, 45, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 18px 44px -28px rgba(15, 26, 18, 0.5);
}

.intranet-login h1 {
  margin: 0 0 0.6rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.05em;
  color: #17472d;
}

.intranet-login__hint {
  margin: 0 0 1.75rem;
  color: #4b5563;
  line-height: 1.6;
}

.intranet-login__form {
  display: grid;
  gap: 0.5rem;
}

.intranet-login__form label {
  font-weight: 700;
  color: #17472d;
}

.intranet-login__form input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(23, 71, 45, 0.22);
  border-radius: 8px;
  font: inherit;
}

.intranet-login__form input:focus {
  outline: none;
  border-color: #2f6b45;
  box-shadow: 0 0 0 3px rgba(47, 107, 69, 0.15);
}

.intranet-login__form button {
  justify-self: start;
  margin-top: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: #2f6b45;
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.intranet-login__form button:hover:not(:disabled) {
  background: #17472d;
}

.intranet-login__form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.intranet-login__status {
  margin: 0.9rem 0 0;
  min-height: 1.2em;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4b5563;
}

.intranet-login__status.is-error {
  color: #b4452f;
}

.intranet-login__status.is-busy {
  color: #2f6b45;
}

.intranet-content__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  color: #17472d;
}

.intranet-content__bar button {
  padding: 0.5rem 1.1rem;
  border: 1px solid rgba(23, 71, 45, 0.25);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #2f6b45;
  cursor: pointer;
}

.intranet-content__bar button:hover {
  background: #2f6b45;
  color: #ffffff;
}

.intranet-content__body h2 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: #17472d;
}

.intranet-lead {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
}

.intranet-block {
  margin-bottom: 1.25rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid rgba(23, 71, 45, 0.14);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 28px -26px rgba(15, 26, 18, 0.5);
}

.intranet-block h3 {
  margin: 0 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  color: #17472d;
}

.intranet-block p,
.intranet-block li {
  color: #4b5563;
  line-height: 1.65;
}

.intranet-block p {
  margin: 0 0 0.5rem;
}

.intranet-block ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ===================== Footer ===================== */
.site-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 1;
  background: #16241a;
  color: rgba(238, 227, 201, 0.85);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.6rem 0;
}

.site-footer__name {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.site-footer__intranet {
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(201, 166, 107, 0.55);
  border-radius: 999px;
  color: #ecd49a;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.site-footer__intranet:hover {
  background: #ecd49a;
  color: #16241a;
}

/* ===================== Intranet-Dashboard ===================== */
.intranet-header__logo {
  display: inline-flex;
  text-decoration: none;
}

.intranet-header__logout {
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(23, 71, 45, 0.25);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #2f6b45;
  cursor: pointer;
}

.intranet-header__logout:hover {
  background: #2f6b45;
  color: #ffffff;
}

.intranet-main {
  width: min(1000px, calc(100% - 2rem));
}

.intranet-who {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b5e2f;
}

.intranet-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.intranet-stat {
  padding: 1.1rem 1.3rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  background: #ffffff;
  box-shadow: 0 12px 28px -26px rgba(15, 26, 18, 0.5);
}

.intranet-stat--wide {
  grid-column: span 2;
}

.intranet-stat__value {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.1;
  color: #17472d;
}

.intranet-stat__value--small {
  font-size: 1.15rem;
  line-height: 1.5;
}

.intranet-stat__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.intranet-panel {
  margin-bottom: 2.5rem;
}

.intranet-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.7rem;
  margin-bottom: 1.1rem;
  border-bottom: 2px solid rgba(201, 166, 107, 0.7);
}

.intranet-panel__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  color: #17472d;
}

.intranet-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
  cursor: pointer;
}

.intranet-toggle input {
  width: 1rem;
  height: 1rem;
  accent-color: #2f6b45;
}

.intranet-entry {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(23, 71, 45, 0.14);
  border-left: 4px solid #2f6b45;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 10px 26px -26px rgba(15, 26, 18, 0.5);
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.intranet-entry.is-done {
  opacity: 0.55;
  border-left-color: rgba(23, 71, 45, 0.25);
}

.intranet-entry.is-done .intranet-entry__top h3 {
  text-decoration: line-through;
}

.intranet-entry__check {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  padding-top: 0.15rem;
  cursor: pointer;
}

.intranet-entry__check input {
  width: 1.3rem;
  height: 1.3rem;
  accent-color: #2f6b45;
  cursor: pointer;
}

.intranet-entry__main {
  flex: 1 1 auto;
  min-width: 0;
}

.intranet-entry__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.intranet-entry__top h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  color: #17472d;
}

.intranet-entry__date {
  font-size: 0.88rem;
  font-weight: 700;
  color: #8b5e2f;
  white-space: nowrap;
}

.intranet-entry__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
  margin: 0.6rem 0 0;
}

.intranet-entry__pair {
  display: flex;
  gap: 0.4rem;
  font-size: 0.93rem;
}

.intranet-entry__pair dt {
  font-weight: 700;
  color: #17472d;
}

.intranet-entry__pair dd {
  margin: 0;
  color: #4b5563;
}

.intranet-entry__note {
  margin: 0.6rem 0 0;
  padding-left: 0.8rem;
  border-left: 2px solid rgba(201, 166, 107, 0.6);
  font-size: 0.93rem;
  line-height: 1.55;
  color: #4b5563;
}

.intranet-empty {
  margin: 0;
  padding: 1.1rem 1.25rem;
  border: 1px dashed rgba(23, 71, 45, 0.25);
  border-radius: 4px;
  color: #4b5563;
}

.intranet-content__body {
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .intranet-stat--wide {
    grid-column: span 1;
  }

  .intranet-entry__details {
    gap: 0.25rem 1rem;
  }
}

/* ===================== News in Portrait ===================== */
.news {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 2.6vw, 2.25rem);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px -26px rgba(15, 26, 18, 0.5);
}

.news__head {
  padding-bottom: 0.8rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid rgba(23, 71, 45, 0.16);
}

.news__head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #17472d;
}

.news__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8b5e2f;
}

.news__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.news__item {
  display: flex;
  gap: clamp(0.9rem, 2vw, 1.5rem);
  padding: 1.1rem 0;
  border-top: 1px solid rgba(23, 71, 45, 0.12);
}

.news__item:first-child {
  border-top: 0;
  padding-top: 0;
}

.news__date {
  flex: 0 0 auto;
  display: grid;
  place-content: center;
  width: 64px;
  height: 68px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2f6b45, #17472d);
  color: #f4ead3;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.1;
}

.news__day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
}

.news__month {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news__year {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  color: rgba(244, 234, 211, 0.7);
}

.news__body h4 {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  color: #17472d;
}

.news__body p {
  margin: 0;
  max-width: 62ch;
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

/* ===================== Hamburger-Menue (mobil) ===================== */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(23, 71, 45, 0.22);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  border-radius: 2px;
  background: #17472d;
  transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before {
  top: -7px;
}

.nav-toggle__bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: transparent;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-5px) rotate(-45deg);
}

@media (max-width: 700px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: block;
  }

  /* Menue legt sich UNTER den Header, damit dessen Hoehe gleich bleibt */
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1rem 1rem;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
  }

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

  .main-nav a {
    padding: 0.85rem 0.25rem;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(23, 71, 45, 0.12);
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a:hover,
  .main-nav a.active {
    border-bottom-color: rgba(23, 71, 45, 0.12);
    color: #8b5e2f;
  }

  .news__date {
    width: 56px;
    height: 62px;
  }
}

/* ===================== Mitwachsende Schriftgroesse ===================== */
/* Fliesstext skaliert zwischen 400px und 1920px Bildschirmbreite mit.
   clamp() begrenzt nach unten und oben, damit es nie unleserlich wird. */
.content-section p,
.section-intro,
.epoch p,
.epoch-timeline__text,
.gallery-intro,
.brochure p,
.news__body p,
.intranet-block p,
.intranet-block li {
  font-size: clamp(1rem, 0.94rem + 0.28vw, 1.3rem);
  line-height: 1.7;
}

.epoch__subtitle,
.board-table,
.rk-field__label,
.rk-choices label,
.download-card__text {
  font-size: clamp(0.95rem, 0.9rem + 0.22vw, 1.18rem);
}

.visit-intro {
  font-size: clamp(1.25rem, 1.05rem + 0.75vw, 2rem);
}

.news__body h4 {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.45rem);
}

/* ===================== News-Fotos ===================== */
.news__photo {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-top: 0.9rem;
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(190, 148, 84, 0.55),
    0 12px 26px -20px rgba(15, 26, 18, 0.55);
}

/* ===================== Externe Person in der Vorstandstabelle ============ */
.board-table__extern {
  border-top: 2px solid rgba(201, 166, 107, 0.7);
}

.board-table__hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  color: #8b5e2f;
  text-transform: none;
}

.rk-choices__hint {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: #6b7280;
}

@media (max-width: 760px) {
  .board-table__extern {
    border-top: 0;
  }

  .board-table__extern th {
    border-left: 0;
  }
}

/* ===================== Intranet: Kalender ===================== */
.cal__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal__nav button {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border: 1px solid rgba(23, 71, 45, 0.25);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  color: #2f6b45;
  cursor: pointer;
}

.cal__nav button:hover {
  background: #2f6b45;
  color: #ffffff;
}

.cal__today {
  font-size: 0.85rem;
}

.cal__label {
  min-width: 10.5rem;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: #17472d;
}

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: rgba(23, 71, 45, 0.14);
  border: 1px solid rgba(23, 71, 45, 0.14);
  border-radius: 4px;
  overflow: hidden;
}

.cal__weekday {
  padding: 0.5rem 0.4rem;
  background: #edf4ee;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: #46704e;
}

.cal__day {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 82px;
  padding: 0.35rem 0.4rem;
  background: #ffffff;
}

.cal__day.is-outside {
  background: #fafbfa;
}

.cal__day.is-outside .cal__num {
  color: #c2cbc5;
}

.cal__day.is-today {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.cal__day.has-open {
  background: #f2f8f3;
}

.cal__num {
  font-size: 0.8rem;
  font-weight: 700;
  color: #17472d;
}

.cal__event {
  display: block;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  background: #2f6b45;
  color: #f4ead3;
  font-size: 0.7rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}

.cal__event.is-done {
  background: rgba(23, 71, 45, 0.3);
  text-decoration: line-through;
}

/* ===================== Intranet: Zuweisung ===================== */
.intranet-entry__assign {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(23, 71, 45, 0.2);
}

.intranet-entry__assign span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #17472d;
}

.intranet-entry__assign input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(23, 71, 45, 0.22);
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
}

.intranet-entry__assign input:focus {
  outline: none;
  border-color: #2f6b45;
  box-shadow: 0 0 0 3px rgba(47, 107, 69, 0.15);
}

@media (max-width: 760px) {
  .cal__day {
    min-height: 58px;
    padding: 0.25rem;
  }

  .cal__event {
    font-size: 0;
    height: 6px;
    padding: 0;
    border-radius: 3px;
  }

  .cal__nav {
    flex-wrap: wrap;
  }

  .cal__label {
    min-width: 8rem;
    font-size: 0.95rem;
  }
}


/* ===================== Pflichtfeld-Kennzeichnung ===================== */
.req {
  color: #b4452f;
  font-weight: 700;
  margin-left: 0.1em;
}

.field-optional {
  margin-left: 0.35em;
  font-size: 0.82em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: #6b7280;
  text-transform: none;
}

.form-required-note {
  margin: 0 0 1.2rem;
  font-size: 0.88rem;
  color: #4b5563;
}

.visit-form .form-required-note {
  margin: 0;
  color: #3d5c47;
}

.visit-form .field-label {
  font-weight: 700;
  color: #17472d;
}

.visit-form .field-hint {
  font-size: 0.84rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: #4b6b55;
}

.visit-form input.is-invalid,
.visit-form textarea.is-invalid {
  border-color: #b4452f;
  box-shadow: 0 0 0 3px rgba(180, 69, 47, 0.12);
}


/* ===================== Impressum / Datenschutz ===================== */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #f2f5ef 0%, var(--page-bg) 100%);
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--shadow);
}

.legal-header__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
}

.legal-header__title {
  display: grid;
  line-height: 1.1;
}

.legal-header__name {
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  letter-spacing: 0.08em;
  color: #17472d;
}

.legal-header__place {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.72rem, 1vw, 0.85rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8b5e2f;
}

.legal-header__back {
  color: #2f6b45;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 107, 69, 0.35);
  white-space: nowrap;
}

.legal-header__back:hover {
  color: #17472d;
  border-bottom-color: var(--accent);
}

.legal-main {
  flex: 1;
  width: min(820px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem);
  color: #2d3a31;
}

.legal-main h1 {
  margin: 0 0 0.5rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.9rem);
  letter-spacing: 0.04em;
  color: #17472d;
}

.legal-meta {
  margin: 0 0 2rem;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: #6b7c6f;
}

.legal-lead {
  margin: 0 0 2.5rem;
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.65;
  color: #33463a;
}

.legal-main h2 {
  margin: 2.8rem 0 0.9rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(23, 71, 45, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.55rem);
  color: #17472d;
}

.legal-main h3 {
  margin: 1.9rem 0 0.6rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 0.97rem + 0.25vw, 1.2rem);
  color: #2f6b45;
}

.legal-main p,
.legal-main li {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.15rem);
  line-height: 1.72;
}

.legal-main p {
  margin: 0 0 1rem;
}

.legal-main a {
  color: #2f6b45;
}

.legal-summary {
  margin: 0 0 1rem;
  padding: 1.4rem clamp(1.1rem, 3vw, 1.9rem);
  border: 1px solid rgba(23, 71, 45, 0.16);
  border-left: 4px solid var(--accent);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 16px 38px -30px rgba(15, 26, 18, 0.5);
}

.legal-summary h2 {
  margin: 0 0 0.8rem;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
}

.legal-summary ul,
.legal-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
}

.legal-list {
  margin: 0 0 1rem;
}

.legal-address {
  margin: 0 0 1.2rem;
  padding: 1.1rem 1.3rem;
  border-left: 3px solid rgba(201, 166, 107, 0.8);
  background: rgba(237, 244, 238, 0.75);
  font-style: normal;
  line-height: 1.7;
}

.legal-tablewrap {
  overflow-x: auto;
  margin: 0 0 1.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: clamp(0.92rem, 0.88rem + 0.18vw, 1.05rem);
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(23, 71, 45, 0.14);
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}

.legal-table thead th {
  background: rgba(237, 244, 238, 0.9);
  font-family: Georgia, "Times New Roman", serif;
  color: #17472d;
}

.legal-table tbody th {
  width: 30%;
  font-weight: 700;
  color: #17472d;
}

.legal-backlink {
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(23, 71, 45, 0.14);
  font-weight: 700;
}

/* Noch zu ergaenzende Angaben - vor dem Aufschalten muss keine mehr sichtbar sein */
.todo {
  padding: 0.05em 0.4em;
  border-radius: 3px;
  background: #ffe9a8;
  box-shadow: inset 0 0 0 1px #c9a66b;
  color: #6b4a12;
  font-style: italic;
}

/* ===================== Footer: Rechtliche Links ===================== */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.site-footer__legal a {
  color: rgba(238, 227, 201, 0.85);
  font-size: 0.92rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 166, 107, 0.4);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-footer__legal a:hover,
.site-footer__legal a[aria-current="page"] {
  color: #ecd49a;
  border-bottom-color: #ecd49a;
}

@media (max-width: 620px) {
  .legal-header {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .legal-table tbody th {
    width: auto;
  }
}

.legal-main code {
  padding: 0.1em 0.4em;
  border-radius: 3px;
  background: rgba(23, 71, 45, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
  color: #17472d;
}


/* ===================== Hero-Video: Abspielen auf Abruf ===================== */
.hero-video__play {
  position: fixed;
  top: var(--header-offset);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-offset));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0 1.5rem;
  border: 0;
  background: rgba(10, 22, 14, 0.3);
  color: #f7efdb;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  will-change: opacity;
}

.hero-video__play[hidden] {
  display: none;
}

.hero-video__play-icon {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border: 2px solid rgba(236, 212, 154, 0.9);
  border-radius: 50%;
  background: rgba(16, 36, 22, 0.55);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hero-video__play:active .hero-video__play-icon {
  transform: scale(0.94);
  background: rgba(16, 36, 22, 0.75);
}

.hero-video__play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.35rem;
  border-left: 1.15rem solid #ecd49a;
  border-top: 0.72rem solid transparent;
  border-bottom: 0.72rem solid transparent;
}

.hero-video__play-text {
  display: grid;
  gap: 0.35rem;
  text-align: center;
}

.hero-video__play-label {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

.hero-video__play-hint {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: rgba(247, 239, 219, 0.82);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ---------------------------------------------------------------
   Lange deutsche Komposita in Ueberschriften
   ---------------------------------------------------------------
   "Datenschutzerklaerung" braucht bei 1.9rem rund 421 px, die
   Inhaltsspalte auf dem Handy ist aber nur 320 px breit. Ein einzelnes
   Wort bricht von selbst nicht um, also stand es rechts ueber den Rand
   hinaus und wurde abgeschnitten.

   hyphens: auto waere die saubere Loesung, verlaesst sich aber auf
   deutsche Trennmuster im Browser - die fehlen in der Praxis haeufig,
   dann bricht das Wort ohne Trennstrich mitten in der Silbe um. Die
   beiden wirklich langen Woerter tragen darum ein weiches Trennzeichen
   (&shy;) im HTML: unsichtbar, solange Platz ist, echter Trennstrich
   beim Umbruch. Diese Regel bleibt als Netz fuer alles Kuenftige.   */
h1,
h2,
h3,
h4 {
  -webkit-hyphens: auto;
  hyphens: auto;
  overflow-wrap: break-word;
}
