/* ── ambigus Digitalisierungs-Check ──────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

#ambigus-check-wrap {
  --ac-orange:  #f39200;
  --ac-dark:    #3c3c3c;
  --ac-dark2:   #2a2a2a;
  --ac-dark3:   #1a1a1a;
  --ac-mid:     #888;
  --ac-light:   #f7f7f5;
  --ac-white:   #fff;
  --ac-display: 'Barlow Condensed', sans-serif;
  --ac-body:    'DM Sans', sans-serif;

  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
  font-family: var(--ac-body);
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

/* ── Sidebar ── */
.ac-sidebar {
  position: sticky;
  top: 100px;
}
.ac-sidebar h3 {
  font-family: var(--ac-display);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ac-dark);
  margin: 0 0 12px;
  line-height: 1.1;
}
.ac-sidebar p {
  font-size: 13px;
  color: var(--ac-mid);
  line-height: 1.7;
  margin: 0 0 24px;
}
.ac-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-cat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--ac-light);
  border: 1.5px solid transparent;
  border-radius: 0;
  transition: all 0.25s;
  cursor: default;
}
.ac-cat.active {
  background: rgba(243,146,0,0.08);
  border-color: var(--ac-orange);
}
.ac-cat-icon { font-size: 18px; min-width: 22px; }
.ac-cat-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ac-dark);
  flex: 1;
}
.ac-cat-pts {
  font-size: 11px;
  color: var(--ac-mid);
  white-space: nowrap;
}

/* ── Widget ── */
.ac-widget {
  background: var(--ac-light);
  padding: 40px;
  position: relative;
  min-height: 480px;
}
.ac-widget-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ac-orange);
}

/* ── Progress ── */
.ac-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
}
.ac-seg {
  flex: 1;
  height: 4px;
  background: rgba(60,60,60,0.12);
  transition: background 0.3s;
}
.ac-seg.done   { background: var(--ac-orange); }
.ac-seg.active { background: rgba(243,146,0,0.45); }

/* ── Question ── */
.ac-counter {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ac-orange);
  margin-bottom: 8px;
}
.ac-category {
  font-size: 12px;
  color: var(--ac-mid);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.ac-qtext {
  font-family: var(--ac-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--ac-dark);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 28px;
  min-height: 60px;
}

/* ── Answers ── */
.ac-answers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 28px;
}
.ac-answer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: var(--ac-white);
  border: 1.5px solid rgba(60,60,60,0.1);
  cursor: pointer;
  text-align: left;
  transition: all 0.18s;
  width: 100%;
  font-family: var(--ac-body);
  font-size: 14px;
  color: var(--ac-dark);
  line-height: 1.5;
}
.ac-answer:hover {
  border-color: var(--ac-orange);
  background: rgba(243,146,0,0.04);
}
.ac-answer.selected {
  border-color: var(--ac-orange);
  background: rgba(243,146,0,0.09);
}
.ac-answer-letter {
  font-family: var(--ac-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ac-orange);
  min-width: 22px;
  line-height: 1.4;
}

