/* ==========================================================================
   Profifaktura — Weiterempfehlungs-System Stylesheet
   ========================================================================== */

:root {
  /* Mapping to Profifaktura Design System */
  --empf-primary: var(--color-primary);
  --empf-primary-light: var(--color-primary-light);
  --empf-accent: var(--color-accent);
  --empf-accent-hover: var(--color-accent-hover);
  --empf-success: var(--color-success);
  --empf-border: var(--color-border);
  --empf-text-dark: var(--color-text-dark);
  --empf-text-muted: var(--color-text-muted);
  --empf-bg-light: var(--color-bg-light);
  --empf-bg-white: var(--color-bg-white);
  --empf-shadow-md: var(--shadow-md);
  --empf-shadow-lg: var(--shadow-lg);
  --empf-shadow-xl: var(--shadow-xl);
}

.empfehlung-header {
  padding: 80px 0 48px;
  text-align: center;
  background-color: var(--empf-bg-light);
  border-bottom: 1px solid var(--empf-border);
}

.empfehlung-title {
  font-family: var(--font-main);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--empf-primary);
  margin: 16px auto;
  max-width: 800px;
}

.empfehlung-title em {
  font-style: normal;
  color: var(--empf-accent-hover);
}

.empfehlung-lead {
  font-size: 17px;
  color: var(--empf-text-muted);
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

/* Layout */
.empfehlung-section {
  padding: 80px 0 100px;
}

.empfehlung-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .empfehlung-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Form Container */
.empfehlung-card {
  background: var(--empf-bg-white);
  border: 1px solid var(--empf-border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--empf-shadow-xl);
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .empfehlung-card {
    padding: 24px;
  }
}

/* Radio Option Toggles */
.reward-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 30px;
}

@media (max-width: 480px) {
  .reward-selector {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.reward-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border: 2px solid var(--empf-border);
  border-radius: 12px;
  cursor: pointer;
  background: var(--empf-bg-white);
  transition: all 0.2s ease-in-out;
}

.reward-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.reward-card:hover {
  border-color: var(--empf-accent);
  transform: translateY(-2px);
}

.reward-card.active {
  border-color: var(--empf-primary);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, var(--empf-bg-white) 100%);
  box-shadow: var(--empf-shadow-md);
}

.reward-badge {
  font-family: var(--font-main);
  font-size: 11px;
  color: var(--empf-accent-hover);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.reward-card.active .reward-badge {
  color: var(--empf-accent-hover);
}

.reward-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--empf-primary);
  margin-bottom: 4px;
}

.reward-desc {
  font-size: 12px;
  color: var(--empf-text-muted);
  line-height: 1.4;
}

/* Fields */
.form-field {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  color: var(--empf-primary);
  margin-bottom: 8px;
}

.form-required {
  color: var(--empf-accent-hover);
  font-weight: 700;
  margin-left: 3px;
}

.empfehlung-card input[type="text"],
.empfehlung-card input[type="email"],
.empfehlung-card input[type="tel"] {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--empf-border);
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 15px;
  color: var(--empf-text-dark);
  background: var(--empf-bg-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.empfehlung-card input:focus {
  border-color: var(--empf-primary);
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.08);
}

/* Submit Button */
.submit-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 16px 24px;
  background-color: var(--empf-primary);
  color: var(--empf-bg-white);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.submit-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--empf-shadow-lg);
}

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

/* Success Output Screen */
.success-container {
  display: none;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.success-header {
  text-align: center;
  margin-bottom: 24px;
}

.success-icon {
  font-size: 40px;
  margin-bottom: 12px;
  display: inline-block;
  line-height: 1;
}

.success-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--empf-primary);
  margin-bottom: 8px;
}

.success-desc {
  font-size: 14px;
  color: var(--empf-text-muted);
  line-height: 1.5;
}

.link-output-wrap {
  display: flex;
  gap: 8px;
  background: var(--empf-bg-light);
  border: 1px solid var(--empf-border);
  padding: 6px 6px 6px 16px;
  border-radius: 8px;
  align-items: center;
  margin-bottom: 24px;
}

.link-input {
  border: none;
  background: transparent;
  flex: 1;
  font-family: monospace;
  font-size: 13px;
  color: var(--empf-primary);
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-btn {
  background: var(--empf-primary);
  color: var(--empf-bg-white);
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.copy-btn:hover {
  background-color: var(--color-primary-light);
}

.copy-btn.copied {
  background: var(--empf-success);
}

/* Sharing Button Grid */
.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .share-grid {
    grid-template-columns: 1fr;
  }
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

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

.share-whatsapp {
  background: #25d366;
  color: #fff;
}

.share-whatsapp:hover {
  opacity: 0.9;
}

.share-email {
  background: var(--empf-primary-light);
  color: #fff;
}

.share-email:hover {
  opacity: 0.9;
}

.reset-form-btn {
  display: block;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: var(--empf-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s;
}

.reset-form-btn:hover {
  color: var(--empf-primary);
}

/* How It Works Timeline (Right Column) */
.timeline-wrap {
  background: var(--empf-bg-light);
  border-radius: 20px;
  padding: 40px;
  border: 1px solid var(--empf-border);
}

.timeline-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--empf-primary);
  margin-bottom: 30px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--empf-border);
}

.timeline-step {
  display: flex;
  gap: 20px;
  position: relative;
}

.timeline-num {
  width: 42px;
  height: 42px;
  background: var(--empf-bg-white);
  border: 2px solid var(--empf-border);
  color: var(--empf-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: var(--empf-shadow-sm);
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-step:hover .timeline-num {
  border-color: var(--empf-accent);
  background: var(--empf-primary);
  color: #fff;
  transform: scale(1.05);
}

.timeline-content {
  padding-top: 8px;
}

.timeline-step-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--empf-primary);
  margin-bottom: 4px;
}

.timeline-step-desc {
  font-size: 13px;
  color: var(--empf-text-muted);
  line-height: 1.45;
}

/* Accordions Section */
.terms-section {
  padding: 0 0 100px;
}

.terms-container {
  max-width: 800px;
  margin: 0 auto;
}

.terms-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--empf-primary);
  margin-bottom: 30px;
}

.terms-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.terms-list .faq-item {
  background: var(--empf-bg-white);
  border: 1px solid var(--empf-border);
  border-radius: 12px;
  overflow: hidden;
}

.terms-list .faq-item[open] {
  border-color: var(--empf-primary-light);
  box-shadow: var(--empf-shadow-md);
}

.terms-list summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--empf-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  list-style: none;
}

.terms-list summary::-webkit-details-marker {
  display: none;
}

.terms-list summary::after {
  content: '+';
  font-size: 20px;
  color: var(--empf-text-muted);
  transition: transform 0.2s;
}

.terms-list .faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.terms-content {
  padding: 0 24px 24px;
  font-size: 14px;
  color: var(--empf-text-muted);
  line-height: 1.6;
}

.terms-content p {
  margin-bottom: 12px;
}

.terms-content p:last-child {
  margin-bottom: 0;
}

.terms-content ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.terms-content li {
  margin-bottom: 6px;
}

/* Premium Visual Elements */
.reward-card::after {
  content: '✓';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--empf-primary);
  color: #fff;
  width: 18px;
  height: 18px;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reward-card.active::after {
  opacity: 1;
  transform: scale(1);
}
