/* standard.css, v0.7, 2016-07-01, gerald petter */

/* Normalisierung ------------------------------------------------------------------------------------------------------------------------- */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, a, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, 
canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary, time, mark, audio, video, main {
  margin: 0; padding: 0; border: 0; outline: 0; font-size: 100%; vertical-align: baseline; background: transparent;}

*, *:after, *:before {
  -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}

h1, h2, h3, h4, h5, h6 { 
  font-weight: normal;}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section, main { 
  display: block;}

blockquote, q {
  quotes: none;}
  
address, caption, cite, code, dfn, th, var { 
  font-style: normal; font-weight: normal;}

table {  
  border-collapse: collapse; border-spacing: 0;}

caption, th {  
  text-align: left;}

blockquote:before, blockquote:after, q:before, q:after {
  content: ''; content: none;}

input, select {
  vertical-align: middle; padding: 0 2px;}

img {
  vertical-align: bottom;}

/* Standardisierung ----------------------------------------------------------------------------------------------------------------- */
small {
  font-size: 0.8em;
  font-weight: 400;
}

.clear {
  clear: both;
}

.left {
  float: left;
  padding-right: 20px;
}

.right {
  float: right;
  padding-left: 20px;
}

.center {
  margin: 0 auto;
}

.indent p, p.indent {
  padding-left: 50px;
}

/* Flexible Box Layout */
.flex {
  display: -webkit-box; 
  display: -ms-flexbox;
  display: flex;
  justify-content: space-around;
}

.flex > * {
  -webkit-flex: 0 1 auto;          /* Chrome */
  -ms-flex: 0 1 auto;              /* IE 10 */
  flex: 0 1 auto;
  display: inline-block; /* older browser */
  margin: 0 20px;
  text-align: center;
}

.flex--between {
  justify-content: space-between;
}

.flex--between > *:first-child {
  margin-left: 0;
}

.flex--between > *:last-child {
  margin-right: 0;
}

/* Menü allgemein */
nav#menu-main > a {
  display: none;
}

nav ul, .nav {
  list-style: none;
}

nav a, .nav a {
  text-decoration: none;
}
  
/* Menübutton ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
@media screen and (max-width: 1000px) { /* anpassen */
  nav#menu-main {
    position: absolute; /* anpassen */ /* Dynamic top menu positioning */
    top: 40px; /* anpassen */
    right: 2%; /* anpassen */
    width: 96%;
    min-height: 0;
    border: none;
    font-size: 1.1em;
    z-index: 10;
    padding: 0 !important;
    border-bottom: none !important;
    background-color: transparent !important;
    border-bottom: none !important;
  }

  nav#menu-main > a  {
    position: absolute;
    right: 0;
    margin: 0;
    padding: 11px 0 5px 10px;
    width: 100px;
    height: 40px;
    text-align: left;
    color: rgb(255, 225, 196); /* anpassen */
    background-color: rgb(140, 83, 47); /* anpassen */
    border-radius: 3px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
  }
    
  nav#menu-main > a:before, nav#menu-main > a:after {
    position: absolute;
    border: 2px solid rgb(255, 225, 196); /* anpassen */
    top: 35%;
    left: 70px;
    right: 10px;
    content: '';
  }
  
  nav#menu-main > a:after {
    top: 60%;
  }

  nav#menu-main:not( :target ) > a:first-of-type, nav#menu-main:target > a:last-of-type {
    display: block;
  }
  
  nav#menu-main > ul {
    height: auto;
    display: none;
    position: relative;
    margin: 46px 0 0 0; /* anpassen */
    background-color: rgb(140, 83, 47); /* anpassen */
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
  }
  
  nav#menu-main:target > ul {
    display: block;
  }
  
  ul.menu-main > li {
    border-top: 1px solid rgb(255, 225, 196); /* anpassen */
    margin: 0;
    text-align: right !important;
    padding: 8px 20px !important;
    font-size: 1.1em;
    position: relative !important;
    overflow: auto;
    display: block !important;
    color: rgb(255, 225, 196) !important; /* anpassen */
  }
  
  ul.menu-main > li:first-child {
    border-top: none;
  }
  
  ul.menu-main > li:hover {
    color: rgb(77, 87, 57);
  }

  ul.menu-main > li a {
    display: inline-block;
    width: 100%;
    color: rgb(212, 223, 179);
  }

  ul.menu-main li > ul {
    position: static !important;
    text-align: right !important;
    display: block;
    max-height: 300px;
    background-color: transparent !important;
    background-image: none;
    width: 100%;
  }
  
  ul.menu-main > li > ul > li {
    background-color: transparent;
    border-top: 1px dotted rgba(212, 223, 179, 0.5);
    padding: 5px 0 5px !important;
  }
  ul.menu-main > li > ul > li:first-child {
    margin-top: 5px;
  }
}

