:root {
  --bs-primary: #99a100;
  --bs-primary-rgb: 153, 161, 0;

  --bs-secondary: #d6d9a0;
  --bs-secondary-rgb: 214, 217,160;

  --bs-tertiary: #F4F1E8;
  --bs-tertiary-rgb: 244, 241, 232;

  --bs-success: #E28A3B;
  --bs-success-rgb: 226, 138, 59;

  --bs-info: #5bc0de;
  --bs-info-rgb: 91, 192, 222;

  --bs-warning: #f6c343;
  --bs-warning-rgb: 246, 195, 67;

  --bs-danger: #e5533d;
  --bs-danger-rgb: 229, 83, 61;

  --bs-light: #f7f7f7;
  --bs-light-rgb: 247, 247, 247;

  --bs-dark: #0f2e2a;
  --bs-dark-rgb: 15, 46, 42;
}

/* PRIMARY */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #8a9100;            /* etwas dunkler */
  --bs-btn-hover-border-color: #8a9100;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #7c8200;
  --bs-btn-active-border-color: #7c8200;

  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

/* SECONDARY */
.btn-secondary {
  --bs-btn-color: #0f2e2a;
  --bs-btn-bg: var(--bs-secondary);
  --bs-btn-border-color: var(--bs-secondary);

  --bs-btn-hover-color: #0f2e2a;
  --bs-btn-hover-bg: #c8cc90;
  --bs-btn-hover-border-color: #c8cc90;

  --bs-btn-active-color: #0f2e2a;
  --bs-btn-active-bg: #babc80;
  --bs-btn-active-border-color: #babc80;

  --bs-btn-focus-shadow-rgb: var(--bs-secondary-rgb);
}

/* OUTLINE PRIMARY */
.btn-outline-primary {
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #7c8200;         /* dunkler */
  --bs-btn-active-border-color: #7c8200;

  --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
}

/* OUTLINE SUCCESS */
.btn-outline-success {
  --bs-btn-color: var(--bs-success);
  --bs-btn-border-color: var(--bs-success);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--bs-success);
  --bs-btn-hover-border-color: var(--bs-success);

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c9751c;
  --bs-btn-active-border-color: #c9751c;

  --bs-btn-focus-shadow-rgb: var(--bs-success-rgb);
  transition: background 0.3s ease;
}

/* SUCCESS */
.btn-success {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--bs-success);
  --bs-btn-border-color: var(--bs-success);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #d9772a;
  --bs-btn-hover-border-color: #d9772a;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #c9751c;
  --bs-btn-active-border-color: #c9751c;

  --bs-btn-focus-shadow-rgb: var(--bs-success-rgb);
  transition: background 0.3s ease;
}

/* falls irgendwo link-primary / text-primary blau bleibt */
.link-primary,
.text-primary {
  color: var(--bs-primary) !important;
}

/* Background colors for custom color palette */
.bg-tertiary {
  background-color: rgba(var(--bs-tertiary-rgb), var(--bs-bg-opacity, 1)) !important;
}

.text-tertiary {
  color: var(--bs-tertiary) !important;
}

/* Stripe styles */
.stripe-even {
  background-color: #ffffff;
}

.stripe-odd {
  background-color: #f8f9fa;
}


#html-body, h1, h2, h3, h4, h5 {
	/* default font */
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#masthead-logo img {
	/* image for masthead logo */
	width: 100px;
}

#edit-page {
	/* the edit page link that appears when page is editable */
	position: absolute;
	top: 10px;
	right: 10px
}

#offcanvas-toggle {
	/* the hamburger icon that toggles the mobile navigation */
	position: absolute;
	top: 10px;
	left: 15px; 
}

#offcanvas-nav .uk-search-input {
	/* the search box that appears in offcanvas nav */
	width: 100%;
}

img.uk-comment-avatar {
	/* avatar that appears in comments */
	width: 60px;
	height: 60px; 
}

@media only screen and (max-width: 959px) {
	/* custom adjustments for mobile layouts under 960px */
	#masthead {
		/* primary nav is not visible, so it needs some padding here */
		padding-bottom: 20px;
	}
}


/****************************************************************
 * Bodycopy text and images
 *
 * These styles are good to have on any ProcessWire site
 *
 */

.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

figure {
	/* figure for image that has a caption */
	display: table;
	margin: 1em 0;
}

figure figcaption {
	/* display caption text below image contained to image width */
	display: table-caption;
	caption-side: bottom;
	font-size: 13px;
	line-height: 1.4em;
	margin-top: 5px;
	color: #777;
}

/* Highlight for images in block_image: subtle green (success) shadow + hover lift */
.img-highlight {
  display: block;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 .5rem 1.25rem rgba(var(--bs-success-rgb), 0.12), inset 0 0 0 1px rgba(var(--bs-success-rgb), 0.04);
  transition: transform .15s ease, box-shadow .15s ease;
}

a.js-lightbox .img-highlight:hover {
  box-shadow: 0 1rem 2rem rgba(var(--bs-success-rgb), 0.18), inset 0 0 0 1px rgba(var(--bs-success-rgb), 0.06);
}

@media only screen and (max-width: 767px) {
	/* common PW mobile layout adjustments for widths under 768px */ 

	.align_left, .align_right, .align_center {
		/* display images in center rather than aligned */
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}
	
	figure,
    figure figcaption {
		/* let figcaption display as wide as needed below image */
	    display: block;
	    text-align: center;
    }
}

