/*
  Destillerie E. Gößwein - custom theme
  Colors reused from the original site (www.destillerie-goesswein.de):
    - Primary / brand color:   #33387C  (dark indigo blue - headings, links, borders)
    - Accent / background:     #f0c68d  (warm sand/tan - used behind hero & footer bands)
    - Base background:         #ffffff
*/

:root {
  --gw-primary: #33387c;
  --gw-primary-dark: #262a5c;
  --gw-accent: #f0c68d;
  --gw-text: #000000;

  --bs-primary: var(--gw-primary);
  --bs-link-color: var(--gw-primary);
  --bs-link-hover-color: var(--gw-primary-dark);
}

html {
  scroll-behavior: smooth;
}

.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  background-color: var(--gw-primary);
  color: #fff;
  border-radius: 4px;
}

body {
  font-family: 'Lora', 'Helvetica Neue', Helvetica, Arial, sans-serif, serif;
  color: var(--gw-text);
  background-color: #ffffff;
  padding-top: 72px; /* offset for fixed navbar */
}

section[id] {
  scroll-margin-top: 72px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--gw-primary);
  font-family: 'Lora', Georgia, serif;
}

a {
  color: var(--gw-primary);
  font-weight: bold;
}
a:hover {
  color: var(--gw-primary-dark);
  text-decoration: underline;
}

.brand-script {
  font-family: 'Mr Dafoe', 'Helvetica Neue', Arial, cursive;
  color: var(--gw-primary);
  letter-spacing: 1px;
  font-size: 2.5rem;
}

/* Navbar */
.navbar-gw {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(3px);
  border-bottom: 3px solid var(--gw-accent);
  transition: box-shadow 0.25s ease, padding 0.25s ease;
}
.navbar-gw.navbar-scrolled {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}
.navbar-gw .navbar-brand {
  color: var(--gw-primary);
  font-weight: bold;
}
.navbar-gw .navbar-brand,
.navbar-gw .navbar-brand:hover,
.navbar-gw .navbar-brand:focus,
.navbar-gw .navbar-brand:active {
  color: var(--gw-primary);
  text-decoration: none;
}
.navbar-gw .nav-link {
  color: var(--gw-primary);
  font-weight: 600;
  position: relative;
}
.navbar-gw .nav-link.active,
.navbar-gw .nav-link:hover {
  color: var(--gw-primary-dark);
}
.navbar-gw .nav-link:hover {
  text-decoration: underline;
  text-decoration-color: var(--gw-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.navbar-gw .nav-link.active {
  text-decoration: underline;
  text-decoration-color: var(--gw-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Desktop: start larger, then shrink to current size on scroll */
@media (min-width: 992px) {
  .navbar-gw {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
  .navbar-gw .navbar-brand {
    font-size: 1.4rem;
    transition: font-size 0.25s ease;
  }
  .navbar-gw .nav-link {
    font-size: 1.2rem;
    transition: font-size 0.25s ease;
  }
  .navbar-gw .logo-img {
    height: 64px;
    transition: height 0.25s ease;
  }

  .navbar-gw.navbar-scrolled {
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
  }
  .navbar-gw.navbar-scrolled .navbar-brand {
    font-size: 1.25rem;
  }
  .navbar-gw.navbar-scrolled .nav-link {
    font-size: 1rem;
  }
  .navbar-gw.navbar-scrolled .logo-img {
    height: 56px;
  }
}

/* Hero / accent band */
.gw-accent-band {
  background-color: #faf6ee;
  border: 1px solid rgba(51, 56, 124, 0.15);
}

.gw-section-head {
  padding: 1.4rem 0 0.8rem;
  background-color: #ffffff;
}

.gw-section-head .brand-script {
  font-size: 3rem;
}

.gw-subtitle {
  color: #444;
  font-size: 1.05rem;
}

.gw-section-alt {
  background-color: #faf6ee;
}

/* Scroll reveal fade-in-up effect */
.gw-fade {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.gw-fade-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image hover zoom */
.gw-hover-zoom {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}
.gw-hover-zoom:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Card hover lift */
.gw-hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gw-hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(51, 56, 124, 0.18);
}

/* Back to top button */
#backToTop {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 48px;
  height: 48px;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1030;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Cards */
.card-gw {
  border: 1px solid #e3d3b3;
  border-radius: 6px;
  height: 100%;
  overflow: hidden;
}
.card-gw .card-title a {
  text-decoration: none;
}
.card-gw .card-img-top {
  height: 220px;
  object-fit: cover;
  object-position: center;
}

/* Willkommen: make card images visibly rounded */
#willkommen .card-gw .card-img-top {
  border-radius: 0.75rem;
  margin: 0.75rem 0.75rem 0;
  width: calc(100% - 1.5rem);
}

/* Awards table */
.table-gw {
  --bs-table-bg: #ffffff;
  --bs-table-striped-bg: #faf6ee;
  --bs-table-striped-color: #000000;
  border-color: rgba(51, 56, 124, 0.22);
}
.table-gw thead {
  background-color: var(--gw-primary);
  color: #fff;
}
.table-gw td, .table-gw th {
  vertical-align: middle;
}
.table-gw tbody tr:hover {
  background-color: rgba(51, 56, 124, 0.06);
}

/* Footer */
.footer-gw {
  background-color: var(--gw-primary);
  color: #f2f2f2;
  padding: 2rem 0 1rem;
  margin-top: 3rem;
}
.footer-gw a {
  color: var(--gw-accent);
  font-weight: normal;
}
.footer-gw a:hover {
  color: #ffffff;
}

.btn-gw-primary {
  background-color: var(--gw-primary);
  border-color: var(--gw-primary);
  color: #fff;
}
.btn-gw-primary:hover {
  background-color: var(--gw-primary-dark);
  border-color: var(--gw-primary-dark);
  color: #fff;
}

.logo-img {
  height: 56px;
  width: auto;
}

.press-quote {
  font-style: italic;
  color: #555;
}

/* Desktop-only decorative reference to legacy apple-glass motif */
@media (min-width: 992px) {
  body::after {
    content: "";
    position: fixed;
    right: 1rem;
    bottom: 1.5rem;
    width: 101px;
    height: 300px;
    background-image: url('../images/Glas.png');
    background-repeat: no-repeat;
    background-size: 101px 300px;
    background-position: center bottom;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
  }
}
