/* impressumstyle.css */
/* Card-Layout + Footer, abgestimmt auf indexstyle (vw/vh fürs Layout, rem für Schriften) */

/* Google Font wie auf der Startseite */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* ===== Design Tokens ===== */
:root {
    /* Blautöne */
    --col1: #160f29;
    --col2: #1a2b3e;
    --col3: #1d4653;
    --col4: #206268;
    --col5: #237d7d;

    /* Rest */
    --creme: #a2785b;
    --linen: #ece7e2;
    --inkwell: #2c3639;
    --lunar: #3f4e4f;
    --lait: #dcd7c9;

    --header-color: var(--lait);
    --main-color: var(--inkwell);
    --floating-color: var(--col5);
    --primary-color: var(--inkwell);
    --secondary-color: var(--lunar);
    --accent-color: var(--col5);
    --text-color-dark: var(--col5);
    --text-color-light: var(--lait);
    /* Für Footer-Hover (vom Snippet genutzt) */
    --text-color: var(--text-color-light);
    --muted-color: #dcd7c9;
    /* Textfarbe im Footer */

    /* Card */
    --card-bg-top: rgba(255, 255, 255, 0.06);
    --card-bg-bottom: rgba(255, 255, 255, 0.03);
    --card-stroke: rgba(255, 255, 255, 0.06);
    --card-radius: 1.2vw;
}

/* ===== Base ===== */
* {
    box-sizing: border-box;
    font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--primary-color);
    color: var(--text-color-light);
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: block;
    padding: 10vh 4vw;
}

/* Globale Inhaltsbreite als Fallback (falls .legal-container noch nicht gesetzt ist) */
:where(h1, h2, h3, h4, p, ul) {
    max-width: 62.5vw;
    width: 62.5vw;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Card-Fläche ===== */
.legal-container {
    width: 66vw;
    /* angenehm breit auf Desktop */
    margin: 4vh auto 0;
    padding: 5vh 3.5vw;
    background: linear-gradient(180deg, var(--card-bg-top), var(--card-bg-bottom));
    border: 0.5vh solid var(--card-stroke);
    border-radius: var(--card-radius);
    box-shadow: 0 2.6vh 5.2vh rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(0.8vh);
}

/* Elemente in der Card brauchen keine eigene max-width mehr */
.legal-container :where(h1, h2, h3, h4, p, ul) {
    width: auto;
    max-width: none;
}

/* ===== Typografie ===== */
h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 2.8vh 0;
    text-align: center;
    letter-spacing: 0.02em;
}

h4 {
    font-size: 1.25rem;
    margin: 4.6vh auto 1.6vh;
    color: var(--accent-color);
    letter-spacing: 0.02em;
}

p,
li {
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 1.2vh auto;
    color: var(--text-color-light);
}

ul {
    padding-left: 1.4rem;
    /* Typografische Einrückung bleibt in rem */
    margin: 1.5vh auto 2.5vh;
}

/* Dezente Akzentboxen für die ersten Kontakt-/Adressabsätze */
body>p:first-of-type,
body>p:nth-of-type(2),
.legal-container>p:first-of-type,
.legal-container>p:nth-of-type(2) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    border-left: 0.6vh solid var(--accent-color);
    padding: 2.2vh 2vw;
    border-radius: 0.8vw;
}

/* „Papier“-Feeling für Fließtext direkt unter Zwischenüberschriften */
h4+p {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.6vh 1.6vw;
    border-radius: 0.6vw;
}

/* ===== Links & A11y ===== */
a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 0.3vh solid transparent;
    transition: border-color .2s ease, filter .2s ease, opacity .2s ease;
}

a:hover {
    border-bottom-color: currentColor;
    filter: brightness(.95);
}

a:focus-visible {
    outline: 0.4vh solid var(--accent-color);
    outline-offset: 0.3vh;
    border-radius: 0.4vh;
}

/* ===== Responsive ===== */

/* 4K/Retina etwas größer */
@media (min-width: 2500px),
(min-resolution: 2dppx) and (min-width: 1900px) {
    html {
        font-size: 1.15rem;
    }

    body {
        padding: 12vh 4vw;
    }

    :where(h1, h2, h3, h4, p, ul) {
        width: 54vw;
        max-width: 54vw;
    }

    .legal-container {
        width: 54vw;
        padding: 6vh 3vw;
    }
}

/* Standard-Desktop ≤1850px */
@media (max-width: 1850px) {
    html {
        font-size: 1.06rem;
    }

    :where(h1, h2, h3, h4, p, ul) {
        width: 60vw;
        max-width: 60vw;
    }

    .legal-container {
        width: 60vw;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    html {
        font-size: 1rem;
    }

    body {
        padding: 9vh 5vw;
    }

    :where(h1, h2, h3, h4, p, ul) {
        width: 86vw;
        max-width: 86vw;
    }

    .legal-container {
        width: 86vw;
        padding: 4.6vh 5vw;
        border-radius: 2.2vw;
    }

    h1 {
        font-size: 2rem;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    html {
        font-size: 0.95rem;
    }

    body {
        padding: 8vh 5vw;
    }

    h1 {
        font-size: 1.8rem;
    }

    h4 {
        font-size: 1.15rem;
    }

    body>p:first-of-type,
    body>p:nth-of-type(2),
    .legal-container>p:first-of-type,
    .legal-container>p:nth-of-type(2) {
        border-left-width: 0.5vh;
    }
}

/* Sehr schmal */
@media (max-width: 480px) {
    html {
        font-size: 0.9rem;
    }

    :where(h1, h2, h3, h4, p, ul) {
        width: 90vw;
        max-width: 90vw;
    }

    .legal-container {
        width: 90vw;
    }
}

.floating-logo {
    position: fixed;
    top: 5vh;
    left: 2vw;
    z-index: 1000;
}

.floating-logo img {
    height: 6vh;
    width: auto;
    max-width: 20vw;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4));
}

footer a {
    border-bottom: 0;
}

footer a:hover {
    border-bottom: 0;
}

/* 1) Vollhöhe & Flex-Layout, damit Footer nach unten gedrückt wird */
html,
body {
    height: 100%;
}

body {
    /* statt: padding: 10vh 4vw; */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 10vh 0 0;
    /* oben Abstand behalten, seitlich/unten keinen */
}

/* 2) Inhalt soll den Platz ausfüllen und seitliche Luft bekommen */
.legal-container {
    flex: 1;
    /* schiebt den Footer an den unteren Rand */
    /* deine Padding/Maße bleiben erhalten */
}

/* 3) (optional, aber klar) Footer wirklich voll breit ohne Zusatzabstände */
footer {
    margin: 0;
    /* überschreibt evtl. Vererbungen */
    width: 100%;
}