/* Seitenaufbau von /ideas (js/board.js). Baut auf app.css auf, Farben nur über dessen
   Variablen. Aufbau: Kopf (Überschrift, Unterzeile, rechts ein roter Hauptknopf) → ruhige Notizzeile →
   Bestätigung → „Deine …“ → Filterleiste → Zählzeile → eine weiße Fläche mit Zeilen (Tabelle bzw. Karten). */

.bd-main { padding: clamp(32px, 7vh, 80px) 20px 96px; }
.bd { width: 100%; max-width: 1040px; margin: 0 auto; display: flex; flex-direction: column; }

/* Kopf */
.bd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.bd-head-text { flex: 1 1 420px; min-width: 0; max-width: 680px; }
.bd-h1 { margin: 0; font-size: clamp(32px, 5.4vw, 42px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
.bd-lead { margin: 12px 0 0; font-size: 16.5px; line-height: 1.6; color: var(--tx2); text-wrap: pretty; }
.bd-cta { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 22px 0 19px; border: 0; border-radius: 12px; background: var(--signal); color: #FFFFFF; font: 600 15.5px "Schibsted Grotesk", system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(214, 55, 31, 0.8); transition: background-color 0.15s, transform 0.15s; }
.bd-cta:hover { background: var(--signal-hover); }
.bd-cta:active { transform: translateY(1px); }

/* Notizzeile: eine ruhige Zeile mit Info-Zeichen, kein Kasten */
.bd-note { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0 0; max-width: 680px; font-size: 13.5px; line-height: 1.5; color: var(--tx2); }
.bd-note svg { flex: none; margin-top: 2px; }
.bd-note a { color: var(--tx2); text-underline-offset: 2px; }
.bd-note a:hover { color: var(--ink); }

/* Bestätigung nach dem Absenden */
@keyframes bd-in { from { opacity: 0; transform: translateY(-6px); } }
.bd-flash { margin-top: 26px; display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 32px -24px rgba(15, 20, 28, 0.3); animation: bd-in 0.25s ease-out; outline: none; }
.bd-flash-ic { flex: none; margin-top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #E7F4EC; color: var(--ok-tx); display: flex; align-items: center; justify-content: center; }
.bd-flash-text { flex: 1; min-width: 0; font-size: 15px; line-height: 1.5; }
.bd-flash-text b { display: block; font-weight: 600; }
.bd-flash-text span { display: block; margin-top: 2px; color: var(--tx2); }
.bd-flash-x { flex: none; width: 32px; height: 32px; margin-top: -4px; border: 0; border-radius: 8px; background: none; color: var(--tx2); font-size: 18px; cursor: pointer; }
.bd-flash-x:hover { background: var(--tint); color: var(--ink); }

/* Fläche für Listen (Tabelle der Playlists, Karten der Wünsche, „Deine …“) */
.bd-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(15, 20, 28, 0.04), 0 14px 36px -28px rgba(15, 20, 28, 0.28); }

/* Abschnitte */
.bd-sec-h { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.bd-sec-p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--tx2); }

/* „Deine Vorschläge“ / „Deine Wünsche“ */
.bd-mine { margin-top: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(15, 20, 28, 0.04); }
.bd-mine-head { padding: 16px 20px 12px; }
.bd-mine-list { list-style: none; margin: 0; padding: 0; }
.bd-mine-list li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--line-soft); font-size: 15px; }
.bd-mine-t { min-width: 0; overflow-wrap: anywhere; }
.bd-mine-t a { font-weight: 500; color: var(--ink); text-decoration: none; }
.bd-mine-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bd-mine-t small { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--tx3); }

/* Statusmarken */
.bd-st { flex: none; display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; background: var(--tint); color: var(--tx2); }
.bd-st-wait { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--tx2); }
.bd-st-ok { background: #E7F4EC; color: var(--ok-tx); }
.bd-st-plan { background: #E8EEF6; color: #2C4A6E; }
.bd-st-work { background: var(--warn-bg); color: var(--warn-tx); }
.bd-st-off { background: var(--off-bg); color: var(--off-tx); }

/* Filter- und Suchleiste: alles 42 px hoch, gleiche Rundung */
.bd-bar { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bd-grow { flex: 1 1 auto; }
.bd-ctl { height: 42px; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); font: 500 15px "Schibsted Grotesk", system-ui, sans-serif; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.bd-ctl:hover { border-color: var(--line-strong); }
.bd-ctl:focus-visible, .bd-ctl:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 20, 28, 0.1); }
select.bd-ctl, .bd-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23586374' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center; }
.bd-search { position: relative; flex: 1 1 280px; min-width: 0; }
.bd-search svg { position: absolute; left: 13px; top: 50%; margin-top: -8px; color: var(--tx3); pointer-events: none; }
.bd-search .bd-ctl { width: 100%; padding-left: 38px; font-weight: 400; }
.bd-search .bd-ctl::placeholder { color: var(--tx3); }
.bd-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.bd-pill { height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--tx2); font: 500 15px "Schibsted Grotesk", system-ui, sans-serif; white-space: nowrap; cursor: pointer; transition: border-color 0.15s, color 0.15s, background-color 0.15s; }
.bd-pill:hover { border-color: var(--line-strong); color: var(--ink); }
.bd-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Zeile über der Fläche: Anzahl links, leiser Hinweis rechts */
.bd-meta { margin: 18px 0 10px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; font-size: 14px; color: var(--tx2); }
.bd-meta p { margin: 0; }
.bd-meta .pro-tag { vertical-align: -5px; margin-right: 8px; }
.bd-meta .link-sm { font-size: 14px; margin-left: 4px; }

/* Leer, Laden, Fehler */
.bd-empty { margin-top: 18px; padding: 44px 24px; border-radius: 16px; border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; font-size: 15.5px; line-height: 1.5; color: var(--tx2); text-wrap: pretty; }
.bd-meta + .bd-empty { margin-top: 0; }
.bd-loading { border: 1px solid var(--line); background: var(--surface); }
.bd-alert { margin-top: 18px; }
.bd-more { margin-top: 16px; align-self: center; width: auto; padding: 0 20px; }

/* Formulare in den Dialogen */
.bd-f { margin-top: 16px; }
.bd-f-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.bd-hint { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--tx3); }
.bd-err { margin: 0; font-size: 14px; color: var(--err-tx); }
.bd-opt { font-weight: 400; color: var(--tx3); }
.bd-count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--tx3); }
.bd-area { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.55; resize: vertical; }
.bd-fine { margin: 16px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--tx3); }
.bd-check { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-soft); font-size: 15px; line-height: 1.5; }
.bd-si-links { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: 14px; color: var(--tx2); }
.bd-si-links a { color: var(--ink); }

@media (max-width: 639.98px) {
  .bd-head { gap: 20px; }
  .bd-head-text { flex-basis: 100%; }
  .bd-cta { width: 100%; }
  .bd-bar { margin-top: 28px; }
  .bd-search { flex-basis: 100%; }
  /* Pillen in einer Reihe zum Wischen statt mehrerer Zeilen */
  .bd-pills { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; width: calc(100% + 40px); }
  .bd-pills::-webkit-scrollbar { display: none; }
  .bd-f-row { grid-template-columns: minmax(0, 1fr); }
  .bd-mine-head, .bd-mine-list li { padding-left: 16px; padding-right: 16px; }
}
