/*
Theme Name: Ravn Soesken
Author: pinusmedia
Author URI: https://www.pinusmedia.at
Version: 1.0
*/

@font-face {
    font-family: 'Cabin';
    font-style: normal;
    src: url(fonts/Cabin-VariableFont_wdth,wght.ttf);
    font-display: fallback;
}

@font-face {
    font-family: 'Cabin';
    font-style: italic;
    src: url(fonts/Cabin-Italic-VariableFont_wdth,wght.ttf);
    font-display: fallback;
}

body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: 'Cabin', Helvetica, Arial, sans-serif;
    line-height: 1.6em;
    font-weight: 500;
    font-size: 24px;
    overflow-wrap: break-word;
}

a {
    color: #997b3e;
    text-decoration: none;
}

h1 {
    font-size: 2em;
}

figure {
    margin: 0;
    line-height: 0;
}

img {
    max-width: 100%;
}

.desktop {
    display: none;
}

.ausgeblendet {
    position: absolute;
    top: -9000px;
    left: -9000px;
}

.has-text-align-center {
    text-align: center;
}

.canvas {
    display: grid;
    grid-template-rows: 255px 1fr 428px;
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 1200px;
    background-color: #f7eedf;
}

#nach_oben {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 9999;
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 1px solid #d3d3d3;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, .25);
    cursor: pointer;
}

#nach_oben svg {
    position: absolute;
    left: 20%;
    top: 20%;
    width: 60%;
    height: 60%;
}

/* WP-bezogenes CSS */

.wp-block-image img {
    height: auto !important;
}

/* Header */

header {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    background-color: black;
}

.header-img-mobile {
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 180px;
    height: 180px;
}

.nav-button {
    position: absolute;
    bottom: 22px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 32px;
    height: 22px;
    border: none;
    background-color: black;
    background-image: url(images/menuebutton.png);
    background-size: contain;
    cursor: pointer;
}

.nav-close-button {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 32px;
    height: 22px;
    border: none;
    background-color: #f7eedf;
    background-image: url(images/close.svg);
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
}

#hauptmenue {
    position: fixed;
    z-index: 99;
    display: none;
    margin: 0 auto;
    width: 100vw;
    max-width: 1200px;
    height: 100vh;
    background-color: #f7eedf;
    background-image: url(images/wasserzeichen.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.5s ease;
    opacity: 1;
    opacity: 0;
}

#hauptmenue ul {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 50px;
    text-align: center;
}

#hauptmenue li {
    list-style: none;
    line-height: 60px;
}

#hauptmenue a {
    color: #444;
}

#hauptmenue a:hover {
    color: #997b3e;
}

/* Main */

main {
    grid-column: 1;
    grid-row: 2 / 3;
    z-index: 1;
    max-width: 100vw;
    min-height: calc(100vh - 360px);
}

article {
    padding: 30px;
}

.et_pb_text_inner {
    text-align: center;
    font-style: italic;
    font-variant: small-caps;
    font-size: 28px;
}

.et_pb_text_2,
nav {
    font-style: italic;
    font-weight: bold;
    font-variant: small-caps;
    font-size: 33px;
    letter-spacing: 5px;
}

#bg-img {
    grid-column: 1;
    grid-row: 2 / 3;
    position: sticky;
    top: 40px;
    z-index: 0;
    margin: 40px auto auto auto;
    width: 100%;
    max-width: calc(100vh - 80px);
    height: auto;
}

/* Footer */

footer {
    grid-column: 1;
    grid-row: 3 / 4;
    z-index: 1;
    padding: 30px;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, #000000 100%);
    display: grid;
    grid-template-rows: 34px 34px 34px 47px 34px 34px;
    grid-template-columns: 100%;
    grid-row-gap: 10px;
    line-height: 34px;
}

.footer-element {
    padding-left: 10px;
    border-left: 1px solid #e09900;
    font-size: 18px;
}

.footer-element>* {
    color: white;
}

