/* ==========================================================================
   Anderles Urlaubsthemen Stylesheet (Sauber getrennt & formschön)
   ========================================================================== */

.urlaubsthemen-wrapper {
    margin: 0 auto;
    color: var(--schwarz);
}

/* Header & Einleitung */
.urlaubsthemen-header {
    text-align: center;
    margin-bottom: 45px;
    padding: 0 25px;
    background: transparent;
}

.urlaubsthemen-header h3.wp-block-heading {
    color: var(--schwarz) !important;
    font-size: 1.85rem;
    line-height: 1.3;
    margin: 15px 0 16px 0;
    font-weight: 700;
}

.urlaubsthemen-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--schwarz) !important;
    margin: 0 auto;
}

/* Saison-Trennlinie */
.saison-trennlinie {
    margin: 45px 0 24px 0;
    padding-bottom: 14px;
    border-block: 3px solid var(--orange2);
}

.saison-untertitel {
    font-size: 1.05rem;
    color: var(--schwarz) !important;
    margin: 0;
    font-weight: 500;
    text-align: justify;
}

.themen-gruppe {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ----------------------------------------------------
   NEU: Intelligentes Flex-Layout (Karten & Drawer)
   ---------------------------------------------------- */
.themen-paar-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.themen-paar-flex .thema-teaser-card {
    width: calc(50% - 12px);
}

.themen-paar-flex.single-haupt .thema-teaser-card {
    width: 100%;
}

.themen-paar-flex .thema-full-drawer {
    width: 100%;
    margin-top: -10px; /* Zieht die Schublade optisch näher an die Karte */
    color: var(--weiss);
    text-align: justify;
}

/* REIHENFOLGE DESKTOP (Karte 1+2 oben, Schubladen drunter) */
.order-card-1 { order: 1; }
.order-card-2 { order: 2; }
.order-drawer-1 { order: 3; }
.order-drawer-2 { order: 4; }

/* Teaser-Karte */
.thema-teaser-card {
    position: relative;
    background: linear-gradient(var(--green1), var(--green2));
    padding: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    color: var(--permaweiss);
    box-sizing: border-box;
    cursor: default; /* Klick nur noch auf Button! */
}

.thema-teaser-card.zack {
    flex-direction: row-reverse;
}

/* Aktiver Teaser */
.thema-teaser-card.is-active {
    z-index: 10;
}

.thema-teaser-card.is-active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -14px;
    height: 16px;
    background: var(--green2);
    z-index: 11;
}

/* Teaser-Bild */
.thema-teaser-media {
    position: relative;
    flex: 0 0 170px;
    height: 130px;
    background: var(--green2);
    border: 1px solid var(--hintergrund);
    overflow: hidden;
}

.thema-teaser-card.thema-hauptpunkt-card .thema-teaser-media {
    flex: 0 0 250px;
    height: 160px;
}

.thema-teaser-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
    margin: 0;
}

.anderles-img-copyright {
    position: absolute;
    bottom: 0px;
    right: 0px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 0.68rem;
    line-height: 1.2;
    padding: 2px 6px;
    border-radius: 0px;
    pointer-events: none;
    z-index: 2;
}

.thema-teaser-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.thema-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.saison-badge, .kategorie-badge {
    background: var(--orange1);
    color: var(--schwarz);
    font-size: 0.72rem;
    padding: 4px 10px;
    border-radius: 20px;
}

.saison-badge { font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.kategorie-badge { font-weight: 600; border: 1px solid var(--orange1); }
.highlight-badge { font-weight: 700; }

.thema-teaser-card h3 {
    color: var(--permaweiss) !important;
    line-height: 1.35;
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.thema-teaser-card.thema-hauptpunkt-card h3 { font-size: 1.45rem; }

/* Ausklapp-Drawer */
.thema-full-drawer {
    position: relative;
    background: var(--green2);
    padding: 26px;
    box-sizing: border-box;
    color: var(--permaweiss);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 3;
}

.thema-full-drawer p {
    font-size: 0.96rem;
    line-height: 1.65;
    color: var(--permaweiss) !important;
    margin: 0 0 14px 0;
}

.thema-drawer-bilder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 10px 0 20px 0;
}

.thema-drawer-bilder-grid .ausstattung-bild {
    position: relative;
    border: 1px solid var(--hintergrund);
    overflow: hidden;
    background: var(--green2);
}

.thema-drawer-bilder-grid .ausstattung-bild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thema-full-drawer ul {
    list-style: none;
    padding-left: 0;
    margin: 18px 0 0 0;
    border-top: 3px solid var(--orange2);
    padding-top: 16px;
}

.thema-full-drawer ul li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    font-size: 0.93rem;
    line-height: 1.5;
    color: var(--weiss) !important;
}

.thema-full-drawer ul li:last-child { margin-bottom: 0; }

.thema-full-drawer ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 19px;
    background: var(--orange2);
    color: var(--weiss);
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.thema-full-drawer ul li strong { color: var(--weiss); }

/* BUTTON "MEHR ERFAHREN" */
.thema-btn-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
}

.thema-btn-more {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--permaweiss) !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 22px;
    background: linear-gradient(135deg, var(--braun1), var(--braun2));
    cursor: pointer;
    user-select: none;
}

.thema-btn-arrow {
    color: var(--permaweiss);
    font-size: 10px;
    display: inline-block;
}

.thema-btn-more:hover {
    background: linear-gradient(135deg, var(--braun2), var(--braun1));
}

/* RESPONSIVE & MOBILE REIHENFOLGE */
@media (max-width: 950px) {
    .themen-paar-flex {
        flex-direction: column;
        gap: 16px;
    }
    .themen-paar-flex .thema-teaser-card {
        width: 100%;
    }

    /* REIHENFOLGE MOBILE (Karte 1 -> Schublade 1 -> Karte 2 -> Schublade 2) */
    .order-card-1 { order: 1; }
    .order-drawer-1 { order: 2; }
    .order-card-2 { order: 3; }
    .order-drawer-2 { order: 4; }

    .thema-teaser-card, .thema-teaser-card.zack {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px;
        gap: 16px;
    }

    .thema-teaser-media, .thema-teaser-card.thema-hauptpunkt-card .thema-teaser-media {
        flex: 0 0 auto;
        width: auto;
        height: 100%;
        margin: 0 auto;
        max-height: 280px;
    }

    .thema-drawer-bilder-grid {
        grid-template-columns: 1fr;
    }
}
