/* ============================================================
   DATEI: services-tax-cat-accordion.css
   FUNKTION: Styles für Kategorie- & Begriffs-Accordion
   VERSION: FINAL PRODUCTION
============================================================ */

/* ============================================================
   1. GLOBAL / SHARED STYLES
============================================================ */

.sca-wrapper {
    width: 100%;
    margin: 0 auto;
}

.sca-item {
    border-bottom: 1px solid #7c7268;
    background: #fff;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

/* --- Header (Trigger) --- */
.sca-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    background-color: #fff;
    transition: background-color 0.3s ease;
}

.sca-header:hover {
    background-color: #fafafa;
}

.sca-item.sca-open .sca-header {
    background-color: #f9f9f9;
    border-bottom: 1px solid #191919;
}

/* Header Spalten */
.sca-img-col {
    width: 50px;
    height: 50px;
    margin-right: 25px;
    flex-shrink: 0;
    overflow: hidden;
}

.sca-img-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sca-title-col {
    flex-grow: 1;
    text-align: left;
}

.sca-title-col h3 {
    margin: 0;
    padding-bottom: 0;
    font-size: 20px;
    font-weight: 500;
    color: #191919 !important;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.sca-item.sca-open .sca-title-col h3 {
    color: #b7a89a !important;
    font-weight: 600;
}

.sca-icon-col {
    text-align: center;
    width: 40px;
}

.sca-toggle-icon {
    display: block;
    color: #191919;
    font-size: 30px;
    font-weight: 300;
    margin-top: -3px;
    transition: color 0.3s ease;
}

.sca-item.sca-open .sca-toggle-icon {
    color: #b7a89a;
    font-weight: 400;
}

/* --- Body Container --- */
.sca-body {
    padding: 30px 0 50px 50px;
    background-color: #fff;
    display: none;
}

.sca-divider-small {
    height: 20px;
}

.sca-related-label {
    font-size: 13px;
    font-weight: 700;
    color: #b7a89a;
    margin: -20px 0 10px 0;
    letter-spacing: 0.5px;
}


/* ============================================================
   2. CATEGORY MODE STYLES (Leistungen mit Bild)
============================================================ */

.sca-cat-mode .sca-row {
    position: relative;
    background-color: #fff;
    padding: 20px 25px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    border-left: 3px solid #eee8df;
    transition: all 0.3s ease;
}

.sca-cat-mode .sca-row:last-child {
    margin-bottom: 0;
}

.sca-cat-mode .sca-row:hover {
    border-left-color: #b7a89a;
    background-color: #fbfbfb;
}

.sca-cat-mode .sca-row-title {
    font-size: 18px;
    font-weight: 500;
    color: #191919;
    margin-bottom: 5px;
}

.sca-cat-mode .sca-row-text {
    font-size: 15px;
    line-height: 1.6;
    color: #7c7268;
    margin-bottom: 20px;
}

.sca-cat-mode .sca-btn {
    align-self: flex-start;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #b7a89a !important;
    text-decoration: none;
    border: 1.5px solid #b7a89a;
    padding: 3px 10px;
    transition: all 0.3s ease;
}

.sca-cat-mode .sca-btn:hover {
    color: #7c7268 !important;
    border-color: #7c7268;
}


/* ============================================================
   3. TERM MODE STYLES (Begriffe / Link-Liste)
============================================================ */

.sca-term-mode .sca-header {
    padding: 20px 20px;
}

.sca-term-mode .sca-title-col h3 {
    font-size: 16px !important;
}

.sca-term-mode .sca-row-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.sca-links-headline {
    font-size: 16px;
    text-transform: uppercase;
    color: #191919;
    font-weight: 600;
    margin: 30px 0 15px 0;
    border-bottom: 1px solid #eee8df;
    padding-bottom: 10px;
}

.sca-links-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sca-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.sca-link-row:hover {
    background: #f0f0f0;
    border-left-color: #b7a89a;
}

.sca-link-left span {
    font-weight: 500;
    color: #555;
}

.sca-simple-link {
    font-size: 13px;
    text-transform: uppercase;
    color: #b7a89a;
    text-decoration: none;
    font-weight: 600;
}

.sca-simple-link:hover {
    text-decoration: underline;
    color: #191919;
}


/* ============================================================
   4. RESPONSIVE
============================================================ */

/* Tablet (max 980px) */
@media (max-width: 980px) {
    .sca-cat-mode .sca-row-title { font-size: 17px !important; }
    .sca-title-col h3 { font-size: 18px !important; }
    .sca-related-label { font-size: 12px; }
    
    .sca-term-mode .sca-title-col h3 { font-size: 15px !important; }
}

/* Mobile (max 767px) */
@media (max-width: 767px) {
    .sca-header { padding: 20px 1rem; }
    .sca-body { padding: 20px 1rem !important; }
    
    .sca-img-col { margin-right: 15px; }
    .sca-title-col h3 { font-size: 16px !important; }
    .sca-related-label { font-size: 11px; }

    .sca-cat-mode .sca-row {
        padding: 15px 0;
        border-left: none !important;
        background: transparent !important;
        margin-bottom: 15px;
        border-bottom: 1px solid #eee;
    }
    .sca-cat-mode .sca-row-title { font-size: 16px !important; }
    .sca-cat-mode .sca-btn { margin-bottom: 15px !important; }

    .sca-term-mode .sca-title-col h3 { font-size: 14px !important; }
    .sca-term-mode .sca-row-text { font-size: 14px; text-align: center; }

    .sca-link-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .sca-link-right {
        align-self: center;
        width: 100%;
    }

    .sca-simple-link {
        display: inline-block;
    }

    .sca-links-headline {
        font-size: 12px;
        text-align: center;
    }
}