:root {
  --navy-900: #243552;
  --navy-800: #2f4365;
  --navy-700: #3b5173;
  --sky-100: #dbe5f1;
  --sky-200: #c7d6e7;
  --sand-50: #ffffff;
  --sand-100: #ffffff;
  --ink-900: #1d2430;
  --ink-700: #3a4557;
  --accent-500: #5a6c88;
  --accent-600: #4a5d78;
  --nav-bg-start: #0a111b;
  --nav-bg-end: #132c3f;
  --nav-accent: #4aa3ff;
  --nav-accent-soft: rgba(74, 163, 255, 0.25);
  --toggle-width: 160px;
  --news-hero-height: clamp(160px, 36vw, 220px);
  --shadow-strong: 0 20px 45px rgba(23, 37, 62, 0.25);
  --shadow-soft: 0 12px 25px rgba(23, 37, 62, 0.15);
  --heading-font: "Source Sans 3", "Segoe UI", sans-serif;
  --heading-weight: 700;
  --app-height: 100vh;
}

@supports (height: 100dvh) {
  :root {
    --app-height: 100dvh;
  }
}

html {
  background: #000000 !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink-900);
  background: #000000 !important;
  display: flex;
  justify-content: center;
  padding: 18px 12px;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  height: 100vh;
  height: 100dvh;
  height: var(--app-height);
  overflow: hidden;
  touch-action: manipulation;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.app {
  width: min(100%, 420px);
  min-height: 100vh;
  min-height: 100dvh;
  min-height: var(--app-height);
  height: 100vh;
  height: 100dvh;
  height: var(--app-height);
  background: var(--sand-50);
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--bottom-nav-height, 0px);
}

.scroll-top-button {
  position: absolute;
  right: 16px;
  bottom: var(--scroll-top-offset, 78px);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: none;
  background: #000000;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 4;
}

.scroll-top-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.scroll-top-button:active {
  transform: translateY(1px);
}

.scroll-top-button[hidden] {
  display: none;
}

body.backend-page {
  background: #f2f2f2 !important;
  height: auto;
  overflow: auto;
}

body.backend-page .app {
  height: auto;
  min-height: 100vh;
  overflow: visible;
}

body.backend-page .content {
  overflow: visible;
  min-height: auto;
  padding-bottom: 90px;
}

body.backend-page .topbar {
  position: sticky;
  top: 0;
  z-index: 5;
}

body.backend-page .bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 5;
}

body.backend-page {
  background: #f5f6f8;
  color: var(--ink-900);
}

body.backend-page.gallery-admin-page {
  background: #000000 !important;
}

body.backend-page .wrap {
  max-width: 100%;
  margin: 18px 16px 28px;
  padding: 22px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(23, 37, 62, 0.12);
}

body.backend-page h2 {
  margin: 0 0 10px;
  font-size: 20px;
}

body.backend-page .back-link {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--accent-600);
  text-decoration: none;
}

body.backend-page label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

body.backend-page input,
body.backend-page textarea,
body.backend-page select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d5dbe5;
  font-size: 14px;
  font-family: inherit;
}

body.backend-page textarea {
  min-height: 140px;
  resize: vertical;
}

body.backend-page button {
  background: var(--accent-600);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  cursor: pointer;
}

body.backend-page .alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
}

body.backend-login button {
  margin-top: 12px;
  background: #000000;
}

body.backend-login .alert {
  background: #ffeceb;
  color: #8d1e1e;
  margin-bottom: 12px;
}

body.backend-editor form {
  display: grid;
  gap: 14px;
}

body.backend-editor .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

body.backend-editor .hint {
  font-size: 12px;
  color: var(--accent-600);
}

body.backend-editor .drop-zone {
  position: relative;
  border: 2px dashed rgba(74, 93, 120, 0.35);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  background: #f6f8fb;
  color: var(--ink-700);
}

body.backend-editor .drop-zone.is-dragover {
  border-color: var(--accent-600);
  background: #eef2f8;
}

body.backend-editor .drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

