/* Globale Stile & CSS-Variablen */
:root {
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --text-color: #2c3e50;
    --accent-color: #3498db;
    --header-footer-bg: #ffffff;
    --border-color: #e2e8f0;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Verhindert das Scrollen der gesamten Seite */
}

/* Fixierter Header */
.app-header {
    height: 60px;
    background-color: var(--header-footer-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.header-logo img {
    height: 35px;
    width: auto;
}

/* Hamburger Button */
/* Verfeinerter Hamburger Button */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 110;
    width: 30px;
    height: 30px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease; /* Weicher Übergang */
    transform-origin: center;
}

/* Animation zum "X" wenn das Menü offen ist */
.menu-toggle.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Oberer Strich dreht sich */
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0; /* Mittlerer Strich wird unsichtbar */
    transform: translateX(-10px);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Unterer Strich dreht sich entgegengesetzt */
}


/* Seitliches App-Menü */
.side-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background-color: var(--header-footer-bg);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 105;
    transition: left 0.3s ease;
    padding-top: 80px;
}

.side-menu.open {
    left: 0;
}

.side-menu ul {
    list-style: none;
}

.side-menu ul li a {
    display: block;
    padding: 16px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    background-color: transparent;
    
    /* Bestimmt die Geschwindigkeit und Art aller Übergänge */
    transition: 
        background-color 0.25s ease, 
        border-left-color 0.25s ease, 
        color 0.25s ease, 
        padding-left 0.25s ease; 
}
/* Hover-Effekt (Maus fährt drüber) */
.side-menu ul li a:hover {
    background-color: #f1f5f9; /* Ganz leichter, graublauer Hintergrund */
    color: var(--accent-color); /* Text färbt sich im WeightControl-Blau */
    padding-left: 32px; /* Schiebt den Text elegant 7 Pixel nach rechts */
    border-left-color: #cbd5e1; /* Zeigt eine dezente graue Vorschau-Linie links */
}
/* Aktiver Zustand (Aktuell ausgewählte Seite) */
.side-menu ul li a.active {
    background-color: #e0f2fe; /* Heller, blauer Hintergrund für Fokus */
    color: var(--accent-color);
    border-left-color: var(--accent-color); /* Kräftige blaue Linie links */
    padding-left: 32px; /* Behält den verschobenen Zustand bei */
    font-weight: 600; /* Macht die Schrift minimal fetter */
} 


/* Hintergrund-Overlay bei offenem Menü */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 102;
    display: none;
}

.menu-overlay.show {
    display: block;
}

/* Scrollbarer Content-Bereich */
.main-content {
    flex: 1;
    margin-top: 60px; /* Platz für Header */
    margin-bottom: 50px; /* Platz für Footer */
    overflow-y: auto; /* Aktiviert das Scrollen nur hier */
    padding: 30px 20px;
    -webkit-overflow-scrolling: touch; /* Weiches Scrollen auf iOS */
}

#content-area {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease;
}

/* Fixierter Footer */
.app-footer {
    height: 50px;
    background-color: var(--header-footer-bg);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    font-size: 0.9rem;
}

/* Animation für dynamischen Content-Wechsel */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
/* Styling für den Download-Button */
.download-btn {
    display: flex;
    align-items: center;
    background-color: var(--text-color); /* Dunkler, moderner Hintergrund */
    color: #ffffff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    gap: 15px;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.download-btn:hover {
    background-color: #1a252f; /* Leicht dunkler beim Drüberfahren */
    transform: translateY(-2px);
}

.download-btn:active {
    transform: translateY(0);
}

.download-btn .btn-icon {
    font-size: 2rem;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.download-btn .btn-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #bdc3c7;
}

.download-btn .btn-main {
    font-size: 1.1rem;
    font-weight: 600;
}
/* Changelog Styling */
.changelog-container {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.changelog-container h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.changelog-item {
    background-color: var(--header-footer-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.version-badge {
    background-color: #bdc3c7;
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: bold;
}

.version-badge.current {
    background-color: var(--accent-color);
}

.version-date {
    font-size: 0.85rem;
    color: #7f8c8d;
}

.changelog-list {
    list-style: none;
}

.changelog-list li {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.changelog-list li:last-child {
    margin-bottom: 0;
}

.changelog-list li span {
    font-size: 1rem;
    flex-shrink: 0;
}
/* Styling für Impressum & Datenschutz */
.legal-page h1 {
    margin-bottom: 25px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 15px;
    margin-top: 10px;
}

.legal-section h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
    color: #34495e;
}

.legal-subtitle {
    font-style: italic;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}
