/* shell.css – Rahmen von Serene: Sidebar 256 in zwei Ebenen, Kopfleiste 56, Band, Inhalt 24 | 1136 | 24,
   Finder über dem Sidebar-Kopf, schmale Ansicht (ui-logik/NAVIGATION.md §2–§5, BEFEHLSMENUE.md §1). Nur Tokens der Bibliothek. */

/* ------------------------------------------------------------ Sidebar */
.v-sidebar {
  position: fixed; left: 0; top: 0; height: 100dvh; width: var(--size-sidebar); z-index: var(--z-sidebar);
  background: var(--surface-page); border-right: 1px solid var(--border-frame); display: flex; flex-direction: column; --focus-ring-surface: var(--surface-page);
}
.v-sidebar__head { padding: 4px 8px 0; display: flex; flex-direction: column; gap: 4px; flex: none; }
.v-sidebar__scope { height: 48px; padding: 4px 0; display: flex; align-items: center; gap: 4px; }
.v-org { flex: 1; min-width: 0; height: 36px; padding: 8px 4px 8px 10px; display: flex; align-items: center; gap: 8px; border-radius: var(--radius-sm); font: var(--type-nav-item); letter-spacing: var(--type-nav-item-tracking); color: var(--text-primary); text-decoration: none; }
.v-org__mark { width: 20px; height: 20px; flex: none; color: var(--text-primary); }
.v-org__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v-find { height: 36px; width: 100%; border: 0; border-radius: var(--radius-sm); background: var(--surface-card); box-shadow: 0 0 0 1px var(--border-blend); display: flex; align-items: center; padding: 0 8px 0 0; cursor: pointer; font: var(--type-label-14); color: var(--text-placeholder); text-align: left; }
.v-find__box { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-secondary); flex: none; }
.v-find__t { flex: 1; }
.v-sidebar__list { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px 8px; display: flex; flex-direction: column; gap: 1px; position: relative; }
.v-sidebar__level { display: flex; flex-direction: column; gap: 1px; }
.v-nav { height: var(--size-row-nav); flex: none; display: flex; align-items: center; border-radius: var(--radius-sm); font: var(--type-nav-item); letter-spacing: var(--type-nav-item-tracking); color: var(--text-secondary); text-decoration: none; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; padding: 0; }
.v-nav__box { width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.v-nav__t { padding-left: 2px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-nav__more { width: 24px; height: 24px; margin-right: 6px; display: grid; place-items: center; color: var(--text-tertiary); flex: none; }
.v-nav .v-badge { margin-right: 10px; }
.v-nav--sub { padding-left: 10px; font-weight: 400; letter-spacing: normal; }
.v-nav[aria-current="page"] { background: var(--surface-active); color: var(--text-primary); }
.v-nav:focus-visible, .v-org:focus-visible { outline: var(--focus-outline); outline-offset: 0; }
.v-sidebar__list hr { border: 0; height: 1px; background: var(--gray-200); margin: 4px 0; width: 100%; flex: none; }
.v-nav-group { height: 30px; flex: none; padding: 12px 8px 2px; font: var(--type-caps-12); letter-spacing: var(--type-caps-12-tracking, 0); text-transform: uppercase; color: var(--text-tertiary); }
.v-nav-back { height: 36px; flex: none; display: flex; align-items: center; justify-content: center; font: var(--type-label-14); color: var(--text-primary); position: relative; border-radius: var(--radius-sm); border: 0; background: none; width: 100%; cursor: pointer; margin-bottom: 4px; }
.v-nav-back svg { position: absolute; left: 10px; }
.v-nav-back:focus-visible { outline: var(--focus-outline); outline-offset: 0; }
.v-sidebar__foot { height: 52px; padding: 8px; display: flex; align-items: center; gap: 4px; flex: none; }
.v-account { flex: 1; min-width: 0; height: 36px; border: 0; background: none; border-radius: var(--radius-full); display: flex; align-items: center; gap: 8px; padding: 0 8px; cursor: pointer; font: var(--type-label-14); color: var(--text-primary); text-align: left; }
.v-account__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.v-round { width: 24px; height: 24px; border-radius: var(--radius-full); border: 0; background: var(--surface-card); box-shadow: 0 0 0 1px var(--border-blend); display: grid; place-items: center; cursor: pointer; color: var(--text-secondary); flex: none; text-decoration: none; }
.v-round .v-status { gap: 0; } .v-round .v-status::before { width: 8px; height: 8px; }
.v-org, .v-account, .v-round, .v-find, .v-nav, .v-nav-back, .v-switch { transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard); }
/* Fokus sofort, ohne Übergang (DESIGN 3.6, 8.2) */
.v-account:focus-visible, .v-round:focus-visible, .v-find:focus-visible, .v-switch:focus-visible { outline: 0; box-shadow: var(--focus-ring); transition: none; }
.v-org:focus-visible, .v-nav:focus-visible, .v-nav-back:focus-visible { transition: none; }

/* ------------------------------------------------------------ Kopfleiste, Band, Inhalt */
.v-wrap { margin-left: var(--size-sidebar); min-width: 300px; min-height: 100dvh; display: flex; flex-direction: column; }
.v-topbar { position: sticky; top: 0; height: var(--size-topbar); z-index: var(--z-topbar); background: var(--surface-page); border-bottom: 1px solid var(--border-frame); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 8px; align-items: center; flex: none; --focus-ring-surface: var(--surface-page); }
.v-topbar__left { padding-left: 16px; display: flex; align-items: center; gap: 6px; height: 32px; font: var(--type-nav-item); color: var(--text-primary); min-width: 0; white-space: nowrap; }
.v-topbar__sep { color: var(--gray-600); }
.v-topbar__center { display: flex; justify-content: center; align-items: center; gap: 8px; font: var(--type-nav-item); color: var(--text-primary); white-space: nowrap; min-width: 0; }
.v-topbar__center a { color: var(--text-secondary); font-weight: 400; text-decoration: none; border-radius: 2px; overflow: hidden; text-overflow: ellipsis; }
.v-topbar__center a:focus-visible { outline: var(--focus-outline); outline-offset: 3px; }
.v-topbar__center [aria-current] { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.v-topbar__right { padding-right: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
.v-switch { height: 32px; padding: 0 4px 0 8px; border: 0; background: none; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 4px; font: var(--type-nav-item); color: var(--text-primary); cursor: pointer; min-width: 0; max-width: 100%; }
.v-switch__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-switch svg { color: var(--text-secondary); flex: none; }
.v-switch[data-muted] { color: var(--text-secondary); font-weight: 400; }
.v-sidebar-toggle { display: none; }
.v-band:empty { display: none; }
.v-band__item .v-btn { flex: none; }
.v-content { display: grid; grid-template-columns: minmax(24px, 1fr) minmax(0, 1136px) minmax(24px, 1fr); padding: 16px 0 64px; flex: 1; align-content: start; row-gap: var(--space-gap-block); --focus-ring-surface: var(--surface-page); }
.v-content > * { grid-column: 2; min-width: 0; }
.v-content[data-width="compact"] { grid-template-columns: minmax(24px, 1fr) minmax(0, var(--size-content-compact)) minmax(24px, 1fr); }
.v-content[data-width="full"] { grid-template-columns: 24px minmax(0, 1fr) 24px; }
#content:focus { outline: none; }
#page-head:empty { display: none; }
.v-example { margin-left: 4px; }

/* ------------------------------------------------------------ Finder (über dem Sidebar-Kopf) */
.v-finder-scrim { z-index: calc(var(--z-menu) - 1); --scrim-opacity: var(--opacity-scrim-sheet); }
.v-finder { position: fixed; left: 3px; top: 49px; z-index: var(--z-menu); width: 386px; max-width: calc(100vw - 6px); max-height: min(560px, calc(100dvh - 60px)); border-radius: var(--radius-lg); background: var(--surface-card); box-shadow: var(--shadow-menu); display: flex; flex-direction: column; overflow: hidden; --focus-ring-surface: var(--surface-card); }
.v-finder__input { height: 50px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--border-default); color: var(--text-secondary); }
.v-finder__input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font: 400 16px/24px var(--font-sans); color: var(--text-primary); }
.v-finder__input input::placeholder { color: var(--text-placeholder); opacity: 1; }
.v-finder__list { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; }
.v-finder__group { min-height: 28px; padding: 8px 8px 2px; font: var(--type-label-12); color: var(--text-tertiary); }
.v-finder__row { min-height: 48px; padding: 4px 8px; display: flex; align-items: center; gap: 12px; border-radius: var(--radius-sm); color: var(--text-primary); text-decoration: none; cursor: pointer; }
.v-finder__row[aria-selected="true"] { background: var(--surface-row-highlight); }
.v-finder__ico { width: 24px; height: 24px; display: grid; place-items: center; color: var(--text-secondary); flex: none; }
.v-finder__txt { min-width: 0; display: flex; flex-direction: column; }
.v-finder__label { font: var(--type-nav-item); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-finder__path { font: var(--type-label-13); color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v-finder__none { padding: 24px 16px; text-align: center; color: var(--text-secondary); }

/* ------------------------------------------------------------ Sperrseite (keine Sitzung, kein Zugang) */
.v-gate { position: fixed; inset: 0; z-index: var(--z-toast); background: var(--surface-page); display: grid; place-items: center; padding: 24px 16px; }
.v-gate__box { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(400px, 100%); text-align: center; }
.v-gate__mark { color: var(--text-primary); margin-bottom: 8px; }
.v-gate h1 { font: var(--type-heading-24); letter-spacing: var(--type-heading-24-tracking); color: var(--text-primary); }
.v-gate .v-btn { margin-top: 12px; }
body[data-gated] .v-sidebar, body[data-gated] .v-wrap, body[data-gated] .v-skip, body[data-gated] .v-mobilebar { display: none; }

/* ------------------------------------------------------------ Schwebende Leiste (≤ 600): Find │ Menü */
.v-mobilebar { display: none; }

@media (hover: hover) {
  .v-nav:hover, .v-org:hover, .v-account:hover, .v-nav-back:hover, .v-switch:hover { background: var(--surface-hover); color: var(--text-primary); }
  .v-round:hover { background: var(--surface-hover); color: var(--text-primary); }
  .v-find:hover { box-shadow: 0 0 0 1px var(--border-blend-hover); }
  .v-topbar__center a:hover { color: var(--text-primary); }
}

@media (max-width: 960px) {
  .v-sidebar { transform: translateX(-100%); visibility: hidden; z-index: calc(var(--z-modal) + 1); box-shadow: none; transition: transform var(--motion-medium) var(--ease-standard), visibility 0s linear var(--motion-medium); }
  html[data-sidebar="open"] .v-sidebar { transform: none; visibility: visible; box-shadow: var(--shadow-modal-elevated); transition-delay: 0s; }
  .v-sidebar-scrim { display: none; }
  html[data-sidebar="open"] .v-sidebar-scrim { display: block; position: fixed; inset: 0; z-index: var(--z-modal); background: var(--scrim-color); opacity: var(--opacity-scrim-sheet); }
  .v-wrap { margin-left: 0; }
  .v-sidebar-toggle { display: inline-flex; }
  .v-topbar { grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto; }
  .v-topbar__left { padding-left: 8px; }
  .v-topbar__center { justify-content: flex-start; }
}
/* Fläche der schwebenden Leiste: surface-card bzw. gray-100 (dunkel) zu 80 %, wie DESIGN 10.6 (rgba(255,255,255,0.8) / rgba(26,26,26,0.8)) */
.v-mobilebar { --mobilebar-fill: color-mix(in srgb, var(--surface-card) 80%, transparent); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v-mobilebar { --mobilebar-fill: color-mix(in srgb, var(--gray-100) 80%, transparent); } }
[data-theme="dark"] .v-mobilebar { --mobilebar-fill: color-mix(in srgb, var(--gray-100) 80%, transparent); }

@media (max-width: 600px) {
  /* Seitenrand 24, Overview 16 (DESIGN 10.6) */
  .v-content, .v-content[data-width="compact"], .v-content[data-width="full"] { grid-template-columns: 24px minmax(0, 1fr) 24px; padding-bottom: 96px; }
  .v-content[data-module="overview"] { grid-template-columns: 16px minmax(0, 1fr) 16px; }
  .v-topbar { background: var(--surface-card); border-bottom-color: var(--gray-alpha-300); --focus-ring-surface: var(--surface-card); }
  .v-topbar__center .v-topbar__parent, .v-topbar__center .v-topbar__sep, .v-topbar__left .v-topbar__opt { display: none; }
  .v-topbar__right { padding-right: 8px; }
  .v-mobilebar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: var(--z-sidebar); height: var(--size-mobile-bar); display: flex; align-items: center; border-radius: var(--radius-lg); background: var(--mobilebar-fill); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: var(--shadow-menu); padding: 0; overflow: hidden; --focus-ring-surface: var(--surface-card); }
  .v-mobilebar button { height: 44px; border: 0; background: none; border-radius: var(--radius-lg); display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font: var(--type-nav-item); color: var(--text-primary); cursor: pointer; }
  .v-mobilebar button:focus-visible { outline: var(--focus-outline); outline-offset: -2px; transition: none; }
  .v-mobilebar i { width: 1px; height: 24px; flex: none; background: var(--border-default); }
  .v-mobilebar button[data-find] { width: 91px; justify-content: center; } .v-mobilebar button[data-sidebar-toggle] { width: 50px; justify-content: center; padding: 0; }
  .v-finder { left: 8px; right: 8px; top: 8px; width: auto; max-width: none; }
  .v-skip { left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .v-sidebar { transition: none; } }
/* Serene-Wortmarke (Nachtrag 7): kein Logo, nur der Name in der Schrift der Oberfläche */
.v-org__word { font: 600 16px/1 var(--font-sans); letter-spacing: -0.02em; color: var(--text-primary); }
.v-gate__word { display: block; margin-bottom: var(--space-3); font: 600 24px/1 var(--font-sans); letter-spacing: -0.03em; color: var(--text-primary); }
