/* =====================================================
   BASE – Globale Element-Defaults
   Kein Layout, keine Helper-Klassen hier.
   Nur nackte HTML-Elemente stylen.
===================================================== */

/* Text-Selektion */
::selection {
    background: var(--color-primary);
    color: var(--text-dark);
    text-shadow: none;
}

/* -----------------------------------------------
   BODY
----------------------------------------------- */
body {
    font-family: var(--font-base);
    font-size: var(--fs-base);
    line-height: var(--base-lh);
    color: var(--text-main);
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* -----------------------------------------------
   HEADINGS
----------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--fw-black);
    color: var(--text-main);
    line-height: 1.1;
    margin-top: 0;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

/* -----------------------------------------------
   TEXT
----------------------------------------------- */
p {
    color: var(--text-main);
    line-height: var(--base-lh);
    margin-top: 0;
}

b, strong {
    font-weight: var(--fw-black);
}

/* -----------------------------------------------
   LINKS
----------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary);
}

/* -----------------------------------------------
   LISTEN
----------------------------------------------- */
ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* -----------------------------------------------
   BILDER
----------------------------------------------- */
img, svg {
    max-width: 100%;
    display: block;
}

/* -----------------------------------------------
   BUTTONS (nativ)
----------------------------------------------- */
button {
    font-family: var(--font-base);
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
}

/* -----------------------------------------------
   LIGHT SECTION OVERRIDES
   Wenn eine Section hell ist, werden Texte dunkel.
----------------------------------------------- */
.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light p,
.bg-light li,
.bg-light a {
    color: var(--text-dark);
}
