:root {
    /* Color variables */
    --bg1: #fefaef;
    --accent: #000000;
    --txt-color: #2f4045;
    --txt-color-2: #ffffff;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    background-color: var(--bg1);
    color: var(--txt-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-weight: bold;
    text-align: center;
    color: var(--txt-color);
}


h1, h2 {
    font-size: 32px;
}

p {
    line-height: 1.6;
    text-align: center;
    font-size: 22px;
    color: var(--txt-color);
}

button {
    background-color: var(--accent);
    color: var(--txt-color-2);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 200px;
}



/* Navigation styles */
.nav-container {
    background-color: var(--bg1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100px;
}

.nav {
    top: 0;
    height: 100px;
    width: 100%;
    display: flex;
    flex: 2;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
}

.nav-txt {
    text-decoration: none;
    color: var(--txt-color);
    font-weight: bold;
}

.nav-txt:hover {
    color: #555555;
}

.nav-txt:active {
    color: #000000;
}

.nav-logo {
    display: flex;
    align-items: center;
    margin-left: 20px;
    height: 100%;
    width: auto;
}

.nav-logo img {
    max-height: 100px;
    height: auto;
    width: auto;
    display: block;
}

.burger-nav, .burger-logo {
    display: none;
}


/* Main content styles */
main {
    margin-top: 0;
    flex: 1;
}

section {
    display: flex;
    flex-direction: column; 
    justify-content: center; 
    align-items: center;     
}

/* Hero / fullscreen background under header */
.hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 75px); /* full viewport minus header height */
    margin-top: 0; /* sits directly under header */
    background-image: url('../images/logo_v2.png');
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.hero::before {
    /* optional dark overlay for contrast */
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.25);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--txt-color-2);
    padding: 20px;
    margin-top: 600px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
    text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.hero h1, .hero p {
    color: var(--txt-color-2);
}

/* Make hero smaller on very small screens so content below isn't pushed too far */
@media (max-height: 600px) {
    .hero { height: calc(60vh - 60px); }
}





 /* Compare section styles */


/* Before/After compare styles (moved from styles.css) */
.compare-section { padding: 40px 20px; background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent); }
.compare-section .container { max-width: 1000px; margin: 0 auto; }
.compare-section h2 { text-align:center; margin-bottom:8px; }
.compare-desc { text-align:center; color:#666; margin-bottom:20px; }

.ba-compare {
    position: relative;
    user-select: none;
    overflow: hidden;
    background: #f5f5f5;
    max-height: 600px;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 16 / 9; /* keeps container visible and sizable; adjust if you want a different ratio */
}

/* Make both layers full-size and cover the container */
.ba-before,
.ba-after-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-after-wrapper {
    width: 100%; /* keep full size; we'll mask with clip-path so background doesn't re-calc */
    height: 100%;
    overflow: visible;
    /* show the right-side as the 'after' layer by default (50% on the right) */
    -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.ba-before { z-index: 1; }
.ba-after-wrapper { z-index: 2; }
.ba-before img,
.ba-after-wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* ensure centered crop */
}
.ba-handle { z-index: 6; position: absolute; top:0; left:50%; transform:translateX(-50%); height:100%; width:34px; z-index:5; display:flex; align-items:center; justify-content:center; cursor:ew-resize; touch-action:none; }
.ba-handle-line { width:2px; height:100%; background: rgba(255,255,255,0.95); box-shadow: 0 0 0 1px rgba(0,0,0,0.12) inset; }
.ba-handle-circle { position:absolute; left:50%; transform:translateX(-50%); width:18px; height:18px; background:#fff; border-radius:50%; box-shadow:0 2px 6px rgba(0,0,0,0.2); border:2px solid rgba(0,0,0,0.08); }


@media (max-width:700px) { .ba-handle { width:28px } .ba-handle-circle { right:-7px; width:14px; height:14px } }

/* Debug / error indicator */
.ba-error, .ba-size { display: none !important; }





/* Leistungen section styles */

.leistungen-section {
    width: 100%;
    padding: 60px 0px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}

.leistungen-section .container {
    max-width: 1100px;
    margin: 0 auto;
}

.leistungen-header {
    text-align: center;
    margin-bottom: 32px;
    color: var(--txt-color);
}

.leistungen-header p {
    max-width: 820px;
    margin: 8px auto 0;
    color: #555;
}

.leistungen-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.leistung-card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 16px rgba(16,24,40,0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.leistung-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(16,24,40,0.12);
}

.leistung-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #547555;
    color: var(--txt-color-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 14px;
}

.leistung-card h3 {
    margin: 8px 0 10px;
    font-size: 1.1rem;
    color: var(--txt-color);
}

.leistung-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0 0 18px;
    color: var(--txt-color);
}

.leistung-cta {
    margin-top: auto;
    display: inline-block;
    background: var(--accent);
    color: var(--txt-color-2);
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.18s ease, transform 0.18s ease;
}

.leistung-cta:hover {
    background: #222;
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .leistungen-section { padding: 48px 0px; }
    .leistung-card { padding: 18px; }
}

@media (max-width: 480px) {
    .leistungen-header p { padding: 0 8px; }
    .leistung-icon { width: 54px; height: 54px; font-size: 20px; }
}




/* Warum section styles */
.warum-section {
    width: 100%;
    padding: 64px 0px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}

.warum-section .warum-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
    padding: 8px 12px;
}

