/* outfit-300 - latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/outfit-vv15-latin-300.woff2') format('woff2');
}

/* outfit-regular - latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-vv15-latin-regular.woff2') format('woff2');
}

/* outfit-500 - latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/outfit-vv15-latin-500.woff2') format('woff2');
}

/* outfit-600 - latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/outfit-vv15-latin-600.woff2') format('woff2');
}

/* playfair-display-regular - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-vv40-latin-regular.woff2') format('woff2');
}

/* playfair-display-italic - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/playfair-display-vv40-latin-italic.woff2') format('woff2');
}

/* playfair-display-600 - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-vv40-latin-600.woff2') format('woff2');
}

/* playfair-display-600italic - latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/playfair-display-vv40-latin-600italic.woff2') format('woff2');
}

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #121215;
  --bg-card: #18181c;
  --accent-gold: #c5a880;
  --accent-gold-hover: #b5976e;
  --accent-gold-rgb: 197, 168, 128;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-light: #ffffff;
  --border-color: #27272c;
  --border-focus: #c5a880;
  --input-bg: #0f0f11;
  --transition-speed: 0.3s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

/* Subtle elegant grid background */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(197, 168, 128, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(197, 168, 128, 0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  z-index: -1;
  pointer-events: none;
}

/* Main Container */
.container {
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 40px;
}

.badge {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-block;
  opacity: 0.9;
}

.headline {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-light);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.headline span {
  font-style: italic;
  color: var(--accent-gold);
}

.subheadline {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

/* Card layout for conversion focus */
.lead-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-speed);
}

.lead-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

/* Form Styling */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-main);
  padding: 14px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  transition: all var(--transition-speed) ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 1px rgba(var(--accent-gold-rgb), 0.2);
}

/* Submit Button with Pulsing Glow Animation to drive conversions */
.btn-submit {
  width: 100%;
  background-color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  color: #0f0f11;
  padding: 16px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-top: 10px;
  box-shadow: 0 0 0 0 rgba(var(--accent-gold-rgb), 0.5);
  animation: pulse-gold 2.5s infinite ease-in-out;
}

.btn-submit:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--accent-gold-rgb), 0.35);
  animation: none; /* Stop pulsing on hover */
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(15, 15, 17, 0.3);
  border-top-color: #0f0f11;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 10px;
}

/* Success View */
.success-message {
  display: none;
  text-align: center;
  animation: fadeIn 0.6s ease forwards;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(var(--accent-gold-rgb), 0.1);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  border: 1px solid rgba(var(--accent-gold-rgb), 0.3);
}

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.success-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}


/* Error message styling */
.error-message {
  display: none;
  background-color: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center;
  animation: shake 0.4s ease-in-out;
}

/* Trust / Footer */
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-speed) ease;
  margin: 0 8px;
  display: inline-block;
}

.footer a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@keyframes pulse-gold {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--accent-gold-rgb), 0.5);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(var(--accent-gold-rgb), 0);
    transform: scale(1.015);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(var(--accent-gold-rgb), 0);
    transform: scale(1);
  }
}

/* Custom styled Checkbox (Premium DSGVO Layout) */
.consent-group {
  margin-top: 24px;
  margin-bottom: 24px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
  user-select: none;
  text-align: left;
  position: relative;
}

.consent-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin-right: 12px;
  margin-top: 2px;
  position: relative;
  transition: all var(--transition-speed) ease;
}

/* Golden hover outline */
.consent-label:hover .custom-checkbox {
  border-color: var(--accent-gold);
  box-shadow: 0 0 8px rgba(var(--accent-gold-rgb), 0.25);
}

/* Active/Checked background fill */
.consent-checkbox:checked ~ .custom-checkbox {
  background-color: var(--accent-gold);
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(var(--accent-gold-rgb), 0.15);
}

/* Draw the checkmark dynamically using border borders */
.custom-checkbox::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #0f0f11;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

.consent-text {
  transition: color var(--transition-speed) ease;
}

.consent-checkbox:checked ~ .consent-text {
  color: var(--text-main);
}

/* Honeypot hidden input styling to prevent bot submissions */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
  visibility: hidden;
}

/* Cookie Banner styling */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 48px);
  max-width: 680px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 9999;
  animation: slideUpCookie 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner-hide {
  opacity: 0;
  transform: translateX(-50%) translateY(30px);
  pointer-events: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
  text-align: left;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-cookie {
  padding: 10px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-transform: none;
}

.btn-cookie-primary {
  background-color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  color: #0f0f11;
}

.btn-cookie-primary:hover {
  background-color: var(--accent-gold-hover);
  border-color: var(--accent-gold-hover);
}

.btn-cookie-secondary {
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.btn-cookie-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
}

@keyframes slideUpCookie {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Lock form until cookie consent is selected */
#lead-form.consent-pending {
  opacity: 0.35;
  pointer-events: none;
  filter: blur(1.5px);
  user-select: none;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Responsive adjustment */
@media (max-width: 600px) {
  body {
    padding: 15px;
  }
  .lead-card {
    padding: 24px;
  }
  .headline {
    font-size: 1.8rem;
  }
  .cookie-banner {
    bottom: 16px;
    width: calc(100% - 32px);
    padding: 16px;
  }
  .cookie-content {
    gap: 12px;
  }
  .cookie-buttons {
    flex-direction: column-reverse;
    width: 100%;
    gap: 8px;
  }
  .btn-cookie {
    width: 100%;
    text-align: center;
  }
}
