@import url(fonts.css);
/* =========================================================================
   SSM Nova-Design  –  Design-Ebene (rein visuell, keine Funktionsaenderung)
   Wird NACH dem Inline-CSS der index.html geladen. Alle Tokens tragen das
   Praefix --nv-, damit sie nicht mit bestehenden Variablen kollidieren.
   ========================================================================= */

:root {
  --nv-bg: #E6E9F2;
  --nv-surface: #FFFFFF;
  --nv-card: #F2F4F9;
  --nv-card2: #E9ECF4;
  --nv-ink: #0A0C14;
  --nv-muted: #5D6477;
  --nv-accent: #E3262F;
  --nv-accent-soft: #FFE4E1;
  --nv-grad: linear-gradient(135deg, #E3262F 0%, #FF5A1F 60%, #FFB020 100%);
  --nv-navy: #151821;
  --nv-line: rgba(12, 16, 34, .08);
  --nv-glass: rgba(255, 255, 255, .3);
  --nv-good: #16A34A;
  --nv-warn: #D97706;
  --nv-bad: #E5484D;
  --nv-shadow: 0 18px 40px -18px rgba(18, 26, 60, .35);
  --nv-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --nv-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nv-spring: cubic-bezier(.34, 1.45, .5, 1);
  --nv-ease: cubic-bezier(.22, 1, .36, 1);
  --nv-dock-bottom: 18px;
  --nv-top: env(safe-area-inset-top, 0px);
  --nv-bottom: env(safe-area-inset-bottom, 0px);
  /* bestehende Variablen der App auf das neue Design umbiegen */
  --app-surface-bg: var(--nv-bg);
  --glass-bg: color-mix(in srgb, var(--nv-surface) 62%, transparent);
  --glass-bg-strong: color-mix(in srgb, var(--nv-surface) 80%, transparent);
  --glass-border: color-mix(in srgb, var(--nv-surface) 70%, transparent);
  --app-scrollbar-thumb: color-mix(in srgb, var(--nv-muted) 42%, transparent) !important;
  --app-scrollbar-thumb-hover: color-mix(in srgb, var(--nv-muted) 70%, transparent) !important;
  --app-scrollbar-track: transparent !important;
  color-scheme: light;
}

:root[data-mode="dark"] {
  --nv-bg: #05070C; --nv-surface: #0B0E16; --nv-card: #151925; --nv-card2: #1C2130;
  --nv-ink: #F1F3FA; --nv-muted: #97A0B6; --nv-accent: #FF6B5E; --nv-accent-soft: #3A1416;
  --nv-navy: #181B26; --nv-line: rgba(255, 255, 255, .08); --nv-glass: rgba(26, 30, 44, .38);
  --nv-good: #4ADE80; --nv-warn: #FBBF24; --nv-bad: #FF7A80;
  --nv-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --nv-bg: #05070C; --nv-surface: #0B0E16; --nv-card: #151925; --nv-card2: #1C2130;
    --nv-ink: #F1F3FA; --nv-muted: #97A0B6; --nv-accent: #FF6B5E; --nv-accent-soft: #3A1416;
    --nv-navy: #181B26; --nv-line: rgba(255, 255, 255, .08); --nv-glass: rgba(26, 30, 44, .38);
    --nv-good: #4ADE80; --nv-warn: #FBBF24; --nv-bad: #FF7A80;
    --nv-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- Grundflaeche ---------- */
html, html body {
  background: var(--nv-bg) !important;
  background-color: var(--nv-bg) !important;
}
html body {
  font-family: var(--nv-body) !important;
  color: var(--nv-ink) !important;
  padding: 0 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 440px;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    radial-gradient(260px 200px at 4% 0%, #FF4D4D, transparent 72%),
    radial-gradient(230px 180px at 98% 4%, #FFB020, transparent 72%),
    radial-gradient(220px 160px at 42% 38%, rgba(255, 122, 61, .7), transparent 72%);
  filter: blur(34px);
  animation: nvAurora 18s ease-in-out infinite alternate;
}
:root[data-mode="dark"] body::before { opacity: .32; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] body::before { opacity: .32; } }
@keyframes nvAurora { to { transform: translate3d(0, 26px, 0) scale(1.08); } }

html body :where(button, input, select, textarea) { font-family: var(--nv-body); }
html body :where(h1, h2, h3, h4, .display) { font-family: var(--nv-display); letter-spacing: -.015em; }
html body :focus-visible { outline: 2px solid var(--nv-accent); outline-offset: 3px; }

/* ---------- Container / Kopf ---------- */
html body .container {
  max-width: 1080px !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
html body #appContent {
  background: transparent !important;
  border-radius: 0 !important;
  overflow-clip-margin: 0 !important;
}
html body .main-content { padding-bottom: calc(150px + var(--nv-bottom)) !important; }

html body .header {
  display: grid !important;
  grid-template-columns: 1fr auto auto;
  grid-template-areas: "logo temp user";
  align-items: center;
  gap: 4px 12px;
  background: transparent !important;
  color: var(--nv-ink) !important;
  text-align: left !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: calc(16px + var(--nv-top)) 20px 6px !important;
  min-height: 0 !important;
  overflow: visible !important;
}
html body .header::before, html body .header::after { display: none !important; }
html body .hero-brand-wrap { grid-area: logo; margin: 0 !important; padding: 0 !important; justify-self: start; width: auto !important; height: auto !important; background: none !important; box-shadow: none !important; }
html body .hero-brand-logo { height: 40px !important; width: auto !important; max-width: 60vw !important; display: block; }
html body .hero-brand-caption { display: none !important; }
html body .temp-widget { grid-area: temp; position: static !important; margin: 0 !important; transform: none !important; }
html body .temp-icon {
  background: var(--nv-surface) !important; color: var(--nv-ink) !important; border-radius: 999px !important;
  box-shadow: 0 8px 24px -10px rgba(20, 30, 70, .35), 0 0 0 1px var(--nv-line) !important; padding: 8px 12px !important;
}
html body .user-info { grid-area: user; position: static !important; margin: 0 !important; transform: none; justify-self: end; }
html body .dropdown-toggle {
  width: 52px !important; height: 52px !important; min-width: 0 !important; padding: 0 !important; border-radius: 50% !important;
  display: grid !important; place-items: center; position: relative;
  background: var(--nv-surface) !important; border: 0 !important; color: var(--nv-ink) !important;
  box-shadow: 0 8px 24px -10px rgba(20, 30, 70, .35), 0 0 0 1px var(--nv-line) !important;
  transition: transform .25s var(--nv-spring) !important;
}
html body .dropdown-toggle:active { transform: scale(.94) !important; }
html body .dropdown-toggle > span:not(.notification-badge) { display: none !important; }
html body .user-avatar { width: 44px !important; height: 44px !important; border-radius: 50% !important; object-fit: cover; border: 0 !important; box-shadow: none !important; }
html body .dropdown-toggle .notification-badge { top: 2px !important; right: 2px !important; }

/* Seitentitel (per ssm-nova.js eingefuegt) */
.nv-pagehead { padding: 8px 20px 14px; }
.nv-pagehead h1 { margin: 0; font: 800 40px/1.02 var(--nv-display); letter-spacing: -.02em; color: var(--nv-ink); }
.nv-pagehead p { margin: 6px 0 0; color: var(--nv-muted); font-weight: 600; font-size: 14px; }
.nv-pagehead h1 em { font-style: normal; background: var(--nv-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* kompakte Titelleiste beim Scrollen */
.nv-topbar {
  position: fixed; inset: 0 0 auto; z-index: 9400; pointer-events: none;
  height: calc(var(--nv-top) + 64px); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 14px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--nv-surface) 82%, transparent) 40%, transparent);
  backdrop-filter: blur(12px) saturate(1.6); -webkit-backdrop-filter: blur(12px) saturate(1.6);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
  opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--nv-ease), transform .3s var(--nv-ease);
}
.nv-topbar.show { opacity: 1; transform: none; pointer-events: auto; cursor: pointer; }
.nv-topbar span { font: 700 17px var(--nv-display); color: var(--nv-ink); }

/* ---------- Datenbank-Status / Lade-Hinweis ---------- */
html body .database-status {
  margin: 4px 20px 14px !important; border-radius: 999px !important; padding: 9px 14px !important;
  background: var(--nv-card) !important; color: var(--nv-ink) !important; border: 0 !important; box-shadow: none !important;
  font-weight: 700 !important; font-size: 12.5px !important;
}
html body .database-status.connected { background: color-mix(in srgb, var(--nv-good) 14%, var(--nv-card)) !important; }
html body .database-status-pill { background: var(--nv-surface) !important; color: var(--nv-muted) !important; border: 0 !important; }
html body .loading { color: var(--nv-muted) !important; }

/* ---------- Dock (FluidGlass lg-nav, unten schwebend) ---------- */
html body.has-ticker { --nv-dock-bottom: 64px; }
html body #appContent > .tabs-container.ssm-lg-navigation-shell {
  position: fixed !important;
  left: 0 !important; right: 0 !important;
  bottom: calc(var(--nv-dock-bottom) + var(--nv-bottom)) !important;
  z-index: 9500 !important;
  width: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 12px !important;
  pointer-events: none !important;
  transition: transform .55s var(--nv-spring), opacity .3s var(--nv-ease) !important;
}
html body #ssmLgNavigation { pointer-events: auto; max-width: calc(100vw - 24px); }
html body.nv-dock-min #appContent > .tabs-container.ssm-lg-navigation-shell { transform: translateY(6px) scale(.9); opacity: .92; }
html body.nv-dock-min #appContent > .tabs-container.ssm-lg-navigation-shell:hover,
html body.nv-dock-min #appContent > .tabs-container.ssm-lg-navigation-shell:focus-within { transform: none; opacity: 1; }
html body .scroll-top-button {
  bottom: calc(var(--nv-dock-bottom) + var(--nv-bottom) + 76px) !important; right: 16px !important;
  width: 46px !important; height: 46px !important; border-radius: 50% !important;
  background: var(--nv-glass) !important; color: var(--nv-ink) !important; border: 1px solid rgba(255, 255, 255, .6) !important;
  backdrop-filter: blur(10px) saturate(1.8); -webkit-backdrop-filter: blur(10px) saturate(1.8);
  box-shadow: 0 12px 30px -12px rgba(8, 12, 40, .4) !important;
}

