/* =====================================================================
   Anfrageliste und Anfrage — warenkorb.html und kasse.html
   ===================================================================== */

/* ---------- Schrittanzeige ---------- */
.anf-steps { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.anf-step { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 13.5px; color: var(--grey); }
.anf-step b {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: #E9EDE6; color: var(--grey); font-size: 13px; font-weight: 600;
}
.anf-step.ist { color: var(--ink); }
.anf-step.ist b { background: var(--green); color: var(--ink); }
.anf-step.fertig b { background: var(--green-dark); color: #fff; }
.anf-steps i { width: 34px; height: 2px; background: var(--line); display: block; }

/* ---------- Positionen ---------- */
.anf-pos {
  display: grid; grid-template-columns: 92px 1fr auto auto; gap: 20px; align-items: center;
  padding: 18px 20px; background: #fff;
  border: 0; border-left: 2.4px solid var(--card-line); border-bottom: 1px solid var(--line);
  border-radius: 8px 4px 8px 8px; box-shadow: 0 0 8px rgba(0, 0, 0, .07);
  margin-bottom: 14px;
}
.anf-bild img, .anf-kein-bild {
  width: 92px; height: 70px; object-fit: cover; border-radius: 3px; display: block; background: #F2F2EF;
}
.anf-text h3 { font-size: 17px; margin: 0 0 3px; line-height: 1.3; }
.anf-text h3 a { color: var(--ink); }
.anf-text h3 a:hover { color: var(--green-dark); }
.anf-einheit { margin: 0; font-size: 14px; color: var(--body); }
.anf-notiz {
  margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--green-dark);
  background: var(--mint); display: inline-block; padding: 5px 10px; border-radius: 3px;
}
.anf-weg {
  background: none; border: 0; font-size: 26px; line-height: 1; color: var(--grey);
  cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.anf-weg:hover { color: #B3261E; background: #FBEAE9; }

.anf-summe { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ---------- Produkt nachlegen ---------- */
.anf-nachlegen { position: relative; margin-top: 26px; max-width: 520px; }
.anf-nachlegen label { display: block; font-size: 13px; font-family: var(--font-head); font-weight: 500; margin-bottom: 6px; }
.anf-nachlegen input {
  width: 100%; font-family: var(--font-body); font-size: 15px;
  padding: 14px 16px 14px 44px; border: 1px solid #C9D8C4; border-radius: 4px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7A7A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") 14px center/18px no-repeat;
}
.anf-nachlegen input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.anf-treffer {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: 0 18px 34px rgba(15, 23, 42, .14); overflow: hidden;
}
.anf-treffer-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 10px 14px; background: none; border: 0; cursor: pointer; border-bottom: 1px solid #F2F2EF;
}
.anf-treffer-item:last-child { border-bottom: 0; }
.anf-treffer-item:hover, .anf-treffer-item:focus { background: var(--mint); outline: none; }
.anf-treffer-item img, .anf-treffer-item .anf-kein-bild { width: 44px; height: 34px; border-radius: 3px; }
.anf-treffer-item b { display: block; font-family: var(--font-head); font-size: 14.5px; font-weight: 600; color: var(--ink); }
.anf-treffer-item small { display: block; font-size: 12.5px; color: var(--grey); }
.anf-nix { margin: 0; padding: 14px 16px; font-size: 14px; color: var(--grey); }

/* ---------- Hinweis: keine Bestellung ---------- */
.anf-hinweis {
  display: flex; gap: 14px; align-items: flex-start;
  background: #F7F8F5; border-left: 3px solid var(--green);
  padding: 18px 22px; border-radius: 0 4px 4px 0; margin-top: 28px;
}
.anf-hinweis svg { width: 22px; height: 22px; flex: none; stroke: var(--green-dark); fill: none; stroke-width: 1.8; margin-top: 1px; }
.anf-hinweis p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.anf-hinweis b { font-family: var(--font-head); display: block; color: var(--ink); }

.anf-foot { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.anf-foot .rechts { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Schritt 2: Formular und Zusammenfassung ---------- */
.anf-layout { display: grid; grid-template-columns: 1fr 400px; gap: 44px; align-items: start; }

.anf-block { margin-bottom: 34px; }
.anf-block > h2 {
  font-size: 20px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 12px;
}
.anf-block > h2 span {
  width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--green-dark);
  display: grid; place-items: center; font-size: 13px; font-weight: 600; flex: none;
}
.anf-block > p { color: var(--grey); font-size: 14.5px; margin: 0 0 18px 38px; }
.anf-block .form-row, .anf-block > .field, .anf-block > .check { margin-left: 38px; }

.anf-karte {
  position: sticky; top: 24px;
  background: #fff; border: 0;
  border-left: 2.4px solid var(--card-line); border-bottom: 2.4px solid var(--card-line);
  border-radius: 12px 4px 12px 12px; box-shadow: 0 0 10px rgba(0, 0, 0, .16);
  padding: 26px 24px;
}
.anf-karte h2 { font-size: 18px; margin-bottom: 4px; }
.anf-karte .anf-summe { font-size: 13.5px; color: var(--grey); font-weight: 400; }
.anf-karte .anf-pos {
  grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0;
}
.anf-karte .anf-pos:last-of-type { border-bottom: 0; }
.anf-karte .anf-bild img, .anf-karte .anf-kein-bild { width: 56px; height: 44px; }
.anf-karte .anf-text h3 { font-size: 14.5px; }
.anf-karte .anf-einheit { font-size: 13px; }
.anf-karte .anf-notiz { font-size: 12px; padding: 3px 7px; }
.anf-karte .anf-menge { display: none; }
.anf-karte .anf-weg { font-size: 20px; }
.anf-karte-anzahl {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px;
  background: var(--mint); color: var(--green-dark); border-radius: 3px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; padding: 0 7px;
}

/* ---------- schmalere Bildschirme ---------- */
@media (max-width: 1024px) {
  .anf-layout { grid-template-columns: 1fr; gap: 30px; }
  .anf-karte { position: static; }
}
@media (max-width: 640px) {
  .anf-pos { grid-template-columns: 64px 1fr auto; grid-template-areas: "bild text weg" "menge menge menge"; gap: 14px; }
  .anf-bild { grid-area: bild; }
  .anf-text { grid-area: text; }
  .anf-weg  { grid-area: weg; align-self: start; }
  .anf-menge { grid-area: menge; }
  .anf-bild img, .anf-kein-bild { width: 64px; height: 52px; }
  .anf-block > p, .anf-block .form-row, .anf-block > .field, .anf-block > .check { margin-left: 0; }
  .anf-foot { flex-direction: column; align-items: stretch; }
  .anf-foot .rechts .btn { width: 100%; }
}
