/* ==========================================
   GRUNDEINSTELLUNGEN & VARIABLEN
   ========================================== */
:root {
    --black: rgb(0, 0, 0);
    --white: rgb(255, 255, 255);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, sans-serif;
    background-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================
   GRID-LAYOUT AUF STARTSEITE
   ========================================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    width: 100dvw;
    height: calc(100dvh - 3.1rem);
    gap: 0.1rem;
}

.grid-container a {
    text-decoration: none;
}

/* Karten-Design */
.card {
    min-height: 100px;
    align-content: center;
    text-align: center;
    font-size: 2rem;
    font-weight: 100;
    letter-spacing: 0.05em;
    color: var(--black);
    background-color: var(--white);
    transition: font-weight 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    font-weight: 300;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* ==========================================
   FOOTER-BEREICH
   ========================================== */
footer {
    display: flex;
    position: fixed;
    width: 100dvw;
    background-color: var(--white);
    color: var(--black);
    bottom: 0;
    height: 3rem;
    padding: 0 1rem;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 100;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.15);
    z-index: 200;
}

footer p {
    pointer-events: none;
}

.footer-nav a {
    margin-left: 1rem;
}

footer a {
    color: var(--black);
    text-decoration: none;
}

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

/* ==========================================
   SEITENLAYOUT (Impressum & Datenschutz)
   ========================================== */
.page h1,
.page h2,
.page p {
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.page {
    max-width: 800px;
    margin: 6rem auto 9rem auto;
    padding: 0 2rem;
}

/* Zurück-Button */
.back-button {
    font-size: 1rem;
    font-weight: 100;
    color: var(--black);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    background-color: var(--white);
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.02);
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Hauptüberschrift */
.page h1 {
    margin-top: 2rem;
    font-size: 2.5rem;
    font-weight: 200;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    padding-bottom: 1.5rem;
}

/* Abschnittsüberschriften */
.page h2 {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Absatztexte */
.page p {
    font-size: 1rem;
    font-weight: 200;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    color: rgba(0, 0, 0, 0.85);
}

/* Links */
.page a {
    color: var(--black);
    transition: all 0.2s ease;
}

.page a:hover {
    font-weight: 400;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1000px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .card {
        min-height: 60px;
    }
}

@media (max-width: 600px) {
    .grid-container {
        grid-template-columns: 1fr;
        height: calc(100dvh - 6.1rem);
    }

    .card {
        min-height: 40px;
    }

    footer {
        align-content: center;
        display: block;
        height: 6rem;
        text-align: center;
    }

    .footer-nav a {
        margin-top: 0.25rem;
        margin-left: 0rem;
        display: block;
    }
}