:root {
    --page-padding: clamp(1.5rem, 12vw, 20rem); 
    --text-50: hsl(30, 31%, 95%);
    --text-100: hsl(32, 33%, 90%);
    --text-200: hsl(30, 33%, 80%);
    --text-300: hsl(31, 33%, 70%);
    --text-400: hsl(30, 33%, 60%);
    --text-500: hsl(30, 33%, 50%);
    --text-600: hsl(30, 33%, 40%);
    --text-700: hsl(31, 33%, 30%);
    --text-800: hsl(30, 33%, 20%);
    --text-900: hsl(32, 33%, 10%);
    --text-950: hsl(30, 31%, 5%);
    --background-50: hsl(26, 28%, 95%);
    --background-100: hsl(32, 29%, 90%);
    --background-200: hsl(30, 29%, 80%);
    --background-300: hsl(31, 29%, 70%);
    --background-400: hsl(30, 29%, 60%);
    --background-500: hsl(30, 29%, 50%);
    --background-600: hsl(30, 29%, 40%);
    --background-700: hsl(31, 29%, 30%);
    --background-800: hsl(30, 29%, 20%);
    --background-900: hsl(32, 29%, 10%);
    --background-950: hsl(34, 28%, 5%);
    --secondary-50: hsl(28, 100%, 95%);
    --secondary-100: hsl(27, 100%, 90%);
    --secondary-200: hsl(27, 100%, 80%);
    --secondary-300: hsl(27, 100%, 70%);
    --secondary-400: hsl(27, 100%, 60%);
    --secondary-500: hsl(27, 100%, 50%);
    --secondary-600: hsl(27, 100%, 40%);
    --secondary-700: hsl(27, 100%, 30%);
    --secondary-800: hsl(27, 100%, 20%);
    --secondary-900: hsl(27, 100%, 10%);
    --secondary-950: hsl(25, 100%, 5%);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth; 
}

body {
    font-family: "Poppins", sans-serif;
    min-height: 100vh; 
    background-color: var(--background-50);
    color: var(--text-950);
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3 {
    line-height: 1.2; 
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); 
    font-weight: 700;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem); 
    font-weight: 600;
    margin-bottom: 1rem;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 1.5rem); 
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--secondary-600);
    text-decoration: none; 
}

a:hover {
    text-decoration: underline; 
}

img {
    max-width: 100%; 
    height: auto;   
    display: block; 
}

header {
    width: 100%;
    position: relative; 
}

.header_animation {
    display: flex;
    align-items: center;
    min-height: 60vh; 
    padding-top: 3rem;    
    padding-bottom: 5rem; 
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    background: var(--background-600); 
    animation: header_reveal .9s forwards ease-out; 
    opacity: 0; 
    position: relative; 
}

.hero_content_wrapper {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    width: 100%;
    max-width: 85rem; 
    margin: 0 auto; 
    padding-left: var(--page-padding); 
    padding-right: var(--page-padding);
}


@keyframes header_reveal {
    0% {
        clip-path: polygon(0 0, 100% 0, 100% 20%, 0 35%); 
        transform: translateY(-30vh); 
        opacity: 0;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        transform: translateY(0);
        opacity: 1;
    }
}

.hero_img {
    position: absolute; 
    bottom: 0; 
    right: clamp(10rem, 22vw, 22rem); 
    height: 58vh; 
    max-height: 480px; 
    filter: drop-shadow(0 10px 125px var(--background-500)); 
    user-select: none;
    opacity: 0; 
    animation: img_fade_in 1.2s forwards .7s; 
    z-index: 0; 
}

