/*
Theme Name: Förderverein Brandenburger Symphoniker
Theme URI: 
Author: Fabian Bertoncello
Author URI: 
Description: simple and straightforward
Requires at least: 6.7
Tested up to: 6.7
Requires PHP: 7.2
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foerderverein
Tags: 
*/

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 * From Theme twentytwentyfive
 */
/*a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}*/

* {
    padding:0;
    margin:0;
}

a {
    all: unset;
}

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

    *, *:before, *:after {
    -webkit-margin-before: 0;
    -webkit-margin-after: 0;
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

/******************/
/* Flexbox Layout */
/******************/

body.flex {
    /* Flex Parent 
    display: flex; 
    flex-direction: column;
    justify-content: center;
    */
    display: block;
}

body.flex > * {
    /* Flex Child 
    flex-grow:1; */
}

footer {
    /* Flex Child 
    flex-grow:0; */
}

#flexcontainer {
    /* Flex Child */
    flex-grow: 10;
    /* Flex Parent */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

#flexcontainer.page {
    display: block;
    justify-content: start;
    align-items: initial;
}

#flexcontainer > #title {
    /* Flex Child */
    align-self: flex-start;
}

#flexcontainer > nav {
    /* Flex Child */
    align-self: flex-end;
}

/*footer {
    /* Flex Parent *//*
    display: flex;
    flex-direction: row;
    justify-content: center;
}*/

footer > * {
    /* Flex Child 
    flex:none; */
    text-align: right;
}

/* https://stackoverflow.com/questions/39080958/applying-transition-on-flexbox-justify-content-property */
/*footer > *:hover {*/
#mylink.out {
    flex: 1;
    transition: moveAnim 0.3s alternate 1;
/*    transition:background 6000ms;*/
  }

/*#myLink.out {
    background:#CC0000;
}*/

@keyframes moveAnim {
    from { flex: none }
    to{ flex: 1 }
}


/**/

#title.page {
    position: fixed;
    top:0;
    right:0;
    padding: 70px 50px;
    text-align: right;
}

.page > nav {
    position:fixed;
    bottom: 0;
    right: 0;
}

div.post {
    opacity: 0.3;
}

div.post.select {
    opacity: 1;
}

/**********/
/* Spaces */
/**********/

body {
    max-width: 1500px;
    margin: 0 auto;
    padding: 70px 50px 50px 50px;
}

body.flex {
    padding: 0 50px;
}

body.flex #flexcontainer {
    min-height: 100%;
}

body.flex #title {
    padding-top: 70px;
}

body.flex nav {
    padding-bottom: 50px;
}

.news {
    padding: 45px 0;
}

#flexcontainer.page {
    max-width: 70%;

}
div.post {
/*    padding-top: 30px; */
    padding-top: 50px;
    padding-bottom: 0px;
}

#title {
    line-height: 1.5em;
}

img {
    max-height: 400px;
}

figure {
    text-align: center;
}

nav li {
    list-style: none;
}

a:hover {
    cursor: pointer;
}


/* Nav */

.page > nav {
    max-width: 30%; /* #flexcontainer.page */
    padding: 50px 50px 50px 0;
}

nav li, footer > div {
    padding: 0.4em 0;
}

nav ul ul {
    padding-bottom: 0.3em;
}

nav ul ul li {
    padding: 0.3em 0;
}


/********************/
/* Navigation Style */
/********************/

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    text-align:right;
}

li.select, li.current_page_item, li.current_cat a, .select h1:first-child, li.select a:first-child  {
    font-weight: bold;
}

nav ul ul li {
    opacity: 0.7;
    font-size: var(--wp--preset--font-size--small);
}

@media (min-width: 1500px) {
    body:not(.flex) {
        width: 1500px;
        margin: 0 auto;
        padding-top: 0;
    }
    #flexcontainer.page {
       max-width: 100%;
       min-height: 100%;
    }
    #flexcontainer.page > * {
        width: 1000px;
        margin-right: auto;
    }
    #flexcontainer.page > .pagetitle {
        padding-top: 70px;
    }
    #flexcontainer.page > #title, #flexcontainer.page > nav {
        position: sticky;
        width: auto;
        margin-right: 0;
        margin-left: auto;
        padding: 70px 0 50px 0;
        float:right;
        shape-outside: inset(50%);
    }
    .page > nav {
        max-width: 400px;
    }
}

/*************/
/* Handys    */
/*************/


@media (max-width: 820px) {
    body {
        width: 100%;
        margin: 0 auto;
    }

    body.flex {
        display: block;
    }

    #flexcontainer {
        display: block;
    }

    .news {
        padding: 0 0 50px 0;
    }

    .news img {
        max-width:100%;
    }

    nav li {
        text-align: center;
    }

    #flexcontainer.page {
        display:initial;
    }
    #title, #title.page {
        position: initial;
        padding: 0 0 50px 0;
        text-align: center;
        text-transform: uppercase;
        font-weight: bold;
    }
    section.page nav {
        display:none;
    }
}


/*******'*****/
/* Schriften */
/*************/

/* Copyright Google Fonts */
/* latin-ext */
@font-face {
    font-family: 'Red Hat Text';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url(./assets/fonts/redhattext/RrQJbohi_ic6B3yVSzGBrMxQbZchO8i5PA.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Red Hat Text';
    font-style: italic;
    font-weight: 300 700;
    font-display: swap;
    src: url(./assets/fonts/redhattext/RrQJbohi_ic6B3yVSzGBrMxQbZcvO8g.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
  /* latin-ext */
  @font-face {
    font-family: 'Red Hat Text';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(./assets/fonts/redhattext/RrQXbohi_ic6B3yVSzGBrMxQZqctI8w.woff2) format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
  }
  /* latin */
  @font-face {
    font-family: 'Red Hat Text';
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
    src: url(./assets/fonts/redhattext/RrQXbohi_ic6B3yVSzGBrMxQaKct.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  }
/* End Copyright Google Fonts */


/* * {
    font-family: Arial, Helvetica, sans-serif;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
}
*/

html {
    font-size: 16px;
}

.pagetitle {
    font-size: 28px;
    font-weight: bold;
}

.topless {
    padding-top: 0 !important;
}

#title, nav {
    font-size: 20px;
}

h1 {
/*    font-size: 22px;
    font-weight: bold;
    padding: 1em 0 0 0; */
}

p {
    padding: 0.5em 0;
}

/* Farben */

a {
    color: #6d071a;
}

li a {
    color: #000 !important;
}
