:root {
  --outerbgcol: whitesmoke;
  --innerbgcol: white;
  --textcol: #222;
  --asidetextcol: #666;
  --linkcol: #784f21;
  /* Link Highlight Color - Basisfarbe Haus */
  --linhcol: #ce924c;
  /* Navigation Hintergrund */
  --navicol: #efdac3;
  /* Navigation Highlight, current, submenu */
  --navhcol: #f4e6d7;
  /* Navigatin Hover Submenu */
  --nhovcol: #faf3eb;
  /* 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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0 auto;
  max-width: 60em;
  min-width: 16em;
  font-family: Pagefont, sans-serif;
  color: var(--textcol);
  background-color: var(--outerbgcol);
}

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(--innerbgcol);
  font-family: PagefontBOLD;
  font-size: larger;
  position: absolute;
  left: 0%;
  width: 20%;
  margin: 0px 40%;
  padding: 5px;
  border-radius: 10px;
  text-align: center;
  z-index: 100;
  transform: translateY(-100%);
}

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

.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;
}

/* Überschriften bei der Händlerliste anpassen */
.SupplierDiv h2 {
  font-size: 1.5em;
  margin-bottom: 0.6em;
}

/*********************************/
/* 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: absolute;
  top: 0.7em;
  right: 10px;
  display: none;
}

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. */
header {
  position: relative;
}

#HeaderImageSpacer {
  width: 100%;
  padding-bottom: calc(375/960*100%);
}

#HeaderImage {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  z-index: -1;
}

#HeaderImage img {
  width: 100%;
}

#SM-Logo {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  box-shadow: 0px 0px 4px 1px gray;
  z-index: 1;
}

#SM-Logo img {
  width: 100%;
  display: block;
}

#SM-Logo-Link-Home {
  display: block;
  width: 28%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  color: rgba(0, 0, 0, 0);
}

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

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

/* Navigation per Toggle-Menü von oben für kleine und
 * mittlere Auflösungen incl. Hamburger Menü */
#toggle-main-menu-block-button {
  position: absolute;
  bottom: 0px;
  right: 0px;
  cursor: pointer;
  z-index: 1;
  color: var(--linhcol);
  opacity: 0.9;
}

.logo-color-green {
  background-color: var(--greencol);
}

.logo-color-yellow {
  background-color: var(--yellowcol);
}

.logo-color-orange {
  background-color: var(--orangecol);
}

.logo-color-rosa {
  background-color: var(--rosacol);
}

.logo-color-blue {
  background-color: var(--bluecol);
}

.logo-color-red {
  background-color: var(--redcol);
}

#toggle-main-menu-block-button img {
  height: 2.5em;
  width: 2.5em;
  margin: 0.3em 0.5em;
  filter: invert(90%) sepia(5%) saturate(1266%) hue-rotate(319deg) brightness(112%) contrast(96%);
}

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

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

#toggle-main-menu-block-checkbox:checked+nav {
  display: block;
}

.l1-sub-menu {
  display: none;
}

.l1-sub-checkbox:checked+label+ul {
  display: block;
}


/* Navigation/Menü formatieren, beginnend bei kleinen
 * Auflösungen */
nav {
  width: 100%;
  box-shadow: 0px 2px 2px 0px gray;
  text-align: center;
  background: var(--navicol);
}

nav li {
  list-style: none;
  padding: 0.6em 0;
  border-bottom: 1px solid white;
}

nav li:last-of-type {
  border-bottom: none;
}

.nav-position {
  display: inline-block;
  width: 7em;
  text-align: left;
}

nav a {
  font-size: larger;
  font-family: MenufontBOLD, sans-serif;
}

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

#main-menu a {
  display: block;
}

.toggle-sub-menu-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Schwarzes PNG auf var(--linkcol) filtern, wird bei :hover nicht verändert weil kompliziert */
.toggle-sub-menu-icon img {
  height: 1em;
  width: 1em;
  filter: invert(31%) sepia(28%) saturate(1036%) hue-rotate(351deg) brightness(95%) contrast(91%);
  margin: 0.2em 0.2em 0em 0.2em;
}

.l1-sub-checkbox:checked+label {
  transform: rotate(45deg);
}

.l1-sub-position {
  display: inline-block;
  width: 8em;
  text-align: left;
}

.l1-sub-menu a {
  font-size: medium;
}

#current-main-menu {
  background: var(--navhcol);
}

