/* ===================================================================
   NEXINSTALL – Bedarfsrechner Dachbleche
   Ergänzt shop.css, wird nur auf /dachblech-rechner/ geladen.
   =================================================================== */

.rechner-wrap{display:grid;grid-template-columns:minmax(0,380px) minmax(0,1fr);gap:28px;align-items:start;margin:26px 0 40px}
@media (max-width:900px){.rechner-wrap{grid-template-columns:minmax(0,1fr);gap:20px}}

/* ---------- Eingabekarte ---------- */
.r-form{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;
  box-shadow:0 1px 2px rgba(10,26,70,.04),0 12px 28px -22px rgba(10,26,70,.35);position:sticky;top:88px}
@media (max-width:900px){.r-form{position:static}}
.r-form h2{font-size:1.05rem;margin:0 0 4px}
.r-form .r-sub{color:#66748e;font-size:.86rem;line-height:1.5;margin:0 0 18px}

.r-gruppe{border:0;border-top:1px solid var(--line);padding:16px 0 0;margin:16px 0 0;min-width:0}
.r-gruppe:first-of-type{border-top:0;padding-top:0;margin-top:0}
.r-gruppe > legend,.r-gruppe > .r-titel{font-size:.74rem;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--blue);margin:0 0 12px;padding:0}

.r-feld{margin-bottom:13px}
.r-feld label{display:block;font-size:.83rem;font-weight:600;color:var(--deep);margin-bottom:5px}
.r-feld .r-hilfe{display:block;font-weight:400;color:#66748e;font-size:.78rem;margin-top:2px;line-height:1.45}
.r-feld input[type=number],.r-feld select{width:100%;padding:10px 12px;font:inherit;font-size:.92rem;
  color:var(--deep);background:#fff;border:1px solid var(--line);border-radius:10px;
  appearance:none;-webkit-appearance:none}
.r-feld select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b6a86' stroke-width='1.8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;background-size:11px;padding-right:34px}
.r-feld input:focus,.r-feld select:focus{outline:0;border-color:var(--blue);box-shadow:0 0 0 3px rgba(31,107,255,.15)}
.r-zwei{display:grid;grid-template-columns:1fr 1fr;gap:10px}

.r-schalter{display:flex;align-items:flex-start;gap:9px;font-size:.87rem;font-weight:600;
  color:var(--deep);cursor:pointer;line-height:1.4}
.r-schalter input{margin-top:2px;width:17px;height:17px;accent-color:var(--blue);flex:0 0 auto}

/* ---------- Ergebnis ---------- */
.r-ergebnis{min-height:120px;min-width:0}
.r-leer,.r-warn{background:#f5f8fd;border:1px dashed var(--line);border-radius:14px;
  padding:26px 22px;color:#66748e;font-size:.92rem;line-height:1.6;margin:0}
.r-warn{background:#fff6ed;border-color:#f3c898;border-style:solid;color:#7a4a12}

.r-kennz{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px}
@media (max-width:760px){.r-kennz{grid-template-columns:1fr 1fr}}
.r-kachel{background:#f2f6fd;border:1px solid var(--line);border-radius:12px;padding:12px 13px}
.r-kachel span{display:block;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;
  color:#66748e;font-weight:600;margin-bottom:3px}
.r-kachel b{display:block;font-size:.98rem;color:var(--deep);line-height:1.3}

.r-tabelle{border:1px solid var(--line);border-radius:14px;overflow-x:auto;background:#fff;-webkit-overflow-scrolling:touch}
.r-tabelle table{width:100%;min-width:480px;border-collapse:collapse;font-size:.88rem}
.r-tabelle th{background:#f5f8fd;text-align:left;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;
  color:#66748e;padding:11px 14px;border-bottom:1px solid var(--line);font-weight:700}
.r-tabelle td{padding:12px 14px;border-bottom:1px solid #eef2f9;vertical-align:top;color:var(--deep)}
.r-tabelle tbody tr:last-child td{border-bottom:0}
.r-tabelle td b{display:block;font-weight:600;line-height:1.35}
.r-tabelle .r-note{display:block;color:#66748e;font-size:.79rem;line-height:1.45;margin-top:3px}
.r-tabelle th:nth-child(2),.r-tabelle td:nth-child(2),
.r-tabelle th:nth-child(3),.r-tabelle td:nth-child(3),
.r-tabelle th:nth-child(4),.r-tabelle td:nth-child(4){text-align:right;white-space:nowrap}
.r-tabelle .r-menge{font-weight:700}
.r-tabelle .r-menge span{font-weight:400;color:#66748e;font-size:.8rem}
.r-tabelle .r-preis{color:#66748e;font-size:.82rem}
.r-tabelle .r-preis span{display:block;font-size:.72rem}
.r-tabelle .r-summe{font-weight:600}
.r-tabelle tfoot td{background:#0a2a6b;color:#fff;font-weight:700;font-size:.98rem;border:0;padding:14px}
.r-tabelle tfoot td:first-child{text-align:right}

/* Schmale Handys: Einzelpreis-Spalte weg, dann passt die Tabelle ohne Scrollen */
@media (max-width:560px){
  .r-tabelle table{min-width:0;font-size:.82rem}
  .r-tabelle th,.r-tabelle td{padding:9px 7px}
  .r-tabelle th:nth-child(3),.r-tabelle td:nth-child(3){display:none}
  .r-tabelle th:nth-child(2),.r-tabelle td:nth-child(2){white-space:normal}
  .r-tabelle .r-menge span{display:block}
  .r-tabelle tfoot td{padding:12px 8px;font-size:.9rem}
  .r-tabelle td b{font-size:.85rem}
  .r-tabelle .r-note{font-size:.75rem}
}

.r-steuer{color:#66748e;font-size:.79rem;line-height:1.6;margin:12px 2px 0}
.r-hinweise{margin:12px 0 0;padding:14px 16px 14px 32px;background:#fff6ed;border:1px solid #f3c898;
  border-radius:12px;color:#7a4a12;font-size:.83rem;line-height:1.55}
.r-hinweise li{margin-bottom:5px}
.r-hinweise li:last-child{margin-bottom:0}

.r-aktionen{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}

/* ---------- Erklärblock ---------- */
.r-regeln{background:#f5f8fd;border:1px solid var(--line);border-radius:16px;padding:22px 24px;margin:8px 0 40px}
.r-regeln h2{font-size:1rem;margin:0 0 10px}
.r-regeln dl{display:grid;grid-template-columns:auto 1fr;gap:7px 18px;margin:0;font-size:.86rem;line-height:1.55}
@media (max-width:640px){.r-regeln dl{grid-template-columns:1fr;gap:2px}}
.r-regeln dt{font-weight:700;color:var(--deep);white-space:nowrap}
.r-regeln dd{margin:0;color:#66748e}
@media (max-width:640px){.r-regeln dd{margin-bottom:9px}}

/* ---------- Druck ---------- */
@media print{
  .kopf,footer,.krumen,.r-form,.r-aktionen,.r-regeln,.korb-hinweis{display:none!important}
  .rechner-wrap{display:block}
  .r-tabelle{border-color:#999}
  .r-tabelle tfoot td{background:#fff;color:#000;border-top:2px solid #000}
  body{background:#fff}
}