/* Inhalt ein-/ausblenden ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#body p#content_on {
  display: none;
}

#body:target p#content_on {
  display: block;
}

#body:target p#content_off {
  display: none;
}

#body:target footer, #body:target main, #body:target p.sommercard, #body:target div#anfrage {
  display: none;
}

/* Anfrage ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#anfrage {
  padding: 6px 20px;
}

#anfrage.right {
  right: 0;
}

#anfrage.left {
  left: 0;
}

#anfrage > a {
  display: block;
  padding: 8px 0 5px 20px;
  height: 40px;
  text-align: left;
  position: absolute;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  width: 130px;
  font-size: 1.2em;
}

#anfrage.right > a {
  -webkit-transform: rotate(-90deg);
  transform: rotate(-90deg);
  left: -46px;
}

#anfrage.left > a {
  -webkit-transform: rotate(90deg);
  transform: rotate(90deg);
  right: -45px;
}
  
  @media screen and (max-width: 700px) {
    #anfrage > a {
      font-size: 1.0em;
      width: 100px;
      padding: 5px 0 5px 10px;
      height: 30px;
      top: -4px;
    }
    #anfrage.right > a {
      left: -24px;  
    }
    #anfrage.left > a {
      right: -24px; 
    }
  }
  
#anfrage form#request {
  display: none;
  position: relative;
  top: -45px;
  min-height: 142px;
  padding: 10px 5px 10px 20px;
  width: 510px;
  font-size: 0.9em;
}

#anfrage.right form#request {
  left: 19px;
}

#anfrage.left form#request {
  right: 19px;
}
  @media screen and (max-width: 580px) {
    #anfrage form#request {
      width: 300px;
    }
  }
  
#anfrage form#request fieldset {
  padding-bottom: 10px;
}

#anfrage form#request legend {
  display: none;
}

#anfrage form#request fieldset.address {
  float: left;
  width: 230px;
}
  
#anfrage form#request fieldset.address label {
  display: inline-block;
  width: 80px;
}

#anfrage form#request fieldset.date {
  width: 230px;
}
  @media screen and (max-width: 580px) {
    #anfrage form#request fieldset.date {
      width: auto;
    }
  }
  
#anfrage form#request fieldset.date label {
  display: inline-block;
  width: 68px;
}
  @media screen and (max-width: 580px) {
    #anfrage form#request fieldset.date label {
      width: 80px;
    }
  }
  
#anfrage form#request fieldset.persons {
  clear: left;
}

#anfrage form#request fieldset.persons label {
  padding-right: 6px;
}

#anfrage form#request fieldset.persons label[for=number_children] {
  padding-left: 10px;
}

#anfrage form#request fieldset.persons label#date_children {
  margin-top: 10px;
  display: block;
}

#anfrage form#request fieldset.persons input#number_adult, #anfrage form#request fieldset.persons input#number_children {
  width: 40px;
  position: relative;
  top: -2px;
}

#anfrage form#request fieldset.persons input[name*=Geburtsdatum] {
  display: inline-block;
  margin-right: 10px;
}

#anfrage form#request fieldset.room {
  float: left;
  width: 230px;
  font-size: 0.9em;
}

#anfrage form#request fieldset.room input {
  position: relative;
  top: -1px;
  left: 0px;
}

#anfrage form#request fieldset.room label[for=room] {
  padding-left: 10px;
}

#anfrage form#request fieldset.room label[for=ferienhaus] {
  padding-left: 10px;
}

#anfrage form#request fieldset.other {
  font-size: 0.9em;
}

#anfrage form#request fieldset.other label {
  padding-right: 6px;
}

#anfrage form#request fieldset.submit {
  padding: 0;
}

#anfrage form#request fieldset.submit input {
  padding: 1px 2px;
}

/* Bilder */
.images {
  text-align: center;
  padding: 10px 0;
}

.images li {
  padding: 10px 20px;
  list-style: none;
  display: inline-block;
  width: 50%;
  background-image: none;
}
  @media screen and (max-width: 500px) {
    .images li {
      width: 100%;
      padding: 10px 0px;
    }
  }
  
.images img {
  width: 100%;
  vertical-align: bottom;
}

.images figure {
  position: relative;
  width: 100%;
}

figure.skizze {
  width: auto;
}

.images figure > a:after {
  content: url('../images/loupe.png');
  position: absolute;
  top: 3px;
  left: 3px;
  opacity: 0.5;
}

.images figure > a:hover:after {
  opacity: 1;
}

.images figure figcaption {
  background-color: rgba(255, 219, 193, 0.7);
  font-size: 0.8em;
  text-align: right;
  padding: 2px 5px 2px 0;
  color: rgb(20, 20, 20);
}
