/**
 * Basis-Styles: Reset + Grundlagen
 * 
 * @package VertriebsWikinger
 */

/* ========================================
   RESET
   ======================================== */

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

* {
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--farbe-grau-sehr-dunkel);
    background-color: var(--farbe-schwarz);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   TYPOGRAFIE-GRUNDLAGEN
   ======================================== */

h1, h2, h3, h4, h5, h6 {
    color: var(--farbe-schwarz);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem);
}

h2 {
    font-size: clamp(1.875rem, 4vw + 0.5rem, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
}

h4 {
    font-size: var(--schrift-xl);
}

h5 {
    font-size: var(--schrift-lg);
}

h6 {
    font-size: var(--schrift-basis);
}

p {
    margin-bottom: var(--abstand-md);
}

a {
    color: var(--farbe-kupfer);
    text-decoration: none;
    transition: color var(--transition-schnell) var(--ease-out);
}

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

a:focus-visible {
    outline: 2px solid var(--farbe-kupfer);
    outline-offset: 0.125rem;
    border-radius: var(--radius-sm);
}

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

ul, ol {
    margin-bottom: var(--abstand-md);
    padding-left: var(--abstand-lg);
}

li {
    margin-bottom: var(--abstand-sm);
}

/* ========================================
   BILDER & MEDIEN
   ======================================== */

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

img {
    border-style: none;
}

svg {
    fill: currentColor;
}

/* ========================================
   FORMULARE
   ======================================== */

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

button {
    cursor: pointer;
    background: none;
    border: none;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--farbe-kupfer);
    outline-offset: 0.125rem;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.screen-reader-text:focus {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
}

.skip-link {
    position: absolute;
    top: -999em;
    left: 0;
    background: var(--farbe-navy);
    color: var(--farbe-weiss);
    padding: var(--abstand-md);
    z-index: var(--z-modal);
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   UTILITY-KLASSEN
   ======================================== */

.text--zentriert {
    text-align: center;
}

.sichtbar-nur-desktop {
    display: none;
}

@media (min-width: 64em) {
    .sichtbar-nur-desktop {
        display: block;
    }
    
    .versteckt-desktop {
        display: none;
    }
}

/* ========================================
   SITE-WRAPPER
   ======================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
}
