/* ==========================================================================
   ELBIC Service GmbH – Stylesheet
   Konzept „Umzugskartons“: Kraftkarton, Elbsandstein, tiefes Petrol und
   gelbes Packband. Gliederung:
   1 Schriften · 2 Tokens · 3 Basis · 4 Bausteine · 5 Kopf: Kartonstapel
   6 Hero: Dachboden · 7 Leistungen · 8 Fundgrube · 9 Ablauf · 10 Fragen
   11 Anfrage · 12 Fuß: Tonnen · 13 Rechtstexte und 404 · 14 Cookie-Hinweis
   15 Hilfsklassen · 16 Bewegung · 17 Druck
   ========================================================================== */

/* ---------- 1 Schriften (selbst gehostet, latin + latin-ext) ---------- */
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/gabarito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Gabarito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/gabarito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/sourceserif4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/sourceserif4-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 2 Tokens ---------- */
:root {
  /* Papier, Sandstein, Karton */
  --paper: #f5eee2;
  --paper-deep: #ece2cf;
  --sheet: #fffdf7;
  --sand: #e9dcc3;
  --sand-deep: #cdb48a;
  --carton: #dcc195;
  --kraft: #c49a63;
  --kraft-light: #dcb47f;
  --kraft-shade: #7d5a32;
  --stamp: #66482a;
  --wood: #8a6238;

  /* Petrol, Tinte, Packband */
  --teal: #0e4f4c;
  --teal-deep: #093a38;
  --ink: #1f2321;
  --muted: #5a4f42;
  --line: rgba(31, 35, 33, 0.16);
  --tape: #ffd21f;
  --asphalt: #3b3f3d;
  --curb: #8e8a82;
  --on-dark-muted: #d9c9a8;

  /* Klebepunkte: behalten, verkaufen, spenden, entsorgen */
  --keep: #1d7a74;
  --sell: #ffd21f;
  --give: #3f7d3a;
  --toss: #b93a28;
  --error: #9e2f1f;

  /* Schrift */
  --font-head: 'Gabarito', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3rem);
  --step-2: clamp(1.35rem, 1.2rem + 0.7vw, 1.75rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.1rem, 1.5rem + 3vw, 3.9rem);

  /* Raster */
  --rail: 256px;
  --bar: 68px;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(64px, 8vw, 112px);
  --radius: 6px;
  --crate-h: clamp(46px, 7vh, 62px);
  --shadow: 0 16px 34px -20px rgba(70, 45, 15, 0.6);
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html {
  scroll-padding-top: calc(var(--bar) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--font-body);
  font-optical-sizing: auto;
}

body.nav-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: var(--step-3);
  font-weight: 800;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
}

p,
li,
dd {
  text-wrap: pretty;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--teal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 0.14em;
}

img,
svg {
  max-width: 100%;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--tape);
  color: var(--ink);
  font: 700 1rem var(--font-head);
  text-decoration: none;
  border: 2px solid var(--ink);
}

.skip-link:focus {
  top: 12px;
}

main {
  container-type: inline-size;
  display: block;
}

/* ---------- 4 Bausteine ---------- */

/* Packband-Schaltfläche: die gerissenen Enden liegen auf einer eigenen Ebene,
   damit der Fokusrahmen nicht mit abgeschnitten wird. */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 52px;
  padding: 0.65em 1.5em;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 1.05rem / 1.2 var(--font-head);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-tape::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0) 45%),
    var(--tape);
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 20%, calc(100% - 4px) 40%, 100% 60%, calc(100% - 4px) 80%, calc(100% - 7px) 100%, 7px 100%, 0 80%, 4px 60%, 0 40%, 4px 20%);
  filter: drop-shadow(0 3px 0 rgba(31, 35, 33, 0.85));
  transition: transform 0.2s var(--ease-out);
}

.btn-tape:hover::before {
  transform: translateY(-2px) rotate(-0.6deg);
}

.btn-tape:active::before {
  transform: translateY(1px);
}

.btn-line {
  border: 2px solid var(--ink);
  border-radius: 3px;
  transition: background-color 0.2s;
}

.btn-line:hover {
  background: var(--sheet);
}

.btn-hint {
  font-weight: 500;
}

