@charset "utf-8";

@font-face {
    font-family: 'Lora';
    src: url('./fonts/Lora-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Open-Sans';
    src: url('./fonts/OpenSans-Regular.ttf') format('truetype');
}

html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion) {
    html {
        scroll-behavior: auto;
    }
}

body {
    background-color: white;
    font-family: Open-Sans;
    color: black;
    margin: auto;
}

header {
    width: 100%;
    margin-bottom: 30px;

    & #contact-info {
        padding: 2px 0px;
        width: 100%;
        min-height: 40px;
        background-color: #121B31;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-end;

        & a {
            color: white;
            text-decoration: none;
        }
    
        & div {
            margin-inline: 20px;
        }
    }

    & nav {
        height: 70px;
        display: flex;
        justify-content: space-between;
        padding-inline: 20px;

        & img {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        & .menu {
            display: flex;
            align-items: center;
        
            & a {
                font-size: 24px;
                color: black;
                text-decoration: none;
                margin-left: 20px;
            }
        }

        & .mobile-menu {
            display:none;

            & .hamburger {
                background: none;
                border: none;
                padding: 0;
                cursor: pointer;
            }
        }
    }

    & .banner {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        margin: 0;

        & .banner-image {
            width: 100%;
        }

        & .banner-headline {
            position: absolute;
            color: white;
            font-size: 5vw;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            text-align: center;
        }
    }
    
}

.header {
    display: flex;
    flex-direction: column;
    align-items: center;

    & .separator {
        width: 80%;
        background-color: #c1c1c1;
        height: 1px;
        margin: 30px 0 30px 0;
    }
}

h2 {
    font-family: Lora;
    font-size: 4rem;
    font-weight: normal;
    margin: auto;
}

.services-container {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 0 8px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.column {
    text-align: left;
    max-width: 520px;
    flex: auto;
    margin: 8px 20px;
}

.column h2 {
    font-size: 1.5em;
    margin-bottom: 16px;
}

.column ul {
    list-style-type: none;
    padding: 0;
}

.column ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.column ul li::before {
    content: "📌";
    margin-right: 8px;
}

#onas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0a2741;
    color: #fff;
    margin-bottom: 60px;

    & .image {
        flex: 1;
        height: 335px;
        background: 
        linear-gradient(to right, rgba(10, 39, 65, 0) 60%, rgba(10, 39, 65, 1) 100%), 
        url('img/onas2.webp') center/cover no-repeat;
        background-position-y: bottom;
    }

    & .text {
        flex: 1;
        margin-inline: 20px;
    }
  }

.table-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-inline: 40px;

    & h3 {
        font-family: 'Lora';
        font-size: 1.5rem;
        color: #0a2741; /* Dark blue */
        margin-bottom: 10px;
        width: 100%; /* Ensure the title spans the full width */
        text-align: center; /* Center the title */
    }

    & .table-group {
        display: flex;
        justify-content: space-between;
        width: 100%;
        gap: 20px; /* Adjust spacing between tables */

        & .table-wrapper {
            width: 48%; /* Adjust width to fit 2 tables side by side */

            & h3 {
                font-family: 'Lora';
                font-size: 1.5rem;
                color: #0a2741;
                margin-bottom: 10px;
                text-align: left;
            }
        }
    }

    & .table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 20px;

        & caption {
            text-align: left;
            font-size: x-large;
            font-family: 'Lora';
            margin-bottom: 10px;
            color: #0a2741;
        }

        & td {
            padding: 10px;
            border: 1px solid #ddd;
            text-align: left;
        }

        & tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        & tr:hover {
            background-color: #f1f1f1;
        }

        & td:nth-child(2) {
            width: 40%;
        }
    }
}

#kontakt {
    background-color: rgba(10, 39, 65);
    color: white;
    padding: 10px;
    display: flex;
    align-items: center;
    flex-direction: column;

    & p {
        font-family: Lora;
        font-size: 2rem;
        text-align: center;
    }
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: black;

    & img {
        width: 165px;
    }

    & nav {
        display: flex;
        justify-content: center;
        gap: 20px;

        & a {
            text-decoration: none;
            color: #fff;
        }
    }
}

/* Mobile adjustments */

@media (max-width: 1024px) {
    .services-grid {
      grid-template-columns: repeat(2, 1fr);
    }
}

  
@media (max-width: 768px) {
    header {

        & nav {
            height: 70px;
    
            & .menu {
                display: none;
            }
    
            & .mobile-menu {
                display:block;

                & .dropdown {
                    display: none;
                    background-color: #fff;
                    font-size: 2rem;
                    flex-direction: column;
                    align-items: center;
                    position: absolute;
                    top: 110px;
                    left: 0;
                    width: 100%;
                    z-index: 2;
                    padding: 130px 0;
                    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

                    & a {
                        padding: 10px;
                        text-decoration: none;
                        color: black;
                        display: block;
                    }
                }
            }
        }
    
        & .banner {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
    
            & .banner-image {
                width: 100%;
            }
    
            & .banner-headline {
                position: absolute;
                color: white;
                font-size: 5vw;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
                text-align: center;
            }
        }
        
    }

    .table-container {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 20px;

        & .table-group {
            flex-direction: column;

            & .table-wrapper {
                width: 100%;
            }
        }

        & .table {
            width: 100%;
        }
    }

    #onas{
        flex-direction: column;
        text-align: center;
  
        & .image {
          flex: none;
          width: 100%;
          height: 200px;
          margin-bottom: 20px;
        }
  
        & .text {
          margin-inline: auto;
          padding-inline: 15px;
  
          & p {
              text-align: start;
            }
        }
    }

    .table-container {
        flex-direction: column;
        align-items: flex-start;
        
        & .table {
            width: 100%;
        }
    }

    h2{
        font-size: 3rem;
    }

    #kontakt {
    
        & p {
            font-size: 1.5rem;
        }
    }
}
  
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
  
@media (max-width: 530px) {
    header {
        width: 100%;
        margin-bottom: 30px;

        & #contact-info {
            flex-direction: column;
        }
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;

        & img {
            margin-bottom: 20px;
        }

        & nav {
            gap: 10px;
        }
    }
}
