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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header Styles */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
}

/* Default state: Transparent with dark overlay */
.site-header {
    background-color: rgba(0, 0, 0, 0.4);
}

/* Top Bar */
.top-bar {
    padding: 10px 0 0 0;
    /* Reduced top padding from 20px */
    transition: all 0.4s ease;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    color: #fff;
    text-align: right;
    line-height: 1.4;
    margin-top: 15px;
    /* "Rutschen nach unten" - pushed down within the header */
}

.phone-number {
    font-size: 26px;
    /* Noch etwas größer im Normalzustand */
    font-weight: 700;
    transition: all 0.4s ease;
}

.availability {
    display: block;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.4s ease;
}

/* Main Header */
.main-header {
    padding: 5px 0 15px 0;
    /* Reduced top from 10px and bottom from 25px */
    transition: all 0.4s ease;
}

.header-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
}

/* Logo */
.logo img {
    height: 105px;
    /* Slightly smaller logo to fit the narrower header */
    width: auto;
    display: block;
    transition: all 0.4s ease;
}

/* Desktop Navigation */
.desktop-nav {
    display: block;
    margin-left: 30px;
    flex-grow: 1;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
    /* Reduced gap slightly to provide more space */
    white-space: nowrap;
}

.nav-links>li {
    position: relative;
}

.nav-links>li>a {
    text-decoration: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-links>li:hover>a {
    color: #c9a961;
}

.arrow::after {
    content: ' ▼';
    font-size: 9px;
    margin-left: 5px;
    opacity: 0.8;
}

.submenu .arrow::after {
    content: ' ►';
}

/* Submenu */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    list-style: none;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-top: 2px solid #c9a961;
    z-index: 100;
}

.nav-links li:hover>.submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li {
    position: relative;
}

.submenu .submenu {
    top: -2px;
    /* align using border correction */
    left: 100%;
    /* push next to parent */
    border-top: 2px solid #c9a961;
}

.submenu li a {
    text-decoration: none;
    color: #fff;
    padding: 10px 20px;
    display: block;
    font-size: 12px;
    transition: all 0.3s ease;
}

.submenu li:hover>a,
.submenu li a:hover {
    background-color: #c9a961;
    color: #fff;
}

/* Sticky Header State */
.site-header.scrolled {
    background-color: #c9a961;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
}

.site-header.scrolled .availability {
    display: none;
}

.site-header.scrolled .phone-number {
    font-size: 17px;
    /* Kompakt im Scroll-Zustand */
}

.site-header.scrolled .contact-info {
    margin-top: 0;
    /* Keinen Extra-Abstand im Scroll-Zustand */
}

.site-header.scrolled .top-bar {
    padding: 2px 0 0 0;
}

.site-header.scrolled .main-header {
    padding: 5px 0;
}

.site-header.scrolled .logo img {
    height: 80px;
}

.site-header.scrolled .nav-links>li>a {
    color: #fff;
}

.site-header.scrolled .nav-links>li:hover>a {
    color: #000;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    position: absolute;
    right: 0;
    bottom: 10px;
}

#hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
}

#hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Mobile Offcanvas */
.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    z-index: 2000;
    transition: right 0.3s ease;
    padding: 60px 20px 20px;
    display: flex;
    flex-direction: column;
}

.mobile-offcanvas.active {
    right: 0;
}