/* Kartonaufdruck über jeder Überschrift, mit „Diese Seite oben“-Pfeilen */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  margin: 0 0 18px;
  padding: 0.4em 0.75em;
  border: 2px solid currentColor;
  border-radius: 2px;
  color: var(--stamp);
  font: 800 0.8rem / 1 var(--font-head);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.stamp::before {
  content: '';
  width: 22px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15V2M2 6l4-4 4 4M18 15V2M14 6l4-4 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 15V2M2 6l4-4 4 4M18 15V2M14 6l4-4 4 4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.stamp span {
  font-weight: 600;
}

/* Klebepunkte */
.dot {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 2.5px solid #fff;
  border-radius: 50%;
  font: 800 0.95rem / 1 var(--font-head);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.dot-b { background: var(--keep); color: #fff; }
.dot-v { background: var(--sell); color: var(--ink); }
.dot-s { background: var(--give); color: #fff; }
.dot-e { background: var(--toss); color: #fff; }

/* ---------- 5 Kopf: Kartonstapel (Desktop) / Packliste (mobil) ---------- */
.depot {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  height: var(--bar);
  padding: 0 var(--gutter);
  background: var(--paper);
  border-bottom: 3px solid var(--kraft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
}

.brand-word {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-word b {
  color: var(--teal);
  font: 800 1.45rem / 1 var(--font-head);
  letter-spacing: 0.04em;
}

.brand-word small {
  margin-top: 2px;
  color: var(--muted);
  font: 600 0.7rem / 1.2 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.depot-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--tape);
  color: var(--ink);
  font: 700 0.98rem / 1 var(--font-head);
  text-decoration: none;
  white-space: nowrap;
}

.depot-cta:hover {
  background: #ffdf52;
}

/* „Inhalt“: ein kleiner Karton als Menüschalter */
.inhalt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 2px solid var(--kraft-shade);
  border-radius: 3px;
  background: var(--kraft);
  color: var(--ink);
  font: 700 0.98rem / 1 var(--font-head);
  cursor: pointer;
  white-space: nowrap;
}

.inhalt:hover {
  background: var(--kraft-light);
}

.inhalt-box {
  position: relative;
  width: 20px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 6px, var(--tape) 6px 12px, transparent 12px);
  transition: transform 0.25s var(--ease-out);
}

.inhalt[aria-expanded="true"] .inhalt-box {
  transform: rotate(-8deg) translateY(-2px);
}

.stack-title,
.stack-wheel {
  display: none;
}

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

/* Mobile Packliste */
.js .stack {
  position: fixed;
  inset: var(--bar) 0 0;
  z-index: 49;
  display: none;
  overflow-y: auto;
  padding: 18px var(--gutter) 32px;
  border-top: 6px solid var(--tape);
  background: var(--sheet);
  overscroll-behavior: contain;
}

.js .stack.is-open {
  display: block;
}

.js .stack-title {
  display: block;
  margin: 0 0 6px;
  color: var(--stamp);
  font: 800 0.8rem / 1 var(--font-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.crate a {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 14px;
  align-items: center;
  min-height: 64px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.crate-no {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  font: 800 0.78rem / 1 var(--font-head);
}

.crate a[aria-current] .crate-no {
  background: var(--tape);
}

.crate-tape {
  font: 800 1.3rem / 1.15 var(--font-head);
}

.crate-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.crate-last {
  display: none;
}

.stack-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.stack-contact a {
  align-self: flex-start;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font: 800 1.35rem / 1 var(--font-head);
  color: var(--teal);
}

@media (max-width: 379px) {
  .depot {
    gap: 6px;
    padding: 0 12px;
  }

  .brand-word small,
  .inhalt-box {
    display: none;
  }

  .depot-cta,
  .inhalt {
    padding: 0 10px;
  }
}

/* Desktop: der Stapel steht auf einer Sackkarre am linken Rand */
@media (min-width: 1100px) {
  html {
    scroll-padding-top: 24px;
  }

  body {
    padding-left: var(--rail);
  }

  .depot {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 22px 20px 0;
    border-bottom: 0;
    border-right: 3px solid var(--kraft);
    background:
      linear-gradient(0deg, var(--sand-deep) 0 3px, transparent 3px) 0 calc(100% - 92px) / 100% 100% no-repeat,
      var(--sand);
  }

  .brand {
    margin: 0;
    align-self: flex-start;
  }

  .depot-cta,
  .inhalt {
    display: none;
  }

  .js .stack,
  .stack {
    position: static;
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    overflow: visible;
    border-top: 0;
    background: none;
  }

  .js .stack-title {
    display: none;
  }

  .stack-list {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: auto;
    padding-left: 22px;
  }

  /* Sackkarre: Holm mit Griff und Schaufel unter dem untersten Karton */
  .stack-list::before {
    content: '';
    position: absolute;
    left: 4px;
    top: -46px;
    bottom: -6px;
    width: 30px;
    border-top: 7px solid var(--teal);
    border-left: 7px solid var(--teal);
    border-top-left-radius: 16px;
  }

  .stack-list::after {
    content: '';
    position: absolute;
    left: 4px;
    bottom: -6px;
    width: 64%;
    height: 7px;
    border-radius: 0 3px 3px 0;
    background: var(--teal);
  }

  .stack-wheel {
    display: block;
    width: 40px;
    height: 40px;
    margin: -14px 0 0 -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--paper) 0 5px, var(--ink) 6px 12px, #4a4f4c 13px 18px, var(--ink) 19px);
    position: relative;
  }

  .crate {
    width: var(--w);
    margin-top: -2px;
  }

  .crate a {
    position: relative;
    display: block;
    height: var(--crate-h);
    min-height: 0;
    padding: 0;
    border: 2px solid var(--kraft-shade);
    border-radius: 3px 3px 2px 2px;
    background: linear-gradient(180deg, #d0a76d 0 16%, var(--kraft) 16% 100%);
    box-shadow: inset 0 -5px 0 rgba(125, 90, 50, 0.25);
    transform: rotate(var(--tilt));
    transform-origin: left bottom;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  }

  /* Kartonnaht oben in der Mitte */
  .crate a::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 16%;
    border-left: 2px solid rgba(125, 90, 50, 0.6);
  }

  .crate a:hover {
    transform: translateX(10px) rotate(var(--tilt));
  }

  .crate a[aria-current] {
    transform: translateX(28px) rotate(0deg);
    box-shadow: inset 0 -5px 0 rgba(125, 90, 50, 0.25), 10px 10px 18px -10px rgba(60, 40, 15, 0.55);
  }

  .crate-no {
    position: absolute;
    left: 8px;
    top: 3px;
    width: auto;
    height: auto;
    border: 0;
    color: #3d2a14;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
  }

  .crate a[aria-current] .crate-no {
    background: none;
  }

  /* Packband mit Filzstift-Beschriftung quer über den Karton */
  .crate-tape {
    position: absolute;
    left: -2px;
    right: -2px;
    top: 52%;
    padding: 3px 10px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 50%),
      var(--tape);
    font: 800 1.02rem / 1.25 var(--font-head);
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
    transform: translateY(-50%) rotate(-1deg);
  }

  .crate-note {
    display: none;
  }

  .crate-last {
    display: block;
  }

  .stack-contact {
    height: 92px;
    margin: 0;
    padding: 16px 0 0;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .stack-contact a {
    min-height: 32px;
    font-size: 1.15rem;
  }
}

/* ---------- 6 Hero: Dachboden mit Klebepunkten ---------- */
.attic-hero {
  padding: clamp(40px, 6vw, 84px) var(--gutter) 0;
  background:
    linear-gradient(0deg, var(--asphalt) 0 24px, var(--curb) 24px 30px, transparent 30px),
    var(--paper);
}

.hero-head {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-head h1 {
  font-size: var(--step-4);
  font-weight: 800;
  line-height: 1.05;
}

/* Die vier Verben tragen die Farbe ihres Klebepunkts als Unterstreichung. */
.hero-head h1 span {
  text-decoration-line: underline;
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.u-keep { text-decoration-color: var(--keep); }
.u-sell { text-decoration-color: var(--sell); }
.u-give { text-decoration-color: var(--give); }
.u-toss { text-decoration-color: var(--toss); }

.hero-lead {
  max-width: 62ch;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin-top: 30px;
}

.attic {
  max-width: 1180px;
  margin: clamp(32px, 5vw, 56px) auto 0;
}

.attic-art {
  display: block;
  width: 100%;
  height: auto;
}

.item {
  transition: opacity 0.3s, filter 0.3s;
}

.attic[data-active] .item {
  opacity: 0.16;
  filter: grayscale(0.9);
}

.attic[data-active="behalten"] .item[data-sort="behalten"],
.attic[data-active="verkaufen"] .item[data-sort="verkaufen"],
.attic[data-active="spenden"] .item[data-sort="spenden"],
.attic[data-active="entsorgen"] .item[data-sort="entsorgen"] {
  opacity: 1;
  filter: none;
}

.item use {
  transform-box: fill-box;
  transform-origin: center;
}

/* Sortierleiste: der Balken unter dem Dachboden */
.sorter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  padding: 18px clamp(14px, 2.4vw, 26px);
  background: var(--teal-deep);
  color: var(--paper);
  border-radius: 0 0 var(--radius) var(--radius);
}

.sorter-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font: 800 1.15rem / 1.2 var(--font-head);
}

.sorter-title span {
  color: var(--on-dark-muted);
  font: 500 0.85rem / 1.3 var(--font-head);
}

.sorter-list {
  flex: 1 1 520px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sort-key {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 9px 12px;
  border: 2px solid rgba(255, 250, 240, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 250, 240, 0.06);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.sort-key .dot {
  grid-row: span 2;
}

.sort-key:hover,
.sort-key[aria-pressed="true"] {
  border-color: var(--tape);
  background: rgba(255, 210, 31, 0.12);
}

.sort-key:focus-visible {
  outline-color: var(--tape);
}

.sort-name {
  font: 700 1.02rem / 1.2 var(--font-head);
}

.sort-text {
  color: var(--on-dark-muted);
  font-size: 0.86rem;
  line-height: 1.3;
}

@container (min-width: 900px) {
  .sorter-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Straße mit Absetzmulde: die Anschrift steht auf der Seitenwand */
.street {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 0 30px;
  align-items: end;
}

.street-note {
  max-width: 44ch;
  margin: 0;
  color: var(--muted);
}

.mulde {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 620px;
  padding-bottom: 10px;
  background:
    linear-gradient(var(--ink), var(--ink)) left 14% bottom 0 / 22% 10px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right 14% bottom 0 / 22% 10px no-repeat;
}

/* Tragzapfen an den schrägen Stirnseiten */
.mulde::before,
.mulde::after {
  content: '';
  position: absolute;
  top: 38%;
  z-index: 1;
  width: 20px;
  height: 20px;
  border: 4px solid var(--ink);
  border-radius: 50%;
  background: var(--curb);
}

.mulde::before {
  left: 1.5%;
}

.mulde::after {
  right: 1.5%;
}

.mulde-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 168px;
  padding: 34px 13% 22px;
  border-top: 9px solid var(--teal-deep);
  background: repeating-linear-gradient(90deg, var(--teal) 0 52px, var(--teal-deep) 52px 56px);
  color: #fff;
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 89% 100%, 11% 100%);
}

.mulde-body::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 11px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--ink) 10px 20px);
}

.mulde-name {
  color: var(--tape);
  font: 900 clamp(2.3rem, 1.6rem + 3vw, 3.6rem) / 0.95 var(--font-head);
  letter-spacing: 0.14em;
}

.mulde-line {
  font: 700 clamp(0.8rem, 0.74rem + 0.3vw, 0.98rem) / 1.3 var(--font-head);
  letter-spacing: 0.04em;
}

.mulde-phone {
  font: 800 1.05rem / 1 var(--font-head);
  letter-spacing: 0.06em;
}

@container (min-width: 760px) {
  .street {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .street-note {
    padding-bottom: 36px;
  }

  .mulde {
    justify-self: end;
  }
}

/* ---------- 7 Leistungen: zwei Hälften ---------- */
.halves {
  display: grid;
}

.half {
  container-type: inline-size;
  padding: var(--section-y) var(--gutter);
}

.half-clear {
  background:
    repeating-linear-gradient(100deg, rgba(125, 90, 50, 0.05) 0 2px, transparent 2px 9px),
    var(--carton);
}

.half-yard {
  background: var(--paper-deep);
}

.half h2 {
  margin-bottom: 18px;
}

.half-lead {
  max-width: 58ch;
  font-size: var(--step-1);
}

.half-note {
  max-width: 62ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.clear-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.clear-list li {
  padding: 14px 0 14px 34px;
  border-top: 2px dashed rgba(102, 72, 42, 0.45);
  position: relative;
}

/* Kleiner Karton als Aufzählungszeichen */
.clear-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 19px;
  width: 18px;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 2px;
  background: linear-gradient(90deg, var(--kraft) 6px, var(--tape) 6px 11px, var(--kraft) 11px);
}

.clear-list strong {
  display: block;
  font: 700 1.12rem / 1.3 var(--font-head);
}

/* Two columns once the half is wide enough, so both halves end near the same height side by side */
@container (min-width: 540px) {
  .clear-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

.offset {
  position: relative;
  margin-top: 30px;
  padding: 30px clamp(18px, 3vw, 28px) 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  box-shadow: 7px 7px 0 var(--stamp);
}

/* Ein Stück Packband hält das Blatt */
.offset::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  background: rgba(255, 210, 31, 0.85);
  transform: translateX(-50%) rotate(-3deg);
}

.offset-steps {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: offset;
}

.offset-steps li {
  position: relative;
  padding-left: 42px;
  counter-increment: offset;
}

.offset-steps li::before {
  content: counter(offset);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--keep);
  color: #fff;
  font: 800 0.95rem / 1 var(--font-head);
}

.offset-steps b {
  display: block;
  font: 700 1.02rem / 1.3 var(--font-head);
}

.hazard {
  position: relative;
  margin-top: 26px;
  padding: 30px clamp(18px, 3vw, 28px) 18px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  overflow: hidden;
}

.hazard::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 12px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--ink) 10px 20px);
}

.hazard h3 {
  margin-bottom: 10px;
}

.hazard p {
  margin: 0;
}

@container (min-width: 620px) {
  .offset-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offset-steps li {
    padding: 42px 0 0;
  }
}

/* Jahresrad */
.year {
  container-type: inline-size;
  position: relative;
  --month: 10;
  width: min(100%, 380px);
  margin: 30px auto 24px;
}

.wheel {
  display: block;
  width: 100%;
  height: auto;
}

.track {
  transition: opacity 0.3s;
}

.year[data-active] .track {
  opacity: 0.18;
}

.year[data-active="garten"] [data-track="garten"],
.year[data-active="winter"] [data-track="winter"],
.year[data-active="reinigung"] [data-track="reinigung"],
.year[data-active="hausmeister"] [data-track="hausmeister"] {
  opacity: 1;
}

/* Der Zeiger zeigt auf die Mitte des aktuellen Monats. */
.wheel-hand {
  transform-box: view-box;
  transform-origin: 50% 50%;
  transform: rotate(calc(var(--month) * 30deg + 15deg));
}

.wheel-now {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  margin: 0;
  text-align: center;
  pointer-events: none;
}

.wheel-now span {
  color: var(--muted);
  font: 600 4cqi / 1.2 var(--font-head);
}

.wheel-now b {
  font: 800 5.6cqi / 1.1 var(--font-head);
}

.season-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.season-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: 700 0.98rem / 1.2 var(--font-head);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.season-tab:hover {
  background: var(--paper);
}

.season-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--paper);
}

