/* ---------------------------------------------------------
   GLOBALNE USTAWIENIA
---------------------------------------------------------- */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #222;
    display: flex;
    flex-direction: column;
    align-items: center;

}

/*-----------------------------------------------------------------------------------------------*/

header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;

    display: flex;
    justify-content: center;
    gap: 100px;
    align-items: center;

    padding: 0 160px;
    background-color: lightgrey;
    height: 100px;
    /* header-height */
    width: 100%;

    transition: height 0.3s ease, padding 0.3s ease;
}

header img {
    height: 90px;
    transition: height 0.3s ease;
    position: relative;
}

header nav {
    display: flex;
    gap: 50px;
}

header nav a {
    font-size: 25px;
    color: black;
    text-decoration: none;
    padding: 5px;
    transition: font-size 0.3s ease, background-color 0.2s;
}

header nav a:hover {
    background-color: grey;
    border-radius: 3px;
}

html {
    scroll-padding-top: 60px;
    /* Höhe deines Headers */
}

/* 👇 STAN PO SCROLLU */
.header--shrink {
    height: 60px;
    /* header-height-small */
    padding: 0 160px;
    background-color: lightgray;
}

/*.header--shrink header {
    gap: 350px;
}*/

.header--shrink img {
    height: 50px;
}



/* ---------------------------------------------------------
   HERO
---------------------------------------------------------- */
.hero {
    background-image: url('img/hero3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    text-align: center;

    /*width: 50vh;*/
    /* 1536px*/
    /* pełna szerokość */
    height: 723px;
    /* pełna wysokość ekranu */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 400px;
    /* usuwa ograniczenia */
}



/*.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}
*/
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 400%;
    font-weight: 700;
    color: rgb(255, 255, 255);
}

.hero-content p {
    font-size: 175%;
    font-weight: 300;
    color: rgb(255, 255, 255);
}

.hero-content h1,
.hero-content p {
    text-shadow:
        0 0 5px rgba(0, 0, 0, 0.9),
        /*  delikatny blur wokół*/
        0 0 10px rgba(0, 0, 0, 0.8),
        /* większy blur*/
        0 0 12px rgba(0, 0, 0, 0.7),
        /* bardzo miękki, niemal jak tło*/
        0 0 15px rgba(0, 0, 0, 0.5);
    /* mega rozproszenie*/
}




/* ---------------------------------------------------------
   ABOUT – dwie kolumny
---------------------------------------------------------- */
.about {
    display: flex;
    background: #f7f7f7;
    align-items: center;
    padding: 40px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 1100px;
    margin-top: 50px;
}


.about-wrapper {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: 25px;
    margin-left: 3%;
    align-items: center;
    max-width: 100%;

}

.about h2 {
    margin-top: 0;
    margin-left: 3%;
    font-size: 26px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

.about-text p {
    text-indent: 25px;
    /* wcięcie pierwszej linii */
    margin-bottom: 0px;
    /* odstęp między akapitami */
}

.about-image {
    flex: 1;
    text-align: center;
    width: 300px;

}

.about-image img {

    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}


/* ---------------------------------------------------------
   LEISTUNGEN – boxy
---------------------------------------------------------- */
.leistungen {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: left;
    background: #f7f7f7;
    align-items: center;
    padding: 40px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 1100px;
    margin-top: 50px;
}




.leistung-wrapper {
    /* dwie kolumny w sekcji LEISTUNGEN */
    display: grid;
    grid-template-columns: 45% 55%;

    /* obok siebie w poziomie */
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;

}

.leistung-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.8;
}

.leistungen h2 {
    text-align: left;
    margin-right: 46%;
    margin-bottom: 30px;
}

.leistung-text h3 {
    margin-top: 0;
    font-size: 26px;
}

.leistung-text p {
    font-size: 18px;
    line-height: 1.8;
}


/* ---------------------------------------------------------
   SLIDER W LEISTUNGEN
---------------------------------------------------------- */
.leistung-slider {
    flex: 1;
    max-width: 550px;
    position: relative;
    display: flex;
    align-items: center;
}

.slides-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide-img {
    width: 100%;
    height: 290px;
    /* stała wysokość dla wszystkich zdjęć */
    object-fit: contain;
    /* cover-przycina zdjęcie, ale zachowuje proporcje */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* pokaż pierwsze zdjęcie */
.slide-img:first-child {
    display: block;
}

/* przyciski slidera */
.prev,
.next {
    background-color: transparent;
    color: gray;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 22px;
    border-radius: 4px;
    z-index: 10;
}

.prev:hover,
.next:hover {
    background-color: lightgray;
}

.prev {
    margin-right: 10px;
}

.next {
    margin-left: 10px;
}



/* ------ sekcja VIDEOS ----------------------------------------- */

.videos {
    display: flex;
    background: #f7f7f7;
    padding: 40px 40px;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 1100px;
    margin-top: 50px;
}

.video-box-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    max-width: 1000px;
    margin-bottom: 60px;
    padding-left: 35px;
}

