:root {
    --epa-accent-tw: #ff8c42;
}

/* Abstand unter Header – WICHTIG */
body.tragwerksplanung-page {
    padding-top: 120px;
}

/* DESKTOP – Layout wie Energieberatung */
@media (min-width: 900px) {

    .epa-layout {
        display: flex;
        flex-direction: row;
        gap: 40px;
        width: 100%;
        padding: 0 40px;
        margin: 40px 0;
    }

    .epa-sidebar {
        width: 260px;
        display: flex;
        flex-direction: column;
    }

    .epa-sidebar button {
        background: rgba(255,255,255,0.45);
        backdrop-filter: blur(8px);
        border: none;
        border-bottom: 1px solid rgba(230,230,230,0.4);
        padding: 18px 20px;
        font-size: 1.05rem;
        font-weight: 600;
        color: #1a1a1a;
        text-align: left;
        white-space: normal;
        line-height: 1.35;
        position: relative;
        cursor: pointer;
        transition: 0.25s ease;
    }

    .epa-sidebar button:hover {
        background: rgba(255,255,255,0.75);
        transform: translateY(-2px);
    }

    .epa-sidebar button.active {
        background: rgba(255,255,255,0.25);
        backdrop-filter: blur(10px);
        color: var(--epa-accent-tw);
        font-weight: 700;
    }

    .epa-sidebar button.active::after {
        content: "";
        position: absolute;
        left: 10px;
        right: 10px;
        bottom: 0;
        height: 4px;
        background: var(--epa-accent-tw);
        box-shadow: 0 0 12px var(--epa-accent-tw), 0 0 24px var(--epa-accent-tw);
        border-radius: 4px;
    }

    .epa-content {
        width: 100%;
        display: block;
    }

    .hori-content {
        display: none;
    }

    .hori-content.active {
        display: block;
    }

    .hori-wrapper,
    .hori-menu {
        display: none !important;
    }
}

/* Inhalt-Grid */
.tw-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 80px;
    align-items: start;
}

/* Titelblock */
.tw-head-left {
    padding: 40px 40px 20px;
}

.tw-head-inner-left h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.tw-head-inner-left p {
    font-size: 1.3rem;
    opacity: 0.8;
}

/* Sektionen */
.tw-section {
    padding: 60px 40px;
}

.tw-text h2 {
    font-size: 2.1rem;
    margin-bottom: 16px;
}

.tw-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.9;
}

.tw-image img {
    width: 100%;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Mobile */
@media (max-width: 899px) {
    .tw-section {
        padding: 40px 20px;
    }

    .tw-inner {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .tw-image img {
        width: 100%;
        border-radius: 10px;
    }
}