.warum-section h2 {
    grid-column: 1 / -1;
    color: var(--accent);
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    text-align: center;
}

.warum-section .warum-content p {
    grid-column: 1 / -1;
    color: #444;
    margin: 0 auto 18px;
    max-width: 880px;
    text-align: center;
}


.warum-section .warum-content ul {
    grid-column: 1 / -1;
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 14px 22px;
}

.warum-section .warum-content li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #547555;
    line-height: 1.45;
    font-size: 1rem;
    margin-left: 10px;
}

/* lighter circular badge instead of heavy dark square */
.warum-section .warum-content li i {
    color: #547555;
    background: transparent;
    border: 2px solid rgba(0,0,0,0.08);
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
}

/* subtle tick styling */


/* Layout adjustments for larger screens: put list in two columns */
@media (min-width: 900px) {
    .warum-section .warum-content ul {
        grid-template-columns: 1fr 1fr;
        align-items: start;
        justify-items: start;
    }
}

/* Stack on smaller screens */
@media (max-width: 899px) {
    .warum-section .warum-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    
    .warum-section .warum-content ul {
        justify-self: center;
        max-width: 560px; 
        width: 100%;
        padding: 0 12px;
        box-sizing: border-box;
        text-align: left;
    }

    .warum-section .warum-content li {
        justify-content: flex-start; 
        margin-left: 0; 
    }

    .warum-section .warum-content li i {
        margin-right: 12px; 
        flex-shrink: 0;
    }
}



/* Partner section styles */
.partner-section {
    width: 100%;
    padding: 64px 0px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
}

.partner-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.partner-section h2 {
    color: var(--accent);
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.6vw, 2rem);
    margin-bottom: 60px;
}
/* Partner list: show logos side-by-side and remove bullets */
.partner-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.partner-list li {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    /* fixed box so all logos appear the same size */
    width: 220px;
    height: 80px;
    box-sizing: border-box;
    background: transparent;
}

.partner-list li a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.partner-list li a:focus {
    outline: 3px solid rgba(84,117,85,0.25);
    outline-offset: 2px;
}

/* center image inside the box and make it scale uniformly */
.partner-list li img {
    max-height: 64px;
    max-width: 90%;
    width: auto;
    height: auto;
    min-width: 48px; /* ensure small logos remain visible */
    display: block;
    object-fit: contain;
    margin: 0 auto;
    visibility: visible;
    opacity: 1;
    background: transparent;
}
@media (max-width: 480px) {
    .partner-list {
        gap: 12px;
    }
    .partner-list img {
        max-height: 48px;
    }
}






