/* =====================================================================
   elabel.css – Vorlage der öffentlichen E-Label-Seiten

   Schlicht und sachlich: Systemschrift (nichts wird nachgeladen), hoher
   Kontrast, große Schrift für das Telefon in der Hand. Keine Bilder,
   keine Markenelemente, keine Schmuckfarben, die nach Werbung aussehen.
   Dunkelmodus folgt der Einstellung des Telefons.
   ===================================================================== */

:root {
    --text: #1b1b1b;
    --leise: #555;
    --linie: #d6d6d6;
    --flaeche: #ffffff;
    --zeile: #f4f4f4;
    --link: #1a4fa0;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --text: #f0f0f0;
        --leise: #b5b5b5;
        --linie: #444;
        --flaeche: #141414;
        --zeile: #1f1f1f;
        --link: #8cb4ff;
    }
}

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

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

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

.el {
    max-width: 40rem;
    margin: 0 auto;
    padding: 1rem 16px 2.5rem;
}

h1 { font-size: 1.6rem; line-height: 1.25; margin: .2rem 0 .3rem; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
p  { margin: 0 0 .8rem; }
a  { color: var(--link); }

.el-sprachen {
    display: flex;
    justify-content: flex-end;
    gap: .3rem;
    margin-bottom: .6rem;
    font-size: .9rem;
}

.el-sprachen a, .el-sprachen span {
    display: inline-block;
    min-width: 2.75rem;
    padding: .45rem .5rem;
    text-align: center;
    border: 1px solid var(--linie);
    border-radius: 4px;
    text-decoration: none;
}

.el-sprachen span { background: var(--text); color: var(--flaeche); border-color: var(--text); font-weight: 600; }

.el-hinweis {
    padding: .6rem .8rem;
    border-left: 4px solid var(--leise);
    background: var(--zeile);
    font-size: .95rem;
}

.el-kopf { padding-bottom: .8rem; margin-bottom: 1.2rem; border-bottom: 2px solid var(--text); }
.el-art { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--leise); margin: 0; }
.el-bezeichnung { font-size: 1.05rem; margin-bottom: .6rem; }

.el-ident { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin: .4rem 0 0; }
.el-ident div { min-width: 7rem; }
.el-ident dt { font-size: .8rem; color: var(--leise); }
.el-ident dd { margin: 0; font-weight: 600; }

.el-abschnitt { margin-bottom: 1.6rem; }

.el-zutaten { font-size: 1.05rem; }
.el-allergen { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

.el-tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.el-tabelle th, .el-tabelle td { padding: .5rem .3rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
.el-tabelle thead th { border-bottom: 2px solid var(--text); font-size: .9rem; }
.el-tabelle td, .el-tabelle thead th:last-child { text-align: right; white-space: nowrap; }
.el-tabelle tbody th { font-weight: 400; }
.el-davon th { padding-left: 1.2rem; color: var(--text); }

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

.el-klein { font-size: .88rem; color: var(--leise); }
.el-stand { margin-top: 1.2rem; }

.el-fuss {
    margin-top: 2rem;
    padding-top: .8rem;
    border-top: 1px solid var(--linie);
    font-size: .88rem;
}

@media print {
    .el-sprachen, .el-fuss { display: none; }
}
