
.degustationsbilder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 1.5rem auto;
}

.degustationsbilder .glas-stehend {
    height: 320px;
    width: auto;
}

.degustationsbilder .glas-liegend {
    width: 320px;
    height: auto;
}

.degustationsbilder img {
    max-width: 100%;
    object-fit: contain;
    border-radius: 6px;
}



/* Whiskygläser: Original-Seitenverhältnis erhalten */

.glas-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  padding: 5px;
  background-color: #f9f9f9;
}


.glas-item {
  text-align: center;
  font-size: 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 10px 20px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.glas-item img {
  max-width: 100%;
  transition: transform 0.3s ease;
}
.glas-item figcaption {
  z-index: 9;
  border-radius: 8px;
}


.glas-item .galerie-bild-button {
    display: block;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0 auto;
    border: none;
    background: transparent;
}

.glas-item .galerie-bild-button img {
    display: block;
    width: auto !important;
    height: 106px;
    max-width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    border-radius: 8px
  }

  .tooltipGlas {
      position: relative;
      display: inline-block;
  }

  .tooltipGlas .tooltiptext {
      visibility: hidden;
      width: max-content;
      min-width: 180px;
      max-width: 260px;
      box-sizing: border-box;

      color: #333;
      font-size: 11px;
      text-align: left;
      border-radius: 8px;
      padding: 7px;

      position: absolute;
      z-index: 100;
      margin-left: 20px;
      margin-top: 10px;

      background-color: #f3eadf;
      border: 1px solid #c59d5f;
      box-shadow: 0 4px 9px rgba(0, 0, 0, 0.20);

      opacity: 0;
      transition: opacity 0.25s ease-in-out;
  }

  .tooltipGlas:hover .tooltiptext {
      visibility: visible;
      opacity: 1;
  }

  .tooltipGlas .tooltiptext::after {
      content: "";
      position: absolute;
      top: -10px;
      left: 50%;
      transform: translateX(-50%);
      border-width: 8px;
      border-style: solid;
      border-color: transparent transparent #f3eadf transparent;
  }

  .tooltipGlas table {
      width: 100%;
      border-collapse: collapse;
      margin: 0;
  }

  .tooltipGlas td {
      padding: 4px;
      font-size: 11px;
      color: #555;
  }

  .tooltipGlas tr:nth-child(odd) {
      background-color: #f8f3ed;
  }

  .tooltipGlas tr:nth-child(even) {
      background-color: #eee3d6;
  }

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

  .tooltipGlas figcaption {
      bottom: -30px;
      left: 0;
  }

/* ==========================================
   GLÄSER – VERGLEICHSTABELLE
   ========================================== */

 .glas-tabelle-wrapper {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    margin: 0;
    max-width: 525px;
    min-width: 0;
    box-sizing: border-box;
    margin: 1rem auto;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 10px;
    box-shadow: 0 2px 7px rgba(0,0,0,0.12);
}
@media (max-width: 700px) {
  .glas-tabelle-wrapper {
    max-width: 380px;
  }
}
.glas-tabelle {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.95rem;
    margin:0;
}

/* Tabellenkopf */

.glas-tabelle thead th {
    background: #604627;
    color: #fff;
    padding: 0.3rem 0.4rem;
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
    font-size: 0.9rem;
}

/* Erste Spalte und Glasname */

.glas-tabelle tbody td {
    padding: 0.3rem 0.4rem;
    border-bottom: 1px solid #ded3c5;
    font-size: 0.8rem;
}
@media (max-width: 700px) {
  .glas-tabelle thead th, .glas-tabelle tbody td {
    font-size: 0.6rem;
    padding: 0.3rem 0.1rem;
  }
}
/* Abwechselnde Zeilenfarben */

.glas-tabelle tbody tr:nth-child(odd) {
    background: #f8f5f0;
}

.glas-tabelle tbody tr:nth-child(even) {
    background: #eee6dc;
}

/* Bild der letzten Zeile oberhalb ab */
.glas-tabelle tbody tr:last-child .glas-hover img {
    top: auto;
    bottom: 50%;
    transform: translate(10px, -10px);
}
/* Hover-Effekt */

.glas-tabelle tbody tr:hover {
    background: #e4d6c5;
}

/* Nummer und Zahlenwerte */

.glas-tabelle tbody td:not(:nth-child(2)) {
    text-align: center;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Glasname */

.glas-tabelle tbody td:nth-child(2) {
    font-weight: 500;
}
.glas-tabelle thead th:nth-child(2) {
    text-align: left;
}

/* Letzte Tabellenzeile */

.glas-tabelle tbody tr:last-child td {
    border-bottom: none;
}


/* =====================================
   HIGHLIGHT – BESONDERES SAMMLERSTÜCK
   ===================================== */

.glas-highlight {
    grid-column: 1 / -1;
    justify-self: center;

    width: min(100%, 440px);
    box-sizing: border-box;

    margin: 1.5rem auto;
    padding: 20px;

    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}
.glas-highlight h2 {
    margin: 0 0 15px;
    font-size: 1.2rem;
    text-align: center;
}
@media (max-width: 700px) {
  .glas-highlight {
    max-width: 380px;
  }
  .glas-highlight h2 {
    font-size: 1.1rem;
  }
}

.glas-highlight figure {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.glas-highlight .galerie-bild-button img {
    height: auto;
    max-height: 180px;
    max-width: 100%;
    width: auto;
}

.glas-highlight figcaption {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 8px;
    background: #f3eee7;
    border-radius: 8px;
    font-style: italic;
}


.glas-hover {
    position: relative;
    cursor: help;
}

.glas-hover img {
    display: none;
    position: absolute;
    z-index: 1000;
    left: 100%;
    top: 50%;
    transform: translate(10px, -50%);
    width: 140px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    background: #fff;
}

.glas-hover:hover img {
    display: block;
}
