/* Schriften */
@font-face {
    font-family: 'Dream-Orphans';
    src: url("Schriften/Dream-Orphans.woff");
}
@font-face {
    font-family: 'Barlow';
    src: url("Schriften/Barlow-Regular.woff");
}
@font-face {
    font-family: 'Barlow-Medium';
    src: url("Schriften/Barlow-Medium.woff");
}
@font-face {
    font-family: 'ElegantIcons';
    src: url("Schriften/ElegantIcons\ Webfont.woff");
}
[data-icon]:before {
	font-family: 'ElegantIcons';
	content: attr(data-icon);
    line-height: 1;
    margin-right: 3pt;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Allgemeines, Überschriften, Links, b, etc. */
html {
    scroll-behavior: smooth;
}
body {
    background: #fff;
    font: 10pt 'Barlow';
    color: #1c2226;
    line-height: 19pt;
    margin: 0;
}
canvas {
    position: absolute;
    max-width: 96vw !important;
    filter: blur(0px);
    z-index: 1;
}
h1 {
    font-family: 'Dream-Orphans';
    font-size: 52pt;
    line-height: 62pt;
    text-align: center;
    background: -webkit-linear-gradient(#462c15, #313e48);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
h1.intro {
    margin: 4vh 0 0 0;
    z-index: 10;
}
h2 {
    font: 24pt 'Barlow-Medium';
    letter-spacing: 3pt;
    font-weight: bold;
    text-align: center;
    margin: 2vh auto 2vh auto;
    color: #977d6d;
    z-index: 10;
}
h3 {
    font-family: 'Dream-Orphans';
    font-size: 24pt;
    line-height: 24pt;
    text-align: left;
    margin: 0 0 2vh 0;
}
h5 {
    font-size: 18pt;
    margin: 30pt 0 6pt 0;
}
.p {
    height: 10pt !important;
}
a {
    text-decoration: none;
    color: #7e6556;
}
a:hover {
    color: #977d6d;
    transition-duration: 0.4s;
}
.hidden {
    opacity: 0;
    transition: all 1s;
    transform: translateY(+20%);
}
.schweben {
    opacity: 1;
    transform: translateY(0);
}

/* Menü */
.menu {
    overflow: visible;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: auto;
    padding: 28pt 0;
    background-color: none;
    background-position: center;
    transition-duration: 0.8s;
    z-index: 99;
    text-align: center;
    font-size: 18pt;
}
.menuwidth {
    width: 76vw;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 4vw;
}
.menu a {
    font-family: 'Dream-Orphans';
    color: #27343e;
    text-decoration: none;
    line-height: 20pt;
}
.menu a:hover {
    color: #d9dcde;
    transition-duration: 0.4s;
}
.menu.firstsector, .menu.impdatamenu {
    background-color: #404d57;
    transition-duration: 0.8s;
}
.menu.firstsector a, .menu.impdatamenu a {
    color: #e8ebed;
}
.menu.firstsector a:hover, .menu.impdatamenu a:hover {
    color: #8b989c;
}

/* Block Intro, Zitat */
#quote {
    display: grid;
    place-items: center;
    align-content: center;
    vertical-align: middle;
    width: 100%;
    top: 0;
    left: 0 !important;
    min-height: 110vh;
    background: #313e48;
    background-image: url('Bilder/GRAFIK_bg_quote.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-top: 0;
    margin-left: 0;
    padding: 0;
    transition-duration: 1s;
}
#quote .button {
    margin: 0 !important;
    background: #5c7a92;
    z-index: 10;
}
#quote .button:hover {
    background: #7290a9;
    color: #fff;
}

/* Block Die Raubkönigin */
#book {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    top: 0;
    left: 0 !important;
    background: #313e48;
    transition-duration: 1s;
    position: relative;
    z-index: 10;
}
.bookgrid {
    margin: 0 12vw;
    width: 74vw;
    display: inline-grid;
    grid-template-columns: [bookc1] 20vw [bookc2] 3vw [bookc3] 1.5vw [bookc4] auto [bookc5] 4vw [end];
    grid-template-rows: [bookr1] auto [bookr2] 40vh [bookr3] 7vh [bookr4];
}
.cont {
    grid-column-start: bookc2;
    grid-column-end: end;
    grid-row-start: bookr1;
    grid-row-end: bookr3;
    background-color: #e8ebed;
    padding: 4vw 4vw 4vw 4.5vw;
}
.hashtags {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    margin: 0 0 10pt 0;
    gap: 6px;
    row-gap: 4px;
    flex-wrap: wrap;
}
.tag {
    background: #c9d0d2;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
}
.previmage {
    grid-column-start: bookc1;
    grid-column-end: bookc3;
    grid-row-start: bookr2;
    grid-row-end: bookr4;
    background-image: url('Bilder/BILD_Buch_frontal_V01_kleiner.JPG');
    background-size: cover;
    background-position: center;
    z-index: 10;
}
.clickable {
    grid-column-start: bookc4;
    grid-column-end: end;
    grid-row-start: bookr3;
    grid-row-end: bookr4;
    align-self: end;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.8vw 1.2vw;
}
.button {
    background-color: #462c15;
    color: #fff;
    padding: 3.6pt 32pt;
    line-height: 20pt;
    font-family: 'Dream-Orphans';
    letter-spacing: 1pt;
    text-decoration: none;
    transition-duration: 1s;
    text-decoration: none;
    display: inline-block;
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    will-change: transform;
}
.button img {
    height: 8pt;
    margin: 0 8pt 0 -4pt;
}
.button:hover {
    background-color: #6f533d;
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    transform: translateY(-2px);
    color: #fff;
}
.button:active {
    box-shadow: none;
    transform: translateY(0);
}
.socialmedia {
    font-size: 24pt;
    color: #462c15;
    text-decoration: none;
    align-self: center;
}
/* .socialmedia a:hover {
    color: #6f533d;
    transition-duration: 0.6s;
} */

