1759840989s:4304:"<script nonce="[CSP_NONCE_VALUE]">
document.addEventListener("DOMContentLoaded", function () {
    // Erkennen eines öffentlichen Benutzers durch Überprüfung des "Anmelden"-Links im Header
    const isPublicUser = document.querySelector('a[href*="/login"]') !== null;

    if (isPublicUser) {
        // Ausblenden des Blocks "Letzte Aktivität" in der linken Sidebar
        const recentActivity = document.querySelector('#recent-activity');
        if (recentActivity) recentActivity.style.display = 'none';

        // Ausblenden von revisionsartigen Metadaten in der rechten Sidebar (Aktualisiert von, Erstellt von)
        const entityMeta = document.querySelectorAll('.entity-meta-item');
        entityMeta.forEach(item => {
            const text = item.textContent.toLowerCase();
            if (text.includes('updated') || text.includes('created')) {
                item.style.display = 'none';
            }
        });

        // Ausblenden von "Revisionen"-Links, falls vorhanden (Zukunftssicherung)
        const links = document.querySelectorAll('a[href*="/revisions"]');
        links.forEach(link => {
            link.style.display = 'none';
        });
    }
});
</script>


<script nonce="[CSP_NONCE_VALUE]">
document.addEventListener("DOMContentLoaded", () => {
  const sidebarBox = document.querySelector('.tri-layout-right-contents');
  if (sidebarBox) {
    sidebarBox.style.background = 'unset';
    sidebarBox.style.backdropFilter = 'none';
    sidebarBox.style.filter = 'none';
  }

  const allDescendants = sidebarBox.querySelectorAll("*");
  allDescendants.forEach(el => {
    el.style.backdropFilter = 'none';
    el.style.filter = 'none';
    el.style.background = 'unset';
    el.style.opacity = '1';
  });
});
</script>


<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">



<style nonce="[CSP_NONCE_VALUE]">
/* Navigationslink zu "Regale" ausblenden */
a[data-shortcut="shelves_view"] {
  display: none !important;
}

/* Navigationslink zu "Bücher" ausblenden */
a[data-shortcut="books_view"] {
  display: none !important;
}

</style>






<script nonce="[CSP_NONCE_VALUE]">
  document.addEventListener("DOMContentLoaded", () => {
    const sidebarBox = document.querySelector('.tri-layout-right-contents > div');
    if (sidebarBox) {
      sidebarBox.style.background = 'transparent';
      sidebarBox.style.backdropFilter = 'none';
      sidebarBox.style.filter = 'none';
      sidebarBox.style.boxShadow = 'none';
      sidebarBox.style.border = 'none';
    }
  });
</script>




<style nonce="[CSP_NONCE_VALUE]">
  /* Navigation im Header */
  .my-top-nav {
    display: inline-block;
    margin-left: 2rem;
  }
  .my-top-nav a {
    color: #ffffff; /* Weißer Text (anfassbar je nach Theme) */
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
  }
  .my-top-nav a:hover {
    background: rgba(255, 255, 255, 0.2);
  }


  .tri-layout-right-contents a[href*="/kalender/"] {
  background-color: #1a5b89 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  padding: 12px 16px !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  backdrop-filter: none !important;
  filter: none !important;
  opacity: 1 !important;
}

  
</style>

<script nonce="[CSP_NONCE_VALUE]">
  document.addEventListener("DOMContentLoaded", () => {
    const headerRight = document.querySelector(".header-links");
    if (headerRight) {
      const nav = document.createElement("nav");
      nav.className = "my-top-nav";

      const links = [
        { text: "Home", url: "/" },
       // { text: "Kontakt", url: "/contact" },
       // { text: "Downloads", url: "/downloads" },
        { text: "Schulwebseite", url: "https://www.st-anna-realschule.de" }
      ];

      links.forEach(link => {
        const a = document.createElement("a");
        a.href = link.url;
        a.textContent = link.text;
        nav.appendChild(a);
      });

      headerRight.prepend(nav);
    }
  });
</script>";