.hab-layout-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: flex-start; /* Zieht die linke Box strikt an die obere Kante */
    font-family: Helvetica, Arial, sans-serif;
}

/* --- Linke Box (Zusammenfassung) --- */
.hab-summary-box {
    flex: 0 0 245px;
    background-color: white;
    border: 1px solid #DBDBDB;
    border-top: 3px solid #292E49;
    padding: 15px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    color: #292E49;
}

.hab-summary-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 15px;
}

.hab-picbox {
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

.hab-bwidget {
    text-align: left;
    line-height: 1.4;
}

.hab-text {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 0.3px;
    color: #292E49;
}

.hab-bwidget .hab-score {
    font-size: 22px;
    color: #292E49;
    font-weight: normal;
}

.hab-bwidget .hab-stars {
    display: inline-block;
}
.hab-bwidget .hab-stars i {
    color: #D7C580;
    font-size: 18px;
}

/* Neuer unterer Bereich der Box */
.hab-summary-bottom {
    text-align: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.hab-count-text {
    display: block;
    font-size: 11px;
    color: #888;
    margin-bottom: 10px;
}

.hab-btn {
    display: block; /* Sorgt dafür, dass der Button die volle Breite einnimmt */
    background: #0066cc;
    color: #ffffff !important; /* Überschreibt Theme-Linkfarben */
    padding: 8px 10px;
    border-radius: 4px;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.3s;
}
.hab-btn:hover {
    background: #005bb5;
    color: #ffffff !important;
}


/* --- Rechte Box (Slider) --- */
.hab-slider-box {
    flex: 1;
    min-width: 0;
    position: relative;
}

.hab-swiper {
    width: 100%;
    height: 100%;
    /* Oben: 15px (Schatten), Rechts/Links: 5px (Schatten), Unten: 45px (Punkte) */
    padding: 15px 5px 45px 5px !important; 
    margin: -15px -5px -45px -5px !important; 
}

/* Die Bewertungskarte */
.hab-review-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: relative;
    height: 100%;
    box-sizing: border-box;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.hab-mini-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 26px;
    height: 26px;
}

.hab-review-header { margin-bottom: 10px; padding-right: 30px; }
.hab-review-header strong { display: block; font-size: 15px; color: #333; margin-bottom: 2px; }
.hab-review-header span { font-size: 12px; color: #999; }
.hab-review-stars { margin-bottom: 12px; }
.hab-review-stars i { color: #f39c12; font-size: 14px; }

.hab-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* --- Swiper Controls (Pfeile & Punkte) --- */
.hab-swiper .swiper-button-prev {
    left: 0; /* Bündig an den linken Rand */
}
.hab-swiper .swiper-button-next {
    right: 0; /* Bündig an den rechten Rand */
}

.hab-swiper .swiper-button-prev,
.hab-swiper .swiper-button-next {
    color: #ccc;
    transform: scale(0.6); 
    transition: color 0.3s;
    background: rgba(255, 255, 255, 0.8); /* Leichter weißer Hintergrund, damit sie auf den Karten lesbar bleiben */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin-top: -30px; /* Leicht nach oben korrigiert für optische Mitte */
}

.hab-swiper .swiper-button-prev:hover,
.hab-swiper .swiper-button-next:hover {
    color: #333;
    background: rgba(255, 255, 255, 1);
}

.hab-swiper .swiper-pagination-bullet {
    background: #ccc;
    opacity: 1;
}
.hab-swiper .swiper-pagination-bullet-active {
    background: #f39c12; /* Oranger Punkt für das aktive Element */
}

/* Mobile Ansicht */
@media (max-width: 768px) {
    .hab-layout-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .hab-summary-box {
        flex: 1 1 auto;
        width: 100%;
    }
    .hab-swiper {
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    .hab-swiper .swiper-button-prev,
    .hab-swiper .swiper-button-next {
        display: none; /* Pfeile auf Mobile ausblenden, da wischen reicht */
    }
}