@font-face {
  font-family: "AvenirHeavy";
  src: url("../fonts/avenir-lt-std-85-heavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #18202a;
  --muted: #5f6b76;
  --line: rgba(24, 32, 42, 0.12);
  --primary: #0b5c7a;
  --primary-soft: rgba(11, 92, 122, 0.08);
  --overlay: #ffffff;
  --overlay-line: rgba(24, 32, 42, 0.14);
  --overlay-text: #000000;
  --content-width: 980px;
  --radius: 20px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

body {
  font-family: "Raleway", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-inline-size: 100%;
  block-size: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
}

.skip-link:focus {
  left: 1rem;
  z-index: 10001;
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  padding: 0.75rem 1rem;
}

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

.site-header {
  position: relative;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0 1.25rem;
}

.site-logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  max-inline-size: 100%;
}

.site-logo img {
  max-block-size: 110px;
  inline-size: auto;
}

.site-nav {
  width: 100%;
  max-width: 100%;
}

.site-nav ul,
.mobile-menu__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: 100%;
}

.site-nav li {
  min-width: 0;
}

.site-nav a {
  display: inline-block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "AvenirHeavy", sans-serif;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  inline-size: 3rem;
  block-size: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 0.8rem;
  inline-size: 1.4rem;
  block-size: 2px;
  background: var(--text);
}

.nav-toggle span:nth-child(1) {
  top: 0.95rem;
}

.nav-toggle span:nth-child(2) {
  top: 1.42rem;
}

.nav-toggle span:nth-child(3) {
  top: 1.89rem;
}

.site-main {
  padding: 2rem 0 4rem;
}

.page,
.start {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
}

.page__title,
.start__title {
  margin: 0 0 1.5rem;
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.1;
  font-family: "AvenirHeavy", sans-serif;
}

.page__content,
.start__content,
.news-entry {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  background: var(--surface);
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.page__content > *:first-child,
.start__content > *:first-child,
.news-entry > *:first-child {
  margin-top: 0;
}

.page__content > *:last-child,
.start__content > *:last-child,
.news-entry > *:last-child {
  margin-bottom: 0;
}

.page__content h1,
.page__content h2,
.page__content h3,
.page__content h4,
.page__content h5,
.page__content h6,
.start__content h1,
.start__content h2,
.start__content h3,
.start__content h4,
.start__content h5,
.start__content h6,
.news-entry h1,
.news-entry h2,
.news-entry h3,
.news-entry h4,
.news-entry h5,
.news-entry h6 {
  line-height: 1.2;
  margin-top: 1.8em;
  margin-bottom: 0.65em;
  font-family: "AvenirHeavy", sans-serif;
  text-align: center;
}

.page__content p,
.page__content ul,
.page__content ol,
.page__content blockquote,
.page__content figure,
.start__content p,
.start__content ul,
.start__content ol,
.start__content blockquote,
.start__content figure,
.news-entry p,
.news-entry ul,
.news-entry ol,
.news-entry blockquote,
.news-entry figure {
  margin: 0 0 1rem;
}

.page__content ul,
.page__content ol,
.start__content ul,
.start__content ol,
.news-entry ul,
.news-entry ol {
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

.page__content li,
.start__content li,
.news-entry li {
  text-align: center;
}

.page__content a,
.start__content a,
.news-entry a {
  color: var(--primary);
  text-underline-offset: 0.16em;
}

.page__content blockquote,
.start__content blockquote,
.news-entry blockquote {
  margin-left: auto;
  margin-right: auto;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 1rem 1rem 0;
  text-align: center;
}

.page__content > img,
.page__content p > img,
.page__content a > img,
.start__content > img,
.start__content p > img,
.start__content a > img,
.news-entry > img,
.news-entry p > img,
.news-entry a > img {
  display: block;
  margin: 0 auto 1rem;
}

.page__content figure,
.start__content figure,
.news-entry figure {
  display: table;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page__content figure img,
.start__content figure img,
.news-entry figure img {
  margin: 0 auto;
}

.page__content figcaption,
.start__content figcaption,
.news-entry figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  text-align: center;
}

.page__content .button,
.page__content button,
.page__content .btn,
.start__content .button,
.start__content button,
.start__content .btn,
.news-entry .button,
.news-entry button,
.news-entry .btn {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}

.page__content iframe,
.page__content video,
.page__content canvas,
.start__content iframe,
.start__content video,
.start__content canvas,
.news-entry iframe,
.news-entry video,
.news-entry canvas {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

.start__image {
  width: 100%;
  max-width: 100%;
  margin: 0 0 2rem;
  overflow: hidden;
}

.start__image img {
  width: 100%;
  max-width: 100%;
  max-height: 70svh;
  object-fit: cover;
  border-radius: 0;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--overlay);
  inline-size: 100%;
  max-inline-size: 100%;
  block-size: 100svh;
  overflow: hidden;
  overscroll-behavior: contain;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu,
.mobile-menu * {
  max-inline-size: 100%;
}

.mobile-menu__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  inline-size: 3.25rem;
  block-size: 3.25rem;
  padding: 0;
  border: 1px solid var(--overlay-line);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.03);
  cursor: pointer;
  z-index: 10000;
}

.mobile-menu__close span {
  position: absolute;
  left: 0.95rem;
  top: 1.55rem;
  inline-size: 1.35rem;
  block-size: 2px;
  background: #000000;
}

.mobile-menu__close span:first-child {
  transform: rotate(45deg);
}

.mobile-menu__close span:last-child {
  transform: rotate(-45deg);
}

.mobile-menu__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow: hidden;
  inline-size: 100%;
  max-inline-size: 100%;
}

.mobile-menu__nav ul {
  inline-size: min(100%, 20rem);
  max-inline-size: 20rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
}

