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

body {
    font-family: system-ui, Arial;
    background: #fff;
    color: #000;
}

/*--------Scrollen im mobilen Menü unterbinden-----------*/
/* Scrollen verhindern, wenn Mobile-Menü offen ist */
body.menu-open {
    overflow: hidden;
    height: 100vh;
    touch-action: none;
}


/* iOS-Fallback */
body.menu-open {
    position: fixed;
    width: 100%;
}

/* ------------------------------------------------------ */
/* Buttons auf Website    */
/* ------------------------------------------------------ */

.kontakt-button {
    color: white;
    background-color: black;
    padding: 16px 80px;
    display: inline-block;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 16px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
}

.kontakt-button:hover {
    background-color: darkgray;
}

.button-icon {
    height: 24px;
    margin-right: 4px;
}

.main-img {
    height: 700px;
}


/* ---------------------------------------- */
/* --- Nach-oben-Pfeil --- */
/* ---------------------------------------- */
#backToTop {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: black;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 0rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    z-index: 1001;
}

#backToTop:hover {
    transform: scale(1.15);
    background: #333;
}

/* sichtbar, wenn “active” Klasse gesetzt */
#backToTop.active {
    opacity: 1;
    visibility: visible;
}



/* Portfolio Preview Animation */
.preview-item {
    opacity: 0; /*unsichtbar*/
    transform: translateY(30px);
    transition: transform 0.6s ease, opacity 0.6s ease;
    will-change: transform, opacity; /* Performance & flackerfrei */
}

.preview-item.visible {
    opacity: 1; /*sichtbar*/
    transform: translateY(0);
}

.preview-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    width: 100%;
    height: auto;
}

.preview-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.01);
    transition: transform .6s ease, filter .6s ease;
    display: block;
    filter: brightness(1);
}

.preview-image:hover img {
    transform: scale(1.09);
    filter: brightness(.8);
}

.preview-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.10);
    opacity: 0;
    transition: opacity .6s ease;
    pointer-events: none;
    z-index: 1;
}

.preview-image:hover::after {
    opacity: 1;
}

.preview-text {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    z-index: 2;
}

.preview-button {
    display: inline-block;
    margin-top: .6rem;
    padding: .4rem 1rem;
    color: white;
    background: black;
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.preview-button span {
    position: relative;
    z-index: 2;
    transition: color .5s ease;
}

.preview-button::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scaleY(0);
    width: 100%;
    height: 100%;
    background: #fff;
    opacity: 0;
    transition: all .5s ease;
    z-index: 1;
}

.preview-button:hover::before {
    transform: translate(-50%, -50%) scaleY(1);
    opacity: 1;
}

.preview-button:hover span {
    color: #000;
}

/*--------------------------------*/
/* LIGHTBOX */
/*--------------------------------*/

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1010;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: 90%;
    max-height: 85%;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 3rem;
    right: 2rem;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    user-select: none;
}


/*----------------------- Desktop breit -----------------------*/

