/**
 * Marketing Ops Checklist Styles
 *
 * @package PlanDigitalNow
 * @since 2.0.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */
.pdn-mo-checklist {
  --pdn-primary: var(--navy);
  --pdn-primary-dark: var(--navy);
  --pdn-accent: var(--orange-btn);
  --pdn-white: #ffffff;
  --pdn-gray-50: #f9fafb;
  --pdn-gray-100: #f3f4f6;
  --pdn-gray-200: #e5e7eb;
  --pdn-gray-300: #d1d5db;
  --pdn-gray-400: #9ca3af;
  --pdn-gray-500: #6b7280;
  --pdn-gray-600: #4b5563;
  --pdn-gray-700: #374151;
  --pdn-gray-800: #1f2937;
  --pdn-gray-900: #111827;
  --pdn-success: #1E6B27;
  --pdn-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --pdn-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --pdn-radius: 12px;
  --pdn-radius-sm: 8px;
  --pdn-radius-full: 9999px;
  --pdn-transition: all 0.2s ease;
}

/* ==========================================================================
   Base Container
   ========================================================================== */
.pdn-mo-checklist {
  font-family: var(--font-body);
  color: var(--pdn-gray-800);
  line-height: 1.6;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.pdn-mo-checklist * {
  box-sizing: border-box;
}

/* ==========================================================================
   Header
   ========================================================================== */
.pdn-mo-checklist__header {
  text-align: center;
  margin-bottom: 40px;
  padding: 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  border-radius: var(--pdn-radius);
  color: #FFFFFF;
}

.pdn-mo-checklist__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 16px;
}

.pdn-mo-checklist__subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 8px;
}

.pdn-mo-checklist__desc {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Progress
   ========================================================================== */
.pdn-mo-checklist__progress {
  background: var(--pdn-white);
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius);
  padding: 28px 32px;
  margin-bottom: 36px;
  box-shadow: var(--pdn-shadow);
}

.pdn-mo-checklist__progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.pdn-mo-checklist__progress-label {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--pdn-gray-700);
}

.pdn-mo-checklist__progress-count {
  font-size: 0.875rem;
  color: var(--pdn-gray-500);
}

.pdn-mo-checklist__progress-bar {
  height: 12px;
  background: var(--pdn-gray-200);
  border-radius: var(--pdn-radius-full);
  overflow: hidden;
  margin-bottom: 12px;
}

.pdn-mo-checklist__progress-fill {
  height: 100%;
  background: var(--pdn-success);
  border-radius: var(--pdn-radius-full);
  transition: width 0.3s ease;
}

.pdn-mo-checklist__progress-status {
  font-size: 0.875rem;
  color: var(--pdn-gray-600);
  text-align: center;
  margin: 0;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.pdn-mo-checklist__categories {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

.pdn-mo-checklist__category {
  background: var(--pdn-white);
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius);
  overflow: hidden;
  box-shadow: var(--pdn-shadow);
}

.pdn-mo-checklist__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--pdn-gray-50) 0%, var(--pdn-gray-100) 100%);
  border-bottom: 1px solid var(--pdn-gray-200);
}

.pdn-mo-checklist__category-info {
  flex: 1;
}

.pdn-mo-checklist__category-name {
  font-size: 1.063rem;
  font-weight: 700;
  color: var(--pdn-gray-900);
  margin: 0 0 4px;
}

.pdn-mo-checklist__category-desc {
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
  margin: 0;
}

.pdn-mo-checklist__category-count {
  font-size: 0.938rem;
  font-weight: 700;
  color: var(--pdn-success);
  background: rgba(16, 185, 129, 0.1);
  padding: 6px 12px;
  border-radius: var(--pdn-radius-full);
}

/* ==========================================================================
   Tasks
   ========================================================================== */
.pdn-mo-checklist__tasks {
  padding: 16px 20px;
}

.pdn-mo-checklist__task {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--pdn-radius-sm);
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__task:hover {
  background: var(--pdn-gray-50);
}

.pdn-mo-checklist__task--completed,
.pdn-mo-checklist__task--checked {
  background: rgba(30, 107, 39, 0.08);
}

.pdn-mo-checklist__task--completed:hover,
.pdn-mo-checklist__task--checked:hover {
  background: rgba(30, 107, 39, 0.12);
}

.pdn-mo-checklist__task input {
  display: none;
}

.pdn-mo-checklist__task-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--pdn-gray-300);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--pdn-transition);
  margin-top: 2px;
}

.pdn-mo-checklist__task-checkbox svg {
  opacity: 0;
  transform: scale(0.5);
  transition: var(--pdn-transition);
  color: var(--pdn-white);
}

.pdn-mo-checklist__task--completed .pdn-mo-checklist__task-checkbox,
.pdn-mo-checklist__task--checked .pdn-mo-checklist__task-checkbox {
  background: var(--pdn-success);
  border-color: var(--pdn-success);
}

.pdn-mo-checklist__task--completed .pdn-mo-checklist__task-checkbox svg,
.pdn-mo-checklist__task--checked .pdn-mo-checklist__task-checkbox svg {
  opacity: 1;
  transform: scale(1);
}

