/* --- Basis-Styling (Mobile: 1 Spalte) --- */

h1 {
    font-family: var(--font-heading);
    margin-block-end: 0;
    font-size: var(--font-h1-unterseite);
}

section + section {
    margin-top: clamp(1rem, 5vh, 3rem);
}

.angebote-liste {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Das zentriert die Karten, wenn es weniger sind! */
    gap: 1.5rem;
}
.angebote-liste > * {
    width: 100%;
}
.summary, .metabox {
    max-width: 800px;
}

.info-box-highlight {
    padding-top: var(--space-section-md);
    background-color: var(--primary-4-light);
    padding: var(--padding-16-32);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md-2);
    margin: 1rem 1rem;
}

.wrapper {
    gap: clamp(.1rem, 5vh, 1rem);
    flex-wrap: wrap;
    align-items: stretch;
}
.wrapper > * {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 200px;
}

.praktikum p {
    hyphens: none;
}

/* --- Hero Bereich (Mobile First) --- */
.angebot-hero {
    border-bottom: .2rem solid var(--primary-1);
    padding-bottom: 2rem;
}

.angebot-hero .container {
    margin-top: var(--space-section-md);
}

.angebot-hero-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.angebot-hero-content {
    flex: 1;
    width: 100%;
    text-align: center; /* Auf Mobile zentriert */
}

.angebot-hero-content h1 {
    margin-bottom: 1.5rem;
    hyphens: auto;
}

.teaser-wrapper {
    padding: var(--padding-16-32) 0;
}
.teaser-wrapper p {
    padding-bottom: 1rem;
    font-size: var(--font-h3);
}

/* Mobile: Desktop-Button und Sidebar ausblenden, mobilen Button anzeigen */
.desktop-download-btn {
    display: none !important;
}

.mobile-download-btn {
    margin: 1.5rem 0 2rem 0;
    display: inline-flex;
}

.angebot-hero-sidebar {
    display: none;
}

/* --- Kurzinfos innerhalb der Hero-Section --- */
.kurzinfos {
    margin-top: 1rem;
    text-align: left; /* Überschreibt die Mobile-Zentrierung für diesen Block */
}

.kurzinfos-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kurzinfos-cta {
    margin-top: 2rem;
}

.flyer-preview-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);*/
    display: block;
}

.kursinhalte {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.kurs-modul ul {
    margin-left: 0;
    padding-left: 0;
}
.kurs-modul {
    hyphens: auto;
    width: clamp(280px, 30%, 500px); 
}
.kurs-modul h4 {
    text-align: left;
}

.kursinhalte_blocks {
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: var(--space-section-sm);
}

.cta_small {
    margin-top: 0;
}
.cta_small-text p {
    font-size: inherit;
    hyphens: none;
}


.tag {
    color: var(--primary-1);
}
.tag-vollzeit {
    color: var(--white);
}
.card-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.info-duration p {
    hyphens: none;
}

.angebot-card {
    height: 320px;
}

/* ==============================================
    ANGEBOTS-LAYOUT (RESPONSIVE)
   ============================================== */

/* --- Mobile Basis --- */
.angebot-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-wrap: wrap;
}

.card-actions {
    display: flex;
    flex-direction: column;
    gap: var(--gap-sm);
    margin-top: auto;
}

/* --- Tablet & Desktop (ab 48em / 768px) --- */
@media (min-width: 48em) {

    /* Hero-Bereich ab 48em: Linke Spalte und rechte Sidebar nebeneinander */
    .angebot-hero-grid {
        flex-direction: row;
        flex-wrap: wrap; 
        gap: 4rem;
        align-items: flex-start;
    }

    .angebot-hero-content {
        flex: 1;
        min-width: 300px;
        text-align: left; /* Ab Desktop linksbündig */
    }

    /* Mobilen Button ausblenden, Sidebar & Desktop-Button einblenden */
    .mobile-download-btn {
        display: none !important;
    }

    .angebot-hero-sidebar {
        display: flex;
        width: 400px;
        flex-direction: column;
        gap: 1.5rem;
        flex-shrink: 0;
    }

    .desktop-download-btn {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
    }

    /* Kurzinfos in 2 Spalten aufteilen (innerhalb der linken Spalte) */
    .kurzinfos {
        margin-top: 3rem;
    }

    .kurzinfos-inner {
        gap: 2rem;
        align-items: start;
    }

    /* Angebotskarten Liste anpassen */
    .angebot-card-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card-actions {
        flex-direction: row;
    }

    .angebote-liste {
        grid-template-columns: 1fr 1fr;
    }
    .angebote-liste > * {
        width: calc(50% - 0.75rem); /* Halber Gap Abzug für perfektes Alignment */
    }

    .info-box-highlight {
        margin: 0;
    }
}

/* --- Desktop Large (ab 1024px / 64em) --- */
@media (min-width: 64em) {
    .angebot-card-content {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .card-actions {
        flex-direction: column;
    }
    
    .angebote-liste > * {
        min-width: 400px;
        width: calc(30% - 0.75rem);
    }
}

/* --- Zusätzliche Korrekturen --- */
.angebote-h4 {
    font-size: 1.25rem; 
    min-height: 3.6em;
}

.btn-download,  
.info-location {
    display: none !important;
}