/* =========================   LAGEBILD / KENNZAHLEN========================= */

.lagebild {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.lage-card {
  height: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 1.35rem;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .07);
}

.lage-card-pflege, .lage-card-important {
  background: #fff6f6;
  border-color: rgba(211, 2, 39, .25);
}

.lage-number {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.05;
  font-weight: 850;
  color: #d30227;
  letter-spacing: -.03em;
}

.lage-label {
  margin-top: .55rem;
  font-size: .92rem;
  font-weight: 700;
  color: #333;
}

.lage-subline {
  margin-top: .35rem;
  font-size: .78rem;
  font-weight: 700;
  color: #198754;
}

.lage-hinweis {
  font-size: .85rem;
  color: #666;
  text-align: center;
}

/* =========================   FILTER========================= */

.filter-panel {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .055);
}

.filter-panel .form-label {
  color: #333;
  margin-bottom: .35rem;
}

.filter-help {
  font-size: .82rem;
  color: #666;
}

/* =========================   LISTE ALS TABELLENZEILEN========================= */

.kuerzungen-list, .kuerzungen-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 0;
  /*background: #fff;*/
  /*border: 1px solid #d9d9d9;*/
}

.empty-state {
  background: #fff;
  padding: 2rem;
  text-align: center;
  color: #666;
}

.kuerzung-item {
  /*background: #fff;*/
  /*border: 0;*/
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  /*margin-bottom: 5px;*/
  border-bottom: 2px dotted #999999;
}

.kuerzung-item:nth-child(even) {
  background: #fafafa;
}

.kuerzung-item:nth-child(odd) {
  background: #ffffff;
}

.kuerzung-item:hover {
  /*background: #fff;*/
}

.kuerzung-card-toggle, .kuerzung-card-toggle:hover {
  width: 100%;
  border: 0;
  text-align: left;
  padding: 1rem 1.2rem;
  cursor: pointer;
}

.kuerzung-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: .75rem;
  /*background-color: #aed04d;*/
  /*gap: 3rem;*/
}

.kuerzung-title {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  color: #222;
}

.kuerzung-meta {
  margin-top: .2rem;
  color: #666;
  font-size: .82rem;
}

.kuerzung-topline {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.raumbezug-badge {
  white-space: nowrap;
  background: #ececec;
  color: #555;
  border-radius: 4px;
  padding: .18rem .5rem;
  font-size: .7rem;
  font-weight: 800;
}

.expand-symbol {
  color: #d30227;
  font-size: .9rem;
  transition: transform .15s ease;
}

.kuerzung-item.open .expand-symbol {
  transform: rotate(180deg);
}

/* =========================   KÃœRZUNGSZEILEN   KrÃ¤ftiger Balken = gekÃ¼rzter Anteil========================= */

.kuerzung-impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
  /*margin-bottom: 20px;*/
}

.impact-row {
  border-radius: 0;
  padding: .65rem .75rem;
}

.impact-pflege, .impact-planung {
  /*background: #fff;*/
}

.impact-value {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .45rem;
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.25;
  color: #222;
}

.impact-value strong {
  font-weight: 850;
}

.impact-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.impact-label, .impact-money {
  display: none;
}

.impact-bar {
  width: 100%;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  background: #e8e8e8;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .14);
}

.impact-bar span {
  display: block;
  height: 100%;
  position: relative;
  border-radius: 999px 0 0 999px;
}

/* alte Beschriftungen und Grenzlinien sicher abschalten */

.impact-bar::before, .impact-bar::after, .impact-bar span::after {
  display: none !important;
  content: none !important;
}