/* Kontakt section styles */
.kontakt-section {
    width: 100%;
    padding: 64px 0px;
    background: linear-gradient(180deg, rgba(0,0,0,0.02), transparent);
    display: flex;
    flex-direction: row;
}

.kontakt-container {
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.kontakt-content {
    display: flex;
    gap: 24px;
    padding: 0 12px;
}

.kontakt-section .container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.kontakt-section h2 {
    color: var(--accent);
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.6vw, 2rem);
}

.kontakt-section p {
    color: #444;
    margin: 0 auto 32px;
    max-width: 680px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.kontakt-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--txt-color-2);
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background 0.18s ease, transform 0.18s ease;
}

.kontakt-cta:hover {
    background: #222;
    transform: translateY(-2px);
}


/* Contact form styles */
.kontakt-form {
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.kontakt-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--txt-color);
}

.kontakt-form input,
.kontakt-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Quicksand', Arial, sans-serif;
    box-sizing: border-box;
    transition: border-color 0.2s;
    margin-bottom: 10px;
}

.kontakt-form input:focus,
.kontakt-form textarea:focus {
    border-color: var(--accent);
    outline: none;
}

.kontakt-form button {
    background: var(--accent);
    color: var(--txt-color-2);
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.kontakt-form button:hover {
    background: #222;
    transform: translateY(-2px);
}


@media (max-width: 700px) {
    .kontakt-container { flex-direction: column; }
}



/* Footer styles */
footer {
    background-color: var(--accent);
    color: var(--txt-color-2);
    min-height: 75px;
    width: 100%;
    margin-top: auto;
}

.footer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.footer-left, footer .footer-right {
    flex: 1;
    text-align: center;
}

.footer-left, .footer-right a {
    text-decoration: none;
    color: var(--txt-color-light);
}

.footer-left a, .footer-right a,
.footer-container p,
.footer-bottom p {
    font-size: 18px;
    color: var(--txt-color-2);
}

.footer-bottom {
    text-align: center;
}




/* Overlay styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}








/* Mobile styles */
@media (max-width: 700px) {
    body {
        overflow-x: hidden;
    }


    /* Navigation styles */
    .nav-container {
        display: none;
    }

    .burger-container {
        display: flex;
    }

    .burger-nav {
        display: flex;
        flex: 1;
    }

    .burger-logo {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1;
        margin-right: 20px;
    }

    .burger-logo .logo {
        max-height: 70px; 
        height: auto;
        width: auto;
        display: block;
        object-fit: contain;
        margin: 0;
    }

    .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(--accent);
        margin: 6px 0;
        border-radius: 2px;
        transition: 0.3s;
    }

    .burger-menu {
        position: fixed;
        top: 0;
        left: -250px;
        width: 200px;
        height: 100%;
        background: var(--bg1);
        box-shadow: 2px 0 12px rgba(0,0,0,0.1);
        padding-top: 60px;
        transition: left 0.3s;
        z-index: 1000;
        display: block;
        margin-top: 0px;
        list-style: none;
    }
    .burger-menu.open {
        left: 0;
    }
    .burger-menu ul {
        display: block;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }
    .burger-menu li {
        padding: 16px;
        border-bottom: 1px solid #eee;
        line-height: normal;
    }
    .burger-menu a {
        font-size: 18px;
        text-decoration: none;
        color: var(--txt-color);
    }

    .hero {
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    .hero-content {
        margin-top: 500px;
    }
}





/* TEMPORARY STYLES FOR TESTING PURPOSES ONLY */

/* Utility: center an image horizontally and make it responsive */
.center-image {
    display: block;
    margin: 0 auto; /* centers horizontally */
    width: auto;
    height: 600px; /* visual height used in the design */
    object-fit: cover;
}

@media (max-width: 700px) {
    .center-image {
        height: auto; /* let image scale down on small screens */
        max-width: 100%;
        width: auto;
    }
}
