/* =========================================================
   BASE.CSS - Reset, Typografie, globale Grundregeln
   Heinz Autocenter GmbH & Co. KG - MODX 3 Theme
   ========================================================= */

/* Tailwind-kompatibler Reset */
*, *::before, *::after {
    box-sizing: border-box;
    border: 0 solid #eaecf0;
}

html {
    font-family: var(--body-font);
    font-size: var(--body-font-size);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
    color: rgb(71 85 105);
}

/* Überschriften */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--display-font);
    font-weight: var(--display-weight);
    margin: 0;
}
h1 { font-size: 3rem;   line-height: 3.75rem; }
h2 { font-size: 2.25rem; line-height: 2.75rem; }
h3 { font-size: 2.25rem; line-height: 2.75rem; }
h4 { font-size: 1.875rem; line-height: 2.375rem; }
h5 { font-size: 1.875rem; line-height: 2.375rem; }
h6 { font-size: 1.5rem;  line-height: 2rem; }

@media (min-width: 1024px) {
    h1 { font-size: 4.5rem;  line-height: 5.625rem; }
    h2 { font-size: 3.75rem; line-height: 4.5rem; }
    h3 { font-size: 3rem;    line-height: 3.75rem; }
    h4 { font-size: 2.25rem; line-height: 2.75rem; }
}

a { color: inherit; text-decoration: inherit; }
img, video { height: auto; max-width: 100%; display: block; vertical-align: middle; }
strong { color: rgb(16 24 40); font-weight: 900; }
p { margin: 0; }
ul, ol, menu { list-style: none; margin: 0; padding: 0; }
hr { height: 0; color: inherit; border-top-width: 1px; }

/* [x-cloak] für Alpine.js */
[x-cloak] { display: none !important; }

/* Hilfsklasse */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
}
@media (min-width: 640px)  { .container { max-width: 640px;  } }
@media (min-width: 768px)  { .container { max-width: 768px;  } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

/* Text-Inhaltsbereich (WYSIWYG / Redaktion) */
.text-section h2 {
    font-size: 1.75rem;
    line-height: 2.25rem;
    color: rgb(16 24 40);
    margin-bottom: 1rem;
}
.text-section h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    color: var(--primary-700-colour);
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}
.text-section h2:first-child,
.text-section h3:first-child {
    margin-top: 0;
}
.text-section ul li { list-style-type: disc; }
.text-section ol li { list-style-type: decimal; }
.text-section ol li,
.text-section ul li {
    margin-left: 1.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}
.text-section p {
    color: inherit;
    margin-bottom: 1.5rem;
}
.text-section p:last-child { margin-bottom: 0; }
.text-section a { text-decoration-line: underline; }
