/* Minimal home page override to center content */
html {
  scroll-padding-top: 80px;
}

.header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Logo on right side, offset inward by half of "Landwerkservice" text width */
.header-logo {
    position: absolute !important;
    left: auto !important;
    right: 7em !important;
    margin-left: 0 !important;
}

.header-weather {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.w-mini {
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.9em;
    white-space: nowrap;
}

.w-location {
    font-weight: bold;
    color: var(--brown-dark, #4a3728);
    font-family: FreeSans, Arial, sans-serif;
}

.w-temp {
    font-weight: bold;
}

.w-desc {
    font-size: 0.85em;
    opacity: 0.8;
}

.w-forecast {
    display: flex;
    gap: 0.8em;
    justify-content: center;
    margin-top: 0.3em;
    font-size: 0.75em;
}

.w-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1em;
}

.w-day-name {
    font-weight: bold;
    font-size: 0.9em;
}

.w-day-icon {
    font-size: 1.2em;
}

.w-day-temp {
    font-size: 0.85em;
    white-space: nowrap;
}

.w-day-moon {
    font-size: 0.85em;
    margin-top: 1px;
}

@media (max-width: 768px) and (orientation: portrait) {
    .header-weather {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .header-logo {
        display: none !important;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .myname {
        order: 1 !important;
        flex: 0 0 auto !important;
    }

    .header-weather {
        position: static !important;
        left: auto !important;
        transform: none !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        order: 2 !important;
        flex: 1 !important;
    }

    .header-weather .w-mini {
        display: flex !important;
        align-items: center !important;
        gap: 0.3em !important;
    }

    .header-weather .w-forecast {
        display: flex !important;
        gap: 0.4em !important;
        justify-content: center !important;
        margin-top: 0.15em !important;
    }

    .header-weather .w-day {
        flex-direction: row !important;
        gap: 0.2em !important;
    }

    .nav-toggle {
        order: 3 !important;
        margin-left: auto !important;
    }
}

.mobile-weather {
    display: none;
}

@media (max-width: 768px) {
    .mobile-weather {
        display: block;
        padding: 12px 16px;
        font-size: 14px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-weather .w-mini {
        justify-content: flex-start;
    }
}

.nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        margin-left: auto;
    }
}

/* Dark mode weather styles */
body.dark-mode .w-location {
    color: #e8dccc !important;
}

body.dark-mode .w-temp,
body.dark-mode .w-desc,
body.dark-mode .w-day-name,
body.dark-mode .w-day-temp {
    color: #d4c8b8 !important;
}