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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a3a5c;
    color: #333;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
}

.container {
    display: flex;
    flex: 1;
    gap: 30px;
    padding: 30px;
    overflow: hidden;
    min-height: 0;
}

/* Hauptinhalt */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    overflow: hidden;
}

.label {
    background: #FFD700;
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.image-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-container {
    width: 400px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qr-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.qr-code {
    flex-shrink: 0;
}

.qr-code img,
.qr-code svg {
    border-radius: 8px;
    display: block;
}

.qr-text {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    flex: 1;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-date {
    color: #4A90E2;
    font-size: 14px;
    font-weight: 500;
}

.article-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3a5c;
    line-height: 1.3;
    margin: 0;
}

.article-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* Sidebar */
.sidebar {
    width: 320px;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 5px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.logo-m {
    font-size: 28px;
}

.logo-text {
    font-size: 18px;
}

.date-display,
.time-display {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.date-display {
    font-size: 16px;
}

.time-display {
    font-size: 48px;
    font-weight: 700;
    padding: 25px 20px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: left;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.nav-button.active {
    background: rgba(255, 255, 255, 0.25);
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: 14px;
    flex-shrink: 0;
}

.footer-left {
    display: flex;
    gap: 20px;
    align-items: center;
}

.slide-indicator {
    font-weight: 600;
}

.next-slide {
    color: rgba(255, 255, 255, 0.8);
}

.footer-right {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
}

/* Overlay Menü */
.overlay-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 0;
    overflow: hidden;
}

.overlay-menu.active {
    display: flex;
    opacity: 1;
}

.overlay-content {
    background: #1a3a5c;
    border-radius: 20px;
    width: 100%;
    max-height: calc(100vh - 60px);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin-top: 0;
    margin-right: 0;
    position: absolute;
    top: 0;
    right: 0;
}

.overlay-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.overlay-menu-items {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    max-height: 280px; /* Höhe für genau 5 Menüpunkte (18px padding top + 18px padding bottom + ~44px pro Item) */
    min-height: 0;
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

.overlay-menu-item {
    display: block;
    color: white;
    padding: 18px 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    scroll-snap-align: start;
}

.overlay-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #4A90E2;
    padding-left: 35px;
}

.overlay-menu-items::-webkit-scrollbar {
    width: 8px;
}

.overlay-menu-items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.overlay-menu-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.overlay-menu-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .content-card {
        grid-template-columns: 1fr;
    }
    
    .image-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-card {
        padding: 20px;
    }
    
    .article-title {
        font-size: 20px;
    }
    
    .time-display {
        font-size: 36px;
    }
    
    .footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