.swatch {
  flex: none;
  width: 14px;
  height: 14px;
  border: 2px solid var(--sheet);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--ink);
}

.swatch-garten { background: var(--give); }
.swatch-winter { background: #2f6f9f; }
.swatch-reinigung { background: #a67c00; }
.swatch-hausmeister { background: #9c7240; }

.season-panel {
  margin-top: 14px;
  padding: 20px clamp(16px, 3vw, 24px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
}

.season-panel h3 span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.season-panel ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.season-panel li {
  position: relative;
  padding: 6px 0 6px 22px;
}

.season-panel li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 3px;
  background: var(--teal);
}

@container (min-width: 560px) {
  .season-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container (min-width: 1060px) {
  /* The clearance half carries more copy, so it gets the wider share */
  .halves {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

/* ---------- 8 Fundgrube: Regal ---------- */
.fundgrube {
  padding: var(--section-y) var(--gutter);
  background: var(--sand);
}

.fund-head {
  max-width: 780px;
}

.fund-head h2 {
  margin-bottom: 18px;
}

.fund-head p:last-child {
  font-size: var(--step-1);
}

.shelf {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 1180px;
  margin: 44px 0 0;
  padding: 0 12px;
  list-style: none;
  border: 14px solid var(--wood);
  border-bottom: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.04), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.04)), #efe3ca;
  box-shadow: var(--shadow);
}

.shelf-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 26px 10px 0;
  border-bottom: 14px solid var(--wood);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.12);
}

.shelf-slot svg {
  display: block;
  width: 100%;
  max-width: 150px;
  height: auto;
}

/* Anhänger aus Kraftpapier mit Loch und Faden */
.shelf-tag {
  position: relative;
  width: 100%;
  max-width: 230px;
  margin: 12px 0 14px;
  padding: 9px 12px 10px 28px;
  border-radius: 3px 10px 10px 3px;
  background: var(--kraft-light);
  font-size: 0.88rem;
  line-height: 1.35;
  hyphens: auto;
  overflow-wrap: anywhere;
  transform: rotate(-1.2deg);
}

.shelf-slot:nth-child(even) .shelf-tag {
  transform: rotate(1deg);
}

.shelf-tag::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 14px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--stamp);
  border-radius: 50%;
  background: var(--sand);
}