/* ── Navigation ── */
.ac-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ac-btn-back {
  background: none;
  border: none;
  font-family: var(--ac-body);
  font-size: 13px;
  color: var(--ac-mid);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.ac-btn-back:hover { color: var(--ac-orange); }
.ac-btn-next {
  background: var(--ac-dark);
  color: var(--ac-white);
  border: none;
  cursor: pointer;
  font-family: var(--ac-body);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.2s;
}
.ac-btn-next:hover:not(:disabled) { background: var(--ac-orange); color: var(--ac-dark3); }
.ac-btn-next:disabled { opacity: 0.3; cursor: not-allowed; }

/* ── E-Mail Gate ── */
#ac-email-gate {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ac-gate-icon { font-size: 40px; text-align: center; }
.ac-gate-title {
  font-family: var(--ac-display);
  font-size: 28px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ac-dark);
  text-align: center;
  margin-bottom: 4px;
}
.ac-gate-text {
  font-size: 14px;
  color: var(--ac-mid);
  line-height: 1.7;
  text-align: center;
  margin: 0;
}
.ac-input {
  padding: 14px 18px;
  border: 1.5px solid rgba(60,60,60,0.15);
  font-family: var(--ac-body);
  font-size: 14px;
  color: var(--ac-dark);
  background: var(--ac-white);
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.ac-input:focus { border-color: var(--ac-orange); }
.ac-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}
.ac-consent input { margin-top: 2px; accent-color: var(--ac-orange); flex-shrink: 0; }
.ac-consent a { color: var(--ac-orange); }
.ac-btn-submit {
  background: var(--ac-orange);
  color: var(--ac-dark3) !important;
  border: none;
  cursor: pointer;
  font-family: var(--ac-body);
  font-size: 15px;
  font-weight: 700;
  padding: 16px 28px;
  text-align: center;
  width: 100%;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.ac-btn-submit:hover { background: #e08500; }
.ac-btn-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.ac-error {
  font-size: 13px;
  color: #c62828;
  text-align: center;
  padding: 8px;
  background: #fff5f5;
  border: 1px solid #ffcdd2;
}

/* ── Results ── */
.ac-result-level {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  margin-bottom: 24px;
  position: relative;
}
.ac-result-level::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
}
.ac-lvl-1 { background: #fff5f5; }
.ac-lvl-1::before { background: #c62828; }
.ac-lvl-2 { background: #fffbf0; }
.ac-lvl-2::before { background: #e65100; }
.ac-lvl-3 { background: #f1fbf1; }
.ac-lvl-3::before { background: #2e7d32; }
.ac-result-emoji { font-size: 44px; line-height: 1; }
.ac-result-name {
  font-family: var(--ac-display);
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 4px;
  color: var(--ac-dark);
}
.ac-result-pts { font-size: 13px; color: var(--ac-mid); margin: 0 0 6px; }
.ac-result-desc { font-size: 13px; color: #555; line-height: 1.6; margin: 0; }

.ac-result-cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.ac-result-cat {
  padding: 14px;
  background: var(--ac-white);
  border-left: 3px solid var(--ac-orange);
}
.ac-result-cat-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ac-mid);
  margin-bottom: 4px;
}
.ac-result-cat-score {
  font-family: var(--ac-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ac-orange);
  line-height: 1;
}
.ac-result-cat-max { font-size: 13px; color: var(--ac-mid); }

.ac-result-next-box {
  background: var(--ac-dark);
  padding: 24px 28px;
  margin-bottom: 16px;
}
.ac-result-next-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ac-orange);
  margin-bottom: 10px;
}
#ac-result-next {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin: 0;
}

.ac-restart {
  background: none;
  border: none;
  font-family: var(--ac-body);
  font-size: 12px;
  color: var(--ac-mid);
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  display: block;
  margin-top: 8px;
}
.ac-restart:hover { color: var(--ac-orange); }

/* ── Loading spinner ── */
.ac-loading {
  text-align: center;
  padding: 40px;
  font-size: 14px;
  color: var(--ac-mid);
}
.ac-spinner {
  display: inline-block;
  width: 28px; height: 28px;
  border: 3px solid rgba(243,146,0,0.2);
  border-top-color: var(--ac-orange);
  border-radius: 50%;
  animation: acSpin 0.8s linear infinite;
  margin-bottom: 12px;
}
@keyframes acSpin { to { transform: rotate(360deg); } }

.ac-privacy {
  font-size: 12px;
  color: var(--ac-dark);
  line-height: 1.6;
  background: rgba(243,146,0,0.07);
  border: 1px solid rgba(243,146,0,0.2);
  padding: 10px 14px;
  margin-top: 16px;
}
.ac-privacy strong { color: var(--ac-orange); }

/* ── Mobile ── */
@media (max-width: 768px) {
  #ambigus-check-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ac-sidebar { position: static; }
  .ac-widget { padding: 24px 20px; }
  .ac-qtext { font-size: 20px; }
  .ac-result-cats { grid-template-columns: 1fr; }
}

/* ── v3.0: CTA-Karten ─────────────────────────────────────────────────────── */
.ac-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 20px;
}
.ac-cta-card {
  padding: 28px 24px;
  background: var(--ac-light);
  border: 1.5px solid rgba(60,60,60,0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ac-cta-card--highlight {
  background: var(--ac-dark);
  border-color: var(--ac-dark);
}
.ac-cta-icon {
  font-size: 28px;
  line-height: 1;
}
.ac-cta-title {
  font-family: var(--ac-display);
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ac-dark);
  letter-spacing: 0.3px;
}
.ac-cta-card--highlight .ac-cta-title {
  color: #fff;
}
.ac-cta-desc {
  font-size: 13px;
  color: var(--ac-mid);
  line-height: 1.6;
  flex: 1;
}
.ac-cta-card--highlight .ac-cta-desc {
  color: rgba(255,255,255,0.5);
}
.ac-cta-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 13px 20px;
  background: transparent;
  border: 1.5px solid var(--ac-orange);
  color: var(--ac-orange);
  font-family: var(--ac-body);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.ac-cta-btn:hover {
  background: var(--ac-orange);
  color: var(--ac-dark);
}
.ac-cta-btn--primary {
  background: var(--ac-orange);
  color: var(--ac-dark);
  border-color: var(--ac-orange);
}
.ac-cta-btn--primary:hover {
  background: #e08500;
  border-color: #e08500;
  color: #fff;
}

/* ── Sidebar Privacy-Hinweis (v3 update) ─────────────────────────────────── */
.ac-privacy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--ac-mid);
  line-height: 1.6;
  padding: 12px 16px;
  background: var(--ac-light);
  border-left: 3px solid var(--ac-orange);
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ac-cta-grid {
    grid-template-columns: 1fr;
  }
}

/* ── v3.1: Kontakt-Banner ─────────────────────────────────────────────────── */
#ambigus-contact-wrap {
  max-width: 760px;
  margin: 0 auto;
  font-family: 'DM Sans', sans-serif;
}

