/* Modernes, simples, responsives Design für Dokumentenseite */
body {
    margin: 0;
    font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
    background: #181a1b;
    color: #f3f3f3;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: #1e90ff; /* Blaue Farbe für Links beim Hover */
}

/* Sidebar Styling */
.sidebar {
    position: fixed;
    left: 0; top: 0; bottom: 0;
    width: 240px;
    background: #23272a;
    box-shadow: 2px 0 12px rgba(0,0,0,0.12);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 10px 20px;
}

.sidebar-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #7289da;
    letter-spacing: 1px;
}

.sidebar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5em;
    cursor: pointer;
    display: none;
}

.sidebar-nav {
    list-style: none;
    padding: 0 0 20px 0;
    margin: 0;
    flex: 1;
}

.sidebar-nav li {
    margin: 0;
}

.nav-link {
    display: block;
    padding: 14px 24px;
    color: #cfd8dc;
    font-size: 1.08em;
    border-left: 3px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    background: #2c2f33;
    color: #fff;
    border-left: 3px solid #7289da;
}

.sidebar-item {
    position: relative;
}

.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}

.sidebar-submenu {
    list-style: none;
    padding-left: 18px;
    margin: 0;
    display: none;
    background: #23272a;
    border-left: 2px solid #7289da22;
    border-radius: 0 0 8px 8px;
    animation: submenu-fadein 0.25s;
}

.sidebar-item:hover > .sidebar-submenu {
    display: block;
}

.sidebar-submenu li a {
    font-size: 0.98em;
    color: #bdbdbd;
    padding: 8px 0 8px 8px;
    border-left: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.sidebar-submenu li a:hover {
    color: #fff;
    border-left: 2px solid #7289da;
    background: #2c2f33;
}

@keyframes submenu-fadein {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.doc-ideas {
    margin-top: 32px;
    padding: 0 0 0 18px;
    color: #bdbdbd;
    font-size: 1.08em;
}

.doc-ideas li {
    margin-bottom: 10px;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #23272a;
    border-radius: 6px;
    padding: 8px 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: background 0.2s;
}

.doc-ideas li:hover {
    background: #2c2f33;
}

.tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #23272a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltiptext {
    position: relative;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.tooltiptext:hover .tooltip {
    opacity: 1;
    display: block;
}

/* Suggestions Styling */

.suggestion {
    color: #7289da;
    font-weight: bold;
    background-color: #2c2f33;
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.suggestion:hover {
    background-color: #7289da;
    color: #fff;
    cursor: pointer;
}

/* Tooltip für Sidebar */
.nav-tooltip {
    position: fixed;
    background: #23272a;
    color: #fff;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 0.98em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    pointer-events: none;
    z-index: 2000;
    white-space: nowrap;
    opacity: 0.97;
}

.main-content {
    margin-left: 240px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-header {
    display: flex;
    align-items: center;
    padding: 18px 24px 0 24px;
    background: transparent;
}

.sidebar-toggle {
    background: none;
    border: none;
    color: #7289da;
    font-size: 2em;
    margin-right: 18px;
    cursor: pointer;
    display: none;
}

.breadcrumbs {
    font-size: 1em;
    color: #bdbdbd;
    margin-left: 0;
}

.breadcrumbs a {
    color: #7289da;
    text-decoration: none;
    margin-right: 4px;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.content {
    flex: 1;
    padding: 32px 24px 24px 24px;
    background: #23272a;
    border-radius: 18px;
    margin: 24px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.10);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content h1 {
    font-size: 2.2em;
    color: #7289da;
    margin-bottom: 18px;
}

.content p {
    color: #bdbdbd;
    font-size: 1.15em;
    line-height: 1.7;
}

/* IFrame Styling */
iframe {
    width: 100%;
    height: 600px;
    border: none;
    background: transparent;
    border-radius: 12px; /* Sanftere Ecken */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Weicherer Schatten */
}

/* Toasts */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #23272a;
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s, transform 0.5s;
    z-index: 2001;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-link {
    color: #7289da;
    margin-top: 10px;
    display: block;
    text-decoration: underline;
}

.hidden { display: none !important; }

/* Modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(24,26,27,0.85);
    z-index: 2002;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #23272a;
    padding: 32px 24px;
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.22);
    width: 95vw;
    max-width: 370px;
    color: #fff;
    position: relative;
}

.close-button {
    color: #fff;
    position: absolute;
    top: 12px; right: 18px;
    font-size: 1.5em;
    cursor: pointer;
}

.modal-link {
    display: block;
    margin-top: 14px;
    color: #7289da;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        position: fixed;
        width: 220px;
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 2px 0 12px rgba(0,0,0,0.12);
    }
    .sidebar-close {
        display: block;
    }
    .main-content {
        margin-left: 0;
    }
    .sidebar-toggle {
        display: inline-block;
    }
    .content {
        margin: 16px 4px;
        padding: 18px 8px;
    }
}

/* Blurry Text Effekt */
.blurry-text {
    color: transparent;
    background: #181a1b;
    border-radius: 3px;
    font-weight: bold;
    cursor: pointer;
    text-shadow: 0 0 8px #7289da;
    transition: color 0.2s;
}

.blurry-text:hover {
    color: #ff0033;
    animation: glitch 0.3s steps(2) infinite;
}

@keyframes glitch {
    0% { clip: rect(0, 900px, 0, 0); }
    10% { clip: rect(4px, 900px, 12px, 0); }
    20% { clip: rect(0, 900px, 8px, 0); }
    30% { clip: rect(6px, 900px, 14px, 0); }
    40% { clip: rect(2px, 900px, 10px, 0); }
    50% { clip: rect(8px, 900px, 18px, 0); }
    60% { clip: rect(4px, 900px, 12px, 0); }
    70% { clip: rect(0, 900px, 6px, 0); }
    80% { clip: rect(8px, 900px, 10px, 0); }
    90% { clip: rect(6px, 900px, 18px, 0); }
    100% { clip: rect(2px, 900px, 14px, 0); }
}