@media  (min-width:1300px) {

    .header-mobile { /* Mobile Header verstecken */
        display: none;
    }  
   
    .header-desktop {
        width: 100%;
        background: #fff;
        padding: 2.8rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid #e5e5e5;
    }

    .logo-desktop {
        display: flex;
        justify-content: left; /* Immer links */
        align-items: center;
    }

    .logo-desktop img,
    .social-desktop{
        height: 38px;
        width: auto;

    }

    .social-desktop{
        display: flex;
        justify-content: right; /* Immer links */
        align-items: center;
    }

    .social-desktop img{
        height: 38px;
        width: auto;
        margin-left: 5rem;
    }


    /* Navigation Container */
    .main-nav {
        display: flex;
        gap: 3rem;
        position: relative;
    }

    /* Basis Styling der Nav Links */
    .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        line-height: 1;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 0 .8rem;
        color: #000;
        overflow: hidden;
    }

    .nav-link span {
        position: relative;
        z-index: 1;
        display: inline-block;
        transition: color .5s ease;
    }

    .nav-link::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scaleY(0);
        transform-origin: center;
        width: 100%;
        height: 100%;
        border: 2px solid #000;
        border-radius: 4px;
        background: #000;
        opacity: 0;
        transition: transform .5s ease, opacity .5s ease;
        pointer-events: none;
        z-index: 0;
    }

    .nav-link.active::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-link.active span {
        color: #fff;
    }

    .nav-link:hover::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-link:hover span {
        color: #fff;
    }


    /*------------------------------------*/
    /* Scrollbar immer anzeigen, auch wenn nicht benoetigt */
    /*------------------------------------*/
    html {
        overflow-y: scroll; /* Scrollbar immer sichtbar, auch wenn nicht benötigt */
    }


    /* ------------------------------------------------------ */
    /* PORTFOLIO Dropdown Menue    */
    /* ------------------------------------------------------ */

    /* Dropdown Container */
    .nav-dropdown {
        position: relative;
        display: flex;         /* wie andere Links */
        align-items: center;   /* vertikal zentriert */
    }

    /* Portfolio Button */
    .nav-dropdown > .nav-link {
        cursor: default;       /* nicht klickbar */
        display: flex;         /* Button-Inhalt wie andere Links */
        align-items: center;   /* vertikal zentriert */
        height: 100%;          /* volle Höhe der Nav */
        transition: color .3s ease;
    }

    /* Portfolio Button Highlight beim Hover */
    .nav-dropdown:hover > .nav-link::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-dropdown:hover > .nav-link span {
        color: #fff; /* Highlight-Farbe beim Hover */
    }

    /* Dropdown Menü */
    .nav-dropdown .dropdown-menu {
        position: absolute;
        top: 100%; /* direkt unter Portfolio */
        left: 0;
        display: flex;
        flex-direction: column;
        background: white; /* Hintergrundfarbe Dropdown-Menü */
        border-radius: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        min-width: 0px;
        width: max-content;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
    }

    /* Dropdown anzeigen */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0); /* sanft nach unten fahren */
        pointer-events: auto;
    }

    /* Dropdown Items */
    .dropdown-item {
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        color: black; /* normale Schriftfarbe */
        padding: .6rem 1rem;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center; /* horizontal zentrieren */
        align-items: center;     /* vertikal zentrieren */
    }

    .dropdown-item span {
        display: inline-block;
        z-index: 1;
        transition: color .5s ease;
    }

    /* Overlay Effekt wie PORTFOLIO */
    .dropdown-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: black; /* Hover-Hintergrund */
        opacity: 0;
        transform: scaleY(0);
        transform-origin: center; /* wie bei PORTFOLIO */
        transition: transform .5s ease, opacity .5s ease;
        z-index: 0;
        pointer-events: none;
    }

    /* Hover-Effekt für Items */
    .dropdown-item:hover::before {
        opacity: 1;
        transform: scaleY(1); /* skaliert auf volle Höhe */
    }


    .dropdown-item:hover span {
        color: white; /* Schriftfarbe beim Hover */
    }

    /* Dropdown beim Hover über Portfolio anzeigen */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }


    /*-----------Landing Page--------------*/
    .landing-page {
        width: 90%;
        max-width: 1200px;
        margin: 6rem auto 0;
    }

    .landing-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 0rem;
    }
        
    .mobile-portfolio-page {
        width: 90%;
        max-width: 1200px;
        margin: 1rem auto 0;
    }

    .mobile-portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
    }

    /* ---------------------------------------- */
    /* Landing Page Portfolio Preview Section   */
    /* ---------------------------------------- */

    .portfolio-preview {
        margin-top: 3rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .preview-grid {
        width: 90%;
        max-width: 2300px;
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 nebeneinander */
        gap: 0;
        margin: 0 auto;
    }

    .preview-grid-zeile2 {
        width: 70%;
        max-width: 1724px;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 4 nebeneinander */
        gap: 0;
        margin: 0 auto;
    }

    .section-divider {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 3rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    .section-divider-desktop {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 1rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    /* ------------------------------------------------------ */
    /* PORTFOLIO (Masonry Grid + Hover + Scroll Animation)    */
    /* ------------------------------------------------------ */

    .portfolio-section {
        width: 90%;
        max-width: 1500px;
        margin: 0 auto;
        padding-top: 3rem;
        position: relative;
        z-index: 9;
    }

    .portfolio-section h1 {
        margin-bottom: 2rem; /* Abstand nach Wunsch anpassen */
        margin-top: 0rem;
        text-align: center;
    }

    .portfolio-section h2.title {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .portfolio-grid {
        column-count: 3;
        column-gap: 0.5rem;
        z-index: 9;
        margin-bottom: 0.5rem;
        
    }

    .portfolio-grid.loaded {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .portfolio-item {
        overflow: hidden;
        break-inside: avoid;
        transform: translateY(30px);
        opacity: 0;
        margin-bottom: 0.5rem;
        transition: transform 0.6s ease, opacity 0.6s ease;
        z-index: 9;
    }

    .portfolio-item.visible {
        transform: translateY(0);
        opacity: 1;
        z-index: 9;
    }

    .portfolio-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
        z-index: 9;
        transform: scale(1.01);
    }

    .portfolio-item:hover img {
        transform: scale(1.06);
        z-index: 9;
    }

    /*---------------------------------------*/
    /* --- Rezensionen / Kundenmeinungen --- */
    /*---------------------------------------*/

    .rezensionen-section {
        width: calc(90% + 4rem);   /* 2rem links + 2rem rechts Erweiterung */
        max-width: calc(800px + 4rem);
        margin: 3rem auto;
        padding: 2rem;             /* graue Fläche um 2rem nach innen vergrößern */
        text-align: center;
        position: relative;
        background-color: white;
        box-sizing: border-box;    /* verhindert, dass padding die Gesamtbreite sprengt */
    }


    .section-title {
        font-size: 2rem;
        font-weight: 600;
        margin: 6rem auto 0 auto;
        text-align: left;
        color: #000;
        margin-bottom: 3rem;
        margin-top: 5rem;
        margin-left: 4rem;
    }


    /* Slider Container */
    .rezension-slideshow {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Wrapper für horizontalen Slide */
    .rezensionen-wrapper {
        display: flex;
        transition: transform 0.6s ease;
    }

    /* Einzelne Rezension – nur eine sichtbar */
    .rezension {
        flex: 0 0 100%;         /* volle Breite des Containers */
        display: flex;
        flex-direction: row;    /* Bild links, Text rechts */
        align-items: center;
        justify-content: flex-start; /* horizontal zentriert */
        gap: 2rem;              /* Abstand zwischen Bild und Text */
        padding: 0 4rem;        /* Abstand zu den Pfeilen */
    }

    /* Bild links */
    .rezension-photo img {
        width: 150px;           /* feste Bildbreite */
        aspect-ratio: 2 / 3;    /* Bildformat */
        object-fit: cover;
        border-radius: 0;
    }

    /* Text rechts */
    .rezension-text-wrapper {
        flex: 1;                /* Text nimmt restliche Breite ein */
        text-align: left;
        min-width: 0;
        max-width: 500px /* Bildbreite + Gap */
    }

    .rezension-text {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
        color: #333;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        hyphens: auto;
    }

    .rezension-author {
        font-weight: 600;
        text-align: left;
        color: #000;
    }

    /* Navigation Pfeile */
    .rez-prev,
    .rez-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        font-weight: bold;
        color: #000;
        cursor: pointer;
        user-select: none;
        background: rgba(255,255,255,0.8);
        padding: 0.7rem 0.7rem;
        border-radius: 5rem;
        z-index: 10;
        transition: 0.3s ease, color 0.3s ease;
    }

    .rez-prev:hover,
    .rez-next:hover {
        background: #000;
        color: #fff;
    }

    .rez-prev { left: 0.5rem; }
    .rez-next { right: 0.5rem; }

    /*--------- About Me --------------*/
    .about {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .about-container {
        display: grid;
        grid-template-areas:
            "image title"
            "image text";
        gap: 2rem;
    }

    /* Grid-Zuordnung */
    .about-title {
        grid-area: title;
        font-size: 2.3rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
        text-align: left;
    }

    .about-image {
        grid-area: image;
        display: flex;
        justify-content: center;
    }

    /* Bild */
    .about-image img {
        max-width: 400px;
        aspect-ratio: 4/3;
        border-radius: 20px;
        object-fit: cover;
        display: block;
    }

    .animate-text {
        opacity: 0;
        transform: translateX(60px);
        animation: slideInText 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    @keyframes slideInText {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .animate-image {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInImage 0.9s ease-out forwards;
    }

    @keyframes slideInImage {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .about-text p {
        margin-bottom: 1rem;
        font-size: 1rem;
        color: #333;
    }

    .about-button {
        display: inline-block;
        margin-top: 2rem;
        margin-left: 0rem;
        padding: 0.7rem 1.2rem;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

    .about-button:hover {
        color: #000;
        background: lightgray;
    }
    
    /*----------Beschreibungstext in Portfolio Section---------*/
    
    .portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
        text-align: center;
    }


    /*--------- Kontakt Seite --------------*/

    .kontakt-preview {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .kontakt-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kontakt-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .kontakt-title {
        font-size: 2.3rem;
        font-weight: 600;
        padding-bottom: 1rem;
    }

    .kontakt-subtitle {
        font-size: 1.4rem;
        font-weight: 400;
        padding-bottom: 0.5rem;
        color: #333;
    }

    .kontakt-paragraph {
        padding-bottom: 3rem;
        font-size: 1rem;
        color: #333;
    }
    
    .kontakt-mailabsatz {
        display: inline-block;
        margin-top: 2.5rem;
        margin-left: 0rem;
        font-weight: 600;
    }
 
    /* ---------- Impressum & Datenschutz ---------- */
    .impressum,
    .datenschutz {
        width: 90%;
        max-width: 800px;
        margin: 6rem auto 4rem;
    }


    .impressum .title,
    .datenschutz .title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .impressum .inhalt,
    .datenschutz .inhalt {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1.4rem;
    }


    .impressum a,
    .datenschutz a {
        color: #000;
        text-decoration: underline;
    }


    .impressum a:hover,
    .datenschutz a:hover {
        color: #666;
    }
    

    /*------------------------Footer-----------------------*/
    .site-footer {
        background-color: #222;   /* dunkler Hintergrund */
        color: #fff;              /* weiße Schrift */
        padding: 1rem 1rem;       /* Abstand innen */
        font-size: 1rem;
        display: grid;
        margin-top: 5rem;       /*Abstand zu darüberliegendem Element*/
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;   /* Elemente untereinander */
        gap: 1rem;
    }

    .footer-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-nav a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-nav a:hover {
        color: grey;  /* Highlight-Farbe beim Hover */
    }
    
    /* Copyright */
    .footer-copy {
        width: 100%;             /* Nimmt die ganze Breite ein */
        text-align: center;      /* Zentriert den Text */
        font-size: 0.8rem;
        color: #ccc;
    }
}

/*----------------------- Desktop schmal -----------------------*/
@media  (min-width:920px) and (max-width:1299px) {

    .header-mobile { /* Mobile Header verstecken */
        display: none;
    }
   
    .header-desktop {
        width: 100%;
        background: #fff;
        padding: 2.8rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
        border-bottom: 1px solid #e5e5e5;
    }

    .logo-desktop {
        display: flex;
        justify-content: left; /* Immer links */
        align-items: center;
    }

    .logo-desktop img,
    .social-desktop{
        height: 38px;
        width: auto;

    }

    .social-desktop{
        display: flex;
        justify-content: right; /* Immer links */
        align-items: center;
    }

    .social-desktop img{
        height: 38px;
        width: auto;
        margin-left: 5rem;
    }


    /* Navigation Container */
    .main-nav {
        display: flex;
        gap: 3rem;
        position: relative;
    }

    /* Basis Styling der Nav Links */
    .nav-link {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        height: 44px;
        line-height: 1;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 0 .8rem;
        color: #000;
        overflow: hidden;
    }

    .nav-link span {
        position: relative;
        z-index: 1;
        display: inline-block;
        transition: color .5s ease;
    }

    .nav-link::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%) scaleY(0);
        transform-origin: center;
        width: 100%;
        height: 100%;
        border: 2px solid #000;
        border-radius: 4px;
        background: #000;
        opacity: 0;
        transition: transform .5s ease, opacity .5s ease;
        pointer-events: none;
        z-index: 0;
    }

    .nav-link.active::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-link.active span {
        color: #fff;
    }

    .nav-link:hover::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-link:hover span {
        color: #fff;
    }


    /*------------------------------------*/
    /* Scrollbar immer anzeigen, auch wenn nicht benoetigt */
    /*------------------------------------*/
    html {
        overflow-y: scroll; /* Scrollbar immer sichtbar, auch wenn nicht benötigt */
    }


    /* ------------------------------------------------------ */
    /* PORTFOLIO Dropdown Menue    */
    /* ------------------------------------------------------ */

    /* Dropdown Container */
    .nav-dropdown {
        position: relative;
        display: flex;         /* wie andere Links */
        align-items: center;   /* vertikal zentriert */
    }

    /* Portfolio Button */
    .nav-dropdown > .nav-link {
        cursor: default;       /* nicht klickbar */
        display: flex;         /* Button-Inhalt wie andere Links */
        align-items: center;   /* vertikal zentriert */
        height: 100%;          /* volle Höhe der Nav */
        transition: color .3s ease;
    }

    /* Portfolio Button Highlight beim Hover */
    .nav-dropdown:hover > .nav-link::before {
        transform: translate(-50%, -50%) scaleY(1);
        opacity: 1;
    }

    .nav-dropdown:hover > .nav-link span {
        color: #fff; /* Highlight-Farbe beim Hover */
    }

    /* Dropdown Menü */
    .nav-dropdown .dropdown-menu {
        position: absolute;
        top: 100%; /* direkt unter Portfolio */
        left: 0;
        display: flex;
        flex-direction: column;
        background: white; /* Hintergrundfarbe Dropdown-Menü */
        border-radius: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        min-width: 0px;
        width: max-content;
        transition: opacity 0.3s ease, transform 0.3s ease;
        z-index: 1000;
    }

    /* Dropdown anzeigen */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0); /* sanft nach unten fahren */
        pointer-events: auto;
    }

    /* Dropdown Items */
    .dropdown-item {
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: 500;
        color: black; /* normale Schriftfarbe */
        padding: .6rem 1rem;
        position: relative;
        overflow: hidden;
        display: flex;
        justify-content: center; /* horizontal zentrieren */
        align-items: center;     /* vertikal zentrieren */
    }

    .dropdown-item span {
        display: inline-block;
        z-index: 1;
        transition: color .5s ease;
    }

    /* Overlay Effekt wie PORTFOLIO */
    .dropdown-item::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: black; /* Hover-Hintergrund */
        opacity: 0;
        transform: scaleY(0);
        transform-origin: center; /* wie bei PORTFOLIO */
        transition: transform .5s ease, opacity .5s ease;
        z-index: 0;
        pointer-events: none;
    }

    /* Hover-Effekt für Items */
    .dropdown-item:hover::before {
        opacity: 1;
        transform: scaleY(1); /* skaliert auf volle Höhe */
    }


    .dropdown-item:hover span {
        color: white; /* Schriftfarbe beim Hover */
    }

    /* Dropdown beim Hover über Portfolio anzeigen */
    .nav-dropdown:hover .dropdown-menu {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /*-----------Landing Page--------------*/
    .landing-page {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .landing-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 3rem;
    }
        
    .mobile-portfolio-page {
        width: 90%;
        max-width: 1200px;
        margin: 1rem auto 0;
    }

    .mobile-portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
    }

    
    /* ------------------------------------------------------ */
    /* PORTFOLIO (Masonry Grid + Hover + Scroll Animation)    */
    /* ------------------------------------------------------ */

    .portfolio-section {
        width: 90%;
        max-width: 1500px;
        margin: 0 auto;
        padding-top: 3rem;
        position: relative;
        z-index: 9;
    }

    .portfolio-section h1 {
        margin-bottom: 2rem; /* Abstand nach Wunsch anpassen */
        margin-top: 0rem;
        text-align: center;
    }

    .portfolio-section h2.title {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .portfolio-grid {
        column-count: 3;
        column-gap: 0.5rem;
        z-index: 9;
        margin-bottom: 0.5rem;
        
    }

    .portfolio-grid.loaded {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .portfolio-item {
        overflow: hidden;
        break-inside: avoid;
        transform: translateY(30px);
        opacity: 0;
        margin-bottom: 0.5rem;
        transition: transform 0.6s ease, opacity 0.6s ease;
        z-index: 9;
    }

    .portfolio-item.visible {
        transform: translateY(0);
        opacity: 1;
        z-index: 9;
    }

    .portfolio-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
        z-index: 9;
        transform: scale(1.01);
    }

    .portfolio-item:hover img {
        transform: scale(1.06);
        z-index: 9;
    }


    /* ---------------------------------------- */
    /* Landing Page Portfolio Preview Section   */
    /* ---------------------------------------- */

    .portfolio-preview {
        margin-top: 3rem;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .preview-grid {
        width: 90%;
        max-width: 2300px;
        display: grid;
        grid-template-columns: repeat(4, 1fr); /* 4 nebeneinander */
        gap: 0;
        margin: 0 auto;
    }

    .preview-grid-zeile2 {
        width: 70%;
        max-width: 1500px;
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 4 nebeneinander */
        gap: 0;
        margin: 0 auto;
    }
    
    .section-divider {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 3rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    
    .section-divider-desktop {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 1rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

   
    /*---------------------------------------*/
    /* --- Rezensionen / Kundenmeinungen --- */
    /*---------------------------------------*/

    .rezensionen-section {
        width: calc(90% + 4rem);   /* 2rem links + 2rem rechts Erweiterung */
        max-width: calc(800px + 4rem);
        margin: 3rem auto;
        padding: 2rem;             /* graue Fläche um 2rem nach innen vergrößern */
        text-align: center;
        position: relative;
        background-color: white;
        box-sizing: border-box;    /* verhindert, dass padding die Gesamtbreite sprengt */
    }


    .section-title {
        font-size: 2rem;
        font-weight: 600;
        margin: 6rem auto 0 auto;
        text-align: left;
        color: #000;
        margin-bottom: 3rem;
        margin-top: 5rem;
        margin-left: 4rem;
    }


    /* Slider Container */
    .rezension-slideshow {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Wrapper für horizontalen Slide */
    .rezensionen-wrapper {
        display: flex;
        transition: transform 0.6s ease;
    }

    /* Einzelne Rezension – nur eine sichtbar */
    .rezension {
        flex: 0 0 100%;         /* volle Breite des Containers */
        display: flex;
        flex-direction: row;    /* Bild links, Text rechts */
        align-items: center;
        justify-content: flex-start; /* horizontal zentriert */
        gap: 2rem;              /* Abstand zwischen Bild und Text */
        padding: 0 4rem;        /* Abstand zu den Pfeilen */
    }

    /* Bild links */
    .rezension-photo img {
        width: 150px;           /* feste Bildbreite */
        aspect-ratio: 2 / 3;    /* Bildformat */
        object-fit: cover;
        border-radius: 0;
    }

    /* Text rechts */
    .rezension-text-wrapper {
        flex: 1;                /* Text nimmt restliche Breite ein */
        text-align: left;
        max-width: 500px; /* Bildbreite + Gap */
    }

    .rezension-text {
        font-size: 1.2rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
        color: #333;
    }

    .rezension-author {
        font-weight: 600;
        text-align: left;
        color: #000;
    }

    /* Navigation Pfeile */
    .rez-prev,
    .rez-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        font-weight: bold;
        color: #000;
        cursor: pointer;
        user-select: none;
        background: rgba(255,255,255,0.8);
        padding: 0.7rem 0.7rem;
        border-radius: 5rem;
        z-index: 10;
        transition: 0.3s ease, color 0.3s ease;
    }

    .rez-prev:hover,
    .rez-next:hover {
        background: #000;
        color: #fff;
    }

    .rez-prev { left: 0.5rem; }
    .rez-next { right: 0.5rem; }


    /*--------- About Me --------------*/
    .about {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .about-container {
        display: grid;
        grid-template-areas:
            "image title"
            "image text";
        gap: 2rem;
    }

    /* Grid-Zuordnung */
    .about-title {
        grid-area: title;
        font-size: 2.3rem;
        font-weight: 600;
        margin-bottom: 0.3rem;
        text-align: left;
    }

    .about-image {
        grid-area: image;
        display: flex;
        justify-content: center;
    }

    .about-image img {
        max-width: 400px;
        aspect-ratio: 4/3;
        border-radius: 20px;
        object-fit: cover;
        display: block;
    }

    .animate-text {
        opacity: 0;
        transform: translateX(60px);
        animation: slideInText 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    @keyframes slideInText {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .animate-image {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInImage 0.9s ease-out forwards;
    }

    @keyframes slideInImage {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .about-text p {
        margin-bottom: 1rem;
        font-size: 1rem;
        color: #333;
    }

    .about-button {
        display: inline-block;
        margin-top: 2rem;
        padding: 0.7rem 1.2rem;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

    .about-button:hover {
        color: #000;
        background: lightgray;
    }

    
    /*----------Beschreibungstext in Portfolio Section---------*/
    
    .portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
        text-align: center;
    }

 
    /*--------- Kontakt Seite --------------*/

    .kontakt-preview {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .kontakt-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kontakt-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .kontakt-title {
        font-size: 2.3rem;
        font-weight: 600;
        padding-bottom: 1rem;
    }

    .kontakt-subtitle {
        font-size: 1.4rem;
        font-weight: 400;
        padding-bottom: 0.5rem;
        color: #333;
    }

    .kontakt-paragraph {
        padding-bottom: 3rem;
        font-size: 1rem;
        color: #333;
    }    
    
    .kontakt-mailabsatz {
        display: inline-block;
        margin-top: 2.5rem;
        margin-left: 0rem;
        font-weight: 600;
    }

    /* ---------- Impressum & Datenschutz ---------- */
    .impressum,
    .datenschutz {
        width: 90%;
        max-width: 800px;
        margin: 6rem auto 4rem;
    }


    .impressum .title,
    .datenschutz .title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .impressum .inhalt,
    .datenschutz .inhalt {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1.4rem;
    }


    .impressum a,
    .datenschutz a {
        color: #000;
        text-decoration: underline;
    }


    .impressum a:hover,
    .datenschutz a:hover {
        color: #666;
    }
    

    /*------------------------Footer-----------------------*/
    .site-footer {
        background-color: #222;   /* dunkler Hintergrund */
        color: #fff;              /* weiße Schrift */
        padding: 1rem 1rem;       /* Abstand innen */
        font-size: 1rem;
        display: grid;
        margin-top: 5rem;       /*Abstand zu darüberliegendem Element*/
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;   /* Elemente untereinander */
        gap: 1rem;
    }

    .footer-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-nav a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-nav a:hover {
        color: grey;  /* Highlight-Farbe beim Hover */
    }
    
    /* Copyright */
    .footer-copy {
        width: 100%;             /* Nimmt die ganze Breite ein */
        text-align: center;      /* Zentriert den Text */
        font-size: 0.8rem;
        color: #ccc;
    }
}

/*----------------------- Mobile Version breit -----------------------*/
@media (max-width: 919px) and (min-width:521px) {

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: flex;
        position: relative;
    }

    /* HEADER BASIS */
    .header-mobile {
        position: relative;
        top: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    .header-container {
        display: flex;
        justify-content: space-between; /* Logo ↔ Burger */
        align-items: center;            /* vertikal zentriert */
        width: 100%;
    }

    /* LOGO */
    .logo-mobile img {
        height: 38px;   /* harmonische Höhe 
        width: auto;
       /* display: block;*/
        margin-left: 1rem;
    }

    .logo-desktop img,
    .social-desktop{
        height: 38px;
        width: auto;

    }

    .social-desktop{
        display: flex;
        justify-content: right; /* Immer links */
        align-items: right;
    }

    .social-desktop img{
        height: 38px;
        width: auto;
        /*margin-left: 5rem;*/
    }


    /* BURGER ICON */
    .burger-menu {
        position: relative;         
        width: 40px;
        height: 32px;
        padding: 4px;
        cursor: pointer;
        z-index: 1100;
        box-sizing: border-box;
        margin-right: 1rem;
        justify-content: center;
    }



    .burger-line {
        position: absolute;  
        left: 0;
        width: 100%;
        height: 0.2rem;
        background-color: #000;
        border-radius: 0.2rem;
        will-change: transform;
        transform-origin: 24% center;
        transition:
            transform 0.2s cubic-bezier(0.4, 0.0, 0.5, 1),
            opacity   0.2s ease-in;
    }

    .burger-menu.active .burger-line {
        
        transform-origin: center center;
        transition:
            transform 0.4s cubic-bezier(0.4, 0.0, 0.5, 1),
            opacity   0.2s ease-in;
    }


    /*Startposition*/
    .burger-line:nth-child(1) {
        top: 4px;
    }

    .burger-line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-line:nth-child(3) {
        bottom: 4px;
    }

    /* BURGER ANIMATION */
    .burger-menu.active .burger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }


    /* Mobile Navigation */
    .mobile-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity .35s ease, transform .35s ease;
        position: fixed;
        top: calc(1rem + 38px + 1rem); /* direkt unter Header + padding */
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: white;
        align-items: center;
        gap: 2rem;
        padding: 1rem 0;
        z-index: 1050;
        width: 100vw;        /* echte Bildschirmbreite */
        height: 100vh;       /* ganze Bildschirmhöhe */
        z-index: 1100;
    }

    .mobile-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        z-index: 1100;
    }

    /* Hauptmenüpunkte */
    .mobile-nav a.nav-main {
        font-size: 1.9rem;
        font-weight: 600;
        color: #000;
        text-decoration: none;
        padding: 0.6rem 1rem;
        transition: 0.3s ease;
        z-index: 1100;
    }

    .mobile-nav a.nav-main:hover {
        background: #000;
        color: white;
    }

    /* Portfolio Block */
    .mobile-nav .nav-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .mobile-nav .nav-sub a {
        font-size: 1.4rem;
        font-weight: 400;
        color: #000;
        text-decoration: none;
        text-align: center;
        padding: 0.4rem 1rem;
        transition: 0.3s ease;
    }

    .mobile-nav .nav-sub a:hover {
        background: #000;
        color: white;
    }


    /* Grid auf 2 Spalten reduzieren */
    .preview-grid,
    .preview-grid-zeile2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0rem; /* etwas Abstand zwischen den Bildern */
    }

    /* Bilder volle Breite */
    .preview-item {
        width: 100%;
    }

    
    /* ------------------------------------------------------ */
    /* PORTFOLIO (Masonry Grid + Hover + Scroll Animation)    */
    /* ------------------------------------------------------ */

    .portfolio-section {
        width: 90%;
        max-width: 1500px;
        margin: 0 auto;
        padding-top: 3rem;
        position: relative;
        z-index: 9;
    }

    .portfolio-section h1 {
        margin-bottom: 2rem; /* Abstand nach Wunsch anpassen */
        margin-top: 0rem;
        text-align: center;
    }

    .portfolio-section h2.title {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .portfolio-grid {
        column-count: 3;
        column-gap: 0.5rem;
        z-index: 9;
        margin-bottom: 0.5rem;
        
    }

    .portfolio-grid.loaded {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .portfolio-item {
        overflow: hidden;
        break-inside: avoid;
        transform: translateY(30px);
        opacity: 0;
        margin-bottom: 0.5rem;
        /*transition: transform 0.6s ease, opacity 0.6s ease;*/
        z-index: 9;
    }

    .portfolio-item.visible {
        transform: translateY(0);
        opacity: 1;
        z-index: 9;
    }

    .portfolio-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        /*transition: transform 0.35s ease;*/
        z-index: 9;
        transform: scale(1.01);
    }

    .portfolio-item:hover img {
        transform: scale(1.06);
        z-index: 9;
    }

    
    /*-----------Landing Page--------------*/
    .landing-page {
        width: 90%;
        max-width: 1500px;
        margin: 6rem auto 0;
    }

    .landing-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 3rem;
    }
    
    .mobile-portfolio-page {
        width: 90%;
        max-width: 1200px;
        margin: 1rem auto 0;
    }

    .mobile-portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
    }

        
    .section-divider {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    .section-divider-mobile-nav {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

          
    /*---------------------------------------*/
    /* --- Rezensionen / Kundenmeinungen --- */
    /*---------------------------------------*/

    .rezensionen-section {
        width: 100%; 
        max-width: none;
        margin: 2rem auto;
        padding: 0.3rem;             /* graue Fläche um 0,3rem nach innen vergrößern */
        text-align: center;
        position: relative;
        background-color: white;
        box-sizing: border-box;    /* verhindert, dass padding die Gesamtbreite sprengt */
    }


    .section-title {
        font-size: 2rem;
        font-weight: 600;
        text-align: center;
        color: #000;
        margin-bottom: 3rem;
        margin-top: 0rem;
    }


    /* Slider Container */
    .rezension-slideshow {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Wrapper für horizontalen Slide */
    .rezensionen-wrapper {
        display: flex;
        transition: transform 0.6s ease;
        /*max-width: 500px;*/
        max-width: calc(100% - 10px); /* Bildbreite + Gap */
    }

    /* Einzelne Rezension – nur eine sichtbar */
    .rezension {
        flex: 0 0 100%;         /* volle Breite des Containers */
        display: flex;
        flex-direction: row;    /* Bild links, Text rechts */
        align-items: center;
        justify-content: flex-start; /* horizontal zentriert */
        gap: 1.4rem;              /* Abstand zwischen Bild und Text */
        padding: 0 3rem;        /* Abstand zu den Pfeilen */
        
    }

    /* Bild links */
    .rezension-photo img {
        width: 100px;           /* feste Bildbreite */
        aspect-ratio: 2 / 3;    /* Bildformat */
        object-fit: cover;
        border-radius: 0;
    }

    /* Text rechts */
    .rezension-text-wrapper {
        flex: 1;                /* Text nimmt restliche Breite ein */
        text-align: left;
        min-width: 0;
        max-width: calc(100% - 20px); /* Bildbreite + Gap */
    }

    .rezension-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
        color: #333;

        white-space: normal;          /* ENTSCHEIDEND */
        overflow-wrap: break-word;    /* Absicherung */
        word-break: normal;
        hyphens: auto;    
    }

    .rezension-author {
        font-weight: 600;
        text-align: left;
        color: #000;
    }

    /* Navigation Pfeile */
    .rez-prev,
    .rez-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        font-weight: bold;
        color: #000;
        cursor: pointer;
        user-select: none;
        background: rgba(255,255,255,0.8);
        /*padding: 0.7rem 0.7rem;*/
        border-radius: 5rem;
        z-index: 10;
        transition: 0.3s ease, color 0.3s ease;
    }

    .rez-prev:hover,
    .rez-next:hover {
        background: #000;
        color: #fff;
    }

    .rez-prev { left: 0.5rem; }
    .rez-next { right: 0.5rem; }


    /*----------Beschreibungstext in Portfolio Section---------*/
    
    .portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
        text-align: center;
    }



    /*--------- About Me --------------*/

    .about {
        width: 90%;
        max-width: 900px;
        margin: 6rem auto 0;
    }

    .about-container {
        display: grid;
        grid-template-areas:
            "title"
            "image"
            "text";
        gap: 2rem;
        justify-items: center;
    }

    /* Grid-Zuordnung */
    .about-title {
        grid-area: title;
        font-size: 2.3rem;
        font-weight: 600;
        margin-bottom: 1rem;
    }

    .about-image {
        grid-area: image;
    }

    /* Bild */
    .about-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 20px;
        align-items: center;
    }

    .animate-text {
        opacity: 0;
        transform: translateX(60px);
        animation: slideInText 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    @keyframes slideInText {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .animate-image {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInImage 0.9s ease-out forwards;
    }

    @keyframes slideInImage {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-bottom: 2.5rem;
        max-width: 650px;
    }

    .about-text p {
        margin-bottom: 1.6rem;
        font-size: 1rem;
        color: #333;
    }

    .about-text .title {
        font-size: 2.3rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .about-button {
        display: inline-block;
        margin-top: 1rem;
        margin-bottom: 0rem;
        padding: 0.7rem 1.2rem;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

    .about-button:hover {
        color: #000;
        background: lightgray;
    }


    /*--------- Kontakt Seite --------------*/

    .kontakt-preview {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .kontakt-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kontakt-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .kontakt-title {
        font-size: 2.3rem;
        font-weight: 600;
        padding-bottom: 1rem;
    }

    .kontakt-subtitle {
        font-size: 1.4rem;
        font-weight: 400;
        padding-bottom: 0.5rem;
        color: #333;
    }

    .kontakt-paragraph {
        padding-bottom: 3rem;
        font-size: 1rem;
        color: #333;
    }
        
    .kontakt-mailabsatz {
        display: inline-block;
        margin-top: 2.5rem;
        margin-left: 0rem;
        font-weight: 600;
    }  
     
    /* ---------- Impressum & Datenschutz ---------- */
    .impressum,
    .datenschutz {
        width: 90%;
        max-width: 800px;
        margin: 6rem auto 4rem;
    }


    .impressum .title,
    .datenschutz .title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .impressum .inhalt,
    .datenschutz .inhalt {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1.4rem;
    }


    .impressum a,
    .datenschutz a {
        color: #000;
        text-decoration: underline;
    }


    .impressum a:hover,
    .datenschutz a:hover {
        color: #666;
    }
    

    /*------------------------Footer-----------------------*/
    .site-footer {
        background-color: #222;   /* dunkler Hintergrund */
        color: #fff;              /* weiße Schrift */
        padding: 1rem 1rem;       /* Abstand innen */
        font-size: 0.7rem;
        display: grid;
        margin-top: 5rem;       /*Abstand zu darüberliegendem Element*/
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;   /* Elemente untereinander */
        gap: 1rem;
    }

    .footer-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-nav a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-nav a:hover {
        color: grey;  /* Highlight-Farbe beim Hover */
    }
    
    /* Copyright */
    .footer-copy {
        width: 100%;             /* Nimmt die ganze Breite ein */
        text-align: center;      /* Zentriert den Text */
        font-size: 0.7rem;
        color: #ccc;
    }
}

/*----------------------- Mobile Version schmal -----------------------*/
@media (max-width: 520px) {

    .header-desktop {
        display: none;
    }

    .header-mobile {
        display: flex;
        position: relative;
    }

    /* HEADER BASIS */
    .header-mobile {
        position: relative;
        top: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        z-index: 1000;
        box-shadow: 0 2px 10px rgba(0,0,0,0.08);
        display: flex;
        justify-content: space-between;
        align-items: center;
    }


    .header-container {
        display: flex;
        justify-content: space-between; /* Logo ↔ Burger */
        align-items: center;            /* vertikal zentriert */
        width: 100%;
    }

    /* LOGO*/
    .logo-desktop img{
        height: 38px;
        width: auto;
        align-items: center;
        justify-content: center;

    }

    .social-desktop img{
        height: 38px;
        width: auto;
        margin-right: 16px;
        margin-left: -16px;
    }



    /* BURGER ICON */
    .burger-menu {
        position: relative;         
        width: 40px;
        height: 32px;
        padding: 4px;
        cursor: pointer;
        z-index: 1100;
        box-sizing: border-box;
        margin-right: 1rem;
        justify-content: center;
    }



    .burger-line {
        position: absolute;  
        left: 0;
        width: 100%;
        height: 0.2rem;
        background-color: #000;
        border-radius: 0.2rem;
        will-change: transform;
        transform-origin: 24% center;
        transition:
            transform 0.2s cubic-bezier(0.4, 0.0, 0.5, 1),
            opacity   0.2s ease-in;
    }

    .burger-menu.active .burger-line {  
        transform-origin: center center;
        transition:
            transform 0.4s cubic-bezier(0.4, 0.0, 0.5, 1),
            opacity   0.2s ease-in;
    }

    /*Startposition*/
    .burger-line:nth-child(1) {
        top: 4px;
    }

    .burger-line:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .burger-line:nth-child(3) {
        bottom: 4px;
    }

    /* BURGER ANIMATION */
    .burger-menu.active .burger-line:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .burger-menu.active .burger-line:nth-child(2) {
        opacity: 0;
    }

    .burger-menu.active .burger-line:nth-child(3) {
        
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }


    /* Mobile Navigation */
    .mobile-nav {
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity .35s ease, transform .35s ease;
        position: fixed;
        top: calc(1rem + 38px + 1rem); /* direkt unter Header + padding */
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        background: white;
        align-items: center;
        gap: 2rem;
        padding: 1rem 0;
        z-index: 1050;
        width: 100vw;        /* echte Bildschirmbreite */
        height: 100vh;       /* ganze Bildschirmhöhe */
    }

    .mobile-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Hauptmenüpunkte */
    .mobile-nav a.nav-main {
        font-size: 1.9rem;
        font-weight: 600;
        color: #000;
        text-decoration: none;
        padding: 0.6rem 1rem;
        transition: 0.3s ease;
    }

    .mobile-nav a.nav-main:hover {
        background: #000;
        color: white;
    }

    /* Portfolio Block */
    .mobile-nav .nav-block {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .mobile-nav .nav-sub {
        display: flex;               /* Flexbox für Ausrichtung */
        flex-direction: column;      /* Items untereinander */
        align-items: center;       /* Items am rechten Rand ausrichten */
        width: 100%;                 /* volle Breite nutzen */
        gap: 0.5rem;                 /* vertikaler Abstand zwischen Items */
    }

    .mobile-nav .nav-sub a {
        font-size: 1.4rem;
        font-weight: 400;
        color: #000;
        text-decoration: none;
        text-align: center;
        padding: 0.4rem 1rem;
        transition: 0.3s ease;
    }

    .mobile-nav .nav-sub a:hover {
        background: #000;
        color: white;
    }

    /* Grid auf 2 Spalten reduzieren */
    .preview-grid,
    .preview-grid-zeile2 {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0rem; /* etwas Abstand zwischen den Bildern */
    }

    /* Bilder volle Breite */
    .preview-item {
        width: 100%;
    }

        
    .section-divider {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 2rem;
        margin-bottom: 2rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    .section-divider-mobile-nav {
        width: 90%;
        max-width: 2300px;
        height: 0.2rem;
        background-color: #333; /* oder #333 / lightgray */
        margin: 1rem auto;
        margin-top: 1rem;
        margin-bottom: 1rem;
        border-bottom: 0.1rem solid #e5e5e5;
    }

    
    /*-----------Landing Page--------------*/
    .landing-page {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .landing-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 3rem;
    }
    
    .mobile-portfolio-page {
        width: 90%;
        max-width: 1200px;
        margin: 1rem auto 0;
    }

    .mobile-portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
    }

        
    /* ------------------------------------------------------ */
    /* PORTFOLIO (Masonry Grid + Hover + Scroll Animation)    */
    /* ------------------------------------------------------ */

    .portfolio-section {
        width: 90%;
        max-width: 1500px;
        margin: 0 auto;
        padding-top: 3rem;
        position: relative;
        z-index: 9;
    }

    .portfolio-section h1 {
        margin-bottom: 2rem; /* Abstand nach Wunsch anpassen */
        margin-top: 0rem;
        text-align: center;
    }

    .portfolio-section h2.title {
        margin-top: 1.5rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .portfolio-grid {
        column-count: 3;
        column-gap: 0.5rem;
        z-index: 9;
        margin-bottom: 0.5rem;
        
    }

    .portfolio-grid.loaded {
        opacity: 1;
        transition: opacity 0.4s ease;
    }

    .portfolio-item {
        overflow: hidden;
        break-inside: avoid;
        transform: translateY(30px);
        opacity: 0;
        margin-bottom: 0.5rem;
        transition: transform 0.6s ease, opacity 0.6s ease;
        z-index: 9;
    }

    .portfolio-item.visible {
        transform: translateY(0);
        opacity: 1;
        z-index: 9;
    }

    .portfolio-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        transition: transform 0.35s ease;
        z-index: 9;
        transform: scale(1.01);
    }

    .portfolio-item:hover img {
        transform: scale(1.06);
        z-index: 9;
    }

    /*----------Beschreibungstext in Portfolio Section---------*/
    
    .portfolio-page-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        margin-top: 0.6rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    /*.portfolio-item {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /*--------- About Me --------------*/

    .about {
        width: 90%;
        max-width: 900px;
        margin: 6rem auto 0;
    }

    .about-container {
        display: grid;
        grid-template-areas:
            "title"
            "image"
            "text";
        gap: 2rem;
        justify-items: center;
    }

    /* Grid-Zuordnung */
    .about-title {
        grid-area: title;
        font-size: 2.3rem;
        font-weight: 600;
        margin-bottom: 0rem;
        text-align: center;
    }

    .about-image {
        grid-area: image;
        display: flex;
        justify-content: center;
    }

    /* Bild */
    .about-image img {
        width: 100%;
        max-width: 400px;
        height: auto;
        border-radius: 20px;
        display: block;
    }

    .animate-text {
        opacity: 0;
        transform: translateX(60px);
        animation: slideInText 0.8s ease-out forwards;
        animation-delay: 0.3s;
    }

    @keyframes slideInText {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .animate-image {
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInImage 0.9s ease-out forwards;
    }

    @keyframes slideInImage {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .about-text {
        grid-area: text;
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
        max-width: 650px;
        text-align: left;
    }

    .about-text p {
        font-size: 1rem;
        color: #333;
    }

    .about-text .title {
        font-size: 2.3rem;
        margin-bottom: 1.5rem;
        font-weight: 600;
    }

    .about-button {
        display: inline-block;
        margin-top: 2rem;
        margin-bottom: 0rem;
        padding: 0.7rem 1.2rem;
        background: #000;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
    }

    .about-button:hover {
        color: #000;
        background: lightgray;
    }

    
        
    /*---------------------------------------*/
    /* --- Rezensionen / Kundenmeinungen --- */
    /*---------------------------------------*/

    .rezensionen-section {
        width: 100%; 
        max-width: none;
        margin: 2rem auto;
        padding: 0.3rem;             /* graue Fläche um 0,3rem nach innen vergrößern */
        text-align: center;
        position: relative;
        background-color: white;
        box-sizing: border-box;    /* verhindert, dass padding die Gesamtbreite sprengt */
    }


    .section-title {
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
        color: #000;
        margin-bottom: 3rem;
        margin-top: 3rem;
    }


    /* Slider Container */
    .rezension-slideshow {
        display: flex;
        overflow: hidden;
        position: relative;
        width: 100%;
        margin-bottom: 2rem;
    }

    /* Wrapper für horizontalen Slide */
    .rezensionen-wrapper {
        display: flex;
        transition: transform 0.6s ease;
        /*max-width: 500px;*/
        max-width: calc(100% - 10px); /* Bildbreite + Gap */
    }

    /* Einzelne Rezension – nur eine sichtbar */
    .rezension {
        flex: 0 0 100%;         /* volle Breite des Containers */
        display: flex;
        flex-direction: row;    /* Bild links, Text rechts */
        align-items: center;
        justify-content: flex-start; /* horizontal zentriert */
        gap: 1.4rem;              /* Abstand zwischen Bild und Text */
        padding: 0 3rem;        /* Abstand zu den Pfeilen */
        
    }

    /* Bild links */
    .rezension-photo img {
        width: 100px;           /* feste Bildbreite */
        aspect-ratio: 2 / 3;    /* Bildformat */
        object-fit: cover;
        border-radius: 0;
    }

    /* Text rechts */
    .rezension-text-wrapper {
        flex: 1;                /* Text nimmt restliche Breite ein */
        text-align: left;
        min-width: 0;
        max-width: calc(100% - 20px); /* Bildbreite + Gap */
    }

    .rezension-text {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 0.5rem;
        color: #333;

        white-space: normal;          /* ← ENTSCHEIDEND */
        overflow-wrap: break-word;    /* Absicherung */
        word-break: normal;
        hyphens: auto;    
    }

    .rezension-author {
        font-weight: 600;
        text-align: left;
        color: #000;
    }

    /* Navigation Pfeile */
    .rez-prev,
    .rez-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        font-size: 2rem;
        font-weight: bold;
        color: #000;
        cursor: pointer;
        user-select: none;
        background: rgba(255,255,255,0.8);
        /*padding: 0.7rem 0.7rem;*/
        border-radius: 5rem;
        z-index: 10;
        transition: 0.3s ease, color 0.3s ease;
    }

    .rez-prev:hover,
    .rez-next:hover {
        background: #000;
        color: #fff;
    }

    .rez-prev { left: 0.5rem; }
    .rez-next { right: 0.5rem; }


    
    /*--------- Kontakt Seite --------------*/

    .kontakt-preview {
        width: 90%;
        max-width: 1000px;
        margin: 6rem auto 0;
    }

    .kontakt-container {
        display: grid;
        grid-template-columns: 1fr;
    }

    .kontakt-text {
        font-size: 1rem;
        line-height: 1.6;
        color: #000;
    }

    .kontakt-title {
        font-size: 2.3rem;
        font-weight: 600;
        padding-bottom: 1rem;
    }

    .kontakt-subtitle {
        font-size: 1.4rem;
        font-weight: 400;
        padding-bottom: 0.5rem;
        color: #333;
    }

    .kontakt-paragraph {
        padding-bottom: 3rem;
        font-size: 1rem;
        color: #333;
    }
    
    .kontakt-mailabsatz {
        display: inline-block;
        margin-top: 2.5rem;
        margin-left: 0rem;
        font-weight: 600;
    }
    
    /* ---------- Impressum & Datenschutz ---------- */
    .impressum,
    .datenschutz {
        width: 90%;
        max-width: 800px;
        margin: 6rem auto 4rem;
    }


    .impressum .title,
    .datenschutz .title {
        font-size: 2rem;
        font-weight: 600;
        margin-bottom: 2rem;
    }

    .impressum .inhalt,
    .datenschutz .inhalt {
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
        margin-bottom: 1.4rem;
    }


    .impressum a,
    .datenschutz a {
        color: #000;
        text-decoration: underline;
    }


    .impressum a:hover,
    .datenschutz a:hover {
        color: #666;
    }
    

    /*------------------------Footer-----------------------*/
    .site-footer {
        background-color: #222;   /* dunkler Hintergrund */
        color: #fff;              /* weiße Schrift */
        padding: 1rem 1rem;       /* Abstand innen */
        font-size: 0.7rem;
        display: grid;
        margin-top: 5rem;       /*Abstand zu darüberliegendem Element*/
    }

    .footer-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-direction: column;   /* Elemente untereinander */
        gap: 1rem;
    }

    .footer-nav {
        display: flex;
        gap: 1.5rem;
        align-items: center;
    }

    .footer-nav a {
        color: #fff;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .footer-nav a:hover {
        color: grey;  /* Highlight-Farbe beim Hover */
    }
    
    /* Copyright */
    .footer-copy {
        width: 100%;             /* Nimmt die ganze Breite ein */
        text-align: center;      /* Zentriert den Text */
        font-size: 0.7rem;
        color: #ccc;
    }

    .portfolio-grid {
        column-count: unset;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        
    }

    .portfolio-grid.loaded {
        opacity: 1;
        transition: opacity 0.4s ease;
    }
}
