/* Grundlayout: Sticky-Footer */
html,
body {
    height: 100%;
}

body.layout-full-height {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.main-content {
    flex: 1 0 auto;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Footer */
footer.page-footer {
    margin-top: 0;
}

/* Copyright-Balken im Footer */
.page-footer .footer-copyright {
    background-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Footer-Layout (oberer Teil) */
.footer-top-row {
    padding-top: 16px;
    padding-bottom: 8px;
}

.footer-links a {
    margin-left: 16px;
    font-size: 0.9rem;
}

.footer-links a:first-child {
    margin-left: 0;
}

.footer-links a,
.footer-links a:visited {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Typografie allgemein */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Roboto", sans-serif;
}

/* Kopfzeile / Brand */
nav .brand-title {
    font-size: 1.6rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

nav .nav-wrapper ul.right > li > a {
    font-size: 0.95rem;
    text-transform: none;
    font-weight: 400;
}

/* Karten leicht auflockern */
.card-title {
    font-weight: 500;
}

/* allgemeine Karten-Abstände nur auf Desktop */
@media (min-width: 993px) {
    .card {
        margin-top: 10px;
    }
}

/* Code-Optik für Schülercode usw. */
code {
    background: #eceff1;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Dashboard: Karten in einer Reihe gleich hoch (nur Desktop) */
@media (min-width: 993px) {
    .dashboard-row {
        display: flex;
        align-items: stretch;
    }

    .dashboard-row .col {
        display: flex;
    }

    .dashboard-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .dashboard-card .card-content {
        flex: 1 0 auto; /* Inhalt füllt die Höhe */
    }
}