.offcanvas-header {
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.offcanvas-logo {
    text-align: center;
    margin-bottom: 30px;
}

.offcanvas-logo img {
    height: 100px;
}

.mobile-nav ul {
    list-style: none;
}

.mobile-nav>ul>li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.submenu-toggle {
    font-size: 20px;
    cursor: pointer;
    width: 30px;
    text-align: center;
}

.mobile-submenu {
    display: none;
    padding-left: 20px;
    padding-bottom: 10px;
}

.mobile-submenu li a {
    font-weight: 400;
    font-size: 13px;
    padding: 8px 0;
    display: block;
}

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

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

/* Hero Section Simulation */
.hero {
    height: 80vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/Bestattung-in-Saarland.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 1250px) {
    .nav-links {
        gap: 15px;
    }

    .nav-links>li>a {
        font-size: 11px;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 80px 0 0;
    font-size: 14px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

.footer-column h3 {
    color: #c9a961;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #c9a961;
}

.footer-column p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.footer-logo img {
    height: 60px;
    margin-top: 15px;
    filter: brightness(0.9);
}

.footer-nav,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-nav li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-nav a,
.footer-contact a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: #c9a961;
}

.footer-contact strong {
    color: #fff;
    display: block;
    margin-bottom: 4px;
}

.footer-bottom {
    background-color: #111;
    padding: 30px 0;
    border-top: 1px solid #222;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-legal a {
    color: #666;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #c9a961;
}

.heart {
    color: #e25555;
    margin: 0 2px;
}

.agency-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.agency-link:hover {
    color: #c9a961;
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 50px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links>li>a {
        font-size: 12px;
    }
}

@media (max-width: 1100px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .top-bar {
        padding: 5px 0;
    }

    .logo img {
        height: 70px;
    }
}

@media (max-width: 991px) {

    .desktop-nav {
        display: none;
    }

    .top-bar {
        display: block;
        /* Nummer soll immer zu sehn sein */
        padding: 5px 0 0 0;
    }

    .phone-number {
        font-size: 20px;
        /* Größer auf Mobile ungescrollt */
    }

    .site-header.scrolled .phone-number {
        font-size: 16px;
    }

    .mobile-toggle {
        display: block;
    }

    .header-content {
        justify-content: space-between;
        align-items: center;
    }

    .main-header {
        padding: 10px 0;
    }

    .logo img {
        height: 60px;
    }

    .mobile-toggle {
        position: static;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }

    .contact-info {
        justify-content: center;
    }
}

/* =========================================
   Content Sections
   ========================================= */

/* =========================================
   Content Sections
   ========================================= */

main {
    padding-top: 0 !important;
    margin-top: -130px !important;
    /* Forces content up behind the header */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
    left: 0;
    z-index: 0;
}

/* Hero Section */
.hero-section {
    background-size: cover;
    background-position: center top;
    /* Anchored to top so header overlaps correct area */
    height: 750px;
    /* Increased height for impact under header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 0;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-quote {
    font-size: 32px;
    font-weight: 300;
    line-height: 1.4;
    margin-bottom: 20px;
    font-style: italic;
    font-family: 'Times New Roman', Times, serif;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-author {
    font-size: 18px;
    font-weight: 700;
    color: #c9a961;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Intro Section */
.intro-section {
    padding: 80px 0;
    text-align: center;
    background-color: #fff;
}

.section-title {
    font-size: 32px;
    color: #333;
    margin-bottom: 30px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #c9a961;
    margin: 15px auto 0;
}

.intro-text {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 16px;
    color: #666;
    line-height: 1.8;
}

.regional-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn-regional {
    display: inline-block;
    padding: 12px 25px;
    background-color: #fff;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 2px;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-regional:hover {
    background-color: #c9a961;
    border-color: #c9a961;
    color: #fff;
}

/* Services / Info Grid */
.services-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

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

.service-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.service-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: #c9a961;
}

.service-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.service-list li::before {
    content: '►';
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 10px;
    color: #c9a961;
}

.service-list li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s ease;
}

.service-list li a:hover {
    color: #c9a961;
}

.read-more {
    display: inline-block;
    color: #c9a961;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #333;
}

/* Split Section (Image + Text) */
.split-section {
    padding: 80px 0;
}

.split-section.dark-bg {
    background-color: #333;
    color: #fff;
}

.split-section.light-bg {
    background-color: #fff;
    color: #333;
}

.split-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-section.reversed .split-content {
    flex-direction: row-reverse;
}

.split-image {
    flex: 1;
}

.split-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.split-text {
    flex: 1;
}

.split-text h3 {
    font-size: 24px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 700;
    color: inherit;
    position: relative;
    padding-bottom: 15px;
}

.split-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #c9a961;
}

.dark-bg .split-text h3 {
    color: #fff;
}

.split-text p {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: inherit;
    opacity: 0.9;
}

.btn-primary {
    display: inline-block;
    padding: 15px 35px;
    background-color: #c9a961;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 700;
    border-radius: 2px;
    transition: background 0.3s ease;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background-color: #b08d45;
}

/* Products Section (Urns & Coffins) */
.products-section {
    padding: 100px 0;
    background-color: #fff;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.product-item {
    text-align: center;
    padding: 20px;
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    height: 200px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto 25px;
    object-fit: contain;
}

.product-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

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

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .split-content {
        flex-direction: column !important;
        gap: 40px;
    }

    .intro-text,
    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 100px;
    }

    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-quote {
        font-size: 24px;
    }

    .intro-text {
        font-size: 15px;
    }

    .regional-links {
        flex-direction: column;
        align-items: center;
    }

    .btn-regional {
        width: 100%;
        text-align: center;
        max-width: 300px;
    }

    .split-text h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .split-text {
        text-align: center;
    }

    .service-item h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .service-item {
        text-align: center;
    }

    .service-list li {
        text-align: left;
        display: inline-block;
    }
}

