/* ******************************** */
/* stylesheet atelier schwarz weiss */
/*         philippe widmer          */
/* ******************************** */

@font-face {
    font-family: "asw";
    src: url(semplicita-light.otf);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "asw";
    src: url(semplicita-light-italic.otf);
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: "asw";
    src: url(semplicita-medium.otf);
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "asw";
    src: url(semplicita-medium-italic.otf);
    font-weight: 700;
    font-style: italic;
}

/* ---- base -------------------------------------------------------- */

html {
    font-size: 85.0%;
}

body {
    color: black;
    background-color: white;
    margin: 0px;
    padding: 0px;
}

@media screen and (max-device-width: 480px) {
    body {
        -webkit-text-size-adjust: 100%;
    }
}

/* ---- logo -------------------------------------------------------- */

.logo-container {
    float: left;
    padding-right: 15px;
}

.logo { }

.logo img {
    height: 48px;
}

/* ---- menu ---------------------------------------------------------*/

.top-nav {
    font: 1.6rem "asw";
    font-weight: bold;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: white;
    color: black;
    padding: 1em;
}

.menu {
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.menu > li {
    margin: 0 0.25rem;
    overflow: hidden;
}

.menu > li > a {
    color: black;
}

.item {
    padding: 10px;
}

.item:hover {
    background-color: black;
    color: white;
}

.menu-button-container {
    display: none;
    height: 100%;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#menu-toggle {
    display: none;
}

.menu-button,
.menu-button::before,
.menu-button::after {
    display: block;
    background-color: black;
    position: absolute;
    height:4px;
    width: 30px;
    transition: transform 400ms cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 2px;
}

.menu-button::before {
    content: '';
    margin-top: -8px;
}

.menu-button::after {
    content: '';
    margin-top: 8px;
}

#menu-toggle:checked + .menu-button-container .menu-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

#menu-toggle:checked + .menu-button-container .menu-button {
    xbackground: rgba(255, 255, 255, 0);
    background: black;
}

#menu-toggle:checked + .menu-button-container .menu-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

@media (max-width: 700px) {
    .menu-button-container {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 0;
        margin-top: 80px;
        left: 0;
        flex-direction: column;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    #menu-toggle ~ .menu li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    #menu-toggle:checked ~ .menu li {
        border: 1px solid #333;
        height: 2.0em;
        padding: 0.5em;
        transition: height 400ms cubic-bezier(0.23, 1, 0.32, 1);
    }

    .menu > li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        color: black;
        background-color: white;
    }

    .menu > li:not(:last-child) {
        border-bottom: 1px solid #444;
    }
}

/* ---- page/container/title ---------------------------------------- */
.container {
    background-color: #ffffff;
    color: black;
    display: flex;
    justify-content: center;
}

.content-container {
    font: 1.6rem "asw";
    line-height: 1.25;
    width: 1220px;
    background-color: #ffffff;
}

.title-src {
    display: none;
}

.title-container {
    width: 100%;
}

.title {
    color: black;
    padding: 15px 25px 0 20px;
}

.cursor {
    color: white;
    background-color: white;
}

#textspalten { }

#spalte1 { }

#spalte2 {
    margin-top: 1em;
}

@media (min-width: 700px) {
    .content-container {
        font: 1.6rem "asw";
        line-height: 1.25;
        max-width: 1220px;
        margin: 1em 1em 3em 1em;
        background-color: #ffffff;
    }

    .title-container {
        width: 100%;
        background-color: #ffffff;
    }

    .title {
        color: black;
        xpadding: 25px;
    }

    #textspalten { }

    #spalte1 {
        width: 14em;
        float: left;
    }

    #spalte2 {
        margin-top: 0em;
    }
}

/* ---- content ----------------------------------------------------- */

.content {
    padding: 1em;
}

.block { }

.spacer {
    margin-top: 1.5em;
}

b {
    color: white;
}

/* ---- title/subtitle ---------------------------------------------- */

h2 {
    margin: 0;
    color: black;
}

h3 {
    margin: 0 0 0.5em 0;
    color: black;
}

/* ---- links ------------------------------------------------------- */

a {
    color: #705030;
}

a:link {
    text-decoration: none;
}

a:visited {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
    color: #ff9f3f;
}

a:active {
    text-decoration: none;
}

/* ---- picture ----------------------------------------------------- */
.picture {
    width: 100%;
}

.picture img {
    width: 100%;
    padding: 1.2rem 0 1.2rem 0;
}

.picture-small {
    width: 100%
}

.picture-small img {
    width: 75%;
    padding: 1.2rem 0 1.2rem 0;
}

#pic-container {
    -moz-column-count:2;
    -webkit-column-count:2;
    column-count:2;
    width: 100%;
}

.picture-block {
    width: 95%;
}

.picture-block img {
    width: 100%;
}

@media (min-width: 700px) {
    .picture-small {
        width: 100%
    }

    .picture-small img {
        width: 40%;
        padding: 1.2rem 0 1.2rem 0;
    }
}

.picture-left {
    width: 100%;
}

.picture-left img {
    float: left;
    width: 30%;
    padding: 1.2rem 1.2rem 1.2rem 0;
}

.picture-left:before {
    content: ' ';
    display: block;
    overflow: hidden;
}

.picture-right {
    width: 100%;
}

.picture-right img {
    float: right;
    width: 30%;
    padding: 1.2rem 0 1.2rem 1.2rem;
}

.picture-right:before {
    content: ' ';
    display: block;
    overflow: hidden;
}

.block .img-no-top {
    padding-top: 0;
}

.block .img-no-bottom {
    padding-bottom: 0;
}

.block .img-no-top-no-bottom {
    padding-top: 0;
    padding-bottom: 0;
}

/* ---- endless paper ----------------------------------------------- */

.paper {
    background-color: #efeeeb;
    border-radius: 10px;
}

pre {
    font-family: "asw";
    font-size: 2vw;
    color: black;
    padding: 1em;
}

@media (min-width: 700px) {
    .paper {
        background: url(strip.png);
        max-width: 100%;
    }

    pre {
        font: 1.6rem "asw";
        line-height: 20px;
        color: black;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-left: 45px;
    }
}

/* ---- 404 --------------------------------------------------------- */

.not_found {
    width: 100%;
}

.not_found img {
        width: 60%;
        display:block;
        margin-left:auto;
        margin-right:auto;
}

@media (min-width: 700px) {
    .not_found img {
        width: 40%;
        display:block;
        margin-left:auto;
        margin-right:auto;
    }
}

/* ---- footer ------------------------------------------------------ */

footer {
    font: 1.6rem "asw";
    color: black;
    padding: 15px;
    flex-grow: 1;
}

.footer-content {
    width: 100%;
    text-align: center;
}
