/*
 * Design der Datenschutzerklärung.
 * Angelehnt an https://www.mobileobjects.de/ – Farben, Schrift und Abstände
 * lassen sich zentral über die Variablen im :root-Block anpassen.
 */

/* ---------- Schrift (lokal eingebunden, kein Abruf von externen Servern) ---------- */
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Semibold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Source Sans 3";
    src: url("fonts/SourceSans3-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ---------- Design-Variablen ---------- */
:root {
    /* Farben (Werte der Homepage) */
    --color-bg-start: #040c15;
    --color-bg-end: #09182a;
    --color-text: #f5f5f5;
    --color-text-muted: #a0bddf;
    --color-heading-start: #f5f5f5;
    --color-heading-end: #a0bddf;
    --color-link: #5e97d4;
    --color-link-hover: #a0bddf;
    --color-accent: #4079bc;
    --color-accent-dark: #183d68;
    --color-surface: #09182a;
    --color-border: #1d3756;
    --color-highlight-bg: #d8db53;
    --color-highlight-text: #0d0d0d;

    /* Typografie */
    --font-family: "Source Sans 3", Arial, sans-serif;
    --font-size: 1.0625rem;
    --line-height: 1.65;

    /* Layout */
    --width-page: 1280px;
    --width-text: 52rem;
    --gutter: clamp(1.5rem, 4vw, 3rem);
    --radius: 0.25rem;
    --logo-width: 12.5rem;
}

/* ---------- Grundlagen ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 1.5rem;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    background-color: var(--color-bg-start);
    background-image: linear-gradient(168deg, var(--color-bg-start), var(--color-bg-end));
    background-attachment: fixed;
    font-family: var(--font-family);
    font-size: var(--font-size);
    line-height: var(--line-height);
}

a {
    color: var(--color-link);
    text-underline-offset: 0.15em;
}
a:hover,
a:focus-visible {
    color: var(--color-link-hover);
}

.container {
    width: min(var(--width-page), 100%);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* ---------- Kopfbereich ---------- */
.site-header {
    padding-block: 1.25rem;
}
.site-header .logo {
    display: inline-block;
    line-height: 0;
}
.site-header .logo img {
    width: var(--logo-width);
    height: auto;
}

/* ---------- Inhalt ---------- */
main {
    flex: 1;
    padding-block: 2rem 4rem;
}
.content {
    max-width: var(--width-text);
}

h1,
h2 {
    background-image: linear-gradient(180deg, var(--color-heading-start), var(--color-heading-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.3;
}
h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
}
h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
}
h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.subtitle {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-muted);
}
.stand {
    margin: 0.25rem 0 0;
    color: var(--color-text-muted);
}

p,
ul {
    margin: 0 0 1rem;
}
ul {
    padding-left: 1.5rem;
}
li {
    margin-bottom: 0.5rem;
}
strong {
    font-weight: 700;
}

/* ---------- Inhaltsverzeichnis ---------- */
.toc {
    margin: 2rem 0 0;
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background-color: var(--color-surface);
}
.toc h2 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}
.toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2 18rem;
    column-gap: 2rem;
}
.toc li {
    margin-bottom: 0.25rem;
    break-inside: avoid;
}

/* ---------- Tabellen ---------- */
.table-wrap {
    margin: 0 0 1.5rem;
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
th,
td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--color-border);
    text-align: left;
    vertical-align: top;
}
thead th {
    background-image: linear-gradient(92deg, var(--color-accent), var(--color-accent-dark));
    color: #fff;
}
tbody th {
    width: 30%;
    background-color: var(--color-surface);
    font-weight: 600;
}

/* Schmale Bildschirme: Tabellenzeilen untereinander statt nebeneinander */
@media (max-width: 40rem) {
    table,
    tbody,
    tr,
    th,
    td {
        display: block;
        width: 100%;
    }
    thead {
        display: none;
    }
    tr {
        margin-bottom: 1rem;
    }
    th,
    td {
        border-bottom-width: 0;
    }
    tr > :last-child {
        border-bottom-width: 1px;
    }
    tbody th {
        width: 100%;
    }
}

/* ---------- Noch zu ergänzende Textstellen (Platzhalter im Dokument) ---------- */
.todo {
    padding: 0 0.25em;
    border-radius: var(--radius);
    background-color: var(--color-highlight-bg);
    color: var(--color-highlight-text);
}

/* ---------- Fußbereich ---------- */
.site-footer {
    padding-block: 2rem;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
}
.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
    justify-content: space-between;
}
.site-footer ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.site-footer li {
    margin: 0;
}
.site-footer p {
    margin: 0;
}
.site-footer a {
    color: var(--color-text);
    text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--color-link-hover);
    text-decoration: underline;
}