.sub-li {
  border-bottom: none;
}

#horiz-bg-painter {
  display: none;
}


/* Der Inhalt, Submenüs, Aside etc... */
#ContentPane {
  clear: both;
  display: flex;
  flex-flow: row wrap;
  background-color: var(--innerbgcol);
  box-shadow: 0px 0px 3px -1px gray;
}

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(--outerbgcol);
}

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

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

#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(--innerbgcol);
}

.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;
}

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

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


/* Seitenfuß'*/
footer {
  text-align: center;
  font-family: MenufontBOLD, sans-serif;
  color: var(--linkcol);
  background-color: var(--innerbgcol);
  box-shadow: 0px 2px 3px -1px gray;
}

#FooterIcons {
  width: 100%;
  border-bottom: 1px solid #750b1b;
  margin: 0 auto 0.6em auto;
}

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







/* Smartphones und Tablets mit mittlerer Auflösung */
@media all and (min-width: 35em) {

  nav a {
    font-size: x-large;
  }

  .nav-position {
    width: 9em;
  }

  .l1-sub-position {
    width: 10em;
  }

  .l1-sub-menu a {
    font-size: larger;
  }

  main {
    flex: 8;
  }

  aside {
    flex: 4;
    padding-left: 0.5em;
    padding-top: 2.5em;
  }

  .Jump2aside_at_bottom {
    display: none;
  }

  .Jump2Top_aside_end {
    display: none;
  }

  .Jump2Top_main_end {
    display: block;
  }

  .Jump2Top_both_end {
    display: block;
  }
}





/* CSS Tabs werden bei einer Auflösung _zwischen_ Mittel und Groß umgebaut */
/* Die Bidlbreite in den Gallerys darin wird dabei auch angepasst */
/* Werte durch Tryal&Error bestimmt! */
@media all and (min-width: 42.5em) {
  .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(--outerbgcol);
  }

  .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(--innerbgcol);
  }

  /* 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(--innerbgcol);
    left: 0;
    bottom: -1px;
  }

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






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

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

  #main-menu-block {
    display: block;
  }

  .toggle-sub-menu-icon {
    display: none;
  }

  .l1-sub-checkbox:checked+label+ul {
    display: none;
  }

  nav {
    height: 5.2em;
    position: relative;
  }

  nav ul {
    height: 2.7em;
    border-bottom: 1px solid silver;
  }

  nav li {
    float: left;
    border-bottom: none;
  }

  .nav-position {
    width: auto;
    padding: 0px 1em;
  }

  nav a {
    font-size: larger;
  }

  #current-main-menu {
    border: 1px solid silver;
  }

  #horiz-bg-painter {
    display: block;
    position: absolute;
    left: 0;
    width: 100%;
    top: 2.7em;
    height: 2.5em;
    margin-top: 1px;
    background: var(--navhcol);
  }

  .l1-sub-menu {
    position: absolute;
    padding-left: 0.5em;
    top: 2.7em;
    height: 2.4em;
    border-bottom: none;
    margin-top: 1px;
    background: var(--navhcol);
  }

  .l1-sub-menu a {
    font-size: medium;
  }

  .l1-sub-position {
    display: inline-block;
    width: auto;
    padding: 0em 0.5em;
  }

  #current-sub-menu {
    display: block;
  }

  /* Hovers            */
  /* Dropdown Menüs DE */
  #Home-main-menu:hover #Home-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Weingut-main-menu:hover #Weingut-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Weine-main-menu:hover #Weine-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Vertrieb-main-menu:hover #Vertrieb-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Presse-main-menu:hover #Presse-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Kontakt-main-menu:hover #Kontakt-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  /* Dropdown Menüs EN */
  #Home-main-menu:hover #Home-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Winery-main-menu:hover #Winery-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Wines-main-menu:hover #Wines-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Distribution-main-menu:hover #Distribution-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Press-main-menu:hover #Press-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  #Contact-main-menu:hover #Contact-sub-menu {
    display: block;
    box-shadow: 0px 0px 2px 2px silver;
    z-index: 10;
    background: var(--nhovcol);
  }

  nav .social-linklist {
    display: block;
  }

  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;
  }

  #FooterIcons img {
    width: 80%;
    margin: 0 0 0 auto;
  }

  .Jump2aside_at_bottom {
    display: none;
  }

  .Jump2Top_aside_end {
    display: none;
  }

  .Jump2Top_main_end {
    display: block;
  }

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