/* =====================================================================
   Секция «Kategorie-Potenzial prüfen» (Potenzial-Score)
   ===================================================================== */

.potenzial {
  --orange: #ff3b0a;
  --orange-2: #ff8a59;
  --text: #111111;
  --muted: #5f5f68;
  --line: #e7e7ec;
  --panel: #eeeeff;
  --card: #ffffff;
  --soft: #f6f6f8;
  --radius-xl: 34px;
  --radius-md: 16px;
  --shadow: 0 24px 70px rgba(0,0,0,.26);

  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url(../img/calc_bg_new.webp) no-repeat center center / cover;
}

.category-potential {
  width: min(1170px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 110px;
}

.category-potential__head {
  text-align: center;
  color: #fff;
  margin-bottom: 36px;
}

.category-potential-label {
  margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 17px;
}
@media (min-width: 769px) {
  .category-potential-label span {
    display: block;
  }
}

.category-potential__head h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1;
  letter-spacing: -1.6px;
  font-weight: 500;
}

.category-potential__head p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.45;
  color: #ffffff;
}

.potential-card {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 22px;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.potential-card__title {
  margin: 0 0 22px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.55px;
  font-weight: 600;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.category-item {
  appearance: none;
  width: 100%;
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.category-item:hover {
  transform: translateY(-1px);
  border-color: rgba(255,59,10,.35);
  box-shadow: 0 10px 24px rgba(17,17,17,.06);
}

.category-item.is-active {
  border-color: rgba(255,59,10,.72);
  background: linear-gradient(0deg, rgba(255,59,10,.055), rgba(255,59,10,.055)), #fff;
  box-shadow: 0 12px 28px rgba(255,59,10,.10);
}

.category-item__icon {
  width: 64px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f1f2;
  color: #111;
  transition: background .2s ease, color .2s ease;
}

.category-item.is-active .category-item__icon {
  background: var(--orange);
  color: #fff;
}

.category-item__icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 2.25;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.category-item__icon img {
  width: 36px;
  height: 36px;
  transition: filter .2s ease;
}

.category-item.is-active .category-item__icon img {
  filter: brightness(0) invert(1);
}

.category-item__name {
  display: block;
  margin-bottom: 4px;
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.2px;
}

.category-item__desc {
  display: block;
  opacity: .7;
  color: black;
  font-size: 15px;
  line-height: 1.19;
}

.score-panel {
  min-height: 100%;
  border-radius: 25px;
  background: #eeeeff;
  padding: 36px 28px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.score-panel h3 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 600;
}

.score-label {
  min-width: 132px;
  padding: 6px 16px;
  border: 1px solid rgba(255,59,10,.55);
  border-radius: 999px;
  color: #55515b;
  background: rgba(255,255,255,.6);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 33px;
}

.gauge {
  width: min(360px, 100%);
  margin: 0 auto 8px;
  position: relative;
  aspect-ratio: 2 / 1;
}

.gauge svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge__arc-bg {
  stroke: rgba(255,255,255,.45);
  stroke-width: 19;
  stroke-linecap: round;
  fill: none;
}

.gauge__arc {
  stroke-width: 19;
  stroke-linecap: round;
  fill: none;
}

.gauge__needle {
  transform-origin: 165px 160.5px;
  transform: rotate(var(--angle));
  transition: transform .42s cubic-bezier(.2,.9,.25,1);
}

.gauge__needle-line {
  stroke: var(--orange);
  stroke-width: 7;
  stroke-linecap: round;
}

.gauge__needle-center {
  fill: var(--orange);
}

.gauge__tick {
  /*fill: #5a5a62;
  font-size: 16px;*/
  fill: black;
  font-size: 17px;
  font-weight: 400;
}

.score-number {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  margin-top: -4px;
  margin-bottom: 18px;
  line-height: .9;
}

.score-number__value {
  min-width: 86px;
  display: inline-block;
  color: var(--orange);
  font-size: clamp(58px, 6vw, 78px);
  letter-spacing: -3px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: transform .28s ease, opacity .28s ease;
}

.score-panel.is-loading .score-number__value {
  opacity: .72;
}

.score-panel.is-loading .score-label {
  opacity: .68;
}

.score-number__max {
  color: #75757C;
  opacity: 0.78;
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  padding-bottom: 6px;
}

.score-copy {
  max-width: 420px;
  margin: 0 0 24px;
  color: #14141a;
  font-size: 17px;
  line-height: 1.25;
}

.score-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  padding: 0 36px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  line-height: 150%;
  font-weight: 400;
  transition: transform .2s ease, background .2s ease;
}

.score-cta:hover {
  transform: translateY(-1px);
  background: #1b1b1b;
}

@media (max-width: 940px) {
  .potential-card {
    grid-template-columns: 1fr;
  }

  .score-panel {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .category-potential {
    width: 100%;
    padding: 32px 16px;
    border-radius: 0;
  }

  .potential-card {
    padding: 20px 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
  }

  .categories-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .category-item {
    min-height: 80px;
    padding: 9px;
    grid-template-columns: 32px 1fr;
  }
  .category-item__name {
    font-size: 13px;
  }
  .category-item__desc {
    font-size: 10px;
  }

  .score-panel {
    padding: 30px 16px;
    border-radius: 20px;
    min-height: auto;
  }
}
