/* ─────────────────────────────────────────────
   AI-Standort-Check (Light Theme)
   ───────────────────────────────────────────── */

.sc-hero {
  padding: calc(var(--header-height) + 4rem) 0 3.5rem;
  background:
    radial-gradient(ellipse 60% 130% at 50% 45%, rgba(248, 250, 251, 0.96) 30%, rgba(248, 250, 251, 0.72) 62%, rgba(248, 250, 251, 0.1) 100%),
    url('../img/standort-check-hero.webp') center 42% / cover no-repeat #f8fafb;
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}
.sc-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0.5rem 0 1rem;
}
.sc-hero-sub {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}
.sc-hero-meta {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  padding: 0;
}
.sc-hero-meta li {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.sc-hero-meta li::before {
  content: '✓';
  color: #2aa97a;
  font-weight: 700;
  margin-right: 0.4rem;
}

.sc-main {
  padding: 3rem 0 5rem;
  background: #ffffff;
}
.sc-container {
  max-width: 1000px;
}
#sc-result {
  max-width: 780px;
  margin: 0 auto;
}

/* Globale Zentrierung (components.css) fuer Fliesstext-Elemente aufheben */
.sc-card,
.sc-bars,
.sc-profile-text,
.sc-step-card,
.sc-cta-card {
  text-align: left;
}

/* Progress */
.sc-progress { margin-bottom: 1.25rem; scroll-margin-top: calc(var(--header-height) + 1rem); }
.sc-progress-bar {
  height: 8px;
  background: var(--bg-light);
  border-radius: 99px;
  overflow: hidden;
}
.sc-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, #34d399, #2aa97a);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.sc-progress-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

/* Wizard-Layout: Fragen links, Live-Karte rechts */
.sc-wizard-layout {
  display: grid;
  grid-template-columns: 1fr 230px;
  gap: 1.5rem;
  align-items: start;
}
.sc-map-mini-wrap {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}
#sc-wheel {
  display: block;
  width: 100%;
  height: auto;
}
.sc-wheel-bg {
  fill: #eef1f3;
  transition: fill 0.3s ease;
}
.sc-wheel-bg-active {
  fill: #dfe7ea;
}
.sc-wheel-fill {
  opacity: 0.92;
}
.sc-wheel-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem 0.6rem;
  margin-top: 0.75rem;
}
.sc-wheel-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.sc-wheel-legend-active {
  color: var(--text-dark);
  font-weight: 600;
}
.sc-wheel-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}
.sc-map-mini-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.4;
}
.sc-map-mini-wrap .sc-map-axis-x { margin-top: 0.35rem; }

/* Wizard-Karte */
.sc-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(26, 26, 46, 0.06);
}
.sc-step-kicker {
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.25rem;
}
.sc-step-kicker-final { color: var(--text-dark); }
.sc-step-in { animation: scStepIn 0.3s ease; }
@keyframes scStepIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}
.sc-nav-hint { font-size: 0.78rem; color: var(--text-muted); }
.sc-question { margin-bottom: 1.75rem; }
.sc-question-text {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}
.sc-question-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.sc-optional { font-weight: 400; color: var(--text-muted); font-size: 0.85rem; }

.sc-options { display: grid; gap: 0.5rem; }
.sc-option {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #fff;
}
.sc-option:hover { border-color: #34d399; background: #f6fdf9; }
.sc-option input { margin-top: 0.25rem; accent-color: #2aa97a; flex-shrink: 0; }
.sc-option:has(input:checked) {
  border-color: #2aa97a;
  background: #eefaf4;
}
.sc-options-compact { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.sc-question.sc-missing { animation: sc-shake 0.3s ease; }
.sc-question.sc-missing .sc-options { outline: 2px solid #f87171; outline-offset: 4px; border-radius: 10px; }
@keyframes sc-shake {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
}

#sc-freetext {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  resize: vertical;
}
#sc-freetext:focus { outline: 2px solid #34d399; border-color: transparent; }

.sc-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}
.sc-prev { background: var(--bg-light); color: var(--text-dark); }

/* ── Ergebnis ── */
.sc-result-intro { text-align: center; margin-bottom: 2rem; }
.sc-result-intro h2 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 0.5rem;
}
/* Ergebnis-Rad + Dimensions-Panel */
.sc-result-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2.5rem;
  align-items: start;
  max-width: 860px;
  margin: 0 auto 2rem;
}
.sc-result-wheel .sc-wheel-legend { max-width: 280px; }
#sc-wheel-result { display: block; width: 100%; height: auto; }
#sc-wheel-result [data-dim] { cursor: pointer; }
#sc-wheel-result .sc-wheel-fill { transition: opacity 0.25s ease; }

