/* ============================================================
   Globale Grundlagen
   ============================================================ */


/* ------------------------------------------------------------
   Box-Sizing
   ------------------------------------------------------------ */

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


/* ------------------------------------------------------------
   HTML und Body
   ------------------------------------------------------------ */

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    margin: 0;

    background-color: var(--farbe-seitenhintergrund);
    color: var(--farbe-text);

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    font-size: 16px;
    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ------------------------------------------------------------
   Überschriften
   ------------------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    color: var(--farbe-text);

    font-weight: 650;
    line-height: 1.2;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.125rem;
}


/* ------------------------------------------------------------
   Absätze
   ------------------------------------------------------------ */

p {
    margin-top: 0;
}


/* ------------------------------------------------------------
   Links
   ------------------------------------------------------------ */

a {
    color: var(--farbe-link);
    text-decoration: none;
}

a:hover {
    color: var(--farbe-link-hover);
}


/* ------------------------------------------------------------
   Bilder und Medien
   ------------------------------------------------------------ */

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}


/* ------------------------------------------------------------
   Formularelemente
   ------------------------------------------------------------ */

button,
input,
textarea,
select {
    font: inherit;
}


/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

button {
    cursor: pointer;
}


/* ------------------------------------------------------------
   Tabellen
   ------------------------------------------------------------ */

table {
    border-collapse: collapse;
    border-spacing: 0;
}


/* ------------------------------------------------------------
   Listen
   ------------------------------------------------------------ */

ul,
ol {
    margin-top: 0;
}


/* ------------------------------------------------------------
   Fokus für Tastatur-Navigation
   ------------------------------------------------------------ */

:focus-visible {
    outline: 3px solid var(--gruen-500);
    outline-offset: 2px;
}