body.backend-editor .drop-zone p {
  margin: 0;
  font-size: 13px;
}

body.backend-editor .file-list {
  font-size: 12px;
  color: var(--accent-600);
  margin-top: 8px;
}

body.backend-editor .alert.error {
  background: #ffeceb;
  color: #8d1e1e;
}

body.backend-editor .alert.success {
  background: #e7f7ee;
  color: #1c6e3b;
}

body.backend-editor .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

body.backend-editor .logout {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--accent-600);
  text-decoration: none;
}

@media (max-width: 640px) {
  body.backend-page .wrap {
    margin: 16px;
    padding: 18px;
  }

  body.backend-page button {
    width: 100%;
  }

  body.backend-editor .row {
    grid-template-columns: 1fr;
  }

  body.backend-editor .actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.topbar {
  background: #000000;
  color: #fff;
  padding: 10px 16px 12px;
  text-align: center;
  position: relative;
  flex: 0 0 auto;
  min-height: 48px;
}

.topbar--with-action {
  padding-left: 56px;
  padding-right: 56px;
}

body.home-page .topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

body.home-page .topbar.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.home-page .app {
  position: relative;
  transition: opacity 0.6s ease;
}

body.home-page.intro-active {
  background: #000000;
}

body.home-page .intro-splash {
  position: fixed;
  inset: 0;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 1;
  pointer-events: auto;
}

body.home-page .intro-splash__canvas {
  width: 100%;
  height: 100%;
  display: block;
}

body.home-page .intro-video {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100%, 420px);
  transform: translateX(-50%);
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--shadow-strong);
}

body.home-page .intro-video.is-visible {
  opacity: 1;
  pointer-events: auto;
}

body.home-page .intro-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

body.home-page .intro-video__effect {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(0, 0, 0, 0.25);
  background-image:
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 5px
    ),
    repeating-linear-gradient(
      -45deg,
      rgba(0, 0, 0, 0.1) 0,
      rgba(0, 0, 0, 0.1) 1px,
      transparent 1px,
      transparent 5px
    );
  z-index: 1;
}

body.home-page .intro-video__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.78) 100%);
  z-index: 4;
}

body.home-page .intro-video__branding {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
}

body.home-page .intro-video__logo {
  width: min(70vw, 280px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

body.home-page .intro-video__start {
  min-width: 160px;
  font-size: 14px;
  letter-spacing: 0.08em;
  background: #ffffff;
  color: #000000;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.35);
}

.topbar--logo {
  background-image: url("favicon/android-chrome-192x192.png");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 38px 38px;
}

.topbar-action {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.topbar-action svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.topbar-action:active {
  transform: translateY(-50%) scale(0.96);
}

.topbar-action.is-active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.status {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.status-text {
  text-transform: uppercase;
}

.topbar h1 {
  margin: 6px 0 0;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  display: flex;
  align-items: center;
  background: #000000;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  animation: rise 0.4s ease-out both;
}

.brand-logo {
  width: 88px;
  max-width: 100%;
  max-height: 120px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
}

.brand-logo--full {
  width: 100%;
  height: auto;
  max-height: 140px;
}

.brand-title {
  font-family: "Alegreya", "Times New Roman", serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #ffffff;
}

.brand-subtitle {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 19px;
  font-weight: 300;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.82);
}

.hero {
  background: var(--sand-100);
  padding: 0;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.05s;
}

.hero-image {
  height: 210px;
  border-radius: 0;
  background: #9bb6b3;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(14, 24, 40, 0.35), rgba(14, 24, 40, 0.05));
  z-index: 1;
}

.card {
  margin: 18px 16px 22px;
  background: #ffffff;
  border-radius: 18px;
  padding: 20px 18px 22px;
  box-shadow: var(--shadow-soft);
  animation: rise 0.4s ease-out both;
  animation-delay: 0.1s;
  max-height: 3000px;
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.35s ease,
    margin 0.5s ease,
    padding 0.5s ease,
    transform 0.35s ease;
}

.intro-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.card.expanded .intro-more {
  max-height: 3000px;
  opacity: 1;
  margin-top: 12px;
}

.intro-excerpt,
.member-excerpt {
  position: relative;
  overflow: hidden;
  max-height: calc(10 * 1.5em);
  padding-bottom: 0.6em;
}

.intro-excerpt::after,
.member-excerpt::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3.6em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 70%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.card.expanded .intro-excerpt,
.member-card.is-expanded .member-excerpt {
  max-height: none;
}

.card.expanded .intro-excerpt::after,
.member-card.is-expanded .member-excerpt::after {
  opacity: 0;
}

.card h2 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink-900);
}

.card p {
  margin: 0 0 16px;
  color: var(--ink-700);
  line-height: 1.5;
  font-size: 14px;
}

.card .excerpt {
  margin-bottom: 12px;
}

.card .more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s ease, opacity 0.4s ease;
}