@keyframes img_fade_in {
    0% {
        transform: translateY(100px) scale(0.85); 
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.hero_text {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    max-width: 50rem;   
    z-index: 1; 
    position: relative; 
}

.hero_text h1 {
    color: var(--text-50); 
    letter-spacing: 0.05rem; 
    opacity: 0;
    animation: text_fade_in .6s forwards .9s; 
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2); 
}

.hero_text p {
    color: var(--text-100); 
    font-size: clamp(1.1rem, 2.5vw, 1.4rem); 
    font-weight: 400; 
    opacity: 0;
    animation: text_fade_in .6s forwards 1.1s;
    margin-top: 1.5rem; 
    max-width: 40rem; 
}

@keyframes text_fade_in { 
    0% {
        transform: translateY(40px); 
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero_social_box {
    display: flex;
    align-items: center;
    gap: 1.2rem; 
    margin-top: 2rem; 
}

.hero_social_box a {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%; 
    width: 3.2rem;  
    height: 3.2rem; 
    border: 2px solid var(--text-200); 
    background: transparent; 
    transition: transform .2s ease, background-color .3s ease, border-color .3s ease; 
    opacity: 0; 
}

.hero_social_box img {
    height: 1.6rem; 
    filter: brightness(0) saturate(100%) invert(90%) sepia(10%) saturate(100%) hue-rotate(180deg) brightness(110%) contrast(95%);
}

.hero_social_box a:hover {
    transform: scale(1.15); 
    background-color: var(--text-50); 
    border-color: var(--text-50);
}
.hero_social_box a:hover img {
    filter: brightness(0) saturate(100%) invert(20%) sepia(10%) saturate(1500%) hue-rotate(200deg) brightness(90%) contrast(90%); 
}


.hero_social_box a:nth-child(1) { animation: social_icon_fade_in .5s forwards 1.2s; } 
.hero_social_box a:nth-child(2) { animation: social_icon_fade_in .5s forwards 1.3s; }
.hero_social_box a:nth-child(3) { animation: social_icon_fade_in .5s forwards 1.4s; }
.hero_social_box a:nth-child(4) { animation: social_icon_fade_in .5s forwards 1.5s; }

@keyframes social_icon_fade_in { 
    0% {
        transform: scale(0.7) translateY(10px);
        opacity: 0;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.scroll-fade-in {
    opacity: 0;
    transform: translateY(50px); 
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

footer.scroll-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}

footer.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.besonders {
    padding-top: 5rem; 
    padding-bottom: 5rem;
    display: flex;
    flex-direction: column; 
    gap: 3rem; 
}

.content_wrapper {
    width: 100%;
    max-width: 90rem; 
    margin: 0 auto;
    padding-left: var(--page-padding); 
    padding-right: var(--page-padding);
}

.besonders_content_wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.section_titel {
    min-width: initial; 
    margin-bottom: 0; 
    text-align: center; 
}

.section_container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 2.5rem; 
    max-width: 75rem; 
    width: 100%; 
    margin-left: auto;  
    margin-right: auto;
}

.text_item {
    width: auto; 
    background-color: var(--background-100); 
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.text_item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.text_item h3 {
    color: var(--secondary-700); 
}

.balken {
    padding-top: 4rem;
    padding-bottom: 4rem;
    background: var(--background-200);
    text-align: center; 
}

.balken_content_wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 2rem;
}

.balken_content_wrapper div {
    position: relative;
    flex-basis: 200px; 
    flex-grow: 1;      
    padding: 1rem; 
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.balken_content_wrapper div:hover {
    background-color: var(--background-300);
    transform: scale(1.03);
}

.balken p {
    font-size: clamp(2rem, 4vw, 3rem); 
    font-weight: 700; 
    color: var(--secondary-600); 
    margin-bottom: 0.25rem; 
}

.balken h3 {
    font-weight: 500; 
    color: var(--text-800); 
    text-transform: uppercase;
    font-size: clamp(0.8rem, 2vw, 1rem); 
    margin-bottom: 0; 
}

.section2 {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: var(--background-100); 
}

.section2_container {
    display: flex;
    flex-direction: column; 
    align-items: center; 
    gap: 3rem;
    max-width: 75rem; 
    margin-left: auto;
    margin-right: auto;
}

.section2_container img {
    height: auto; 
    width: 100%; 
    max-width: 320px; 
    border: 8px solid var(--background-50); 
    outline: 4px solid var(--background-300); 
    border-radius: 25px; 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
    transition: transform 0.3s ease;
}
.section2_container img:hover {
    transform: scale(1.05);
}

.section2_text_container {
    margin-top: 0; 
    display: flex;
    flex-direction: column;
    gap: 1.5rem; 
    text-align: center; 
}
.section2_text_container h2 {
    color: var(--secondary-700);
}

.arbeitsweise {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--background-50);
}

.arbeitsweise_container {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.arbeitsweise_container h2 {
    margin-bottom: 2.5rem;
    color: var(--secondary-700);
}
.arbeitsweise_schritte {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: left;
}
.schritt {
    background-color: var(--background-100);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.schritt:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
    background-color: var(--background-200);
}
.schritt h3 {
    color: var(--text-800);
    margin-bottom: 0.8rem;
}
.schritt p {
    font-size: 0.95rem;
    color: var(--text-700);
}

.kundenstimmen {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background-color: var(--background-50);
}
.kundenstimmen_container {
    max-width: 75rem;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.kundenstimmen_container h2 {
    margin-bottom: 2.5rem;
    color: var(--text-800);
}
.stimmen_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.stimme {
    background-color: var(--background-200);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stimme:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.stimme blockquote {
    font-style: italic;
    color: var(--text-700);
    margin-bottom: 1rem;
    border-left: 3px solid var(--secondary-500);
    padding-left: 1rem;
}
.stimme figcaption {
    font-weight: 600;
    color: var(--text-800);
    text-align: right;
}


footer {
    width: 100%;
    position: relative;
    clip-path: polygon(0px 20%, 100% 0px, 100% 100%, 0px 100%);
    background: var(--background-600); 
    display: flex;
    flex-direction: column; 
    padding-top: 8rem; 
    padding-bottom: 4rem;
    gap: 3rem; 
    color: var(--text-100); 
}

.footer_content_wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer_cat_titel {
    font-size: 1.4rem; 
    font-weight: 700; 
    color: var(--text-50); 
    margin-bottom: 0.8rem; 
}

.footer_cat_box {
    font-size: 0.95rem; 
}

.footer_cat_box_legal {
    display: flex;
    flex-direction: column;
    gap: 0.6rem; 
}

.footer_cat_box_legal a {
    color: var(--text-100); 
    padding: 0.3rem 0.6rem; 
    border-radius: 6px; 
    transition: background-color 0.2s ease, color 0.2s ease;
}

.footer_cat_box_legal a:hover {
    background-color: var(--secondary-500); 
    color: var(--text-50);
    text-decoration: none; 
}

.impressum,
.datenschutz {
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.impressum h1, .datenschutz h1 {
    color: var(--secondary-700);
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 768px) {
    .besonders_content_wrapper {
        flex-direction: row;
        gap: 5rem;
        align-items: flex-start; 
    }
    .section_titel {
        position: sticky;
        top: 20px;
        height: fit-content;
        min-width: 30%; 
        margin-bottom: 0;
        text-align: left; 
    }
    .section2_container {
        flex-direction: row;
        text-align: left;
        align-items: center; 
    }
    .section2_text_container {
        text-align: left;
    }
    .balken_content_wrapper div:not(:last-child)::after {
        display: block; 
    }
    
    .footer_content_wrapper {
        flex-direction: row;
        justify-content: space-between;
        gap: 5rem;
    }
    footer {
        padding-top: 10rem; 
    }
}

@media screen and (min-width: 1024px) {
    .header_animation {
        min-height: 65vh; 
    }
    .hero_img {
            height: 55vh; 
            max-height: 600px; 
    }
}

@media screen and (max-width: 999px) { 
    .section_titel {
        background-color: transparent; 
        padding-top: 1rem; 
        padding-bottom: 1rem;
        position: static; 
    }
    .header_animation { 
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        padding-bottom: 3rem;
    }
    .hero_content_wrapper {
        flex-direction: column; 
        text-align: center;
        padding-left: 1.5rem; 
        padding-right: 1.5rem;
    }
    .hero_img {
        position: relative; 
        right: auto;
        bottom: auto;
        margin: 2rem auto 0; 
        height: auto;
        max-width: 70%;
    }
    .hero_text {
        text-align: center; 
        max-width: 100%; 
    }
    .hero_text p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero_social_box {
        justify-content: center; 
    }
    .content_wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .besonders_content_wrapper {
            flex-direction: column;
    }
}

@media screen and (min-width: 1921px) {
    .hero_content_wrapper {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
        .content_wrapper {
        padding-left: 2rem; 
        padding-right: 2rem;
    }
    .balken_content_wrapper div {
        flex-grow: 0; 
        flex-basis: 250px; 
    }
}