/* Farbpalette als Variablen */
:root {
    --hell: #E0B1CB;
    --mittel: #BE95C4;
    --akzent: #9F86C0;
    --dunkel: #5E548E;
    --text: #231942;
}

/* Eigene Schriftarten */
/* herunterladen bei fonts.google.com */
/* convertieren bei transfonter.org */
@font-face {
    font-family: 'Indie Flower';
    src: url('../fonts/IndieFlower.woff2') format('woff2'),
        url('../fonts/IndieFlower.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fuzzy Bubbles';
    src: url('../fonts/FuzzyBubbles-Bold.woff2') format('woff2'),
        url('../fonts/FuzzyBubbles-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fuzzy Bubbles';
    src: url('../fonts/FuzzyBubbles-Regular.woff2') format('woff2'),
        url('../fonts/FuzzyBubbles-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* Globale Einstellungen */
body {
    font-family: 'Fuzzy Bubbles', 'Indie Flower', Verdana, Arial, sans-serif, Gabriola;
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    ;
    color: var(--text);

    display: flex;
    flex-direction: column;
    min-height: 100vh;

    margin: 0 auto;
    max-width: 1400px;

    background: linear-gradient(var(--hell), var(--mittel), var(--akzent));
}

/* Überschriften */
h1 {
    margin: 0;
    font-size: clamp(2rem, 2.5vw, 3rem);
    font-weight: bold;
}

/* Links */
a {
    color: var(--dunkel);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--mittel);
}

li {
    margin-bottom: 1em;
}

/* Trenner */
hr {
    border: 3px solid var(--dunkel);
    border-radius: 3px;
    width: 80%;
    margin: 3em auto;
}

/* Main Content */
main {
    flex: 1;
    background-image: url("../bilder/jannamanu.png");

    background-attachment:fixed;

    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: auto 60vh;
    padding: 20px 0;
}

/* Content Boxen */
#content div,
#countdown {
    margin-bottom: 20px;
    background-color: rgba(238, 223, 232, 0.8);
    box-shadow: 0 4px 8px rgba(35, 25, 66, 0.3);
    border-radius: 15px;
    padding: 2%;
}

/* Header */
#header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;

    border-radius: 20px;
    background-color: var(--mittel);
    box-shadow: inset 0 50px 100px var(--hell);
}

#header h1 {
    margin: 0;
    font-size: clamp(2rem, 7vw, 6rem);
    text-align: center;

}

div#header div.ringe {
    width: 20%;
}

div#header div.ringe img {
    width: 100%;
}

/*  Navigation allgemein */
nav {
    width: 100%;
    position: relative;
    background-color: rgba(238, 223, 232, 0.8);
    box-shadow: 0 4px 8px rgba(35, 25, 66, 0.3);
    border-radius: 15px;
    display: flex;
    justify-content: center;
}

nav img {
    height: 60px;
    width: auto;
    margin: 10px;
}

/* Menü Desktop */
#menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.25rem, 1.5vw, 2rem);

    height: 60px;
    padding: 5px 15px;
    margin: 5px;

    color: white;
    background-color: var(--akzent);
    border-radius: 10px;
    box-shadow: inset 0 -10px 10px var(--dunkel);

    text-decoration: none;
    transition: all 0.3s ease;
}

#menu a:hover,
#menu a.active {
    background: var(--mittel);
    box-shadow: inset 0 10px 10px var(--hell);
    transform: scale(1.05);
}

#menu li {
    margin: 0;
}

#menu li img {
    height: 60px;
    width: auto;
    margin: 10px;
    display: block;
}

/* Hamburger-Button */
.menu-toggle {
    display: none;
    /* nur auf Smartphones sichtbar */
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
    /* über dem Menü */
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Animation zum Kreuz */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Countdown */

#countdown {
    justify-content: center;
    display: flex;
    flex-direction: column;
}

#countdown img {
    width: 60%;
    margin: auto;
    display: flex;
    border-radius: 20px;
    display: none;
}

.countdown {
    display: flex;
    gap: 1rem;
    justify-content: center;
    color: #fff;
}

.feld {
    text-align: center;
    padding: 10px;
    min-width: 15%;
    background-color: var(--akzent);
    border-radius: 10px;
    box-shadow: inset 0 -10px 10px var(--dunkel);
}

.wert {
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: bold;
}

.text {
    font-size: clamp(0.8rem, 1.5vw, 1.5rem);
    margin-top: 0.25rem;
}

/* Footer */
footer {
    background: rgba(159, 134, 192, 0.8);
    color: var(--text);
    text-align: center;
    border-radius: 15px;
    padding: 1rem;
}

/* weitere Inhalte, wie Fotos */
.foto {
    width: 50vb;
}

/* Smartphone-Ansicht */
@media (max-width: 768px) {
    nav {
        display: block;
    }

    #menu {
        /* statt nebeneinander → untereinander */
        flex-direction: column;
        gap: 0;

        align-items: stretch;

        max-height: 0;
        /* Höhe = 0 */
        overflow: hidden;
        /* Inhalt abgeschnitten */
        transition: max-height 0.3s ease-out;
        /* sanftes Aufklappen */
    }

    #menu li {
        /* jedes Listenelement nimmt volle Breite */
        width: 100%;
        margin: 0;
    }

    #menu a {
        width: 90%;
        margin: 3px auto;
    }

    #menu li img {
        margin: 10px;
    }

    .menu-toggle {
        display: flex;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    #menu.show {
        max-height: 1000px;
    }

    #countdown img {
        width: 100%;
    }
}