body, button, input, textarea, select {
  font-family: var(--sx-font-family);
}

:root {
  --sx-font-family: var(--sx-font-family);
  --shu-bg: #ffffff;
  --shu-primary: #1877f2;
  --shu-primary-dark: #1d4ed8;
  --shu-indigo: #4338ca;
  --shu-text: #111827;
  --shu-muted: #6b7280;
  --shu-border: #e5e7eb;
  --shu-danger: #dc2626;
}

.shu-top-nav,
.shu-top-nav * {
  box-sizing: border-box;
}

.shu-top-nav {
  position: sticky;
  top: 0;
  z-index: 5000;
  background: var(--shu-bg);
  border-bottom: 1px solid var(--shu-border);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sx-font-family);
}

.shu-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.shu-brand:hover .shu-brand-title {
  opacity: 0.82;
}

.shu-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--shu-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.shu-brand:hover .shu-brand-icon {
  transform: scale(1.03);
}

.shu-brand-icon.shu-brand-image-icon {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.shu-brand-icon.shu-brand-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.shu-check-icon {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--shu-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.shu-brand-icon .shu-check-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 20px;
}

.shu-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.shu-brand-title {
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--shu-text);
  white-space: nowrap;
}

.shu-brand-title span {
  color: var(--shu-primary);
}

.shu-date-header {
  margin-top: 3px;
  color: var(--shu-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.shu-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.shu-menu-wrap {
  position: relative;
}

.shu-grid-menu-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.shu-grid-menu-btn:hover,
.shu-grid-menu-btn.open {
  background: #f3f4f6;
  color: var(--shu-primary);
}

.shu-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--shu-primary), var(--shu-indigo));
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.shu-avatar-btn:hover,
.shu-avatar-btn.open {
  transform: scale(1.05);
}

.shu-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: 48px;
  background: #ffffff;
  border: 1px solid #f1f2f4;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
  z-index: 5100;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-gutter: stable;
}

.shu-menu-panel.show {
  display: block;
}

.shu-apps-panel {
  width: 260px;
  padding: 10px;
}

.shu-profile-panel {
  width: 280px;
  padding: 8px 0;
}

.shu-app-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

.shu-menu-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.shu-menu-link:hover {
  background: #eff6ff;
  color: var(--shu-primary-dark);
}

.shu-menu-link.active {
  background: #eff6ff;
  color: var(--shu-primary-dark);
  font-weight: 800;
}

.shu-menu-icon {
  width: 22px;
  height: 22px;
  text-align: center;
  font-size: 17px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.shu-menu-icon.shu-menu-image-icon {
  padding: 0;
  overflow: hidden;
  border-radius: 6px;
}

.shu-menu-icon.shu-menu-image-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.shu-profile-head {
  padding: 10px 16px 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 4px;
}

.shu-profile-subtitle {
  color: #9ca3af;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 2px;
}

.shu-profile-name {
  color: #374151;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shu-menu-section {
  padding: 9px 16px 3px 16px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.shu-menu-separator {
  height: 1px;
  background: #f3f4f6;
  margin: 6px 0;
}

.shu-danger {
  color: var(--shu-danger) !important;
}

.shu-danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.shu-admin {
  color: #7c3aed !important;
}

@media (max-width: 520px) {
  .shu-menu-panel {
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }

  .shu-top-nav {
    padding: 10px 12px;
  }

  .shu-brand-title {
    font-size: 18px;
  }

  .shu-date-header {
    font-size: 12px;
  }

  .shu-nav-actions {
    gap: 8px;
  }

  .shu-apps-panel,
  .shu-profile-panel {
    width: min(260px, calc(100vw - 24px));
  }
}

/* SHENOX_SHARED_FOOTER */
.app-footer,
.app-footer * {
  box-sizing: border-box;
}

.app-footer {
  margin-top: 56px;
  background: #ffffff;
  color: #111827;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 -3px 12px rgba(15, 23, 42, 0.10);
  position: relative;
  z-index: 10;
  font-family: var(--sx-font-family);
}

.app-footer a {
  color: #111827;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.app-footer__inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.app-footer__brand strong {
  display: block;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.app-footer__brand span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 14px;
}

.app-footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-weight: 800;
  font-size: 14px;
}

.app-footer__bottom {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 22px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .app-footer__inner {
    flex-direction: column;
  }

  .app-footer__links {
    justify-content: flex-start;
  }
}



.shu-avatar-btn {
  overflow: hidden;
}

.shu-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
}



.shu-avatar-btn{
  overflow:hidden;
}