.card.expanded .more {
  max-height: 900px;
  opacity: 1;
  margin-top: 6px;
}

.card .more p {
  margin: 0 0 12px;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 12px;
  background: #000000;
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-secondary {
  background: #000000;
}

.cta:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.6);
  outline-offset: 3px;
}

.cta:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(35, 50, 70, 0.2);
}

.member-section {
  margin: 18px 16px 32px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.12s;
}

.member-card {
  max-height: none;
  overflow: visible;
  transition: none;
}

.member-section .cta {
  width: var(--toggle-width);
}

.news-section {
  margin: 0 16px 28px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.15s;
}

.news-filter {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.news-filter--aktuelles {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.news-filter--aktuelles .news-filter__row {
  display: grid;
  gap: 10px;
  align-items: end;
}

.news-filter--aktuelles .news-filter__row--primary {
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
}

.news-filter--aktuelles .news-filter__row--secondary {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
}

.news-filter--aktuelles .filter-reset {
  justify-self: end;
}

.news-filter--boerse {
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) auto;
}

.news-filter[hidden] {
  display: none;
}

.news-filter[hidden] ~ .news-list {
  margin-top: 10px;
}

.boerse-controls {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.boerse-controls .filter-field {
  width: max-content;
}

.boerse-admin-actions {
  display: flex;
  justify-content: flex-end;
  margin: -2px 0 12px;
}

.boerse-admin-actions[hidden] {
  display: none;
}

.boerse-archive-toggle,
.news-archive-button {
  appearance: none;
  font: inherit;
}

.boerse-archive-toggle {
  border: 1px solid rgba(36, 53, 82, 0.18);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink-900);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(23, 37, 62, 0.1);
}

.boerse-archive-toggle:active {
  transform: translateY(1px);
}

.filter-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-700);
}

.filter-field__input {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.filter-field--compact select {
  width: 64px;
}

.filter-field--date input {
  width: 120px;
}

.filter-field--sort select {
  width: 100%;
}

.filter-field--search input {
  width: 100%;
  padding-right: 34px;
}

.filter-field input {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(36, 53, 82, 0.2);
  font-family: inherit;
  font-size: 13px;
}

.filter-field select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(36, 53, 82, 0.2);
  font-family: inherit;
  font-size: 13px;
  background: #ffffff;
}

