/* Hair & Beauty Deizisau — single shared stylesheet
 * Refactored from inline <style> blocks scattered across the old PHP files.
 */

* { padding: 0; margin: 0; }

body {
  margin: 10px;
  font-size: 0.9em;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", Arial, sans-serif;
  text-align: center;
  height: 100%;
  background-image: url(images/back.jpg);
  background-position: top center;
  background-repeat: no-repeat;
}

#main {
  width: 758px;
  margin: 0 auto;
  text-align: left;
  height: 100%;
  padding-bottom: 10px;
}

#content {
  padding: 0 10px 10px;
  min-height: 500px;
}

#menu {
  padding-left: 15px;
  height: 47px;
  background-image: url(images/navi.png);
  color: #FFF;
  /* The "Bilder" dropdown opens downward and was being rendered behind
   * the Google-Maps iframe, which is its own stacking context. Raising
   * the whole menu's z-index forces the entire submenu tree (and its
   * absolute-positioned children) above the iframe. */
  position: relative;
  z-index: 100;
}

#footer {
  padding-left: 15px;
  height: 47px;
  background-image: url(images/footer.png);
}

/* Inherit colour for links — nav uses a background image to convey state. */
a, a:link, a:visited, a:hover, a:active {
  color: inherit;
  text-decoration: none;
}

/* Top navigation */
nav > ul {
  font-size: 20px;
  color: #FFF;
  line-height: 46px;
  list-style: none;
  width: 730px;
  display: block;
}

nav > ul::after {
  content: ' ';
  display: block;
  visibility: hidden;
  clear: both;
  height: 0;
}

nav > ul > li {
  float: left;
  width: 120px;
  text-align: center;
}

nav > ul > li:hover {
  background-image: url(images/nav_hov.png);
}

nav > ul > li > ul {
  display: none;
  list-style: none;
  position: absolute;
  margin-left: -1px;
  background-image: url(images/under2.png);
  width: inherit;
  height: 97px;
  /* Anchor on top of any sibling content (iframes, modals…). */
  z-index: 200;
}

nav > ul > li > ul > li { top: -10px; }

nav > ul > li > ul > li:hover {
  background-image: url(images/m_hover.png);
}

nav > ul > li:hover > ul {
  display: block;
}

/* Per-page content widths (pages used to set their own .container width) */
.container { width: 745px; }

/* Home-page image stack */
#box {
  position: relative;
  height: auto;
  width: 737px;
  left: 45px;
}

/* Where page — Google Maps privacy interstitial + button */
#iframebox {
  background-image: url("images/map.png");
  background-size: cover;
  background-position: center;
  height: 450px;
  position: relative;
}

#prtxt {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  max-width: 600px !important;
  transform: translate(-50%, -50%);
}

.__maps { width: 100%; }

button, .button {
  appearance: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  border-radius: 2.5em;
  border: 0;
  cursor: pointer;
  display: inline-block;
  font-weight: 700;
  height: 2.85em;
  line-height: 2.95em;
  min-width: 10em;
  padding: 0 1.5em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  background-color: #777777;
  color: white;
}

button:hover, .button:hover {
  color: white;
  background-color: #545454;
}

ul.actions {
  margin-top: 4em;
  list-style-type: none;
  text-align: center;
}

/* The where.html consent overlay is suppressed for visitors who previously
 * clicked "Karte anzeigen". The class is set in <head> before anything
 * paints, so there's no flash. The iframe is filled in on DOMContentLoaded. */
html.map-consented #prtxt { display: none; }
