:root {
    --color-footer: rgb(161, 161, 161);
    --color-flowchart-user: #749ab9;
    --color-h1: #5f7f99;
    --color-scroll-btn-hovered: #537088;
    --color-flowchart-card-hovered: #406276;
    --color-hovered: #2d5565;
    --color-feature-item: #2a4852;
    --color-dropdown-options: #1f3540;
    --color-box-shadow: rgba(0, 0, 0, 0.3);
}

/* General Styles */
body {
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    padding-left: 15vw;
    padding-right: 15vw;
    font-family: Arial, sans-serif;
    margin: 0px;
}

.fullpage {
    padding-top: 8vh;
    min-height: 92vh;
}

.reportpage {
    padding-top: 8vh;
    padding-bottom: 5vh;
}

.landing-page {
    text-align: left;
    max-width: 70vw;
}

.landing-page h2 {
    color: white;
    font-size: clamp(2rem, 4rem, 4rem);
}

.landing-page h1 {
    color: var(--color-h1);
    /* Brighter purple */
    font-size: 2rem;
}

.landing-page p {
    font-size: 1.3em;
    width: 50vw;
    border-radius: 10px;
    line-height: 1.6;
    color: lightgrey;
}

.button-container {
    margin-top: 15px;
}

.lineheight-2 {
    line-height: 1.6;
}

/* Features Section */
.features {
    color: lightgrey;
    padding-top: 5vh;
    margin-bottom: 10vh;
}

.features h2 {
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.features h1 {
    color: var(--color-h1);
    /* Brighter purple */
    font-size: 1.5rem;
    font-weight: bold;
}

.features p {
    color: lightgrey;
    /* Brighter purple */
    font-size: 1.2rem;
    max-width: 50vw;
    margin-bottom: 4vh;
}

.scroll-features {
    padding-top: 10vh;
}

.feature-list-1-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive */
    justify-content: left;
    gap: 20px;
    max-width: 400px;
}

.feature-list-2-rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive */
    justify-content: left;
    gap: 20px;
    max-width: 800px;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Responsive */
    justify-content: center;
    gap: 20px;
    max-width: 1200px;
}

.feature-list a,
.feature-list-1-row a,
.feature-list-2-rows a {
    text-decoration: none;
}


/* Feature Items */
.feature-item {
    padding: 25px;
    color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 8px 16px var(--color-box-shadow);
    background: var(--color-feature-item);
    /* Slight gray with a very subtle purple tint */
    text-align: center;
    transition: 0.3s ease-in-out;
}

/* Feature Headings - Blue-Purple Color */
.feature-item h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* Feature Item Text */
.feature-item p {
    font-size: 1.1em;
    line-height: 1.4;
    color: #e0e0e0;
    /* Lighter gray for better readability */
}

/* Feature Item Hover Effect */
.feature-item:hover {
    transform: translateY(-5px);
    background: var(--color-hovered);
    color: #ffffff;
}

.feature-item:hover p {
    color: #ebebeb;
    /* Slightly lighter blue-purple */
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: var(--color-h1);
    /* Brighter purple */
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 1.1em;
    margin-top: 20px;
}

.cta-button:hover {
    background: var(--color-hovered);
    /* Slightly darker on hover */
    transform: scale(1.05);
}

.cta-button-small {
    display: inline-block;
    background: var(--color-h1);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
    font-size: 0.9em;
    margin-top: 10px;
}

.cta-button-small:hover {
    background: var(--color-hovered);
    transform: scale(1.05);
}

/* Scroll Button */
.scroll-button {
    background-color: var(--color-h1);
    /* Brighter purple */
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
}

.scroll-button:hover {
    background-color: var(--color-scroll-btn-hovered);
    /* Subtler hover change */
    transform: translateY(-2px);
}

/* News Page Styles */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    /* Center the list */
}

.news-item-row {
    display: flex;
    flex-direction: row;
    background: var(--color-feature-item);
    border-radius: 12px;
    box-shadow: 0px 8px 16px var(--color-box-shadow);
    overflow: hidden;
    transition: 0.3s ease-in-out;
    align-items: stretch;
    /* Ensure image and content stretch */
}

