/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden;
}

/* Header Styles - EXACT Replica of Joomla Logic with 2px gaps */
.header {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    background-color: white;
    position: relative;
    z-index: 200;
    padding-bottom: 0;
}

.linie_schmal {
    width: 100%;
    height: 4px;
    background-color: #e30613;
    position: relative;
    top: 30px;
    /* Starts at 30px, ends at 34px */
    z-index: 1;
}

.linie_dick {
    width: 100%;
    height: 56px;
    background-color: #e30613;
    position: relative;
    top: 38px;
    /* Starts at 38px */
    z-index: 1;
}

.headerlogos {
    position: relative;
    z-index: 100;
    margin-top: -58px;
    /* Pulls up. */
}

.logo_header {
    text-align: left;
}

.logo_header img {
    width: 100%;
    max-width: 709px;
    height: auto;
    background-color: #fff;
    padding: 0 15px;
    /* Creates gaps to the red lines */
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 0;
    z-index: 3;
    background: none;
    /* Remove blur/gradient */
}

.hero-overlay-left {
    left: 18%;
    /* Positioned further left */
}

.hero-overlay-right {
    left: 58%;
    /* Positioned relative to width, further left in right section */
    background: none;
    right: auto;
}

.hero-title {
    color: #fff;
    font-size: 2.2rem;
    font-weight: bold;
    text-transform: capitalize;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0;
    white-space: nowrap;
    padding: 10px 30px;
    display: inline-block;
}

.hero-overlay-left .hero-title {
    background-color: rgba(227, 6, 19, 0.85);
    /* Red transparent */
}

.hero-overlay-right .hero-title {
    background-color: rgba(201, 169, 97, 0.85);
    /* Gold transparent */
}

.hero-link {
    text-decoration: none;
    display: inline-block;
}

.hero-link:hover .hero-title {
    color: #e30613;
    transform: scale(1.05);
    transition: all 0.3s ease;
}

