:root {
  --bg-main: #808080;
  --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;
  margin-bottom: 3px;
}

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: #000000;
  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-app-header .public-brand img {
  border-radius: 4px;
}

.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: 30px;
  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; */
  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 {
  vertical-align: top;
  max-width: 400px;
}

.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;
}

.nav-toggle-v {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 60px;
  height: 50px;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

@media (max-width: 1000px) {
  .public-app-header {
    display: block;
  }

  .public-app-layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

.menu-divider-horz {
  margin-left: 1.5rem;
  /* margin-right: 16px; */
  font-weight: bold;
}

@media (min-width: 769px) {
  .nav-menu.target-C {
    background-color: transparent !important;
  }
}

/* Responsiveness (Smartphones / Tablets) */
@media (max-width: 768px) {
  #divInfo {
    margin: 1px;
  }

  .public-app-header {
    display: flex;
  }

  .public-app-layout {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle-v {
    display: flex;
  }

  .nav-menu-v {
    display: none;
  }

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

  .nav-menu.target-C {
    top: 0px;
  }

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

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

  .menu-divider-horz {
    display: none;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  footer {
    display: none;
  }

  .public-sidebar {
    /* width: 160px; */
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .public-sidebar-left {
    position: absolute;
    bottom: 0;
    max-height: 400px;
    overflow: auto;
    padding: 15px !important;
    margin: 0px !important;
    border-top-right-radius: 8px;
    z-index: 9999;
    opacity: 0.9;
  }
  
  /* Alle Tabellenelemente zu Block-Elementen machen */
  table, thead, tbody, th, td, tr {
    display: block;
  }

  /* Tabellenkopf optisch verstecken (bleibt für Screenreader zugänglich) */
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  tr {
    display: flex;
    flex-direction: column;
    align-items: center; /* Zentriert die Zellen horizontal innerhalb der Zeile */
    /* margin-bottom: 1.5rem; */
  }

  td {
    display: block;
    width: 100%;
    text-align: center; /* Zentriert den Text/Inhalt innerhalb der Zelle */
  }

  tr, td {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 0;      /* Optional: entfernt Innenabstand oben */
    padding-bottom: 0;   /* Optional: entfernt Innenabstand unten */
  }

  p span {
    /* font-size: clamp(0.5em, 2.5vw, 1em) !important; */
  }
  
  p span[style*="font-size"] {
    display: inline-block;
    /* transform: scale(3.5); */
    transform-origin: center; /* Hält den Text mittig (alternativ: left center) */
    /* margin-top: 35px; */
  }
}

.dynamic-link-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;
}

/* 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;
}

.quill-content img {
  max-width: min(800px, 100%);
  height: auto;
  display: inline-block;
  vertical-align: middle;
  border-radius: 8px;
}

.ql-editor {
  height: auto !important;
  padding: 0px !important;
  white-space: normal !important;
  word-wrap: break-word;
  overflow: hidden !important;
  line-height: normal !important;
}

.ql-editor ul {
  margin-left: 0;
  padding-left: 1.5rem; /* Schiebt die gesamte Liste nach rechts ins Bild */
  list-style-position: outside;
}

.ql-editor ul li {
  list-style-type: disc;
}

.ql-editor ol {
  margin-left: 0;
  padding-left: 1.5rem; /* Schiebt die gesamte Liste nach rechts ins Bild */
  list-style-position: outside;
}

.ql-editor ol li {
  list-style-type: decimal;
}

.ql-editor li {
  margin-left: 0;
  padding-left: 0;
  text-indent: 0; /* Setzt eventuelle negative Text-Einzüge zurück */
}

.ql-editor hr {
  border: none;
  border-top: 2px solid currentColor;
  margin: 15px 0;
}

.ql-table-better-span span {
  padding: 10px;
  border-radius: 8px;
  display: inline-block;
}

/* Erzwingt die korrekte vertikale Ausrichtung basierend auf den Quill-Klassen */
.ql-editor td.ql-align-top,
.ql-editor td[data-valign="top"] {
  vertical-align: top !important;
}

.ql-editor td.ql-align-middle,
.ql-editor td[data-valign="middle"] {
  vertical-align: middle !important;
}

.ql-editor td.ql-align-bottom,
.ql-editor td[data-valign="bottom"] {
  vertical-align: bottom !important;
}

.eye-container {
  /* Positioniert das Element fixiert im Browserfenster */
  position: fixed;
  top: 10px; /* Kleiner Abstand zum oberen Rand (beliebig anpassbar) */
  left: 10px; /* Kleiner Abstand zum linken Rand (beliebig anpassbar) */

  /* Sorgt dafür, dass das Symbol immer ganz oben liegt */
  z-index: 9999;

  /* Verhindert, dass das Symbol Mausereignisse blockiert (optional) */
  pointer-events: none;
}

.eye-container svg {
  width: 40px; /* Breite des Auges */
  height: 40px; /* Höhe des Auges */
  fill: #ff0000; /* Rote Farbe für das SVG */
}

.logout-container {
  /* Positioniert das Element fixiert im Browserfenster */
  position: fixed;
  top: 10px; /* Kleiner Abstand zum oberen Rand (beliebig anpassbar) */
  left: 10px; /* Kleiner Abstand zum linken Rand (beliebig anpassbar) */

  /* Sorgt dafür, dass das Symbol immer ganz oben liegt */
  z-index: 9999;

  /* Verhindert, dass das Symbol Mausereignisse blockiert (optional) */
  /* pointer-events: none;  */
  cursor: pointer;
}

.logout-container svg {
  width: 40px; /* Breite des Auges */
  height: 40px; /* Höhe des Auges */
  background-color: #ff0000; /* Rote Farbe für das SVG */
  border-radius: 4px;
}

.diashow {
}

.diashow-media {
}

.diashow-media img {
}

.diashow-media select {
}

.download-media {
  margin-bottom: 10px;
}

.download-media div {
  cursor: pointer;
  text-decoration: underline;
}

.download-media select {
}

.jazur-caption {
}

.jazur-text-markup {
}

.jazur-text-markup img {
  border-radius: 8px;
}

.jazur-link-internal {
}

.jazur-link-internal a {
}

.jazur-2links-internal {
}

.jazur-2links-internal a {
}

.jazur-link-external {
}

.jazur-link-external a {
}

.jazur-divider {
}

.jazur-image {
}

.jazur-video {
}

.jazur-audio {
}

.jazur-pdf {
  width: 100%;
}

.jazur-menu {
}

.jazur-diashow {
}

.jazur-download {
}

.jazur-send-mail {
}

.jazur-text-wysiwyg-trix {
}

.jazur-text-wysiwyg-quill {
}

.jazur-published {
}




