/* Karcsi Vendéglő – statikus oldal (a régi Drupal "karcsi2" téma kinézete alapján) */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  padding: 0;
  background: #000 url(../images/bg.jpg) top center repeat-x;
  color: #775417;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 87.5%;
  line-height: 1.5;
  word-wrap: break-word;
}
a {
  color: #775417;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #977437;
  text-decoration: underline;
}
h1,
h2,
h3 {
  margin: 1em 0 0.5em;
  font-weight: inherit;
}
p {
  margin: 0 0 1.2em;
}
img {
  max-width: 100%;
  height: auto;
}
.skip-link {
  position: absolute;
  left: -999em;
}
.skip-link:focus {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 50;
  padding: 2px 10px;
  background: #000;
  color: #fff;
}

/* ---------- Oldalkeret ---------- */

#page {
  max-width: 930px;
  min-height: 100vh;
  margin: 0 auto;
  background: #d7b06b url(../images/content.jpg) top center repeat-y;
  background-size: 100% 1px;
  display: flex;
  flex-direction: column;
}

/* ---------- Fejléc ---------- */

#header {
  background: url(../images/top.jpg) top center no-repeat;
  background-size: 100% auto;
  padding-top: 7.42%; /* top.jpg 930x69 */
}
#header .section {
  background: url(../images/holder.jpg) top center no-repeat;
  background-size: 98.3% auto;
  padding-bottom: 1px;
}
#branding {
  position: relative;
  min-height: 104px;
  padding: 34px 104px 30px;
  text-align: center;
}
#logo {
  position: absolute;
  left: 10px;
  top: 15px;
  line-height: 0;
}
#site-name {
  font-size: 1.821em;
  line-height: 1;
}
#site-name a {
  font-weight: bold;
}
#site-slogan {
  margin-top: 7px;
  font-size: 0.929em;
  font-style: italic;
  word-spacing: 0.1em;
}

/* Fekete doboz az elérhetőséggel és a fotóval */
#header-box {
  width: 900px;
  max-width: calc(100% - 30px);
  min-height: 254px;
  margin: 0 auto;
  padding: 20px 30px;
  background: #000 url(../images/header_long.jpg) top center no-repeat;
  color: #d7b06b;
  font-size: 16px;
  line-height: 1.5;
}
#header-box .info {
  max-width: 55%;
}
#header-box p {
  margin: 0 0 1.2em;
}
#header-box .name {
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
}
#header-box a {
  color: #d7b06b;
}
#header-box a:hover,
#header-box a:focus {
  color: #fff;
}

/* ---------- Főmenü ---------- */

#main-menu ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 10px 13px 0;
  padding: 0 5px;
  min-height: 40px;
  background: #c3984a url(../images/menu.jpg) repeat-x;
  background-size: 1px 100%;
}
#main-menu li {
  margin: 0 1px;
  padding: 0 1px;
}
#main-menu a {
  display: block;
  padding: 0 0.8em;
  color: #333;
  font-size: 14pt;
  line-height: 40px;
  text-decoration: none;
}
#main-menu a:hover,
#main-menu a:focus,
#main-menu a:active {
  color: #fff;
}

/* ---------- Törzs ---------- */

#main {
  display: flex;
  flex: 1 0 auto;
  margin: 20px 0 40px;
}
#sidebar {
  flex: 0 0 240px;
  padding: 10px 15px 0;
}
#content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 15px;
}

/* Oldalsáv – nyelvi menük */
#sidebar .block {
  padding: 15px 12px;
  margin: 0 0 20px;
}
#sidebar summary {
  display: block;
  margin: 0 0 0.5em;
  padding: 5px 30px;
  font-size: 1.071em;
  line-height: 1.8;
  text-align: center;
  background: url(../images/h3.jpg) center no-repeat;
  list-style: none;
  pointer-events: none;
}
#sidebar summary::-webkit-details-marker {
  display: none;
}
#sidebar ul {
  margin: 10px 0 0;
  padding: 0 0 0.25em 2.6em;
}
#sidebar li {
  padding-left: 0.3em;
  font-size: 1.46em;
  line-height: 1.4;
  list-style: square;
}
#sidebar li a {
  color: #775417;
}
#sidebar li a:hover,
#sidebar li a:focus {
  color: #4a3208;
}

/* Tartalom */
#content h1 {
  margin: 0.5em 0;
  font-size: 2em;
  line-height: 1.1;
  color: #000;
}
#content h2 {
  margin-bottom: 2px;
  font-size: 1.429em;
  line-height: 1.4;
}
.node {
  margin-top: 10px;
  font-size: 1.071em;
}
.node-sticky {
  padding: 10px 15px 15px;
  background: rgba(0, 0, 0, 0.024);
  border: 1px solid #d3d7d9;
}
.node .photo {
  text-align: center;
}
.node .photo img {
  margin: 5px;
  border: 1px solid #000;
}
.node .indent {
  padding-left: 30px;
}
.node .map {
  margin: 10px 0 0;
  border: 1px solid #000;
  line-height: 0;
}
.node .map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* ---------- Lábléc ---------- */

#footer {
  padding: 12px 15px;
  background: #000;
  border-top: 8px solid #9c0a0d;
  color: #d7b06b;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9em;
  text-align: center;
}
#footer a {
  color: #d7b06b;
}

/* ---------- Mobil ---------- */

@media (max-width: 760px) {
  body {
    font-size: 100%;
  }
  #branding {
    min-height: 0;
    padding: 12px 12px 14px 80px;
  }
  #logo {
    left: 12px;
    top: 8px;
  }
  #logo img {
    width: 56px;
  }
  #site-name {
    font-size: 1.4em;
  }

  /* a szöveg felül, a fotó alatta */
  #header-box {
    min-height: 0;
    max-width: calc(100% - 20px);
    padding: 0;
    background: #000;
    border: 2px solid #9d793d;
    text-align: center;
  }
  #header-box .info {
    max-width: none;
    padding: 16px 12px 4px;
  }
  #header-box::after {
    content: "";
    display: block;
    height: 0;
    padding-top: 50%;
    background: url(../images/header_long.jpg) 97% 60% no-repeat;
    background-size: 240% auto;
  }

  #main-menu ul {
    justify-content: center;
    margin: 10px 10px 0;
    padding: 0;
    background-image: none;
    border-top: 1px solid #9d793b;
    border-bottom: 1px solid #9d793b;
  }
  #main-menu a {
    padding: 0 0.6em;
    font-size: 17px;
    line-height: 44px;
  }

  #main {
    display: block;
    margin: 10px 0 30px;
  }
  #sidebar {
    padding: 10px 15px 0;
  }
  #sidebar .block {
    max-width: 280px;
    margin: 0 auto 4px;
    padding: 4px 12px;
  }
  #sidebar summary {
    pointer-events: auto;
    cursor: pointer;
    margin-bottom: 0;
    line-height: 34px;
    padding: 5px 30px;
  }
  #sidebar .js summary::after {
    content: " \25BE";
  }
  #sidebar .js[open] summary::after {
    content: " \25B4";
  }
  #sidebar ul {
    margin: 6px 0 12px;
  }
  #sidebar li {
    font-size: 1.3em;
    line-height: 2;
  }
  #content h1 {
    font-size: 1.6em;
  }
  .node .photo img {
    margin: 5px 0;
  }
}

@media print {
  body,
  #page {
    background: #fff;
  }
  #sidebar,
  #main-menu {
    display: none;
  }
}