.news-item-row:hover {
    background: var(--color-hovered);
}

.news-image {
    flex: 0 0 300px;
    /* Fixed width for image container */
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover the area */
    display: block;
}

.news-content {
    flex: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    align-items: flex-start;
}

.news-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.news-date {
    color: lightgrey;
    /* Changed to grey as requested */
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-content p {
    color: #e0e0e0;
    font-size: 1.1em;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* Responsive adjustment for News */
@media (max-width: 800px) {
    .news-item-row {
        flex-direction: column;
    }

    .news-image {
        flex: none;
        height: 200px;
        /* Specific height for mobile */
        width: 100%;
    }
}

.imprint {
    color: white;
    padding-top: 5vh;
    padding-left: 10vw;
    padding-right: 10vw;
}

.imprint div {
    color: white;
}

.imprint h2 {
    font-weight: bold;
    font-size: 2.5rem;
    line-height: 1.6;
}

.imprint h1 {
    font-weight: bold;
    font-size: 1rem;
}

.imprint p {
    color: lightgrey;
    /* Brighter purple */
    font-size: 1rem;
}

.data-protection {
    color: white;
    padding-top: 5vh;
    padding-left: 10vw;
    padding-right: 10vw;
    line-height: 1.6;
}

.data-protection h2 {
    font-weight: bold;
    font-size: 2.5rem;
}

.data-protection h1 {
    font-weight: bold;
    font-size: 1rem;
}

.data-protection p {
    color: lightgrey;
    /* Brighter purple */
    font-size: 1rem;
}

/* Footer */
footer {
    margin-top: 5vh;
    color: grey;
    font-size: 0.9em;
    justify-items: center;
}

footer a {
    color: var(--color-footer);
    text-decoration: none;
}

footer p {
    text-align: center;
}

.footer-top-row {
    display: flex;
    gap: 30px;
}

.footer-absolute-position-bottom {
    position: fixed;
    bottom: 0;
    left: 10vw;
    width: 80vw;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Scroll Effect */
.hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-in-out;
}

.show {
    opacity: 1;
    transform: translateY(0);
}

/* Top Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 1.6vh;
    position: sticky;
    top: 0px;
    z-index: 1005;
    height: 5vh;
}

.navbar img {
    align-self: center;
    height: 5vh;
    width: auto;
    cursor: pointer;
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.navbar-brand {
    font-size: 1.8rem;
    display: flex;
}

.navbar-brand a {
    text-decoration: none;
    color: white;
    align-self: center;
}

.navbar-burger {
    display: none;
    font-size: 2rem;
}

.navbar-menu {
    display: flex;
    font-weight: bold;
    list-style: none;
    display: flex;
    padding: 0;
    align-content: center;
    align-items: center;
}

.none {
    display: none;
}

.flex {
    display: flex;
}

.navbar-menu li a {
    position: relative;
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    padding-bottom: 6px;
    transition: color 1s ease;
    /* smoothly transition text color */
    text-align: center !important;
}

.navbar-menu li.selected a {
    color: var(--color-h1);
}

.selected {
    color: var(--color-h1) !important;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 0;
    background-color: var(--color-h1);
    transition: height 0.3s ease, bottom 0.3s ease, background-color 0.3s ease;
    z-index: -1;
}

.navbar-menu li a:hover::after {
    height: 2px;
    bottom: 0;
    background-color: var(--color-h1);
}

.navbar-menu li a:hover {
    color: var(--color-h1);
}

.navbar-menu li {
    padding: 2vh;
}

.blur {
    filter: blur(6px);
}

.more-details-wrapper {
    margin-top: -6vh;
    width: 100%;
    position: relative;
    display: inline-block;
}

.more-details-wrapper button {
    background: var(--color-h1);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: background 0.3s;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.dropdown-options {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--color-dropdown-options);
    border: 2px solid var(--color-footer);
    border-radius: 8px;
    box-shadow: 0px 8px 16px var(--color-box-shadow);
    transition: all 0.4s ease;
    position: absolute;
    top: 100%;
    left: 5%;
    z-index: 10;
    min-width: 90%;
    flex-direction: column;
}

.dropdown-options a {
    display: block;
    color: #ffffff;
    padding: 15px 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s;
    border-bottom: 1px dotted var(--color-footer);
}

.z-250 {
    position: relative;
    z-index: 250;
}

.z-500 {
    position: relative;
    z-index: 500;
}

.z-750 {
    position: relative;
    z-index: 750;
}

.z-1000 {
    position: relative;
    z-index: 1000;
}

.tilt-container {
    margin-top: 7vh;
    width: 100%;
    height: auto;
    perspective: 1000px;
    filter: brightness(90%);
    opacity: 0.9;
}

.img-acceptance-criteria-container {
    margin-top: 5vh;
    margin-bottom: 5vh;
    width: 80%;
    height: auto;
    justify-self: center;
    perspective: 1000px;
    filter: brightness(90%);
    opacity: 0.9;
}

.tilt-image {
    width: 100%;
    height: auto;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.table-wrapper {
    max-width: 1000px;
    width: fit-content;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0px 8px 16px var(--color-box-shadow);
}

table {
    table-layout: fixed;
    width: 100%;
    border-spacing: 0;
}

th {
    background-color: var(--color-h1);
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    text-align: left;
}

td {
    padding: 1rem;
    font-size: 1.1rem;
    color: lightgrey;
    background-color: var(--color-feature-item);
    transition: transform 0.4s ease, background-color 0.4s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    border-top: 1px dotted var(--color-h1);
}

tr {
    transition: all 0.3s ease;
}

.border-right-lightgrey {
    border-right: 1px dotted var(--color-h1);
}

.margin-top-10vh {
    margin-top: 10vh;
}

.lang-container {
    display: flex;
    flex-direction: row;
    position: relative;
    cursor: pointer;
    align-items: center;
    align-content: center;
    justify-items: center;
    justify-content: center;
}

.lang-container img {
    border-radius: 2px;
    padding: 4px;
    height: 4vh;
    fill: white;
    stroke: white;
}

.arrow-down {
    height: 2vh !important;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(20deg) brightness(103%) contrast(101%);
    transition: transform 0.2s ease;
    transform: rotate(90deg);
}

.flag-options {
    display: none;
    position: absolute;
    top: 100%;
    /* below the parent */
    left: 50%;
    transform: translateX(-50%);
    padding: 1vh 1vw !important;
    border-radius: 6px;
    background: var(--color-flowchart-card-hovered);
    box-shadow: 0 2px 6px var(--color-box-shadow);
    z-index: 10;
}

.flag-options img {
    transition: transform 0.2s;
}

.flag-options img:hover {
    transform: scale(1.15);
}

.flag-options.show {
    display: flex;
    flex-direction: column;
}

.particle-list {
    padding-left: 4%;
    width: fit-content;
    border-left: 4px solid var(--color-h1);
    border-radius: 12px;
}

.particle-list.arrow-style li {
    padding: 1rem 0.5rem;
    display: flex;
    align-items: center;
    /* 🔄 changed from flex-start to center */
    gap: 0.75rem;
    border-bottom: 1px solid var(--color-h1);
    transition: transform 0.2s ease, background-color 0.3s ease;
    word-break: break-word;
    flex-wrap: wrap;
}

.particle-list.arrow-style li .arrow-list {
    color: var(--color-h1);
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.particle-list.arrow-style li .text {
    flex: 1;
}

.particle-list.arrow-style li:last-child {
    border-bottom: none;
}

.margin-bottom-0 {
    margin-bottom: 0;
}

.arrow-about {
    padding-left: 6px;
    max-height: 0.75rem;
    filter: invert(100%);
}

.navbar-menu li.about-dropdown {
    position: relative;
}

.navbar-menu li.about-dropdown:hover .menu-about-content {
    display: block;
}

.menu-about-content {
    display: none;
    position: absolute;
    border-radius: 6px;
    top: 100%;
    /* below the parent */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-hovered);
    box-shadow: 0px 8px 16px var(--color-box-shadow);
    z-index: 10;
}

.menu-about-content a {
    min-width: fit-content;
    padding: 2vh 2vw !important;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.menu-about-content a::after {
    max-height: 0;
}


@media (hover: hover) {
    .more-details-wrapper button:hover {
        background: var(--color-hovered);
    }

    .more-details-wrapper button:hover+.dropdown-options,
    .more-details-wrapper .dropdown-options:hover {
        opacity: 1;
        max-height: 500px;
    }

    .more-details-wrapper:hover .arrow {
        transform: rotate(180deg);
    }

    .more-details-wrapper:hover button {
        background: var(--color-hovered);
    }

    .dropdown-options a:hover {
        background: var(--color-hovered);
    }

    .particle-list.arrow-style li:hover {
        background-color: var(--color-hovered);
        transform: scale(1.03);
        cursor: default;
    }

    td:hover {
        transform: scale(1.05);
        background-color: var(--color-hovered);
    }
}

/* Remove padding when screen width is small */
@media (max-width: 800px) {
    body {
        margin: 0px 0px;
        padding-left: 4vw;
        /* No padding on small screens */
        padding-right: 4vw;
        /* No padding on small screens */
    }

    .fullpage {
        padding-top: 4vh;
        min-height: 96vh;
    }

    .landing-page {
        max-width: 92vw;
    }

    .landing-page h2 {
        max-width: 92vw;
        font-size: clamp(2rem, 3rem, 4rem);
    }

    .landing-page p {
        width: 92vw;
    }

    .features {
        color: lightgrey;
        padding-top: 7vh;
        margin-bottom: 0vh;
    }

    .features p {
        max-width: 92vw;
        margin-bottom: 2vh;
    }

    .navbar {
        margin-left: -4vw;
        margin-right: -4vw;
        padding-left: 5.6vw;
        padding-right: 1.6vw;
    }

    .navbar-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        z-index: 1000;
    }

    .navbar-brand {
        display: flex;
        gap: 2vw;
        font-size: 1.3rem;
    }

    .navbar-burger {
        display: block;
        font-size: 2rem;
        padding-right: 2vw;
    }

    .navbar-menu {
        flex-direction: column;
        position: absolute;
        top: 6vh;
        /* places it right below the navbar-top */
        left: 0px;
        right: 0px;
        width: 100%;
        background: linear-gradient(to right, #0f2027, #203a43, #2c5364);
        z-index: 99;
    }

    @keyframes slideFromRight {
        from {
            transform: translateX(100%);
            opacity: 0.7;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes slideOutToRight {
        from {
            transform: translateX(0);
            opacity: 1;
        }

        to {
            transform: translateX(100%);
            opacity: 0.7;
        }
    }

    .slide-in {
        animation: slideFromRight 0.5s ease forwards;
    }

    .slide-out {
        animation: slideOutToRight 0.5s ease forwards;
    }

    .navbar-menu {
        border-bottom: 2px solid grey;
    }

    .navbar-menu li {
        padding-top: 2vh;
        padding-bottom: 2vh;
        padding-left: 8vw;
        padding-right: 8vw;
        border-top: 2px solid grey;
    }

    .more-details-wrapper.hovered button {
        background: var(--color-hovered);
    }

    .more-details-wrapper.hovered .dropdown-options {
        opacity: 1;
        max-height: 500px;
    }

    .more-details-wrapper.hovered .arrow {
        transform: rotate(180deg);
    }

    .table-wrapper {
        overflow-x: auto;
    }

    th,
    td {
        min-width: 120px;
        padding: 0.8rem;
        font-size: 1rem;
    }

    .margin-top-13vh {
        margin-top: 13vh;
    }

    .particle-list {
        padding-left: 2%;
    }

    .menu-about-content a {
        width: 40vw;
    }

    .img-acceptance-criteria-container {
        width: 100%;
    }
}