:root {
    --text: #1f2328;
    --text-leise: #59636e;
    --linie: #d1d9e0;
    --flaeche: #f6f8fa;
    --akzent: #1f2328;
    --rahmen-iframe: #d1d9e0;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

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

body {
    margin: 0;
    background: #fff;
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 24px;
}

main > p {
    max-width: 72ch;
    margin: 0 0 14px;
}

/* Kundenwahl für alle Abschnitte, bleibt beim Scrollen oben stehen */
.kundenleiste {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    margin-top: 28px;
    padding: 12px 0;
    background: #fff;
    border-bottom: 1px solid var(--linie);
}

.kundenleiste > span {
    font-weight: 600;
}

nav.inhalt {
    padding: 14px 0;
    border-bottom: 1px solid var(--linie);
}

nav.inhalt ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav.inhalt a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--linie);
}

nav.inhalt a:hover {
    border-bottom-color: var(--text);
}

details.tabelle {
    border-bottom: 1px solid var(--linie);
    scroll-margin-top: var(--leiste, 64px);
}

details.tabelle > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
    padding: 16px 0;
    cursor: pointer;
    list-style: none;
}

details.tabelle > summary::-webkit-details-marker {
    display: none;
}

/* Pfeil: zeigt nach rechts, offen nach unten */
details.tabelle > summary::before {
    content: "";
    align-self: center;
    width: 8px;
    height: 8px;
    margin: 0 2px 0 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

details.tabelle[open] > summary::before {
    transform: rotate(45deg);
}

details.tabelle > summary:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: 2px;
    border-radius: 4px;
}

details.tabelle h2 {
    font-size: 1.375rem;
    line-height: 1.25;
    margin: 0;
}

.kurzhinweis {
    color: var(--text-leise);
    font-size: 0.875rem;
}

.tabelle-inhalt {
    padding-bottom: 36px;
}

.kundenwahl {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--linie);
    border-radius: 6px;
    overflow: hidden;
}

.kundenwahl button {
    appearance: none;
    border: 0;
    border-right: 1px solid var(--linie);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 0.9375rem;
    padding: 7px 16px;
    cursor: pointer;
}

.kundenwahl button:last-child {
    border-right: 0;
}

.kundenwahl button:hover {
    background: var(--flaeche);
}

.kundenwahl button[aria-checked="true"] {
    background: var(--akzent);
    color: #fff;
}

.kundenwahl button:focus-visible {
    outline: 2px solid var(--akzent);
    outline-offset: -4px;
}

.auspraegung,
.nicht-vorhanden {
    max-width: 90ch;
    margin: 0;
    color: var(--text-leise);
    font-size: 0.9375rem;
}

.nicht-vorhanden {
    padding: 14px 16px;
    background: var(--flaeche);
    border-radius: 6px;
    color: var(--text);
}

.vergleich {
    display: grid;
    gap: 22px;
    margin-top: 18px;
}

figure.stand {
    margin: 0;
}

figure.stand figcaption {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-leise);
    margin-bottom: 6px;
}

figure.stand iframe {
    display: block;
    width: 100%;
    height: 240px;
    border: 1px solid var(--rahmen-iframe);
    border-radius: 6px;
    background: #fff;
}

@media (max-width: 640px) {
    main {
        padding: 24px 16px 60px;
    }

    h1 {
        font-size: 1.6rem;
    }

    .kundenwahl button {
        padding: 6px 11px;
    }
}