#ac-contact-banner {
  background: #fff3e0;
  border-left: 4px solid #f39200;
  padding: 20px 24px;
  margin-bottom: 32px;
}

.ac-contact-banner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f39200;
  margin-bottom: 8px;
}

#ac-contact-banner-level {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  color: #3c3c3c;
  margin-bottom: 2px;
}

#ac-contact-banner-score {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

#ac-contact-banner-cats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #3c3c3c;
}

#ac-contact-banner-cats span strong {
  color: #f39200;
}

@media (max-width: 600px) {
  #ac-contact-banner-cats {
    flex-direction: column;
    gap: 6px;
  }
}

/* ── v3.2: Lightbox ───────────────────────────────────────────────────────── */
#ac-lightbox-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.75);
  z-index: 9998;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#ac-lightbox-backdrop.open {
  display: block;
  opacity: 1;
}

#ac-lightbox {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, 94vw);
  max-height: 88vh;
  background: #fff;
  z-index: 9999;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35);
}
#ac-lightbox.open {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}

#ac-lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 3px solid #f39200;
}

#ac-lightbox-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.5px;
}

#ac-lightbox-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.2s;
}
#ac-lightbox-close:hover {
  color: #f39200;
}

#ac-lightbox-banner {
  background: #fff3e0;
  border-left: 4px solid #f39200;
  padding: 18px 28px;
  margin: 24px 28px 0;
}

.ac-lb-banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #f39200;
  margin-bottom: 6px;
}

#ac-lb-banner-level {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  color: #3c3c3c;
  margin-bottom: 2px;
}

#ac-lb-banner-score {
  font-size: 13px;
  color: #888;
  margin-bottom: 10px;
}

#ac-lb-banner-cats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #3c3c3c;
}
#ac-lb-banner-cats span strong {
  color: #f39200;
}

#ac-lightbox-form {
  padding: 24px 28px 32px;
}

@media (max-width: 600px) {
  #ac-lightbox {
    width: 96vw;
    max-height: 92vh;
  }
  #ac-lightbox-header,
  #ac-lightbox-banner,
  #ac-lightbox-form {
    padding-left: 16px;
    padding-right: 16px;
  }
  #ac-lightbox-banner {
    margin-left: 16px;
    margin-right: 16px;
  }
  #ac-lb-banner-cats {
    flex-direction: column;
    gap: 4px;
  }
}
