/* Styling für Tabs */
.hpb-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ccc;
    margin: 0 0 20px 0;
    padding: 0;
    list-style: none;
}
.hpb-tab-item a {
    padding: 10px 20px;
    display: block;
    text-decoration: none;
    color: #555;
    border-bottom: 3px solid transparent;
}
.hpb-tab-item.active a {
    font-weight: bold;
    color: #000;
    border-bottom-color: #000;
}
.hpb-tab-pane {
    display: none;
}
.hpb-tab-pane.active {
    display: block;
}

/* Styling für die Kursliste */
.hpb-kurs-liste {
    list-style: none;
    padding: 0;
    margin: 0;
}
.hpb-kurs-item a {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}
 .hpb-kurs-item a:hover {
    background-color: #f9f9f9;
}
.hpb-kurs-thumbnail {
    margin-right: 15px;
}
.hpb-kurs-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

/* Nachrichten-Boxen */
.hpb-notice-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}
.hpb-notice-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

/* Styling für den Empfehlungsbereich */
.hpb-empfehlungen-bereich {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.hpb-empfehlungen-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.hpb-empfehlung-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    background-color: #fff;
}
.hpb-empfehlung-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.hpb-empfehlung-title {
    margin: 0;
    padding: 15px;
    font-size: 16px;
    background-color: #f9f9f9;
}
.hpb-empfehlung-thumbnail {
    position: relative;
    overflow: hidden;
}
.hpb-empfehlung-thumbnail img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.hpb-empfehlung-banner {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}
.hpb-banner-angebot {
    background-color: #e63946; /* Rot */
}
.hpb-banner-neu {
    background-color: #457b9d; /* Blau */
}
.hpb-banner-demnaechst {
    background-color: #fca311; /* Orange */
}

/* Styling für den App-Zugang */
.hpb-app-access {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}
.hpb-app-access.has-access { border-left: 5px solid #28a745; }
.hpb-app-access.no-access { border-left: 5px solid #dc3545; }
.hpb-access-status { display: flex; align-items: center; flex-basis: 100%;}
@media (min-width: 768px) {
    .hpb-access-status { flex-basis: auto; }
}
.hpb-access-light {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-right: 10px;
    display: inline-block;
}
.hpb-access-light.green { background-color: #28a745; }
.hpb-access-light.red { background-color: #dc3545; }
.hpb-access-description { flex-grow: 1; margin: 0; }
.hpb-access-action .button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    white-space: nowrap;
}

/* ---------- HPB Mitgliederbereich – Custom Overrides ---------- */

/* 1. MasterStudy LMS – Login-Button farblich ans Theme anpassen */
#stm_lms_login .btn,
#stm_lms_login button[type="submit"],
.stm-lms-wrapper .btn.btn-primary {
    background-color: #c39a60; /* Theme-Gold */
    border-color:   #c39a60;
}

#stm_lms_login .btn:hover,
#stm_lms_login button[type="submit"]:hover,
.stm-lms-wrapper .btn.btn-primary:hover {
    background-color: #a17d46; /* etwas dunkler beim Hover */
    border-color:   #a17d46;
}

/* ---------- Responsive Anpassungen ---------- */
@media (max-width: 767px) {
    /* Tabs umbrechen und zentrieren */
    .hpb-tabs-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    .hpb-tab-item {
        flex: 0 0 50%;
        text-align: center;
    }
    .hpb-tab-item a {
        padding: 8px 10px;
    }

    /* Kursliste – Thumbnail oben, Text darunter */
    .hpb-kurs-item a {
        flex-direction: column;
        align-items: flex-start;
    }
    .hpb-kurs-thumbnail {
        margin: 0 0 10px 0;
    }
    .hpb-kurs-thumbnail img {
        width: 100%;
        height: auto;
    }

    /* Empfehlungen – zwei Spalten */
    .hpb-empfehlungen-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Empfehlungen – eine Spalte */
    .hpb-empfehlungen-container {
        grid-template-columns: 1fr;
    }
    /* Tabs auf eine Spalte */
    .hpb-tab-item {
        flex: 0 0 100%;
    }
} 