@font-face {
  font-family: 'Lato';
  font-style:  normal;
  font-weight: 400;
  src:         url('fonts/lato-v15-latin-regular.eot'); /* IE9 Compat Modes */
  src:         url('fonts/lato-v15-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
               url('fonts/lato-v15-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
               url('fonts/lato-v15-latin-regular.woff') format('woff'), /* Modern Browsers */
               url('fonts/lato-v15-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
               url('fonts/lato-v15-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Inconsolata';
  font-style:  normal;
  font-weight: 400;
  src:         url('fonts/inconsolata-v17-latin-regular.eot'); /* IE9 Compat Modes */
  src:         url('fonts/inconsolata-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
               url('fonts/inconsolata-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
               url('fonts/inconsolata-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
               url('fonts/inconsolata-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
               url('fonts/inconsolata-v17-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}

@font-face {
  font-family: 'Nova';
  font-style:  normal;
  font-weight: 400;
  src:         url('fonts/nova-round-v10-latin-regular.eot'); /* IE9 Compat Modes */
  src:         url('fonts/nova-round-v10-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
               url('fonts/nova-round-v10-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
               url('fonts/nova-round-v10-latin-regular.woff') format('woff'), /* Modern Browsers */
               url('fonts/nova-round-v10-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
               url('fonts/nova-round-v10-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
}

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

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

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

/* 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 {
    width: 280px;
    background-color: #ffffff;
    border-color: #e2e8f0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

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

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





/* Optional: Elegante, schlanke Scrollbar für die Baumstruktur */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}




/* Für alle Elemente und die HTML-Seite anwenden */
html, body, *:not(.property-dialog-body) {
  /* 1. Für Chrome, Safari, Edge und Opera (WebKit) */
  &::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  /* 2. Für Firefox */
  scrollbar-width: none;

  /* 3. Für ältere Internet Explorer / Edge Versionen */
  -ms-overflow-style: none;
}




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


