/* === [DB-PLUGIN] Kontakt Page CSS === */
:root {
  --dbs-accent: #D99F6C;
  --dbs-bg-dark: #315057;
  --dbs-radius: 12px;
}

/* === [CONTACT-PAGE-001] Modern Button Styles for Kontakt Page =============== */
.modern-button-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.button-link {
  text-decoration: none;
}

/* Button base style */
.modern-button {
  padding: 5px 28px;
  border: 1px solid rgba(217, 159, 108, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  color: #D99F6C;
  font-family: 'playfair' !important;
  font-size: 20px;
  font-weight: 400;
  border-radius: var(--dbs-radius);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(217, 159, 108,0.2);
  animation: slowPulse 2.5s ease-in-out infinite;
}

/* Pulse animation */
@keyframes slowPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 10px rgba(255,255,255,0.08);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(255,255,255,0.25);
  }
}

/* Hover behavior */
.modern-button:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  color: #D99F6C;
  animation: none !important;
  box-shadow: 0 0 8px rgba(255,255,255,0.1);
}
/* Click effect */
.modern-button:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Focus styling */
.modern-button:focus,
.modern-button:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* Accessibility: Focus states for buttons/links */
button:focus, .modern-button:focus, .button-link:focus, .hover-text:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--dbs-accent);
  background: rgba(217,159,108,0.08);
}

/* ✅ Updated hover-info styling (renamed) */
.button-hover-info {
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s ease;
  font-size: 14px;
  color: #ccc;
  padding-top: 8px;
  text-align: center;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

/* Only show on hover of the whole wrapper */
.modern-button-wrapper:hover .button-hover-info {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: text;
}

/* === [CONTACT-PAGE-002] Before-After Hover Image & Text Styles =============== */
.before-after-hover {
  width: 100%;
  max-width: 600px;
  height: 45vh;
  margin: auto;
  font-family: system-ui, sans-serif;
}

.hover-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--dbs-radius);
  overflow: hidden;
  transition: all 0.21s ease;
}

.image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.image-wrapper img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 1.0s ease;
  top: 0;
  left: 0;
}

.before-img {
  z-index: 2;
  opacity: 1;
}

.after-img {
  z-index: 1;
  opacity: 0;
}

.hover-container:hover .before-img {
  opacity: 0;
}

.hover-container:hover .after-img {
  opacity: 1;
}

/* ✅ Updated Hover Text Styling */
.hover-text {
  width: 100%;
  text-align: center;
  padding: 5px 20px;
  margin-bottom: 5px;
  font-size: 20px;
  color: #D99F6C;
  background-color: var(--dbs-bg-dark);
  border-radius: 5px;
  max-height: 0;
  opacity: 0;
  transform: translateY(10px);
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  user-select: none;
}

.hover-container:hover .hover-text {
  max-height: 100px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  user-select: text;
}
