/* dds Feedback-Layer – Post-its für die interne Abstimmung.
   Bewusst NICHT im CD (gelb, Mono-Label), damit klar ist: das ist nicht Teil der Seite.
   Entfernen: FEEDBACK = False in build.py, neu bauen, Ordner /feedback löschen. */

.fb-root { position: absolute; inset: 0 auto auto 0; width: 100%; height: 0; z-index: 9000; pointer-events: none; font-family: "Strawford", system-ui, sans-serif; }
.fb-root * { box-sizing: border-box; }

/* Leiste */
.fb-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9500; display: flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; background: #1E1E1E; color: #fff; border-radius: 999px; box-shadow: 0 12px 40px -10px rgba(0,0,0,.5); font-size: 13px; pointer-events: auto; }
.fb-bar .fb-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #FFE66D; margin-right: 4px; }
.fb-bar .fb-name { color: rgba(255,255,255,.7); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-bar .fb-name button { color: rgba(255,255,255,.7); text-decoration: underline; background: none; border: 0; cursor: pointer; font: inherit; padding: 0 2px; }
.fb-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.1); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fb-btn:hover { background: rgba(255,255,255,.18); }
.fb-btn.primary { background: #FFE66D; color: #1E1E1E; }
.fb-btn.primary.active { background: #ff9f43; color: #1E1E1E; box-shadow: 0 0 0 3px rgba(255,159,67,.35); }
.fb-btn .fb-count { background: rgba(0,0,0,.25); border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.fb-btn.primary .fb-count { background: rgba(0,0,0,.15); }
.fb-bar a.fb-btn { text-decoration: none; }
@media (max-width: 700px) { .fb-bar { left: 12px; right: 12px; transform: none; justify-content: space-between; flex-wrap: wrap; border-radius: 18px; } .fb-bar .fb-name { display: none; } }

/* Platzierungsmodus */
body.fb-placing, body.fb-placing * { cursor: crosshair !important; }
body.fb-placing .fb-hint { display: block; }
.fb-hint { display: none; position: fixed; top: 110px; left: 50%; transform: translateX(-50%); z-index: 9500; background: #ff9f43; color: #1E1E1E; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); pointer-events: none; }

/* Post-it */
.fb-note { position: absolute; z-index: 9100; pointer-events: auto; transform: translate(-6px, -6px); }
.fb-pin { width: 34px; height: 34px; border-radius: 4px 4px 4px 14px; background: #FFE66D; color: #1E1E1E; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 8px 20px -6px rgba(0,0,0,.45); cursor: pointer; border: 0; font-family: inherit; transform: rotate(-4deg); transition: transform .2s; }
.fb-pin:hover { transform: rotate(0) scale(1.08); }
.fb-note.done .fb-pin { background: #B8F5C8; color: #1a5a2e; text-decoration: line-through; }
.fb-note.mine .fb-pin { outline: 2px solid #1E1E1E; outline-offset: 1px; }
.fb-note.highlight .fb-pin { animation: fb-pulse 1.2s ease-out 3; }
@keyframes fb-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,159,67,.8); } 100% { box-shadow: 0 0 0 18px rgba(255,159,67,0); } }

.fb-card { position: absolute; top: 40px; left: 0; width: 280px; max-width: calc(100vw - 32px); background: #FFF7B8; color: #1E1E1E; border-radius: 6px; box-shadow: 0 18px 50px -12px rgba(0,0,0,.45); padding: 12px 12px 10px; font-size: 14px; line-height: 1.4; transform: rotate(-.6deg); }
.fb-note.flip .fb-card { left: auto; right: 0; }
.fb-note.up .fb-card { top: auto; bottom: 40px; }
.fb-card[hidden] { display: none; }
.fb-card .fb-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: rgba(0,0,0,.6); margin-bottom: 6px; }
.fb-card .fb-text { white-space: pre-wrap; word-break: break-word; margin: 0 0 8px; }
.fb-card textarea { width: 100%; min-height: 84px; border: 1px solid rgba(0,0,0,.2); border-radius: 4px; padding: 8px; font: inherit; background: #fff; resize: vertical; }
.fb-card textarea:focus { outline: 2px solid #ff9f43; border-color: transparent; }
.fb-card .fb-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fb-card .fb-actions button { border: 0; border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background: rgba(0,0,0,.08); color: #1E1E1E; }
.fb-card .fb-actions button.save { background: #1E1E1E; color: #fff; }
.fb-card .fb-actions button.danger { color: #a0261a; }
.fb-card .fb-actions .spacer { flex: 1; }
.fb-card .fb-page { font-size: 11px; color: rgba(0,0,0,.5); }

/* Namens-Dialog */
.fb-modal { position: fixed; inset: 0; z-index: 9600; background: rgba(30,30,30,.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; pointer-events: auto; }
.fb-modal[hidden] { display: none; }
.fb-dialog { width: min(420px, 100%); background: #fff; color: #1E1E1E; border-radius: 16px; padding: 24px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.fb-dialog h2 { margin: 0 0 6px; font-size: 20px; }
.fb-dialog h2 .fb-tag { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; background: #FFE66D; padding: 3px 8px; border-radius: 999px; margin-right: 8px; vertical-align: 3px; }
.fb-dialog p { margin: 0 0 14px; color: #555; font-size: 14px; line-height: 1.45; }
.fb-dialog input { width: 100%; padding: 12px 14px; border: 1.5px solid #cfd4da; border-radius: 10px; font: inherit; font-size: 16px; }
.fb-dialog input:focus { outline: 2px solid #ff9f43; border-color: transparent; }
.fb-dialog .fb-row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.fb-dialog button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; background: #1E1E1E; color: #fff; }
.fb-dialog button.ghost { background: #eee; color: #1E1E1E; }

/* Toast */
.fb-toast { position: fixed; left: 50%; bottom: 74px; transform: translateX(-50%); z-index: 9500; background: #1E1E1E; color: #fff; font-size: 13px; padding: 8px 14px; border-radius: 999px; opacity: 0; transition: opacity .25s; pointer-events: none; }
.fb-toast.show { opacity: 1; }

/* Hide everything when printing */
@media print { .fb-root, .fb-bar, .fb-modal, .fb-hint, .fb-toast { display: none !important; } }
