:root {
  --bgcol: white;
  --headercol: #f7f2c6;
  --headercol-rgb: 247, 242, 197;
  --textcol: #222;
  --asidetextcol: #666;
  --linkcol: #784f21;
  /* Link Highlight Color - Basisfarbe Haus */
  --linhcol: #ce924c;
  /* Linkfarbe Social Links */
  --socicol: gray;
  --greencol: #6b942e;
  --yellowcol: #fcc52b;
  --orangecol: #cc4b17;
  --rosacol: #ec6467;
  --bluecol: #6e9bcd;
  --redcol: #a01d30;
}

/*
CSS Filter um von Schwarz auf die gewünsche Farbe zu kommen:

 --linkcol: #784f21;
 filter: invert(31%) sepia(28%) saturate(1036%) hue-rotate(351deg) brightness(95%) contrast(91%);

 --linhcol: #ce924c;
 filter: invert(57%) sepia(57%) saturate(419%) hue-rotate(352deg) brightness(96%) contrast(90%);

 --socicol: gray;
 filter: invert(50%);

 --nhovcol: #faf3eb;
 filter: invert(90%) sepia(5%) saturate(1266%) hue-rotate(319deg) brightness(112%) contrast(96%);

*/

@font-face {
  font-family: 'Pagefont';
  src: url('/fonts/ptsans-regular.woff') format('woff');
}

@font-face {
  font-family: 'PagefontBOLD';
  src: url('/fonts/ptsans-bold.woff') format('woff');
}

@font-face {
  font-family: 'Menufont';
  src: url('/fonts/ptsans-caption.woff') format('woff');
}

@font-face {
  font-family: 'MenufontBOLD';
  src: url('/fonts/ptsans-caption-bold.woff') format('woff');
}

* {
  margin: 0;
  padding: 0;
}

body {
  font-family: Pagefont, sans-serif;
  color: var(--textcol);
  background-color: var(--bgcol);
}

a {
  text-decoration: none;
  color: var(--linkcol);
  position: relative;
  transition: all ease 0.3s;
}

a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--linhcol);
  visibility: hidden;
  transform: scaleX(0);
  transition: all 0.3s ease-in-out 0s;
}

a:focus::before,
a:hover::before {
  visibility: visible;
  transform: scaleX(1);
}

a:hover,
a:focus {
  color: var(--linhcol);
}

.skip-to-content {
  background: var(--textcol);
  color: var(--bgcol);
  font-family: PagefontBOLD;
  font-size: larger;
  position: fixed;
  top: 0;
  left: 0%;
  width: 20%;
  margin: 0px 40%;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
  transform: translateY(-100%);
}

.skip-to-content:focus,
.skip-to-content:active {
  color: var(--bgcol);
  font-family: PagefontBOLD;
  font-size: larger;
  left: 0%;
  width: 20%;
  margin: 15px 40%;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  z-index: 1000;
  transform: translateY(0%);
}

.skip-to-content:focus:before,
.skip-to-content:active:before {
  visibility: hidden;
  transform: scaleX(0);
}

p {
  text-align: justify;
  margin-bottom: 1.5em;
}

#ContentPane ul {
  margin-bottom: 1.5em;
}

#lastmod {
  font-size: x-small;
  font-family: Pagefont;
  padding-bottom: 0.3em;
}


/* H1-H3 Überschriften um 1 Schritt verkleinern
/* (wie H2-H4) */
h1 {
  font-size: 1.5em;
  margin-bottom: 0.6em;
}

h2 {
  font-size: 1.17em;
  margin-bottom: 0.4em;
}

h3 {
  font-size: 1.12em;
  margin-bottom: 0.2em;
}

/*********************************/
/* Seitenaufteilung beginnt hier */
/*********************************/

/* Sprachumschalter */
.language-linklist {
  width: 100%;
  text-align: right;
  padding-top: 0.4em;
  display: inline-block;
}

/* Social Links Facebook, Twitter, RSS... einblenden enweder
/* nebendem Menü oder unten nach den Kontakten */
nav .social-linklist {
  position: relative;
  display: block;
}

footer .social-linklist {
  margin-top: 0.6em;
}

/* Schwarzes PNG "entsättigen" auf 50% grau wie bei var(--socicol) */
.social-linklist img {
  width: 1em;
  padding: 0 0.3em 0.05em 0.3em;
  filter: invert(50%);
}

.social-linklist a:focus::before,
.social-linklist a:hover::before {
  visibility: hidden;
  transform: scaleX(0);
}

/* Schwarzes PNG auf var(--linhcol) filtern */
.social-linklist img:hover,
.social-linklist img:focus {
  filter: invert(57%) sepia(57%) saturate(419%) hue-rotate(352deg) brightness(96%) contrast(90%);
  transition: all ease 0.3s;
}

