@import url(../fonts/fonts.css);
@import url(./header.css);
@import url(./footer.css);
@import url(./variables.css);

:root {
    --container-padding: 2rem;
    --crop-text-height: 120px;
    --table-padding: 1rem;
    --quadrat-size: 500px;
    --item-margin: 1.5rem;
}

.mainGrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr;
    grid-template-areas: "aside main main .";
    padding-top: var(--height-header);
    min-height: calc(100vh - var(--height-header));
}
body{
    background-color: var(--body-bg-color);
}

h2,
h3,
p,
blockquote,
cite,
ul,
main table *,
aside ul * {
    line-height: 1.5;
    font-family: "Poppins", sans-serif;
}

aside p,
main p,
aside blockquote,
aside ul {
    font-size: 18px;
    max-width: 75ch;
    hyphens: auto;
}

aside {
    grid-area: aside;
    width: 100%;
    height: 100%;
    border-right: 1px solid var(--body-color);
    padding: var(--container-padding);
    padding-top: calc(var(--crop-text-height)) ;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    color: var(--body-color)
}

main {
    grid-area: main;
    width: 100%;
    height: 100%;
    padding:  0 var(--container-padding) var(--container-padding) var(--container-padding);
    box-shadow: 5px 0px 5px -2px var(--header-bg-color);
    color: var(--body-color);
}
main a{
    color: var(--body-color);
}

aside,
main {
    box-sizing: border-box;
}
aside ul{
    max-width: 60%;
}
aside ul li{
    text-align: left;
}
aside ul li a,
aside a {
    color: var(--body-color);
    text-decoration: underline;
}
aside ul li a:hover {
    font-weight: 600;
}
aside h2 {
    font-size: 22px;
    font-weight: 600;
}
.clip-text {
    font-size: var(--crop-text-height);
    background: url(../img/font-clip/spice_1.jpg);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    width: min-content;
    background-size: cover;
    color: var(--body-color);
    line-height: 1.2;
    font-family: "Work Sans", sans-serif;
    font-weight: 900;
    text-transform: uppercase;
}
.crop{
    display: flex;
    align-items: center;
    flex-direction: column;
}
.crop p{
    font-size: 20px;
}

main table{
    border-collapse: collapse;
    margin: 0 0 var(--item-margin) 0;
    width: 100%;
    box-shadow: 0px 0px 5px 1px var(--header-bg-color);
} 
main table th, main table td{
    padding: var(--table-padding);
}
main table th{
    width: 30%;
}
main table td{
    width: 70%;
}
main table th{
    text-align: right;
}
main table tr:nth-child(2n + 1){
    background-color:var(--header-bg-color) ;
}
.quadrat{
    width: var(--quadrat-size);
    height: var(--quadrat-size);
    object-fit: cover;
    margin: var(--item-margin) 0 0 0;
    display: block;
}
#quelle, .quelle, main sub{
    font-size: 14px;
}
.imgDescr{
    font-size: 16px;
    margin: calc(var(--item-margin) / 4) 0 var(--item-margin) 0;
    font-style: italic;
}

/* fix in future: too complicated media queries for individual parts.
set 4 fixed screen sizes (min, max) and then style only for them
*/
@media screen and (min-width: 1800px){
    .mainGrid{
        padding-left: 10rem;
        padding-right: 10rem;
    }
}
@media screen and (min-width: 400px) and (max-width: 500px) {
    :root{
        --crop-text-height: 70px;
    }
}

@media screen and (min-width: 500px) and (max-width: 700px) {
    :root{
        --crop-text-height: 90px;
    }
}

@media screen and (max-width: 400px) {
    :root{
        --crop-text-height: 60px;
    }
    table *{
        font-size: 14px;
    }
}

@media screen and (max-width: 320px) {
    :root{
        --crop-text-height: 50px;
    }
}

@media screen and (max-width: 500px) {
    main{
        padding: 0 calc(var(--container-padding) / 2) calc(var(--container-padding) / 2) calc(var(--container-padding) / 2);
    }
    .box{
        width: 90% !important;
        height: var(--box-Width);
    }
    .boxWrapper{
        display: flex;
        justify-content: center;
    }
}


@media screen and (max-width: 700px) {
    .quadrat{
        width: 100%;
    }
}
@media screen and (max-width: 1000px) {
    .mainGrid{
        display: flex;
        flex-direction: column;
        flex-direction: column-reverse;
    }
    aside{
        padding: var(--container-padding);
        align-items: flex-start;
        border-top: 1px solid var(--body-color);
        border-right: 0px;
        text-align: left;
    }
    aside ul{
        margin: 0 0 0 2rem;
    }
    
}
@media screen and (max-width: 1500px) and (min-width: 1000px){
    .mainGrid{
        grid-template-columns: 1fr 2fr 1fr;
        grid-template-areas: "aside main .";
    }
}