.shelf-tag b {
  display: block;
  font: 700 1.02rem / 1.25 var(--font-head);
}

.fund-how {
  display: grid;
  gap: 8px 48px;
  max-width: 1180px;
  margin-top: 44px;
}

.fund-how h3 {
  grid-column: 1 / -1;
  margin-bottom: 8px;
}

.fund-how ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}

.fund-how li {
  position: relative;
  padding: 6px 0 10px 44px;
  counter-increment: how;
}

.fund-how li::before {
  content: counter(how);
  position: absolute;
  left: 0;
  top: 4px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--tape);
  font: 800 0.95rem / 1 var(--font-head);
}

.fund-how p {
  align-self: start;
  margin: 0;
  padding: 16px 18px;
  border-left: 5px solid var(--give);
  background: var(--sheet);
}

@container (min-width: 360px) {
  .shelf {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 860px) {
  .shelf {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

/* ---------- 9 Ablauf: Kartons auf dem Förderband ---------- */
.ablauf {
  padding: var(--section-y) var(--gutter);
}

.ablauf h2 {
  max-width: 22ch;
}

.steps {
  display: grid;
  row-gap: 44px;
  column-gap: 0;
  max-width: 1180px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  flex-direction: column;
  padding: 0 clamp(12px, 1.6vw, 20px);
}

.step svg {
  display: block;
  width: 100%;
  max-width: 176px;
  height: 120px;
  margin: 0 auto;
}

/* Das Band läuft unter allen Kartons einer Reihe durch. */
.step::after {
  content: '';
  order: 1;
  height: 14px;
  margin: 0 calc(-1 * clamp(12px, 1.6vw, 20px)) 20px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: repeating-linear-gradient(90deg, #4a4f4c 0 16px, var(--curb) 16px 20px);
}

.step h3,
.step p {
  order: 2;
}

.step h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  hyphens: manual;
}

.step-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--tape);
  font: 800 1.1rem / 1 var(--font-head);
}

.step p {
  margin: 0 0 12px;
}

.step .step-time {
  order: 3;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--teal);
  font: 700 0.9rem / 1.3 var(--font-head);
}

