:root {
  --green-950: #1f3329;
  --green-800: #365343;
  --green-600: #53735e;
  --sand-100: #faf7ef;
  --sand-200: #eee5d1;
  --sand-300: #ddcfb3;
  --red: #a84f46;
  --yellow: #ddb662;
  --ink: #1e2a22;
  --muted: #607066;
  --white: #fffdf8;
  --shadow: 0 18px 42px rgba(31, 51, 41, 0.14);
  --shadow-soft: 0 8px 24px rgba(31, 51, 41, 0.08);
  --radius: 1.35rem;
  --header-height: 5.1rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background: var(--sand-100);
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

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

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.15rem, 4vw, 3.65rem);
  line-height: 1.02;
}

h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.1;
}

.lead {
  max-width: 44rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.7;
}

/* Header */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  width: 100%;
  min-height: var(--header-height);
  color: var(--ink);
  background: rgba(255, 253, 248, 0.93);
  border-bottom: 1px solid rgba(54, 83, 67, 0.08);
  backdrop-filter: blur(14px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 28px rgba(20, 42, 27, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  flex: 0 0 2.8rem;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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

.nav-links a {
  position: relative;
  padding: 0.35rem 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  border-radius: 10px;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after,
.nav-links a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--sand-300);
  border-radius: 50%;
}

/* Subpage hero */
.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}

.page-hero::after {
  position: absolute;
  top: -13rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  content: "";
  background: rgba(221, 182, 98, 0.15);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 52rem;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.page-hero .eyebrow {
  color: var(--yellow);
}

.page-hero .lead {
  color: #d6e0d8;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: #c3d1c7;
  font-size: 0.88rem;
}

.breadcrumbs a {
  color: inherit;
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.72rem 1.15rem;
  font-weight: 800;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 18px rgba(168, 79, 70, 0.23);
}

.button-primary:hover {
  background: #913f37;
}

.button-secondary {
  color: var(--green-950);
  background: var(--white);
  border: 1px solid var(--sand-300);
}

.button-ghost {
  color: var(--green-800);
  background: transparent;
  border: 1px solid currentColor;
}

/* Cards and grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(54, 83, 67, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.card-image {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card-content {
  padding: 1.25rem 1.3rem 1.4rem;
}

.card-meta {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0.55rem 0 0.65rem;
}

.card p {
  color: var(--muted);
  line-height: 1.6;
}

.text-link {
  color: var(--green-800);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover {
  color: var(--red);
}

/* Filter controls, for news/calendar pages */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.6rem;
}

.filter-button {
  padding: 0.55rem 0.85rem;
  color: var(--green-800);
  font-weight: 750;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--sand-300);
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, border 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
  color: var(--white);
  background: var(--green-800);
  border-color: var(--green-800);
}

.card.is-hidden {
  display: none;
}

/* Events / calendar */
.event-list {
  display: grid;
  gap: 0.75rem;
}

.event-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  background: var(--white);
  border: 1px solid rgba(54, 83, 67, 0.09);
  border-radius: 1rem;
  box-shadow: 0 5px 16px rgba(31, 51, 41, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-soft);
}

