:root {
    --sidebar-width: 225px; /* Variable für Sidebar-Breite, einfach anpassbar */
}

body {
    background: rgba(19, 19, 19); /* Sehr dunkler Hintergrund für hohen Kontrast */
    color: #f0f0f0; /* Helle Schriftfarbe für gute Lesbarkeit */
    font-family: 'Segoe UI', Arial, sans-serif; /* Moderne, systemnahe Schriftart */
    margin: 0; /* Kein Außenabstand */
    padding: 0; /* Kein Innenabstand */
}

/* Floating Glassmorphism Sidebar */
nav {
    position: fixed; /* Sidebar bleibt immer sichtbar */
    left: 32px; /* Abstand links */
    top: auto;
    bottom: 0;
    width: var(--sidebar-width); /* Breite aus Variable */
    height: 100vh; /* Volle Höhe */
    background: rgba(19, 19, 19); /* Dunkler Hintergrund */
    /*border-radius: 32px;*/ /* Optional: abgerundete Ecken */
    box-shadow: 0 8px 32px rgba(40,40,40,0.25); /* Schatten für Glassmorphism-Effekt */
    z-index: 100; /* Über anderen Elementen */
    display: flex; /* Flexbox für Layout */
    flex-direction: column; /* Elemente vertikal anordnen */
    justify-content: flex-end; /* Am unteren Rand ausrichten */
    align-items: stretch; /* Elemente füllen Breite */
    padding: 24px 0; /* Innenabstand oben/unten */
    backdrop-filter: blur(18px); /* Glassmorphism-Effekt */
    border: 1.5px solid rgba(255,255,255,0.12); /* Dezente Umrandung */
    animation: floatSidebarLeft 3s cubic-bezier(.68,-0.55,.27,1.55); /* Einblend-Animation */
}

@keyframes floatSidebar {
    /* Platzhalter für Sidebar-Animation */
}

