/* Decuria Styles - basierend auf Original TYPO3 Design */

:root {
    --theme-primary: #838e97;
    --theme-red: #b2464a;
    --theme-white: #ffffff;
    --theme-grey: #F8F8F8;
    --bodytext-color: #2C2C2C;
    --hover-link: #752327;
    --2level-hover: #d8a2a4;
    --border-color: #ECECF1;
    --theme-nav: rgba(195, 37, 44, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--bodytext-color);
    background: linear-gradient(to bottom, #343a3e 0%, #aeb5bc 100%) repeat-x;
    background-color: #aeb5bc;
    background-repeat: no-repeat;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.4px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* Typography */
p {
    font-size: 0.95rem;
    line-height: 26px;
    margin-bottom: 1rem;
}

li {
    font-size: 0.95rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
}

h2 {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 20px;
    color: var(--theme-red);
}

h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Links */
a {
    color: var(--theme-red);
    font-weight: bold;
    text-decoration: underline;
    outline: none;
}

a:hover,
a:focus {
    color: var(--hover-link);
    text-decoration: underline;
}

a:active {
    outline: none;
}

/* Utility Classes */
.no-padding {
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.no-padding-left {
    padding-left: 0 !important;
}

.no-padding-right {
    padding-right: 0 !important;
}

/* Header Styles */
.business-header {
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 0;
}

.headerimage {
    position: relative;
}

.logo {
    padding-top: 60px;
    padding-bottom: 60px;
}

.logo a {
    display: inline-block;
}

.logo img {
    height: auto;
    width: 222px;
}

/* Navigation Styles */
.headernavi {
    background: var(--theme-nav);
    padding: 0;
    height: 30px;
    line-height: 22px;
}

.navbar {
    --bs-navbar-color: var(--theme-white);
    padding: 0;
}

.navigation-padding {
    padding: 0;
}
/* .submenu {
    background-color: var(--hover-link);
    height: 30px;
} */

@media (min-width: 1400px) {
    .container {
	max-width: 1140px;
}
}
/* Desktop Navigation */
@media (min-width: 992px) {
    .navbar ul {
        padding: 0;
        margin: 0;
        list-style: none;
        position: relative;
        z-index: 999;
        height: 30px;
    }

/*     .ul-level2 {
        display: none;
    } */

    .navbar ul li {
        margin: 0;
        display: inline-block;
        float: left;
        padding-left: 0;
    }

    .navbar ul li a {
        font-family: 'Open Sans', sans-serif;
        display: block;
        padding: 0 20px 8px 20px;
        color: var(--theme-white);
        font-size: 15px;
        font-weight: bold;
        line-height: 28px;
        text-decoration: none;
        letter-spacing: 0.3px;
    }

    .navbar ul li.dropdown .arrow {
        display: inline-block;
        width: 14px;
        height: 9px;
        margin-left: 0;
        vertical-align: middle;
        background-image: url('../assets/img/chevron-down.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        padding-left: 20px;
    }

    /* .navbar ul li a:hover,
    .navbar ul li button.menu-button:hover {
        height: 30px;
    } */

    .navbar ul li.menuactive > a,
    .navbar ul li.menuactive > button.menu-button, .menuactive, .submenu-active {
        background-color: var(--hover-link);
        height: 30px;
        font-weight: 700;
    }
    
    /* Button Styling für Dropdown-Toggle */
    .navbar ul li button.menu-button {
        font-family: 'Open Sans', sans-serif;
        display: inline-block;
        padding: 0 6px 8px 20px;
        color: var(--theme-white);
        font-size: 15px;
        font-weight: bold;
        line-height: 28px;
        text-decoration: none;
        letter-spacing: 0.3px;
        background: none;
        border: none;
        cursor: pointer;
        outline: none;
    }
    
    .navbar ul li button.menu-button:focus {
        outline: none;
        box-shadow: none;
    }

    /* Dropdown Menu */
    .navbar ul ul {
        display: none;
        position: absolute;
        top: 30px;
        width: 240px;
        padding-top: 0;
        list-style: none;
    }

    .navbar ul li.dropdown.menuactive > ul {
        display: block;
        list-style: none;
    }

    .navbar ul ul li {
        width: 240px;
        float: none;
        display: list-item;
        position: relative;
        list-style: none;
        background-color: var(--theme-white);
    }

    .navbar ul ul li a {
        padding: 5px 18px;
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: black;
        margin: 1px 1px 0 1px;
        background-color: #b8bdc4;
    }

    .navbar ul ul li a:hover {
        padding: 5px 18px;
        margin: 1px 1px 0 1px;
        background-color: var(--2level-hover);
    }

    .navbar ul ul li:last-child a {
        margin: 1px 1px 1px 1px;
    }

    /* Third Level */
    .navbar ul ul ul {
        list-style: none;
    top: 0;
        left: 240px;
}

    .navbar ul ul ul li {
        list-style: none;
    }

    .navbar ul .lactive > a {
        background-color: var(--2level-hover);
    }

    .navbar ul .llactive > a {
        color: var(--theme-red);
}
}

/* Mobile Navigation */
.navbar-toggle {
    position: relative;
    left: 0;
    top: 8px;
    display: none;
    padding: 10px;
    margin-top: 0;
    margin-bottom: 8px;
    background-color: transparent;
    background-image: none;
    border: none;
    border-radius: 0;
}

.navbar-toggle:hover {
    background: transparent !important;
}

.navbar-toggle:focus,
.navbar-toggle:active {
    outline: none !important;
    box-shadow: none;
}

.navbar-toggle .icon-bar {
    width: 22px;
    display: block;
    height: 2px;
    border-radius: 1px;
    background-color: #ffffff;
    margin-bottom: 4px;
    transition: all 0.2s;
}

/* Animated Toggle */
/* MIT collapsed-Klasse = 3 Striche (zugeklappt/initial) - Bootstrap Standard */
.navbar-toggle.minus.collapsed .icon-bar {
    transform: translate3d(0, 0, 0);
}

/* OHNE collapsed-Klasse = 1 Strich (aufgeklappt) - alle Striche übereinander */
.navbar-toggle.minus:not(.collapsed) .icon-bar:nth-of-type(1) {
    transform: translate3d(0, 6px, 0);
}

.navbar-toggle.minus:not(.collapsed) .icon-bar:nth-of-type(3) {
    transform: translate3d(0, -6px, 0);
}

@media (max-width: 991px) {
    .navbar {
    position: relative;
        height: auto !important;
        min-height: 40px;
        margin-bottom: 0;
        z-index: 9;
        padding: 0;
        display: block;
}

    .navbar-nav {
        margin-bottom: 50px;
        padding-top: 20px;
    }

    .navbar ul {
        top: 0;
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    .navbar ul li {
        display: block;
        float: none;
    }

    .navbar ul li a,
    .navbar ul li button.menu-button {
        padding: 12px 20px;
        font-size: 14px;
        color: var(--theme-white);
        display: block;
        text-decoration: none;
    }
    
    .navbar ul li button.menu-button {
        width: calc(100% - 60px);
        text-align: left;
        background: none;
        border: none;
        cursor: pointer;
        outline: none;
        font-family: 'Open Sans', sans-serif;
        font-weight: bold;
    }
    
    .navbar ul li button.menu-button:focus {
        outline: none;
        box-shadow: none;
    }

    .navbar-collapse {
        position: relative;
        top: 40px;
        left: 0;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
        width: 100%;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
    }

    .navbar ul ul {
        display: none;
        background-color: rgba(0, 0, 0, 0.1);
        padding-left: 20px;
        overflow: hidden;
        height: 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .navbar ul li.menuactive > ul {
        display: block;
        height: auto;
        opacity: 1;
    }

    .navbar ul li.dropdown > a,
    .navbar ul li.dropdown > button.menu-button {
        position: relative;
        padding-right: 40px;
        width: calc(100% - 60px);
        display: inline-block;
    }

    .navbar ul li.dropdown .arrow {
        display: inline-block;
        position: relative;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        width: 9px;
        height: 14px;
        background-image: url('../assets/img/chevron-right.svg');
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        transition: transform 0.3s ease;
    }

    .navbar ul li.menuactive > ul {
        display: block;
    }

    .navbar ul li.dropdown.menuactive > a::after {
        transform: translateY(-50%) rotate(90deg);
    }

    .navbar-toggle {
        display: block;
    }
    ul li.menuactive li.lactive a {
        color: var(--theme-red);
    }
}

/* Content Area */
#content {
    flex: 1;
    padding: 0;
    background-color: transparent;
}
#content li {
    margin-bottom: 0;
}

.contentleft {
    background: linear-gradient(to bottom, #e3e3e3 0%, #ffffff 100%);
    padding: 80px;
}

.contentright {
    background: linear-gradient(to bottom, #dbd9da 0%, #ffffff 100%);
    border-left: 1px solid #ccc;
    padding-top: 130px;
    padding-left: 15px;
    padding-right: 15px;
}

/* Content Elements */
/* .frame {
    margin-bottom: 30px;
} */
 
/* .ce-bodytext {
    line-height: 1.8;
} */

.ce-bodytext p {
    margin-bottom: 1.2rem;
}

.ce-bodytext ul {
    margin: 20px 0;
    padding-left: 25px;
}

.ce-bodytext li {
    margin-bottom: 10px;
}

.ce-gallery .image img {
    max-width: 100%;
    height: auto;
}

.col-md-3 img {
    height: 100%;
    width: 100%;
}

/* Footer */
footer {
    padding: 3px 0 0 0;
    height: 30px;
    text-align: left;
    background-color: var(--theme-primary);
    color: var(--theme-white);
    margin-top: 0;
}

footer p {
    font-weight: 400;
    font-size: 13px;
    padding-left: 25px;
    line-height: 22px;
    margin: 0;
    color: var(--theme-white);
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: var(--theme-red);
}

.date {
    padding-left: 25px;
    font-size: 13px;
    text-align: left;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .logo img {
        height: auto;
        width: 180px;
    }

    .contentleft {
        padding: 40px;
    }

    .ce-gallery img {
        height: auto;
        width: 100%;
    }

    footer {
        height: auto;
    }
    .navbar-collapse {
        top: 0;
        border: none;
    }
    .navbar ul ul {
        background-color: transparent;
        border: none;
    }
    .dropdown-item:focus, .dropdown-item:hover {
        color: var(--theme-red);
        background-color: transparent;
    }

    .navbar .menuactive > a,
    .navbar .menuactive > button.menu-button {
        color: var(--theme-red);
        font-weight: 700;
    }
    .navbar ul li.dropdown.menuactive .arrow {
        transform: translateY(-50%) rotate(90deg);
    }
}

@media (max-width: 767px) {
    .logo img {
        width: 150px;
    }

    .contentleft {
        padding: 20px;
    }

    .contentright {
        padding-top: 0;
    }

    footer {
        height: auto;
        padding-bottom: 5px;
    }

    .date {
        text-align: left;
        margin-top: 10px;
    }
}