.event-date {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.event-place {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.event-time {
  color: var(--green-800);
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.event-item.is-hidden {
  display: none;
}

/* Contact / information blocks */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.info-panel {
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.info-panel h3 {
  margin-bottom: 0.7rem;
}

.info-panel p,
.info-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.info-panel ul {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.42rem;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  background: var(--sand-100);
  border: 1px solid var(--sand-300);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(83, 115, 94, 0.14);
}

.form-status {
  min-height: 1.5rem;
  margin: 0.75rem 0 0;
  color: var(--green-800);
  font-weight: 700;
}

/* Footer */
.site-footer {
  padding: 3.5rem 0;
  color: #d3dfd7;
  background: #17251d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  margin-bottom: 0.7rem;
  color: var(--white);
  font-family: inherit;
  font-size: 1rem;
}

.site-footer p,
.site-footer a {
  color: #b9c9be;
  line-height: 1.75;
  text-decoration: none;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  color: #91a69a;
  font-size: 0.86rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Entry animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* @media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 1.25rem;
    display: grid;
    width: min(18rem, calc(100vw - 2.5rem));
    padding: 0.8rem;
    background: var(--white);
    border-radius: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.open a {
    padding: 0.65rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: grid;
    place-items: center;
  }

  .nav-links.open {
    position: absolute;
    top: calc(100% + 0.25rem);
    right: 1.25rem;

    display: flex;
    flex-direction: column;
    gap: 0.25rem;

    width: min(18rem, calc(100vw - 2.5rem));
    padding: 0.8rem;

    background: var(--white);
    color: #222;

    border-radius: 1rem;
    box-shadow: var(--shadow);
    z-index: 1000;
  }

  .nav-links.open a {
    display: block;
    padding: 0.65rem;

    /*color: #222;todo*/
    color: #222;
    text-decoration: none;
  }

  .nav-links.open a:hover {
    background: #f0ede7;
    border-radius: 0.5rem;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 4.5rem;
  }

  .container {
    width: min(100% - 2rem, 1160px);
  }

  .section {
    padding: 4.4rem 0;
  }

  .card-grid,
  .info-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .event-item {
    grid-template-columns: 4.1rem 1fr;
  }

  .event-time {
    grid-column: 2;
  }

  .footer-bottom {
    display: grid;
  }
}

/* Startseite */
.home-header {
  position: fixed;
  color: var(--white);
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.home-header.scrolled {
  color: var(--ink);
  background: rgba(255, 253, 248, 0.93);
  border-bottom-color: rgba(54, 83, 67, 0.08);
  backdrop-filter: blur(16px);
}

.home-header .brand,
.home-header .nav-links a,
.home-header .menu-button {
  color: inherit;
}


.home-header .nav-links a::after {
  background: currentColor;
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 760px;
  min-height: min(790px, 100svh);
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg,
      rgba(17, 35, 25, 0.86),
      rgba(17, 35, 25, 0.43) 54%,
      rgba(17, 35, 25, 0.18)),
    url("../images/start.jpg") center / cover no-repeat;
}

.home-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -13rem;
  width: 35rem;
  height: 35rem;
  content: "";
  background: rgba(221, 182, 98, 0.18);
  border-radius: 50%;
  filter: blur(2px);
}

.home-hero-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
  padding: 8rem 0 10rem;
}

.home-hero .eyebrow {
  color: #f3d88b;
}

.home-hero h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
}

.home-hero-copy {
  max-width: 37rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.home-hero .button-secondary {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 620px) {
  :root {
    --header-height: 4.5rem;
  }

  .container {
    width: min(100% - 2rem, 1160px);
  }

  .section {
    padding: 4.4rem 0;
  }

  .home-hero {
    min-height: 760px;

    background:
      linear-gradient(180deg,
        rgba(17, 35, 25, 0.78),
        rgba(17, 35, 25, 0.45)),
      url("../images/start-mobil.jpg") center / cover no-repeat;
  }

  .card-grid,
  .info-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full {
    grid-column: auto;
  }

  .event-item {
    grid-template-columns: 4.1rem 1fr;
  }

  .event-time {
    grid-column: 2;
  }

  .footer-bottom {
    display: grid;
  }
}

.next-event {
  position: absolute;
  z-index: 2;
  right: max(1.25rem, calc((100vw - 1160px) / 2));
  bottom: 2rem;
  display: grid;
  gap: 0.35rem;
  width: min(21rem, calc(100% - 2.5rem));
  padding: 1.2rem 1.3rem;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.94);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.next-event:hover {
  transform: translateY(-4px);
}

.next-event small {
  color: var(--red);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-event strong {
  font-size: 1.08rem;
}

.next-event span {
  color: var(--muted);
  font-size: 0.92rem;
}

.home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.1rem;
}

.home-section-head h2 {
  max-width: 15ch;
  margin-bottom: 0;
}

.home-section-head p:last-child {
  max-width: 31rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.home-news-card {
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(31, 51, 41, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

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

.home-card-copy {
  padding: 1.25rem 1.3rem 1.4rem;
}

.home-tag {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-news-card h3 {
  margin: 0.55rem 0 0.65rem;
}

.home-news-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-events {
  color: var(--white);
  background: var(--green-950);
}

.home-events .home-section-head p:last-child {
  color: #c9d7ce;
}

.home-events .event-item {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.home-events .event-item:hover {
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.home-events .event-date {
  color: var(--yellow);
}

.home-events .event-place {
  color: #c9d7ce;
}

.home-events .event-time {
  color: #f5ecd9;
}

.home-quick-links {
  overflow: hidden;
  background: var(--sand-200);
}

.carousel {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: scroll 25s linear infinite;
}

.carousel:hover {
  animation-play-state: paused;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.carousel-item:hover {
  transform: scale(1.08);
}

.carousel-circle {
  width: 160px;
  height: 160px;
  margin-bottom: 1.2rem;
  overflow: hidden;
  border: 4px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

.carousel-item:hover .carousel-circle {
  border-color: #d4a574;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-label {
  color: #4c6e56;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-align: center;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.home-gallery-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr 0.85fr;
  grid-template-rows: 15rem 15rem;
  gap: 1rem;
}

.home-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.home-gallery-item:first-child {
  grid-row: span 2;
}

.home-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.home-gallery-item:hover img {
  transform: scale(1.06);
}

.home-gallery-item span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.45rem 0.65rem;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 750;
  background: rgba(21, 33, 25, 0.7);
  border-radius: 999px;
}

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

  .home-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-gallery-item:first-child {
    grid-column: span 2;
    grid-row: auto;
    height: 19rem;
  }
}

@media (max-width: 620px) {
  .home-hero {
    min-height: 700px;
  }

  .home-hero-content {
    padding-top: 7rem;
  }

  .next-event {
    right: 1rem;
    bottom: 1.2rem;
    left: 1rem;
    width: auto;
  }

  .home-section-head {
    display: block;
  }

  .home-section-head p:last-child {
    margin-top: 1rem;
  }

  .home-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-gallery-item,
  .home-gallery-item:first-child {
    grid-column: auto;
    height: 15rem;
  }
}

.verein-card {
  position: relative;
  cursor: pointer;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.verein-card:hover,
.verein-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.verein-card-trigger {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.verein-card-trigger:focus-visible {
  outline: 3px solid var(--color-accent, #c7a457);
  outline-offset: -5px;
  border-radius: 18px;
}

.verein-card .card-image,
.verein-card .card-content {
  position: relative;
  z-index: 1;
}

/* Der Bereich belegt immer Grid-Platz, ist geschlossen aber unsichtbar. */
.verein-details {
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
  border-radius: 18px;
  background: var(--color-dark, #19372b);
  color: #fffdf5;
  overflow: hidden;
  pointer-events: none;
  transition:
    grid-template-rows 500ms ease,
    opacity 280ms ease,
    margin-top 500ms ease;
}

.verein-details-inner {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.75fr);
  gap: 3rem;
  align-items: center;
  padding: 0 clamp(2rem, 5vw, 4.5rem);
  transform: translateY(-20px);
  transition:
    padding 500ms ease,
    transform 500ms ease;
}

/* Geöffneter Zustand: wächst weich nach unten auf. */
.verein-details.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.5rem;
  pointer-events: auto;
}

.verein-details.is-open .verein-details-inner {
  padding-top: clamp(2rem, 5vw, 4.5rem);
  padding-bottom: clamp(2rem, 5vw, 4.5rem);
  transform: translateY(0);
}

.verein-details h2 {
  margin-top: 0.35rem;
  color: inherit;
}

.verein-details p {
  max-width: 68ch;
}

.verein-details-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.verein-details .button-secondary {
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.verein-card.is-active {
  outline: 3px solid var(--color-accent, #c7a457);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .verein-details-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .verein-card,
  .verein-details,
  .verein-details-inner {
    transition: none;
  }
}

@media (max-width: 720px) {
  .verein-details {
    grid-column: 1 / -1;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .verein-details-inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.gewerbe-bilder {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.gewerbe-bild-link {
  flex: 1 1 0;
  min-width: 0;
  max-width: calc(50% - 0.75rem);
  border-radius: 18px;
  overflow: hidden;
  line-height: 0;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.gewerbe-bild-link img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: contain;
  transition: transform 450ms ease;
}

.gewerbe-bild-link:hover,
.gewerbe-bild-link:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.gewerbe-bild-link:hover img,
.gewerbe-bild-link:focus-visible img {
  transform: scale(1.04);
}

.gewerbe-bild-link:focus-visible {
  outline: 3px solid var(--color-accent, #c7a457);
  outline-offset: 4px;
}

@media (max-width: 720px) {
  .gewerbe-bilder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    overflow: visible;
  }

  .gewerbe-bild-link {
    display: block;
    flex: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .gewerbe-bild-link img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 260px;
    object-fit: contain;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 150px;
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #19372b;
  color: #fffdf5;
  cursor: pointer;
  text-align: left;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.gallery-item:nth-child(2) {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-item:nth-child(3) {
  grid-column: span 3;
}

.gallery-item:nth-child(4) {
  grid-column: span 3;
  grid-row: span 3;
}

.gallery-item:nth-child(5) {
  grid-column: span 6;
  grid-row: span 2;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(10, 27, 21, 0.78) 0%,
      rgba(10, 27, 21, 0.1) 55%,
      rgba(10, 27, 21, 0) 100%);
  pointer-events: none;
}

.gallery-item span {
  position: absolute;
  right: 1.35rem;
  bottom: 1.15rem;
  left: 1.35rem;
  z-index: 1;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.gallery-item:hover,
.gallery-item:focus-visible {
  z-index: 2;
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--color-accent, #c7a457);
  outline-offset: 4px;
}

.gallery-item[hidden] {
  display: none;
}

.gallery-empty {
  margin-top: 2rem;
  text-align: center;
}

/* Vergrößerte Bildansicht */
.lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 27, 21, 0.9);
  cursor: pointer;
}

.gallery-lightbox-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: 90vh;
  padding: 1rem;
  border-radius: 18px;
  background: #fffdf5;
  transform: translateY(15px) scale(0.97);
  transition: transform 250ms ease;
}

.gallery-lightbox.is-open .gallery-lightbox-content {
  transform: translateY(0) scale(1);
}

.gallery-lightbox-content img {
  display: block;
  width: 100%;
  max-height: calc(90vh - 5rem);
  object-fit: contain;
  border-radius: 10px;
}

.gallery-lightbox-content p {
  margin: 0.85rem 0 0.25rem;
  color: #19372b;
  text-align: center;
}

.gallery-lightbox-close {
  position: absolute;
  top: -0.85rem;
  right: -0.85rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent, #b55547);
  color: #fffdf5;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
}

.gallery-lightbox-close:focus-visible {
  outline: 3px solid #fffdf5;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 0.9rem;
  }

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4),
  .gallery-item:nth-child(5) {
    grid-column: span 1;
    grid-row: span 2;
  }

  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5) {
    grid-column: span 2;
  }

  .gallery-item span {
    right: 1rem;
    bottom: 0.9rem;
    left: 1rem;
    font-size: 0.9rem;
  }

  .gallery-lightbox {
    padding: 1rem;
  }

  .gallery-lightbox-content {
    padding: 0.65rem;
    border-radius: 14px;
  }

  .gallery-lightbox-close {
    top: -0.65rem;
    right: -0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .gallery-item,
  .gallery-item img,
  .gallery-lightbox,
  .gallery-lightbox-content {
    transition: none;
  }
}

/* Aktuelles: Beiträge untereinander */
.news-list {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.news-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
  overflow: hidden;
}

/*
  Wichtig:
  Das Bild wird aus dem normalen Höhenfluss genommen.
  Dadurch kann es die Höhe der Kachel nicht mehr bestimmen.
*/
.news-list-image {
  align-self: center;
  overflow: hidden;
  border-radius: 14px;
}

.news-list-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* Diese Spalte bestimmt die gesamte Höhe. */
.news-list-content {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.news-list-item:hover .news-list-image img {
  transform: scale(1.035);
}

/* Optional: abwechselnd Bild links */
.news-list-item:nth-child(even) .news-list-content {
  order: 2;
}

.news-list-item:nth-child(even) .news-list-image {
  order: 1;
}

.news-list-content h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.news-list-text {
  color: var(--color-text, #4d5a54);
  line-height: 1.7;
}

.news-list-text p:first-child {
  margin-top: 0;
}

.news-list-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .news-list-item {
    display: block;
    padding: 1.35rem;
  }

  .news-list-image {
    display: none;
  }

  .news-list-content {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-list-image img {
    transition: none;
  }
}

/* Allgemeines: Über-uns-Bereich */
.about-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-copy h3 {
  margin-top: 0;
}

.about-copy p {
  max-width: 62ch;
}

.about-map {
  min-height: 380px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.1);
}

.about-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

.municipality-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.municipality-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
}

.municipality-card h3 {
  margin-top: 0.4rem;
}

.council-list {
  display: grid;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.council-list li {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(25, 55, 43, 0.12);
}

/* Allgemeines: Aktivitäten */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.activity-tile {
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
}

.activity-image {
  background: #19372b;
}

.activity-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.activity-image:hover img {
  transform: scale(1.05);
}

.activity-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.35rem, 3vw, 2.2rem);
  background: #19372b;
  color: #fffdf5;
}

.activity-copy .eyebrow {
  color: var(--color-accent, #d3ad61);
}

.activity-copy h3 {
  margin: 0.25rem 0 0.75rem;
  color: inherit;
}

.activity-copy p:last-child {
  margin: 0;
  color: rgba(255, 253, 245, 0.82);
}

/* Allgemeines: Historie */
.history-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
}

.history-feature-copy h3 {
  margin-top: 0.4rem;
}

.history-feature-copy p {
  max-width: 62ch;
}

.history-feature-image {
  overflow: hidden;
  border-radius: 14px;
}

.history-feature-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* Mobil */
@media (max-width: 720px) {

  .about-intro-grid,
  .municipality-grid,
  .history-feature {
    grid-template-columns: 1fr;
  }

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

  .activities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .history-feature {
    gap: 1.5rem;
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .activity-image img {
    transition: none;
  }
}

.mayor-contact {
  display: grid;
  gap: 0.25rem;
  margin-top: 1.5rem;
  font-style: normal;
  line-height: 1.55;
}

.mayor-contact-label {
  margin-top: 0.75rem;
  color: var(--color-accent, #b55547);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mayor-contact-label:first-child {
  margin-top: 0;
}

.mayor-contact a {
  width: fit-content;
  color: inherit;
  text-decoration-color: rgba(25, 55, 43, 0.35);
  text-underline-offset: 0.2em;
}

.mayor-contact a:hover,
.mayor-contact a:focus-visible {
  color: var(--color-accent, #b55547);
}

.activity-link {
  color: #fffdf5;
  text-decoration: none;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.activity-link:hover,
.activity-link:focus-visible {
  background: #214837;
  transform: translateY(-5px);
  box-shadow: 0 16px 30px rgba(15, 36, 27, 0.2);
}

.activity-link:focus-visible {
  outline: 3px solid var(--color-accent, #d3ad61);
  outline-offset: 4px;
}

.activity-link h3,
.activity-link p {
  color: inherit;
}

.activity-link .eyebrow {
  color: var(--color-accent, #d3ad61);
}

@media (max-width: 720px) {
  .activities-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .activity-tile {
    width: 100%;
    aspect-ratio: 1;
  }
}

/* Gemeindehaus */
.community-house-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  overflow: hidden;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
}

.community-house-image {
  overflow: hidden;
  border-radius: 14px;
}

.community-house-image img {
  display: block;
  width: 100%;
  height: auto;
}

.community-house-copy h3 {
  margin-top: 0.4rem;
}

.community-house-copy p {
  max-width: 62ch;
}

.house-features,
.house-info-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.house-features li,
.house-info-card li {
  position: relative;
  padding-left: 1.35rem;
}

.house-features li::before,
.house-info-card li::before {
  content: "•";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--color-accent, #b55547);
  font-size: 1.2rem;
  font-weight: 700;
}

.community-house-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.75rem;
}

.house-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.house-info-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
}

.house-info-card h3 {
  margin-top: 0.4rem;
}

.house-steps {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0;
  padding-left: 1.35rem;
}

.house-steps li {
  padding-left: 0.35rem;
}

/* Ferienwohnungen */
.holiday-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.holiday-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fffdf5;
  box-shadow: 0 12px 30px rgba(27, 45, 36, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.holiday-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(27, 45, 36, 0.15);
}

.holiday-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.holiday-card-content {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.holiday-card-content h3 {
  margin-top: 0.35rem;
}

.holiday-card-content p:not(.eyebrow) {
  margin-bottom: 1.25rem;
}

.holiday-empty {
  margin-top: 1.5rem;
  text-align: center;
}

/* Mobil */
@media (max-width: 720px) {

  .community-house-feature,
  .house-info-grid,
  .holiday-grid {
    grid-template-columns: 1fr;
  }

  .community-house-feature {
    gap: 1.5rem;
    padding: 1.35rem;
  }

  .community-house-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .holiday-card {
    transition: none;
  }
}

.holiday-card-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.image-credit {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  max-width: calc(100% - 1.3rem);
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  background: rgba(15, 36, 27, 0.76);
  color: rgba(255, 253, 245, 0.92);
  font-size: 0.68rem;
  line-height: 1.3;
}

.image-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.image-credit a:hover,
.image-credit a:focus-visible {
  color: #fffdf5;
}