.filter-clear {
  position: absolute;
  right: 6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 8px;
  background: rgba(36, 53, 82, 0.08);
  color: var(--ink-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-clear svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.filter-reset {
  border: none;
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 10px;
  width: 42px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.filter-reset svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.news-count {
  font-size: 12px;
  color: var(--ink-700);
  margin-bottom: 14px;
}

.news-pagination {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.news-pagination[hidden] {
  display: none;
}

.pagination-button {
  border: none;
  background: #000000;
  color: #ffffff;
  border-radius: 12px;
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pagination-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  box-shadow: none;
}

.pagination-button:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.pagination-info {
  font-size: 12px;
  color: var(--ink-700);
}

.more-section {
  margin: 18px 16px 28px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.15s;
}

.info-section {
  margin: 18px 16px 28px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.15s;
}

.info-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.info-panel h2 {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  color: var(--ink-900);
}

.info-panel h3 {
  margin: 18px 0 8px;
  font-size: 16px;
  color: var(--ink-900);
}

.info-panel p,
.info-panel li {
  margin: 0 0 12px;
  color: var(--ink-700);
  line-height: 1.5;
  font-size: 14px;
}

.info-panel ul {
  margin: 0 0 16px 18px;
  padding: 0;
}

.info-panel a {
  color: var(--accent-600);
}

.info-panel .card {
  margin: 0 0 18px;
  padding: 16px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(36, 53, 82, 0.08);
  box-shadow: var(--shadow-soft);
  max-height: none;
  overflow: visible;
  animation: none;
}

.info-panel .card-body {
  padding: 0;
}

.info-panel .card-title {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--ink-900);
}

.info-panel .ratio {
  position: relative;
  width: 100%;
}

.info-panel .ratio-16x9 {
  padding-top: 56.25%;
}

.info-panel .ratio > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mt-5 {
  margin-top: 2rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-5 {
  margin-bottom: 2rem;
}

.ms-1 {
  margin-left: 0.25rem;
}

.more-links {
  display: grid;
  gap: 12px;
}

.gallery-section {
  margin: 18px 16px 28px;
  display: grid;
  gap: 16px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.12s;
}

.gallery-section--detail {
  margin-bottom: 30px;
}

.gallery-intro {
  display: grid;
  gap: 8px;
}

.gallery-intro__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.gallery-intro__row .section-title {
  margin: 0;
  min-width: 0;
}

.gallery-toggle-all {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 53, 82, 0.15);
  background: #0f172a;
  color: #ffffff;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-toggle-all svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.gallery-toggle-all[data-state="expand"] svg {
  transform: rotate(180deg);
}

.gallery-toggle-all:active {
  transform: translateY(1px);
}

.gallery-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f5f9;
  color: var(--accent-600);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.gallery-hint svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.gallery-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.gallery-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: #f3f5f9;
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.gallery-view-toggle a {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-600);
  letter-spacing: 0.02em;
}

.gallery-view-toggle a.is-active {
  background: #0f172a;
  color: #ffffff;
}

.gallery-overview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.gallery-block {
  position: relative;
  padding-bottom: 0;
  width: 100%;
}

.gallery-block:not(.is-collapsed) {
  padding-bottom: 14px;
}

.gallery-block__header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: transparent;
  padding: 0;
  width: 100%;
}

.gallery-block:not(.is-collapsed) .gallery-block__header {
  padding: 6px 0;
  background: transparent;
}

.gallery-block__toggle {
  width: 100%;
  border: 1px solid rgba(36, 53, 82, 0.1);
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-block__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  min-width: 0;
  overflow-wrap: anywhere;
}

.gallery-block__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-600);
}

.gallery-block__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-600);
  transition: transform 0.2s ease;
}

.gallery-block__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.gallery-block__desc {
  margin: 6px 4px 0;
  font-size: 12px;
  color: var(--ink-700);
  line-height: 1.4;
}

.gallery-block__content {
  margin-top: 8px;
  width: 100%;
}

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

.gallery-block.is-collapsed .gallery-block__icon {
  transform: rotate(-90deg);
}

.gallery-block.is-collapsed .gallery-block__desc {
  display: none;
}

.gallery-block.is-collapsed {
  padding-bottom: 0;
}

.gallery-block.is-collapsed .gallery-block__content {
  margin-top: 0;
}

.gallery-image-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  width: 100%;
}

.gallery-tile {
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e8edf4;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

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

.gallery-empty {
  font-size: 12px;
  color: var(--accent-600);
  padding: 8px 0;
}

.content.is-locked {
  overflow: hidden;
  touch-action: none;
}

.gallery-lightbox {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 20, 0.95);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 8px;
  color: #ffffff;
}

.gallery-lightbox__title {
  font-size: 14px;
  font-weight: 600;
}

.gallery-lightbox__close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gallery-lightbox__close svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gallery-lightbox__stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
}

.gallery-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  will-change: transform;
}

