/* Second Brain als Ablage (gehirn-ablage.js, 02.10.2026). Farben nur aus den Tokens. */
.gb { width: min(1080px, calc(100vw - 32px)); height: min(760px, calc(100vh - 48px)); max-width: none; max-height: none; padding: 0;
  border: 1px solid var(--line); border-radius: 24px; background: var(--panel); color: var(--text); box-shadow: var(--shadow); overflow: hidden; }
.gb[open] { display: flex; flex-direction: column; animation: gb-rein .25s cubic-bezier(.2, .7, .2, 1); }
.gb::backdrop { background: color-mix(in srgb, var(--bg) 60%, transparent); backdrop-filter: blur(3px); }
.gb-sym { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gb-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.gb-titel h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.4px; }
.gb-titel p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.gb-werkzeug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gb-suche { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 260px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); }
.gb-suche:focus-within { border-color: var(--accent); }
.gb-suche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; box-shadow: none; }
.gb-knopf { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.gb-knopf:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.gb-knopf--voll { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.gb-knopf--voll:hover { filter: brightness(1.06); }
.gb-knopf--weg { color: var(--warn); }
.gb-knopf:disabled { opacity: .55; cursor: progress; }
.gb-zu { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 12px; background: none; color: var(--muted); cursor: pointer; }
.gb-zu:hover { background: var(--panel2); color: var(--text); }
.gb-knopf:focus-visible, .gb-zu:focus-visible, .gb-mappe:focus-visible, .gb-eintrag:focus-visible, .gb-zurueck:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gb-koerper { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); }
.gb-ordner { overflow-y: auto; padding: 12px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--panel2) 45%, var(--panel)); }
.gb-mappe { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.gb-mappe:hover { background: var(--panel2); }
.gb-mappe--an { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.gb-mappe__sym { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel); color: var(--muted); flex: none; box-shadow: 0 0 0 1px var(--line); }
.gb-mappe--an .gb-mappe__sym { color: var(--accent); }
.gb-mappe__text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.gb-mappe__text b { font-size: 13.5px; font-weight: 600; }
.gb-mappe__text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-mappe__zahl { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gb-gesamt { margin: 12px 10px 4px; font-size: 12px; color: var(--muted); }

.gb-inhalt { overflow-y: auto; padding: 18px 22px 24px; }
.gb-inhalt__titel { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.gb-leer { color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 460px; }
.gb-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gb-eintrag { display: grid; gap: 5px; width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text);
  font: inherit; text-align: left; cursor: pointer; transition: border-color .15s; }
.gb-eintrag:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.gb-eintrag__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gb-eintrag__kopf b { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-eintrag__kopf small { font-size: 12px; color: var(--muted); flex: none; }
.gb-eintrag__auszug { font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gb-eintrag__marken { display: flex; flex-wrap: wrap; gap: 6px; }
.gb-marke { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel2); color: var(--muted); }
.gb-marke--offen { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }

.gb-zurueck { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 14px; padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.gb-zurueck:hover { color: var(--text); }
.gb-bearbeiten { display: grid; gap: 8px; max-width: 720px; }
.gb-info { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); }
.gb-vermutung { margin: 0 0 6px; padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--text); border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.gb-etikett { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 6px; }
.gb-feld { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; font-size: 15px; }
.gb-feld:focus { outline: 0; border-color: var(--accent); }
.gb-feld--text { height: auto; min-height: 220px; padding: 12px; line-height: 1.6; resize: vertical; }
.gb-aktionen, .gb-sicher { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.gb-aktionen .gb-knopf--weg { margin-left: auto; }
.gb-sicher { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 10%, transparent); font-size: 13.5px; }
.gb-sicher span { margin-right: auto; }
.gb-sicher[hidden], .gb-aktionen[hidden] { display: none; }

@keyframes gb-rein { from { opacity: 0; transform: translateY(10px) scale(.985); } }
html[data-motion=off] .gb[open] { animation: none; }
@media (prefers-reduced-motion: reduce) { .gb[open] { animation: none; } }
@media (max-width: 760px) {
  .gb { width: 100vw; height: 100vh; border-radius: 0; border: 0; }
  .gb-koerper { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  .gb-ordner { display: flex; gap: 6px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .gb-mappe { width: auto; flex: none; padding: 7px 10px; }
  .gb-mappe__text small, .gb-gesamt { display: none; }
  .gb-suche { min-width: 0; flex: 1 1 100%; }
}

/* Hochladen (06.11.2026): Dateifeld unsichtbar im Knopf, Fokusring auf dem Knopf, Statuszeile unter dem Kopf. */
.gb-datei { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gb-knopf:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.gb-status { margin: 0; padding: 10px 22px; border-bottom: 1px solid var(--line); font-size: 13.5px; line-height: 1.45;
  background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--text); }
.gb-status--fehler { background: color-mix(in srgb, var(--warn) 10%, transparent); }
label.gb-knopf { position: relative; }

/* Notion (06.11.2026) */
.gb-notion { display: grid; gap: 12px; max-width: 640px; font-size: 14px; line-height: 1.5; }
.gb-notion p { margin: 0; }
.gb-notion__schritte { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.gb-notion__schritte a { color: var(--accent); }
.gb-notion__form, .gb-notion__reihe { display: flex; flex-wrap: wrap; gap: 8px; }
.gb-notion__form input { flex: 1 1 220px; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px;
  background: transparent; color: var(--text); font: inherit; }
.gb-notion__klein { font-size: 12.5px; opacity: .75; }
.gb-notion__hinweis { color: var(--warn); }
.gb-notion .gb-knopf--weg { white-space: normal; height: auto; min-height: 40px; text-align: left; }
