/*
 * Website von Truppo: Startseite, Impressum, Datenschutz. Ruhig und sachlich, Farben aus dem Logo (Stahlblau
 * #1f5c8b) auf warmem Papierweiß, Linien statt Schatten. Schrift IBM Plex Sans vom eigenen Server.
 */

@font-face {
    font-family: "IBM Plex Sans";
    src: url("../fonts/ibm-plex-sans-var.woff2") format("woff2-variations"), url("../fonts/ibm-plex-sans-var.woff2") format("woff2");
    font-weight: 100 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --papier: #f6f5f1;
    --flaeche: #ffffff;
    --tinte: #16202a;
    --text: #2b3540;
    --leise: #5d6873;
    --linie: #e1ddd4;
    --linie-stark: #cdc8bc;
    --marke: #1f5c8b;
    --marke-tief: #174a71;
    --marke-zart: #eaf1f7;
    --breite: 1120px;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--text);
    font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--tinte);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.012em;
    text-wrap: balance;
}

p {
    margin: 0;
}

a {
    color: var(--marke);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--marke-tief);
}

a:focus-visible,
.knopf:focus-visible {
    outline: 3px solid var(--marke);
    outline-offset: 3px;
    border-radius: 4px;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

.wrap {
    max-width: var(--breite);
    margin: 0 auto;
    padding: 0 24px;
}

.skip {
    position: absolute;
    left: 16px;
    top: -80px;
    padding: 10px 16px;
    background: var(--flaeche);
    color: var(--tinte);
    border: 1px solid var(--linie-stark);
    border-radius: 6px;
    z-index: 10;
}

.skip:focus {
    top: 16px;
}

.unsichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Kopf */

.kopf {
    border-bottom: 1px solid var(--linie);
}

.kopf-zeile {
    display: flex;
    align-items: center;
    gap: 40px;
    min-height: 76px;
}

.kopf-zeile-schmal {
    justify-content: space-between;
}

.marke {
    display: inline-flex;
    flex-shrink: 0;
}

.marke img {
    height: 32px;
    width: auto;
}

.kopf-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.kopf-nav a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.975rem;
    padding: 10px 0;
}

.kopf-nav a:hover {
    color: var(--marke);
}

/* Knöpfe */

.knopf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.knopf-voll {
    background: var(--marke);
    color: #fff;
}

.knopf-voll:hover {
    background: var(--marke-tief);
    color: #fff;
}

.knopf-rand {
    background: var(--flaeche);
    border-color: var(--linie-stark);
    color: var(--tinte);
}

.knopf-rand:hover {
    border-color: var(--marke);
    color: var(--marke);
}

.knopf-klein {
    min-height: 44px;
    padding: 0 18px;
    font-size: 0.975rem;
}

.textlink {
    font-weight: 500;
}

.aktionen {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 28px;
}

/* Einstieg */

.einstieg {
    padding: 72px 0 88px;
}

.einstieg-raster {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: center;
}

.einstieg h1 {
    font-size: clamp(2.25rem, 1.55rem + 2.6vw, 3.4rem);
    max-width: 15ch;
}

.einleitung {
    margin: 24px 0 36px;
    max-width: 33em;
    font-size: 1.1875rem;
}

.einstieg-hinweis {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--linie);
    max-width: 33em;
    color: var(--leise);
    font-size: 0.975rem;
}

.paar {
    margin: 0;
}

.paar-bilder {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.handy {
    margin: 0;
    flex: 0 1 250px;
}

.handy img,
.schritt-bild img {
    width: 100%;
    background: var(--flaeche);
    border: 1px solid var(--linie-stark);
    border-radius: 26px;
}

.handy figcaption {
    margin-top: 12px;
    color: var(--leise);
    font-size: 0.9rem;
    text-align: center;
}

.handy.versetzt {
    margin-top: 56px;
}

.paar-hinweis {
    margin-top: 20px;
    color: var(--leise);
    font-size: 0.85rem;
    text-align: center;
}

/* Abschnitte */

.abschnitt {
    padding: 88px 0;
    border-top: 1px solid var(--linie);
}

.abschnitt-hell {
    background: var(--flaeche);
}

.abschnitt h2 {
    font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.35rem);
    max-width: 24ch;
}

.vorspann {
    margin-top: 18px;
    max-width: 40em;
    font-size: 1.125rem;
}

/* Ablauf */

.schritte {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
}

.schritt {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr) 230px;
    gap: 40px;
    padding: 40px 0;
    border-top: 1px solid var(--linie);
}

.schritt:last-child {
    padding-bottom: 0;
}

.schritt-marke {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--marke);
    font-weight: 600;
    align-self: start;
}

.schritt-nr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--marke);
    border-radius: 6px;
    font-size: 0.95rem;
    font-variant-numeric: tabular-nums;
}

.schritt-text h3 {
    font-size: 1.375rem;
    margin-bottom: 14px;
}

.schritt-text p {
    max-width: 36em;
}

.schritt-text p + p {
    margin-top: 12px;
}

.schritt-bild {
    margin: 0;
}

/* Großhandel */

.wege {
    width: 100%;
    margin-top: 40px;
    border-collapse: collapse;
    background: var(--flaeche);
    border: 1px solid var(--linie-stark);
    border-radius: 10px;
    overflow: hidden;
}

