/* =========================================
   GRUNDLAGEN
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding-top: 80px;

    font-family: Arial, sans-serif;
    line-height: 1.6;

    color: black;
    background: #faf8f3;
}


section {
    scroll-margin-top: 100px;
}



/* =========================================
   HEADER / NAVIGATION
========================================= */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background: #aaa39f;

    padding: 15px 40px;

    z-index: 1000;

    display: flex;
    justify-content: flex-end;
    align-items: center;
}


nav {
    display: flex;
    align-items: center;

    gap: 30px;
}


nav a {
    color: black;
    text-decoration: none;

    font-size: 16px;
}


nav a:hover {
    text-decoration: underline;
}



/* =========================================
   HERO / STARTSEITE
========================================= */

.hero {
    background: url("kochen.jpg") center / cover;

    min-height: 450px;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    text-align: center;

    position: relative;
}


.hero img {
    width: 100%;
    max-width: 500px;

    height: 600px;

    object-fit: cover;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.85);

    padding: 30px;
}


.hero-text {
    background: rgba(255, 255, 255, 0.85);

    padding: 30px;

    border-radius: 10px;

    max-width: 600px;
}


.hero h1 {
    font-size: 36px;

    color: black;

    margin-bottom: 10px;
}


.hero h2 {
    font-size: 22px;

    font-weight: normal;

    margin-bottom: 20px;
}


.hero p {
    margin-bottom: 5px;
}


.button {
    display: inline-block;

    margin-top: 20px;

    background: #aaa39f;

    color: black;

    padding: 12px 25px;

    border-radius: 25px;

    text-decoration: none;
}


.button:hover {
    opacity: 0.8;
}



/* =========================================
   ALLGEMEINER INHALT
========================================= */

.container {
    max-width: 1000px;

    margin: auto;

    padding: 40px 20px;
}


h2 {
    color: black;

    margin-bottom: 20px;
}



/* =========================================
   LEISTUNGEN
========================================= */

.cards {
    display: flex;

    gap: 20px;

    flex-wrap: wrap;
}


.card {
    background: #aaa39f;

    padding: 20px;

    border-radius: 10px;

    flex: 1;

    min-width: 250px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.1);
}


.card h3 {
    margin-bottom: 10px;
}



/* =========================================
   BILDER-SLIDER
========================================= */

.image-slider-section {
    width: 100%;

    max-width: 1000px;

    margin: 45px auto;

    padding: 0 55px;
}


.image-slider {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;
}


.slider-track {
    display: flex;

    gap: 18px;

    width: 100%;

    overflow-x: hidden;

    scroll-behavior: smooth;
}


.slider-image {
    width: 190px;

    height: 135px;

    object-fit: cover;

    border-radius: 8px;

    cursor: pointer;

    flex-shrink: 0;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


.slider-image:hover {
    transform: scale(1.04);

    opacity: 0.9;
}



/* =========================================
   SLIDER-PFEILE
========================================= */

.slider-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #aaa39f;

    color: black;

    font-size: 20px;

    cursor: pointer;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: center;
}


.slider-arrow:hover {
    opacity: 0.75;
}


.slider-prev {
    left: -45px;
}


.slider-next {
    right: -45px;
}



/* =========================================
   LIGHTBOX
========================================= */

.lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.92);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 99999;
}


.lightbox.active {
    display: flex;
}


/* Großes Bild */

#lightbox-image {
    display: block;

    max-width: 82vw;

    max-height: 82vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 6px;

    box-shadow:
        0 5px 30px rgba(0, 0, 0, 0.5);
}



/* Schließen */

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 30px;

    border: none;

    background: transparent;

    color: white;

    font-size: 45px;

    line-height: 1;

    cursor: pointer;

    z-index: 10;
}


.lightbox-close:hover {
    opacity: 0.7;
}



/* Pfeile */

.lightbox-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 52px;
    height: 52px;

    border: none;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.85);

    color: black;

    font-size: 25px;

    cursor: pointer;

    display: flex;

    align-items: center;
    justify-content: center;

    z-index: 10;
}


.lightbox-arrow:hover {
    background: white;
}


.lightbox-prev {
    left: 30px;
}


.lightbox-next {
    right: 30px;
}


/* Während Lightbox offen ist nicht scrollen */

body.lightbox-open {
    overflow: hidden;
}



/* =========================================
   ÜBER MICH / VITA
========================================= */

.vita {
    list-style: none;

    padding: 0;

    margin: 0;
}


.vita li {
    display: grid;

    grid-template-columns: 120px 1fr;

    column-gap: 20px;

    margin-bottom: 12px;
}


.datum {
    font-weight: 600;

    white-space: nowrap;
}


.beschreibung {
    line-height: 1.5;
}



/* =========================================
   KONTAKTBEREICH
========================================= */

.contact-section {
    max-width: 1100px;

    margin: 0 auto;

    padding: 70px 20px 90px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;
}


.contact-box {
    background: white;

    padding: 40px;

    border-radius: 10px;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.035);
}


.contact-box h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 1.8rem;

    font-weight: 400;

    margin-bottom: 25px;
}


.contact-box h2::after {
    content: "";

    display: block;

    width: 45px;

    height: 2px;

    background: #a67c52;

    margin-top: 12px;
}


.contact-box p {
    margin-bottom: 18px;
}



/* =========================================
   KONTAKTDATEN
========================================= */

.contact-details {
    margin-top: 35px;
}


.detail {
    padding: 18px 0;

    border-bottom: 1px solid #e5e2dc;
}


.detail:first-child {
    border-top: 1px solid #e5e2dc;
}


.detail strong {
    display: block;

    margin-bottom: 4px;
}


