@import url("styles_fonts.css");

:root {
    --header-text-color: white;
    --text-color: black;
    --background-color: white;
    --nav-color: white;
    --nav-text-color: black;
    /*article-apes*/
    --article-apes-background-color: #F2AF88;
    --article-apes-text-color: #40201D;
    /*article-space*/
    --article-space-background-color: #111112;
    --article-space-text-color: #97b9f0;
    /*article-redner*/
    --article-redner-background-color: #ffffff;
    --article-redner-text-color: #253a4b;
    ;
}

div {
    display: unset;
}

h2 {
    padding: 0em;
    margin: 0em;
    margin-block: 0em;
}

/* Grid */
.grid-container {
    display: grid;
    grid-template-columns: 20% auto 20%;
    grid-template-areas:
        "header header header"
        "nav nav nav"
        "main main main"
        "footer footer footer";
    grid-template-rows: auto auto 1fr auto;
    padding: 0px;
    column-gap: 0px;
    row-gap: 0px;
}

/* Body */
body {
    font-family: Mada, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

/* Header */
.header {
    grid-area: header;

    height: 20em;
    margin: 0px;
    padding: 0 5% 1em 0;
    background-image: url(../images/alexander-Eiterer.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center 7%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-end;
    text-align: end;
}

.header-redner {
    grid-area: header;

    height: 20em;
    margin: 0px;
    padding: 0 5% 1em 0;
    background-image: url(../images/d8f94f8a59391.webp);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center 030%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-end;
    text-align: end;
}

.header-art {
    grid-area: header;

    height: 20em;
    margin: 0px;
    padding: 0 5% 1em 0;
    background-image: url(../images/gta2.jpg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center 80%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-end;
    text-align: end;
}



.header h1,
.header-redner h1,
.header-art h1 {
    font-family: "Nothing You Could Do", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: lighter;
    font-style: oblique;
    color: var(--header-text-color);
    font-size: 3em;
    margin-block: 0;
}

.header h3,
.header-redner h3,
.header-art h3 {
    font-family: "Mada", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: normal;
    color: var(--header-text-color);
    font-size: 1.5em;
    margin: 0px;
}

/* Navigation */
.nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-content: center;
    column-gap: 2em;
    font-family: "Nothing You Could Do", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--nav-color);
    font-size: 1.8em;
    font-style: normal;
    padding: 0.5em;

    position: sticky;
    top: 0;
    /* Fixiert das Element am oberen Rand */
}

.nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 2em;
}

.nav li {
    display: inline;
    flex-shrink: 0;
}

.nav a {
    color: var(--nav-text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    /* Verhindert Umbruch innerhalb eines Links */
}

.nav a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

.nav a:active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

/* Main Content */

main {
    grid-area: main;
    justify-self: center;
}

#monkey {
    background-color: var(--article-apes-background-color);
    color: var(--article-apes-text-color);
}

#space {
    background-color: var(--article-space-background-color);
    color: var(--article-space-text-color);
}

.blog-entry {
    max-width: 80%;
    margin: 2em auto;
    display: grid;
    gap: 1em;
    grid-template-areas:
        "top"
        "bottom";
}

.top {
    grid-area: top;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.top img {
    width: 90%;
    height: auto;
    object-fit: cover;
    padding: 1em;
}

.top .text {
    padding: 1em;
    flex: 1;
}

.bottom {
    grid-area: bottom;
    display: flex;
    gap: 1em;
    justify-content: space-between;
}

.bottom .card {
    background-color: var(--article-apes-background-color);
    color: var(--article-apes-text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 33%;
}

.bottom .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}


.bottom2 {
    grid-area: bottom;
    display: flex;
    gap: 1em;
    justify-content: space-between;
}

.bottom2 .card {
    background-color: var(--article-apes-background-color);
    color: var(--article-apes-text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 24%;
}

.bottom2 .card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.bottom .card .text {
    padding: 0.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; */
}

/* redner */
.blog-entry-redner {
    max-width: 80%;
    justify-self: center;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas:
        "head1 head1 head1"
        "blog12 blog12 blog11"
        "head2 head2 head2"
        "blog21 blog22 blog22"
        "head3 head3 head3"
        "blog32 blog32 blog31"
        "img1 img2 img3";
    gap: 1em;

}

#head1 {
    grid-area: head1;
}

#blog11 {
    grid-area: blog11;
}