.impact-pflege .impact-bar span {
  background: linear-gradient( to bottom, #e43657 0%, #d30227 45%, #a8001d 100% );
}

.impact-planung .impact-bar span {
  background: linear-gradient( to bottom, #f0a046 0%, #e67e22 45%, #c96a10 100% );
}

.impact-note {
  margin-top: .35rem;
  font-size: .68rem;
  font-weight: 800;
  color: #198754;
}

.impact-none {
  grid-column: 1 / -1;
  background: #eef8ef;
  border: 1px solid #cfe7d0;
  color: #2d7a3e;
  padding: .7rem .9rem;
  border-radius: 0;
  font-weight: 800;
}

/* =========================   DETAILS========================= */

.details-hint {
  margin-top: .65rem;
  color: var(--bs-primary);
  font-size: .82rem;
  font-weight: 400;
  margin-left: 15px;
}

.kuerzung-details {
  margin: 0;
  padding: .1rem 2rem 1.35rem;
  border-radius: 0;
  color: #333;
  line-height: 1.6;
  text-align: left !important;
}

.kuerzung-detail-meta {
  margin-top: 1rem;
  font-size: .8rem;
  color: #555;
}

/* =========================   MOBIL========================= */

@media (max-width: 768px) {
  .kuerzung-card-head {
    display: block;
  }
}

@media (max-width: 768px) {
  .kuerzung-topline {
    margin-top: .65rem;
  }
}

@media (max-width: 768px) {
  .kuerzung-impact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .kuerzung-card-toggle {
    padding: .95rem 1rem;
  }
}

@media (max-width: 768px) {
  .kuerzung-details {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .kuerzung-card-toggle {
    padding: .85rem;
  }
}

@media (max-width: 480px) {
  .impact-row {
    padding: .6rem;
  }
}

@media (max-width: 480px) {
  .impact-value {
    font-size: .88rem;
  }
}

@media (max-width: 480px) {
  .impact-icon {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 480px) {
  .impact-bar {
    height: 20px;
  }
}

/* Balken */

.impact-bar {
  position: relative;
  width: 100%;
  height: 18px;
  overflow: visible;
  background: #9a9a9a;
  border-radius: 0;
  box-shadow: none;
}

/* verbleibender Anteil */

.impact-pflege .impact-bar span {
  display: block;
  height: 100%;
  background: #ff1102;
  border-radius: 0;
  box-shadow: none;
  /*filter: blur(1.5px);*/
  /*transform: scale(1.02);*/
}

.impact-planung .impact-bar span {
  display: block;
  height: 100%;
  background: #00d1ff;
  border-radius: 0;
  box-shadow: none;
}

/* Schnittlinie */

.impact-bar span::after {
  content: "";
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ffffff;
}

.impact-bar {
  height: 22px;
}

/* Neuer Pflege-Balken */

.impact-bar-group.pflege {
  width: 100%;
}

.pflege-stack {
  position: relative;
  width: 100%;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.7);
  box-sizing: border-box;
  background: #ff1102;
}

.pflege-layer {
  position: absolute;
  top: 0;
  bottom: 0;
}

.pflege-layer-red {
  left: 0;
  width: 100%;
  background-image: url("assets/img/rot-inset.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.pflege-layer-green-solid {
  left: 0;
  width: calc(100% - var(--cut-max));
  background-image: url("assets/img/gruen.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 2;
}

.pflege-layer-green-stones {
  left: calc(100% - var(--cut-max));
  width: calc(var(--cut-max) - var(--cut-min));
  background-image: url("assets/img/gruen-steine.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 3;
}

.pflege-reference {
  position: relative;
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255,255,255,.7);
  border-top: 0;
  box-sizing: border-box;
  background-image: url("assets/img/gruen.webp");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
}

.pflege-reference-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.impact-year {
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.impact-reference-note {
  margin-top: 6px;
  font-size: .82rem;
  color: #666;
  text-align: center;
  line-height: 1.25;
}

@media (max-width: 575.98px) {
  .pflege-stack {
    height: 30px;
  }
}

@media (max-width: 575.98px) {
  .pflege-reference {
    height: 28px;
  }
}

@media (max-width: 575.98px) {
  .pflege-reference-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 575.98px) {
  .impact-year {
    right: 10px;
    font-size: .8rem;
  }
}

.pflege-new {
  width: 100%;
}

.pflege-cut-bar {
  position: relative;
  width: 100%;
  height: 38px;
  overflow: hidden;
  background: #ff1102;
  border: 1px solid rgba(255,255,255,.75);
  box-sizing: border-box;
}

.pflege-cut-red, .pflege-cut-green, .pflege-cut-stones {
  position: absolute;
  top: 0;
  height: 100%;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.pflege-cut-red {
  left: 0;
  width: 100%;
  background-image: url("assets/img/rot-inset.webp");
  z-index: 1;
}

.pflege-cut-green {
  left: 0;
  width: var(--green-solid-width);
  background-image: url("assets/img/gruen.webp");
  z-index: 2;
}

.pflege-cut-stones {
  left: var(--stone-left);
  width: var(--stone-width);
  background-image: url("assets/img/gruen-steine.webp");
  z-index: 3;
}

.pflege-cut-year {
  position: absolute;
  right: 16px;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.pflege-cut-reference {
  position: relative;
  width: 100%;
  height: 34px;
  overflow: hidden;
  background-image: url("assets/img/gruen.webp");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  border: 1px solid rgba(255,255,255,.75);
  border-top: 0;
  box-sizing: border-box;
}

.pflege-cut-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .pflege-cut-bar {
    height: 30px;
  }
}

@media (max-width: 575.98px) {
  .pflege-cut-reference {
    height: 28px;
  }
}

@media (max-width: 575.98px) {
  .pflege-cut-icon {
    width: 26px;
    height: 26px;
  }
}

@media (max-width: 575.98px) {
  .pflege-cut-year {
    right: 10px;
    font-size: .8rem;
  }
}

