:root {
  --primary: #2563eb;
  --accent: #22c55e;
  --bg: #f8fafc;
  --text: #0f172a;
  --header-bg: #0f2d57;
  --container: 1240px;
  --pad: 3rem;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.96);
  --border-soft: rgba(15, 23, 42, 0.08);
  --header-text: #ffffff;
  --footer-text: #dbe7ff;
  --hero-overlay-1: rgba(10, 40, 80, 0.75);
  --hero-overlay-2: rgba(10, 40, 80, 0.55);
  --hero-overlay-3: rgba(10, 40, 80, 0.08);
  --header-height: 200px;
  --menu-height: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(90deg, #dfe7f2 0%, #eef2f7 22%, #f5f7fb 50%, #eef2f7 78%, #dfe7f2 100%);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  padding-top: calc(var(--header-height) + var(--menu-height));
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button {
  font: inherit;
}

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

.section {
  padding: max(1.5rem, calc(var(--pad) * 0.6)) 0;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  min-height: var(--header-height);
  background: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand__logo {
  width: clamp(100px, 13vw, 210px);
  height: clamp(100px, 13vw, 210px);
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px;
  flex-shrink: 0;
}


.brand__titlewrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__title {
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
}

.brand__subtitle {
  opacity: 0.9;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.hero-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--header-bg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-horizontal {
  position: relative;
}

.menu-horizontal ul,
.menu-horizontal .mod-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-horizontal > .mod-menu,
.menu-horizontal > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  min-height: var(--menu-height);
}

.menu-horizontal li,
.menu-horizontal .mod-menu li {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-horizontal a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1.5rem, 1.2vw, 1.25rem);
  white-space: nowrap;
  padding: 1rem 0;
}

.menu-horizontal a:hover,
.menu-horizontal a:focus-visible,
.menu-horizontal .current > a,
.menu-horizontal .active > a {
  text-decoration: underline;
}

.menu-horizontal li > ul,
.menu-horizontal .mod-menu__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: var(--header-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  border-radius: 0 0 12px 12px;
  z-index: 2000;
}

.menu-horizontal li:hover > ul,
.menu-horizontal li:focus-within > ul,
.menu-horizontal .mod-menu > li:hover > .mod-menu__sub,
.menu-horizontal .mod-menu > li:focus-within > .mod-menu__sub {
  display: block;
}

.menu-horizontal li > ul li,
.menu-horizontal .mod-menu__sub li {
  width: 100%;
}

.menu-horizontal li > ul a,
.menu-horizontal .mod-menu__sub a {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  white-space: normal;
}

.menu-horizontal li > ul a:hover,
.menu-horizontal li > ul a:focus-visible,
.menu-horizontal .mod-menu__sub a:hover,
.menu-horizontal .mod-menu__sub a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.menu-horizontal li > ul li > ul,
.menu-horizontal .mod-menu__sub .mod-menu__sub {
  top: 0;
  left: 100%;
  margin-left: 0.2rem;
  border-radius: 12px;
}

.menu-horizontal li.parent > a::after,
.menu-horizontal li.deeper > a::after {
  content: " ▾";
  font-size: 0.8em;
}

.menu-horizontal li.parent li.parent > a::after,
.menu-horizontal li.deeper li.deeper > a::after {
  content: " ▸";
}

.menu-horizontal .mod-menu__toggle,
.menu-horizontal .submenu-toggle,
.menu-horizontal .nav-child-toggle,
.menu-horizontal button[aria-haspopup="true"] {
  display: none;
}

.hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--hero-overlay-1) 0%, var(--hero-overlay-2) 35%, var(--hero-overlay-3) 70%);
  z-index: 1;
}

.hero .container {
  height: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: #fff;
  max-width: 700px;
  min-height: 300px;
  padding: 4rem 0;
}

