/* Shared Dart palette. Blog/newspaper content is deliberately outside these selectors. */
.site-theme {
  background: #0b0d0c;
}
.theme-content {
  max-width: 1200px;
  margin: auto;
  padding: 42px 28px 64px;
  color: #e8e3d6;
  font:
    16px/1.65 Arial,
    sans-serif;
  text-align: left;
}
.theme-content *,
.theme-content *::before,
.theme-content *::after {
  box-sizing: border-box;
}
.theme-content h1,
.theme-content h2,
.theme-content h3,
.theme-content h4,
.theme-content h5,
.theme-home h3 {
  color: #f1e9da !important;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}
.theme-content h1 {
  font-size: clamp(32px, 4vw, 46px);
  margin: 12px 0 18px;
}
.theme-heading {
  margin-bottom: 28px;
}
.theme-kicker {
  color: #c7a77a;
  font:
    600 10px/1.5 Arial,
    sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.theme-content p {
  color: #babdb1;
}
.theme-content a {
  color: #e0be88;
  text-decoration: none;
}
.theme-content a:hover {
  color: #fff0d8;
}
.theme-content .text-black,
.theme-content .text-secondary {
  color: #c5c7bb !important;
}
.theme-content .card,
.theme-content .modal-content,
.theme-content .list-group-item,
.theme-content .guestbook-entry,
.theme-content .container2,
.theme-content .impressum {
  background: #161b18 !important;
  color: #e7e0d0 !important;
  border: 1px solid #6b61494d;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 12px 30px #0002;
}
.theme-content .list-group-item {
  display: block;
  min-height: 48px;
  margin-bottom: 12px !important;
  padding: 14px 20px;
}
.theme-content .list-group-item.active {
  background: #3e151a !important;
  border-color: #ad4c51;
}
.theme-content .card {
  margin-bottom: 22px !important;
  float: none !important;
}
.theme-content .card img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff08;
}
.theme-content .card-body {
  padding: 10px 20px;
}
.theme-content .container2 {
  max-width: none;
  width: 100%;
  margin: 0 0 24px;
}
.theme-content .guestbook-entry {
  margin-bottom: 14px;
  box-shadow: none;
}
.theme-content .impressum {
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.theme-content .impressum > h1 {
  display: none;
}
.theme-content button,
.theme-content .btn,
.theme-content input[type="submit"],
.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(#b0121d, #850c13);
  color: #fff !important;
  border: 1px solid #d15359;
  border-radius: 7px;
  padding: 12px 20px;
  min-height: 46px;
  cursor: pointer;
  font:
    600 14px/1.5 Arial,
    sans-serif;
  text-decoration: none;
}
.theme-content label {
  display: block;
  color: #dbd6c6;
  font-size: 13px;
  font-weight: 600;
}
.theme-content
  input:not([type="hidden"]):not([type="submit"]):not([type="checkbox"]),
.theme-content textarea,
.theme-content select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  display: block;
  margin: 8px 0 20px;
  padding: 12px;
  font:
    16px/1.5 Arial,
    sans-serif;
  color: #eee5d5;
  background: #090f0c;
  border: 1px solid #5b604f;
  border-radius: 7px;
  color-scheme: dark;
}
.theme-content :focus-visible {
  outline: 3px solid #d4b379;
  outline-offset: 3px;
}
.auth-card {
  max-width: 500px;
  margin: 12px auto;
  padding: 34px;
  border: 1px solid #766346;
  border-radius: 14px;
  background: linear-gradient(140deg, #20221c, #101612);
}
.auth-card h1 {
  font-size: 36px;
}
.auth-card form {
  margin-top: 25px;
}
.auth-card button {
  width: 100%;
}
.auth-footer {
  padding-top: 22px;
  border-top: 1px solid #ffffff17;
  margin-top: 24px;
  font-size: 13px;
}
.theme-notice,
.theme-empty {
  border: 1px solid #887348;
  padding: 20px;
  background: #26271d;
  border-radius: 9px;
}
.theme-notice.error {
  background: #431b20;
  border-color: #ac5257;
}
.theme-content.page-veranstaltungen table {
  background: #111811;
  border: 1px solid #6b634b;
  table-layout: fixed;
}
.theme-content.page-veranstaltungen th {
  background: #25291f;
  color: #dbcca8;
  padding: 14px 4px;
}
.theme-content.page-veranstaltungen td {
  background: #141b15;
  color: #e6dfce;
  padding: 14px 6px;
  border: 1px solid #414832;
  vertical-align: top;
  height: 95px;
  overflow-wrap: anywhere;
}
.theme-content.page-veranstaltungen td:hover {
  background: #252e20;
}
.theme-content.page-veranstaltungen td.today {
  background: #601820;
  border-color: #cc5860;
}
.theme-content.page-veranstaltungen .event-container {
  background: #293125;
  color: #ece4cd;
  border: 1px solid #726446;
  border-radius: 6px;
  padding: 6px;
}
.theme-content.page-veranstaltungen .event-title,
.theme-content.page-veranstaltungen .event-time {
  color: #ded3b6;
  font-size: 12px;
}
.theme-content.page-veranstaltungen .nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: #1c241b;
  color: #e8d8b8;
  padding: 16px;
  border-radius: 9px;
}
.theme-content.page-veranstaltungen .nav a {
  color: #e5c589;
}
.theme-content.page-veranstaltungen .modal-content {
  width: min(560px, calc(100vw - 28px));
  max-height: 85dvh;
  overflow: auto;
  margin: 6vh auto;
}
.theme-content.page-galerie .zoomable {
  border-radius: 10px;
}
.theme-content.page-galerie #galleryModal .modal-content {
  padding: 0;
  object-fit: contain;
  max-height: 85vh;
}
.theme-home > .features-container {
  padding-top: 36px;
}
.theme-home .features-box {
  margin-bottom: 20px;
}
.theme-home .features-box > .row {
  padding: 20px 12px;
  margin: 6px;
  border: 1px solid #66583e77;
  border-radius: 12px;
  background: #141a16;
}
.theme-home .features-box-icon {
  color: #bd8f58;
}
.theme-home p {
  color: #b9b9ac;
}
.site-theme footer {
  border-top: 1px solid #78654766;
  background: #090c09 !important;
  padding-top: 8px;
}
.site-theme footer > section:first-child {
  display: none !important;
}
.site-theme footer h6 {
  color: #d5bc90;
  font-size: 12px;
  letter-spacing: 1px;
}
.site-theme footer a {
  color: #b8b8aa !important;
}
.site-theme .cc-window {
  border: 1px solid #8a7350;
  box-shadow: 0 10px 40px #0007;
}
.site-theme .cc-btn {
  border-radius: 6px;
}
.team-surface {
  --bg: #0b0d0c;
  --panel: #171c18;
  --line: #554e3d;
  --text: #eee8da;
  --muted: #b0b5a5;
  --accent: #a9131d;
  --mint: #d6bc8c;
}
.team-surface h1,
.team-surface h2 {
  font-family: Georgia, serif;
  color: #efe4cf;
}
.team-surface .team-nav a[aria-current],
.team-surface .metric.featured {
  background: #321b19;
  border-color: #795339;
}
.team-surface .manual-link {
  width: min(380px, 100%);
  margin: 15px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.team-surface .manual-link label:has([type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.team-surface .manual-link input[type="checkbox"] {
  width: 20px;
  min-width: 20px;
}
body:has(.team-user-admin) {
  background: #0b100c;
  color: #e8e1cf;
}
body:has(.team-user-admin) .team-user-admin,
body:has(.team-user-admin) .team-user-card,
body:has(.team-user-admin) .card {
  background: #161e17;
  color: #e8e1cf;
  border-color: #665b41;
}
body:has(.team-user-admin) .team-user-admin h2,
body:has(.team-user-admin) .team-user-admin h3 {
  color: #eddfc5;
  font-family: Georgia, serif;
}
body:has(.team-user-admin) .team-admin-guide,
body:has(.team-user-admin) .team-admin-count,
body:has(.team-user-admin) .team-role-badge {
  background: #3b3020;
  color: #e1c894;
  border-color: #786037;
}
body:has(.team-user-admin) .team-user-admin label,
body:has(.team-user-admin) .team-user-admin p {
  color: #bdc1ad;
}
body:has(.team-user-admin) input,
body:has(.team-user-admin) select {
  background: #0a120c;
  color: #e8e2d0;
  border-color: #6c6c50;
  color-scheme: dark;
}
body:has(.team-user-admin) .team-assignment-form button,
body:has(.team-user-admin) .btn-primary {
  background: #a01420;
  color: white;
  border-color: #ce6268;
}
body:has(.team-user-admin) .table,
body:has(.team-user-admin) .table td,
body:has(.team-user-admin) .table th {
  background: #151e16;
  color: #dad8c5;
  border-color: #4e533c;
}
@media (max-width: 600px) {
  .theme-content {
    padding: 28px 16px 40px;
  }
  .auth-card {
    padding: 24px 18px;
  }
  .auth-card h1 {
    font-size: 30px;
  }
  .theme-content .container {
    padding-inline: 0;
  }
  .theme-content .card {
    padding: 16px;
  }
  .theme-content .card-body {
    padding: 16px 0 0;
  }
  .theme-content.page-veranstaltungen .container {
    overflow-x: auto;
  }
  .theme-content.page-veranstaltungen table {
    min-width: 620px;
  }
  .theme-content.page-veranstaltungen .nav {
    font-size: 12px;
  }
  .theme-content .container2 {
    padding: 16px;
  }
  .theme-home .features-box > .row {
    margin: 0;
  }
  .site-theme footer {
    font-size: 14px;
  }
}

/* Preserve the blog link typography formerly inherited from the outer navigation wrapper. */
.site-theme .bgnews a {
  font-family: "Cabin", sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}
/* Standalone admin retains the same shared navigation without relying on Bootstrap CSS. */
.admin-nav {
  font:
    14px/1.5 Arial,
    sans-serif;
}
.admin-nav .navbar-nav {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
}
.admin-nav #mainNavigation a {
  color: #dfdbcf;
  text-decoration: none;
  display: block;
}
.admin-nav .nav-item {
  position: relative;
}
.admin-nav .dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 1050;
  min-width: 190px;
  list-style: none;
  margin: 0;
  background: #111810;
}
.admin-nav .dropdown-menu.show {
  display: block;
}
.admin-nav .dropdown-item {
  padding: 10px;
}
.admin-nav .navbar-toggler {
  display: none;
  color: #e4dfd1;
  background: transparent;
  border: 0;
}
.admin-nav .logo-image {
  max-width: none !important;
}
body:has(.team-user-admin) .team-user-admin input[type="search"],
body:has(.team-user-admin) .team-user-admin select {
  background: #0b130d;
  color: #eee3ce;
  border-color: #6c6c50;
}
@media (max-width: 767px) {
  .admin-nav .navbar-toggler {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .admin-nav .navbar-toggler-icon::before {
    content: "☰";
    font-size: 20px;
  }
  .admin-nav .navbar-nav {
    display: flex;
    flex-direction: column;
  }
  .admin-nav .navbar-collapse:not(.show) {
    display: none;
  }
  .admin-nav .dropdown-menu {
    position: static;
  }
}
.theme-home h1,.theme-home h2 { font-family:Georgia,serif; color:#efe5d2; font-weight:700; }

/* Shared mobile header and full-width navigation panel. */
@media (max-width: 767px) {
  .dart-page #mainNavigation {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 16px;
    background: #090909;
    border-bottom: 1px solid #303030;
  }
  .dart-page #mainNavigation > nav { grid-area: 1 / 1; }
  .dart-page #mainNavigation .navbar-expand-md { display: contents; }
  .dart-page #mainNavigation .navbar-dark {
    grid-area: 1 / 2;
    align-self: center;
    justify-self: end;
  }
  .dart-page #mainNavigation .daechle-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #3a3a3a;
    border-radius: 12px;
    background: #171717;
    color: #fff;
    font: 600 13px/1.3 Arial, sans-serif;
    box-shadow: none;
    transition: background 200ms ease, border-color 200ms ease;
  }
  .dart-page #mainNavigation .daechle-menu-toggle[aria-expanded="true"] {
    background: #a7111e;
    border-color: #cf2936;
  }
  .daechle-menu-icon { position: relative; display: block; width: 20px; height: 18px; }
  .daechle-menu-icon span {
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 250ms ease, opacity 150ms ease;
  }
  .daechle-menu-icon span:nth-child(1) { top: 2px; }
  .daechle-menu-icon span:nth-child(2) { top: 8px; width: 15px; }
  .daechle-menu-icon span:nth-child(3) { top: 14px; }
  [aria-expanded="true"] > .daechle-menu-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  [aria-expanded="true"] > .daechle-menu-icon span:nth-child(2) { opacity: 0; }
  [aria-expanded="true"] > .daechle-menu-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .dart-page #mainNavigation #navbarNavDropdown {
    grid-column: 1 / -1;
    width: 100%;
    text-align: left;
  }
  .dart-page #mainNavigation #navbarNavDropdown.collapsing {
    display: block;
    height: 0;
    overflow: hidden;
    transition: height 300ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .dart-page #mainNavigation .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 10px 0 8px !important;
    padding: 8px;
    border: 1px solid #303030;
    border-radius: 16px;
    background: #141414;
    list-style: none;
  }
  .dart-page #mainNavigation .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 13px 14px;
    border-radius: 9px;
    color: #f5f5f5;
    font-size: 15px;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .dart-page #mainNavigation .nav-link.active,
  .dart-page #mainNavigation .nav-link[aria-expanded="true"] {
    background: #99121d;
    box-shadow: none;
    color: #fff;
  }
  .dart-page #mainNavigation .nav-link:hover { background: #292929; }
  .dart-page #mainNavigation .dropdown-menu {
    position: static !important;
    transform: none !important;
    min-width: 0;
    margin: 5px 4px 8px;
    padding: 4px;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 10px;
  }
  .dart-page #mainNavigation .dropdown-item {
    display: block;
    min-height: 44px;
    padding: 12px;
    border-radius: 6px;
    color: #eee;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .dart-page #mainNavigation .dropdown-item:hover,
  .dart-page #mainNavigation .dropdown-item:focus { background: #91121c; color: #fff; }
  .dart-page #mainNavigation a:focus-visible,
  .dart-page #mainNavigation .daechle-menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .daechle-menu-icon span,
  .dart-page #mainNavigation .daechle-menu-toggle,
  .dart-page #mainNavigation #navbarNavDropdown.collapsing { transition: none; }
}