.pdn-mo-checklist__task-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdn-mo-checklist__task-title {
  font-size: 0.938rem;
  font-weight: 600;
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__task--completed .pdn-mo-checklist__task-title,
.pdn-mo-checklist__task--checked .pdn-mo-checklist__task-title,
.pdn-mo-checklist__task--checked .pdn-mo-checklist__task-text {
  color: var(--pdn-gray-500);
  text-decoration: line-through;
}

.pdn-mo-checklist__task-text {
  font-size: 0.938rem;
  font-weight: 500;
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__task-desc {
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
}

/* ==========================================================================
   Actions
   ========================================================================== */
.pdn-mo-checklist__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.pdn-mo-checklist__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  border-radius: var(--pdn-radius-sm);
  cursor: pointer;
  transition: var(--pdn-transition);
  text-decoration: none;
}

.pdn-mo-checklist__btn--primary {
  background: var(--pdn-primary);
  color: var(--pdn-white);
}

.pdn-mo-checklist__btn--primary:hover {
  background: var(--orange-btn-hover);
  color: var(--pdn-white);
}

.pdn-mo-checklist__btn--secondary {
  background: var(--pdn-white);
  color: var(--pdn-gray-700);
  border: 1px solid var(--pdn-gray-300);
}

.pdn-mo-checklist__btn--secondary:hover {
  background: var(--pdn-gray-50);
  border-color: var(--pdn-gray-400);
}

.pdn-mo-checklist__btn--text {
  background: transparent;
  color: var(--pdn-gray-500);
  padding: 10px 16px;
}

.pdn-mo-checklist__btn--text:hover {
  color: var(--pdn-gray-700);
}

.pdn-mo-checklist__btn--cta {
  display: inline-block;
  background: #FFFFFF;
  color: var(--navy);
  padding: 16px 32px;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: var(--pdn-radius-sm);
  text-decoration: none !important;
}

.pdn-mo-checklist__btn--cta:hover {
  background: #f0f4f8;
  color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--pdn-shadow-lg);
  text-decoration: none !important;
}

/* ==========================================================================
   Form Section
   ========================================================================== */
.pdn-mo-checklist__form-section {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  overflow: hidden;
  margin-bottom: 40px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-mo-checklist__form-header {
  text-align: center;
  padding: 32px 32px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%);
  color: #FFFFFF;
}

.pdn-mo-checklist__form-header svg {
  color: #FFFFFF;
  margin-bottom: 16px;
}

.pdn-mo-checklist__form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFFFFF !important;
  margin: 0 0 12px;
}

.pdn-mo-checklist__form-desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.pdn-mo-checklist__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
}

.pdn-mo-checklist__form-group {
  position: relative;
}

.pdn-mo-checklist__input,
.pdn-mo-checklist__select {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius-sm);
  background: var(--pdn-white);
  color: var(--pdn-gray-800);
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__input:focus,
.pdn-mo-checklist__select:focus {
  outline: none;
  border-color: var(--pdn-primary);
  box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.pdn-mo-checklist__input::placeholder {
  color: var(--pdn-gray-400);
}

.pdn-mo-checklist__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.pdn-mo-checklist__error {
  display: none;
  font-size: 0.813rem;
  color: #ef4444;
  margin-top: 8px;
}

/* Checkbox Group */
.pdn-mo-checklist__form-group--checkbox {
  margin-top: 8px;
}

.pdn-mo-checklist__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--pdn-gray-600);
  line-height: 1.5;
}

.pdn-mo-checklist__checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--pdn-primary);
  cursor: pointer;
}

.pdn-mo-checklist__btn--submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px 24px;
  font-size: 1.063rem;
  background: linear-gradient(135deg, var(--navy), var(--ink));
  border: none;
  color: #FFFFFF;
}

.pdn-mo-checklist__btn--submit:hover {
  background: linear-gradient(135deg, var(--ink), var(--navy));
  transform: translateY(-1px);
}

.pdn-mo-checklist__btn--cancel {
  width: 100%;
}

.pdn-mo-checklist__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.813rem;
  color: var(--pdn-gray-500);
  margin: 8px 0 0;
  text-align: center;
}

.pdn-mo-checklist__privacy svg {
  color: var(--pdn-success);
  flex-shrink: 0;
}

.pdn-mo-checklist__btn--back {
  margin-top: 4px;
}

/* ==========================================================================
   Results Page (after form submission)
   ========================================================================== */
.pdn-mo-checklist__results {
  max-width: 600px;
  margin: 0 auto;
}

/* Result Card */
.pdn-mo-checklist__result-card {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  border: 3px solid var(--pdn-primary);
  padding: 40px 32px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-mo-checklist__result-score {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.pdn-mo-checklist__result-percent {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--pdn-gray-500);
  margin-bottom: 24px;
}

.pdn-mo-checklist__result-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--pdn-gray-900);
  margin: 0 0 12px;
}

