/* ==========================================================================
   Inserella – App (Login, Dashboard, Upload, Job, Artikel, Abo)
   ========================================================================== */

.app-body { min-height: 100vh; display: flex; flex-direction: column; }
.app-main { flex: 1 0 auto; padding-block: 8px 72px; }
@media (min-width: 800px) { .app-main { padding-block: 16px 120px; } }

.app-nav { display: flex; gap: 4px 14px; align-items: center; }
@media (max-width: 559px) {
  .app-kopf .wortmarke.ist-eingeloggt span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
.app-nav .textknopf { white-space: nowrap; }

.app-fuss { font-size: var(--fs-14); }
.app-fuss .wrap { gap: 10px 24px; }

/* Ansicht-Kopf: Titel + Zurück */
.ansicht-kopf { margin-bottom: 28px; }
.ansicht-kopf h2 { margin-top: 6px; }
.ansicht-kopf p { margin-top: 12px; max-width: 40ch; }
.zurueck {
  display: inline-block;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  min-height: 44px;
  line-height: 44px;
}
@media (min-width: 800px) { .ansicht-kopf { margin-bottom: 40px; } }

.ansicht { max-width: 760px; }
.ansicht--breit { max-width: none; }

/* Meldungen */
.meldung {
  padding: 16px 20px;
  border: var(--outline) solid var(--tinte);
  border-radius: var(--radius-sticker);
  background: var(--weiss);
  box-shadow: 4px 4px 0 var(--tinte);
}
.meldung--fehler { background: var(--sonne); }
.meldung--ok { background: var(--minze); }
.meldung p:last-child { margin-bottom: 0; }
.meldung .knopf { margin-top: 14px; }

/* --------------------------- Login --------------------------- */
.login { max-width: 520px; }
.login .feld { margin-bottom: 20px; }
.login .knopf { width: 100%; }
.code-feld {
  font-size: var(--fs-32);
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 700;
}
.login__hinweis { margin-top: 20px; }

/* --------------------------- Dashboard --------------------------- */
.kontingent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.kontingent__zahl {
  font-family: var(--font-display);
  font-size: var(--fs-32);
  line-height: 1.05;
}
@media (min-width: 800px) { .kontingent__zahl { font-size: var(--fs-44); } }
.kontingent__zahl strong { font-weight: 400; color: var(--himbeere); text-shadow: 2px 2px 0 var(--tinte); }
.kontingent__klein { margin-top: 6px; }
.kontingent .knopf { flex: 0 0 auto; }

.dash-aktion { margin: 28px 0 40px; }
.dash-aktion .knopf { width: 100%; }
@media (min-width: 800px) {
  .dash-aktion { margin: 36px 0 56px; }
  .dash-aktion .knopf { width: auto; min-width: 360px; }
}

.artikel-liste { display: grid; gap: 22px; }
@media (min-width: 640px) { .artikel-liste { grid-template-columns: 1fr 1fr; gap: 28px 24px; } }
@media (min-width: 1000px) { .artikel-liste { grid-template-columns: 1fr 1fr 1fr; } }

.artikel-karte {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  text-decoration: none;
  color: inherit;
}
.artikel-karte:hover { background: var(--papier); }
.artikel-karte__bild {
  width: 96px;
  height: 120px;
  object-fit: cover;
  border: 2px solid var(--tinte);
  border-radius: 12px;
  background: var(--flaeche);
}
.artikel-karte__bild--leer {
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--tinte-weich);
  font-size: var(--fs-14);
}
.artikel-karte__titel {
  font-weight: 700;
  font-size: var(--fs-19);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.artikel-karte__preis { margin-top: 6px; margin-right: 10px; font-family: var(--font-display); font-size: var(--fs-24); line-height: 1; }
.artikel-karte__status { margin-top: 10px; }
.etikett--klein { min-height: 30px; font-size: var(--fs-14); padding: 2px 10px; box-shadow: 2px 2px 0 var(--tinte); }

.leer {
  padding: 32px 24px;
  text-align: left;
}
.leer .knopf { margin-top: 20px; }

/* --------------------------- Upload --------------------------- */
.drop-zone {
  position: relative;
  display: block;
  padding: 32px 20px;
  border: 3px dashed var(--tinte);
  border-radius: var(--radius-sticker);
  background: var(--weiss);
  text-align: center;
  cursor: pointer;
  transition: background-color 120ms;
}
.drop-zone.ist-drueber { background: var(--flieder); }
.drop-zone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-zone__titel { font-weight: 700; font-size: var(--fs-19); }
.drop-zone__satz { margin-top: 8px; color: var(--tinte-weich); }
.drop-zone .knopf { margin-top: 18px; pointer-events: none; }
@media (min-width: 800px) { .drop-zone { padding: 48px 32px; } }

.upload-hinweis { margin-top: 20px; }
.upload-hinweis strong { display: block; margin-bottom: 4px; }

.vorschau {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
@media (min-width: 560px) { .vorschau { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 800px) { .vorschau { grid-template-columns: repeat(6, 1fr); } }
.vorschau__foto {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 2px solid var(--tinte);
  border-radius: 12px;
  overflow: hidden;
  background: var(--flaeche);
}
.vorschau__foto img { width: 100%; height: 100%; object-fit: cover; }
.vorschau__foto span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: var(--fs-14); padding: 8px; text-align: center; }
.vorschau__weg {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--tinte);
  background: var(--weiss);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.upload-los {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
}
.upload-los .knopf { flex: 1 1 260px; }
.upload-los__zahl { font-weight: 700; }

/* --------------------------- Job --------------------------- */
.fortschritt {
  display: block;
  margin-top: 24px;
}
.fortschritt__balken {
  position: relative;
  height: 32px;
  border: var(--outline) solid var(--tinte);
  border-radius: var(--radius-pill);
  background: var(--weiss);
  box-shadow: 4px 4px 0 var(--tinte);
  overflow: hidden;
}
.fortschritt__fuellung {
  position: absolute;
  inset: 0;
  width: 0%;
  background: var(--minze);
  background-image: radial-gradient(var(--tinte) 1px, transparent 1.5px);
  background-size: 10px 10px;
  transition: width 700ms ease-out;
}
.fortschritt__text {
  margin-top: 14px;
  font-weight: 700;
  font-size: var(--fs-19);
}
.fortschritt__prozent {
  font-family: var(--font-display);
  font-size: var(--fs-44);
  line-height: 1;
  margin-bottom: 6px;
}
.job-schritte { margin-top: 28px; display: grid; gap: 10px; }
.job-schritte li { display: flex; gap: 12px; align-items: center; color: var(--tinte-weich); }
.job-schritte li.ist-fertig, .job-schritte li.ist-aktiv { color: var(--tinte); }
.job-schritte li.ist-aktiv { font-weight: 700; }
.job-schritte .punkt {
  width: 22px; height: 22px; flex: 0 0 22px;
  border: 2px solid var(--tinte);
  border-radius: 50%;
  background: var(--weiss);
}
.job-schritte li.ist-fertig .punkt { background: var(--minze); }
.job-schritte li.ist-aktiv .punkt { background: var(--sonne); }
.job-fertig { margin-top: 32px; }
.job-fertig .artikel-liste { margin-top: 20px; }

/* --------------------------- Artikel --------------------------- */
.artikel { display: grid; gap: 36px; }
@media (min-width: 900px) {
  .artikel { grid-template-columns: 6fr 6fr; gap: 56px; align-items: start; }
  .artikel__fotos { position: sticky; top: 16px; }
}
.artikel__text > * + * { margin-top: 24px; }
@media (min-width: 800px) { .artikel__text > * + * { margin-top: 28px; } }

.artikel .feld-label { font-size: var(--fs-19); margin-bottom: 10px; }
.artikel .sticker .feld { box-shadow: none; }
.artikel textarea.feld { min-height: 140px; overflow: hidden; resize: none; }
.artikel .sticker .feld + .knopf,
.artikel .sticker .zeile { margin-top: 16px; }
.gespeichert { color: var(--tinte-weich); font-size: var(--fs-14); }

.preis-feld { display: flex; align-items: center; gap: 10px; }
.preis-feld .feld { width: 130px; text-align: right; font-weight: 700; font-size: var(--fs-24); }
.preis-feld span { font-weight: 700; }

.felder { border: var(--outline) solid var(--tinte); border-radius: var(--radius-sticker); background: var(--weiss); box-shadow: var(--versatz) var(--versatz) 0 var(--tinte); overflow: hidden; }
.felder__zeile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 16px;
  align-items: center;
  padding: 12px 16px 12px 20px;
  border-top: 2px solid var(--tinte);
}
.felder__zeile:first-child { border-top: 0; }
.felder__zeile dt { grid-column: 1; grid-row: 1; font-weight: 700; font-size: var(--fs-14); color: var(--tinte-weich); }
.felder__zeile dd { grid-column: 1; grid-row: 2; margin: 0; }
.felder__zeile .knopf { grid-column: 2; grid-row: 1 / span 2; }

.aktionen { display: grid; gap: 16px; }
@media (min-width: 560px) { .aktionen { grid-template-columns: 1fr 1fr; } }
.aktionen .knopf { width: 100%; }

.hinweis-sticker { display: flex; gap: 14px; align-items: flex-start; }
.hinweis-sticker strong { display: block; margin-bottom: 4px; }

.checkliste { display: grid; gap: 12px; margin-top: 18px; }
.checkliste li { display: flex; gap: 14px; align-items: flex-start; }
.checkliste label { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; min-height: 44px; width: 100%; }
.checkliste input {
  appearance: none;
  -webkit-appearance: none;
  width: 32px; height: 32px; flex: 0 0 32px;
  margin-top: 2px;
  border: var(--outline) solid var(--tinte);
  border-radius: 10px;
  background: var(--weiss);
  box-shadow: 3px 3px 0 var(--tinte);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.checkliste input:checked { background: var(--minze); }
.checkliste input:checked::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--tinte); border-bottom: 3px solid var(--tinte); transform: translateY(-2px) rotate(-45deg); }
.checkliste input:checked + span { text-decoration: line-through; color: var(--tinte-weich); }
.checkliste .schritt-nr { font-family: var(--font-display); color: var(--himbeere); margin-right: 4px; }

/* --------------------------- Abo --------------------------- */
.abo-optionen { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 720px) { .abo-optionen { grid-template-columns: 1fr 1fr; align-items: start; } }
.abo-option .preisschild__betrag { font-size: var(--fs-44); }
.abo-option .knopf { margin-top: 20px; width: 100%; }
.abo-verwalten { margin-top: 32px; }

.artikel-karte__status { display: inline-block; margin-top: 6px; }
