/* bau-app.at - Grundgestaltung
   Bewusst schlank gehalten: keine Framework-Abhaengigkeit, kein externer
   Schriftart-Aufruf. Beides kostet Ladezeit und ist bei den Core Web Vitals
   der haeufigste Bremsklotz. */

:root {
    --ton-text: #16202b;
    --ton-gedaempft: #5a6572;
    --ton-linie: #e3e7eb;
    --ton-flaeche: #ffffff;
    --ton-akzent: #d4761a;
    --breite: 68rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ton-text: #e8ecf0;
        --ton-gedaempft: #a3adb8;
        --ton-linie: #2a3542;
        --ton-flaeche: #131b23;
    }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--ton-flaeche);
    color: var(--ton-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}

.huelle {
    width: 100%;
    max-width: var(--breite);
    margin-inline: auto;
    padding-inline: 1.25rem;
}

/* Tastaturnutzer springen damit an den Inhalt vorbei am Menue. */
.sprungmarke {
    position: absolute;
    left: -9999px;
    background: var(--ton-text);
    color: var(--ton-flaeche);
    padding: 0.6rem 1rem;
    border-radius: 0 0 6px 0;
    z-index: 10;
}
.sprungmarke:focus { left: 0; top: 0; }

.kopf {
    border-bottom: 1px solid var(--ton-linie);
    padding-block: 1.1rem;
}
.kopf__reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: space-between;
}
.marke {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: inherit;
    text-decoration: none;
}

.menue ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.menue a {
    color: var(--ton-gedaempft);
    text-decoration: none;
    padding-block: 0.25rem;
    border-bottom: 2px solid transparent;
}
.menue a:hover,
.menue a:focus-visible { color: var(--ton-text); }
.menue a.ist-aktuell {
    color: var(--ton-text);
    border-bottom-color: var(--ton-akzent);
}

.inhalt {
    padding-block: 3rem 4rem;
    /* Lesbare Zeilenlaenge. Ueber ~75 Zeichen sinkt die Lesegeschwindigkeit. */
    max-width: 46rem;
}
.inhalt h1 {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-block: 0 0.8rem;
}
.inhalt h2 {
    font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.6rem);
    line-height: 1.3;
    margin-block: 2.4rem 0.7rem;
}
.inhalt h3 { font-size: 1.15rem; margin-block: 1.8rem 0.5rem; }
.inhalt p { margin-block: 0 1.1rem; }
.inhalt a { color: var(--ton-akzent); }
.inhalt img { max-width: 100%; height: auto; }
.inhalt ul, .inhalt ol { padding-left: 1.3rem; }
.inhalt li { margin-bottom: 0.4rem; }

.fuss {
    border-top: 1px solid var(--ton-linie);
    padding-block: 1.6rem;
    font-size: 0.9rem;
    color: var(--ton-gedaempft);
}
.fuss__reihe {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}
.fuss p { margin: 0; }
.fuss__menue {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}
.fuss a { color: inherit; }

:focus-visible {
    outline: 2px solid var(--ton-akzent);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
