/*
 * ============================================================
 * header-overrides.css
 * Ergänzende Styles für die neue Navigation (JK Bestattungen)
 * In Joomla: Diese Datei in das Template-CSS einbinden oder
 * als eigene "Custom CSS" Datei im Template-Manager eintragen.
 * ============================================================
 */


/* ============================================================
   DESKTOP: Level-2 Submenü (z.B. Feuerbestattungen > Unterarten)
   ============================================================ */

/* Das verschachtelte LI als Positionierungsanker */
.submenu .submenu-nested {
    position: relative;
}

/* Das Level-2 Submenü: standardmäßig unsichtbar */
.submenu .submenu-level2 {
    position: absolute;
    top: -2px;
    /* bündig mit dem übergeordneten Eintrag */
    left: 100%;
    /* rechts neben dem Elternelement */
    background-color: rgba(0, 0, 0, 0.9);
    list-style: none;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    border-top: 2px solid #c9a961;
    z-index: 200;
}

/* Level-2 Submenü beim Hover auf den Elterneintrag einblenden */
.submenu .submenu-nested:hover>.submenu-level2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Pfeil-Indikator für Feuerbestattungen-Link (zeigt an, dass ein Sub-Submenü folgt) */
.submenu .submenu-nested>a::after {
    content: ' ›';
    font-size: 14px;
    margin-left: 6px;
    color: #c9a961;
}

/* Den Standard .arrow-Span im Sub-Submenü-Trigger ausblenden,
   da wir das › oben schon setzen */
.submenu .submenu-nested>a .arrow::after {
    display: none;
}


/* ============================================================
   MOBILE: Verschachteltes Accordion-Submenü
   (Level-2 unter Feuerbestattungen)
   ============================================================ */

/* Sub-Sub-Items standardmäßig versteckt (via JS toggled) */
.mobile-submenu .mobile-has-submenu .mobile-submenu {
    display: none;
    padding-left: 15px;
    padding-bottom: 5px;
    border-left: 2px solid #c9a961;
    margin-left: 5px;
}

/* Etwas kleinere Schrift für Level-2 Mobile-Einträge */
.mobile-submenu .mobile-has-submenu .mobile-submenu li a {
    font-size: 12px;
    color: #555;
    padding: 6px 0;
}

/* Mobile-Menu-Item innerhalb eines Submenüs (für Feuerbestattungen-Zeile) */
.mobile-submenu .mobile-has-submenu .mobile-menu-item {
    padding: 10px 0 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

/* Toggle-Button innerhalb des Submenüs etwas kleiner */
.mobile-submenu .submenu-toggle {
    font-size: 16px;
    width: 24px;
}


/* ============================================================
   ALLGEMEIN: Neue Top-Level Direktlinks
   (Im Trauerfall / Über uns / Sterbefälle ohne Dropdown)
   ============================================================ */

/* Diese drei Punkte sollen optisch wie die anderen Nav-Links aussehen,
   aber kein Dropdown-Verhalten haben */
.nav-links>li:not(.has-submenu)>a {
    /* Styling bereits durch .nav-links > li > a abgedeckt,
       hier nur sicherstellen dass kein Pfeil-Pseudo-Element erscheint */
    padding-right: 0;
}

/* Hover-Unterstrich-Effekt für Direktlinks (optional, konsistent mit Hauptnav) */
.nav-links>li:not(.has-submenu)>a:hover {
    color: #c9a961;
}


/* ============================================================
   MOBILE: Direktlinks (Im Trauerfall / Über uns / Sterbefälle)
   als einfache Listenelemente ohne Toggle
   ============================================================ */

.mobile-nav>ul>li:not(.mobile-has-submenu) {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.mobile-nav>ul>li:not(.mobile-has-submenu)>a {
    text-decoration: none;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    display: block;
}

.mobile-nav>ul>li:not(.mobile-has-submenu)>a:hover {
    color: #c9a961;
}


/* ============================================================
   FEUERBESTATTUNG – Übersichts-Section
   (direkt unter dem Hero-Bild auf feuerbestattungen.html)
   ============================================================ */

.feuer-uebersicht {
    background-color: #f7f5f0;
    padding: 70px 0 80px;
    border-bottom: 1px solid #e8e0d0;
}

.feuer-uebersicht__titel {
    text-align: center;
    font-size: 28px;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #333;
    margin-bottom: 16px;
    position: relative;
}

.feuer-uebersicht__titel::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: #c9a961;
    margin: 14px auto 0;
}

.feuer-uebersicht__intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    font-size: 15px;
    color: #666;
    line-height: 1.8;
}

/* Grid: 5 Karten nebeneinander auf Desktop */
.feuer-uebersicht__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

/* Einzelne Karte */
.feuer-karte {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid #e8e0d0;
    border-radius: 4px;
    padding: 36px 20px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    color: #333;
}

.feuer-karte:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #c9a961;
}

/* SVG Icon */
.feuer-karte__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    color: #c9a961;
    transition: color 0.3s ease;
}

.feuer-karte__icon svg {
    width: 100%;
    height: 100%;
}

.feuer-karte:hover .feuer-karte__icon {
    color: #a8883d;
}

/* Karten-Titel */
.feuer-karte__titel {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 14px;
}

