/*  navbar */

p {
    hyphens: auto;
    hyphenate-limit-chars: auto 3;
    hyphenate-limit-lines: 4;

    margin-bottom: 0.5rem;
}


.header-img {
    filter: invert(1);
    padding-bottom: 1rem;
    padding-top: 6rem;
    width: 90vw;
    max-width: 700px;
}

.header-img-small h1 {
    word-break: break-word;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 90vw;
}

@media (max-width: 576px) {
    .header-img-small h1 {
        font-size: calc(1.425rem + 2.1vw) !important;
    }
}


.leistung {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 1rem 1.25rem;
    
    margin-bottom: 2rem;
}
.leistung p {
    text-align: justify;
}

@media (min-width: 576px) {
    .leistung:nth-of-type(odd) {
        margin-left: 6rem;
    }
    .leistung:nth-of-type(even) {
        margin-right: 6rem;
    }
    
    
}



.navbar {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.nav-link {
    position: relative;
    transition: color .25s ease;
}
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translate(-50%, 0);
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width .3s ease;
}
.nav-link.active {
    font-weight: bold;
}
.nav-link.active::after {
    width: 90%;
}

.navbar .nav-link:hover {
    color: black;
}
.navbar .nav-link:hover::after {
    width: 90%;
}


/*

body.home #navbar {
    background: transparent;
    box-shadow: none;
}

body.home #navbar .nav-link,
body.home #navbar .navbar-brand {
    color: white !important;
}

body.home #navbar.navbar-scrolled {
    background: white !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

body.home #navbar.navbar-scrolled .nav-link,
body.home #navbar.navbar-scrolled .navbar-brand {
    color: black !important;
}

.nav-link {
    position: relative;
    transition: color .25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width .3s ease;
}

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


body.subpage #navbar .nav-link:hover {
    color: rgba(0, 0, 0, 0.6) !important;
}

body.home #navbar .nav-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
}

body.home #navbar.navbar-scrolled .nav-link:hover {
    color: rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 991px) {
    #navbar {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
    }

    #navbar .nav-link,
    #navbar .navbar-brand {
        color: black !important;
    }
}*/

/*  footer */

.footer-timetable {
    display: grid;
    grid-template-columns: min-content auto;
    column-gap: 1rem;
}
.footer-timetable > *:nth-child(odd) {
    white-space: nowrap;
}

#contact input::placeholder,
#contact textarea::placeholder {
    color: #999;
}

#contact input:focus,
#contact textarea:focus {
    border-color: #000 !important;
    box-shadow: none !important;
}

.opening-hours .fw-semibold {
    display: inline-block;
    min-width: 180px;
}

/* index */

/* for scroll sections to include the menu bar */
[id] {
    scroll-margin-top: 64px;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: .6;
    }
    50% {
        transform: translateY(8px);
        opacity: 1;
    }
}

.hero-btn {
    border-radius: 0;
    border-width: 2px;
    transition: all .25s ease;
    background: rgba(255, 255, 255, 0);
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border-color: #fff;

}

.hero-btn:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.25);
}

.split-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.split-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: top;
}

.split-info {
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 1rem 1.25rem;
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* leistungen */

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
}

.service-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform .4s ease;
}

.service-item:hover img {
    transform: scale(1.05);
}

.service-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 1.4rem 1.6rem;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    backdrop-filter: blur(1px);
    transition: background .3s ease;
}

.service-item:hover .service-overlay {
    background: rgba(0, 0, 0, 0.55);
}

.service-overlay h3 {
    margin: 0 0 .25rem 0;
}

.service-overlay p {
    margin: 0;
    font-size: 0.9rem;
    opacity: .9;
}

.download-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 1.5rem;
    border-radius: 6px;
    transition: border-color .25s ease, background .25s ease;
}

.download-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color .2s ease;
}

.download-list a:hover {
    color: #000;
    text-decoration: underline;
}

/* verlassenschaft */

.download-card {
    background: #fff;
    border: 1px solid #e7e7e7;
    padding: 1.5rem;
    border-radius: 6px;
    transition: border-color .25s ease, background .25s ease;
}

.download-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    transition: color .2s ease;
}

.download-list a:hover {
    color: #000;
    text-decoration: underline;
}