.pdn-mo-checklist__result-desc {
  font-size: 1rem;
  color: var(--pdn-gray-600);
  margin: 0;
  line-height: 1.6;
}

/* Download Section */
.pdn-mo-checklist__download-section {
  text-align: center;
  margin-bottom: 32px;
}

.pdn-mo-checklist__btn--download-pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--navy), var(--ink));
  border: none;
  border-radius: var(--pdn-radius-sm);
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__btn--download-pdf:hover {
  background: linear-gradient(135deg, var(--ink), var(--navy));
  transform: translateY(-2px);
  box-shadow: var(--pdn-shadow-lg);
}

.pdn-mo-checklist__btn--download-pdf svg {
  flex-shrink: 0;
}

/* Results Page Responsive */
@media (max-width: 500px) {
  .pdn-mo-checklist__result-card {
    padding: 32px 24px;
  }

  .pdn-mo-checklist__result-score {
    font-size: 3rem;
  }

  .pdn-mo-checklist__result-percent {
    font-size: 1.25rem;
  }

  .pdn-mo-checklist__result-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.pdn-mo-checklist__cta {
  background: linear-gradient(135deg, var(--navy), var(--ink));
  border-radius: var(--pdn-radius);
  padding: 60px 40px;
  text-align: center;
  color: var(--pdn-white);
  margin-top: 48px;
}

.pdn-mo-checklist__cta-headline {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: #FFFFFF !important;
}

.pdn-mo-checklist__cta-subtext {
  font-size: 1.125rem;
  opacity: 0.95;
  margin: 0 0 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.pdn-mo-checklist__cta-note {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 16px;
}

.pdn-mo-checklist__cta-trust {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.pdn-mo-checklist__modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.pdn-mo-checklist__modal-content {
  background: var(--pdn-white);
  border-radius: var(--pdn-radius);
  padding: 32px;
  max-width: 400px;
  width: 100%;
  position: relative;
}

.pdn-mo-checklist__modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--pdn-gray-100);
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--pdn-gray-500);
  cursor: pointer;
}

.pdn-mo-checklist__modal-close:hover {
  background: var(--pdn-gray-200);
}

.pdn-mo-checklist__modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--pdn-gray-800);
}

.pdn-mo-checklist__share-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pdn-mo-checklist__share-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid var(--pdn-gray-200);
  border-radius: var(--pdn-radius-sm);
  background: var(--pdn-white);
  font-size: 1rem;
  color: var(--pdn-gray-700);
  cursor: pointer;
  transition: var(--pdn-transition);
}

.pdn-mo-checklist__share-btn:hover {
  border-color: var(--pdn-primary);
  background: rgba(27, 54, 93, 0.03);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 640px) {
  .pdn-mo-checklist__title {
    font-size: 1.5rem;
  }

  .pdn-mo-checklist__category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .pdn-mo-checklist__actions {
    flex-direction: column;
  }

  .pdn-mo-checklist__actions .pdn-mo-checklist__btn {
    width: 100%;
  }

  .pdn-mo-checklist__cta {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Redesign-Reskin (Bündel 1): scoped auf .pdn-mo-checklist, keine !important.
   ========================================================================== */
.pdn-mo-checklist__title,
.pdn-mo-checklist__results-title,
.pdn-mo-checklist__section-title,
.pdn-mo-checklist__cta-headline {
  font-family: var(--font-display);
}
.pdn-mo-checklist__btn--primary,
.pdn-mo-checklist__btn--submit,
.pdn-mo-checklist__btn--download-pdf,
.pdn-mo-checklist__btn--cta {
  background: var(--orange-btn);
  color: #fff;
}
.pdn-mo-checklist__btn--primary:hover,
.pdn-mo-checklist__btn--submit:hover,
.pdn-mo-checklist__btn--download-pdf:hover,
.pdn-mo-checklist__btn--cta:hover {
  background: var(--orange-btn-hover);
  color: #fff;
}
.pdn-mo-checklist__btn--secondary,
.pdn-mo-checklist__btn--back {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
}
.pdn-mo-checklist__btn--secondary:hover,
.pdn-mo-checklist__btn--back:hover {
  background: transparent;
  border-color: var(--navy);
}
.pdn-mo-checklist__input {
  border: 1px solid var(--line);
  border-radius: 11px;
}
.pdn-mo-checklist__input:focus {
  border-color: var(--orange);
}
/* Gate-Consent (getrennte Pflicht-Haekchen) */
.pdn-mo-checklist__consent {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  margin: 6px 0 8px;
}
.pdn-mo-checklist__consent-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-mute);
  line-height: 1.5;
  cursor: pointer;
}
.pdn-mo-checklist__consent-check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.pdn-mo-checklist__consent-hint {
  font-size: 0.8rem;
  color: var(--text-mute);
  text-align: left;
  margin: 0 0 12px;
}
.pdn-mo-checklist__consent-error {
  display: block;
  margin-top: 2px;
  color: #dc3545;
  font-size: 0.85rem;
}
.pdn-mo-checklist__privacy-note a {
  color: var(--navy);
}