.gallery-lightbox__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.gallery-lightbox__control {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.gallery-lightbox__control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gallery-lightbox__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px 14px;
  font-size: 12px;
  color: #d7deea;
}

.gallery-lightbox__caption {
  text-align: right;
  flex: 1;
}

.gallery-lightbox__hint {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
}

.gallery-lightbox__hint svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.gallery-lightbox.is-ui-hidden .gallery-lightbox__top,
.gallery-lightbox.is-ui-hidden .gallery-lightbox__controls,
.gallery-lightbox.is-ui-hidden .gallery-lightbox__meta,
.gallery-lightbox.is-ui-hidden .gallery-lightbox__hint {
  opacity: 0;
  pointer-events: none;
}

.gallery-lightbox.is-zoomed .gallery-lightbox__stage {
  cursor: grab;
}

.gallery-lightbox.is-zoomed .gallery-lightbox__stage:active {
  cursor: grabbing;
}

.gallery-card-grid {
  display: grid;
  gap: 12px;
}

.gallery-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 12px;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  padding: 12px;
  text-decoration: none;
  color: var(--ink-900);
  border: 1px solid rgba(36, 53, 82, 0.08);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-card:active {
  transform: translateY(1px);
  box-shadow: 0 10px 20px rgba(23, 37, 62, 0.12);
}

.gallery-card__thumb {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-card__thumb--empty svg {
  width: 28px;
  height: 28px;
  fill: var(--accent-600);
  opacity: 0.9;
}

.gallery-card__title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.gallery-card__meta {
  font-size: 12px;
  color: var(--accent-600);
}

.gallery-card__chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f3f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-600);
}

.gallery-card__chevron svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gallery-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f3f5f9;
  color: var(--accent-600);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.gallery-back::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.gallery-title {
  display: grid;
  gap: 6px;
}

.gallery-subtitle {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-700);
}

.gallery-viewer {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  border: 1px solid rgba(36, 53, 82, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.gallery-stage {
  position: relative;
  width: 100%;
  height: min(60vh, 420px);
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

.gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
  will-change: transform;
}

.gallery-controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  pointer-events: none;
}

.gallery-control {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  pointer-events: auto;
  cursor: pointer;
}

.gallery-control svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.gallery-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--accent-600);
}

.gallery-caption {
  flex: 1;
  text-align: right;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  border: 2px solid transparent;
  padding: 0;
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f4f8;
  flex: 0 0 auto;
  cursor: pointer;
}

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

.gallery-thumb.is-active {
  border-color: var(--accent-600);
}

.gallery-viewer.is-zoomed .gallery-stage {
  cursor: grab;
}

.gallery-viewer.is-zoomed .gallery-stage:active {
  cursor: grabbing;
}

.gallery-gesture-hint {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.55);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.gallery-gesture-hint span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gallery-gesture-hint svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.gallery-viewer.is-ui-hidden .gallery-controls,
.gallery-viewer.is-ui-hidden .gallery-meta,
.gallery-viewer.is-ui-hidden .gallery-gesture-hint {
  opacity: 0;
  pointer-events: none;
}

.gallery-admin {
  display: grid;
  gap: 18px;
}

.gallery-admin-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(36, 53, 82, 0.08);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.gallery-admin-section h3 {
  margin: 0;
  font-size: 16px;
}

.gallery-admin-form,
.gallery-admin-select {
  display: grid;
  gap: 10px;
}

.gallery-admin-upload-status {
  min-height: 1.2em;
  font-size: 12px;
  color: var(--accent-600);
}

.gallery-admin-progress {
  height: 12px;
  border-radius: 999px;
  background: #e6e8ee;
  overflow: hidden;
}

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

.gallery-admin-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f7a5f, #2aa37a);
  color: #ffffff;
  font-size: 11px;
  line-height: 12px;
  text-align: center;
  transition: width 0.2s ease;
}

.gallery-admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.gallery-admin-checkbox input {
  margin: 0;
}

.gallery-admin-empty {
  margin: 0;
  font-size: 13px;
  color: var(--accent-600);
}

