/* Entsorgungsseiten, pack.leonmiguel.com
   Eine Datei, keine externen Ressourcen, keine Webfonts.
   Quelldatei, wird von build.py nicht erzeugt. */

:root {
  color-scheme: light dark;
  --bg: #faf9f7;
  --panel: #ffffff;
  --fg: #17181a;
  --muted: #5b5f66;
  --line: #dcd7d0;
  --line-soft: #ebe7e1;
  --chip: #efece7;
  --focus: #0b5fff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131417;
    --panel: #1b1d21;
    --fg: #eceded;
    --muted: #a3a8b0;
    --line: #33363c;
    --line-soft: #26282d;
    --chip: #272a30;
    --focus: #7aa2ff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  overflow-wrap: break-word;
}

.wrap {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.1rem 0;
}

/* --- Sprachumschaltung -----------------------------------------------------
   Jeder Gerüsttext steht siebenmal im HTML, sichtbar ist genau der zum
   aktuellen html[lang]. Ohne JavaScript bleibt es bei lang="en". */

html[lang="de"] [data-l]:not([data-l="de"]),
html[lang="en"] [data-l]:not([data-l="en"]),
html[lang="fr"] [data-l]:not([data-l="fr"]),
html[lang="it"] [data-l]:not([data-l="it"]),
html[lang="es"] [data-l]:not([data-l="es"]),
html[lang="pl"] [data-l]:not([data-l="pl"]),
html[lang="nl"] [data-l]:not([data-l="nl"]) {
  display: none;
}

/* --- Kopf ----------------------------------------------------------------- */

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 0.9rem;
  letter-spacing: -0.01em;
}

h1 .size {
  display: block;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 0.15rem;
}

h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
}

.intro {
  margin: 0.9rem 0 0;
  color: var(--muted);
}

.langbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin: 0 0 0.25rem;
}

.langbar-label {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.langbar button {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1 auto;
  min-width: 2.5rem;
  min-height: 2.75rem;
  padding: 0 0.35rem;
  color: var(--fg);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  cursor: pointer;
}

.langbar button[aria-pressed="true"] {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}

/* --- Bestandteile --------------------------------------------------------- */

table.components {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

table.components th,
table.components td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.5rem 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}

table.components thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}

table.components tbody th {
  font-weight: 600;
  width: 33%;
  padding-right: 0.75rem;
}

table.components td:last-child,
table.components th:last-child {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

.code {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  background: var(--chip);
  border-radius: 0.3rem;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

/* --- Länderblöcke --------------------------------------------------------- */

details.country {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  margin-bottom: 0.5rem;
}

details.country summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

details.country summary::after {
  content: "";
  flex: none;
  width: 0.6rem;
  height: 0.6rem;
  margin-right: 0.2rem;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transform-origin: 60% 60%;
}

details.country[open] summary::after {
  transform: rotate(225deg);
}

details.country[open] summary {
  border-bottom: 1px solid var(--line-soft);
}

ul.rules {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 0.25rem;
}

ul.rules li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

ul.rules li:last-child { border-bottom: 0; }

ul.rules .what { display: block; }

ul.rules .where {
  display: block;
  color: var(--muted);
  padding-left: 1.35rem;
  text-indent: -1.35rem;
}

ul.rules .where::before {
  content: "→ ";
  color: var(--fg);
}

.note {
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

ul.rules + .note {
  padding-top: 0.25rem;
}

/* --- Produktliste auf der Übersicht --------------------------------------- */

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

ul.products li { margin-bottom: 0.5rem; }

ul.products a {
  display: block;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: var(--panel);
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

ul.products .size {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

/* --- Fuß ------------------------------------------------------------------ */

.footer {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer p { margin: 0 0 0.35rem; }

.footer a {
  color: var(--muted);
  min-height: 2.75rem;
  display: inline-block;
  padding: 0.5rem 0;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (min-width: 30rem) {
  h1 .size { display: inline; margin-left: 0.35rem; }
  ul.rules .what { display: inline; }
  ul.rules .where { display: inline; padding-left: 0.35rem; text-indent: 0; }
}