/* ---------- Seiteninhalt: Eintritts-Animation ---------- */
html body .tab-content.active > * { animation: nvRise .75s var(--nv-ease) backwards; }
html body .tab-content.active > *:nth-child(2) { animation-delay: .05s; }
html body .tab-content.active > *:nth-child(3) { animation-delay: .1s; }
html body .tab-content.active > *:nth-child(4) { animation-delay: .15s; }
html body .tab-content.active > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes nvRise { from { opacity: 0; transform: translateY(22px); } }
html body .tab-content { background: transparent !important; border: 0 !important; box-shadow: none !important; padding-left: 12px !important; padding-right: 12px !important; }

/* ---------- Karten ---------- */
html body :is(.form-section, .stat-card, .member-item, .inventory-item, .calendar-card, .log-item, .phone-item, .qr-item,
  .dashboard-card, .email-item, .permission-option, .assigned-clothing-card, .security-incident-item, .security-top-card,
  .security-block-card, .summary-metric, .compact-action-card, .push-preference-panel, .notification-center-entry, .legal-section) {
  background: var(--nv-card) !important;
  border: 0 !important;
  border-radius: 26px !important;
  box-shadow: none !important;
  color: var(--nv-ink) !important;
}
html body :is(.member-item, .inventory-item, .calendar-card, .log-item, .phone-item, .email-item) {
  transition: transform .35s var(--nv-spring), background .25s !important;
}
html body :is(.member-item, .inventory-item, .calendar-card, .log-item, .phone-item):hover { transform: translateY(-2px); background: var(--nv-card2) !important; }
html body .form-section { padding: 22px 20px !important; }
html body :is(.form-section h2, .form-section h3) { color: var(--nv-ink) !important; }
html body .form-section p { color: var(--nv-muted); }
html body .stats { gap: 12px !important; }
html body .stat-card { background: var(--nv-grad) !important; color: #fff !important; box-shadow: 0 14px 30px -14px rgba(var(--nv-glow, 227, 38, 47), .55) !important; position: relative; overflow: hidden; }
html body .stat-card :is(.stat-number, .stat-label) { color: #fff !important; }
html body .stat-card .stat-number { font-family: var(--nv-display) !important; font-weight: 800 !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
html body .stat-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); animation: nvShine 6s 1.2s infinite; pointer-events: none; }
@keyframes nvShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
html body .member-name { font: 800 18px var(--nv-display) !important; color: var(--nv-ink) !important; }
html body .member-id-badge { background: var(--nv-accent-soft) !important; color: var(--nv-accent) !important; border-radius: 999px !important; border: 0 !important; font-weight: 800 !important; }
html body .member-type-pill { border-radius: 999px !important; border: 0 !important; }
html body .member-info, html body .detail-label { color: var(--nv-muted) !important; }
html body .size-tag { border-radius: 999px !important; }

/* ---------- Buttons ---------- */
html body .btn {
  position: relative; overflow: hidden;
  background: var(--nv-grad) !important; color: #fff !important; border: 0 !important; border-radius: 999px !important;
  font: 700 15px var(--nv-body) !important; letter-spacing: 0 !important; text-shadow: none !important;
  box-shadow: 0 12px 26px -12px rgba(var(--nv-glow, 227, 38, 47), .55) !important;
  transition: transform .3s var(--nv-spring), box-shadow .25s, filter .2s !important;
}
html body .btn:hover { transform: translateY(-1px); filter: brightness(1.04); }
html body .btn:active { transform: scale(.95) !important; }
html body .btn:disabled, html body .btn[disabled] { opacity: .5 !important; filter: grayscale(.5); box-shadow: none !important; }
html body .btn.btn-small { padding: 9px 16px !important; font-size: 13.5px !important; }
html body :is(.btn-secondary, .calendar-export-btn, .dropdown-button, .install-prompt-btn.secondary) {
  background: var(--nv-surface) !important; color: var(--nv-ink) !important; box-shadow: 0 0 0 1px var(--nv-line) !important;
}
html body .btn-secondary:hover { background: var(--nv-card2) !important; }
html body .btn-success { background: linear-gradient(135deg, #16A34A, #4ADE80) !important; color: #fff !important; box-shadow: 0 12px 26px -12px rgba(22, 163, 74, .65) !important; }
html body :is(.delete-btn, .btn-danger, .btn.danger) { background: linear-gradient(135deg, #E5484D, #FF7A80) !important; color: #fff !important; box-shadow: 0 12px 26px -12px rgba(229, 72, 77, .6) !important; }
.nv-rip { position: absolute; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: nvRip .6s ease-out forwards; }
@keyframes nvRip { to { transform: scale(1); opacity: 0; } }

/* ---------- Formulare ---------- */
html body :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea) {
  background: var(--nv-surface) !important; color: var(--nv-ink) !important; border: 0 !important; border-radius: 16px !important;
  box-shadow: 0 0 0 1px var(--nv-line) !important; font: 600 15px var(--nv-body) !important; padding: 13px 16px !important;
  transition: box-shadow .25s, transform .3s var(--nv-spring) !important;
}
html body :is(input, select, textarea):focus { box-shadow: 0 0 0 2px var(--nv-accent) !important; outline: none !important; }
html body :is(input, textarea)::placeholder { color: var(--nv-muted) !important; opacity: .8; }
html body :is(input[type="search"], .search-box) { border-radius: 999px !important; padding-left: 18px !important; background: var(--nv-card) !important; }
html body .form-group label { color: var(--nv-muted) !important; font-weight: 800 !important; font-size: 12px !important; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Sheets / Dialoge ---------- */
html body :is(.app-modal-shell, .qr-modal-content, .confirm-dialog-popup, .prompt-dialog-popup, .modal-content, .temp-modal-content, .license-popup) {
  background: color-mix(in srgb, var(--nv-surface) 92%, transparent) !important;
  border: 0 !important; border-radius: 36px !important; color: var(--nv-ink) !important;
  box-shadow: 0 -10px 40px -12px rgba(0, 0, 0, .35) !important;
  backdrop-filter: blur(26px) saturate(1.6) !important; -webkit-backdrop-filter: blur(26px) saturate(1.6) !important;
}
html body :is(.app-modal-header, .qr-modal-header, .license-popup-head) { background: transparent !important; color: var(--nv-ink) !important; border: 0 !important; }
html body :is(.app-modal-header, .qr-modal-header, .license-popup-head) :is(h1, h2, h3, h4, strong) { font-family: var(--nv-display) !important; }
html body :is(.modal-overlay, .qr-modal, .license-overlay, .temp-modal) { background: rgba(5, 8, 20, .45) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
html body :is(.app-modal-close, .qr-modal-close, .install-prompt-close) {
  background: var(--nv-card) !important; color: var(--nv-ink) !important; border-radius: 50% !important; border: 0 !important; box-shadow: none !important;
  transition: transform .25s var(--nv-spring) !important;
}
html body :is(.app-modal-close, .qr-modal-close, .install-prompt-close):active { transform: scale(.9) !important; }
@media (max-width: 640px) {
  html body :is(.app-modal-shell, .qr-modal-content, .confirm-dialog-popup, .prompt-dialog-popup, .modal-content, .license-popup) {
    margin-bottom: 8px !important; width: calc(100% - 16px) !important; max-width: none !important; position: relative;
  }
  html body :is(.app-modal-shell, .qr-modal-content, .confirm-dialog-popup, .prompt-dialog-popup, .modal-content, .license-popup)::before {
    content: ""; display: block; width: 44px; height: 5px; border-radius: 3px; margin: 10px auto 0; background: color-mix(in srgb, var(--nv-ink) 22%, transparent);
  }
}

/* ---------- Mitteilungen / Toast ---------- */
html body .notification-stack { top: calc(12px + var(--nv-top)) !important; }
html body .notification {
  background: var(--nv-ink) !important; color: var(--nv-surface) !important; border: 0 !important; border-radius: 999px !important;
  font: 700 14px var(--nv-body) !important; box-shadow: var(--nv-shadow) !important; backdrop-filter: none !important;
}
html body .notification.error { background: var(--nv-bad) !important; color: #fff !important; }
html body .message-pop-banner-inner { background: var(--nv-surface) !important; color: var(--nv-ink) !important; border: 0 !important; border-radius: 24px !important; box-shadow: var(--nv-shadow) !important; }

/* Ticker: bleibt wie im alten Design (keine Nova-Ueberschreibung) */

/* ---------- Footer / Rechtliches ---------- */
html body #footer { background: transparent !important; color: var(--nv-muted) !important; border: 0 !important; box-shadow: none !important; }
html body #footer a { color: var(--nv-accent) !important; }

/* ---------- Account-Menue ---------- */
html body #userDropdown.dropdown-content {
  background: color-mix(in srgb, var(--nv-surface) 90%, transparent) !important; border: 0 !important; border-radius: 30px !important;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45) !important; backdrop-filter: blur(26px) saturate(1.6) !important; -webkit-backdrop-filter: blur(26px) saturate(1.6) !important;
  color: var(--nv-ink) !important;
}
html body #userDropdown .dropdown-item { background: transparent !important; color: var(--nv-ink) !important; border: 0 !important; }
html body #userDropdown .dropdown-button { background: var(--nv-card) !important; color: var(--nv-ink) !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; backdrop-filter: none !important; }
html body #userDropdown .dropdown-button:hover { background: var(--nv-card2) !important; color: var(--nv-accent) !important; }
html body #userDropdown .dropdown-button + .dropdown-button, html body #userDropdown .dropdown-action-row + .dropdown-button { border-top: 1px solid var(--nv-line) !important; }
html body .session-timer { font-family: var(--nv-display) !important; color: var(--nv-accent) !important; }

/* ---------- Dashboard ---------- */
html body #tab-dashboard .hero {
  background: var(--nv-grad) !important; color: #fff !important; border: 0 !important; border-radius: 30px !important;
  box-shadow: 0 22px 44px -22px rgba(var(--nv-glow, 227, 38, 47), .55) !important; position: relative; overflow: hidden;
}
html body #tab-dashboard .hero-title { font-family: var(--nv-display) !important; font-weight: 800 !important; letter-spacing: -.02em; color: #fff !important; }
html body #tab-dashboard .hero-subtitle { color: rgba(255, 255, 255, .85) !important; }
html body #tab-dashboard .date-pill { background: rgba(255, 255, 255, .22) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .28) !important; border-radius: 999px !important; }
html body #tab-dashboard :is(.rail-card, .panel, .feed, .feed-item) {
  background: var(--nv-card) !important; border: 0 !important; border-radius: 26px !important; box-shadow: none !important; color: var(--nv-ink) !important;
}
html body #tab-dashboard :is(.rail-title, .panel-title, .feed-title) { font-family: var(--nv-display) !important; font-weight: 800 !important; color: var(--nv-ink) !important; }
html body #tab-dashboard .stat-chip { background: rgba(255, 255, 255, .16) !important; border: 1px solid rgba(255, 255, 255, .22) !important; border-radius: 20px !important; color: #fff !important; }
html body #tab-dashboard .priority-card { background: var(--nv-surface) !important; color: var(--nv-ink) !important; border: 0 !important; border-radius: 22px !important; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .35) !important; }
html body #tab-dashboard .sv { font-family: var(--nv-display) !important; font-weight: 800 !important; font-variant-numeric: tabular-nums; }

/* ---------- Dunkelmodus: haeufige feste Farben der App ---------- */
:root[data-mode="dark"] :is(.form-section, .member-item, .inventory-item, .calendar-card, .log-item) :where(div, span, p, strong, h2, h3, h4, label) { color: inherit; }
:root[data-mode="dark"] [style*="background:#fff"], :root[data-mode="dark"] [style*="background: #fff"],
:root[data-mode="dark"] [style*="background:white"], :root[data-mode="dark"] [style*="background: white"],
:root[data-mode="dark"] [style*="background:#f8f9fa"], :root[data-mode="dark"] [style*="background: #f8f9fa"] { background: var(--nv-card2) !important; color: var(--nv-ink) !important; }
:root[data-mode="dark"] [style*="color:#666"], :root[data-mode="dark"] [style*="color: #666"], :root[data-mode="dark"] [style*="color:#555"],
:root[data-mode="dark"] [style*="color:#667085"], :root[data-mode="dark"] [style*="color: #667085"] { color: var(--nv-muted) !important; }

@media (min-width: 940px) {
  html body .main-content { padding-bottom: calc(130px + var(--nv-bottom)) !important; }
  .nv-pagehead h1 { font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  html body *, html body *::before, html body *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Darstellungs-Umschalter (Account-Menue) ---------- */
.nv-theme-wrap { padding: 8px 14px 4px; }
.nv-label { padding: 4px 4px 8px; color: var(--nv-muted); font: 800 11px var(--nv-body); letter-spacing: .09em; text-transform: uppercase; }
.nv-seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--nv-card); border-radius: 16px; padding: 4px; position: relative; }
.nv-seg button { position: relative; z-index: 1; padding: 10px 0; font: 700 13.5px var(--nv-body); color: var(--nv-muted); background: none; border: 0; cursor: pointer; transition: color .3s; }
.nv-seg button.on { color: var(--nv-ink); }
.nv-seg .nv-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 12px; background: var(--nv-surface); box-shadow: 0 4px 12px -4px rgba(0,0,0,.25); transition: transform .45s var(--nv-spring); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
