/*! HTML5 Boilerplate v5.1.0 | 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: #222;
    font-size: 16px;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selectfion rule sets have to be separate.
 * 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;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

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

/*
green: #85a450;
green (darker): #6b8440;
*/

html {
	overflow-y: scroll;
	font-family: 'Arial', sans;
}

body {
	text-align:center;
	margin:0;
  padding:0;
  background:#fef1e8;
}

h1 {
	font-size:1.375rem;
}

#outerWrapper {
	width:100%;
	max-width:950px;
	margin:0 auto 15px auto;
	text-align:left;
  background:#fff;
  border:50px solid #fff;
  padding-top:10px;
}

#innerWrapper {
	border-radius: 10px;
	border: 5px solid #f47d3f;
	width: 100%;
	min-height: 500px;
}

header {
	text-align:center;
	margin-bottom:30px;
}

header .loudText {
	font-size:1.8rem;
}

header .quiteText {
	font-size:1.15rem;
}

header .marginBottom {
	/*margin-bottom:15px;*/
  margin: 0 0 4px 0;
}

#navMobile {
  display:none;
  position: fixed;
  background: transparent url(images/icon-menu.png) top right no-repeat;
  width: 24px;
  height: 25px;
  right: 15px;
  top: 11px;
  cursor: pointer;
  z-index: 10;
  padding: 0;
  margin: 0;
}

nav {
    overflow:hidden;
	background:#ffefe2;
	height:50px;
	padding: 5px 30px;
	margin-bottom:30px;
	border-bottom: 2px solid #f47d3f;
}

nav ul {
	padding:0;
  margin:10px 0 0 0;
	list-style-type:none;
}
nav.open {
  display:block;
  height:100%;
  z-index:1;
}


nav li {
	display:inline;
	margin-right:34px;
}

nav li:last-child {
  margin-right:0;
}

nav li.hidden {
	margin:0;
}

nav li a {
	font-size:0.85rem;
	text-transform: uppercase;
	text-decoration: none;
	font-weight:bold;
	color:#000;
}

nav li a:hover {
	color:#ff7546;
}

nav li.current a {
	color:#ff7546;
}

#teaserImage img {
	padding: 5px 30px;
}

#teaserImage img {
	max-width:100%;
}

main {
	width: 100%;
	padding: 5px 30px;
	margin-top:15px;
	min-height: 400px;
}

main p {
    color:#222;
}

main h1 {
	text-transform: uppercase;
    font-size:1.25rem;
    font-weight:normal;
    color:#f47d3f;
}

main h1+h2 {
	font-size: 1.25rem;
  margin-top: -0.80rem;
  font-weight: normal;
  margin-bottom: 35px;
  color:#f47d3f;
}

main h3 {
  margin:0;
}

main img {
	max-width:100%;
}

main ul {
  list-style: none;
	display:table-cell;
  line-height:1.85rem;
  padding-left: 1.25rem;
}

main ul li {
  text-indent: -1em;
  padding-left: 0;
}

main ul li:before {
    content: "\002022";
    color: #f47d3f;
    padding-right:10px;
}

main strong {
  color:#f47d3f;
}

main strong + p {
    margin-top:0;
}

.contentBox {
  width:50%;
  vertical-align:top;
  display:inline-block;
}

footer {
  position:relative;
  background:#ffefe2;
  min-height:35px;
  padding: 20px 30px;
  margin-top:25px;
  border-top: 2px solid #f47d3f;
}

footer .box {
  float:left;
  font-weight:bold;
  margin-right:55px;
}

footer .rightBottomCorner {
  position:absolute;
  right:15px;
  bottom:15px;
  font-size:0.85rem;
}

/* Custom classes for custom content */
.aerzte {
  margin-top:2.5rem;
	margin-bottom:3rem;
}

.aerzte > img {
	float:left;
    max-width:260px;
	margin:0 25px 5px 0;
}

.mitarbeiter {
  float:left;
  margin-right:30px;
  min-width: 240px;
    max-width: 350px;
    width: 300px;
}

.mitarbeiter strong {
  display:block;
}

.mitarbeiter:last-child {
    margin-right:0;
}

.mitarbeiter > img {
	margin:0 0 10px 0;
    max-width:200px;
}

.news {
  border-bottom:1px dotted #f47d3f;
  margin-bottom:20px;
}

.news:last-child {
  border-bottom:none;
}

.news img {
  max-width:100%;
	float:right;
	margin:0 0 0 20px;
}

#largeImage {
  margin-bottom:25px;
}

#largeImage img {
  margin-bottom:5px;
}

#largeImage .beschreibung {
  font-weight:bold;
}

#thumbnails ul {
  padding:0;
  list-style:none;
}

#thumbnails li {
  display:inline-block;
  margin-right:10px;
  margin-bottom:15px;
}

#thumbnails ul li {
  text-indent: 0;
  padding-left: 0;
}
#thumbnails li:before {
    content: none;
    color: #f47d3f;
    padding-right:0;
}

#thumbnails li:last-child {
  margin-right:0;
}

#thumbnails li a.current img {
  opacity:0.4;
}

#googleMap {
  display:inline-block;
  vertical-align:top;
  /*margin-left: 2rem;*/
  max-width: 50%;
  border: 3px solid #fff;
  outline: 1px solid #ccc;
}

table.oeffnungszeiten {
    white-space: nowrap;
}

table.oeffnungszeiten tr td {
  padding:0 5px;
}

table.oeffnungszeiten tr td:first-child {
  padding-left:0;
}

table.oeffnungszeiten tr td.separator {
  padding:0;
}

.blackText {
    color:#000;
}

.rightAlignText {
  text-align:right;
}

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

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * 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;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * 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 (max-width:900px) { 
	nav li {
    margin-right:20px;
	}

  nav {
    
  height:auto;
  }

  ul.nav > li {
    display: inline-block;
    line-height: 30px;
  }

  ul.nav li a {
    display:block;
  }

}

@media only screen and (max-width:700px) {
  #outerWrapper {
    border:5px solid #fff;
  }
  #navMobile {
  /*display:block;*/
}
/*
  nav {
    display:none;
    margin-bottom: 10px;
        position:fixed;
        background:rgba(255,255,255,0.95);
        height:auto;
        top:0px;
        left:0px;
        margin:0;
        width:100%; }
*/
nav {
  padding: 5px 10px;
  margin-bottom:5px;
}
nav ul.nav {
    margin-top:0;
}



  nav.small ul.nav > li {
    line-height:25px;
  }

  header .loudText {
    font-size: 1.25rem;
}
  main {
    margin-top: 0px;
    padding: 5px 10px;
  }
  #teaserImage img {
    padding: 5px 10px;
}
  	.news img {
    max-width:100%;
    float:none;
    margin:0 0 10px 0;
  }

  #googleMap {
    float: none;
    margin-left: 0;
    max-width: none;
  }

  footer {
    padding: 10px 10px;
    margin-top:10px;
    font-size:0.9rem;
  }
  footer .box {
    display:block;
    float:none;
    font-weight:normal;
    margin-right:0;
  }
}


@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: 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,
    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;
    }

    img {
        max-width: 100% !important;
    }

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

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