
/* ===== Seite Kosten ===== */
/* Rechner mit Angebotszettel */
.k-rechner { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(24px,5vw,64px); margin-top: 36px; align-items: start; }
.r-regler { min-width: 0; padding: 26px; border-radius: 18px; background: #fff; border: 2px solid #d3c9ba; box-shadow: 0 18px 40px -26px rgba(40,30,20,.45); }
.r-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0; font: 700 .8rem/1.2 var(--text-font); letter-spacing: .12em; text-transform: uppercase; color: #4d5960; }
.r-label output { font: 700 2rem/1 var(--titel); letter-spacing: 0; color: #a42423; }
#r-m2 { width: 100%; margin-top: 14px; accent-color: #a42423; height: 28px; }
.r-skala { display: flex; justify-content: space-between; margin-top: 4px; font-size: .68rem; color: #6f7a80; }
.r-wahl { border: 0; margin: 26px 0 0; padding: 0; }
.r-wahl legend { margin-bottom: 12px; }
.r-wahl label { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 12px; border: 2px solid #c2b7a7; background: #fff; cursor: pointer; box-shadow: 0 3px 0 #d3c9ba; transition: border-color .2s, box-shadow .2s, transform .15s; }
.r-wahl label:active { transform: translateY(2px); box-shadow: 0 1px 0 #d3c9ba; }
.r-wahl label:has(input:checked) { border-color: #a42423; background: #fbeceb; box-shadow: 0 3px 0 #a42423; }
.r-wahl label > span { flex: 1; min-width: 0; text-align: left; }
.r-wahl input { width: 20px; height: 20px; accent-color: #a42423; flex: none; }
.r-wahl b { display: block; color: #1b2227; }
.r-wahl small { display: block; color: #4d5960; font-size: .82rem; }
.r-tipp { margin: 18px 0 0; font-size: .86rem; color: #4d5960; }
.zettel-angebot { position: relative; min-width: 0; padding: 28px 28px 26px; background: #fffdf8; border-radius: 4px; box-shadow: 0 30px 50px -28px rgba(40,30,20,.55), 0 1px 0 #e9e1d2; transform: rotate(-.8deg); color: #1b2227; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(164,36,35,.07) 31px 32px); }
.zettel-angebot::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 16px; background: radial-gradient(circle at 8px 0, transparent 7px, #fffdf8 7.5px) 0 0 / 16px 16px repeat-x; }
.za-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 2px solid #1b2227; }
.za-kopf img { width: 150px; height: auto; }
.za-kopf span { font: 600 .74rem/1.3 var(--text-font); letter-spacing: .14em; text-transform: uppercase; color: #6f7a80; text-align: right; }
.za-kopf b { color: #1b2227; letter-spacing: .04em; }
.za-posten { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .9rem; }
.za-posten th { padding: 8px 6px; text-align: left; font: 700 .68rem/1 var(--text-font); letter-spacing: .12em; text-transform: uppercase; color: #6f7a80; border-bottom: 1px solid #d9cdb8; }
.za-posten th:last-child, .za-posten td:last-child { text-align: right; }
.za-posten td { padding: 10px 6px; border-bottom: 1px dashed #d9cdb8; vertical-align: top; }
.za-posten td:nth-child(2) { white-space: nowrap; color: #4d5960; }
.za-posten td:last-child { font-weight: 700; white-space: nowrap; }
.za-posten tr { transition: opacity .35s, background .35s; }
.za-posten tr.aus { opacity: .22; }
.za-posten tr.aus td:last-child { text-decoration: line-through; }
.za-posten tr.neu { animation: za-neu .9s ease-out; }
@keyframes za-neu { from { background: rgba(224,152,46,.35); } to { background: transparent; } }
.za-summe { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 3px double #1b2227; }
.za-summe span { font: 700 .8rem/1.2 var(--text-font); letter-spacing: .1em; text-transform: uppercase; color: #4d5960; }
.za-summe strong { font: 700 2.2rem/1 var(--titel); color: #a42423; text-align: right; }
.za-fuss { margin: 12px 0 0; font-size: .78rem; color: #6f7a80; }
.za-stempel { position: absolute; left: 46%; bottom: 132px; padding: 6px 14px; border: 3px solid rgba(164,36,35,.55); border-radius: 6px; font: 700 1.1rem/1 var(--titel); letter-spacing: .1em; text-transform: uppercase; color: rgba(164,36,35,.55); transform: rotate(12deg); pointer-events: none; }
.zettel-angebot .knopf-2z { margin-top: 18px; width: 100%; }

/* Faktoren */
.faktoren { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.faktoren li { min-width: 0; padding: 24px 22px; border-radius: 18px; background: #f6f3ee; border: 1px solid #e3dccf; }
.fk-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: #a42423; color: #fff; box-shadow: 0 4px 0 #6b1412; }
.fk-ic svg { width: 24px; height: 24px; }
.bs-tag { display: inline-block; margin-top: 16px; font: 600 .7rem/1 var(--text-font); letter-spacing: .12em; text-transform: uppercase; color: #a42423; }
.faktoren h3 { margin: 8px 0 0; font-size: 1.5rem; line-height: 1; text-transform: uppercase; color: #1b2227; }
.faktoren p { margin: 10px 0 0; color: #3c4a52; font-size: .95rem; }

/* Marktpreise */
.markt { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); gap: clamp(24px,4vw,56px); margin-top: 36px; align-items: start; }
.markt-tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; color: #dfe5e8; }
.markt-tabelle caption { caption-side: bottom; padding-top: 12px; text-align: left; font-size: .76rem; color: #8b979e; }
.markt-tabelle th { padding: 10px 8px; text-align: left; font: 700 .68rem/1 var(--text-font); letter-spacing: .12em; text-transform: uppercase; color: #8b979e; border-bottom: 1px solid rgba(255,255,255,.18); }
.markt-tabelle td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); vertical-align: top; }
.markt-tabelle td:nth-child(2) { font-weight: 700; color: #fff; }
.markt-tabelle a { color: #ef6a60; }
.markt-neu td { color: #c3ccd1; background: rgba(255,255,255,.03); }
.markt-balken { padding: 22px; border-radius: 18px; background: #172128; border: 1px solid rgba(255,255,255,.08); }
.markt-balken > p { margin: 0 0 14px; font: 600 .7rem/1 var(--text-font); letter-spacing: .14em; text-transform: uppercase; color: #8b979e; }
.mb-zeile { display: grid; grid-template-columns: 110px minmax(0,1fr); align-items: center; gap: 10px; margin-top: 12px; font-size: .86rem; color: #dfe5e8; }
.mb-zeile i { position: relative; height: 14px; border-radius: 99px; background: rgba(255,255,255,.06); }
.mb-zeile i::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--von) * 1%); width: calc((var(--bis) - var(--von)) * 1%); min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, #3ccf7f, #2e9e62); }
.mb-neu i::after { background: linear-gradient(90deg, #e5574e, #a42423); }
.mb-achse { display: flex; justify-content: space-between; margin: 10px 0 0 120px; font-size: .66rem; color: #8b979e; }

/* Steuer */
.steuer-raster { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: clamp(28px,5vw,72px); align-items: center; }
.steuer-raster a { color: #a42423; font-weight: 600; }
.steuer-karte { padding: 26px; border-radius: 18px; background: #0e1418; color: #dfe5e8; box-shadow: 0 30px 50px -30px rgba(0,0,0,.6); }
.sk-kopf { margin: 0; font: 700 1.3rem/1 var(--titel); text-transform: uppercase; color: #fff; }
.steuer-karte dl { margin: 16px 0 0; }
.steuer-karte dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.steuer-karte dt { color: #a8b3b9; font-size: .9rem; }
.steuer-karte dd { margin: 0; font-weight: 700; color: #fff; white-space: nowrap; }
.sk-ziel dd { font: 700 1.8rem/1 var(--titel); color: #3ccf7f !important; }
.sk-fuss { margin: 12px 0 0; font-size: .76rem; color: #8b979e; }

@media (max-width: 960px) {
  .k-rechner, .markt, .steuer-raster { grid-template-columns: 1fr; }
  .faktoren { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .zettel-angebot { transform: none; }
}
@media (max-width: 600px) {
  .r-regler { padding: 20px; }
  .r-skala span:nth-child(2), .r-skala span:nth-child(4) { display: none; }
  .zettel-angebot { padding: 22px 16px 20px; }
  .za-kopf img { width: 120px; }
  .za-posten { font-size: .8rem; }
  .za-posten th:nth-child(2), .za-posten td:nth-child(2) { display: none; }
  .za-posten td:last-child { white-space: normal; max-width: 9em; }
  .za-summe strong { font-size: 1.7rem; }
  .za-stempel { left: auto; right: 14px; bottom: 150px; font-size: .9rem; }
  .faktoren { grid-template-columns: 1fr; gap: 12px; }
  .faktoren li { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 14px; padding: 18px; }
  .faktoren li > :not(.fk-ic) { grid-column: 2; }
  .faktoren .fk-ic { grid-row: 1 / span 3; }
  .faktoren .bs-tag { margin-top: 0; }
  .markt-tabelle { font-size: .82rem; }
  .markt-tabelle th:nth-child(3), .markt-tabelle td:nth-child(3) { font-size: .74rem; }
  .mb-zeile { grid-template-columns: 90px minmax(0,1fr); }
  .mb-achse { margin-left: 100px; }
}