#mainNavbar {
  height: 4em;
  /* background-image: url('images/Logo.png'); */
  /* background-color: #bfd72f !important; */
  /* background-size: cover; */
}

section[id] { scroll-margin-top: 6em; }

/* Smooth carousel transition */
.carousel-item {
  transition: opacity 0.6s ease-in-out;
}

/* Prevent global figure margins from creating white gaps inside carousels */
.carousel-item figure {
  margin: 0;
}

.carousel-item img {
  display: block;
}

.block-images-slide-img {
  max-width: 100%;
  max-height: 480px;
  width: auto;
  height: auto;
}

.block-images-carousel {
  margin-left: 0;
  margin-right: auto;
}

.block-images-carousel .carousel-item {
  text-align: center;
  line-height: 0;
}

.block-images-carousel .carousel-item figure {
  display: inline-block;
  vertical-align: top;
}

.carousel-control-close,
.carousel-control-prev,
.carousel-control-next {
  width: 3.5rem;
  height: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  opacity: 1;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1030;

  width: 2.5rem;
  height: 2.5rem;

  /* WICHTIG: raus damit */
  transform: none;

  /* Zentrieren */
  display: none;              /* bleibt versteckt */
  align-items: center;
  justify-content: center;

  padding: 0;
  line-height: 1;

  border: 0;
  outline: 0;
  box-shadow: none;

  opacity: 1;
}

.back-to-top.show {
  display: inline-flex;       /* oder flex */
}

.back-to-top i,
.back-to-top svg {
  display: block;
  color: #fff;
}

.back-to-top.show { display: inline-flex; }

.carousel-control-close { top: 1.5rem; right: 1.5rem; }
.carousel-control-prev { left: -0.5rem; }
.carousel-control-next { right: -0.5rem; }

.back-to-top,
.carousel-control-close-icon,
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: none;
}

.back-to-top,
.carousel-control-prev,
.carousel-control-next,
.carousel-control-close {
  background: rgba(var(--bs-success-rgb),.15);
  border-radius: 999px;
  transition: background 0.3s ease;
}

.back-to-top:hover,
.carousel-control-prev:hover,
.carousel-control-next:hover,
.carousel-control-close:hover {
  background: rgba(var(--bs-success-rgb), 1) !important;
}

.navbar .nav-link {
  position: relative;
  color: var(--bs-secondary);
}

.navbar .nav-link.active {
  color: var(--bs-light);
  font-weight: bolder;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--bs-light);
  transition: all .25s ease;
  transform: translateX(-50%);
}

.navbar .nav-link.active::after {
  width: 60%;
}

.shadow-top-sm {
  box-shadow: 0 -0.125rem 0.25rem rgba(0,0,0,.075);
}
.shadow-top {
  box-shadow: 0 -0.5rem 1rem rgba(0,0,0,.15);
}
.shadow-top-lg {
  box-shadow: 0 -1rem 3rem rgba(0,0,0,.175);
}

/* Override Bootstrap Reboot */
body {
  color: #2C3E50 !important;
}

/* Alle Links wie text-success, ohne Unterstreichung */
a {
  color: var(--bs-success);
  text-decoration: none;
}

/* Hover / Focus: etwas dunkler, aber immer ohne Linie */
a:hover,
a:focus {
  color: #146c43; /* Bootstrap success-dark */
  text-decoration: none;
}

/* visited & active ebenfalls clean */
a:visited,
a:active {
  color: var(--bs-success);
  text-decoration: none;
}

p a::before {
  content: "➜";
  margin-right: 0.4em;
  font-size: 0.9em;
}

/* Hero right media column: fixed height, image fills the box */
.hero-media-box {
  width: 100%;
  height: 480px;
}

.hero-media-box .carousel-item {
  height: 480px;
}

.hero-media-box figure {
  margin: 0;
}

.hero-media-fill {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.section-carousel-media {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.section-carousel-media-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 991.98px) {
  .hero-media-box,
  .hero-media-box .carousel-item {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .section-carousel-media {
    height: auto;
    aspect-ratio: 4 / 3;
  }
}

.image-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 0.85rem 1.25rem;

  background: rgba(var(--bs-success-rgb), 0.45);
  backdrop-filter: blur(2px);

  color: rgba(255,255,255,0.95);

  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: 0.015em;

  /* subtiler Text-Glow für Lesbarkeit */
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);

  border-radius: 0 0 1rem 1rem;
}

a.js-lightbox img { cursor: zoom-in; }
a.js-lightbox:hover img { opacity: 0.97; }

.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.86);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.lb-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .22s ease;
}
.lb-content {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 86vh;
}
.lb-img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  width: auto;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 1rem 3rem rgba(0,0,0,.35);
  background: #111;
  opacity: 1;
  transition: opacity .18s ease;
}
.lb-img.is-fading { opacity: 0; }
/* Close Button wie Carousel Controls */
.lb-close {
  position: absolute;
  right: .75rem;
  top: .75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s ease, transform .15s ease;
  background: rgba(0,0,0,.15);
}

.lb-close:hover {
  background: rgba(var(--bs-success-rgb), 1) !important;
}

/* X-Icon wie Bootstrap control icons (weiß) */
.lb-close-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;

  /* inline SVG (weißes X) */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M2.146 2.146a.5.5 0 0 1 .708 0L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8 2.146 2.854a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.lb-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lb-content .lb-img {
  margin-bottom: .25rem;
}