/* Klappentext-Popup */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    background: none;
    visibility: hidden;
    opacity: 0;
    overflow: auto;
    z-index: 200;
}
.overlay:target {
    visibility: visible;
    opacity: 1;
}
.popup {
    margin: 4vh 8vw;
    padding: 4vw;
    background: #e8ebed;
    width: 76vw;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}
.popup .close:hover {
    color: #27343e;
}
.popup .content img {
    max-height: 76vh;
    max-width: 76vw;
    overflow: auto;
    align-self: center;
}

/* Block Autor */
#author, #impdata {
    width: 100%;
    top: 0;
    left: 0 !important;
    background: #8b989c;
    background-image: url('Bilder/GRAFIK_bg_author.png');
    background-size: cover;
    background-position: top;
    margin: 0;
    padding: 0;
    transition-duration: 1s;
    z-index: 10;
}
#author {
    position: relative;
    min-height: 70vh;
}
.authorgrid {
    margin: 0 12vw;
    width: 74vw;
    display: inline-grid;
    grid-template-columns: [bookc1] auto [bookc2] 0.6vw [bookc3] 23vw [end];
    grid-template-rows: [bookr1] auto [bookr2] 40vh [bookr3] 6vh [end];
}
.contauthor {
    grid-column-start: bookc1;
    grid-column-end: bookc3;
    grid-row-start: bookr1;
    grid-row-end: bookr3;
    background: none !important;
    color: #eee !important;
}
.contauthor .hashtags .tag {
    background-color: #fff;
    opacity: 0.3;
}
.portrait {
    grid-column-start: bookc3;
    grid-column-end: end;
    grid-row-start: bookr2;
    grid-row-end: end;
    background-image: url("Bilder/BILD_Portrait_in_Bank_kleiner.jpg");
    background-size: cover;
    background-position: center;
}
/* .secondportrait {
    grid-column-start: bookc2;
    grid-column-end: bookc5;
    grid-row-start: bookr3;
    grid-row-end: end;
    background-image: url("Bilder/BILD\ Gesellenstück.jpg");
    background-size: cover;
} */
.authorlinks {
    grid-column-start: bookc1;
    grid-column-end: bookc2;
    grid-row-start: bookr3;
    grid-row-end: end;
    justify-self: end;
    align-self: end;
    margin-right: 2vw;
}

/* Footer */
#footer {
    text-align: center;
    padding: 28pt 0;
    background: #8b989c;
    font: 12pt 'Barlow';
    color: #1c2226;
    line-height: 19pt;
    z-index: 10;
}
#footer a {
    font-weight: bold;
    text-decoration: none;
    color: #1c2226;
}
#footer a:hover {
    color: #404d57;
    transition-duration: 0.4s;
}
.footerwidth {
    width: 76vw;
    margin: 0 12vw;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: flex-end;
}
.column, .columnright {
    width: auto;
    text-align: left;
    padding: 0 4vw;
    display: flex;
    flex-direction: column;
}
.columnright {
    text-align: right;
}
.footerrow {
    margin: 0 !important;
}

/* Impressum & Datenschutz */
#impdata {
    padding-bottom: 12vh;
    height: auto !important;
}
p.impdatap {
    height: 18vh;
}
.impdatacont {
    margin: 0 12vw;
    width: 66vw;
    background-color: #e8ebed;
    padding: 4vw 4vw 4vw 4.5vw;
}
.textbox {
    margin: 6vh 0;
    background-color: #e8ebed;
    padding: 4vw 4vw 4vw 4.5vw;
}
.impdatafooter {
    margin: 0;
    position: relative;
}

/* Layout-Anpassungen bei einem kleineren Screen */
@media only screen and (max-width: 600px) {
    /* Allgemeines */
    h1 {
        font-size: 38pt;
        line-height: 42pt;
    }
    h2 {
        font-size: 20pt;
    }
    .menu, .menu a {
        font-size: 14pt;
        line-height: 16pt;
        gap: 2vw 0;
    }
    .socialmedia {
        font-size: 14pt;
    }

    /* Abstände zum Rand schmälern */
    .bookgrid, .authorgrid, .footerwidth, .impdatacont, .clickable {
        margin: 0 8vw;
        width: 84vw;
    }
    /* Block Die Raubkönigin */
    .bookgrid {
        display: flex;
        flex-direction: column;
    }
    .clickable {
        align-self: center;
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        gap: 1.8vw 1.2vw;
        margin-top: 1.8vw;
        width: 84vw !important;
    }
    .button {
        align-self: center;
    }
    .clickable .button {
        display: block;
        width: 67vw;
    }
    .previmage {
        height: 46vw;
        background-size: cover;
        background-position: center;
    }

    /* Block Autor */
    #author {
        padding-top: 10vh;
    }
    .authorgrid {
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .authorgrid .cont {
        padding: 0;
    }
    .authorlinks {
        align-self: center;
        margin-right: 0;
    }
    .portrait {
        height: 46vw;
        margin-top: 18pt;
        background-size: cover;
        background-position: top;
    }

    /* Footer */
    .column {
        padding: 0;
    }
}

@media only screen and (max-height: 300px) {
    .menu {
        text-align: center;
        font-size: 14pt;
        padding: 12pt 0;
    }
    .socialmedia {
        font-size: 14pt;
    }
    .menuwidth {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-evenly;
        gap: 2vw;
    }
    .menu a {
        line-height: 16pt;
        align-self:baseline;
        justify-self:baseline;
    }
}