.detail a {
    color: #292929;

    text-decoration: none;
}


.detail a:hover {
    text-decoration: underline;
}



/* =========================================
   FORMULAR
========================================= */

.form-group {
    margin-bottom: 20px;
}


.form-group label {
    display: block;

    font-weight: 600;

    margin-bottom: 7px;

    font-size: 0.95rem;
}


.form-group input,
.form-group textarea {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #d6d2ca;

    border-radius: 5px;

    background: #faf9f6;

    color: #292929;

    font-family: inherit;

    font-size: 1rem;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.form-group textarea {
    resize: vertical;

    min-height: 150px;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;

    border-color: #a67c52;

    background: white;
}



/* =========================================
   DATENSCHUTZ CHECKBOX
========================================= */

.privacy-check {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin: 25px 0;

    font-size: 0.85rem;

    color: #666;
}


.privacy-check input {
    margin-top: 6px;

    flex-shrink: 0;
}


.privacy-check a {
    color: #292929;
}



/* =========================================
   ABSENDEN BUTTON
========================================= */

.contact-box button {
    width: 100%;

    padding: 14px 25px;

    border: none;

    border-radius: 5px;

    background: #292929;

    color: white;

    font-family: inherit;

    font-size: 1rem;

    cursor: pointer;

    transition: opacity 0.2s ease;
}


.contact-box button:hover {
    opacity: 0.85;
}



/* =========================================
   FOOTER
========================================= */

footer {
    background: #aaa39f;

    color: black;

    text-align: center;

    padding: 20px;

    margin-top: 40px;
}


footer a {
    color: black;

    margin: 0 8px;
}



/* =========================================
   PFEIL NACH OBEN
========================================= */

#backToTop {
    position: fixed;

    bottom: 30px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;

    border-radius: 50%;

    background: #aaa39f;

    color: black;

    font-size: 24px;

    cursor: pointer;

    display: none;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.2);

    z-index: 1000;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


#backToTop:hover {
    transform: translateY(-3px);
}



/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    .contact-section {
        grid-template-columns: 1fr;
    }

}



/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {


    /* Header */

    header {
        padding: 10px 15px;

        justify-content: center;
    }


    nav {
        width: 100%;

        justify-content: center;

        flex-wrap: wrap;

        gap: 8px 18px;
    }


    nav a {
        font-size: 14px;
    }



    /* Hero */

    .hero {
        min-height: auto;

        padding: 25px 15px 35px;

        flex-direction: column;

        gap: 20px;
    }


    .hero img {
        position: relative;

        width: 100%;

        max-width: 350px;

        height: 300px;

        padding: 0;

        object-fit: cover;
    }


    .hero-text {
        width: 100%;

        max-width: 500px;

        padding: 20px;
    }


    .hero h1 {
        font-size: 30px;
    }


    .hero h2 {
        font-size: 19px;
    }


    .hero p {
        font-size: 16px;
    }



    /* Inhalt */

    .container {
        width: 100%;

        padding: 35px 18px;
    }


    h2 {
        font-size: 26px;
    }



    /* Cards */

    .cards {
        flex-direction: column;

        gap: 15px;
    }


    .card {
        width: 100%;

        min-width: 0;

        padding: 20px;
    }



    /* Slider */

    .image-slider-section {
        margin: 35px auto;

        padding: 0 40px;
    }


    .slider-track {
        gap: 12px;
    }


    .slider-image {
        width: 145px;

        height: 105px;
    }


    .slider-prev {
        left: -35px;
    }


    .slider-next {
        right: -35px;
    }



    /* Lightbox */

    #lightbox-image {
        max-width: 90vw;

        max-height: 80vh;
    }


    .lightbox-close {
        top: 15px;

        right: 20px;

        font-size: 38px;
    }


    .lightbox-arrow {
        width: 42px;

        height: 42px;

        font-size: 20px;
    }


    .lightbox-prev {
        left: 10px;
    }


    .lightbox-next {
        right: 10px;
    }



    /* Vita */

    .vita li {
        grid-template-columns: 90px 1fr;

        column-gap: 12px;

        font-size: 14px;
    }


    .datum {
        white-space: normal;
    }



    /* Kontakt */

    .contact-section {
        grid-template-columns: 1fr;

        padding: 45px 15px 60px;

        gap: 20px;
    }


    .contact-box {
        width: 100%;

        padding: 25px 20px;
    }


    .contact-box h2 {
        font-size: 25px;
    }



    /* Formular */

    .form-group input,
    .form-group textarea {
        width: 100%;

        max-width: 100%;

        font-size: 16px;
    }


    .form-group textarea {
        min-height: 130px;
    }



    /* Datenschutz */

    .privacy-check {
        font-size: 13px;

        gap: 8px;
    }



    /* Footer */

    footer {
        padding: 20px 15px;

        font-size: 14px;
    }



    /* Nach oben */

    #backToTop {
        width: 42px;

        height: 42px;

        right: 15px;

        bottom: 15px;

        font-size: 21px;
    }

}



/* =========================================
   SEHR KLEINE SMARTPHONES
========================================= */

@media (max-width: 400px) {


    nav {
        gap: 6px 12px;
    }


    nav a {
        font-size: 13px;
    }


    .hero {
        padding-top: 20px;
    }


    .hero img {
        max-width: 290px;

        height: 270px;
    }


    .hero-text {
        padding: 18px;
    }


    .hero h1 {
        font-size: 27px;
    }


    .container {
        padding-left: 15px;

        padding-right: 15px;
    }


    .vita li {
        grid-template-columns: 75px 1fr;

        font-size: 13px;

        column-gap: 10px;
    }


    .contact-box {
        padding: 22px 17px;
    }

}