@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --background: hsl(210, 20%, 96%);
    --background-embed: hsl(225, 17%, 92%);
    --shadow: hsla(220, 35%, 87%, 0.796);
    --text: #101116;
    --secondary-text: #515667;
}

.änderung {
    color: rgb(253, 49, 49);
    font-weight: 500;
}


/* ====== // Sections //=========================================================================== */

body {
    margin: 0;
    font-family: "Poppins";
    background-color: var(--background);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
}

#header-section {
    background: var(--background);
    height: 7vh;
}

#content-section {
    width: 100vw;
    height: 93vh;
    display: flex;
}

#plan-section {
    flex: 1;
    height: 93vh;
    width: calc(100% - 20vw); /* Temporärer Fix */
}

#content-scroller {
    height: calc(100% - 7vh);
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

#footer-section {
    background: var(--background);
    height: 7vh;
    width: 100%;
}

.scrollable::-webkit-scrollbar {
    display: none;
}

#sidebar-section {
    width: 20vw;
    padding-bottom: 20px;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
    height: 100%;
}


/* ====== // Vertretungsplan //==================================================================== */

.plan-wrapper {
    padding: 15px 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.klasse {
    flex: 1 1 325px;
    max-width: 400px;
    min-width: 250px;

    position: relative;
    padding: 5em 1.5em 2em 1.5em;
    background-color: var(--background-embed);
    box-shadow: inset 18px 18px 20px var(--shadow), inset -18px -18px 20px #ffffff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.klassenkürzel {
    position: absolute;
    top: 20px;
    left: calc(50% - 2em);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background);
    box-shadow: -8px -8px 20px #ffffff, 8px 8px 20px var(--shadow);
    width: 4em;
    height: 1.2em;
    border-radius: calc(0.6em + 10px); /* Height + Padding */
    padding: 10px;
    font-size: 22px;
    font-weight: 700;
}

.periode-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.periode {
    display: flex;
    border-radius: 5px;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.periode-zahl {
    margin-right: 15px;
    margin-left: -15px;
    width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 22px;
}

.stunden-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    padding: 5px;
    width: fit-content;
    margin: 0 auto;
}

/* .stunde {

} */

.stunden-flr {
    font-size: 19px;
    font-weight: 500;
    display: grid;
    grid-template-columns: 85px 65px 75px;
    column-gap: 0px;
    white-space: nowrap;
}

.stunden-flr .raum {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.stundeninfo {
    font-size: 12px;
    color: var(--secondary-text);
    width: 220px;
}


/* ====== // Detailled overrides //================================================================ */

.detailed .klasse {
    flex: 1 1 590px;
    max-width: 665px;
    min-width: 515px;
}

.detailed .perioden-wrapper {
    display: flex;
    flex-direction: column;
}

.detailed .perioden-wrapper > * {
    border-radius: 15px;
    box-shadow: -6px -6px 20px var(--background);
    padding: 10px 0;
}

.detailed .perioden-wrapper > *:last-child {
    border-bottom: none;
}

.detailed .periode-zahl {
    margin-left: 15px;
    width: 30px;
    text-align: left;
}

.detailed .stunden-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 40px;

    padding: 5px;
    width: fit-content;
    margin: 0 auto;
}

.detailed .stunden-flr {
    grid-template-columns: 80px 70px 75px;
}

.detailed .stundeninfo {
    width: 220px;
}

.detailed .stunden-flr .raum {
    justify-content: flex-start;
}

/* ====== // Sidebar //============================================================================ */

.sidebar-container {
    margin-left: 10px;
    background: rgba(0, 128, 0, 0.089);
    box-shadow: inset 18px 18px 20px var(--shadow), inset 0 -18px 20px #ffffff;
    border-radius: 30px 0 0 30px;
    background-color: var(--background-embed);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 75%;
    height: calc(95% - 80px);
    display: flex;
    overflow-y: hidden;
    overflow-x: hidden;
    padding: 40px 20px;
    flex-direction: column;
    gap: 50px;
    align-items: center;
}

#clock {
    display: flex;
    align-items: center;
    flex-direction: column;
}

#clock #time {
    font-size: 40px;
    font-weight: 700;
}

#solardaten {
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 80%;
    background-color: var(--background);
    box-shadow: -8px -8px 20px #ffffff, 8px 8px 20px var(--shadow);
    border-radius: calc(0.6em + 10px);
    padding: 20px;
}

.solarheader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6em;
    height: 1.2em;
    padding-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
}

#watermark {
    margin-left: 10px;
    color: hsl(from var(--secondary-text) h s calc(l * 2));
    display: flex;
    height: 5%;
    justify-content: center;
    align-items: center;
}


/* ====== // Header & Footer //==================================================================== */

.ticker-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.ticker {
    display: inline-flex;
    width: max-content;
    will-change: transform;
    animation: ticker-scroll var(--duration, 12s) linear infinite;
    font-size: 3.5vh;
    font-weight: 500;
}

.ticker-item {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-right: 20vw; /* Abstand zwischen Wiederholungen */
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}