.shu-avatar-img-wrap{
  position:relative;
  display:block;
  width:100%;
  height:100%;
  border-radius:999px;
  overflow:hidden;
}

.shu-avatar-img{
  position:absolute;
  top:50%;
  left:50%;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:999px;
  display:block;
  transform-origin:center center;
}



/* SHENOX AVATAR CIRCLE HARD FIX START */
.shu-avatar-btn{
  position:relative !important;
  overflow:hidden !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.shu-avatar-btn > img,
.shu-avatar-btn img.shu-avatar-img,
.shu-avatar-img-wrap img,
.shu-avatar-img{
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:cover !important;
  border-radius:999px !important;
  display:block !important;
  transform-origin:center center !important;
}

.shu-avatar-img-wrap{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border-radius:999px !important;
  overflow:hidden !important;
  display:block !important;
}
/* SHENOX AVATAR CIRCLE HARD FIX END */



/* SHENOX AVATAR CROP SHELL CSS START */
.shu-avatar-btn.shu-avatar-has-image{
  position:relative !important;
  overflow:hidden !important;
  padding:0 !important;
  color:transparent !important;
  background:#e5e7eb !important;
}

.shu-avatar-img-wrap{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  border-radius:999px !important;
  overflow:hidden !important;
  display:block !important;
}

.shu-avatar-img{
  position:absolute !important;
  top:50% !important;
  left:50% !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  min-width:0 !important;
  min-height:0 !important;
  object-fit:cover !important;
  border-radius:999px !important;
  display:block !important;
  transform-origin:center center !important;
}
/* SHENOX AVATAR CROP SHELL CSS END */



/* SHENOX SHARED HEADER FINAL FIX START */
.shu-top-nav{
  position:fixed !important;
  top:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  z-index:40000 !important;
  margin:0 !important;
  background:#ffffff !important;
}
.shu-menu-panel{
  z-index:40100 !important;
}
/* SHENOX SHARED HEADER FINAL FIX END */

/* SHENOX FIXED HEADER SPACE START */

:root{
    /*
     * Nur ein kurzfristiger Startwert bis JavaScript
     * die tatsächliche Höhe des Headers gemessen hat.
     */
    --shu-top-nav-fallback-height:65px;
}

/*
 * Verhindert, dass der Seiteninhalt während des Ladens
 * kurz hinter dem später aufgebauten Header erscheint.
 *
 * Wirksam nur bei Apps, die den Abstand ausdrücklich
 * mit data-reserve-header-space="true" aktivieren.
 */
#shared-app-shell[data-reserve-header-space="true"]{
    display:block !important;
    width:100% !important;
    min-height:var(
        --shu-top-nav-height,
        var(--shu-top-nav-fallback-height)
    ) !important;
}

/*
 * Der fixe Header selbst liegt außerhalb des normalen
 * Seitenflusses. Dieser unsichtbare Block reserviert
 * exakt dieselbe Höhe innerhalb des Seitenflusses.
 */
.shu-shell-header-spacer{
    display:block !important;
    width:100% !important;

    height:var(
        --shu-top-nav-height,
        var(--shu-top-nav-fallback-height)
    ) !important;

    min-height:var(
        --shu-top-nav-height,
        var(--shu-top-nav-fallback-height)
    ) !important;

    flex:0 0 auto !important;

    margin:0 !important;
    padding:0 !important;
    border:0 !important;

    visibility:hidden !important;
    pointer-events:none !important;
    user-select:none !important;
}

@media(max-width:520px){
    :root{
        --shu-top-nav-fallback-height:61px;
    }
}

/* SHENOX FIXED HEADER SPACE END */



/* SHENOX 225: Header immer eine Zeile - Marke links, Apps/Profil rechts */
.shu-top-nav {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.shu-top-nav > .shu-brand {
  flex: 0 1 auto !important;
  min-width: 0 !important;
}
.shu-top-nav > .shu-nav-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  margin-left: auto !important;
}
@media (max-width: 520px) {
  .shu-top-nav > .shu-nav-actions { gap: 8px !important; }
}

/* SHENOX LIGHT TYPOGRAPHY 260 START */
/* Profilmenü und Footer ruhiger darstellen; Marke/Logo bleibt hervorgehoben. */
.shu-profile-subtitle,
.shu-profile-name,
.shu-menu-section,
.shu-menu-link,
.shu-menu-link.active{
  font-weight:400 !important;
}

.app-footer__brand strong,
.app-footer__links{
  font-weight:400 !important;
}
/* SHENOX LIGHT TYPOGRAPHY 260 END */