.videos h2 {
    text-align: left;
    margin-left: 5%;
    margin-bottom: 30px;
}

.video-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;


}

video {
    width: 100%;
    height: auto;
    max-width: 400px;
    border-radius: 10px;
    background: black;
    display: block;
    margin-top: 10px;
}




/* ---------------------------------------------------------
   REZENSIONEN
---------------------------------------------------------- */
.reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f7f7f7;
    padding: 40px 40px;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 1180px;
    margin-top: 50px;
}


.review {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 5px;
    border-left: 4px solid #ffb400;
}

.reviews {
    padding: 60px 0;
    background: #f7f7f7;
}

.reviews h2 {

    /*text-align: left;
    margin-left: 11%;*/
    margin-bottom: 30px;
}

.ti-widget {
    max-width: 1060px;
    /*margin: 0 auto;*/
}

/* ---------------------------------------------------------
   KONTAKT
---------------------------------------------------------- */
.kontakt {
    display: flex;
    flex-direction: column;

    background: #f7f7f7;
    align-items: center;
    padding: 40px 40px;
    /*margienes gora dol 20 oraz prawo lewo 100*/
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 1100px;
    margin-top: 50px;
}



form input,
form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 30px;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

form button {
    background: grey;
    border: none;
    padding: 12px 20px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 5px;

}

form button:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------
   FOOTER
---------------------------------------------------------- */


.futter {
    display: flex;
    justify-content: center;
    gap: 30px;
    align-items: center;
    background: rgb(29, 29, 31);
    color: #fff;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    width: 100%;
}

.futter p {
    margin: 5px 0;
}

.futter p1 {
    color: grey
}

.futter a {
    color: grey;
    text-decoration: none;
}

.futter a:hover {
    text-decoration: underline;
}

/* impressum und datenschutz 


.legal-page {
    max-width: 900px;
    margin: 60px auto;
    padding: 20px;
    line-height: 1.7;
}

.legal-page h1 {
    text-align: center;
    margin-bottom: 30px;
}

.legal-page h2 {
    margin-top: 30px;
    color: #333;
}

.legal-page a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
}

.legal-page a:hover {
    text-decoration: underline;
}*/

/* --------RESPONSYWNOSC-------*/

/* =========================================================
   RESPONSYWNOŚĆ – MOBILE & TABLET
========================================================= 

/* TABLET 
@media (max-width: 1024px) {

    section,
    .about,
    .leistungen,
    .videos,
    .reviews,
    .kontakt {
        margin: 20px 40px;
        padding: 30px;
    }

    .about-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image img {
        max-width: 100%;
    }

    .leistung-wrapper,
    .video-box-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .leistung-slider {
        max-width: 100%;
        justify-content: center;
    }
}


/* MOBILE 
@media (max-width: 768px) {

    /* HEADER 
    .header {
        flex-direction: column;
        padding: 10px;
    }

    .logo {
        display: flex;
        justify-content: start;
        margin: 0;
        height: 40px;
    }

    .nav {
        display: none;
    }

    /* HERO 
    .hero {
        min-height: 60vh;
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    /* SEKCJE 
    .section,
    .about,
    .leistungen,
    .videos,
    .reviews,
    .kontakt {
        margin: 10px;
        padding: 25px;
    }

    /* TEKSTY 
    .about-text,
    .leistung-text,
    .video-text {
        font-size: 16px;
    }

    /* OBRAZY & VIDEO
    .slide-img,
    video {
        height: auto;
        max-width: 100%;
    }

    /* KONTAKT 
    .kontakt {
        padding: 40px 25px;
    }

    /* FOOTER 
    .futter {
        padding: 30px 15px;
        font-size: 14px;
    }
}


/* MAŁE TELEFONY
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .nav a {
        font-size: 16px;
    }
}
     /* ---------------------------------------------------------
   RESPONSYWNOŚĆ <750px
---------------------------------------------------------- */
@media (max-width: 750px) {

    /* HEADER */
    header {
        display: none;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 20px;
        justify-content: center;
        align-items: center;
    }

    header nav {
        display: none;
    }

    header img {
        margin: 0 auto;
    }

    /* HERO */
    .hero {
        height: 50vh;
        /* mniejsze hero */
        padding: 10px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* SEKCJE POZIOME -> PIONOWE */
    .about,
    .about-wrapper,
    .about-text,
    .about-image,
    .leistungen,
    .leistung-wrapper,
    .leistung-text,
    .leistungen-img,
    .video,
    .kontakt,
    .video-text,
    .video-box-wrapper {
        display: flex;
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        text-align: center;
        width: 95%;
    }

    .about-image,
    .about-text,
    .leistung-text,
    .leistung-slider,
    .reviews,
    .kontakt,
    .video,
    .video-text,
    .video {
        justify-content: center;
        align-items: center;
        width: 90%;

    }
}