#blog12 {
    grid-area: blog12;
}

#head2 {
    grid-area: head2;
}

#blog21 {
    grid-area: blog21;
}

#blog22 {
    grid-area: blog22;
}

#head3 {
    grid-area: head3;
}

#blog31 {
    grid-area: blog31;
}

#blog32 {
    grid-area: blog32;
}

#img1 {
    grid-area: img1;

}

#img2 {
    grid-area: img2;
}

#img3 {
    grid-area: img3;
}

.top-redner {
    background-color: var(--article-redner-background-color);
    color: var(--article-redner-text-color);
    gap: 20px;
}

.top-redner hr {
    border: none;
    border-top: 2px solid #253a4b;
    margin: 5px 0;
}

.top-redner h2 {
    font-family: "Nothing You Could Do", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: lighter;
    font-style: oblique;
    font-size: 2em;
    margin-block: 0;
    text-align: center;

}



.img-redner img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

}

#img1.img-redner2,
#img2.img-redner2,
#img3.img-redner2 {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    justify-self: center;

}

.text-redner {
    grid-area: right2;
}

.text-redner p {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Kontakt */
.contact-form {
    background-color: #fff;
    padding: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    margin: 2em;
}

.contact-form h2 {
    margin-bottom: 1em;
    font-size: 1.5em;
    text-align: center;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5em;
    font-size: 0.9em;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    width: 390px;
    padding: 0.8em;
    margin-bottom: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.contact-form input,
.contact-form textarea {
    background-color: #f9f9f9;
    color: #333;
    outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background-color: #fff;
    border-color: #666;
}

.contact-form button {
    background-color: #333;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #555;
}

.contact-form textarea {
    resize: none;
    height: 100px;
}



/*gallery*/

.masonry-gallery {
    width: 80%;
    justify-self: center;
    margin: 40px 0;
}

.masonry-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.masonry-container img {
    max-height: 300px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.masonry-container img:hover {
    transform: scale(1.3);
    z-index: 1000;
}

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

    
    .masonry-gallery {
        width: 100%;
        height: auto;
        justify-self: center;
        margin: 0;
    }
    .masonry-container {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    .masonry-container img {
        max-height: 250px;
        width: auto;
        max-width: 50%;
        height: auto;  
        object-fit: contain;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: none;
        transition: transform 0.3s ease-in-out;

    }

}

@media (max-width: 480px) {
    .masonry-container img {
        max-height: 200px;
        width: auto;
        max-width: 100%;
    }
}



/* Footer */
.footer {
    grid-area: footer;
    background: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

.footer a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

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










/* Für Tablets und kleine Bildschirme */
@media (max-width: 768px) {

    .grid-container {
        grid-template-columns: 1fr;
        /* Eine Spalte */
        grid-template-areas:
            "header"
            "nav"
            "main"
            "footer";
    }

    .nav {
        justify-content: center;
        /* Zentriere die Menüpunkte */
    }

    .nav ul {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }

    .nav {
        font-size: 1.5em;
        padding: 1em 0;
        position: static;
    }

    .nav a {
        display: block;
        margin: 5px 0;
    }

    /* .header
    .header-art,
    .header-redner {
        background-size: contain;
        text-align: center;
        padding: 15px;
    } */

    .blog-entry {
        max-width: 95%;
    }

    .top img {
        width: 100%;
        height: 200px;
    }

    .top {
        flex-direction: column;
    }

    .bottom {
        flex-direction: column;
    }

    .bottom .card {
        max-width: 100%;
    }

    .blog-entry-redner {

        justify-self: center;
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "head1"
            "blog11"
            "blog12"
            "head2"
            "blog21"
            "blog22"
            "head3"
            "blog31"
            "blog32";
        gap: 1em;

    }



    .contact-form input {
        width: 100%;
    }

    .impressum {
        grid-area: main;
        width: 80%;
    }

    .footer {
        text-align: center;
        padding: 10px;
    }
}

/* Für Smartphones */
@media (max-width: 480px) {
    .header {
        font-size: 16px;
        /* Kleinere Schriftgröße */
        padding: 10px;
    }



    .body {
        font-size: 14px;
        padding: 10px;
    }

    .footer {
        font-size: 12px;
        padding: 5px;
    }
}