@keyframes floatSidebarLeft {
    0% { opacity: 0; transform: translateX(-60px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

nav ul {
    list-style: none; /* Keine Bulletpoints */
    margin: 0;
    padding: 0 12px; /* Innenabstand links/rechts */
    display: flex;
    flex-direction: column; /* Vertikale Anordnung */
    gap: 22px; /* Abstand zwischen Listenelementen */
    justify-content: center;
}

nav ul li {
    width: 100%;
    display: flex;
    justify-content: center; /* Zentriert den Link */
}

.content-container {
    background: rgba(35, 37, 41, 0.741); /* Halbtransparenter Hintergrund */
    border-radius: 18px; /* Abgerundete Ecken */
    box-shadow: none !important; /* Kein Schatten */
    padding: 48px 32px; /* Innenabstand */
    margin: 32px auto; /* Abstand oben/unten, zentriert */
    max-width: 680px; /* Begrenzte Breite */
    color: #f0f0f0; /* Helle Schrift */
    font-family: 'Segoe UI', Arial, sans-serif; /* Schriftart */
    border: 1.5px solid rgba(255,255,255,0.08); /* Dezente Umrandung */
    animation: floatContent 1.5s cubic-bezier(.68,-0.55,.27,1.55); /* Einblend-Animation */
}

.content-container h2 {
    font-size: 1.5rem; /* Überschriftgröße */
    margin-bottom: 16px;
    font-weight: 600;
    letter-spacing: 0.02em; /* Leichte Buchstabenabstände */
}

.content-container p {
    font-size: 1.08rem; /* Textgröße */
    line-height: 1.7; /* Zeilenabstand */
}

@keyframes floatContent {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.rss-ticker {
    width: 100%;
    background: rgb(138, 0, 0); /* Roter Hintergrund für Ticker */
    padding: 4px 0; /* Innenabstand */
    overflow: hidden; /* Verhindert Überlauf */
    margin-bottom: 18px;
    z-index: 101;
    opacity: 1;
    position: relative;
}

.rss-ticker-text {
    display: inline-block;
    white-space: nowrap; /* Text läuft durch */
    animation: ticker-scroll 28s linear infinite; /* Scroll-Animation */
    font-size: 0.95rem;
}

@keyframes ticker-scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

nav ul li a {
    color: #f0f0f0; /* Helle Schrift */
    text-decoration: none; /* Keine Unterstreichung */
    font-size: 17px;
    padding: 12px 0;
    border-radius: 2px; /* Leicht abgerundet */
    background: rgba(255,255,255,0.08); /* Dezenter Hintergrund */
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s; /* Animationen */
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(60,60,60,0.12); /* Schatten */
    border: 1px solid rgba(255,255,255,0.10); /* Umrandung */
    width: 100%;
    text-align: center;
    backdrop-filter: blur(6px); /* Glassmorphism */
    letter-spacing: 0.5px;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.18); /* Heller beim Hover */
    color: #fff;
    box-shadow: 0 0 18px rgba(251, 1, 1, 0.55); /* Roter Schatten beim Hover */
    border: 1px solid rgba(255,255,255,0.18);
    transform: scale(1.04); /* Leicht vergrößert beim Hover */
}

/* Content Card Design */
.content {
    margin-left: 240px; /* Platz für Sidebar */
    min-height: 120vh; /* Extra Höhe für Scrollen */
    padding: 64px 32px 0 32px; /* Innenabstand */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 32px; /* Abstand zwischen Cards */
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
}

header {
    background: transparent;
    padding: 0;
    color: #f0f0f0;
    border-radius: 0;
    backdrop-filter: none;
    box-shadow: none;
}

main {
    background: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    padding: 48px;
    box-shadow: 0 2px 12px rgba(60,60,60,0.10); /* Leichter Schatten */
    backdrop-filter: blur(4px); /* Glassmorphism */
    margin-top: 16px;
}

footer {
    position: fixed;
    right: 0;
    left: var(--sidebar-width);
    bottom: 0;
    width: calc(100% - var(--sidebar-width)); /* Footer füllt Breite ab Sidebar */
    background: rgba(19, 19, 19);
    color: #f0f0f0;
    text-align: center;
    padding: 12px 0 24px 0;
    border: 1.5px solid rgba(255,255,255,0.12);
    animation: floatFooterUp 2s cubic-bezier(.68,-0.55,.27,1.55);
    animation-fill-mode: forwards;
}

@keyframes floatFooterUp {
    0% { opacity: 0; transform: translateY(60px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #bbb;
    margin-top: 12px;
}

.footer-links a {
    color: #bbb;
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.footer-links a:hover {
    background: rgba(251, 1, 1, 0.55); /* Roter Hintergrund beim Hover */
    color: #fff;
}
.footer-links span {
    color: #666;
    font-weight: 400;
}

/* Zweite Sidebar-Definition für andere Breakpoints */
nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 220px;
    height: 100vh;
    background: rgba(19, 19, 19);
    box-shadow: 0 4px 32px rgba(40,40,40,0.2);
    /*border-radius: 18px 0 0 18px;*/
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 32px 0;
    backdrop-filter: blur(12px);
    overflow: hidden;
    transition: box-shadow 0.3s, background 0.3s;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

nav ul li {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul li a {
    color: #f0f0f0;
    text-decoration: none;
    font-size: 12px;
    padding: 10px 0;
    border-radius: 2px;
    background: rgba(60,60,60,0.25);
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
    font-weight: 500;
    box-shadow: 0 0 0 rgba(60,60,60,0.2);
    border: 2px solid transparent;
    width: 100%;
    text-align: left;
    backdrop-filter: blur(4px);
}

nav ul li a:hover {
    background: rgba(251, 1, 1, 0.55);
    color: #fff;
    box-shadow: 0 0 12px rgba(60,60,60,0.25);
    border: 2px solid rgba(60,60,60,0.3);
}

/* Responsive: Sidebar wird zu Topbar */
@media (max-width: 700px) {
    nav {
        left: 0;
        top: 0;
        width: 100vw;
        height: 60px;
        flex-direction: row;
        border-radius: 0 0 32px 32px;
        padding: 0;
        align-items: center;
        animation: none;
    }
    .content {
        margin-left: 0;
        padding-top: 70px;
    }
    nav ul {
        flex-direction: row;
        gap: 8px;
        padding: 0 8px;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        display: flex;
        overflow-x: auto;
    }
    nav ul li {
        flex: 1 1 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 0;
        overflow: hidden;
    }
    nav ul li a {
        width: 100%;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 10px 6px;
        font-size: 15px;
    }
}

.sidebar-logo {
    display: block;
    margin: 0 auto 18px auto; /* Logo zentriert in Sidebar */
    width: 183px;
    height: auto;
}

.centered-btn {
    text-align: center; /* Zentriert den Button-Text */
}
