:root {
    --bg-main: #0b132b;
    --bg-card: #1c2541;
    --bg-header: #0b132b;
    --accent: #48cae4;
    --accent-hover: #90e0ef;
    --text-primary: #ffffff;
    --text-secondary: #00b4d8;
    --border-color: #3a506b;
    --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --bullet-symbol: "•";
    --background-scrollbars-track: #f1f5f9;
    --background-scrollbars: #cbd5e1;
    --background-scrollbars-hover: #94a3b8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
  /* Syntax: scrollbar-color: [Farbe des Daumens] [Farbe der Schiene]; */
  scrollbar-color: var(--background-scrollbars) var(--background-scrollbars-track);
  scrollbar-width: thin; 
  /* scrollbar-gutter: stable;  */
}

::-webkit-scrollbar {
    /* width: 6px; */
}
  
::-webkit-scrollbar-track {
    background: var(--background-scrollbars-track);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--background-scrollbars); 
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--background-scrollbars-hover); 
}







body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

ul.customized-list {
  list-style: none; /* Standard-Punkte entfernen */
  padding-left: 1.5rem;
}

ul.customized-list li {
  position: relative;
}

ul.customized-list li::before {
  content: var(--bullet-symbol); /* Dein gewünschtes Symbol */
  position: absolute;
  left: -1.2rem; /* Symbol nach links rücken */ 
  transform: translateY(-1px); 
}





/* Zentriert den Inhalt exakt in der Bildschirmmitte */
.error-page-container {
    background-color: #f7fafc;
    min-height: 100vh;
    margin: 0;
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.error-card-header {
    background: linear-gradient(135deg, #3182ce 0%, #2b6cb0 100%);
    color: #ffffff;
    padding: 2rem 1.5rem;
}

.error-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
}

.error-card-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.error-card-body {
    padding: 2rem 1.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.6;
}

.error-card-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    background-color: #f7fafc;
    border-top: 1px solid #edf2f7;
}

.btn-app {
    display: inline-block;
    background-color: #3182ce;
    color: #ffffff;
    text-decoration: none;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-app:hover {
    background-color: #2b6cb0;
    transform: translateY(-1px);
}








/* --- Layout Gesamt-Container --- */
.public-app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    color: #333;
    overflow: hidden;
    
    width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header --- */
.public-app-header {
    height: 60px;
    background-color: #1e293b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    border-bottom: 1px solid #334155;
    flex-shrink: 0;
}

.public-app-header .public-brand {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #38bdf8;
    cursor: pointer;
    text-decoration: none;
}

.public-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.public-header-actions a {
  color: #cccccc;
}

/* --- Mittlerer App-Body (Sidebars + Content) --- */
.public-app-body {
    display: flex;
    flex: 1;
    overflow: hidden; /* Verhindert das Ausbrechen des Containers */
}

/* --- Allgemein Sidebars --- */
.public-sidebar {
    min-width: 100px;
    background-color: #ffffff;
    border-color: #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    width: max-content;
}

.public-sidebar-left {
    border-right: 1px solid #e2e8f0;
}

.public-sidebar-right {
    border-left: 1px solid #e2e8f0;
}

.public-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.public-sidebar-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.public-sidebar-content {
    padding: 1rem;
    overflow-y: auto;
    flex: 1;
}

/* --- Hauptinhalt (Main Content) --- */
.public-app-content {
    flex: 1;
    background-color: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    /* height: 100vh; */
}

.public-content-header {
    padding: 1.5rem;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.public-content-body {
    padding: 1.5rem;
    flex: 1;
}

/* --- Footer --- */
.public-app-footer {
    height: 40px;
    background-color: #1e293b;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    font-size: 0.8rem;
    border-top: 1px solid #334155;
    flex-shrink: 0;
}

/* --- Hilfsklassen & Komponenten --- */
.public-text-muted {
    color: #94a3b8;
    font-size: 0.875rem;
}

.public-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    background-color: #0ea5e9;
    color: white;
    transition: background-color 0.2s;
}

.public-btn:hover {
    background-color: #0284c7;
}

.public-btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.8rem;
}

.local-group {
  /* display: inline-block; */
  vertical-align: top; /* Richtet die oberen Kanten aller Divs bündig aus */
  /* width: 400px; */
  max-width: 400px;
  /* margin-right: 30px; */
  margin-bottom: 30px;
}




.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

/* Mobile Toggle Hamburger Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
}

@media (max-width: 1000px) {
/*
  .public-brand {
    display: none;
  }*/
  
  .public-app-header {
    display: block;
  }
  
  .public-app-layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Responsiveness (Smartphones / Tablets) */
@media (max-width: 768px) {
/*
    .public-brand {
        display: inline-block;
    }*/
  
    .public-app-header {
        display: flex;
    }
    
    .public-app-layout {
      width: 100%;
      margin-left: 0;
      margin-right: 0;
     }
     
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--bg-main);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1.5rem;
        display: none; /* Per JS getoggelt */
        font-size: 120%;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    footer {
      display: none;
    }
    
    .public-sidebar {
      /* width: 160px; */
    }
}

