/*! HTML5 Boilerplate v6.0.1 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #2a262d;
    font-size: 1.1em;
    line-height: 1.6;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body {
	background-color:#fdfcfb;
	font-family:"PT Serif", "Times New Roman", Times, serif;
}

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

#container {
	width:100%;
	margin:0 auto;
}

h1 { display:none; }

#header {
	background-image:url(../img/titel_desktop.png),url(../img/border.png),url(../img/head_desktop.jpg);
	background-size:contain, contain, contain;
	background-position:bottom center, bottom center, top center;
	background-repeat:no-repeat, no-repeat, no-repeat;
	background-color:#000;
}

#header img {
	max-width:100%;
	height:auto;
	display:block;
}

#navi {
	background:url(../img/border_navi.png),#efede7;
	background-position:center bottom, center top;	
	background-repeat:no-repeat;
	border-bottom:10px solid transparent;
	background-origin:border-box, padding-box;
	background-clip:border-box, padding-box;
	padding-bottom:10px;
	overflow: hidden;
}

.sticky {
	position: fixed;
	top: 0;
	width: 100%;
	z-index:100;
}

.sticky + #content {
  padding-top: 100px;
}

ul, li {margin:0; padding:0;}

ul {
	width:100%;
	max-width:960px;
	margin:0 auto;
	text-align:center;
	padding:0.75em 0 0.5em 0;
}

li {
	display:inline-block;
}

li.center {
	padding-left:1.5em;
	padding-right:1.5em;
}

#navi li {
	font-family:"Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size:1.5em;
	font-weight:900;
	text-transform:uppercase;
	
} 

a {
	text-decoration:none !important;
	color:inherit;
}

a.link {
	text-decoration:underline !important;
}

p {text-align:center;}


li a:hover {
	color:#3a2b93;
}

#content {
	width:96%;
	max-width:960px;
	padding:0 2em;
	margin:0 auto;
	overflow:hidden;
}

h2, h3, h4, h5 {
	font-family:"Playfair Display", Georgia, "Times New Roman", Times, serif;
	font-size:2em;
	margin-bottom:0;
	color:#3a2b93;
	text-align:center;
	line-height:1.2em;
}

h4 {
	font-size:1.5em;}

h5 {
	font-size:1.25em;}

#index {
	font-size:1.2em;
	width:80%;
	margin:0 auto;
}

#madame h3 {
	margin-left:-200px;
}

#termine {
	width:50%;
	float:left;
	padding-right:1em;
}

#buchen {
	width:50%;
	float:right;
	padding-left:1em;
}

#footer {
	background:url(../img/border_footer.png),#efede7;
	background-position:center top, center top;	
	background-repeat:no-repeat;
	border-top:10px solid transparent;
	background-origin:border-box, padding-box;
	background-clip:border-box, padding-box;
	padding-top:10px;
	clear:both;
	font-size:0.8em;
	color:#7a7777;
	margin-top:2em;
}

#footer ul {
	padding-top:0;
}

#footer li {
	padding-left:1em;
	padding-right:1em;
}

#impressionen {
	overflow:hidden;}

#bilder {
	text-align:center;
	overflow:hidden;
}

#bilder img {
	float:left;
	width:32.33333%;
	height:auto;
	margin:0.5%;
}

#bilder video {
	width:99%;
	height:auto;
	margin:0.5%;
}

#bilder #trailer {
	display:none;
	position:relative;
}

#bilder #trailer #quit {
	position:absolute;
	cursor:pointer;
	top:20px;
	right:20px;
	width:40px;
	height:40px;
	background-image:url(../img/quit.png);
	z-index:2;
	font-size:0;
	text-indent:-200%;
	
}

#profilbild {
	float:right;
}


@media only screen and (max-width: 640px) {


#content {
	padding:0 1em;
}

#index {
	text-align:center;
	font-size:1.2em;
	width:100%;
	margin:0 auto;
}

li {
	display:block;
}

li.center {
	padding-left:0;
	padding-right:0;
}


#profilbild {
	float:none;
	margin:20px auto;
	display:block;
	
}


#termine, #buchen {
	float:none;
	padding:0;
	width:100%;
}

#bilder img {
	float:left;
	width:99%;
	height:auto;
	margin:10px 0.5%;
}

#madame h3 {
	margin-left:0;
}



}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
