/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
  color: #0366d6;
}

.btn-primary {
  color: #fff;
  background-color: #5a9e33;
  border-color: #5a9e33;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  color: #fff;
  background-color: #4b842b;
  border-color: #4b842b;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  font-size: 14px;
}
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.border-top {
  border-top: 1px solid #5a9e33;
}
.border-bottom {
  border-bottom: 1px solid #5a9e33;
}

hr {
  border: 0;
  border-top: 1px solid #5a9e33;
}

.table,
.table th,
.table td {
  border-color: #5a9e33 !important;
}

.card {
  border-color: #5a9e33;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.card:hover {
  box-shadow: 0 6px 18px rgba(90, 158, 51, 0.12);
  transform: translateY(-2px);
}
.card-header {
  border-bottom-color: #5a9e33;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.navbar {
  background-color: #5a9e33 !important; /* requested nav bar color */
}

.navbar .navbar-brand,
.navbar .nav-link,
.navbar .language-link {
  color: #ffffff !important;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .language-link:hover,
.navbar .language-link:focus {
  color: #e6ffe0 !important;
}

.language-switcher {
  font-size: 0.9rem;
}

.language-separator {
  color: #e6ffe0;
  margin: 0 0.25rem;
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
}

.layout-root {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  background-color: #5a9e33;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  padding: 1rem 0.75rem;
}

.sidebar-header {
  margin-bottom: 1.5rem;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-brand:hover,
.sidebar-brand:focus {
  color: #e6ffe0;
  text-decoration: none;
}

.sidebar-logo {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e6ffe0;
  background-color: #ffffff;
}

.sidebar-brand-text {
  display: block;
  line-height: 1.2;
}

.sidebar-brand-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 0.15rem;
}

.sidebar-nav .nav-link {
  color: #ffffff;
  padding: 0.35rem 0.5rem;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link:focus {
  color: #e6ffe0;
  text-decoration: none;
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-login {
  margin-top: 0.5rem;
}

.layout-main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* Desktop-only top bar (fills empty space above content on md+) */
.desktop-top-bar {
  flex-shrink: 0;
  background: linear-gradient(180deg, rgba(90, 158, 51, 0.12) 0%, rgba(90, 158, 51, 0.06) 100%);
  border-bottom: 1px solid rgba(90, 158, 51, 0.2);
}

.desktop-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0.5rem 1.5rem;
}

.desktop-top-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #2d5016;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.25s ease;
  text-align: right;
}

.desktop-top-brand:hover {
  color: #5a9e33;
}

.desktop-top-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(90, 158, 51, 0.4);
}

.desktop-top-subtitle {
  display: block;
  font-size: 0.7em;
  font-weight: 500;
  color: #5a9e33;
  opacity: 0.95;
}

.main-container {
  flex: 1 1 auto;
  padding: 1rem 1.5rem;
}

/* Short entrance animation for page content (max 0.5s) */
@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.main-container main {
  animation: page-enter 0.4s ease-out;
}

/* Divider under all headlines in main content */
/* Line after every heading on subpages */
.main-container main h1,
.main-container main h2,
.main-container main h3,
.main-container main h4,
.main-container main h5,
.main-container main h6 {
  padding-bottom: 0.4rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #5a9e33;
}

/* First/biggest headline (page title) in green – subpages only */
.main-container main h1 {
  color: #5a9e33;
}

/* Keep hero headline white on home page */
.main-container main .hero-content h1 {
  color: #ffffff;
}

.footer {
  width: 100%;
  padding: 0.75rem 1.5rem;
  line-height: 1.5;
  background-color: rgba(90, 158, 51, 0.08);
}

.footer .footer-link {
  color: #5a9e33;
  transition: color 0.25s ease;
}

.footer .footer-link:hover {
  color: #4b842b;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1070;
  background-color: #5a9e33;
  padding: 0.35rem 0.75rem;
  width: 100%;
  max-width: 100vw;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: #ffffff;
}

.mobile-logo {
  height: 36px;
  width: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #e6ffe0;
  background-color: #ffffff;
}