@container (min-width: 620px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container (min-width: 980px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- 10 Fragen: Inventarliste ---------- */
.fragen {
  padding: var(--section-y) var(--gutter);
  background: var(--teal-deep);
  color: var(--paper);
}

.fragen .stamp {
  color: var(--tape);
}

.fragen h2 {
  max-width: 24ch;
  margin-bottom: 36px;
}

.inventory {
  container-type: inline-size;
  max-width: 1180px;
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.7);
}

.inventory-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 16px 20px;
  border-bottom: 4px double var(--ink);
  font: 800 0.78rem / 1.2 var(--font-head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.inventory-table {
  width: 100%;
  border-collapse: collapse;
}

.inventory-table th,
.inventory-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #c9d6dc;
  text-align: left;
  vertical-align: top;
}

.inventory-table thead th {
  background: var(--paper-deep);
  font: 800 0.76rem / 1.2 var(--font-head);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inventory-table td:first-child {
  width: 64px;
  border-right: 2px solid rgba(185, 58, 40, 0.45);
  color: var(--teal);
  font: 800 1.1rem / 1.3 var(--font-head);
}

.inventory-table td:nth-child(2) {
  width: 140px;
  color: var(--muted);
  font: 700 0.86rem / 1.5 var(--font-head);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-table tbody th {
  width: 28%;
  font: 700 1.06rem / 1.35 var(--font-head);
}

.inventory-table tbody tr:last-child > * {
  border-bottom: 0;
}

/* Schmale Liste: jede Zeile wird ein Eintrag mit Beschriftungen. */
@container (max-width: 699px) {
  .inventory-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .inventory-table,
  .inventory-table tbody {
    display: block;
  }

  .inventory-table tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 14px;
    padding: 18px 18px 16px;
    border-bottom: 1px solid #c9d6dc;
  }

  .inventory-table tbody tr:last-child {
    border-bottom: 0;
  }

  .inventory-table th,
  .inventory-table td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  .inventory-table td:first-child {
    width: auto;
    border: 0;
  }

  .inventory-table td:nth-child(2) {
    width: auto;
    align-self: center;
  }

  .inventory-table tbody th,
  .inventory-table td:last-child {
    grid-column: 1 / -1;
  }

  .inventory-table tbody th {
    width: auto;
    margin-top: 10px;
  }

  .inventory-table td:last-child {
    margin-top: 10px;
  }

  .inventory-table td:last-child::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font: 700 0.72rem / 1.3 var(--font-head);
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }
}

/* ---------- 11 Anfrage: Raumzähler ---------- */
.anfrage {
  display: grid;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
  background:
    repeating-linear-gradient(100deg, rgba(125, 90, 50, 0.05) 0 2px, transparent 2px 9px),
    var(--carton);
}

.anfrage-intro h2 {
  margin-bottom: 18px;
}

.anfrage-intro > p {
  max-width: 50ch;
  font-size: var(--step-1);
}

.slip {
  position: relative;
  max-width: 460px;
  margin-top: 32px;
  padding: 30px 24px 22px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  box-shadow: 7px 7px 0 var(--stamp);
}

.slip::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 28px;
  width: 86px;
  height: 24px;
  background: rgba(255, 210, 31, 0.85);
  transform: rotate(-4deg);
}

