
/* =========================================
   Beratungs-Kacheln – Grundlayout
   ========================================= */

.beratung-grid {
    --beratung-bordeaux: #5E0F3F;
    --beratung-rot: #9B021E;
    --beratung-orange: #FC8B25;
    --beratung-dunkelorange: #E36413;
    --beratung-petrol: #0E4C5B;

    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 1140px;
    margin: 20px auto;
    align-items: start;
}

/* =========================================
   Einzelne Kacheln
   ========================================= */

.beratung-item {
    min-width: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
}
.beratung-item p {
	margin-block-end: .5rem;
}
.beratung-item a {
	
}
/* Grundgestaltung der Kacheln */

.beratung-trigger {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    width: 100%;
    min-height: 100px;
    padding: 22px 20px;

    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    color: #ffffff !important;
    font: inherit;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;

    cursor: pointer;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: none;

    transition:
        filter 0.2s ease,
        opacity 0.2s ease;
}

/* Farbfolge */

.beratung-item:nth-child(5n + 1) .beratung-trigger {
    background: var(--beratung-bordeaux) !important;
}

.beratung-item:nth-child(5n + 2) .beratung-trigger {
    background: var(--beratung-rot) !important;
}

.beratung-item:nth-child(5n + 3) .beratung-trigger {
    background: var(--beratung-orange) !important;
}

.beratung-item:nth-child(5n + 4) .beratung-trigger {
    background: var(--beratung-dunkelorange) !important;
}

.beratung-item:nth-child(5n + 5) .beratung-trigger {
    background: var(--beratung-petrol) !important;
}

/* Alle Zustände gegen Theme- und Reset-Styles absichern */

.beratung-grid .beratung-item .beratung-trigger:hover,
.beratung-grid .beratung-item .beratung-trigger:focus,
.beratung-grid .beratung-item .beratung-trigger:focus-visible,
.beratung-grid .beratung-item .beratung-trigger:active,
.beratung-grid .beratung-item.is-open .beratung-trigger {
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Hover */

.beratung-grid .beratung-item .beratung-trigger:hover {
    opacity: 0.9;
}

/* Tastaturfokus */

.beratung-grid .beratung-trigger:focus-visible {
    outline: 3px solid #222222 !important;
    outline-offset: 3px;
    position: relative;
    z-index: 1;
}

/* =========================================
   Plus-Symbol
   ========================================= */

.beratung-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    font-size: 29px;
    font-weight: 300;
    line-height: 1;

    transition: transform 0.3s ease;
}

.beratung-item.is-open .beratung-icon {
    transform: rotate(45deg);
}

/* =========================================
   Aufklappbarer Inhalt
   ========================================= */

.beratung-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;

    background: #f5f5f5;

    transition:
        grid-template-rows 0.35s ease,
        opacity 0.25s ease,
        visibility 0.35s ease;
}

.beratung-item.is-open .beratung-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
}

.beratung-panel-inner {
    min-height: 0;
    overflow: hidden;
}

.beratung-inhalt {
    padding: 22px 20px 24px;
    color: #333333;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.beratung-inhalt > :first-child {
    margin-top: 0;
}

.beratung-inhalt > :last-child {
    margin-bottom: 0;
}

.beratung-inhalt a {
    color: #0E4C5B;
    overflow-wrap: anywhere;
    font-weight: 600;
	border-bottom: 1px solid #0E4C5B;
	text-decoration: none;
	display: inline-block;
	line-height: 18px;
}

.beratung-inhalt a:hover {
    text-decoration: none;
}

.beratung-inhalt h2,
.beratung-inhalt h3,
.beratung-inhalt h4 {
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    line-height: 1.3;
}

.beratung-inhalt ul,
.beratung-inhalt ol {
    padding-left: 1.4em;
}

/* =========================================
   Responsive Darstellung
   ========================================= */

/* Tablet */

@media (max-width: 900px) {
    .beratung-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Smartphone */

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

    .beratung-trigger {
        min-height: 76px;
        padding: 18px;
        font-size: 18px;
    }

    .beratung-inhalt {
        padding: 18px;
    }
}

/* Bewegungen bei entsprechender Systemeinstellung reduzieren */

@media (prefers-reduced-motion: reduce) {
    .beratung-trigger,
    .beratung-icon,
    .beratung-panel {
        transition: none !important;
    }
}


.beratung-inhalt h3 {
	font-size: 17px;
	font-weight: 700;
}