.mobile-brand-text {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.mobile-brand-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

.mobile-menu-button {
  border: none;
  background: transparent;
  color: #ffffff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.mobile-menu-button:focus {
  outline: 2px solid #e6ffe0;
  outline-offset: 2px;
}

.mobile-menu-icon,
.mobile-menu-icon::before,
.mobile-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.mobile-menu-icon::before {
  top: -6px;
}

.mobile-menu-icon::after {
  top: 6px;
}

body.sidebar-open .mobile-menu-icon {
  transform: rotate(45deg);
}

body.sidebar-open .mobile-menu-icon::before {
  transform: rotate(-90deg);
  top: 0;
}

body.sidebar-open .mobile-menu-icon::after {
  opacity: 0;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1040;
  display: none;
}

body.sidebar-open .sidebar-overlay {
  display: block;
}

.hero-shepherd {
  position: relative;
  min-height: 65vh;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(90, 158, 51, 0.12);
  background-image: url("/images/gallery/loki.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: #4b5563;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0.15) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem;
}

.hero-content {
  max-width: 600px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.hero-content h1 {
  font-size: 2.25rem;
  margin-bottom: 0.85rem;
  line-height: 1.25;
  font-weight: 700;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-brand-subtitle {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.hero-content p {
  font-size: 1.08rem;
  margin-bottom: 1.25rem;
  line-height: 1.5;
  opacity: 0.98;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.map-embed {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .08);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.hero-actions .btn-outline-light,
.hero-actions .btn-primary {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}

.hero-actions .btn-outline-light:hover,
.hero-actions .btn-primary:hover {
  transform: translateY(-1px);
}

.hero-actions .btn-outline-light {
  border-color: #ffffff;
  color: #ffffff;
}

.hero-actions .btn-outline-light:hover,
.hero-actions .btn-outline-light:focus {
  background-color: #ffffff;
  color: #2f4b1c;
}

.home-info {
  margin-bottom: 2.5rem;
}

.home-info-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #5a9e33;
  margin-bottom: 1.25rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #5a9e33;
}

.home-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.home-info-card {
  padding: 1.35rem 1.5rem;
  background: #f8faf6;
  border: 1px solid #5a9e33;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(90, 158, 51, 0.08);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.home-info-card:hover {
  box-shadow: 0 6px 20px rgba(90, 158, 51, 0.14);
  transform: translateY(-2px);
}

.home-info-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d5016;
  margin-bottom: 0.6rem;
}

.home-info-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #495057;
}

.faq-list {
  max-width: 720px;
}

.faq-item {
  padding: 1rem 0;
  border-bottom: 1px solid #5a9e33;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-size: 1.1rem;
  color: #2d5016;
  margin-bottom: 0.35rem;
}

.faq-answer {
  margin: 0;
  color: #495057;
  line-height: 1.5;
}

.wissenswertes-welcome {
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8faf6 0%, #e8f0e4 100%);
  border-left: 4px solid #5a9e33;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #2d5016;
}

.wissenswertes-list {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.wissenswertes-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid #5a9e33;
  border-radius: 10px;
  background: #f8faf6;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.wissenswertes-card:hover {
  box-shadow: 0 6px 18px rgba(90, 158, 51, 0.12);
  transform: translateY(-2px);
}

.wissenswertes-question {
  font-size: 1.1rem;
  font-weight: 700;
  color: #5a9e33;
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #5a9e33;
}

.wissenswertes-answer {
  margin: 0;
  color: #495057;
  line-height: 1.6;
}

.wissenswertes-answer strong {
  color: #2d5016;
}

.impressum-sections {
  display: grid;
  gap: 1.25rem;
  max-width: 560px;
}

.impressum-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid #5a9e33;
  border-radius: 10px;
  background: #f8faf6;
}

.impressum-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #5a9e33;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #5a9e33;
}

.impressum-name {
  font-weight: 600;
  color: #2d5016;
}

.impressum-address {
  font-style: normal;
  margin-top: 0.35rem;
  color: #495057;
  line-height: 1.6;
}

.impressum-label {
  font-weight: 600;
  color: #2d5016;
  min-width: 5rem;
  display: inline-block;
}

.impressum-card a {
  color: #5a9e33;
}

.impressum-card a:hover {
  color: #4b842b;
  text-decoration: underline;
}

.impressum-note {
  font-size: 0.9rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .06);
  background-color: #f8f9fa;
}

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

.gallery-item-clickable {
  cursor: pointer;
}

.gallery-item-clickable:hover {
  opacity: 0.9;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (max-width: 768px) {
  .layout-root {
    min-height: calc(100vh - 56px);
  }

  .sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 280px;
    transform: translateX(-100%);
    transition: transform 0.2s ease-out;
    z-index: 1050;
    padding: 1.25rem 1rem;
  }

  .sidebar .sidebar-brand {
    font-size: 1.1rem;
  }

  .sidebar .sidebar-brand-text {
    font-size: 1.05rem;
  }

  .sidebar .sidebar-brand-subtitle {
    font-size: 0.85rem;
  }

  .sidebar .sidebar-logo {
    height: 52px;
    width: 52px;
  }

  .sidebar .sidebar-nav .nav-link {
    font-size: 1.1rem;
    padding: 0.6rem 0.6rem;
  }

  .sidebar .language-switcher {
    font-size: 1.05rem;
  }

  .sidebar .language-switcher .language-link {
    font-size: 1.05rem;
  }

  .sidebar .sidebar-login .nav-link {
    font-size: 1rem;
  }

  body.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .layout-main {
    width: 100%;
  }

  .hero-overlay {
    padding: 1.5rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-actions {
    justify-content: flex-end;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(240, 255, 240, 0.96); /* very light green background */
  border-top: 2px solid #5a9e33;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.cookie-banner-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-banner-text {
  color: #155724; /* dark green text for contrast */
}

.cookie-banner-button {
  background-color: #5a9e33;
  border-color: #5a9e33;
  color: #ffffff;
  font-weight: 600;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.cookie-banner-button:hover,
.cookie-banner-button:focus {
  background-color: #4b842b;
  border-color: #4b842b;
  color: #ffffff;
}

@media (max-width: 576px) {
  .cookie-banner-content {
    align-items: flex-start;
  }
}