/* Seitenkopf mit Bildern und Logos. */

#BackgroundImage {
  position: fixed;
  width: 100%;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: -1000;
}

#BackgroundImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#HeaderLogoBar {
  position: relative;
  width: 100%;
  top: 0;
  height: 80px;
  background-color: var(--headercol);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
}

#HeaderLogoBar img {
  max-height: 60px;
  margin-left: 8vw;
}

#SM-Logo-Link-Home:hover::before {
  transition: none;
}

#SM-Logo-Link-Home:hover::before {
  visibility: hidden;
}

#toggle-main-menu-block-button {
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  margin-right: 8vw;
  z-index: 50;
}

#toggle-main-menu-block-button span {
  width: 35px;
  height: 3px;
  background-color: #999;
  margin: 4px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

input[type="checkbox"] {
  display: none;
}

nav {
  position: fixed;
  width: 350px;
  max-width: 100%;
  top: 0px;
  right: -350px;
  height: 100%;
  background-color: var(--headercol);
  display: flex;
  align-items: center;
  transition: all 0.5s ease;
  z-index: 90;
}

#toggle-main-menu-block-checkbox:checked~nav {
  right: 0px;
}

.SlideMenuShadow {
  position: fixed;
  width: 100vw;
  height: 100vh;
  left: 0;
  background-color: black;
  opacity: 0;
  z-index: 110;
  visibility: hidden;
  transition: all 0.5s ease;
}

#toggle-main-menu-block-checkbox:checked~header .SlideMenuShadow {
  left: -350px;
  opacity: 0.3;
  visibility: visible;
}

/* Hamburger zu X Animation */
#toggle-main-menu-block-checkbox:checked~header .hamburger span:nth-child(1) {
  transform: translate(0px, 11px) rotate(405deg);
}

#toggle-main-menu-block-checkbox:checked~header .hamburger span:nth-child(2) {
  opacity: 0;
}

#toggle-main-menu-block-checkbox:checked~header .hamburger span:nth-child(3) {
  transform: translate(0px, -11px) rotate(-405deg);
}

nav li {
  list-style: none;
  padding: 1em 50px;
}

nav a {
  font-size: 120%;
  font-weight: bold;
  font-family: PageFont, sans-serif;
}

nav a:focus::before,
nav a:hover::before {
  visibility: hidden;
  transform: scaleX(0);
}

nav a:hover,
nav a:focus {
  color: var(--linhcol);
}

/* Seiteninhalt */
#MainContainer {
  background-color: var(--bgcol);
  margin-top: 100vh;
  min-height: 90vh;
}

#ContentPane {
  width: 85%;
  max-width: 85%;
  margin: 0 auto;
  clear: both;
  display: flex;
  flex-flow: row wrap;
}

main {
  flex: 1 100%;
  padding: 0.8em 1.8em 1.8em 1.8em;
}

figure {
  width: 100%;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.6em;
}

.figleft,
.figright {
  float: none;
}

figure img {
  width: 100%;
  max-height: 360px;
  object-fit: scale-down;
  display: block;
}

figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding-top: 0.2em;
  padding-bottom: 0.2em;
  background: black;
  color: white;
  opacity: 0;
  bottom: -3em;
  transition: all 1s ease;
}

figure:hover figcaption {
  opacity: 0.6;
  bottom: 0;
}

figure::before {
  content: "?";
  position: absolute;
  bottom: 0.8em;
  right: 0.8em;
  background: #eeeeee;
  color: black;
  opacity: 0.5;
  width: 1.5em;
  height: 1.5em;
  border-radius: 1em;
  text-align: center;
  font-size: 1.5em;
  line-height: 1.5em;
  transition: all 1s ease;
}

figure:hover::before {
  opacity: 0;
}

aside {
  flex: 1 100%;
  padding: 0 1.8em 1.8em 1.8em;
}

aside p,
.newsdate {
  font-size: 90%;
  color: var(--asidetextcol);
}

.IconTagLine {
  text-align: center;
  margin-top: 1.0em;
  margin-bottom: 0.6em;
  font-weight: bold;
}

.Jump2aside_at_bottom {
  display: block;
}

.Jump2Top_aside_end {
  display: block;
  text-align: center;
}

.Jump2Top_main_end {
  display: none;
}

.Jump2Top_both_end {
  display: block;
  text-align: center;
}

.PageButton a {
  display: inline-block;
  font-family: MenufontBOLD, sans-serif;
  font-size: 95%;
  margin: 0em 0.2em 1em 0.2em;
}

.EmphBox {
  padding: 1em;
  border: 1px solid silver;
  background-color: snow;
}

