/* =========================================
   TYPOGRAFIE – GLOBAL
========================================= */

/* Basistext */
body {
    font-size: 1rem;
    line-height: 1.6;
}

/* =========================================
   ÜBERSCHRIFTEN
========================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.5em;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin: 1rem 0 1rem 5vw;
    color: var(--color-surface);
    width: 90vw;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin-top: 3rem;
}

h3 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
}

h4 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

h5 {
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

h6 {
    font-size: 1rem;
    margin-top: 1.25rem;
    color: var(--color-muted);
}

/* =========================================
   FLIESSTEXT
========================================= */

p {
    margin-bottom: 1.25rem;
    max-width: 70ch;
    /* optimale Zeilenlänge */
}

/* letzter Absatz kein Extra-Abstand */
p:last-child {
    margin-bottom: 0;
}

/* =========================================
   LISTEN
========================================= */

ul,
ol {
    margin-bottom: 1.5rem;
    padding-left: 1.25rem;
}

li {
    margin-bottom: 0.5rem;
}

/* =========================================
   LINKS IM CONTENT
========================================= */

main a {
    color: var(--color-link);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

main a:hover {
    text-decoration-thickness: 2px;
}

a {
    position: relative;
}

a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -3px;
    left: 0;
    height: 2px;
    background-color: var(--color-primary-dark);
    box-shadow: 0 0 8px var(--color-primary);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

a:hover::after {
    transform: scaleX(1);
}

/* =========================================
   ZITATE
========================================= */

blockquote {
    margin: 2rem 0;
    padding-left: 1.5rem;
    border-left: 4px solid var(--color-accent);
    color: var(--color-muted);
    font-style: italic;
}

/* =========================================
   CODE / PREFORMATTED
========================================= */

code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
}

pre {
    background: rgba(255, 255, 255, 0.06);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 6px;
    margin-bottom: 2rem;
}

pre code {
    background: none;
    padding: 0;
}



/* Impressum und Datenschutz */

.rechtliches,
.rechtliches article {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.rechtliches h1,
.rechtliches h2,
.rechtliches h3,
.rechtliches h4 {
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    hyphens: auto;
    letter-spacing: 0.02em;
}

/* Mobile Ansicht */

@media (max-width: 900px) {

    .rechtliches h1 {
        font-size: clamp(1.6rem, 5vw, 2rem);
        margin: 1rem 0;
        line-height: 1.25;
    }

    .rechtliches h2 {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
        line-height: 1.3;
        margin: 1.5rem 0 0.75rem;
    }

    .rechtliches h3 {
        font-size: 1.2rem;
        line-height: 1.4;
    }
}

/* Lange Links und Textstellen */

.rechtliches p,
.rechtliches a {
    overflow-wrap: anywhere;
}



/* Cookie-Tabellen: mobil horizontal scrollbar */

.rechtliches .cookie-table-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.rechtliches .cookie-table-scroll table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.rechtliches .cookie-table-scroll th,
.rechtliches .cookie-table-scroll td {
    overflow-wrap: break-word;
    vertical-align: top;
}
