/* Gemeinsamer Style für rechtliche Unterseiten */
.legal-page {
    background: var(--green100);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 40px 0;
    
}

/* ================================
   GLOBALE STYLES & RESET
   ================================ */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #f5576c;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 15px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    
    /* Colors */
    --green100: #344E41;
    --green75: #3A5A40;
    --green50: 588157;
    --green25: #A3B18A;
    --green00: #DAD7CD;
    --red100: #D44237;
    --text-primary: white;
    --text-secondary: var(--green00);
    --text-green: var(--green100);
}


html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Work Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.1;
    background-color: var(--green100);
}

/* Background image layer behind header and hero; place image in images/Background_Wald.png */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url("../images/Background_Wald.png");
    background-position: center -215px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    transform-origin: top center;
}

/* If you prefer the image only behind the top (header+hero), limit its height with max-height */
@media (min-height: 700px) {
    body::before { height: 700px; }
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */

.container {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 0px;
}

/* ================================
   HEADER & NAVIGATION
   ================================ */

.header {
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.logo {
    position: relative;
    display: inline-block;
}

.logo-default,
.logo-hover {
    display: block;
    height: 48px;
    width: auto;
    transition: opacity 0.25s ease;
}

.logo-hover {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.logo:hover .logo-hover {
    opacity: 1;
}

.logo:hover .logo-default {
    opacity: 0;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    background: transparent;
    color: white;
    /*padding: 100px 40px;*/
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    max-width: 1200px;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 80px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: 80px;
    font-weight: 400;
    font-style: normal;
    margin-bottom: 24px; 
    line-height: 1;
    letter-spacing: -6.4px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 380;
    font-style: normal;
    margin-bottom: 60px; 
    line-height: 1.1;
    letter-spacing: -0.72px;
}

.hero-image {
    background-color: #d1d5db;
    border-radius: 20px;
    width: 100%;
    height: 240px;
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .hero-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .hero-content {
        text-align: left;
        max-width: auto;
    }
    .hero-image {
        flex: 1;
        max-width: 400px;
        height: 300px;
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================
   BUTTONS
   ================================ */

.btn {
    padding: 12px;
    border: none;
    border-radius: 60px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}



.btn-primary-light {
    background: #ffffff;
    color: #344E41;
   /* box-shadow: 0 4px 15px rgba(52, 78, 65, 0.2); */
    display: inline-block;
}

.btn-primary-light:hover {
    transform: translateY(-3px);
    background: #C0C9AF;
    color: #344E41;
   /* box-shadow: 0 6px 20px rgba(52, 78, 65, 0.3); */
}

.btn-primary-light:active {
    transform: translateY(-1px);
}

.btn-small {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-tertiary {
    padding: 8px 12px;
    color: #ffffff;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
    text-align: center;
}

.btn-tertiary:hover {
    color: #C0C9AF;
    transform: translateY(-2px);
}

/* ================================
   COMMUNICATION / CARDS SECTION
   ================================ */

.communication {
    padding: 80px 20px;
   background: linear-gradient(135deg, rgba(27, 42, 34, 0.50) 4.95%, rgba(78, 115, 97, 0.50) 38.77%, rgba(78, 115, 97, 0.50) 63.45%, rgba(30, 40, 35, 0.50) 96.35%), linear-gradient(223deg, #1B2621 9.97%, #486959 36.29%, #486959 61.82%, #141C18 89.74%);
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    color: var(--text-primary);
    text-align: center;
    /* Heading 2 */
    font-size: 60px;
    font-style: normal;
    max-width: 1200px;
    font-weight: 350;
    line-height: 105%; /* 63px */
    letter-spacing: -4.2px;
    margin: 32px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    border-radius: 2px;
}

/* communication header styling */
.communication-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--text-primary);
    font-size: 14px;
    font-style: normal;
    max-width: 1200px;
    font-weight: 350;
    line-height: 100%; /* 15px */
    letter-spacing: -0.3px;
}

.section-note {
    color: var(--text-primary);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    /* Paragraph */
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 150%; /* 17.6px */
    letter-spacing: -0.72px;
    margin-bottom: 100px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card.card-large {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 400px;
    color: #fff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.card.card-large::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
}

.card-content {
    position: relative;
    padding: 24px;
    z-index: 1;
}

.communication .cards-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 60px;
}



/* ====== service-card variant with replaceable icons/text/image ====== */
.service-card {
    position: relative;
    border-radius: 20px;
    border: 2px solid white;
    overflow: hidden;
    width: 402px;
    height: 614px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.service-overlay {
    content: '';
    position: absolute;
    inset: 0;
}

.service-content {
    position: relative;
    padding: 32px;
    z-index: 1;
}

.service-title {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 46px;
    line-height: 54px;
    letter-spacing: -0.04em;
    margin: 0 0 24px;
}

.service-features {
    list-style: none;
    padding: 12px 24px !important;
    margin: 0 0 0px 0 !important;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start !important;
    text-align: left !important;
}

.service-icon {
    display: inline-block;
    width: auto;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 0px;
}

/* make cards responsive */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================
   CONTENT SECTIONS
   ================================ */

/* ================================
   FOOTER
   ================================ */

.footer {
    background: var(--green100);
    color: var(--green100);
    padding: 32px 60px;
    height: auto;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: -0.54px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: auto;
    margin-bottom: -20px;
    align-items: start;
}

/* specific footer column helpers */
.footer-left {
    text-align: left;
}
.footer-left p {
    color: var(--text-primary);
    margin-top: 100px;
}

.footer-year {
    font-weight: 300;
}

.footer-left pp{
    color: var(--text-secondary);
}

/* partner heading in center column */
.footer-center .footer-title {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: -0.54px;
    color: var(--text-primary);
}

.footer-center {
    text-align: center;
    font-size: 14px;
}
.footer-center .footer-partner {
    display: inline-block;
    margin-top: 10px;
    color: var(--text-secondary);
    text-decoration: underline;
}

.footer-right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.footer-right .footer-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.footer-right .footer-nav a {
    text-decoration: none;
}

.footer-bottom {
    height: 20px;
    text-align: right;
    bottom: 0;
    font-weight: 100;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.footer-bottom p {
    display: flex;
    justify-content: center;
    gap: 24px; /* Abstand zwischen den Elementen */
    flex-wrap: wrap;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    justify-content: flex-end;
}


.footer-bottom-links {
    display: flex;
    gap: 16px;
    align-items: center;
}
.footer-bottom {
    text-align: center;
}
/* Footer-bottom links as plain text */
.footer-bottom a {
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    cursor: pointer;
}

.logo-img-footer {
    height: 20px;
    width: auto;
    display: block;
}

/* ================================
   RESPONSIVE DESIGN - TABLET
   ================================ */

@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-list {
        gap: 20px;
        justify-content: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero {
        padding: 80px 20px;
        min-height: 400px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .communication {
        padding: 60px 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 20px;
    }
}

/* ================================
   RESPONSIVE DESIGN - MOBILE
   ================================ */

@media (max-width: 480px) {
                .header {
                    position: static;
                }

                .service-features {
                    align-items: flex-start !important;
                    text-align: left !important;
                    padding-left: 0 !important;
                    margin-left: 0 !important;
                }
            .card {
                width: 343px !important;
                max-width: 343px !important;
                min-width: 343px !important;
                height: auto !important;
                margin: 0 auto 20px auto !important;
                box-sizing: border-box;
            }
        .hero-image {
            width: 343px !important;
            max-width: 343px !important;
            min-width: 343px !important;
            height: auto !important;
            box-sizing: border-box;
        }
    .logo h1 {
        font-size: 22px;
    }

    .logo-img {
        height: 36px;
        width: auto;
    }

    .nav-list {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero-title {
        font-size: 24px;
        font-weight: 400;
        font-style: normal;
        line-height: 1.2;
        letter-spacing: -1.5px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
        font-weight: 350;
        font-style: normal;
        line-height: 1.3;
        letter-spacing: -1px;
        margin-bottom: 32px;
    }

    .hero {
        width: 343px !important;
        max-width: 343px !important;
        min-width: 343px !important;
        height: auto !important;
        box-sizing: border-box;
    }

    .section-title {
        font-size: 24px;
        font-weight: 350;
        font-style: normal;
        line-height: 1.3;
        letter-spacing: -1px;
        margin-bottom: 32px;
    }

    .section-title::after {
        width: 60px;
    }

    .section-subtitle {
        font-size: 14px;
        font-weight: 200;
        font-style: normal;
        line-height: 1.3;
        letter-spacing: 0px;
        margin-bottom: 32px;
    }   

    .section-note {
        font-size: 14px;
            font-weight: 350;
            font-style: normal;
            line-height: 1.3;
            letter-spacing: -0.5px;
            margin-bottom: 32px;
    }

    .cards-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        justify-content: unset !important;
        align-items: unset !important;
        margin-bottom: 0 !important;
    }

    .communication {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 100vw !important;
        box-sizing: border-box;
    }

    .communication-inner {
        width: 343px;
        max-width: 343px;
        margin: 0 auto;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 15px;
    }

    .card-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .card-description {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .service-card {
        width: 300px !important;
        max-width: 300px !important;
        min-width: 300px !important;
        height: 458px !important;
        margin: 0 auto 20px auto !important;
        box-sizing: border-box;
    }
    
    .service-title {
    font-family: 'Work Sans';
    font-style: normal;
    font-weight: 500;
    font-size: 32px;
    line-height: 130%;
    letter-spacing: -0.04em;
    margin: 0 0 12px;
    text-align: left !important;
}

.service-features {
    list-style: none;
    padding: 0px 0px !important;
    margin: 0 0 0px 0 !important;
    display: flex;
    font-weight: 300;
    font-size: 16px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start !important;
    text-align: left !important;
}

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        font-size: 14px;
    }

    .footer-left {
        text-align: left;
        margin-bottom: 0px;
        order: 1;
    }

    .footer-left p {
        margin-top: 20px;
    }

    .footer-center {
        margin-top: 40px;
        text-align: center;
        order: 3;
    }

    .footer-right {
        text-align: center;
        align-items: center;
        order: 2;
    }

    .footer-right .footer-nav {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .footer-right .footer-nav a {
        width: 100%;
    }

    .footer-right .footer-nav a:nth-child(1),
    .footer-right .footer-nav a:nth-child(2) {
        display: none;
    }

    .footer-bottom-inner {
        justify-content: center;
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        margin-top: 120px;
    }

    .footer {
        padding: 40px 15px 15px;
        margin-top: 40px;
    }

    .footer-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }

}

/* ================================
   ACCESSIBILITY
   ================================ */

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