.gallery-admin-list {
  display: grid;
  gap: 12px;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.gallery-admin-item.is-dragging {
  opacity: 0.6;
}

.gallery-admin-thumb {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  overflow: hidden;
  background: #e8edf4;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.gallery-admin-info {
  display: grid;
  gap: 6px;
}

.gallery-admin-name {
  font-size: 12px;
  color: var(--ink-700);
  word-break: break-all;
}

.gallery-admin-meta {
  font-size: 11px;
  color: var(--accent-600);
}

.gallery-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.gallery-admin-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gallery-admin-action input[type="file"] {
  width: auto;
  max-width: 160px;
  font-size: 11px;
}

body.backend-page .gallery-admin-action button {
  padding: 8px 10px;
  font-size: 12px;
  border-radius: 10px;
}

.gallery-admin-order {
  display: grid;
  gap: 6px;
  align-items: center;
  justify-items: center;
}

body.backend-page .gallery-admin-move {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  padding: 0;
  border: 1px solid rgba(36, 53, 82, 0.15);
  background: #ffffff;
  color: var(--accent-600);
}

.gallery-admin-handle {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f8;
  color: var(--accent-600);
  cursor: grab;
}

.gallery-admin-order-form {
  display: flex;
  justify-content: flex-end;
}

.about-tabs-section {
  margin: 18px 16px 10px;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.1s;
}

.boot-section {
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: 0;
}

.about-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.about-item {
  display: grid;
  gap: 10px;
}

.about-tab {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(36, 53, 82, 0.08);
  background: #ffffff;
  color: var(--ink-900);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.about-tab.is-active {
  background: #eef2f8;
  color: var(--accent-600);
  border-color: rgba(74, 93, 120, 0.25);
  box-shadow: var(--shadow-soft);
}

.about-tab:active {
  transform: translateY(1px) scale(0.98);
}

.about-panel {
  margin: 0;
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 16px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 53, 82, 0.08);
  animation: rise 0.4s ease-out both;
  animation-delay: 0.12s;
}

.about-panel[hidden] {
  display: none;
}

.boot-panel {
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  overflow: hidden;
  background: #ffffff;
  border-radius: 18px;
  animation: none;
  transition:
    max-height 0.7s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    transform 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    padding 0.4s cubic-bezier(0.65, 0, 0.35, 1),
    margin 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.boot-panel.is-open {
  opacity: 1;
  transform: translateY(0);
  padding: 18px 16px 20px;
  margin-bottom: 10px;
  border: 1px solid rgba(36, 53, 82, 0.08);
  box-shadow: var(--shadow-soft);
}

.boot-panel-content {
  background: #ffffff;
}

.boot-panel .text-center.mb-4 {
  display: contents;
}

.boot-panel h2 {
  margin: 0 0 12px;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  color: var(--ink-900);
  text-align: center;
}

.about-panel-title {
  margin: 0 0 14px;
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  color: var(--ink-900);
}

.boot-panel .card {
  margin: 14px 0;
  padding: 16px;
  background: #ffffff;
  max-height: none;
  overflow: visible;
  animation: none;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.boot-panel .card-body {
  padding: 0;
  background: #ffffff;
}

.boot-panel .card-title {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--ink-900);
}

.boot-panel p {
  margin: 0 0 12px;
  color: var(--ink-700);
  line-height: 1.5;
  font-size: 14px;
}

.boot-panel ul {
  margin: 0 0 14px 18px;
  padding: 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
}

.boot-panel li {
  margin-bottom: 6px;
}

.boot-panel .d-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boot-panel .justify-content-center {
  justify-content: center;
}

.boot-panel .align-items-center {
  align-items: center;
}

.boot-panel .flex-wrap {
  flex-wrap: wrap;
}

.boot-panel .media-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  justify-items: center;
}

.boot-panel .img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

.boot-panel .mx-2 {
  margin-left: 0;
  margin-right: 0;
}

.boot-panel .media-row > video,
.boot-panel .media-row > img {
  width: 100%;
  height: auto;
  max-width: none;
  display: block;
}

.boot-panel .me-4 {
  margin-right: 1.5rem;
}

.boot-panel .me-3 {
  margin-right: 1rem;
}

.boot-panel .ms-3 {
  margin-left: 1rem;
}

.boot-panel .mt-3 {
  margin-top: 1rem;
}

.boot-panel .ratio {
  position: relative;
  width: 100%;
}

.boot-panel .ratio-16x9 {
  padding-top: 56.25%;
}

.boot-panel .ratio > iframe,
.boot-panel .ratio > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.boot-panel .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: none;
  background: #000000;
  color: #ffffff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.boot-panel #prevPage,
.boot-panel #nextPage,
.boot-panel #pdf-canvas-1,
.boot-panel #pdf-canvas-2 {
  display: none;
}

