:root {
    --primary: #005436;
    --primary-light: #64922f;
    --secondary: #EAF5FB;
    --white: #fff;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

.navbar .navbar-nav .nav-link {
    color: var(--primary);
}

/* Right-align main navigation (bootstrap_package 16 / v14 no longer does this by default).
   bs16's .navbar-nav has flex-grow:1;flex-basis:100% (fills the bar), so margin-left:auto
   has nothing to push against — align the nav items to the end instead. Desktop only;
   the mobile dropdown (< 992px) stays top-aligned. */
@media (min-width: 992px) {
    .navbar-mainnavigation .navbar-nav {
        justify-content: flex-end;
    }
}

/* Submenu behaviour/look to match the live site (desktop, >= 992px):
   - open the dropdown on hover instead of clicking a caret button
   - hide the caret toggle button (hover opens it)
   - show only the direct children (no 3rd level) as a simple single column
   The MainNavigation.html partial override forces the "simple" style; below
   992px the collapsed hamburger keeps the toggle so submenus expand on tap. */
@media (min-width: 992px) {
    /* anchor the absolute dropdown to its own nav item (only items with children
       get .nav-style-simple), so it positions relative to the item, not the navbar */
    .navbar-mainnavigation .navbar-nav > .nav-item.nav-style-simple {
        position: relative;
    }
    /* open on hover; scope to .nav-style-simple so childless items
       (e.g. "Links", "Kontakt") don't pop an empty dropdown box.
       Position below the item (offset from top) since hover-open skips
       Bootstrap's Popper, which would otherwise place it. */
    .navbar-mainnavigation .navbar-nav > .nav-item.nav-style-simple:hover > .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        margin-top: 0;
    }
    .navbar-mainnavigation .nav-link-toggle {
        display: none;
    }
    .navbar-mainnavigation .dropdown-menu .dropdown-nav .dropdown-nav {
        display: none;
    }
}

/* Galerien */

.carousel {
    border: 1px solid var(--gray-200);
}

.carousel .carousel-backgroundimage-fade {
    opacity: 0.5;
}

/* Carousel prev/next controls: legible on any photo.
   bootstrap_package fills the chevron with $primary (green), which vanishes on
   busy/green imagery. Use a white chevron on a circular dark scrim instead, and
   switch the scrim to the brand green on hover/focus. */
.carousel .carousel-control-prev,
.carousel .carousel-control-next {
    width: 4rem;
    opacity: 1;
}
.carousel .carousel-control-icon {
    width: 2.75rem;
    height: 2.75rem;
    max-width: none;
    border-radius: 50%;
    /* 0.55 scrim keeps the white chevron >= 4.5:1 even over a white sky
       (WCAG 1.4.11 non-text contrast); the inset ring defines the edge on
       dark images, the outer shadow lifts it off light ones. */
    background-color: rgba(0, 0, 0, 0.55);
    background-size: 1.125rem;
    background-position: center;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.35),
        0 0.125rem 0.5rem rgba(0, 0, 0, 0.4);
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel .carousel-control-prev .carousel-control-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel .carousel-control-next .carousel-control-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel .carousel-control-prev:hover .carousel-control-icon,
.carousel .carousel-control-next:hover .carousel-control-icon,
.carousel .carousel-control-prev:focus-visible .carousel-control-icon,
.carousel .carousel-control-next:focus-visible .carousel-control-icon {
    background-color: var(--primary);
    transform: scale(1.08);
}

.carousel .carousel-text-inner {
    filter: drop-shadow(0 0 3rem #000);
}

.carousel-header {
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0.125rem 0.25rem #000;
}

.carousel-subheader {
    text-shadow: 0 0.067rem 0.125rem #000;
}

.carousel-item {
    background: none !important;
}

.carousel-item .carousel-item-type-image .carousel-image img {
    height: 300px;
    width: auto;
}

#carousel-211 {
    border: none;
}

#carousel-211 .carousel-item {
    background: var(--gray-700) !important;
}

#carousel-211 .carousel-item-type-image .carousel-image img {
    height: auto;
    width: initial;
}

/* */

.texticon-inner-icon {
    color: var(--yellow);
}

.navbar-mainnavigation .navbar-brand-image {
    padding-top: 0;
    padding-bottom: 0;
}

.breadcrumb-link {
    color: var(--gray-700);
    text-decoration: underline;
}

.breadcrumb-link:hover {
    color: var(--gray-700);
    text-decoration: none;
}

.footer-section-meta {
    border-top: 1px solid var(--gray-800);
    --frame-link-color: var(--white);
    --frame-link-hover-color: yellow;
}

.footer-section-meta .frame {
    padding: 3.5rem 0 0.75rem;
}

.footer-section-meta {
    border-top: 2px solid black;
    box-shadow: 0 6px 4px -3px rgb(0 0 0 / 20%);
    background-image: url('/fileadmin/bilder/footer-stifteg.jpg');
    background-position-x: center;
    height: 196px;
    ;
}

/*.carousel .carousel-backgroundimage-container {*/
/*    opacity: 0.5;*/
/*}*/

/*.carousel .carousel-item {*/
/*    background: #000 !important;*/
/*}*/

.carousel .carousel-header {
    font-weight: 700;
}

#c259 {
    max-width: 700px;
    margin: 0 auto;
}

#c259 img {
    border-radius: 999px;
}

.frame-background-primary .frame-header h2 {
    color: var(--white);
}

.carousel-text-inner {
    text-shadow: 0 3px 9px rgba(0, 0, 0, 0.8);
}

@media (min-width: 1185px) {
    .navbar-mainnavigation {
        height: 111px;
    }

    .navbar-mainnavigation .navbar-brand {
        height: 95px;
    }

    .navbar-mainnavigation .navbar-brand-image img {
        max-height: 100%;
    }
}
