:root {
    --bg-1: #f4f4f4; /* Light background */
    --bg-2: #e5e5e5; /* Light secondary background */
    --bgd-1: #292929; /* Dark background */
    --bg-menu: #333; /* Background Color for Menus */
    --green: #006837; /* Green Tone */
    --green-dark: #004d29; /* Darker Green Tone for Buttons e.g. */
    --accent-1: #2d3130; /* Accent color */ 
    --text-color: #333; /* Default text color */
    --text-color-dark: #f4f4f4; /* Text color for dark mode */
}

html {
    scroll-behavior: smooth;
    font-family: Montserrat, sans-serif;
}

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-1);
    overflow-x: hidden;
}

section {
    padding-bottom: 100px;
}

.burger, .burger-menu {
    display: none;
}

h1, h2, h3, h4, p{
    padding: 10px 0;
}

h1, h2 {
    font-size: 28px;
    text-align: center;
    padding-top: 30px;
}

h3 {
    font-size: 24px;
    text-align: center;
    padding-top: 50px;
}

h4 {
    font-size: 20px;
    text-align: center;
}

h5 {
    font-size: 16px;
    font-weight: bold;
}

p {
    font-size: 16px;
    line-height: 1.5;
    width: 60%;
    margin: 0 auto;
    text-align: left;
}

.cookie-banner {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 250px;
    height: 110px;
    background-color: #1b1b1b;
    color: #fff;
    padding: 15px;
    text-align: center;
    z-index: 1000;
    border-radius: 12px;
}

.cookie-banner p {
    width: 80%;
    margin-bottom: 10px;
    font-size: 15px;
}

#accept-cookies, #decline-cookies {
    cursor: pointer;
}

/* Smooth Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Dark mode toggle switch styles */
.switch {
    position: absolute;
    top: 8px;
    right: 65px;
    display: flex;
    width: 34px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--green);
}

input:checked + .slider:before {
    transform: translateX(14px);
}

/* Dark mode styles */
body.dark-mode {
    background-color: var(--bgd-1);
    color: var(--text-color-dark);
}

body.dark-mode a {
    color: var(--text-color-dark);
}

.hiddentxt {
    color: var(--text-color-dark);
}

body.dark-mode .hiddentxt {
    color: var(--bgd-1);
}

header {
    margin-left: 100px;
}

#header-logo-light {
    width: 50%;
    height: 50%;
    display: block;
    margin: 10% auto;
}

#header-logo-dark {
    display: none;
}

body.dark-mode #header-logo-light {
    display: none;
}

body.dark-mode #header-logo-dark {
    width: 50%;
    height: 50%;
    display: block;
    margin: 10% auto;
}

.langchange {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
}

.langchange select {
    border: none;
    background: none;
}

main {
    margin-left: 42px;
}

.nav {
    background-color: var(--bg-menu);
    width: 42px;
    height: 100%;
    top: 0;
    position: fixed;
    display: flex;
    justify-content: center;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    height: 100%;
}

li {
    margin: 20px 0; /* Add spacing between icons */
}

.navtxt {
    color: var(--text-color-dark);
    font-size: 15px; /* Default icon size */
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navtxt:hover {
    background-color: #555;
}

.navtxt.active {
    transform: scale(1.2); /* Make the active icon 10% bigger */
    background-color: #d1d1d125; /* Optional: Highlight the active icon */
}



#home {
    height: 1000px;
}

a {
    color: #333;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* Header */
.stats-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
}
.stat-box {
    background: var(--accent-1);
    border-radius: 12px;
    padding: 36px 48px;
    text-align: center;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-number {
    color: var(--green);
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}
.stat-label {
    color: var(--text-color-dark);
    font-size: 1rem;
    margin-top: 4px;
}




/* Services */
#services {
    margin: 0 auto;
    background-color: var(--bg-1);
    padding: 25px 0;
}

body.dark-mode #services {
    background-color: var(--bgd-1);
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: var(--accent-1);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    text-align: center;
    padding: 2rem 1.5rem 1.5rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    color: #f4f4f4;
}

.card:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

.icon {
    background: var(--green);
    color: #232726;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1rem auto;
}



/* About */


/* Werte */
.ccontainer {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 100px auto;
    gap: 20px;
}
.cube-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    transition: transform 0.3s ease;
}
.block {
    width: 150px;
    height: 150px;
    background: #4a90e2;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1em;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: background 0.2s;
    user-select: none;
}
.block:hover {
    background: #357abd;
}
.block.active {
    background: #1c3656;
}

#b1 {
    background: #21527A;
}
.block#b1:hover {
    background: #27689E;
}
.block.active#b1 {
    background: #153B5C;
}

#b2 {
    background: #37D6C5;
}
.block#b2:hover {
    background: #2BB8A9;
}
.block.active#b2 {
    background: #1B7E76;
}

#b3 {
    background: #F6B100;
}
.block#b3:hover {
    background: #FFD24D;
}
.block.active#b3 {
    background: #B68600;
}

#b4 {
    background: #18803B;
}
.block#b4:hover {
    background: #22994B;
}
.block.active#b4 {
    background: #125A29;
}


.info-text {
    max-width: 600px;
    min-height: 250px;
    padding: 10px;
    background: var(--bg-1);
    font-size: 1em;
    color: var(--text-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    margin-left: 10px;
    animation: fadeIn 0.3s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px);}
    to   { opacity: 1; transform: translateY(0);}
}