.WarnBox {
  padding: 1em 1em 0 1em;
  border: 1px solid silver;
  background-color: bisque;
}

.page-holder {
  width: 100%;
}

.pagination {
  list-style: none;
  float: left;
  position: relative;
  left: 50%;
}

.pagination li {
  display: block;
  float: left;
  position: relative;
  right: 50%;
}

.WineDescBottle {
  float: left;
  margin: 0 2em 1em 0;
}

.WinesGrid,
.AwardsGrid,
.GalleryGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14em, 1fr));
  gap: 2em;
  clear: left;
}

.GalleryGrid {
  grid-template-columns: repeat(auto-fill, 140px);
  grid-column-gap: 0.2em;
  justify-content: space-evenly;
}

.WineTile,
.AwardTile,
.GalleryTile {
  display: block;
  color: var(--textcol);
  box-shadow: 1px 1px 5px -2px;
  border-radius: 0.3em;
  padding: 1em;
  margin-left: auto;
  margin-right: auto;
}

.WineTile p {
  text-align: left;
}

.AwardTile {
  box-shadow: none;
  border: 1px solid lightgray;
  text-align: center;
}

.AwardTile p {
  margin-top: 1em;
  text-align: center;
}

.GalleryTile {
  box-shadow: none;
  border: none;
  padding: 0em;
}

.GalleryTileMainPic {
  max-width: 100%;
  max-height: 120px;
  display: block;
  margin: auto;
}

.GalleryTile p {
  font-size: 90%;
  color: var(--socicol);
  text-align: center;
  margin: 0.7em auto;
}

/* Schwarzes PNG auf var(--linkcol) filtern, wird bei :hover nicht verändert weil kompliziert */
.GalleryTileDownloadIcon {
  width: 1em;
  display: inline;
  filter: invert(31%) sepia(28%) saturate(1036%) hue-rotate(351deg) brightness(95%) contrast(91%);
}

.WineTile:focus,
.WineTile:hover {
  box-shadow: 1px 1px 5px 2px var(--linhcol);
}

.WineTile:focus::before,
.WineTile:hover::before {
  transition: none;
  visibility: hidden
}

.WineTileText {
  color: var(--textcol);
  margin-left: 3.5em
}

.WineTileSmallBadge {
  height: 1.25em;
  margin: 0.2em;
}

.WineTileIconImage {
  height: 33px;
  margin-top: -3px;
  text-align: right;
  border-bottom: 1px solid
}

.WineDescIconImage {
  display: block;
  margin: auto;
}

.tileweiterlesen {
  margin-bottom: 0.5em;
}

.ausverkauft {
  padding-top: 0.3em;
  color: var(--socicol);
  font-style: italic;
  margin-bottom: 0.3em;
}

#wine-details {
  width: 100%;
}

#wine-details dt {
  float: left;
  padding-right: 0.3em;
  font-weight: bold;
}

#wine-details dd {
  margin-left: 40%;
  margin-bottom: 0.5em;
}

.IngredientsGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18em, 1fr));
  gap: 3em;
  clear: left
}

.IngredientsGrid .IngredientsTile {
  margin-right: auto;
  margin-left: auto;
}

.nutritable {
  border: black solid thin;
  border-collapse: collapse;
}

.nutritable th {
  border: black solid thin;
  background-color: lightgray;
  padding: 0.2em;
}

.nutritable th:nth-child(1) {
  text-align: left;
}

.nutritable td {
  border: black solid thin;
  padding: 0.2em;
}

.nutritable td:nth-child(2) {
  text-align: center;
}

.WebshopBadge a:focus::before,
.WebshopBadge a:hover::before {
  visibility: hidden;
  transform: scaleX(0);
}

/* Schwarzes PNG auf var(--linkcol) filtern */
.WebshopBadge img {
  display: inline;
  margin: 0.2em 0 0 0.4em;
  transform: rotate(-4deg);
  filter: invert(31%) sepia(28%) saturate(1036%) hue-rotate(351deg) brightness(95%) contrast(91%);
  transition: all 0.3s ease-in-out 0s;
}

/* PNG bei hover auf var(--linhcol) filtern */
.WebshopBadge a:focus img,
.WebshopBadge a:hover img {
  filter: invert(57%) sepia(57%) saturate(419%) hue-rotate(352deg) brightness(96%) contrast(90%);
}

/* CSS Tabs */
.tabs input {
  display: none;
}

.tablabels label {
  float: left;
  width: 90%;
  padding: 0.7em 1.2em;
  border-top: none;
  border-right: 1px solid silver;
  border-bottom: 1px solid silver;
  border-left: 1px solid silver;
  font-weight: bold;
  background: var(--headercol);
}

