* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
html {
    font: 1.25rem sans-serif;

    scroll-behavior: smooth;
}
body {
    background: #ffefe6;
}


/* Navigation ------------------------------------*/
#topnav {
    display: block;
    height: 40px;
    padding: 0 2%;
    position: fixed;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffefe6;
    border-bottom: 1px solid #ffd77c;
}

#topnav div {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

#topnav ul {
    display: flex;
    gap: 30px;
}

#topnav li {
    list-style: none;
}

#topnav a {
    color: #000000;
    text-decoration: none;
    transition: 0.3s;
}

#topnav a:hover {
    text-decoration: underline;
}

.menue-button {
    display: none;
}

/* Section Countdown -----------------------------------------------*/
#countdown {
    height: 100vh;
    padding: 8rem 0;
    background-image: url(img/tenuta_wedding_2.jpg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    transition: background-image 1.5s ease-in-out;
}
#countdown h1 {
    font-size: 3rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1rem;
    color: #ffd77c;
    text-align: center;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.7);
}

#countdown h2 {
    margin-bottom: 1rem;
}
#countdown-timer, #countdown h2, #countdown .timer {
    font-size: 2rem;
    color: #ffd77c;
    text-shadow: 2px 2px 2px #000;
}

#galerie {    
    display: flex;
    gap: 100px;
}

/* Section Kontakt ------------------------------------------------*/
#kontakt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem 0;
    min-height: 100vh;
}
#kontakt h2 {
    font-size: 2rem;
    padding-bottom: 1rem;
}
form {
    padding: 1rem;
    background: #ffe8bd;
}
form input, form textarea, select {
    width: 200px;
    height: 50px;
    background: none;
    border: none;
    border-bottom: 1px solid;
    margin: 5px 0;
}
form input[type="date"] {
    width: 100px;
}
form select {
    display: block;
}
input[type="submit"] {
    display: block;
    margin: 1rem auto 0;
    width: 200px;
    height: 50px;
    border: 1px solid;
    border-radius: 999px;
    box-shadow: 0px 0px 5px #000;
    transition: 0.5s;
}
input[type="submit"]:hover {
    background: #ffd77c;
}
textarea {
    resize: none;
}
#zusage_absage {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    position: relative;
}
#zusage_absage::after {
    content: "";
    display: block;
    bottom: 0;
    position: absolute;
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5);
}

#zusage_absage label {
    display: block;
}

#zusage_absage input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 0 0 10px;
    accent-color: #c29c44;
}

/* Footer --------------------------------------------------------*/
#footer {
    padding: 5px;
    border-top: 1px solid #ffd77c;
}
#footer a {
    color: #000;
    text-decoration: none;
}

/*Impressum und Datenschutz*/

main {
    min-height: 100vh;
    max-width: 50%;
    margin: 50px auto 10px;
    text-align: center;
}
main p {
    padding: 1rem 0;
}
main h1, main h2,main p {
    font-size: 1rem !important;
}
main a {
    color: #000;
    text-decoration: none;
}

/* Klassen --------------------------------------------------------*/
.wrapper {
    max-width: 80%;
    margin: 0 auto;
}

.lightbox .lb-image {
    border-color: #ffd77c;
}
.galerie img {
    width: 50%;
    border: 5px solid #ffefe6;
    border-radius: 5px;
    margin: auto;
    transition: 0.5s;
}

.galerie img:hover {
    transform: scale(1.1);
    border-color: #ffd77c;
}

.countdown {
    text-align: center;
    font-size: 2rem;
}
.form_spalter {
    display: flex;
    align-items: center;
    gap: 50px;
}

.footer {
    display: flex;
    justify-content: space-between;
}

/* @media ------------------------------------------------------------------*/

/* Desktop min-width 1400px*/
@media (min-width: 1600px) {
    /* Section Kontakt ------------------------------------------------*/
    
    form input, form textarea, select {
        width: 300px;
        height: 100px;
    }
}

/* tablet max-width 920px*/

@media (min-width: 601px) and (max-width: 920px) {

/* Section Kontakt ------------------------------------------------*/

form {
    padding: 1rem 2rem;
}
.form_spalter {
    flex-direction: column;
    gap: 20px;
}

/* countdown -------------------------------*/

#countdown h1 {
    font-size: 2rem;
}
/* location -----------------------------------------------*/
#location {
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

}
/* mobile ------------------------------------------------------------*/

@media (max-width: 600px) {

/* Navigation ------------------------------------*/
#topnav {
        height: 50px;
    }
    #topnav p {
        line-height: 25px;
    }
    
    #topnav div {
        flex-direction: row-reverse;
    }
    #topnav #menue {
        display: none;
        
        background-color: #ffe8bd;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        font-size: 1.5rem;
    }
    #menue li {
        padding-bottom: 25px;
        border-bottom: 2px solid #ffd77c;
    }
    #menue li:last-child {
        border: none;
    }
    #topnav .menue-button {
        display: block;
        position: fixed; 
        right: 5px;
        top: 3px;
        text-shadow: 0 0 1px rgba(255,255,255,0.7);
        border: 2px solid #ffd77c;
        border-radius: 50%;
        padding: 6px 12px 6px 12px;
    }
    
    #topnav .menue-button:hover {
        text-decoration: none;
    }
    
    #topnav #menue:target {
        display: flex;
    }

/* Section Countdown -----------------------------------------------*/
#countdown h1 {
    font-size: 1.5rem;
}

#countdown h2, #countdown .timer {
    font-size: 1rem;
}



/* Section Kontakt ------------------------------------------------*/

form {
    padding: 1rem 2rem;
}
.form_spalter {
    flex-direction: column;
    gap: 20px;
}
/* Footer --------------------------------------------------------*/
#footer {
    text-align: center;
    line-height: 30px;
}

.footer {
    display: block;
}
}
