/* ============================================================
   08_ BAUSTEINE-LISTE  (Screen 1)
   ============================================================ */
.bausteine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--steel-line);
  border-bottom: 1px solid var(--steel-line);
}

.baustein {
  border-bottom: 1px solid var(--steel-soft);
  background: transparent;
  transition: background .18s var(--ease-soft);
  position: relative;
}
.baustein:last-child { border-bottom: 0; }
.baustein:hover { background: var(--card); }
.baustein.is-selected {
  background: var(--card);
}
.baustein.is-selected::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--orange);
}

.baustein-head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px 20px;
  width: 100%;
  text-align: left;
}
@media (min-width: 720px) {
  .baustein-head { padding: 26px 28px; gap: 24px; }
}

.box {
  position: relative;
  width: 18px; height: 18px;
  border: 1.5px solid var(--ink);
  background: transparent;
  flex: none;
  transition: background .15s var(--ease-soft), border-color .15s var(--ease-soft);
}
.box::after {
  content: "";
  position: absolute; inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none'><path d='M2.4 7 L5.6 10 L11.4 4' stroke='%23EDEDE9' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/></svg>") center/12px no-repeat;
  opacity: 0;
  transition: opacity .12s var(--ease-soft);
}
.baustein.is-selected > .baustein-head .box,
.sub-row input:checked + .box {
  background: var(--orange);
  border-color: var(--orange);
}
.baustein.is-selected > .baustein-head .box::after,
.sub-row input:checked + .box::after { opacity: 1; }

.baustein-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.baustein-title {
  font-family: var(--font-tight);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
}
@media (min-width: 720px) { .baustein-title { font-size: 19px; } }

.baustein-preview {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
}
.baustein-preview .sep { margin: 0 6px; color: var(--steel-soft); }

/* sub-options */
.baustein-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease-soft);
}
.baustein[aria-expanded="true"] .baustein-sub { grid-template-rows: 1fr; }
.baustein-sub-inner {
  overflow: hidden;
  min-height: 0;
}
.sub-list {
  border-top: 1px solid var(--steel-soft);
  padding: 6px 20px 18px 56px;
  display: flex;
  flex-direction: column;
}
@media (min-width: 720px) { .sub-list { padding: 8px 28px 22px 70px; } }

.sub-row { position: relative; }
.sub-label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  cursor: pointer;
  border-bottom: 1px dashed var(--steel-soft);
}
.sub-row:last-child .sub-label { border-bottom: 0; }
.sub-label input { position: absolute; opacity: 0; pointer-events: none; }

.sub-text {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.45;
}
.sub-row .box { width: 14px; height: 14px; }
.sub-row .box::after { background-size: 9px; }
.sub-input {
  width: calc(100% - 28px);
  margin: 0 0 12px 28px;
  background: var(--concrete);
  border: 1px solid var(--steel-soft);
  border-bottom-color: var(--ink);
  padding: 11px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  outline: 0;
}
.sub-input:focus {
  background: #FAFAF7;
  border-color: var(--ink);
}
.baustein-custom .sub-input {
  width: calc(100% - 40px);
  margin: 0 20px 18px;
}
@media (min-width: 720px) {
  .baustein-custom .sub-input {
    width: calc(100% - 56px);
    margin: 0 28px 22px;
  }
}