.sc-dim-panel {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.04);
  text-align: left;
}
.sc-panel-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 0.4rem;
}
.sc-dim-panel h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Antwort/Ziel/Empfehlung-Bloecke (Panel + grosses Bild) */
.sc-istsoll-block {
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.75rem;
  align-items: start;
}
.sc-istsoll-block + .sc-istsoll-block { margin-top: 1rem; }
.sc-istsoll-label {
  display: inline-flex;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 6px;
  padding: 0.25rem 0.3rem;
  margin-top: 0.15rem;
}
.sc-ist-block .sc-istsoll-label { background: var(--bg-light); color: var(--text-muted); }
.sc-soll-block .sc-istsoll-label { background: #eefaf4; color: #2aa97a; }
.sc-emp-block .sc-istsoll-label { background: #fff3c4; color: #7a5c00; }
.sc-istsoll-block p { font-size: 0.95rem; color: var(--text-dark); }

/* Das grosse Bild */
.sc-profile-text {
  background: #f8fafb;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 0 auto 2.5rem;
  max-width: 780px;
  color: var(--text-dark);
  text-align: left;
}
.sc-profile-text h3 {
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
  background: #eefaf4;
  border-bottom: 1px solid #d2ede1;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -1.5rem -1.75rem 1.25rem;
  padding: 0.85rem 1rem;
}

/* Schritte */
.sc-steps-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 auto 1rem;
  max-width: 780px;
}
.sc-steps { display: grid; gap: 1rem; margin: 0 auto 2.5rem; max-width: 780px; }
.sc-step-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 2px 12px rgba(26, 26, 46, 0.04);
}
.sc-step-head {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.sc-step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eefaf4;
  color: #2aa97a;
  font-weight: 800;
}
.sc-step-card h4 { margin-bottom: 0; color: var(--text-dark); }
.sc-step-card p { font-size: 0.95rem; color: var(--text-muted); }

/* Ergebnis per Mail (leichtgewichtig) */
.sc-mail-row { text-align: center; margin-bottom: 3.5rem; }
.sc-mail-btn {
  background: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
}
.sc-mail-btn:hover { border-color: #2aa97a; color: #2aa97a; }

/* Email-Popup */
.sc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.sc-modal-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  text-align: left;
}
.sc-modal-card h4 { color: var(--text-dark); margin-bottom: 0.5rem; }
.sc-modal-card > p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.sc-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}
.sc-modal-close:hover { color: var(--text-dark); }

/* Angebote */
.sc-offers { text-align: center; margin-bottom: 2rem; }
.sc-offers-heading {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 800;
  color: var(--text-dark);
  margin: 0.5rem 0 1rem;
}
.sc-offer-lead {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.98rem;
}
.sc-offer-duo { text-align: left; }
.sc-offer-duo .training-card { position: relative; }
.sc-offer-header-talk {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.12) 100%),
              url('../img/sebastian-werk1.webp') 72% 20% / cover no-repeat;
}
.sc-offer-header-inhouse {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.18) 100%),
              url('../img/workshop-tiles.webp') center 60% / cover no-repeat;
}
.sc-offer-header-talk h3,
.sc-offer-header-inhouse h3 { color: #fff; }
.sc-offer-recommended { border-color: #2aa97a; box-shadow: 0 4px 20px rgba(42, 169, 122, 0.18); }
.sc-offer-flag {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
  background: var(--accent);
  color: #0F172A;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
}

#sc-report-form, #sc-inquiry-form { display: grid; gap: 0.75rem; }
#sc-inquiry-text {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark);
  resize: vertical;
}
#sc-inquiry-text:focus { outline: 2px solid #34d399; border-color: transparent; }
#sc-inquiry-email {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
#sc-inquiry-email:focus { outline: 2px solid #34d399; border-color: transparent; }
#sc-report-email {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
#sc-report-email:focus { outline: 2px solid #34d399; border-color: transparent; }
.sc-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}
.sc-consent input { margin-top: 0.2rem; accent-color: #2aa97a; }
.sc-report-done { color: #2aa97a; font-weight: 600; font-size: 0.92rem; }

.sc-restart { text-align: center; margin-bottom: 1rem; }
.sc-restart a { color: var(--text-muted); font-size: 0.85rem; }

/* Logo-Band (durchlaufend) */
.sc-logos {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: 2rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}
.sc-logos .section-label { margin-bottom: 1.25rem; }
.sc-logo-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.sc-logo-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  padding-left: 3.5rem;
  animation: scMarquee 45s linear infinite;
}
.sc-logo-track img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
}
@keyframes scMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-logo-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