/* Quick Links Section */
.quick-links-section {
    padding: 40px 0;
    background-color: #fff;
}

.quick-links-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.btn-gold {
    display: inline-block;
    padding: 12px 30px;
    background-color: #c9a961;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border-radius: 2px;
    transition: background 0.3s ease;
    min-width: 160px;
    text-align: center;
    cursor: pointer;
}

.btn-gold:hover {
    background-color: #b08d45;
}

/* Regional Grid (4 columns) */
.regional-section {
    padding: 40px 0;
    background-color: #fff;
}

.regional-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: left;
}

.regional-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #1f1f1f;
    /* subtle border matching dark theme nuance? No, keep it light */
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.regional-item h3 {
    font-size: 16px;
    color: #c9a961;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 700;
}

.regional-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* FriedWald Banner */
.friedwald-banner {
    padding: 40px 0;
    text-align: center;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.friedwald-banner h2 {
    font-size: 24px;
    font-weight: 300;
    color: #333;
    margin: 0;
}

.friedwald-banner a {
    color: #c9a961;
    text-decoration: none;
    font-weight: 700;
}

/* Service Types Grid (5 columns) */
.service-types-section {
    padding: 60px 0;
    background-color: #fff;
}

.service-types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

.service-type-item {
    padding: 15px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.service-type-item:hover {
    border-color: #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.service-type-item h5 {
    color: #c9a961;
    font-size: 16px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.service-type-item p {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* Split Section Utilities */
.light-bg {
    background-color: #fff;
}

.dark-bg {
    background-color: #333;
    color: #fff;
}

/* Responsive adjustments for new grids */
@media (max-width: 991px) {
    .regional-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .quick-links-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .quick-links-wrapper .btn-gold {
        width: 100%;
        max-width: 300px;
    }

    .regional-grid {
        grid-template-columns: 1fr;
    }

    .service-types-grid {
        grid-template-columns: 1fr;
    }
}

/* Service Icons */
.service-icon {
    display: block;
    margin: 0 auto 20px;
    height: 60px;
    /* Adjust based on actual icon aspect ratio */
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/* Quote Banner */
.quote-banner {
    padding: 100px 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    position: relative;
    color: #fff;
    background-color: #222;
    /* Fallback */
}

.quote-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
}

.quote-banner .container {
    position: relative;
    z-index: 1;
}

.quote-banner h2 {
    font-size: 28px;
    font-weight: 300;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto 30px;
    font-style: italic;
}

.divider-gold {
    width: 80px;
    height: 3px;
    background-color: #c9a961;
    margin: 0 auto;
}

/* Info Grid Section (4 Pillars) */
.info-grid-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.info-item {
    padding: 30px 20px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Soft card shadow */
    transition: transform 0.3s ease;
}

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

.info-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: #c9a961;
}

.info-item h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-item p {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Partners Section */
.partners-section {
    padding: 60px 0;
    background-color: #fff;
    border-top: 1px solid #eee;
}

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

.partner-item img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    /* Make logos grayscale and consistent */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Responsive updates for new sections */
@media (max-width: 991px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .partners-grid {
        gap: 30px;
    }

    .quote-banner h2 {
        font-size: 20px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

.hero-content {
    margin-top: 150px;
}


.hero-section {
    height: 800px !important;
}

/* =========================================
   Subpage Specific Styles (e.g. Abschiednahme)
   ========================================= */


.subpage-hero {
    height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    margin-top: 0;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.subpage-hero .container {
    position: relative;
    z-index: 1;
}

.subpage-hero h1 {
    font-size: 44px;
    font-weight: 300;
    margin: 0;
    padding-top: 150px;
    letter-spacing: 1px;
}

/* Subpage Header Background */
.site-header.subpage-header-bg {
    background: url('http://bestattungen.schreinerei-kleinundsoehne.de/images/bg-post@2x.jpeg') no-repeat center center / cover !important;
}

/* body.home .site-header.subpage-header-bg {
    background-image: none !important;
} */

.page-content-wrapper {
    padding: 100px 0;
    background-color: #fff;
}

.page-content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

@media (max-width: 991px) {
    .page-content-grid {
        grid-template-columns: 1fr;
    }

    .content-left-spacer {
        display: none;
    }
}

.main-text-block {
    color: #888;
    font-size: 16px;
    line-height: 1.8;
}

.main-text-block p {
    margin-bottom: 30px;
}

.side-contact-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 60px;
}

.contact-info-card {
    background-color: #262626;
    color: #fff;
    padding: 50px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-info-card h3 {
    color: #c9a961;
    font-size: 22px;
    margin-bottom: 25px;
    font-weight: 700;
    text-transform: uppercase;
}

.contact-info-card h4 {
    font-size: 19px;
    margin-bottom: 25px;
    font-weight: 400;
    color: #fff;
}

.contact-info-card p {
    margin-bottom: 12px;
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
}

.contact-info-card .contact-links {
    margin-top: 25px;
}

.contact-info-card a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}


/* =========================================
   Image Gallery Styles
   ========================================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    aspect-ratio: 3 / 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

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

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.gallery-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #c9a961;
    display: inline-block;
    padding-bottom: 5px;
}

/* Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 3px solid #fff;
    border-radius: 4px;
    animation: zoomIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 3001;
}

.lightbox-close:hover {
    color: #c9a961;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery-item {
    cursor: pointer;
}

/* Extracted Common Styles */
.main-text-block h2 {
    color: #333;
    font-size: 24px;
    font-weight: 400;
    margin: 40px 0 20px;
    text-transform: none;
    letter-spacing: normal;
}

.main-text-block h2:first-child {
    margin-top: 0;
}

/* Default H3 (Gold/Bold) */
.main-text-block h3 {
    color: #c9a961;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
}

/* Regional Page H3 Override (Grey/Normal) */
.regional-page .main-text-block h3 {
    color: #333;
    font-weight: 400;
}

.main-text-block ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.main-text-block li {
    margin-bottom: 10px;
}

/* From aktuelles.html */
/* News Item (similar to Death Notice) */
.news-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-left: 4px solid #c9a961;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.news-item h2 {
    font-size: 20px;
    /* font-weight: 700; */
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
    margin-top: 0;
}

.news-item .dates {
    display: block;
    font-size: 13px;
    color: #c9a961;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.news-item p {
    margin-bottom: 10px;
    color: #555;
    font-size: 15px;
}

/* From bestattungen-nach-region.html */
.region-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.region-item {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #eee;
    color: #333;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
}

.region-item:hover {
    background: #c9a961;
    color: #fff;
    border-color: #c9a961;
}

@media (max-width: 991px) {
    .region-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .region-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* From bestattungsarten.html */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.overview-item {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.overview-item:hover {
    transform: translateY(-5px);
    border-bottom-color: #c9a961;
}

.overview-item h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.overview-item .arrow-icon {
    color: #c9a961;
    font-size: 24px;
    margin-top: auto;
}

@media (max-width: 991px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* From naturbestattungen.html */
.main-text-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.main-text-block ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* From seebestattungen.html */
.main-text-block ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.main-text-block ul li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* From sterbefaelle.html */
.death-notice {
    background: #f9f9f9;
    padding: 30px;
    margin-bottom: 30px;
    border-left: 4px solid #c9a961;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.death-notice h2 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
    text-transform: uppercase;
}

.death-notice .dates {
    font-weight: 700;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.death-notice p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* From ueber-uns.html */
.main-text-block h4 {
    color: #c9a961;
    font-size: 20px;
    font-weight: 700;
    margin: 30px 0 15px;
}

.main-text-block h2:first-child,
.main-text-block h4:first-child {
    margin-top: 0;
}

/* From unsere-leistungen.html */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.overview-item {
    background: #fff;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.overview-item:hover {
    transform: translateY(-5px);
    border-bottom-color: #c9a961;
}

.overview-item h3 {
    font-size: 20px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
}

.overview-item .arrow-icon {
    color: #c9a961;
    font-size: 24px;
    margin-top: auto;
}

@media (max-width: 991px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* From urnen-und-saerge.html */
.product-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-overview-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.product-overview-item:hover {
    transform: translateY(-5px);
    border-bottom-color: #c9a961;
}

.product-overview-item h3 {
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-overview-item .icon {
    font-size: 30px;
    color: #c9a961;
    margin-bottom: 15px;
}

@media (max-width: 991px) {
    .product-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* =========================================
   Form Modal specific CSS
   ========================================= */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 4000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.form-modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.form-modal-overlay.active .form-modal-content {
    transform: translateY(0);
}

.form-modal-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.form-modal-content h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.form-modal-content p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-anfrage {
    display: inline-block;
    padding: 15px 35px;
    background-color: #c9a961;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    border-radius: 2px;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-anfrage:hover {
    background-color: #b08d45;
}

/* Loading effect for form button */
.btn-anfrage.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-anfrage.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spinButton 1s infinite linear;
}

@keyframes spinButton {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}