.mobile-menu__nav li {
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
}

.mobile-menu__nav a {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
  min-inline-size: 0;
  text-align: center;
  text-decoration: none;
  color: #000000;
  font-size: clamp(1.6rem, 6vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  padding: 0.25rem 0;
  opacity: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: "AvenirHeavy", sans-serif;
}

.mobile-menu__nav a:hover,
.mobile-menu__nav a:focus-visible,
.mobile-menu__nav a.is-active {
  color: #000000;
  opacity: 1;
}

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

  .nav-toggle {
    display: block;
  }

  .site-header__inner {
    padding-bottom: 0.75rem;
  }

  .site-logo img {
    max-block-size: 88px;
  }

  .site-main {
    padding-top: 1.5rem;
  }

  .page__content,
  .start__content,
  .news-entry {
    width: 100%;
    padding: 1.15rem;
  }

  .start__image img {
    max-height: 42svh;
  }
}

@media (min-width: 861px) {
  .mobile-menu {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.template-news-form .page--news-form {
  padding-block: 2rem 4rem;
}

.template-news-form .page--news-form .page__content {
  margin-bottom: 1.5rem;
}

#news-submit-wrapper {
  max-width: 980px;
  margin: 0 auto;
}

#news-submit {
  display: grid;
  gap: 1.25rem;
}

#news-submit .form-field {
  margin: 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
}

#news-submit .form-label {
  margin-bottom: 0.5rem;
}

#news-submit .form-label label {
  display: block;
  font-weight: 700;
  color: #1f2937;
}

#news-submit .form-data,
#news-submit .form-input-wrapper,
#news-submit .form-select-wrapper,
#news-submit .form-textarea-wrapper {
  width: 100%;
}

#news-submit input[type="text"],
#news-submit input[type="email"],
#news-submit input[type="url"],
#news-submit select,
#news-submit textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
}

#news-submit textarea {
  min-height: 22rem;
  resize: vertical;
  line-height: 1.6;
}

#news-submit input[type="text"]:focus,
#news-submit input[type="email"]:focus,
#news-submit input[type="url"]:focus,
#news-submit select:focus,
#news-submit textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

#news-submit .dropzone {
  width: 100%;
  min-height: 14rem;
  padding: 1.25rem;
  border: 2px dashed #94a3b8;
  border-radius: 14px;
  background: #f8fafc;
}

#news-submit .buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

#news-submit .button {
  padding: 0.9rem 1.4rem;
  border: 0;
  border-radius: 10px;
  background: #0f766e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#news-submit .button:hover {
  background: #115e59;
}

.news-editor {
  display: grid;
  gap: 0;
}

.news-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #cfd4dc;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #f8fafc;
}

.news-editor__toolbar button {
  padding: 0.55rem 0.75rem;
  border: 1px solid #d6dce3;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font: inherit;
  cursor: pointer;
}

.news-editor__toolbar button:hover {
  background: #eef6f5;
  border-color: #0f766e;
}

textarea.news-editor__textarea,
.news-editor textarea {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  min-height: 24rem;
}

.news-wysiwyg {
  display: grid;
  gap: 0;
}

.news-wysiwyg__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid #cfd4dc;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #f8fafc;
}

.news-wysiwyg__toolbar button {
  padding: 0.55rem 0.8rem;
  border: 1px solid #d6dce3;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.news-wysiwyg__editor {
  min-height: 24rem;
  padding: 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 0 0 12px 12px;
  background: #fff;
  line-height: 1.7;
}

.news-wysiwyg__editor:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.news-wysiwyg__editor p,
.news-wysiwyg__editor ul,
.news-wysiwyg__editor h2 {
  margin: 0 0 1rem;
}

.news-wysiwyg__editor ul {
  padding-left: 1.5rem;
}

.news-wysiwyg__editor a {
  color: #0f766e;
  text-decoration: underline;
}

/* Zurück-Link auf Detailseite */
.page__back {
  width: 100%;
  max-width: 780px;
  margin: 1.5rem auto 0;
  text-align: center;
}

.page__back a {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.16em;
}

.page__back a:hover,
.page__back a:focus-visible {
  text-decoration: underline;
}

/* News-Excerpt */
.news-entry__summary {
  margin-bottom: 1rem;
}

.news-entry__more {
  display: inline-block;
  margin-top: 0.25rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  text-underline-offset: 0.16em;
}

.news-entry__more:hover,
.news-entry__more:focus-visible {
  text-decoration: underline;
}

/* News-Galerie Thumbnail */
.news-gallery {
  position: relative;
  margin-bottom: 1.25rem;
}

.news-gallery__thumb {
  position: relative;
  display: inline-block;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
}

.news-gallery__img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

.news-gallery__thumb:hover .news-gallery__img,
.news-gallery__thumb:focus-visible .news-gallery__img {
  opacity: 0.88;
}

.news-gallery__count {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

/* Lightbox */
#gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}

#gallery-overlay[hidden] {
  display: none;
}

#gallery-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

#gallery-close,
#gallery-prev,
#gallery-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 999px;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#gallery-close:hover,
#gallery-prev:hover,
#gallery-next:hover {
  background: rgba(255, 255, 255, 0.3);
}

#gallery-close {
  top: 1rem;
  right: 1rem;
}

#gallery-prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#gallery-next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

#gallery-counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* Fotogallerie */
.foto-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.foto-gallery__item {
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
}

.foto-gallery__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.foto-gallery__img {
  display: block;
  inline-size: 100%;
  block-size: 150px;
  object-fit: cover;
  transition: opacity 0.2s, transform 0.2s;
}

.foto-gallery__btn:hover .foto-gallery__img,
.foto-gallery__btn:focus .foto-gallery__img {
  opacity: 0.85;
  transform: scale(1.03);
}