.wege th,
.wege td {
    padding: 18px 22px;
    text-align: left;
    vertical-align: top;
    border-top: 1px solid var(--linie);
}

.wege thead th {
    border-top: 0;
    background: var(--papier);
    color: var(--leise);
    font-size: 0.9rem;
    font-weight: 500;
}

.wege tbody th {
    width: 30%;
    color: var(--tinte);
    font-weight: 600;
}

.wege-art {
    display: block;
    color: var(--leise);
    font-weight: 400;
    font-size: 0.925rem;
}

.nachsatz {
    margin-top: 24px;
    max-width: 44em;
    color: var(--leise);
}

/* Rollen */

.rollen {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.rolle {
    padding-top: 20px;
    border-top: 1px solid var(--linie-stark);
}

.rolle h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.verwaltung {
    margin: 56px 0 0;
}

.verwaltung img {
    width: 100%;
    border: 1px solid var(--linie-stark);
    border-radius: 10px;
    background: var(--flaeche);
}

.verwaltung figcaption {
    margin-top: 12px;
    color: var(--leise);
    font-size: 0.9rem;
}

/* Daten */

.zweispaltig {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 56px;
}

.punkte {
    list-style: none;
    margin: 0;
    padding: 0;
}

.punkte li {
    padding: 16px 0 16px 28px;
    border-top: 1px solid var(--linie);
    position: relative;
}

.punkte li:first-child {
    border-top: 0;
    padding-top: 0;
}

.punkte li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 26px;
    width: 12px;
    height: 3px;
    background: var(--marke);
}

.punkte li:first-child::before {
    top: 10px;
}

/* Fragen */

.fragen-liste {
    margin: 36px 0 0;
}

.frage {
    padding: 24px 0;
    border-top: 1px solid var(--linie);
}

.frage dt {
    color: var(--tinte);
    font-weight: 600;
    font-size: 1.125rem;
}

.frage dd {
    margin: 8px 0 0;
    max-width: 44em;
}

/* Kontakt */

.kontakt-kasten {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 48px;
    background: var(--flaeche);
    border: 1px solid var(--linie-stark);
    border-radius: 12px;
}

.kontakt-kasten p {
    margin-top: 16px;
    max-width: 34em;
}

.kontakt-aktionen {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
}

.herkunft {
    margin-top: 28px;
    color: var(--leise);
    font-size: 0.975rem;
}

/* Fuß */

.fuss {
    padding: 40px 0 56px;
    border-top: 1px solid var(--linie);
    color: var(--leise);
    font-size: 0.95rem;
}

.fuss-zeile {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.fuss-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.fuss-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
}

.fuss-links a:hover {
    color: var(--marke);
    text-decoration: underline;
}

/* Rechtstexte */

.rechtstext {
    max-width: 46em;
    padding: 56px 0 88px;
}

.rechtstext h1 {
    font-size: clamp(2rem, 1.6rem + 1.4vw, 2.6rem);
    margin-bottom: 12px;
}

.rechtstext h2 {
    font-size: 1.3rem;
    margin: 44px 0 12px;
}

.rechtstext h3 {
    font-size: 1.075rem;
    margin: 28px 0 8px;
}

.rechtstext p,
.rechtstext ul,
.rechtstext address {
    margin: 0 0 14px;
}

.rechtstext ul {
    padding-left: 1.25em;
}

.rechtstext li + li {
    margin-top: 6px;
}

.rechtstext address {
    font-style: normal;
}

.stand {
    color: var(--leise);
}

/* Schmal */

@media (max-width: 960px) {
    .einstieg-raster,
    .zweispaltig,
    .kontakt-kasten {
        grid-template-columns: minmax(0, 1fr);
    }

    .einstieg-raster {
        gap: 56px;
    }

    .schritt {
        grid-template-columns: minmax(0, 1fr) 200px;
        gap: 20px 32px;
    }

    .schritt-marke {
        grid-column: 1 / -1;
    }

    .rollen {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
}

@media (max-width: 760px) {
    .kopf-nav {
        display: none;
    }

    .kopf-zeile {
        justify-content: space-between;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .wrap {
        padding: 0 16px;
    }

    .marke img {
        height: 28px;
    }

    .einstieg {
        padding: 48px 0 64px;
    }

    .einleitung {
        font-size: 1.0625rem;
    }

    .abschnitt {
        padding: 64px 0;
    }

    .paar-bilder {
        gap: 12px;
    }

    .handy.versetzt {
        margin-top: 36px;
    }

    .handy img,
    .schritt-bild img {
        border-radius: 18px;
    }

    .schritt {
        grid-template-columns: minmax(0, 1fr);
    }

    .schritt-bild {
        max-width: 240px;
    }

    .wege,
    .wege thead,
    .wege tbody,
    .wege tr,
    .wege th,
    .wege td {
        display: block;
    }

    .wege thead {
        display: none;
    }

    .wege tbody th {
        width: auto;
        padding-bottom: 4px;
    }

    .wege tbody td {
        border-top: 0;
        padding-top: 0;
    }

    .kontakt-kasten {
        padding: 28px 20px;
        gap: 28px;
    }
}
