/* ==========================================================================
   COOKIE CONSENT & MODAL STYLES (DSGVO / GDPR)
   ========================================================================== */

/* Cookie Banner Container */
#consent-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background-color: rgba(26, 26, 26, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2rem;
  z-index: 9999;
  font-family: 'DM Sans', sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

#consent-banner.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Typography */
.consent-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.consent-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 1.5rem;
}

.consent-text a {
  color: #ffffff;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.consent-text a:hover {
  opacity: 0.8;
}

/* Button Container */
.consent-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 0px;
}

.consent-btn-row {
  display: flex;
  gap: 0.8rem;
}

/* Buttons */
.consent-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 0px; /* Sharp corners like site branding */
  padding: 0.9rem 1.5rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.consent-btn-accept {
  background-color: #ffffff;
  color: #0a0a0a;
}

.consent-btn-essential {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.consent-btn-settings {
  background-color: transparent;
  color: #aaaaaa;
  font-size: 0.7rem;
  text-decoration: underline;
  padding: 0.5rem 0;
  text-align: left;
  border: none;
  cursor: pointer;
  width: max-content;
  margin-top: 0.5rem;
  display: block;
}

.consent-btn:hover {
  opacity: 0.85;
}

.consent-btn-settings:hover {
  color: #ffffff;
}

.consent-btn:active {
  transform: scale(0.98);
}

/* Customize Settings Panel */
.consent-settings-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  margin-bottom: 0rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.consent-settings-panel.open {
  max-height: 300px;
  margin-bottom: 1.5rem;
  padding-top: 1.2rem;
}

.consent-setting-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.consent-setting-item:last-child {
  margin-bottom: 0;
}

.consent-checkbox-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

/* Custom Checkbox */
.consent-checkbox-wrapper input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.consent-custom-checkmark {
  height: 18px;
  width: 18px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.consent-checkbox-wrapper:hover input ~ .consent-custom-checkmark {
  border-color: #ffffff;
}

.consent-checkbox-wrapper input:checked ~ .consent-custom-checkmark {
  background-color: #ffffff;
  border-color: #ffffff;
}

.consent-custom-checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #0a0a0a;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-checkbox-wrapper input:checked ~ .consent-custom-checkmark::after {
  display: block;
}

.consent-checkbox-wrapper input:disabled ~ .consent-custom-checkmark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
}

.consent-checkbox-wrapper input:disabled:checked ~ .consent-custom-checkmark::after {
  border-color: rgba(255, 255, 255, 0.5);
}

.consent-setting-info {
  display: flex;
  flex-direction: column;
}

.consent-setting-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
}

.consent-setting-desc {
  font-size: 0.75rem;
  color: #aaaaaa;
  margin-top: 0.1rem;
}

/* ==========================================================================
   TWO-CLICK CONSENT MODAL (CALENDLY REDIRECT WARNING)
   ========================================================================== */
.consent-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consent-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.consent-modal {
  width: 90%;
  max-width: 480px;
  background-color: #111111;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  font-family: 'DM Sans', sans-serif;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.consent-modal-overlay.show .consent-modal {
  transform: scale(1);
}

.consent-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.8rem;
}

.consent-modal-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 2rem;
}

.consent-modal-buttons {
  display: flex;
  gap: 1rem;
}

.consent-modal-btn {
  flex: 1;
  padding: 1rem 1.5rem;
}

/* Responsive adjustment */
@media (max-width: 576px) {
  #consent-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-left: none;
    border-right: none;
    border-bottom: none;
    padding: 1.5rem;
  }
  
  .consent-btn-row {
    flex-direction: column;
    gap: 0.8rem;
  }
  
  .consent-modal {
    padding: 1.8rem;
  }
  
  .consent-modal-buttons {
    flex-direction: column;
    gap: 0.8rem;
  }
}
