/* kk-subpage.css — Gemeinsamer Kopf fuer alle Unterseiten
   (Allein, Freunde, Tagesreihe, Blitz, Schaetz-Runde, Liga).
   DESIGN.md §8.7 (Topbar: Material-Blur, Hairline).
   Tokens aus kk-tokens.css. */

body.kk-subpage {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-text);
  margin: 0;
  padding: 0;
  min-height: 100svh;
}

/* Alter In-Page-Header wird ersetzt */
body.kk-subpage .solo-header { display: none; }

/* Sticky Topbar mit Material-Blur */
.kk-sp-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  width: 100%;
  padding: calc(env(safe-area-inset-top, 0px) + var(--s-3)) var(--gutter-mobile) var(--s-3);
  box-sizing: border-box;
  background: var(--material-regular);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--separator);
}

@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .kk-sp-header { background: var(--bg-elevated); }
}

/* Back-Button (44px Tap-Target laut §10) */
.kk-sp-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--surface-soft);
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-press) var(--ease-standard), transform var(--dur-press) var(--ease-standard);
}

.kk-sp-back:active {
  background: color-mix(in srgb, var(--surface-soft) 60%, var(--text-tertiary));
  transform: scale(.97);
}

.kk-sp-back:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* Zweizeiliges Wordmark */
.kk-sp-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--t-headline);
  color: var(--text-primary);
  letter-spacing: 0;
  text-transform: lowercase;
  user-select: none;
  flex: 1;
  text-align: center;
}

.kk-sp-amp { color: var(--signal); }

/* Avatar (iOS-Pill) */
.kk-sp-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-weight: 700;
  font-size: var(--t-foot);
  flex-shrink: 0;
  user-select: none;
}

.kk-sp-avatar svg { width: 22px; height: 22px; opacity: .85; }

/* Main-Abstand unter sticky Header */
body.kk-subpage .solo-main {
  padding-top: var(--s-6);
}
