/* ==========================
   Grundlayout
   ========================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f5f5;

    display: grid;
    grid-template-rows: 60px 1fr 50px;

    height: 100vh;

    overflow: hidden;
}


/* ==========================
   Header
   ========================== */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #003366;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 20px;
}

.header a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
}


/* ==========================
   Hauptlayout
   ========================== */

.layout {

    display: grid;

    grid-template-columns: 280px 1fr 280px;

    gap: 20px;

    padding: 20px;

    overflow: hidden;
}


/* ==========================
   Linke Spalte
   ========================== */

.left {

    background: white;

    padding: 15px;

    overflow-y: auto;

    border: 1px solid #ddd;
}


/* ==========================
   Mitte
   ========================== */
.center {
    background: white;
    border: 1px solid #ddd;

    overflow-y: auto;
    padding: 0;
    /* Padding kommt in den Content */
}

.center-header {
    position: sticky;
    top: 0;

    background: white;

    padding: 20px 25px;

    border-bottom: 1px solid #ddd;

    z-index: 10;
}

.center-content {
    padding: 25px;
}

/* ==========================
   Rechte Spalte
   ========================== */

.right {

    background: white;

    padding: 15px;

    overflow-y: auto;

    border: 1px solid #ddd;
}


/* ==========================
   Footer
   ========================== */

.footer {

    background: #003366;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;
}


ul {
    padding-left: 1.2em;
}

ul ul {
    padding-left: 0.8em;
}

ul ul ul {
    padding-left: 0.8em;
}


/* ==========================
   Vorlesungsübersicht
   ========================== */

.lecture-grid {

    display: flex;
    flex-wrap: wrap;

    gap: 30px;

    align-items: stretch;

    margin: 30px 0;

}

.lecture-card {

    flex: 0 0 calc((100% - 60px) / 3);

    background: white;

    border: 1px solid #ddd;
    border-radius: 16px;

    padding: 24px;

    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);

    transition:
        transform .2s,
        box-shadow .2s;

}

.lecture-card:hover {

    transform: translateY(-4px);

    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.15);

}

.lecture-card h2 {

    margin-top: 0;

    color: #003366;

}


.logo {
    display: block;

    height: 20px;
    width: auto;
}

.header-line {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
}

.header-line span:last-child {
    margin-left: auto;
}

.header-line span:last-child a {
    margin-left: 0.8rem;
}

.breadcrumb {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    border-bottom: 2px solid #888;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding-top: 0px;
    /* gleicher Abstand links und rechts */
    padding-bottom: 0px;
    /* gleicher Abstand links und rechts */
    padding-right: 25px;
    /* gleicher Abstand links und rechts */
    padding-left: 25px;
    /* gleicher Abstand links und rechts */
}

.breadcrumb-right {
    margin-left: auto;
    display: flex;
    gap: 0.75rem;
    white-space: nowrap;
}

.breadcrumb-right a {
    margin-left: .75rem;
}


.example-given {
    margin: 1rem 0;
    font-size: 90%;
    padding: 0.5rem 1.2rem;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #eef8ee;
    /* hellgrün */
    line-height: 1.5;
}

.example-applied {
    margin: 1rem 0;
    font-size: 90%;
    padding: 0.5rem 1.2rem;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff4e6;
    /* hellorange */
    line-height: 1.5;
}



/* VIDEO PLAYER RELATED */
.media-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    align-items: start;
}

.media-box {
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: .4rem;
    position: sticky;
    top: 1rem;
}

.vimeo-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.vimeo-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* SLIDES */


.center-content {
    width: 100%;
    min-width: 0;
}
.slide {
    box-sizing: border-box;
    font-size: 16px;

    aspect-ratio: 16 / 9;
    width: min(90%, 960px);

    margin: 2rem auto;
    padding: 0;

    overflow: hidden;
    display: flex;
    flex-direction: column;

    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgb(0 0 0 / 0.08);
}

.slide-header {
    background: #003366;
    color: white;

    margin: 0;
    padding: 0.8rem 1.4rem 0.75rem;
}
.slide-header h2 {
    margin: 0;

    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 600;
}

.slide-content {
    flex: 1;
    padding: 0.8rem 1.6rem 1.2rem;

    font-size: 1.15rem;
    line-height: 1.4;
}

.slide-content li {
    margin-bottom: 0.2rem;
}

.slide-content ul {
    margin: 0.2rem 0 0 1.2rem;
}

.slide-content p {
    margin: 0.4rem 0;
}

.slide-content> :last-child {
    margin-bottom: 0;
}


.slide--title {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.slide-title-header {
    flex: 1;

    display: flex;
    justify-content: center;
    align-items: center;

    background: white;
    color: #003366;

    padding: 2rem;
    text-align: center;
}

.slide-title-header h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.2;
    font-weight: 700;
}

.slide--title .block-image {
    width: 100%;
    height: 38%;
    object-fit: cover;
    display: block;

    /* Farbiger Abschluss oberhalb des Bildes */
    border-top: 1rem solid #003366;
}






.slide--discussion-question {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.slide--discussion-question .block-image {
    width: 100%;
    height: 38%;
    object-fit: cover;
    display: block;
}

.slide-discussion-header {
    background: #003366;
    color: white;
    padding: 1rem 2rem;
}

.slide-discussion-header h2 {
    margin: 0;
    text-align: center;
    font-size: clamp(1.6rem, 2.2vw, 2.4rem);
    line-height: 1.2;
}

.slide--discussion-question .slide-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: clamp(1.2rem, 1.6vw, 1.6rem);
}




/* Slide Navigatgion */ 

.pager {
    display: flex;
    gap: 4px;
    white-space: nowrap;   /* kein Zeilenumbruch */
    align-items: center;
}

.pager-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    width: 24px;
    height: 24px;

    border-radius: 50%;
    background: #2c7be5;
    color: #fff;
    text-decoration: none;

    font-size: 13px;
    line-height: 1;

    transition: background .2s;
}

.pager-btn:hover {
    background: #1b5fc6;
}