* {
    box-sizing: border-box;
}


body {
    margin: 0;
    padding: 0;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: 1.4;

    background: #f4f4f4;

    color: #222;
}


.seite {
    width: min(
        1200px,
        calc(100% - 30px)
    );

    margin: 0 auto;

    padding: 0 0 20px 0;
}


/*
|--------------------------------------------------------------------------
| Sticky Kopfbereich
|--------------------------------------------------------------------------
*/


.kopfbereich {
    position: sticky;

    top: 0;

    z-index: 1000;

    padding-top: 16px;
    padding-bottom: 12px;

    background: #f4f4f4;

    border-bottom:
        1px solid #ddd;
}


header {
    margin-bottom: 10px;
}


h1 {
    margin-top: 0;
    margin-bottom: 14px;

    font-size: 25px;
}


/*
|--------------------------------------------------------------------------
| Suche
|--------------------------------------------------------------------------
*/


.suche {
    display: flex;

    gap: 8px;

    align-items: center;

    flex-wrap: wrap;
}


.suche input {
    min-width: 300px;

    padding: 8px 10px;

    font-size: 14px;
}


.suche button,
.suche a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 16px;

    border: 1px solid #8f8f9d;

    border-radius: 4px;

    background: #f0f0f4;

    color: #222;

    font-family:
        Arial,
        sans-serif;

    font-size: 14px;
    line-height: normal;

    text-decoration: none;

    cursor: pointer;
}


.suche button:hover,
.suche a:hover {
    background: #e5e5e9;
}


/*
|--------------------------------------------------------------------------
| Buchstabenfilter
|--------------------------------------------------------------------------
*/


.buchstabenfilter {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 10px;
}


.buchstabenfilter a {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 30px;
    height: 28px;

    padding: 0 8px;

    border: 1px solid #d2d2d2;

    border-radius: 5px;

    background: white;

    color: #444;

    font-size: 12px;

    font-weight: 600;

    text-decoration: none;
}


.buchstabenfilter a:hover {
    background: #eeeeee;
}


.buchstabenfilter a.aktiv {
    background: #333;

    border-color: #333;

    color: white;
}


/*
|--------------------------------------------------------------------------
| Ergebnisinfo
|--------------------------------------------------------------------------
*/


.ergebnisinfo {
    margin:
        12px 0
        10px 2px;

    font-size: 12px;

    color: #777;
}


.keine-ergebnisse {
    padding: 20px;

    background: white;

    border-radius: 8px;
}


/*
|--------------------------------------------------------------------------
| Produkt
|--------------------------------------------------------------------------
*/


.produkt {
    background: white;

    padding: 22px 25px;

    margin-bottom: 20px;

    border-radius: 8px;
}


.produkt-kopf {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    align-items: flex-start;
}


.produkt h2 {
    margin-top: 0;
    margin-bottom: 2px;

    font-size: 21px;
}


.datensatz {
    margin-top: 0;
    margin-bottom: 0;

    font-size: 13px;

    color: #666;
}


.typ {
    padding: 5px 12px;

    background: #eee;

    border-radius: 20px;

    font-size: 13px;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Produktinhalt
|--------------------------------------------------------------------------
*/


.produkt-inhalt {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 30px;

    align-items: start;

    margin-top: 22px;
}


/*
|--------------------------------------------------------------------------
| Linker Infoblock
|--------------------------------------------------------------------------
*/


.produkt-info {
    min-width: 0;
}


.produkt-info p {
    margin: 3px 0;

    font-size: 14px;
}


.schlagwoerter {
    display: block;
}


.schlagwoerter strong {
    display: inline;
}


.schlagwoerter span {
    overflow-wrap: anywhere;
}


/*
|--------------------------------------------------------------------------
| Nährwertblock
|--------------------------------------------------------------------------
*/


.naehrwerte {
    width: fit-content;

    min-width: 0;
}


/*
|--------------------------------------------------------------------------
| Nährwerttabelle
|--------------------------------------------------------------------------
*/


.naehrwert-tabelle {
    width: auto;

    table-layout: auto;

    border-collapse: collapse;

    font-size: 11px;
}


.naehrwert-tabelle th,
.naehrwert-tabelle td {
    padding: 5px 12px;

    border-bottom:
        1px solid #ddd;
}


.naehrwert-tabelle thead th {
    font-size: 11px;

    font-weight: 700;

    border-bottom:
        2px solid #ccc;

    white-space: nowrap;
}


.naehrwert-tabelle thead th:first-child {
    width: auto;

    min-width: 145px;

    text-align: left;
}


.naehrwert-tabelle thead th:not(:first-child) {
    min-width: 85px;

    text-align: center;
}


.naehrwert-tabelle tbody th {
    width: auto;

    min-width: 145px;

    text-align: left;

    font-weight: 600;

    white-space: nowrap;
}


.naehrwert-tabelle tbody td {
    min-width: 85px;

    text-align: center;

    white-space: nowrap;
}


/*
|--------------------------------------------------------------------------
| Kopieren
|--------------------------------------------------------------------------
*/


.naehrwert-kopf {
    display: flex;

    justify-content: flex-end;

    width: 100%;

    margin-top: 6px;
    margin-bottom: 0;
}


.kopieren-button {
    padding: 3px 7px;

    border: 0;

    border-radius: 4px;

    background: transparent;

    color: #777;

    font-size: 11px;

    cursor: pointer;
}


.kopieren-button:hover {
    background: #f2f2f2;

    color: #222;
}


.kopieren-button.kopiert {
    color: #333;

    font-weight: 700;
}


/*
|--------------------------------------------------------------------------
| Mobile Ansicht
|--------------------------------------------------------------------------
*/


@media (max-width: 850px) {


    .produkt-inhalt {
        display: block;

        margin-top: 20px;
    }


    .produkt-info {
        margin-bottom: 20px;
    }


    .naehrwerte {
        width: fit-content;

        max-width: 100%;

        overflow-x: auto;
    }


    .naehrwert-tabelle {
        width: max-content;
    }


}


@media (max-width: 750px) {


    .seite {
        width:
            calc(100% - 20px);
    }


    .kopfbereich {
        padding-top: 10px;
    }


    h1 {
        font-size: 21px;

        margin-bottom: 10px;
    }


    .suche input {
        min-width: 0;

        width: 100%;
    }


    .buchstabenfilter {
        gap: 4px;
    }


    .buchstabenfilter a {
        min-width: 27px;
        height: 26px;

        padding: 0 6px;

        font-size: 11px;
    }


    .produkt {
        padding: 18px;
    }


    .naehrwert-tabelle {
        font-size: 10px;
    }


    .naehrwert-tabelle thead th {
        font-size: 10px;
    }


    .naehrwert-tabelle th,
    .naehrwert-tabelle td {
        padding: 5px 8px;
    }


    .naehrwert-tabelle thead th:first-child,
    .naehrwert-tabelle tbody th {
        min-width: 125px;
    }


    .naehrwert-tabelle thead th:not(:first-child),
    .naehrwert-tabelle tbody td {
        min-width: 75px;
    }


}