.dynamic-linc-active {
    font-weight: bold;
    text-decoration-line: underline !important;
    text-decoration-thickness: 2px !important;
    text-decoration-color: currentColor !important;
    text-underline-offset: 4px !important;
}


.public-link {
    color: inherit !important;
}

.dynamic-link {
  
}







.pdf-toolbar {
    width: 100%;
    display: flex;
    gap: 15px;
    align-items: center;
    background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pdf-button {
    padding: 8px 12px;
    cursor: pointer;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    font-weight: bold;
}
.pdf-button:hover {
    background-color: #f0f0f0;
}

.pdf-button:disabled {
    /* opacity: 0.5; */
    cursor: not-allowed;
}

.pdf-parent-container {
    width: 100%;
}

/* WICHTIG FÜR DAS VERSCHIEBEN: */
.pdf-canvas-container {
    width: 100%;
    max-height: 70vh; /* Begrenzt die Höhe, damit auch vertikal gescrollt werden kann */
    display: flex;
    justify-content: flex-start; /* Linksbündig, damit das Scrollen stabil bleibt */
    align-items: flex-start;
    overflow: auto; /* Aktiviert horizontale und vertikale Scrollbalken */
    border: 1px solid #ccc;
    background-color: #e0e0e0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    cursor: grab; /* Zeigt eine offene Hand an */
    border-radius: 8px;
}

.pdf-canvas-container:active {
    cursor: grabbing; /* Zeigt eine geschlossene Hand beim Ziehen an */
}

.pdf-canvas {
    background-color: #fff;
    display: block;
    margin: 0 auto; /* Zentriert das Canvas im sichtbaren Bereich */
    
    /*
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000;
    -webkit-perspective: 1000;
    */
    
    touch-action: none; 
}


@media screen and (max-width: 375px) {
  html {
    /* Verkleinert die Seite auf 90% */
    transform: scale(0.9);
    /* Verhindert, dass die Seite in die Mitte rutscht und links/oben weiße Ränder entstehen */
    transform-origin: top left;
    /* Korrigiert die Breite, da der Browser sonst denkt, die Seite sei immer noch 100% breit */
    width: 111.11%; 
  }
}


button.link-style {
  background: none;
  border: none;
  padding: 0;
  color: #000000;
  text-decoration: underline;
  font: inherit; /* Übernimmt die Schriftart des Elternelements */
  cursor: pointer; /* Zeigt die typische "Link-Hand" beim Drüberfahren */
}

.sidebar-menu-link {
  margin-bottom: 20px;
}

.sidebar-menu-link a {

}

.public-table-in-text {
  border-collapse: collapse;
}

.public-table-in-text tr {

}

.public-table-in-text td {
  padding-bottom: 8px;
  vertical-align: top;
}

.public-table-in-text td:not(:last-child) {
  padding-right: 10px; 
}





trix-editor {
    min-height: 200px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 12px;
}

/* Toolbar-Buttons leicht anpassen */
.trix-button-row {
    background-color: #f5f5f5;
    padding: 5px;
    border-radius: 4px 4px 0 0;
    border: 1px solid #ccc;
    border-bottom: none;
}

/* Fix für den "Quote" (Zitat) Button */
trix-editor blockquote, 
.trix-content blockquote {
    border-left: 4px solid #ccc !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 1rem !important;
    color: #555 !important;
    font-style: italic !important;
}

/* Fix für den "Indent" (Einrücken) Button bei Listen */
trix-editor ul, 
.trix-content ul {
    list-style-type: disc !important;
    margin-left: 1.5rem !important;
}

trix-editor ol, 
.trix-content ol {
    list-style-type: decimal !important;
    margin-left: 1.5rem !important;
}

/* Fix für tiefere Verschachtelungen (Mehrfaches Einrücken) */
trix-editor ul ul, 
trix-editor ol ul,
.trix-content ul ul,
.trix-content ol ul {
    list-style-type: circle !important;
    margin-left: 1.5rem !important;
}
        
        
        
        
/* Gilt für die fertige Darstellung auf deiner Webseite */
.trix-content figure.attachment,
.trix-content figure {
    max-width: 40% !important;
    height: auto !important;
    display: inline-block;
    vertical-align: middle;
}

/* WICHTIG: Das eigentliche Bild muss sich an die 40% des figure-Containers anpassen! */
.trix-content figure.attachment img,
.trix-content figure img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}





/* WICHTIG: Auch für die spätere HTML-Ausgabe auf deiner PHP-Webseite bereitstellen */
.trix-content .text-center {
    text-align: center !important;
}

.trix-content .text-right {
    text-align: right !important;
}





.quill-content img {
    max-width: 300px !important;
    height: auto !important; /* Verhindert das Verzerren des Bildes */
    display: inline-block;
    vertical-align: middle;
    border-radius: 8px;
}

.ql-editor {
  height: auto !important;
  padding: 0px !important;
}


        