.slip-people {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.slip-people div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
}

.slip-people dt {
  font: 700 1.08rem / 1.3 var(--font-head);
}

.slip-people dd {
  margin: 0;
  color: var(--muted);
}

.slip-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 18px 0 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.slip-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1.12rem / 1.2 var(--font-head);
  overflow-wrap: anywhere;
}

.slip-hours,
.slip-firm {
  color: var(--muted);
  font-size: 0.94rem;
}

.slip-firm {
  margin: 0;
}

.count-form {
  container-type: inline-size;
  padding: clamp(20px, 3.4vw, 36px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 9px 9px 0 var(--stamp);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 20px;
  min-width: 0;
}

.field > label,
.count-form legend {
  font: 700 1rem / 1.3 var(--font-head);
}

.req,
.opt {
  margin-left: 4px;
  font: 600 0.78rem / 1 var(--font-head);
  letter-spacing: 0.02em;
}

.req {
  color: var(--error);
}

.opt {
  color: var(--muted);
}

.count-form input:not([type="radio"]),
.count-form select,
.count-form textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.6em 0.8em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
  font: 400 1rem / 1.4 var(--font-body);
}

.count-form textarea {
  resize: vertical;
}

.count-form input:focus-visible,
.count-form select:focus-visible,
.count-form textarea:focus-visible {
  outline-offset: 1px;
}

.count-form [aria-invalid="true"] {
  border-color: var(--toss);
  background: #fff6f3;
}

.field-error {
  margin: 0;
  color: var(--error);
  font: 600 0.9rem / 1.35 var(--font-head);
}

.field-error:empty {
  display: none;
}

.field-hint {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.count-form fieldset {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.field-row {
  display: grid;
  column-gap: 18px;
}

.rooms {
  border-radius: var(--radius);
  background: var(--paper-deep);
}

.count-form .rooms {
  padding: 18px;
  border: 2px dashed var(--stamp);
}

.rooms legend {
  float: left;
  width: 100%;
  margin-bottom: 4px;
}

.rooms legend + .field-hint {
  clear: both;
}

.rooms[aria-invalid="true"] {
  border-color: var(--toss);
}

.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* Jeder Zähler ist ein kleiner Karton mit Packband oben. */
.counter {
  position: relative;
  padding: 18px 8px 10px;
  border: 2px solid var(--kraft-shade);
  border-radius: 3px;
  background: var(--kraft);
  text-align: center;
}

.counter::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -2px;
  width: 26px;
  height: 12px;
  background: var(--tape);
  transform: translateX(-50%);
}

.counter label {
  font: 800 0.86rem / 1.2 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.counter-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 2px;
  margin-top: 8px;
}

.counter-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--sheet);
  color: var(--ink);
  font: 800 1.4rem / 1 var(--font-head);
  cursor: pointer;
}

.counter-btn:hover {
  background: var(--tape);
}

.counter-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.count-form .counter input {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font: 800 1.7rem / 1 var(--font-head);
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}