.boot-panel a[download] {
  gap: 6px;
}

.boot-panel a[download]::after {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27white%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203v12%27/%3E%3Cpath%20d%3D%27M7%2010l5%205%205-5%27/%3E%3Cpath%20d%3D%27M5%2021h14%27/%3E%3C/svg%3E");
}

.boot-panel .btn-secondary {
  background: var(--navy-800);
}

.boot-panel .btn-primary {
  background: #000000;
}

.boot-panel canvas {
  max-width: 100%;
  height: auto;
  display: block;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.people-stack {
  display: grid;
  gap: 12px;
}

.person-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.person-photo {
  width: 70px;
  height: 70px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.person-role {
  margin: 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-600);
}

.person-name {
  margin: 4px 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-900);
}

.person-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-700);
  line-height: 1.4;
}

.more-link,
.more-button {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 53, 82, 0.08);
  color: var(--ink-900);
  text-decoration: none;
  font-weight: 600;
}

.more-button {
  font-family: inherit;
  font-size: inherit;
  text-align: left;
  cursor: pointer;
}

.more-submenu {
  display: grid;
  gap: 10px;
  padding-left: 12px;
  margin-top: 6px;
}

.more-submenu[hidden] {
  display: none;
}

.more-submenu .more-link {
  font-weight: 500;
}

.section-title {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  margin: 0 0 14px;
  color: var(--ink-900);
}

.section-title--center {
  text-align: center;
}

.news-list {
  display: grid;
  gap: 12px;
}

.news-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 53, 82, 0.08);
}

.news-media {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  height: var(--news-hero-height);
  background: #f3f5f8;
}

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

.news-slider {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  height: var(--news-hero-height);
  background: #f3f5f8;
}

.news-slider-track {
  position: relative;
  height: 100%;
}