body.dark-mode .info-text {
    background: var(--bgd-1);
    color: var(--text-color-dark);
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

@media (max-width: 1220px) {
    .info-text {
        max-width: 400px;
    }
}

@media (max-width: 1000px) {
    .ccontainer {
        flex-direction: column;
        height: auto;
        align-items: center;
    }
    .cube-container {
        width: 90vw;
        max-width: 320px;
        height: auto;
        margin: 0 auto;
        transition: none;
    }
    .info-text {
        width: 90vw;
        max-width: 400px;
        margin-left: 0;
        margin-top: 20px;
    }
}



.container {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}


button {
    background-color: var(--green);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
}

button:hover {
    background-color: var(--green-dark);
}


#contact-form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto; 
    padding: 20px;
    margin-top: 50px;
    background-color: #fff; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    line-height: 1.5; 
}

#contact-form input,
#contact-form textarea,
#contact-form button {
    width: 100%; 
    display: block; 
    margin-bottom: 15px; 
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
#contact-form input:focus,
#contact-form textarea:focus {
    border-color: #007BFF; 
    outline: none; 
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); 
}

#contact-form button {
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contact-form textarea {
    resize: none; 
    height: 100px; 
}


body.dark-mode #contact-form {
    background-color: #1b1b1b; /* Dark background for dark mode */
    color: #f4f4f4; /* Light text color for contrast */
}

body.dark-mode #contact-form input,
body.dark-mode #contact-form textarea {
    background-color: #292929; /* Dark background for input fields */
    color: #f4f4f4; /* White text color */
    border: 1px solid #444; /* Subtle border for inputs */
}

body.dark-mode #contact-form input::placeholder,
body.dark-mode #contact-form textarea::placeholder {
    color: #888; /* Light gray placeholder text */
}



footer {
    background-color: var(--bg-menu);
    color: var(--text-color-dark);
    width: 100%;
    margin-left: 42px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal, .footer-social {
    flex: 1;
    width: 20%;
}

.footer-legal a {
    display: block;
    padding: 10px 0;
    color: var(--text-color-dark);
    margin-left: 10px;
}

.footer-social a {
    display: inline-block;
    margin: 0 10px;
    margin-left: auto;
    color: var(--text-color-dark);
    font-size: 20px;
    justify-content: center;
}

.footer-logo {
    flex: 3;
}

#footer-logo {
    display: block;
    max-width: 150px;
    max-height: 75px; 
    margin-right: 100px;
    margin-left: auto;
}

.copyright {
    text-align: center;
}



/* Top Button Styles */
#topBtn {
    display: none;              
    position: fixed;            
    bottom: 20px;               
    right: 30px;                
    z-index: 99;                
    border: none;               
    outline: none;              
    background-color: var(--green); 
    color: white;              
    cursor: pointer;            
    padding: 15px;              
    border-radius: 10px;        
    font-size: 18px;            
    transition: background 0.3s;
}

#topBtn:hover {
    background-color: var(--green-dark);
}

.home-button {
    margin-top: 5px;
    margin-left: 5px;
    width: 100px;
    height: 40px;
}

.legal {
    min-height: calc(100vh - 150px);
}






/* Mobile Styles */
@media (max-width: 599px) {
    body {
        overflow-x: hidden;
    }

    main {
        margin-left: 0px;
    }


    #header-logo-light {
        width: 80%;
        height: 80%;
        display: block;
        margin: 10% auto;
}

    #header-logo-dark {
        display: none;
    }

    body.dark-mode #header-logo-light {
        display: none;
    }

    body.dark-mode #header-logo-dark {
        width: 80%;
        height: 80%;
        display: block;
        margin: 10% auto;
    }



    h1, h2 {
        width: 80%;
        margin: 0 auto;
        text-align: center;
    }


    .cookie-banner {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    
    .burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin: 16px;
        cursor: pointer;
        z-index: 1001;
    }
    .burger span {
        height: 4px;
        background: var(--green);
        margin: 6px 0;
        border-radius: 2px;
        transition: 0.3s;
    }

    .burger-menu {
        position: fixed;
        top: 0;
        left: -250px;
        width: 200px;
        height: 100%;
        background: var(--bg-1);
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        padding-top: 60px;
        transition: left 0.3s;
        z-index: 1000;
        display: block;
    }
    .burger-menu.open {
        left: 0;
    }
    .burger-menu ul {
        display: block;
        width: 100%;
    }
    .burger-menu li {
        padding: 16px;
        border-bottom: 1px solid #eee;
        line-height: normal;
    }
    .burger-menu a {
        font-size: 18px;
    }

    .stats-container {
        flex-direction: column;
        gap: 18px;
    }
    .stat-box {
        width: 55%;
        margin: 0 auto;
    }


    .overlay {
        display: none;
        position: fixed;
        top: 0; left: 0;
        width: 100vw; height: 100vh;
        background: rgba(0,0,0,0.3);
        z-index: 999;
    }
    .overlay.open {
        display: block;
    }

    .nav, .navtxt {
        display: none;
    }




    #contact-form {
        margin: 0 auto;
        width: 85%;
        max-width: 600px;
        padding: 10px;
        margin-top: 50px;
    }

    footer {
        width: 100%;
        margin-left: 0px;
    }

    .footer-links {
        margin-left: 10px;
    }

    .footer-social {
        flex: 0.3;
    }

    .footer-logo {
        display: none;
    }

    #footer-logo {
        margin-right: 20px;
    }



    /*Dark Mode Styles for Mobile*/
        body.dark-mode .burger-menu {
        position: fixed;
        top: 0;
        left: -250px;
        width: 200px;
        height: 100%;
        background: var(--bgd-1);
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        padding-top: 60px;
        transition: left 0.3s;
        z-index: 1000;
        display: block;
    }
    
    body.dark-mode .burger-menu.open {
        left: 0;
    }

    body.dark-mode .burger-menu a {
        color: var(--text-color-dark);
    }
}
