:root {
  --primary-gold: #c5a059;
  --dark-bg: #1a1a1a;
  --light-bg: #f4f1ea;
  --text-dark: #333333;
  --text-light: #ffffff;
}

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  margin: 0;
}

.bg-light-cream {
  background-color: var(--light-bg);
  color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6, .serif-font {
  font-family: 'Playfair Display', serif;
}

.text-gold {
  color: var(--primary-gold) !important;
}

.hover-gold:hover {
  color: var(--primary-gold) !important;
  transition: color 0.3s ease;
}

.top-bar {
  background-color: #000;
  color: #888;
  font-size: 0.85rem;
  padding: 5px 0;
  border-bottom: 1px solid #333;
}

.top-bar a {
  color: #888;
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar a:hover {
  color: var(--primary-gold);
}

.custom-navbar {
  background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.95)),
              url('../img/navbar-texture.jpg');
  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  border-bottom: 2px solid var(--primary-gold);
  padding-top: 15px;
  padding-bottom: 15px;
}

.custom-navbar .nav-link {
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 10px 20px !important;
  transition: color 0.3s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--primary-gold);
}

.custom-navbar .dropdown-menu {
  background-color: var(--dark-bg);
  border: 1px solid var(--primary-gold);
  border-radius: 0;
  margin-top: 15px;
}

.custom-navbar .dropdown-item {
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  padding: 10px 20px;
  transition: all 0.3s ease;
}

.custom-navbar .dropdown-item:hover,
.custom-navbar .dropdown-item:focus {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
}

.custom-navbar .nav-link.dropdown-toggle:focus,
.custom-navbar .nav-link.dropdown-toggle:active,
.custom-navbar .nav-link.dropdown-toggle.show {
  color: var(--primary-gold) !important;
}

.navbar-toggler {
  border: 2px solid var(--primary-gold);
  padding: 10px 13px;
  background-color: transparent !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.toggler-bar {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--primary-gold);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar-toggler[aria-expanded="true"] .toggler-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar-brand-centered {
  position: absolute;
  top: -1px;
  right: 15px;
  z-index: 1000;
}

.navbar-brand-centered img {
  height: 120px;
  filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.5));
}

.hero-section {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.hero-content {
  z-index: 2;
}

.hero-content h1 {
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.85);
}

.service-section {
  position: relative;
  z-index: 10;
  margin-top: -100px;
}

.service-box {
  background-color: #111;
  border: 1px solid #333;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-box:hover {
  border-color: var(--primary-gold);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.7);
}

.service-img-wrapper {
  overflow: hidden;
  border-bottom: 1px solid var(--primary-gold);
}

.service-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-box:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-content {
  padding: 25px 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-content h3 {
  color: var(--text-light);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.btn-gold {
  background-color: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  padding: 12px 35px;
  font-family: 'Lato', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
}

.btn-gold-filled {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
  border: 2px solid var(--primary-gold);
  padding: 12px 35px;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-gold-filled:hover {
  background-color: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
}

.btn-outline-gold {
  color: var(--text-light);
  border: 1px solid var(--primary-gold);
  background: transparent;
  padding: 8px 20px;
  font-size: 0.85rem;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s;
  margin-top: auto;
  align-self: center;
}

.btn-outline-gold:hover {
  background: var(--primary-gold);
  color: var(--dark-bg);
}

.referenz-card {
  background: #fff;
  border-radius: 0.375rem;
  box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
  overflow: hidden;
  height: 100%;
}

.referenz-card .referenz-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.referenz-card .referenz-text {
  padding: 1.25rem;
}

.leistungen-karte {
  background-color: #fff;
  border: 1px solid #e0d9cc;
  border-left: 3px solid var(--primary-gold);
  padding: 16px 20px;
  color: var(--text-dark);
  transition: all 0.25s ease;
  height: 100%;
}

.leistungen-karte:hover {
  background-color: var(--primary-gold);
  border-color: var(--primary-gold);
  color: #fff;
  transform: translateX(4px);
}

.leistungen-karte:hover small {
  color: rgba(255,255,255,0.8) !important;
}

.leistungen-karte:hover .text-gold {
  color: #fff !important;
}

.cta-section {
  background: linear-gradient(rgba(42, 37, 33, 0.85), rgba(42, 37, 33, 0.95)),
              url('../img/navbar-texture.jpg');
  background-size: auto;
  background-repeat: repeat;
  background-position: center;
  color: var(--text-light);
  border-top: 2px solid var(--primary-gold);
  border-bottom: 2px solid var(--primary-gold);
}

.cta-section h2 {
  font-size: 2rem;
}

.cta-section p {
  color: #d1c9b8;
}

.leistung-img-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 75px;
}

.leistung-siegel {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 150px;
  transform: translateY(50%);
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0px 5px 10px rgba(0,0,0,0.5));
}

#scrollToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background-color: transparent;
  color: var(--primary-gold);
  border: 2px solid var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease,
              background-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

#scrollToTop.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollToTop:hover {
  background-color: var(--primary-gold);
  color: var(--dark-bg);
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
}

.site-footer {
  background-color: var(--dark-bg);
  color: var(--text-light);
  padding: 60px 0 20px;
  border-top: 2px solid var(--primary-gold);
  font-size: 1rem;
}

.site-footer h5 {
  color: var(--primary-gold);
  margin-bottom: 20px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

.site-footer ul li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #d1c9b8 !important;
  text-decoration: none !important;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: var(--primary-gold) !important;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}

@media (max-width: 575.98px) {
  #scrollToTop {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  .service-section {
    margin-top: -50px;
  }
}

@media (max-width: 399px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }
  .hero-content p {
    font-size: 1.1rem !important;
  }
}

@media (max-height: 780px) and (max-width: 768px) {
  .hero-content h1 {
    font-size: 1.9rem;
  }
  .hero-content p {
    font-size: 1.1rem !important;
  }
}

@media (max-height: 500px) and (max-width: 1024px) {
  .service-section {
    margin-top: -55px;
  }
}

@media (max-width: 991.98px) {
  .custom-navbar .navbar-collapse {
    padding-top: 12px;
  }
  .leistung-img-wrapper {
    margin-bottom: 85px;
  }
}

@media (min-width: 992px) {
  .navbar-brand-centered {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }
  .leistung-sidebar {
    position: sticky;
    top: 6rem;
    align-self: flex-start;
  }
}