.sc-privacy {
  margin-top: 2.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 860px) {
  .sc-wizard-layout { grid-template-columns: 1fr; }
  .sc-map-mini-wrap {
    position: static;
    order: -1;
    max-width: 210px;
    margin: 0 auto;
  }
  .sc-map-mini-hint { display: none; }
}
@media (max-width: 768px) {
  .sc-card { padding: 1.25rem; }
  .sc-result-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .sc-result-wheel { max-width: 260px; margin: 0 auto; }
  .sc-options-compact { grid-template-columns: 1fr; }
}

/* ── Gleich hohe Angebots-Boxen ── */
.sc-offer-duo .training-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.sc-offer-duo .training-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sc-offer-duo .training-link { margin-top: auto; }

/* ── PDF-Balken: 90 Grad gedrehte Lasche rechts neben dem Ergebnis (Desktop + mobil) ── */
.sc-result-grid { position: relative; }
.sc-pdf-tab {
  display: block;
  position: absolute;
  right: -3.4rem;
  top: 4px;
  z-index: 5;
  writing-mode: vertical-rl;
  background: #2aa97a;
  color: #ffffff;
  border: none;
  border-radius: 0 10px 10px 0;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1.1rem 0.6rem;
  cursor: pointer;
  box-shadow: 3px 3px 14px rgba(26, 26, 46, 0.22);
}
.sc-pdf-tab:hover { background: #23906a; }

/* Punkte (Desktop-Panel + mobile Swipe-Leiste) */
.sc-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  border: none;
  padding: 0;
  background: #d5dade;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sc-dot-active {
  width: 18px;
  background: #2aa97a;
}
.sc-panel-dots {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
@media (max-width: 768px) {
  .sc-result-grid { position: relative; }
  .sc-panel-dots { display: none; }
  .sc-pdf-tab {
    display: block;
    position: absolute;
    right: -1.2rem;
    top: 0;
    z-index: 2;
    box-shadow: none;
    writing-mode: vertical-rl;
    background: #eefaf4;
    border: 1px solid #d2ede1;
    border-radius: 8px;
    color: #2aa97a;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 0.7rem 0.35rem;
    cursor: pointer;
  }
}

/* ── Mobile: kleinere Raeder + Swipe-Karussells ── */
@media (max-width: 768px) {
  .sc-map-mini-wrap { max-width: 168px; }        /* Wizard-Rad ~20% kleiner */

  /* Ergebnis-Rad kompakt: Legende LINKS neben dem Rad, Hinweis darunter */
  .sc-result-wheel {
    max-width: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.25rem 0.75rem;
  }
  #sc-wheel-result {
    width: 185px;
    height: 185px;
    flex: 0 0 auto;
    order: 2;
  }
  .sc-result-wheel .sc-wheel-legend {
    order: 1;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    max-width: 116px;
    margin-top: 0;
  }
  .sc-result-wheel .sc-wheel-legend-item {
    font-size: 0.68rem;
    white-space: normal;
    line-height: 1.25;
  }
  #sc-swipe-hint {
    order: 3;
    flex-basis: 100%;
    margin-top: 0.4rem;
  }

  /* Angebote als Swipe-Reihe statt untereinander */
  .sc-offers .sc-offer-duo {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.25rem 0.25rem 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .sc-offers .sc-offer-duo .training-card {
    min-width: 82%;
    scroll-snap-align: center;
  }

  /* Die drei Schritte als Swipe-Reihe */
  .sc-steps {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
  }
  .sc-step-card {
    min-width: 85%;
    scroll-snap-align: center;
  }
}

/* ── Swipe-Navigation (Pfeile + Punkte, nur mobil) ── */
.sc-swipe-nav { display: none; }
@media (max-width: 768px) {
  .sc-swipe-nav {
    order: 3;
    flex-basis: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0.6rem;
  }
  #sc-swipe-hint { order: 4; }
  .sc-swipe-arrow {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #d2ede1;
    background: #eefaf4;
    color: #2aa97a;
    font-size: 1.5rem;
    line-height: 1;
    font-family: var(--font-body);
    cursor: pointer;
    flex-shrink: 0;
    padding: 0 0 4px 0;
  }
  .sc-swipe-arrow:disabled { opacity: 0.3; }
  .sc-swipe-dots {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: nowrap;
  }
}

/* Mini-Rad in den Schritt-Karten (Sektor der Empfehlung hervorgehoben) */
.sc-step-wheel {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .sc-step-wheel { width: 64px; height: 64px; }
}