/* Navigation */
.navigation {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #e30613;
    border-bottom: 3px solid #b00510;
    position: relative;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navigation.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Spacer to prevent content jump when nav becomes fixed */
.nav-spacer {
    height: 0;
    transition: height 0.3s ease;
}

/* Navigation and Content Spacer Fix */
.nav-spacer.active {
    height: 65px;
    /* Match actual nav height */
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto;
}

.nav-item {
    flex: 1;
    min-width: 120px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-item:last-child {
    border-right: none;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    text-decoration: none;
    color: #fff;
    transition: background-color 0.3s ease;
    text-align: center;
    min-height: 65px;
}

.nav-link:hover {
    background-color: rgba(0, 0, 0, 0.15);
}

.nav-item.active .nav-link {
    background-color: rgba(0, 0, 0, 0.1);
}

.nav-text {
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 0.3px;
    display: block;
    margin-bottom: 2px;
}

/* Navigation Dropdown */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: none;
    list-style: none;
    padding: 0;
    z-index: 1000;
}

.bestattungen-theme .dropdown-menu {
    background-color: var(--funeral-gold);
}

.dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.bestattungen-theme .dropdown-menu li a {
    color: #000;
}

.dropdown-menu li a:hover {
    background-color: #f5f5f5;
}

.bestattungen-theme .dropdown-menu li a:hover {
    background-color: #fff;
}

.nav-item:hover .dropdown-menu {
    display: block;
}

.nav-subtext {
    font-size: 0.7rem;
    font-weight: normal;
    opacity: 0.95;
    display: block;
}

.dropdown-arrow {
    font-size: 0.6rem;
    margin-left: 3px;
}

/* --- Mobile Navigation & Hamburger --- */

.nav-mobile-header {
    display: none;
    /* Hidden on desktop */
    justify-content: flex-end;
    align-items: center;
    padding: 10px 20px;
    height: 60px;
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Hamburger Gold */
.gold-nav .hamburger span {
    background-color: #000;
}

/* Hamburger Animation (Open State) */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Nav Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive Breakpoint - Offcanvas starts here */
@media (max-width: 1024px) {
    .nav-mobile-header {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -300px;
        /* Start hidden off-screen */
        width: 300px;
        height: 100vh;
        background-color: #e30613;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 80px 0 40px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .gold-nav .nav-list {
        background-color: var(--funeral-gold);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-item {
        flex: none;
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        padding: 15px 25px;
        align-items: flex-start;
        text-align: left;
        min-height: auto;
    }

    /* Dropdown in Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
        padding-left: 20px;
    }

    .nav-item.dropdown-open .dropdown-menu {
        display: block;
    }

    .nav-item.has-dropdown .nav-link {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Disable sticky nav jump prevention for mobile if needed, or adjust */
    .nav-spacer.active {
        height: 60px;
    }
}

/* Navigation & Hamburger */
.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-15px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero adjustments at mobile - Layers stacked over image */
@media (max-width: 768px) {
    .hero-container {
        height: 550px !important;
        position: relative !important;
        display: block !important;
    }

    .hero-image {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
    }

    .hero-overlay {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 85% !important;
        text-align: center;
        z-index: 10 !important;
    }

    .hero-overlay-left {
        top: 25% !important;
    }

    .hero-overlay-right {
        top: 55% !important;
    }

    .hero-title {
        font-size: 1.7rem;
        width: 100%;
        padding: 15px 10px;
        display: block !important;
    }
}

/* Main Content */
.main-content {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #fff;
    padding: 40px 20px;
}

.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.main-heading {
    color: #e30613;
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.content-text {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 18px;
    color: #333;
}

/* Quality Statement Section */
.quality-section {
    background-image: url('images/Fotolia_134942937_M_schwarz.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.quality-overlay {
    background: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
}

.quality-content {
    text-align: left;
    color: #fff;
    width: 100%;
    max-width: 1100px;
    padding-left: 0;
}

.quality-heading {
    font-size: 2.8rem;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

.quality-text {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: normal;
}

/* Footer */
.footer {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    background-color: #e30613;
    color: #fff;
    padding: 35px 20px 15px;
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-left {
    flex: 1;
    min-width: 250px;
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 12px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 4px;
}

.footer-right {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    height: 55px;
    width: auto;
    background-color: #fff;
    padding: 4px;
    border-radius: 2px;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
}

.footer-copyright {
    font-size: 0.7rem;
    opacity: 0.9;
}

/* Unternehmen Page Styles */
.unternehmen-page {
    background-color: #fff;
    overflow-x: hidden;
}

/* Slider Section */
.slider-section {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 500px;
    background-color: #eee;
    overflow: hidden;
}

.slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-btn.prev {
    left: 20px;
}

.slider-btn.next {
    right: 20px;
}

/* Section Title red */
.section-title-red {
    color: #e30613;
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: bold;
    text-transform: none;
}

.section-title-red-bg {
    color: #e30613;
    font-size: 2.5rem;
    text-align: center;
    margin: 0 auto 40px;
    background-color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    padding: 10px 40px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Family Section */
.family-section {
    padding: 60px 20px;
}

.family-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.family-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.family-image .image-frame {
    border: 8px solid #f2f2f2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.family-image img {
    width: 100%;
    display: block;
}

/* Managers Section */
.managers-section {
    background-image: url('images/woodworking-691329_12802.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 20px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.managers-overlay {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.managers-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.manager-card {
    background: white;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.manager-card:hover {
    transform: translateY(-10px);
}

.manager-portrait {
    width: 300px;
    height: 380px;
    overflow: hidden;
    margin-bottom: 15px;
}

.manager-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.manager-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

/* Competence Section */
.competence-section {
    padding: 80px 20px;
    background-color: #fff;
}

.intro-text {
    text-align: center;
    font-size: 1.15rem;
    font-style: italic;
    margin-bottom: 40px;
    color: #666;
}

.competence-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-top: 20px;
}

.competence-subtitle {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #e30613;
    display: inline-block;
    padding-bottom: 5px;
}

.certificates-list {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cert-img {
    height: 180px;
    width: auto;
    border: 1px solid #ddd;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: scale 0.3s;
    cursor: pointer;
}

.cert-img:hover {
    scale: 1.05;
}

.single .cert-img {
    height: 250px;
}

.col-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
    margin-top: 15px;
}

.service-info {
    margin-top: 50px;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-left: 5px solid #e30613;
}

.service-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Team Section */
.team-section {
    padding-bottom: 80px;
}

.team-image-container {
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.team-photo {
    width: 100%;
    display: block;
}

.team-text {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: center;
}

.team-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #444;
}

/* Responsive slider and sections */
@media (max-width: 968px) {
    .slider-section {
        height: 350px;
    }

    .family-grid,
    .competence-grid {
        grid-template-columns: 1fr;
    }

    .manager-portrait {
        width: 260px;
        height: 330px;
    }

    .certificates-list {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .slider-section {
        height: 250px;
    }

    .section-title-red-bg {
        font-size: 1.8rem;
        padding: 8px 20px;
    }

    .manager-card {
        padding: 10px;
    }

    .manager-portrait {
        width: 100%;
        height: auto;
    }
}

/* Kontakt Page Styles */
.kontakt-page {
    background-color: #fff;
}

.kontakt-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background-color: #2e2e2e;
}

.hero-image-side {
    position: relative;
    overflow: hidden;
}

.aerial-view {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-info-side {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.info-and-map {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: #fff;
    padding: 25px;
    color: #333;
    border-radius: 2px;
}

.card-title {
    color: #e30613;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.company-name {
    font-weight: bold;
    margin-bottom: 15px;
}

.address p,
.communication p {
    margin-bottom: 5px;
    line-height: 1.4;
}

.communication a {
    color: #e30613;
    text-decoration: none;
}

.map-container {
    background: #444;
    border: 4px solid #fff;
    border-radius: 2px;
    height: 250px;
}

.social-promo {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.social-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.btn-red,
.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 2px;
    transition: transform 0.2s, background-color 0.2s;
    text-align: center;
    min-width: 140px;
}

.btn-red {
    background-color: #e30613;
}

.btn-red:hover {
    background-color: #c00510;
    transform: translateY(-2px);
}

.btn-gold {
    background-color: #b89150;
}

.btn-gold:hover {
    background-color: #a47f43;
    transform: translateY(-2px);
}

/* Form Section */
.form-section {
    padding: 80px 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.form-intro p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
}

.kontakt-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea,
.captcha-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e30613;
    outline: none;
}

.captcha-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
}

.captcha-group input {
    width: 120px;
}

.form-submit {
    text-align: right;
    margin-top: 10px;
}

.btn-submit {
    background-color: #e30613;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 2px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #c00510;
}

/* Responsive Kontakt */
@media (max-width: 1024px) {
    .kontakt-hero-grid {
        grid-template-columns: 1fr;
    }

    .info-and-map {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .social-buttons {
        flex-direction: column;
    }
}


/* Aktuelles Page Styles */
.aktuelles-page {
    background-color: #fff;
}

.news-hero {
    position: relative;
    width: 100%;
    height: 400px;
    background-image: url('images/slider8/final.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-content {
    text-align: center;
    color: #fff;
}

.news-hero-sub {
    display: block;
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    margin-bottom: 5px;
}

.news-hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: none;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.news-section {
    padding: 80px 20px;
}

.news-article {
    margin-bottom: 60px;
}

.article-heading {
    color: #e30613;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.news-article p {
    margin-bottom: 18px;
    line-height: 1.8;
    color: #444;
}

.highlight-box {
    background-color: #fff;
    border: 2px solid #e30613;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(227, 6, 19, 0.1);
}

.highlight-box h3 {
    color: #e30613;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.highlight-box .tel {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.highlight-box-grey {
    background-color: #f5f5f5;
    border-left: 5px solid #e30613;
    padding: 20px;
    margin: 25px 0;
}

.info-card {
    background: #fff;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.article-list {
    list-style: none;
    margin: 20px 0;
}

.article-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.article-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: #e30613;
}

.article-list-simple {
    list-style-type: square;
    margin: 20px 0 20px 20px;
    color: #555;
}

.article-list-simple li {
    margin-bottom: 8px;
}

.signature {
    margin-top: 20px;
    font-style: italic;
    color: #666;
}

.source-tag {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

.emphasized-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: #333;
    text-align: center;
    margin-top: 30px;
}

.testimonial-box {
    background: #fdfdfd;
}

.testimonial-content {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    font-style: italic;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.02);
}

.testimonial-sig {
    margin-top: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    font-style: normal;
}

.testimonial-sig span {
    font-size: 0.9rem;
    color: #888;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 50px;
    align-items: start;
}

.article-img {
    width: 100%;
    height: auto;
    border: 8px solid #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-divider {
    border: 0;
    border-top: 1px solid #eee;
    margin: 50px 0;
}

/* Responsive News */
@media (max-width: 968px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .news-hero-title {
        font-size: 2.5rem;
    }
}


/* Leistungen Page Styles */
.leistungen-page {
    background-color: #fff;
    overflow-x: hidden;
}

.leistungen-intro-section {
    padding: 60px 20px;
    background-color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    text-align: center;
    padding: 30px;
    background: #f9f9f9;
    border-top: 4px solid #e30613;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item .section-title-red {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* Bottom Slider Section */
.bottom-slider-section {
    padding: 60px 20px 100px;
    background-color: #f2f2f2;
}

.bottom-sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.bottom-slider-item {
    background: white;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.bottom-slider-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e30613;
    margin-bottom: 20px;
    height: 3rem;
    /* Keep titles aligned */
    display: flex;
    align-items: center;
}

.small-slider {
    height: 350px !important;
    margin-bottom: 20px;
}

.slider-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .bottom-sliders-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bottom-slider-title {
        height: auto;
    }
}

/* Bestattungen Page Specific Styles */

.bestattungen-theme {
    background-color: #1a1a1a;
    color: #fff;
}

/* Gold Theme Color */
:root {
    --funeral-gold: #b89150;
    --funeral-bg: #222;
}

.gold-line {
    background-color: var(--funeral-gold) !important;
}

.gold-header {
    background-color: #1a1a1a !important;
    border-bottom: 2px solid var(--funeral-gold);
}

.gold-header .logo_header img {
    background-color: #1a1a1a;
    padding: 0 15px;
    display: block;
}

/* Navigation - Gold */
.gold-nav {
    background-color: var(--funeral-gold);
    border-top: 1px solid #fff;
}

.gold-nav .nav-link {
    color: #000;
}

.gold-nav .nav-item.active .nav-link,
.gold-nav .nav-link:hover {
    background-color: #fff;
    color: var(--funeral-gold);
}

.gold-nav .nav-subtext {
    color: #333;
}

/* Hero Slider - Funeral */
.funeral-slider .slider-container {
    height: 500px;
}

.funeral-slider .slide {
    background-color: #000;
}

.funeral-slider .slide img {
    opacity: 0.7;
}

.slide-quote {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 80%;
    color: #fff;
}

.slide-quote p {
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 300;
    margin-bottom: 20px;
}

.quote-author {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Intro Section */
.funeral-intro-section {
    padding: 60px 20px;
    background-color: #1a1a1a;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: start;
}

.gold-heading {
    color: var(--funeral-gold);
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.funeral-intro-section p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #ccc;
}

.phone-gold {
    font-size: 1.3rem;
    color: var(--funeral-gold);
    font-weight: bold;
}

.phone-gold span {
    color: var(--funeral-gold);
    text-decoration: none;
}

.funeral-flyer {
    width: 100%;
    border: 5px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tabs Section */
.tabs-section {
    padding: 40px 0 80px;
    background-color: #1a1a1a;
}

.tabs-intro-title {
    color: var(--funeral-gold);
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.tabs-container {
    border: 1px solid #444;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap;
    background-color: #333;
}

.tab-btn {
    flex: 1 0 auto;
    padding: 15px 20px;
    background: none;
    border: none;
    border-right: 1px solid #444;
    border-bottom: 1px solid #444;
    color: #eee;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
    white-space: nowrap;
}

.tab-btn.active {
    background-color: var(--funeral-gold);
    color: #fff;
    border-bottom-color: var(--funeral-gold);
}

.tab-btn:hover:not(.active) {
    background-color: #444;
}

.tabs-content-wrapper {
    padding: 40px;
    min-height: 400px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #ddd;
}

.tab-subheading {
    color: var(--funeral-gold);
    font-size: 1.3rem;
    margin: 30px 0 15px;
    font-weight: bold;
}

.papers-list {
    list-style: none;
    margin-bottom: 30px;
}

.papers-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #ccc;
}

.papers-list li::before {
    content: "■";
    position: absolute;
    left: 0;
    color: var(--funeral-gold);
    font-size: 0.8rem;
    top: 3px;
}

/* Bottom Banner */
.funeral-bottom {
    background-image: url('images/DSC_7146.jpg');
    background-attachment: scroll;
}

.funeral-bottom .banner-overlay {
    background: rgba(0, 0, 0, 0.7);
    padding: 80px 0;
}

.funeral-bottom h2 {
    font-size: 2.22rem;
    font-weight: 300;
    color: #fff;
    text-align: left;
    max-width: 600px;
    line-height: 1.3;
}

/* Footer - Gold */
.gold-footer {
    background-color: #111;
    border-top: 5px solid var(--funeral-gold);
}

.gold-footer .footer-bottom {
    background-color: var(--funeral-gold);
    color: #000;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Obituaries Section */
.obituaries-section {
    padding: 60px 0 100px;
    background-color: #1a1a1a;
}

.obituary-intro {
    color: var(--funeral-gold);
    font-size: 1.1rem;
    margin-bottom: 40px;
    text-align: center;
}

.obituary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.obituary-card {
    background-color: #222;
    border: 1px solid #333;
    padding: 20px;
    border-top: 3px solid var(--funeral-gold);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.obituary-card .field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.obituary-card .label {
    color: var(--funeral-gold);
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.obituary-card .value {
    color: #eee;
    font-size: 0.95rem;
    line-height: 1.4;
}

.name-highlight {
    font-weight: bold;
    font-size: 1.1rem !important;
}

/* Archive Section */
.archive-section {
    border-top: 1px solid #333;
    padding-top: 60px;
}

.archive-title {
    color: var(--funeral-gold);
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 50px;
    font-weight: 300;
}

.archive-year {
    margin-bottom: 40px;
}

.archive-year h3 {
    color: var(--funeral-gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(184, 145, 80, 0.3);
    display: inline-block;
    padding-right: 20px;
}

.archive-year p {
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* Final Quote */
.final-quote-section {
    margin-top: 80px;
    text-align: center;
    padding: 40px;
    border-top: 1px solid #333;
}

.final-quote {
    font-size: 1.4rem;
    font-style: italic;
    color: #fff;
    margin-bottom: 15px;
}

.final-author {
    color: var(--funeral-gold);
    font-size: 1.1rem;
}

/* Hero Centered Heading */
.centered {
    text-align: center;
}

/* Tab Specialized Content Styles */
.tab-cta-box {
    margin-top: 40px;
    padding: 30px;
    background-color: #2a2a2a;
    border: 1px dashed var(--funeral-gold);
    text-align: center;
}

.tab-cta-box p {
    color: #fff;
    margin-bottom: 20px;
}

.tab-cta-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--funeral-gold);
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s;
}

.tab-cta-btn:hover {
    background-color: #fff;
    color: var(--funeral-gold);
}

.manager-quote-box {
    margin: 40px 0;
    padding: 30px;
    background-color: #222;
    border-left: 5px solid var(--funeral-gold);
}

.quote-title {
    color: var(--funeral-gold);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.manager-quote {
    font-style: italic;
    line-height: 1.8;
    color: #ccc;
    position: relative;
    padding: 0 20px;
}

.manager-quote::before {
    content: "„";
    position: absolute;
    left: -10px;
    top: -10px;
    font-size: 3rem;
    color: var(--funeral-gold);
    opacity: 0.3;
}

.disclaimer {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
    margin: 30px 0;
    border-top: 1px solid #333;
    padding-top: 15px;
}

/* Responsive */
@media (max-width: 1200px) {
    .obituary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .intro-grid {
        grid-template-columns: 1fr;
    }

    .gold-heading {
        font-size: 1.8rem;
    }

    .slide-quote p {
        font-size: 1.5rem;
    }

    .header-gold-jk {
        position: static;
        transform: none;
        margin-top: 15px;
    }
}

@media (max-width: 600px) {
    .obituary-grid {
        grid-template-columns: 1fr;
    }
}

/* News Hero Styles */
.news-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
}

.news-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-content {
    text-align: center;
}

.news-hero-sub {
    font-size: 1.8rem;
    font-style: italic;
    display: block;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.news-hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

/* Response for smaller screens */
@media (max-width: 768px) {
    .news-hero {
        height: 300px;
    }

    .news-hero-title {
        font-size: 2.2rem;
    }

    .news-hero-sub {
        font-size: 1.4rem;
    }
}

/* Aktuelles Page Styles */
.aktuelles-page {
    background-color: #fff;
    min-height: 80vh;
}

.news-section {
    padding: 60px 20px 100px;
    background-color: #fff;
}

.news-article {
    margin-bottom: 60px;
    padding-bottom: 40px;
}

.article-heading {
    font-size: 1.6rem;
    color: #e30613;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.3;
}

.article-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    align-items: start;
}

.article-body p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #333;
}

.article-sidebar img {
    width: 100%;
    height: auto;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.highlight-box {
    background-color: #f9f9f9;
    border-left: 4px solid #e30613;
    padding: 20px;
    margin-top: 25px;
}

.highlight-box h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
}

.highlight-box .tel {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e30613;
    margin-bottom: 5px;
}

.highlight-box-grey {
    background-color: #eee;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    font-size: 0.9rem;
}

.signature {
    font-style: italic;
    margin-top: 10px;
    color: #666;
}

.article-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0));
    margin: 50px 0;
}

.source-tag {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    margin-top: 20px;
}

.info-card {
    background-color: #fcfcfc;
    padding: 30px;
    border: 1px solid #eee;
}

.article-list {
    margin-left: 20px;
    margin-top: 15px;
}

.article-list li {
    margin-bottom: 8px;
    list-style-type: square;
    color: #444;
}

.article-list-simple {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.article-list-simple li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
}

.article-list-simple li::before {
    content: "•";
    color: #e30613;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.emphasized-text {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-top: 15px;
}

.cta-text {
    margin-top: 20px;
    color: #e30613;
}

.testimonial-box {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 4px;
}

.testimonial-intro {
    font-weight: bold;
    margin-bottom: 15px;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    background: #fff;
    padding: 20px;
    border-left: 3px solid #e30613;
}

.testimonial-sig {
    margin-top: 15px;
    font-weight: bold;
    font-style: normal;
    color: #333;
}

.testimonial-sig span {
    font-weight: normal;
    font-size: 0.85rem;
    color: #777;
}

@media (max-width: 900px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
        margin-bottom: 20px;
    }

    .article-sidebar img {
        max-width: 100%;
        height: auto;
    }
}

/* Slider Image Fixes */
.small-slider .slide img {
    object-fit: contain;
    /* Ensure full image is visible */
    background-color: #f5f5f5;
    /* Background for non-filling images */
}

.bottom-slider-item {
    height: auto;
    /* Allow flexible height */
}

.bottom-slider-item .slider-container.small-slider {
    height: 400px;
    /* Fixed height for consistency */
}