.counter input::-webkit-inner-spin-button,
.counter input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.rooms-sum {
  margin: 14px 0 0;
  color: var(--teal);
  font: 700 1rem / 1.3 var(--font-head);
}

.rooms .field-error {
  margin-top: 8px;
}

.lift-options {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.lift-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  cursor: pointer;
}

.lift-options label:has(:checked) {
  background: var(--tape);
}

.lift-options input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--teal);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-submit {
  width: 100%;
  font-size: 1.12rem;
}

.form-status {
  margin-top: 18px;
}

.form-status:empty {
  display: none;
}

.form-status.is-success,
.form-status.is-error {
  padding: 14px 16px;
  border-left: 5px solid var(--give);
  background: #eef4ec;
}

.form-status.is-error {
  border-left-color: var(--toss);
  background: #fbecea;
}

@container (min-width: 520px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .field-row-etage {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }

  .btn-submit {
    width: auto;
  }
}

@container (min-width: 640px) {
  .counters {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@container (min-width: 980px) {
  .anfrage {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: start;
    column-gap: clamp(32px, 4vw, 64px);
  }
}

/* ---------- 12 Fuß: Mülltonnen mit den Rechtslinks ---------- */
.site-footer {
  padding-top: 52px;
  background: var(--sand);
}

.bins ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 18px 12px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  list-style: none;
}

.bin {
  position: relative;
  --bin: var(--teal);
  --lid: var(--teal-deep);
}

.bin-blue { --bin: #2f6f9f; --lid: #22547a; }
.bin-yellow { --bin: #f2c200; --lid: #c99a00; }
.bin-brown { --bin: #7a4f2a; --lid: #5d3b1e; }
.bin-grey { --bin: #55605c; --lid: #3b4441; }

/* Räder */
.bin::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 0;
  height: 16px;
  background:
    radial-gradient(circle at 8px 8px, var(--ink) 0 7px, transparent 7.5px) left / 16px 16px no-repeat,
    radial-gradient(circle at 8px 8px, var(--ink) 0 7px, transparent 7.5px) right / 16px 16px no-repeat;
  pointer-events: none;
}

.bin a,
.bin button {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 150px;
  padding: 30px 14px 24px;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 0.9rem / 1.2 var(--font-head);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* Tonnenkörper */
.bin a::before,
.bin button::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: 22px;
  bottom: 10px;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 18%, transparent 18% 82%, rgba(0, 0, 0, 0.12) 82%),
    var(--bin);
  clip-path: polygon(0 0, 100% 0, 93% 100%, 7% 100%);
}

/* Deckel, der sich beim Darüberfahren hebt */
.bin a::after,
.bin button::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  top: 8px;
  height: 16px;
  border-radius: 7px 7px 2px 2px;
  background: var(--lid);
  transform-origin: 6px 100%;
  transition: transform 0.3s var(--ease-out);
}

.bin a:hover::after,
.bin button:hover::after,
.bin a:focus-visible::after,
.bin button:focus-visible::after {
  transform: rotate(-14deg) translateY(-3px);
}

.bin-label {
  display: block;
  max-width: 100%;
  padding: 7px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  hyphens: manual;
}

.bin a[aria-current] .bin-label {
  background: var(--tape);
}

.footer-ground {
  margin-top: 0;
  padding: 24px var(--gutter) 30px;
  border-top: 6px solid var(--curb);
  background: var(--asphalt);
  color: var(--paper);
  text-align: center;
  font-size: 0.95rem;
}

.footer-ground p {
  margin: 0 0 6px;
}

.footer-ground a {
  color: var(--paper);
}

.footer-ground a:focus-visible {
  outline-color: var(--tape);
}

.footer-firm strong {
  display: block;
  font-family: var(--font-head);
}

.footer-contact a {
  display: inline-block;
  padding: 10px 2px;
}

.footer-legal {
  color: var(--on-dark-muted);
  font-size: 0.86rem;
}

/* ---------- 13 Rechtstexte und 404 ---------- */
.doc {
  overflow-x: clip;
  padding: clamp(36px, 6vw, 72px) var(--gutter) var(--section-y);
  background:
    repeating-linear-gradient(100deg, rgba(125, 90, 50, 0.05) 0 2px, transparent 2px 9px),
    var(--carton);
}

.doc-sheet {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(26px, 5vw, 60px) clamp(18px, 5vw, 64px);
  background: var(--sheet);
  box-shadow: var(--shadow);
}

/* Zwei Streifen Packband halten das Blatt an den Ecken. */
.doc-sheet::before,
.doc-sheet::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 96px;
  height: 26px;
  background: rgba(255, 210, 31, 0.85);
}

.doc-sheet::before {
  left: -22px;
  transform: rotate(-24deg);
}

.doc-sheet::after {
  right: -22px;
  transform: rotate(24deg);
}

.doc-kicker {
  margin: 0 0 10px;
  color: var(--stamp);
  font: 700 0.86rem / 1.3 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc h1 {
  font-size: var(--step-3);
  font-weight: 800;
  hyphens: manual;
}

.prose {
  margin-top: 28px;
}

.prose h2 {
  margin: 2.2em 0 0.6em;
  font-size: var(--step-2);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: var(--step-1);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 22px;
  margin: 0 0 1em;
}

.prose dt {
  font: 700 1rem / 1.6 var(--font-head);
}

.prose dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.prose address {
  margin: 0 0 1em;
  font-style: normal;
}

.lead {
  font-size: var(--step-1);
}

.toc {
  margin: 28px 0 8px;
  padding: 20px 24px;
  border: 2px dashed var(--stamp);
  background: var(--paper);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: var(--step-1);
}

.toc ol {
  margin: 0;
  columns: 2 240px;
  column-gap: 32px;
}

.toc li {
  break-inside: avoid;
}

.highlight {
  margin: 1.4em 0;
  padding: 4px 22px 8px;
  border-left: 6px solid var(--tape);
  background: var(--paper);
}

.form-sample {
  margin: 0 0 1.4em;
  padding: 16px 22px;
  border: 2px dashed var(--line);
}

.form-sample ul {
  list-style: none;
  padding-left: 0;
}

.table-wrap {
  margin: 1.4em 0;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.table-wrap th,
.table-wrap td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.table-wrap thead th {
  background: var(--paper-deep);
  font: 700 0.84rem / 1.3 var(--font-head);
}

code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .table-wrap table,
  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td {
    display: block;
  }

  .table-wrap tr {
    padding: 12px 0;
    border-bottom: 2px solid var(--line);
  }

  .table-wrap td {
    position: relative;
    padding: 4px 0 4px 8em;
    border: 0;
  }

  .table-wrap td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 6px;
    width: 7.5em;
    font: 700 0.82rem / 1.5 var(--font-head);
  }

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

  .prose dd {
    margin-bottom: 10px;
  }
}

.lost {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.lost svg {
  width: min(280px, 80%);
  height: auto;
}

.lost p {
  max-width: 46ch;
}

.lost-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 6px 0 22px;
  padding: 0;
  list-style: none;
}

.lost-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 700 1rem / 1.2 var(--font-head);
}

