/* Verwaltung des Flohmarkts (index.php) – baut auf /tools/buchung/buchung.css und /tools/wunschliste/wunsch.css auf. */

/* Startseite: Attrappe */
.fl-attrappe { width: min(100%, 380px); padding: 16px; border-radius: 24px; background: #fff; color: #1c1917; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; box-shadow: 0 40px 90px -30px rgba(13, 148, 136, .55), 0 0 0 1px rgba(255, 255, 255, .15); transform: rotate(-2deg); animation: bu-schweben 7s ease-in-out infinite; }
.fl-attrappe-kopf { display: flex; align-items: center; gap: 12px; margin: -16px -16px 14px; padding: 18px 16px; border-radius: 24px 24px 0 0; background: linear-gradient(135deg, #0d9488, #65a30d); color: #fff; }
.fl-attrappe-kopf > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .2); font-size: 24px; }
.fl-attrappe-kopf b { display: block; font-size: 14px; } .fl-attrappe-kopf small { opacity: .85; font-size: 12px; }
.fl-attrappe-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fl-a-karte { display: grid; gap: 4px; padding: 8px; border-radius: 14px; border: 1px solid #e7e5e4; font-size: 12px; }
.fl-a-karte > i { display: grid; place-items: center; height: 64px; border-radius: 10px; background: hsl(var(--h) 70% 93%); font-style: normal; font-size: 30px; }
.fl-a-karte b { font-size: 13px; }
.fl-a-karte em { justify-self: start; padding: 2px 8px; border-radius: 99px; background: #f5f5f4; font-style: normal; font-weight: 700; color: #57534e; }
.fl-a-karte em.frei { background: #ccfbf1; color: #0f766e; }
.fl-a-karte.weg > i { filter: grayscale(1); opacity: .5; } .fl-a-karte.weg em { background: #1c1917; color: #fff; }
.fl-a-karte.res em { background: #fef3c7; color: #92400e; }
.fl-start { max-width: 560px; margin: 0 auto; }
.fl-badge-anfragen { background: #e11d48 !important; animation: bu-puls 2s ease-in-out infinite; }

/* Schnell-Erfassung */
.fl-ablage { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1.2rem; padding: 1.1rem 1.2rem; border: 2px dashed rgba(255, 198, 26, .45); border-radius: 20px; background: linear-gradient(135deg, rgba(255, 198, 26, .08), rgba(255, 198, 26, .02)); transition: border-color .2s, background .2s, transform .2s; }
.fl-ablage.ziel { border-color: var(--gelb); background: rgba(255, 198, 26, .14); transform: scale(1.01); }
.fl-ablage > div:nth-child(2) { display: grid; flex: 1 1 260px; } .fl-ablage b { color: #fff; font-size: 1.05rem; } .fl-ablage small { color: var(--text-2); }
.fl-ablage-symbol { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--gelb); color: #111; font-size: 1.4rem; }
.fl-ablage.ziel .fl-ablage-symbol, .fl-ablage.laedt .fl-ablage-symbol { animation: wl-wippen 1s ease-in-out infinite; }
.fl-fortschritt { flex: 1 1 100%; display: grid; gap: .35rem; }
.fl-fortschritt i { display: block; height: 8px; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ffd54a, #34d399); transition: width .3s var(--kurve); }
.fl-fortschritt span { color: var(--text-2); font-size: .85rem; }
.fl-ablage.laedt label { pointer-events: none; opacity: .5; }

/* Entwürfe */
.fl-entwuerfe { margin-bottom: 1.2rem; border-color: rgba(255, 198, 26, .35); }
.fl-entwurf-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fl-entwurf { position: relative; display: grid; gap: .45rem; padding: 8px; border-radius: 16px; background: rgba(0, 0, 0, .2); box-shadow: inset 0 0 0 1px var(--rand); animation: wl-neu .5s var(--feder) both; animation-delay: calc(var(--i, 0) * 40ms); }
.fl-entwurf:has(input[name$="[weg]"]:checked) { opacity: .4; }
.fl-entwurf-bild { display: block; aspect-ratio: 4 / 3; border-radius: 12px; background: #fff; overflow: hidden; }
.fl-entwurf-bild img { width: 100%; height: 100%; object-fit: cover; }
.bu-app .fl-entwurf input[type=text], .bu-app .fl-entwurf select { width: 100%; min-width: 0; padding: .5rem .65rem; border-radius: 10px; border: 1px solid var(--rand-2); background: rgba(0, 0, 0, .3); color: var(--text); font: 500 14px 'Exo 2', sans-serif; }
.bu-app .fl-entwurf select option { background: #10163d; }
.bu-app .fl-entwurf input[type=text]:focus { outline: 0; border-color: var(--gelb); }
.fl-entwurf-preis { display: flex; gap: .4rem; } .fl-entwurf-preis select { flex: 1; } .fl-entwurf-preis input { width: 70px !important; flex: none; }
.fl-entwurf-weg { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; }
.fl-entwurf-weg input { position: absolute; opacity: 0; }
.fl-entwurf-weg:has(input:checked) { background: #e11d48; }

/* Artikel */
.fl-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.fl-karte { display: flex; flex-direction: column; gap: .5rem; padding: 8px 8px 10px; border-radius: 18px; background: var(--flaeche); border: 1px solid var(--rand); transition: border-color .2s, transform .2s var(--kurve); }
.fl-karte:hover { border-color: var(--rand-2); transform: translateY(-2px); }
.fl-karte.neu { animation: wl-neu .9s var(--feder) both; border-color: var(--gelb); }
.fl-karte[hidden] { display: none; }
.fl-karte-bild { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: 12px; background: #fff; overflow: hidden; cursor: pointer; color: #cbd5e1; font-size: 2rem; }
.fl-karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--kurve); }
.fl-karte-bild:hover img { transform: scale(1.04); }
.fl-st-weg .fl-karte-bild img { filter: grayscale(1) opacity(.5); }
.fl-bildzahl, .fl-interessenten { position: absolute; bottom: 8px; padding: .15rem .5rem; border-radius: 99px; font-size: .74rem; font-weight: 700; }
.fl-bildzahl { left: 8px; background: rgba(0, 0, 0, .6); color: #fff; }
.fl-interessenten { right: 8px; background: #e11d48; color: #fff; }
.fl-karte-text { display: grid; padding: 0 4px; } .fl-karte-text b { color: #fff; overflow-wrap: anywhere; } .fl-karte-text small { color: var(--text-2); }
.fl-preis-verschenken { color: #5eead4 !important; font-weight: 700; }
.fl-status { display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 12px; background: rgba(0, 0, 0, .25); }
.fl-status form { display: contents; }
.fl-status button { padding: .35rem .2rem; border: 0; border-radius: 9px; background: none; color: var(--text-3); font: 600 12px 'Exo 2', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.fl-status button:hover { color: #fff; }
.fl-st-frei .fl-status button.an { background: #14b8a6; color: #04201d; }
.fl-st-reserviert .fl-status button.an { background: #fbbf24; color: #2b1d00; }
.fl-st-weg .fl-status button.an { background: #e7e5e4; color: #1c1917; }
.fl-karte-knoepfe { display: flex; justify-content: flex-end; gap: .3rem; }

/* Artikel-Dialog */
.fl-artikel-dialog { width: min(640px, calc(100vw - 24px)); }
.fl-bilder { display: flex; flex-wrap: wrap; gap: 8px; margin: .2rem 0 .3rem; }
.fl-bild, .fl-bild-dazu { position: relative; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 14px; overflow: hidden; }
.fl-bild { background: #fff; animation: wl-neu .4s var(--feder) both; } .fl-bild img { width: 100%; height: 100%; object-fit: cover; }
.fl-bild.laedt { background: rgba(0, 0, 0, .3); color: var(--gelb); }
.fl-bild.erstes { box-shadow: 0 0 0 3px var(--gelb); }
.fl-bild.erstes::after { content: 'Titelbild'; position: absolute; left: 0; right: 0; bottom: 0; padding: 1px; background: var(--gelb); color: #111; font-size: .62rem; font-weight: 800; text-align: center; }
.fl-bild button { position: absolute; top: 4px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; font-size: .7rem; cursor: pointer; }
.fl-bild-weg { right: 4px; } .fl-bild-vor { left: 4px; }
.fl-bild-dazu { gap: 2px; align-content: center; border: 2px dashed var(--rand-2); color: var(--text-2); font-size: .78rem; font-weight: 700; cursor: pointer; transition: border-color .2s, color .2s; }
.fl-bild-dazu i { font-size: 1.3rem; } .fl-bild-dazu:hover { border-color: var(--gelb); color: #fff; } .fl-bild-dazu[hidden] { display: none; }
.fl-bilder-hinweis { margin: 0 0 .8rem; }
.fl-preisart { display: flex; flex-wrap: wrap; gap: .4rem; }
.fl-preisart label { position: relative; cursor: pointer; } .fl-preisart input { position: absolute; opacity: 0; }
.fl-preisart span { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .85rem; border-radius: 99px; background: var(--flaeche-2); box-shadow: inset 0 0 0 1px var(--rand); color: var(--text-2); font-weight: 600; font-size: .9rem; transition: background .2s, color .2s; }
.fl-preisart input:checked + span { background: var(--gelb); color: #111; box-shadow: none; }
.fl-preisart input:focus-visible + span { outline: 2px solid var(--gelb); outline-offset: 2px; }
.fl-nur-preis { display: none; }
form:has([name=preisart][value=festpreis]:checked) .fl-nur-preis, form:has([name=preisart][value=vb]:checked) .fl-nur-preis { display: grid; }
.fl-versand { margin: 1.5rem 0 1rem; padding: .7rem .9rem; }

/* Anfragen */
.fl-anfrage-gruppe { margin-bottom: 14px; }
.fl-anfrage-kopf { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; }
.fl-anfrage-kopf b { color: #fff; } .fl-anfrage-kopf small { display: block; color: var(--text-3); }
.fl-anfrage-bild { flex: none; width: 56px; height: 56px; border-radius: 12px; background: #fff; overflow: hidden; } .fl-anfrage-bild img { width: 100%; height: 100%; object-fit: cover; }
.fl-st-weg .fl-status-text { color: var(--text-3); } .fl-st-reserviert .fl-status-text { color: #fcd34d; } .fl-st-frei .fl-status-text { color: #5eead4; }
.fl-anfragen { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fl-anfrage { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: .8rem; align-items: start; padding: 10px 12px; border-radius: 14px; background: rgba(0, 0, 0, .2); }
.fl-anfrage-nr { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--flaeche-2); color: var(--text-2); font-weight: 800; font-size: .85rem; }
.fl-a-zugesagt { box-shadow: inset 0 0 0 1.5px #fbbf24; } .fl-a-zugesagt .fl-anfrage-nr { background: #fbbf24; color: #2b1d00; }
.fl-a-abgesagt { opacity: .5; }
.fl-anfrage-text b { color: #fff; } .fl-anfrage-text small { color: var(--text-3); }
.fl-kontakt { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin-top: .25rem; font-size: .86rem; } .fl-kontakt a { color: var(--text-2); } .fl-kontakt a:hover { color: #fff; } .fl-kontakt i { color: var(--text-3); }
.fl-anfrage-knoepfe { display: grid; justify-items: end; gap: .3rem; }
.fl-a-status { font-size: .74rem; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 600px) { .fl-anfrage { grid-template-columns: 30px minmax(0, 1fr); } .fl-anfrage-knoepfe { grid-column: 2; justify-items: start; grid-auto-flow: column; align-items: center; } }
