/*==================================
Jan002 a.k.a. 32 Not Out
by Payal Dhar (http://writeside.net)
24 January 2008
Feel free to use, but please retain credit.
Optimized and made responsive for jenniferstratmann.de
====================================*/

*{
    margin:0;
    padding:0;
    box-sizing: border-box;
}

body{
    background: url(assets/body.jpg) center repeat-y;
    background-color: #f7f5f2;
    color:#707070;
    font:0.95em 'Trebuchet MS', Arial, sans-serif;
}

#wrapper{
    max-width:770px;
    width: 95%;
    margin:10px auto;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

#title{
    min-height:50px;
    background:#fff;
    font-size:2.2em;
    color:#3a4a3f;
    text-align:right;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #f0f0f0;
}

#title .menu{
    font-size:0.4em;
}

#title .menu ul {
    display: flex;
    list-style: none;
}

#title .menu ul li{
    padding:7px 8px;
}

#title .menu a{
    background:none;
    color:#cfc9bd;
    padding:3px 8px;
    text-decoration:none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#title .menu a:hover, 
#title .menu a.active{
    color:#3a4a3f;
    background:#cfc9bd;
    text-decoration:none;
}

#header{
    clear:both;
    height:232px;
    width:515px;
    float:left;
    background: #fff;
}

.nav1 {
    width: 250px;
    float: left;
}

.nav1 ul{
    list-style:none;
    width: 100%;
}

.nav1 ul li{
    margin:5px 0;
    padding-left:20px;
    text-align:right;
}

.nav1 a{
    color:#cfc9bd;
    border-bottom:1px solid #cfc9bd;
    display:block;
    width:94%;
    height:32px;
    padding:5px 10px;
    text-decoration:none;
    background:url(assets/menu.jpg) left no-repeat;
    transition: all 0.3s ease;
}

.nav1 a.active, 
.nav1 a:hover{
    color:#3a4a3f;
    background:url(assets/menu-roll.jpg) left no-repeat;
    padding-right: 15px;
}

#content{
    clear:both;
    border:1px solid #3a4a3f;
    margin:10px 15px;
    padding:20px;
    background: #fff;
}

h1, h2, h3{
    color:#3a4a3f;
}

h1{
    font-size:1.4em;
    font-variant:small-caps;
    padding:0 0 10px;
}

h2{
    font-size:1.15em;
    padding:15px 0 5px;
}

h3{
    font-size:1em;
    padding:10px 0 5px;
}

p{
    padding:5px 0;
    line-height:1.5em;
}

p.ref{
    text-align:right;
    font-size:0.8em;
}

#content a{
    background:none;
    color:#9f9687;
    padding:0 3px;
    text-decoration:underline;
    transition: all 0.3s ease;
}

#content a:hover{
    color:#3a4a3f;
    background:#cfc9bd;
    text-decoration:none;
}

blockquote{
    padding:15px 20px;
    margin:15px 0;
    background:#f9f9f9 url(assets/blockquote.jpg) bottom left no-repeat;
    border-left: 5px solid #cfc9bd;
    font-style: italic;
}

#content ul, ol{
    padding:10px 10px 10px 30px;
}

#content ul{
    list-style:circle;
}

#content ol{
    list-style:decimal;
}

#footer{
    margin:15px 15px 10px;
    padding: 15px 0;
    text-align:center;
    font-size:0.8em;
    border-top: 1px solid #f0f0f0;
    clear: both;
}

#footer a{
    color:#3a4a3f;
    text-decoration:underline;
    background:none;
}

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

.euphoria {
    font-family: 'Euphoria Script', cursive;
}

/* content custom styles */

div#content h1 {
    margin-left: 5px;
    text-align: right;
    border-bottom: 2px solid #3a4a3f;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

div#content div {
    display: block;
    overflow: hidden;
}

div#content img {
    float: left; 
    display: block; 
    clear: left; 
    padding-right: 20px; 
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 10px;
    max-width: 100%;
    height: auto;
}

/* Table styles for impressum */
#content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

#content td {
    padding: 8px 10px;
    vertical-align: top;
}

#content td:first-child {
    font-weight: bold;
    width: 120px;
}

/* responsive media queries */

@media (max-width: 768px) {
    body {
        background: #f7f5f2; /* Disable background repeating image on mobile/tablet for clean styling */
    }

    #wrapper {
        width: 100%;
        margin: 0;
        box-shadow: none;
    }

    #title {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
    }

    #title .menu {
        margin-bottom: 15px;
        font-size: 0.5em; /* slightly larger for readability */
    }

    #title .menu ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    #title .menu ul li {
        padding: 5px 8px;
    }

    #title .euphoria {
        font-size: 2rem;
    }

    #header {
        width: 100%;
        height: auto;
        aspect-ratio: 515 / 150; /* shorter header height on mobile */
        float: none;
        background-color: #f7f5f2; /* fallback */
    }

    .nav1 {
        width: 100%;
        float: none;
        margin: 15px 0;
    }

    .nav1 ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0 10px;
    }

    .nav1 ul li {
        margin: 5px;
        padding-left: 0;
        text-align: center;
        flex: 1 1 120px; /* grid-like buttons on mobile */
    }

    .nav1 a {
        width: 100%;
        background-position: left center;
        background-size: auto 100%;
        border: 1px solid #cfc9bd;
        border-radius: 4px;
        text-align: center;
        height: auto;
        padding: 8px;
    }

    .nav1 a.active,
    .nav1 a:hover {
        padding-right: 8px;
        background-position: left center;
    }

    #content {
        margin: 10px;
        padding: 15px;
    }

    div#content h1 {
        text-align: center;
        font-size: 1.3em;
    }
}

@media (max-width: 600px) {
    div#content img {
        float: none;
        display: block;
        margin: 15px auto;
        padding: 0;
        max-width: 100%;
    }

    #content td {
        display: block;
        width: 100% !important;
        padding: 4px 0;
    }
    
    #content td:first-child {
        font-weight: bold;
        padding-top: 10px;
    }
    
    #content tr {
        border-bottom: 1px solid #eee;
    }
}