/* Karten-Text */
.feuer-karte__text {
    font-size: 13px;
    color: #777;
    line-height: 1.7;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* „Mehr erfahren" Link-Text */
.feuer-karte__link {
    font-size: 12px;
    font-weight: 700;
    color: #c9a961;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.feuer-karte:hover .feuer-karte__link {
    color: #333;
}

/* Responsive: 3 Spalten auf Tablet */
@media (max-width: 1100px) {
    .feuer-uebersicht__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Responsive: 2 Spalten auf kleineren Tablets */
@media (max-width: 700px) {
    .feuer-uebersicht__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feuer-uebersicht__titel {
        font-size: 22px;
    }
}

/* Responsive: 1 Spalte auf Mobile */
@media (max-width: 480px) {
    .feuer-uebersicht__grid {
        grid-template-columns: 1fr;
    }

    .feuer-karte {
        flex-direction: row;
        text-align: left;
        gap: 16px;
        padding: 20px;
    }

    .feuer-karte__icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .feuer-karte__link {
        display: none;
        /* Auf Mobile genug Platz sparen */
    }
}


/* ============================================================
   IM TRAUERFALL – Kompakter Teaser (Hell)
   ============================================================ */

.trauerfall-teaser {
    background-color: #fcfaf7;
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

.trauer-teaser-header {
    text-align: center;
    margin-bottom: 40px;
}

.trauerfall-intro__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #c9a961;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.trauerfall-intro__titel {
    font-size: 28px;
    font-weight: 300;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.trauerfall-intro__quote {
    font-family: 'Times New Roman', serif;
    font-style: italic;
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.trauerfall-intro__quote small {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 1px;
    color: #c9a961;
    font-family: 'Roboto', sans-serif;
    font-style: normal;
}

/* Download Bereich */
.trauer-download {
    max-width: 850px;
    margin: 0 auto;
}

.trauer-download__box {
    background-color: #fff;
    border: 1px solid #e8e0d0;
    padding: 30px 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.trauer-download__info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
}

.trauer-download__info p {
    font-size: 14px;
    color: #666;
}

.trauer-download__btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background-color: #c9a961;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.trauer-download__btn svg {
    width: 18px;
    height: 18px;
}

.trauer-download__btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .trauer-download__box {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .trauer-download__btn {
        width: 100%;
        justify-content: center;
    }

    .trauerfall-intro__titel {
        font-size: 24px;
    }
}

/* ============================================================
   FOOTER – Ergänzungen für die neue Struktur
   ============================================================ */

.footer-sub-nav {
    list-style: none !important;
    padding: 8px 0 0 15px !important;
    margin: 0 !important;
}

.footer-sub-nav li {
    margin-bottom: 5px !important;
}

.footer-sub-nav li a {
    font-size: 12px !important;
    color: #999 !important;
    text-transform: none !important;
}

.footer-sub-nav li a:hover {
    color: #c9a961 !important;
}

.footer-column h3 {
    border-bottom: 2px solid #c9a961;
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

/* ============================================================
   SEITE "IM TRAUERFALL": SCHRITTE (Checklisten-Stil)
   ============================================================ */

.trauerhilfe-steps {
    padding: 20px 0 60px;
    background-color: #fff;
}

.trauerhilfe-steps__container {
    max-width: 850px;
    margin: 0 auto;
}

.step-box {
    background: #fff;
    border: 1px solid #e8e0d0;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.step-box:hover {
    border-color: #c9a961;
}

.step-box__main {
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.step-box__content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 5px;
    font-weight: 700;
}

.step-box__content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.step-box__btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.step-box__btn {
    display: inline-block;
    background-color: #c9a961;
    color: #fff;
    text-decoration: none;
    padding: 15px 30px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    transition: all 0.3s ease;
    min-width: 160px;
    text-align: center;
}

.step-box__btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.step-box__toggle-link {
    background: none;
    border: none;
    color: #c9a961;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color 0.3s;
}

.step-box__toggle-link:hover {
    color: #333;
}

.step-box__details {
    display: none;
    padding: 0 40px 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.step-box__details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-box__details li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.step-box__details li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #c9a961;
    font-weight: bold;
}

/* Arrow wurde entfernt */
.step-arrow {
    display: none;
}

/* ============================================================
   STARTSEITE: FANCY ANFRAGEFORMULAR
   ============================================================ */

.anfrage-section {
    padding: 100px 0;
    background-color: #f7f5f0;
    position: relative;
}

.anfrage-box {
    background: #fff;
    padding: 60px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border-top: 5px solid #c9a961;
    max-width: 900px;
    margin: 0 auto;
}

.anfrage-header {
    text-align: center;
    margin-bottom: 40px;
}

.anfrage-header h2 {
    font-size: 32px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.anfrage-header p {
    color: #777;
    font-size: 16px;
}

.anfrage-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: #c9a961;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 15px;
    background-color: #fcfcfc;
    transition: all 0.3s ease;
    width: 100%;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c9a961;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-submit {
    grid-column: span 2;
    text-align: center;
    margin-top: 20px;
}

.btn-anfrage {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 18px 50px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.btn-anfrage:hover {
    background-color: #c9a961;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .step-box__main {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .anfrage-box {
        padding: 40px 20px;
    }

    .anfrage-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: span 1;
    }

    .form-submit {
        grid-column: span 1;
    }
}