* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

@font-face {
    font-family: "Montserrat-Bold";
    src: url("../fonts/montserrat-extrabold.ttf");
}

@font-face {
    font-family: "Montserrat-Regular";
    src: url("../fonts/montserrat-regular.ttf");
}

:root {
    --main-color: black;
    --text-color: white;
    --h2-size: 3rem;
    --h3-size: 2rem;
    --p-size: 1.2rem;
}

body {
    background-color: black;
    color: white;
    font-family: "Montserrat-Regular", Arial, sans-serif;
    line-height: 1.6;
}

/* ===== IMPRESSUM LAYOUT ===== */

h1 {
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: 5rem;
    text-align: center;
    align-items: center !important;
    padding: 10rem 2rem 3rem 7rem;
    letter-spacing: 2px;
}

h2 {
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: var(--h2-size);
    margin-top: 4rem;
    margin-bottom: 1rem;
    text-align: center;
    opacity: 0.9;
}

p {
    font-size: var(--p-size);
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    opacity: 0.85;
}

/* Abstand zwischen Sections */
p + h2 {
    margin-top: 5rem;
}

/* ===== FOOTER (wie Main Seite) ===== */

.footer_ {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 5rem 3rem;
    margin-top: 8rem;

    border-top: 1px solid rgba(255,255,255,0.2);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-footer {
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: 2rem;
    color: white;
    text-decoration: none;
    opacity: 0.8;
}

.version-footer {
    font-size: 4rem;
    display: block;
    line-height: 1;
}

.footer_ p {
    display: flex;
    gap: 2rem;
    font-size: 1.2rem;
    width: auto;
}

.footer_ p a {
    color: white;
    text-decoration: none;

    transition: 0.3s ease;
}

.footer_ p a:hover {
    opacity: 1;
}

.abstand{
    margin-left: 5rem;
    margin-right: 5rem;
}

.abstand p{
    max-width: 900px;
}

/* Listen & Zwischenüberschriften mittig (wie der restliche Text) */
.abstand h3 {
    font-family: "Montserrat-Bold", Arial, sans-serif;
    font-size: var(--h3-size);
    text-align: center;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.abstand ul {
    list-style-position: inside;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.abstand ul li {
    text-align: center;
    opacity: 0.85;
    margin-bottom: 0.6rem;
}

/* Links im Inhalt: weiß & unterstrichen statt dunkelblau */
.abstand a {
    color: white;
    text-decoration: underline;
}

.abstand a:hover {
    color: white;
    text-decoration: underline;
}


.footer_{
    display: flex;
    color: white;
}

.footer_ p{
    justify-content: end;
    align-items: center;
    width: 100%;
    color: white;
        display: flex;
        font-size: 1.25rem;
    text-decoration: none;
}

.footer_ p a{
    padding-right: 5rem;
    color: white;
    text-decoration: none;
}

.footer-logo{
    width: 70%;
    height: auto;
    color: white;
}

.logo-footer {
    display: flex;
    flex-direction: column;
    align-items: start;
    font-family: "Montserrat-Bold", Arial, sans-serif;
    margin: 0 2rem;
    opacity: 0.7;
    color: white;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
}

.version-footer {
    font-size: 3rem;

}


/* ============================================================
   MOBILE / RESPONSIVE  (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

    :root {
        --h2-size: 1.8rem;
        --h3-size: 1.4rem;
        --p-size: 1.05rem;
    }

    h1 { font-size: 2.6rem; padding: 6rem 1rem 6rem; }
    h2 { margin-top: 2.5rem; }
    p { padding: 0 1rem; }
    p + h2 { margin-top: 3rem; }

    .abstand { margin-left: 1.25rem; margin-right: 1.25rem; }

    .footer_ {
        flex-direction: column;
        gap: 1.25rem;
        padding: 3rem 1.5rem;
        margin-top: 4rem;
        text-align: center;
    }
    .footer-logo { width: auto; }
    .logo-footer { align-items: center; margin: 0; font-size: 1rem; padding: 0; }
    .version-footer { font-size: 1.8rem; }
    .footer_ p { justify-content: center; font-size: 0.95rem; padding-right: 0; }
    .footer_ p a { padding-right: 0; padding: 0 0.75rem; }
}
.navigation.scrolled::before {
    opacity: 1;
}
