/* Titelzeile und Rahmen jeder Seite (<app-shell>).
   Ankes Datei: die Session ändert sie nicht, eigene Regeln stehen in ki.css. */

app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--bg);
}
app-shell header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: var(--default-space);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
app-shell h1 {
  font-size: 18px;
  margin: 0;
  margin-right: auto;
}
app-shell h1 a.title {
  color: var(--text);
  text-decoration: none;
}
app-shell nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
app-shell nav a {
  color: var(--muted);
  text-decoration: none;
}
app-shell nav a[aria-current='page'] {
  color: var(--accent);
}
app-shell header a:hover,
app-shell header a:focus-visible {
  text-decoration: underline;
}
app-shell button.logout {
  font: inherit;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 10px;
  cursor: pointer;
}
app-shell main,
app-shell .page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
app-shell .page[hidden] {
  display: none;
}
app-shell .not-found {
  padding: 16px;
}
app-shell .not-found a {
  color: var(--accent);
}