.tablabels label:nth-child(1) {
  border-top: 1px solid silver;
}

.tablabels label:hover,
.tablabels label:focus {
  background: var(--bgcol);
}

#tab-1:checked~div label[for="tab-1"],
#tab-2:checked~div label[for="tab-2"],
#tab-3:checked~div label[for="tab-3"],
#tab-4:checked~div label[for="tab-4"] {
  background: var(--bgcol);
}

.tabgroup {
  display: block;
  clear: both;
}

.tab {
  padding-top: 1.5em;
  display: none;
}

#tab-1:checked~div .tab-1,
#tab-2:checked~div .tab-2,
#tab-3:checked~div .tab-3,
#tab-4:checked~div .tab-4 {
  display: block;
}

/* OSM Iframe */
#osmframediv {
  display: block;
  text-align: center;
}

#osmframe {
  width: 80%;
  height: 240px;
}

/* Contact Form */
#contactform input,
select,
textarea {
  width: 100%;
  box-sizing: border-box;
}

#contactform textarea {
  resize: none;
  padding: 6px;
}



/* Seitenfuß'*/
footer {
  background-color: var(--bgcol);
  text-align: center;
  font-family: MenufontBOLD, sans-serif;
  color: var(--linkcol);
}

#FooterIcons {
  width: 100%;
  margin: 0 auto 0.6em auto;
}

#FooterIcons img {
  display: block;
  width: 100%;
}



/* Viewports mit großer Auflösung */
@media all and (min-width: 768px) {

  #HeaderLogoBar {
    position: fixed;
    width: 100%;
    top: 0;
    height: 90px;
    background-color: var(--headercol);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  #HeaderLogoBar img {
    max-height: 65px;
    transition: all 0.3s ease;
    margin-left: 0;
  }

  nav {
    position: fixed;
    width: 100%;
    top: 90px;
    height: 50px;
    right: 0;
    background-color: var(--headercol);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  #HeaderLogoBar.expanded {
    position: fixed;
    width: 100%;
    top: 0;
    height: 300px;
    background-color: rgba(var(--headercol-rgb), 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }

  #HeaderLogoBar.expanded img {
    max-height: 218px;
    transition: all 0.3s ease;
  }

  nav.expanded {
    position: fixed;
    width: 100%;
    top: 300px;
    height: 50px;
    background-color: rgba(var(--headercol-rgb), 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
  }

  #toggle-main-menu-block-button {
    display: none;
  }

  nav li {
    float: left;
    padding: 0 0.5em;
  }

  nav a {
    font-size: 150%;
    font-weight: bold;
    font-family: PageFont, sans-serif;
  }


  #ContentPane {
    max-width: 1310px;
  }

  #MainContent,
  #MainContent h1[id],
  #MainContent h2[id] {
    scroll-margin-top: 165px;
  }

  main {
    flex: 8;
  }

  figure {
    width: 58%;
    margin-bottom: 0.3em;
  }

  .figleft {
    float: left;
    margin-right: 0.6em;
  }

  .figright {
    float: right;
    margin-left: 0.6em;
  }

  .figcenter {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.2em;
  }

  aside {
    flex: 3;
    padding-top: 2.5em;
  }

  .Jump2aside_at_bottom {
    display: none;
  }

  .Jump2Top_aside_end {
    display: none;
  }

  .Jump2Top_main_end {
    display: block;
  }

  .Jump2Top_both_end {
    display: block;
    text-align: left;
  }

  .GalleryGrid {
    grid-template-columns: repeat(auto-fill, 176px);
  }

  .GalleryTile img {
    max-height: 132px;
  }

  .tablabels label {
    float: left;
    width: auto;
    padding: 0.7em;
    border-top: 1px solid silver;
    border-right: 1px solid silver;
    border-bottom: none;
    font-weight: bold;
    background: var(--headercol);
  }

  .tablabels label:nth-child(1) {
    border-left: 1px solid silver;
    margin-left: 0.6em;
  }

  #tab-1:checked~div label[for="tab-1"],
  #tab-2:checked~div label[for="tab-2"],
  #tab-3:checked~div label[for="tab-3"],
  #tab-4:checked~div label[for="tab-4"] {
    position: relative;
    background: var(--bgcol);
  }

  /* cover .tab border on the bottom */
  #tab-1:checked~div label[for="tab-1"]::after,
  #tab-2:checked~div label[for="tab-2"]::after,
  #tab-3:checked~div label[for="tab-3"]::after,
  #tab-4:checked~div label[for="tab-4"]::after {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--bgcol);
    left: 0;
    bottom: -1px;
  }

  .tab {
    padding: 1.5em 1em;
    border: 1px solid silver;
    display: none;
  }
}