
/* =========================================
   Allgemein
   ========================================= */

html {
    font-size: 14px;
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f4f6;
    overflow: hidden;
}


/* =========================================
   Kopfbereich
   ========================================= */

.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #DBDBDB;
    border-bottom: 1px solid #ddd;
    padding: 0 30px;
    box-sizing: border-box;
    z-index: 1000;
}


/* =========================================
   Firma links als Link
   ========================================= */

.company-link {
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

    .company-link:hover {
        color: inherit;
        text-decoration: none;
    }

.company {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    height: 55px;
    width: auto;
    margin-right: 20px;
}

.company-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
    min-width: 200px;
    transition: color 0.2s ease;
}

.company-link:hover .company-title {
    color: #0d6efd;
}


/* =========================================
   Wetteranzeige oben rechts
   ========================================= */

.weather-widget {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
    color: #1f2937;
}

.weather-icon {
    font-size: 34px;
    line-height: 1;
}

.weather-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
}

    .weather-info strong {
        font-size: 19px;
        font-weight: 700;
        line-height: 1.2;
    }

    .weather-info span:last-child {
        font-size: 12px;
        color: #4b5563;
    }

    .weather-info #weatherLocation {
        font-size: 12px;
        color: #4b5563;
        white-space: nowrap;
    }


/* =========================================
   Hauptbereich
   ========================================= */

.page-layout {
    position: fixed;
    top: 80px;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    min-height: 0;
}


/* =========================================
   Linke Navigation
   ========================================= */

.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: #1f2937;
    padding-top: 20px;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
}

    .sidebar .nav-link {
        color: white;
        padding: 14px 20px;
        display: block;
        font-size: 15px;
        text-decoration: none;
    }

        .sidebar .nav-link:hover {
            background: #374151;
            color: white;
        }


/* =========================================
   Inhalt
   ========================================= */

.content {
    flex: 1;
    min-width: 0;
    min-height: 0;
    padding: 30px;
    padding-bottom: 80px;
    box-sizing: border-box;
    overflow-y: auto;
}


/* =========================================
   Startseite
   ========================================= */

.home-dashboard {
    max-width: 800px;
    margin: 60px auto;
    text-align: center;
}

    .home-dashboard h1 {
        font-size: 32px;
        margin-bottom: 15px;
        color: #1f2937;
    }

.home-subtitle {
    color: #6b7280;
    font-size: 18px;
    margin-bottom: 30px;
}


/* =========================================
   Google-Suchfeld
   ========================================= */

.search-box {
    display: flex;
    gap: 10px;
    width: 100%;
}

    .search-box input {
        flex: 1;
        min-width: 0;
        padding: 14px;
        border: 1px solid #ccc;
        border-radius: 8px;
        font-size: 16px;
        background: white;
        outline: none;
    }

        .search-box input:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px #2563eb20;
        }

    .search-box button {
        padding: 12px 22px;
        background: #2563eb;
        color: white;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        font-size: 15px;
    }

        .search-box button:hover {
            background: #1d4ed8;
        }


/* =========================================
   Fußzeile
   ========================================= */

.footer {
    position: fixed;
    bottom: 0;
    left: 240px;
    right: 0;
    min-height: 44px;
    padding: 12px 24px;
    display: block;
    box-sizing: border-box;
    background: #DBDBDB;
    border-top: 1px solid #d1d5db;
    color: #4b5563;
    font-size: 12px;
    z-index: 900;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-links a {
        color: #374151;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .footer-links a:hover {
            color: #0d6efd;
            text-decoration: underline;
        }

.footer-divider {
    color: #9ca3af;
}


/* =========================================
   Responsive Darstellung: Tablets
   ========================================= */

@media (max-width: 800px) {
    .topbar {
        padding: 0 16px;
        gap: 12px;
    }

    .company {
        gap: 10px;
    }

    .logo {
        height: 45px;
        margin-right: 0;
    }

    .company-title {
        font-size: 16px;
        letter-spacing: 1px;
        min-width: 0;
    }

    .sidebar {
        width: 190px;
    }

    .content {
        padding: 20px;
        padding-bottom: 80px;
    }

    .weather-widget {
        gap: 7px;
    }

    .weather-icon {
        font-size: 28px;
    }

    .weather-info strong {
        font-size: 16px;
    }

    .footer {
        left: 190px;
        padding: 10px 16px;
    }
}


/* =========================================
   Responsive Darstellung: Smartphones
   ========================================= */

@media (max-width: 550px) {
    .topbar {
        padding: 0 10px;
        gap: 8px;
    }

    .logo {
        height: 36px;
    }

    .company-title {
        font-size: 12px;
        letter-spacing: 0;
    }

    .weather-widget {
        gap: 5px;
    }

    .weather-icon {
        font-size: 23px;
    }

    .weather-info strong {
        font-size: 14px;
    }

    .weather-info span:last-child {
        font-size: 10px;
    }

    .weather-info #weatherLocation {
        font-size: 10px;
    }

    .sidebar {
        width: 145px;
    }

        .sidebar .nav-link {
            padding: 12px 10px;
            font-size: 13px;
        }

    .content {
        padding: 15px;
        padding-bottom: 90px;
    }

    .home-dashboard {
        margin: 30px auto;
    }

        .home-dashboard h1 {
            font-size: 25px;
        }

    .home-subtitle {
        font-size: 15px;
    }

    .search-box {
        flex-wrap: wrap;
    }

        .search-box input {
            width: 100%;
            flex-basis: 100%;
        }

        .search-box button {
            width: 100%;
        }

    .footer {
        left: 145px;
        padding: 8px 10px;
        font-size: 10px;
    }

    .footer-inner {
        justify-content: center;
        gap: 6px;
    }

    .footer-links {
        gap: 6px;
    }
}

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 32px 48px;
    line-height: 1.7;
}

.legal-page h1 {
    margin-bottom: 28px;
}

.legal-section {
    margin-bottom: 28px;
}

    .legal-section h2 {
        margin-bottom: 10px;
        font-size: 1.2rem;
    }

    .legal-section p,
    .legal-section ul {
        margin-bottom: 14px;
    }

    .legal-section a {
        overflow-wrap: anywhere;
    }

@media (max-width: 600px) {
    .legal-page {
        padding: 20px 16px 36px;
    }
}
