:root {
    --text-color: #f0f0f0; /* Light grey for text, similar to the image */
    --background-color: #9ab4c7; /* A shade of blue-grey from the image */
    --font-family: 'Montserrat', sans-serif;
}

/* Base Styles */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Pushes header to top, footer to bottom */
    align-items: flex-start; /* Aligns content to the left */
    min-height: 100vh;
    padding: 2rem; /* Add some padding around the content */
    box-sizing: border-box;
    position: relative; /* For absolute positioning of logo if needed */
}

/* Common Text Styles */
p {
    margin: 0;
    line-height: 1.4;
}

/* Desktop Styles (Default) */
.desktop-header,
.desktop-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.desktop-header {
    align-items: flex-start;
    margin-bottom: auto; /* Pushes the logo down */
    font-size: 0.9em;
}

.logo {
    position: absolute; /* Position relative to .container */
    top: 50%;
    right: 2rem; /* Adjusted for desktop padding */
    transform: translateY(-50%);
    font-size: 8vw; /* Responsive font size */
    font-weight: 700;
    line-height: 1;
    text-align: right;
    white-space: nowrap; /* Prevents "jan." from wrapping */
}

.desktop-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end; /* Aligns items to the bottom */
    font-size: 0.85em;
    padding-top: 2rem; /* Space between logo area and footer */
}

.desktop-footer .footer-left,
.desktop-footer .footer-center,
.desktop-footer .footer-right {
    display: flex;
    flex-direction: column;
}

.desktop-footer .footer-center {
    align-items: center; /* Center OIB and IBAN */
    margin-left: auto; /* Pushes it towards the center-right */
    margin-right: 15vw; /* Adjust spacing from right */
}

.desktop-footer .footer-right {
    text-align: right;
}

.desktop-footer span {
    font-weight: 500;
}

/* Hide mobile specific elements by default */
.mobile-header,
.mobile-footer {
    display: none;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    .container {
        padding: 1.5rem;
        justify-content: flex-start; /* Reset justification for mobile */
    }

    /* Hide desktop specific elements */
    .desktop-header,
    .desktop-footer {
        display: none;
    }

    /* Show mobile specific elements */
    .mobile-header,
    .mobile-footer {
        display: flex;
    }

    .mobile-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.9em;
        margin-bottom: 2rem; /* Space before logo */
    }

    .mobile-contact {
        text-align: right;
        font-size: 0.9em;
        margin-left: auto; /* Pushes to the right */
        margin-bottom: 3rem; /* Space between contact and logo */
    }

    .logo {
        position: static; /* Remove absolute positioning for mobile */
        transform: none; /* Remove transform */
        font-size: 15vw; /* Larger font size for mobile logo */
        width: 100%;
        text-align: left; /* Align logo to left for mobile */
        margin-bottom: auto; /* Pushes mobile footer down */
    }

    .mobile-footer {
        width: 100%;
        flex-direction: column;
        align-items: flex-start; /* Align all footer content to the left */
        font-size: 0.8em;
        padding-top: 3rem; /* Space between logo and footer */
    }

    .mobile-footer div {
        margin-bottom: 1.5rem; /* Space between footer sections */
    }

    .mobile-footer .mobile-bank-details {
        margin-bottom: 0; /* No margin after the last section */
    }
}

/* Adjust logo size for smaller screens but still desktop-ish */
@media screen and (min-width: 769px) and (max-width: 1200px) {
    .logo {
        font-size: 10vw;
    }
}