.footer-email {
    grid-row: 2 / 3;
}

.footer-email a {
    color: #ad8501;
}

.footer-tel {
    grid-column: 1;
    grid-row: 3 / 4;
}

.footer-social {
    grid-column: 1;
    grid-row: 4 / 5;
    border: none;
    padding: 0;
    padding: 5px 0;
}

.footer-social>* {
    padding-right: 5px;
}

/* Individuelle Seiteneinstellungen */

/* 
IDs
-----------------------
6   Startseite
15  Markttermine
17  Markttermine-Archiv
99  Markttermine 2025
----------------------- 
*/

.page-id-6 h1,
.page-id-15 h1,
.page-id-99 h1,
.page-id-168 h1 {
    position: absolute;
    top: -9000px;
    left: -9000px;
}

.page-id-15 #bg-img,
.page-id-99 #bg-img,
.page-id-168 #bg-img {
    
    display: none;
}

.page-id-15 .entry {
    padding: 0 10px;
    background: url(images/markttermine-bg.webp);
    background-size: contain;
    background-repeat: repeat-y;
}

.page-id-99 .entry {
    padding: 0 10px;
    background: url(images/markttermine-2025-bg.webp);
    background-size: contain;
    background-repeat: repeat-y;
}

.page-id-168 .entry {
    padding: 0 10px;
    background: url(images/markttermine-2026-bg.webp);
    background-size: 100% auto;
    background-repeat: repeat-y;
}

@media only screen and (max-width: 999px) {

    .page-id-15 article,
    .page-id-99 article,
    .page-id-168 article {
            padding: 15px;
    }
}

.page-id-15 h1,
.page-id-17 h1,
.page-id-99 h1,
.page-id-168 h1 {
    text-align: center;
}

.page-id-15 p,
.page-id-17 p {
    margin: 0;
    padding: 3em 0;
}

.page-id-99 p,
.page-id-168 p {
    margin: 0;
    padding: 3em 0;
    color: #d0c482;
    text-shadow: 1px 1px BLACK;
}

.page-id-168 p {
    padding: 3em 50px;
}

@media only screen and (min-width: 768px) {
    
    .page-id-168 p {
        padding: 3em 100px;
    }
}

.page-id-99 article a,
.page-id-168 article a {
    margin: 0;
    padding: 0;
    color: #d0c482;
    text-shadow: 1px 1px BLACK;
}

.page-id-99 article a:hover,
.page-id-168 article a:hover {
    text-decoration: underline;
}

.kunsthandwerk-next-level {
    margin: 10px 0;
    line-height: 1em;
}

.speer {
    margin: 2em 0;
    text-align: center;
}

/* Desktop-Ansicht */

@media only screen and (min-width: 1000px) {

    .mobil {
        display: none;
    }

    .desktop {
        display: block;
    }

    .canvas {
        grid-template-rows: calc(100vw*0.3) 1fr 428px;
    }

    header {
        background-image: url(images/header-img.webp);
        background-size: contain;
    }

    .header-img-mobile {
        display: none;
    }

    .nav-button {
        position: absolute;
        top: calc(100vw/10);
        left: auto;
        right: 100px;
        margin: 0;
        width: 64px;
        height: 45px;
    }

    .nav-close-button {
        top: 50px;
        right: 98px;
        width: 64px;
        height: 45px;
    }

    article {
        padding: 40px 80px;
    }

    #bg-img {
        width: 830px;
    }

    footer {
        grid-column: 1;
        grid-row: 3 / 4;
        padding: 40px 80px;
        background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.74) 0%, #000000 100%);
        display: grid;
        grid-template-rows: repeat(4, 34px);
        grid-template-columns: 33.33% 33.33% 33.33%;
        grid-row-gap: 10px;
        line-height: 34px;
    }
}

@media only screen and (min-width: 1200px) {

    .canvas {
        grid-template-rows: 360px 1fr 428px;
    }

    .nav-button {
        top: 120px;
    }

}