.news-slider-slide {
  margin: 0;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.news-slider-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.news-item h3 {
  margin: 0 0 6px;
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.2;
  color: var(--ink-900);
}

.news-subhead {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.4;
  font-style: italic;
  color: var(--ink-700);
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--accent-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.news-edit-link {
  text-transform: none;
  letter-spacing: normal;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-800);
  text-decoration: none;
  background: #f1f4f7;
  border: 1px solid rgba(36, 53, 82, 0.18);
  padding: 4px 10px;
  border-radius: 999px;
}

.news-edit-link:active {
  transform: translateY(1px);
}

.news-archive-button {
  cursor: pointer;
}

.news-archive-button:disabled {
  cursor: progress;
  opacity: 0.65;
}

.news-item p {
  margin: 0;
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
}

.news-content {
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-line;
  position: relative;
}


.news-content p + p {
  margin-top: 10px;
}

.news-inline-image {
  margin: 12px 0;
}

.news-inline-image img {
  display: block;
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.news-content--clamped {
  overflow: hidden;
  padding-bottom: 0.6em;
  max-height: calc(var(--clamp-lines, 4) * 1.5em);
}

.news-content--clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.6em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 70%);
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.news-item.is-expanded .news-content--clamped {
  max-height: none;
}

.news-item.is-expanded .news-content--clamped::after {
  opacity: 0;
}

.news-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.news-item:not(.is-expanded) .news-gallery {
  display: none;
}

.news-item:not(.is-expanded) .news-gallery--extra {
  display: none;
}

.news-gallery-item {
  margin: 0;
}

.news-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.zoomable-image {
  cursor: zoom-in;
}

.image-modal {
  position: fixed;
  inset: 0;
  background: rgba(16, 24, 38, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

.image-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.image-modal-content {
  width: min(92vw, 720px);
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  box-shadow: var(--shadow-strong);
  position: relative;
  display: grid;
  gap: 10px;
}

.image-modal-photo {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  display: block;
}

.image-modal-caption {
  margin: 0;
  font-size: 13px;
  color: var(--ink-700);
}

.image-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(36, 53, 82, 0.85);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
}

.news-toggle {
  margin-top: 10px;
  width: var(--toggle-width);
  align-self: flex-start;
  display: inline-flex;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: #000000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-fixed {
  width: var(--toggle-width);
}

.news-toggle:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.formatted-panel {
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
}

.kanu-card {
  position: relative;
}

.kanu-content {
  position: relative;
  overflow: hidden;
  max-height: calc(3 * 1.5em);
  transition: max-height 0.5s ease;
}

.kanu-content::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 85%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.kanu-content.is-expanded {
  max-height: none;
}

.kanu-content.is-expanded::after {
  opacity: 0;
}

.kanu-card .cta {
  margin-top: 14px;
}

.kontakt-panel h2 {
  margin: 0 0 12px;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-item + .contact-item {
  margin-top: 12px;
}

.contact-photo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex: 0 0 72px;
}

.contact-photo-btn.is-placeholder {
  cursor: default;
  pointer-events: none;
}

.contact-photo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background-color: #d6d6d6;
  display: block;
  object-fit: cover;
}

.contact-details p {
  margin: 0;
}

.contact-details p + p {
  margin-top: 0px;
}

.formatted-panel h3,
.formatted-panel h4,
.formatted-panel p {
  margin: 0 0 12px;
}

.formatted-panel h3 {
  font-family: var(--heading-font);
  font-weight: var(--heading-weight);
  font-size: 20px;
  color: var(--ink-900);
}

.kontakt-panel .contact-details p {
  margin: 0 0 2px;
}

.kontakt-panel .contact-details p:last-child {
  margin-bottom: 0;
}

.formatted-panel h4 {
  font-size: 15px;
  font-weight: var(--heading-weight);
  font-family: var(--heading-font);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-600);
}

.formatted-panel .member-paragraph--double {
  margin-bottom: 20px;
}

.formatted-panel .member-text--bold {
  font-weight: 600;
  color: var(--ink-900);
}

.formatted-panel .member-tab {
  position: relative;
  padding-left: 18px;
}

.formatted-panel .member-tab::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0.1em;
  color: var(--accent-600);
}

.member-more {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.member-card.is-expanded .member-more {
  max-height: 10000px;
  opacity: 1;
  margin-top: 12px;
}

.formatted-panel h3:last-child,
.formatted-panel h4:last-child,
.formatted-panel p:last-child {
  margin-bottom: 0;
}

.bottom-nav {
  margin-top: auto;
  background: linear-gradient(145deg, var(--nav-bg-start), var(--nav-bg-end));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 8px calc(14px + env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-around;
  color: #cdd6e4;
  animation: rise 0.4s ease-out both;
  animation-delay: 0.15s;
  position: relative;
}

.bottom-nav::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nav-accent), transparent);
  opacity: 0.6;
}

body:not(.backend-page) .bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: min(100%, 420px);
  z-index: 6;
}


.nav-item {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.nav-item .icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.16),
    rgba(74, 163, 255, 0.04)
  );
}

.nav-item svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nav-item.active {
  color: var(--nav-accent);
}

.nav-item.active .icon {
  background: linear-gradient(
    180deg,
    rgba(74, 163, 255, 0.38),
    rgba(74, 163, 255, 0.1)
  );
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.35),
    0 0 0 1px var(--nav-accent-soft);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 420px) {
  .app {
    border-radius: 0;
    box-shadow: none;
  }

  body {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    min-height: var(--app-height);
    height: var(--app-height);
  }
}