/* ---------- 14 Cookie-Hinweis: ein Lieferschein am Bildschirmrand ---------- */
.consent {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  max-width: 540px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 26px 22px 18px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  box-shadow: 8px 8px 0 var(--stamp);
}

.consent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(-45deg, var(--tape) 0 10px, var(--ink) 10px 20px);
}

.consent-title {
  margin: 0 0 8px;
  font-size: var(--step-1);
}

.consent-text {
  margin: 0 0 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.consent-btn {
  flex: 1 1 140px;
  min-height: 48px;
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--sheet);
  color: var(--ink);
  font: 700 0.98rem / 1.2 var(--font-head);
  cursor: pointer;
}

.consent-btn:hover {
  background: var(--tape);
}

.consent-btn-save {
  background: var(--ink);
  color: var(--paper);
}

.consent-btn-save:hover {
  background: var(--teal);
}

.consent-link {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--teal);
  font: 700 0.95rem / 1.2 var(--font-head);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

.consent-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
  color: var(--ink);
}

.consent-dialog::backdrop {
  background: rgba(31, 35, 33, 0.6);
}

.consent-dialog-inner {
  padding: 26px clamp(18px, 4vw, 30px) 22px;
}

.consent-categories {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.consent-category {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.consent-category p {
  margin: 6px 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.consent-category-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.consent-category-head h3 {
  font-size: 1.05rem;
}

.consent-always {
  color: var(--teal);
  font: 700 0.86rem / 1 var(--font-head);
}

.consent-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 54px;
  height: 44px;
  cursor: pointer;
}

.consent-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.consent-switch-track {
  position: relative;
  width: 54px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 15px;
  background: #b7b0a3;
  transition: background-color 0.2s;
}

.consent-switch-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: 0 0 0 1.5px var(--ink);
  transition: transform 0.2s var(--ease-out);
}

.consent-switch input:checked + .consent-switch-track {
  background: var(--teal);
}

.consent-switch input:checked + .consent-switch-track::after {
  transform: translateX(24px);
}

.consent-switch input:focus-visible + .consent-switch-track {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

@media (min-width: 1100px) {
  .consent {
    left: calc(var(--rail) + 20px);
    right: auto;
    bottom: 20px;
  }
}

/* ---------- 15 Hilfsklassen ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.nobr {
  white-space: nowrap;
}

/* ---------- 16 Bewegung ---------- */
@keyframes dot-pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }
}

.item use {
  animation: dot-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both;
  animation-delay: 0.4s;
}

.item[data-sort="verkaufen"] use { animation-delay: 0.6s; }
.item[data-sort="spenden"] use { animation-delay: 0.8s; }
.item[data-sort="entsorgen"] use { animation-delay: 1s; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 17 Druck ---------- */
@media print {
  body {
    padding-left: 0;
    background: #fff;
  }

  .depot,
  .bins,
  .consent,
  .consent-dialog,
  .sorter,
  .count-form {
    display: none;
  }

  .doc,
  .doc-sheet {
    padding: 0;
    background: #fff;
    box-shadow: none;
  }

  .doc-sheet::before,
  .doc-sheet::after {
    display: none;
  }

  .footer-ground {
    background: #fff;
    color: #000;
  }
}