.hero-content h1,
.hero-content h1 * {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-content p,
.hero-content p * {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  opacity: 0.95;
  margin: 0 0 1.8rem;
  color: #fff;
}

.hero-button,
.hero-cta a,
.hero-cta .btn,
.hero-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: var(--accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
  border: 0;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.hero-button:hover,
.hero-cta a:hover,
.hero-cta .btn:hover,
.hero-cta button:hover {
  filter: brightness(0.92);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.content-top {
  padding-top: 1.2rem;
}

.home-panels {
  padding-top: 0.5rem;
}

.home-grid-unified {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

.home-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-block h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
}

.home-block .card {
  min-height: 150px;
  height: 100%;
}

.home-block--contact {
  grid-column: span 2;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.tile-card,
.list-card,
.contact-card {
  padding: 0;
}

.tile-card .moduletable,
.tile-card .module,
.list-card .moduletable,
.list-card .module,
.contact-card .moduletable,
.contact-card .module {
  margin: 0;
}

.tile-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-auto,
.gallery-empty {
  padding: 0;
}

.gallery-auto .gallery-item {
  display: block;
}

.gallery-auto img,
.gallery-item img {
  cursor: zoom-in;
}

.list-card,
.contact-card {
  padding: 1.4rem 1.5rem;
}

.contact-card address {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.8;
}

.mod_events_latest,
.mod_events_latest_table,
.mod_events_latest_table tbody {
  width: 100%;
}

.mod_events_latest_table {
  border-collapse: separate !important;
  border-spacing: 0 14px !important;
  background: transparent !important;
}

.mod_events_latest_table tr {
  display: block;
  background: #fbf8f2;
  border: 1px solid rgba(15, 45, 87, 0.08);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mod_events_latest_table tr:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.mod_events_latest_table td {
  display: block;
  width: 100% !important;
  border: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1.45;
}

.mod_events_latest_table td:first-child {
  font-size: 0.98rem;
  color: #6b6b6b;
  margin-bottom: 6px;
  font-weight: 600;
}

.mod_events_latest_table td:nth-child(2) {
  font-size: 0.95rem;
  color: #8a8a8a;
  margin-bottom: 8px;
}

.mod_events_latest_table td:last-child a {
  display: inline-block;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 700;
  color: #184c3a;
  text-decoration: none;
}

.mod_events_latest_table td:last-child a:hover,
.mod_events_latest_table td:last-child a:focus-visible {
  color: #b08b2f;
  text-decoration: underline;
}

.component-section {
  padding-top: 0;
}

.site-footer {
  margin-top: 1rem;
  background: var(--header-bg);
  color: var(--footer-text);
}

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

.footer-copy {
  opacity: 0.8;
  font-size: 0.95rem;
  padding-top: 1rem;
}

.site-footer ul,
.site-footer .mod-menu,
.site-footer .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin: 0;
  padding: 0;
}

.site-footer a {
  display: inline-block;
}

.site-footer li:not(:last-child)::after {
  content: "|";
  margin-left: 1.2rem;
  opacity: 0.6;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
}

.contact-form button {
  background: #1f5e3b;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
}

.contact-form button:hover {
  background: #174a2e;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.88);
}

.lightbox.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-content {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 100000;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:focus-visible,
.lightbox-prev:focus-visible,
.lightbox-next:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}

.lightbox-close {
  top: 16px;
  right: 22px;
  font-size: 42px;
  line-height: 1;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  line-height: 1;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

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

  .home-block--contact {
    grid-column: span 2;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 160px;
    --menu-height: auto;
  }

  body.site {
    padding-top: 220px;
  }

  .navbar {
    min-height: var(--header-height);
  }

  .menu-horizontal > .mod-menu,
  .menu-horizontal > ul {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.5rem 0;
  }

  .menu-horizontal a {
    padding: 0.7rem 0;
  }

  .menu-horizontal li > ul,
  .menu-horizontal .mod-menu__sub {
    min-width: 210px;
  }

  .menu-horizontal li > ul li > ul,
  .menu-horizontal .mod-menu__sub .mod-menu__sub {
    left: 100%;
  }
}

@media (max-width: 700px) {
  body.site {
    padding-top: 200px;
  }

  .site-header {
    min-height: 136px;
  }

  .navbar {
    min-height: 136px;
    padding: 0.75rem 0;
  }

  .brand {
    gap: 0.75rem;
  }

  .brand__logo {
    width: 72px;
    height: 72px;
  }

  .brand__title {
    font-size: 1.25rem;
  }

  .brand__subtitle {
    font-size: 0.9rem;
  }

  .hero-menu {
    top: 136px;
  }

  .menu-horizontal > .mod-menu,
  .menu-horizontal > ul {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 1.25rem;
    scrollbar-width: thin;
  }

  .menu-horizontal li > ul,
  .menu-horizontal .mod-menu__sub {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: auto;
    min-width: auto;
  }

  .hero {
    min-height: 420px;
  }

  .hero-content {
    min-height: 420px;
    max-width: 100%;
    padding: 3rem 0;
  }

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

  .home-block--contact {
    grid-column: auto;
  }

  .mod_events_latest_table tr {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .mod_events_latest_table td:last-child a {
    font-size: 1.05rem;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
  }
}

.hero-menu button,
.hero-menu .mod-menu__toggle,
.hero-menu .submenu-toggle,
.hero-menu .nav-child-toggle,
.hero-menu [aria-label*="Weitere Informationen"],
.hero-menu [title*="Weitere Informationen"] {
  display: none !important;
}

.hero-menu .nav-item-parent > button,
.hero-menu button[aria-haspopup="true"] {
  display: none !important;
}

.hero-menu .mod-menu__toggle-sub {
  display: none !important;
}
