/* hausverkauf.de – gemeinsame Gestaltung aller Rechner (Rechner-Kit rk-), freigegeben vom Inhaber 04.11.2026.
   Einbinden im Rechner-Baustein mit <link rel="stylesheet" href="/rechner.css?v=N"> (wie bewertung.css), Markup: siehe Vermieten-Rechner.
   Quelle der Gestaltung: Vorbereitet\Rechner-Design\hell.css (Entwurf, Fassung 3 „mehr Kontrast“, Überschriften halbfett, etwas größer). */
.rk-wrap {
  --rk-primary: #266a83; --rk-primary-dark: #1c5167; --rk-text: #1f2937; --rk-muted: #64748b;
  --rk-field: #f4f7f9; --rk-line: #e6edf1; --rk-soft: #eef6f9; --rk-radius: 12px;
  --rk-green: #15803d; --rk-green-soft: #eef8f2; --rk-gold: #d97706;
  font-family: inherit; width: 100%; margin: 28px 0; color: var(--rk-text); background: #fff;
  border-radius: 22px; border: 1px solid var(--rk-line); box-shadow: 0 14px 40px rgba(28, 81, 103, .08);
  overflow: hidden; box-sizing: border-box;
}
.rk-wrap *, .rk-wrap *::before, .rk-wrap *::after { box-sizing: border-box; }
.rk-head { display: flex; gap: 18px; align-items: center; padding: 28px 32px 22px; border-bottom: 1px solid var(--rk-line);
  background: linear-gradient(180deg, #f7fbfc 0%, #fff 100%); }
.rk-head-icon { flex: 0 0 76px; width: 76px; height: 76px; }
.rk-head-icon svg { width: 100%; height: 100%; display: block; }
.rk-head h2 { margin: 0 0 4px !important; padding: 0 !important; font-size: 25px !important; font-weight: 800 !important; line-height: 1.2 !important;
  color: var(--rk-primary-dark) !important; border: 0 !important; background: none !important; text-transform: none !important; letter-spacing: -.3px; }
.rk-head p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--rk-muted) !important; }
.rk-body { padding: 26px 32px 24px; }
.rk-section-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--rk-primary-dark);
  margin: 30px 0 14px; letter-spacing: 0; text-transform: none; border: 0; padding: 0; }
.rk-section-title::before { content: attr(data-nr); display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--rk-soft); color: var(--rk-primary); font-size: 13px; font-weight: 800; }
.rk-section-title:not([data-nr])::before { display: none; }
.rk-section-title:first-child { margin-top: 0; }
.rk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.rk-field { display: flex; flex-direction: column; min-width: 0; }
.rk-field-full { grid-column: 1 / -1; }
.rk-field > label, .rk-radios legend { font-size: 13.5px; font-weight: 600; color: #334155; margin-bottom: 7px; }
.rk-input-row { position: relative; }
.rk-field input[type=number], .rk-field input[type=text], .rk-field select {
  width: 100%; height: 50px; padding: 0 44px 0 16px; border: 1.5px solid transparent; border-radius: var(--rk-radius); background: var(--rk-field);
  font-size: 16px; font-weight: 600; font-family: inherit; color: var(--rk-text); -webkit-appearance: none; appearance: none; -moz-appearance: textfield;
  transition: border-color .15s, background .15s, box-shadow .15s; }
.rk-field input::placeholder { color: #9aa8b4; font-weight: 400; }
.rk-field input::-webkit-outer-spin-button, .rk-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.rk-field select { cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23266a83' stroke-width='2'/></svg>");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.rk-field input:hover, .rk-field select:hover { background-color: #eef3f6; }
.rk-field input:focus, .rk-field select:focus { outline: none; background-color: #fff; border-color: var(--rk-primary); box-shadow: 0 0 0 4px rgba(38, 106, 131, .12); }
.rk-field .rk-error { border-color: #dc2626 !important; background-color: #fef2f2 !important; }
.rk-unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--rk-muted); pointer-events: none; }
.rk-hint { font-size: 12.5px; color: var(--rk-muted); margin-top: 7px; line-height: 1.45; }
.rk-hint a { color: var(--rk-primary); }
/* Auswahl als Bild-Kacheln */
.rk-radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border: 0; margin: 0; padding: 0; min-width: 0; }
.rk-radios legend { grid-column: 1 / -1; padding: 0; float: left; width: 100%; }
.rk-radios label { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; cursor: pointer;
  border: 1.5px solid var(--rk-line); border-radius: 16px; padding: 16px 12px 14px; margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35;
  background: #fff; transition: border-color .15s, box-shadow .15s, transform .08s; }
.rk-radios label:hover { border-color: #b7d2dc; box-shadow: 0 6px 16px rgba(28, 81, 103, .07); }
.rk-radios input { position: absolute; opacity: 0; pointer-events: none; }
.rk-radios .rk-kachel-icon { width: 48px; height: 48px; }
.rk-radios .rk-kachel-icon svg { width: 100%; height: 100%; display: block; }
.rk-radios small { font-weight: 400; color: var(--rk-muted); font-size: 12px; }
.rk-radios label:has(input:checked) { border-color: var(--rk-primary); background: var(--rk-soft); box-shadow: 0 0 0 3px rgba(38, 106, 131, .12); }
.rk-radios label:has(input:checked)::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--rk-primary); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.rk-radios label:has(input:focus-visible) { outline: 3px solid rgba(38, 106, 131, .35); outline-offset: 2px; }
.rk-more { margin-top: 26px; border: 1px solid var(--rk-line); border-radius: 16px; background: #fbfdfe; }
.rk-more > summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; color: var(--rk-primary-dark); font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rk-more > summary::-webkit-details-marker { display: none; }
.rk-more > summary::after { content: "+"; flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--rk-soft); color: var(--rk-primary);
  font-size: 20px; line-height: 30px; text-align: center; }
.rk-more[open] > summary::after { content: "−"; }
.rk-more > summary small { display: block; font-weight: 400; color: var(--rk-muted); font-size: 12.5px; margin-top: 2px; }
.rk-more-inner { padding: 0 20px 22px; }
.rk-more .rk-section-title { font-size: 13px; color: var(--rk-primary); text-transform: uppercase; letter-spacing: .5px; margin: 22px 0 12px; }
.rk-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.rk-btn { border: 0; border-radius: 12px; padding: 15px 26px; font-size: 16px; font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .15s, transform .08s, box-shadow .15s; }
.rk-btn-primary { background: var(--rk-primary); color: #fff; min-width: 240px; box-shadow: 0 8px 20px rgba(38, 106, 131, .25); }
.rk-btn-primary:hover { background: var(--rk-primary-dark); }
.rk-btn-primary:active { transform: translateY(1px); }
.rk-btn-secondary { background: none; color: var(--rk-muted); padding: 15px 10px; text-decoration: underline; text-underline-offset: 3px; }
.rk-btn-secondary:hover { color: var(--rk-text); }
.rk-trust { margin-top: 12px; font-size: 12.5px; color: var(--rk-muted); }
.rk-msg { margin-top: 14px; border-radius: 12px; padding: 12px 16px; font-size: 13.5px; line-height: 1.5; background: #fef2f2; border: 1px solid #fecaca; color: #7f1d1d; display: none; }
.rk-msg.rk-show { display: block; }
/* Ergebnis */
.rk-result-panel { display: none; margin-top: 30px; padding-top: 26px; border-top: 1px dashed var(--rk-line); }
.rk-result-panel.rk-visible { display: block; animation: vvFade .4s ease; }
@keyframes vvFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.rk-verdict { text-align: center; background: var(--rk-green-soft); border-radius: 18px; padding: 24px 24px 20px; }
.rk-verdict.rk-sell { background: var(--rk-soft); }
.rk-verdict-label { font-size: 12.5px; text-transform: uppercase; letter-spacing: .7px; font-weight: 700; color: var(--rk-green); margin-bottom: 6px; }
.rk-verdict.rk-sell .rk-verdict-label, .rk-verdict.rk-sell .rk-verdict-value { color: var(--rk-primary-dark); }
.rk-verdict-value { font-size: 32px; font-weight: 800; color: var(--rk-green); line-height: 1.15; margin: 0; letter-spacing: -.5px; }
.rk-verdict-sub { margin: 8px auto 0; max-width: 560px; font-size: 14.5px; color: #3c4b45; line-height: 1.5; }
.rk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.rk-card { border: 1px solid var(--rk-line); border-radius: 18px; padding: 18px 20px; background: #fff; }
.rk-card.rk-win { border-color: #a7dcbb; box-shadow: 0 10px 24px rgba(21, 128, 61, .08); }
.rk-card h3 { margin: 0 !important; padding: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--rk-text) !important; border: 0 !important; background: none !important; }
.rk-card-sub { font-size: 12px; color: var(--rk-muted); margin-top: 2px; }
.rk-card .rk-sum { font-size: 27px; font-weight: 800; color: var(--rk-primary-dark); margin: 6px 0 10px; letter-spacing: -.3px; }
.rk-card.rk-win .rk-sum { color: var(--rk-green); }
.rk-bar { height: 8px; border-radius: 8px; background: #eef2f5; overflow: hidden; margin-bottom: 14px; }
.rk-bar span { display: block; height: 100%; background: var(--rk-primary); border-radius: 8px; width: 0; transition: width .5s ease; }
.rk-card.rk-win .rk-bar span { background: var(--rk-green); }
.rk-lines { display: grid; gap: 7px; font-size: 13.5px; color: #475569; }
.rk-lines > span { display: flex; justify-content: space-between; gap: 10px; }
.rk-lines b { font-weight: 600; color: var(--rk-text); text-align: right; white-space: nowrap; }
.rk-lines .rk-total { border-top: 1px solid var(--rk-line); padding-top: 8px; margin-top: 2px; font-weight: 700; color: var(--rk-text); }
.rk-facts { display: grid; gap: 10px; margin-top: 16px; }
.rk-fact { border-radius: 14px; padding: 13px 16px; font-size: 13.5px; line-height: 1.5; background: var(--rk-soft); color: #1c5167; }
.rk-fact.rk-red { background: #fdecec; color: #7f1d1d; }
.rk-fact.rk-gold { background: #fff6e0; color: #78350f; }
.rk-fact a { color: inherit; }
.rk-flow { margin-top: 18px; border: 1px solid var(--rk-line); border-radius: 18px; padding: 18px 20px; }
.rk-flow h3 { margin: 0 0 12px !important; padding: 0 !important; font-size: 15px !important; font-weight: 700 !important; color: var(--rk-text) !important; border: 0 !important; background: none !important; }
.rk-years { margin-top: 16px; }
.rk-years > summary { cursor: pointer; font-weight: 600; color: var(--rk-primary-dark); font-size: 14px; padding: 6px 0; }
.rk-table-wrap { overflow-x: auto; margin-top: 8px; }
.rk-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 640px; }
.rk-table th, .rk-table td { padding: 7px 8px; border-bottom: 1px solid #eef2f5; text-align: right; white-space: nowrap; }
.rk-table th:first-child, .rk-table td:first-child { text-align: left; }
.rk-table th { background: #f6f9fb; font-weight: 600; color: #475569; }
.rk-table td.rk-neg { color: #b91c1c; }
.rk-not { margin-top: 16px; font-size: 13px; color: #475569; line-height: 1.5; }
.rk-not ul { margin: 6px 0 0; padding-left: 20px; }
/* Bewertungs-Kasten: hell mit kräftigem grünem Knopf */
.rk-tip { position: relative; margin-top: 18px; border-radius: 18px; padding: 24px 26px 22px 112px; overflow: hidden;
  background: linear-gradient(135deg, #f0f8fb 0%, #e6f2f6 100%); border: 1px solid #d3e7ee; color: var(--rk-text); }
.rk-tip::before { content: ""; position: absolute; left: 24px; top: 24px; width: 68px; height: 68px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><circle cx='50' cy='50' r='46' fill='%23ffffff' stroke='%23d3e7ee' stroke-width='3'/><path d='M22 44 50 22l28 22v32H22z' fill='%23fff' stroke='%231c5167' stroke-width='3.5' stroke-linejoin='round'/><rect x='44' y='58' width='12' height='18' rx='2' fill='%231c5167'/><circle cx='70' cy='68' r='15' fill='%23f6b73c' stroke='%23fff' stroke-width='3'/><path d='m63 68 5 5 9-10' fill='none' stroke='%231c5167' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.rk-tip-badge { display: inline-block; background: #facc15; color: #1c5167; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 10px; }
.rk-tip h3 { margin: 0 0 8px !important; padding: 0 !important; font-size: 20px !important; font-weight: 800 !important; color: var(--rk-primary-dark) !important;
  line-height: 1.25 !important; border: 0 !important; background: none !important; }
.rk-tip p { margin: 0 0 14px !important; font-size: 14px !important; line-height: 1.55 !important; color: #334155 !important; }
.rk-tip-cta { display: inline-flex; align-items: center; gap: 10px; background: #15803d; color: #fff !important; padding: 14px 24px; border-radius: 12px;
  font-size: 15.5px; font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 20px rgba(21, 128, 61, .28); }
.rk-tip-cta:hover { background: #0f6b32; }
.rk-tip-cta svg { width: 18px; height: 18px; flex-shrink: 0; }
.rk-tip-small { display: block; margin-top: 10px; font-size: 12px; color: var(--rk-muted); }
.rk-stern { font-size: .42em; color: var(--rk-gold) !important; vertical-align: super; text-decoration: none !important; font-weight: 700; padding: 7px 8px; margin: -7px -8px; cursor: help; }
.rk-stern:focus-visible { outline: 2px solid var(--rk-gold); border-radius: 4px; }
.rk-fussnote { display: flex; gap: 8px; margin: 12px 0 0; padding: 11px 15px; font-size: 12.5px; line-height: 1.5; color: #475569;
  background: #fff; border: 1.5px solid var(--rk-line); border-radius: 14px; transition: border-color .3s, background .3s; }
.rk-fussnote.rk-blink { border-color: var(--rk-gold); background: #fff6ed; }
.rk-fussnote-stern { color: var(--rk-gold); font-weight: 700; }
.rk-recht { margin-top: 18px; border: 1px solid var(--rk-line); border-radius: 12px; }
.rk-recht > summary { cursor: pointer; padding: 10px 14px; font-size: 12.5px; color: var(--rk-muted); }
.rk-recht > div { padding: 0 14px 14px; font-size: 12px; line-height: 1.55; color: var(--rk-muted); }
.rk-recht p { margin: 6px 0 !important; font-size: 12px !important; }
.rk-disclaimer { margin: 26px -32px -24px; padding: 16px 32px; background: #f7fafb; border-top: 1px solid var(--rk-line); font-size: 12.5px;
  color: var(--rk-muted); line-height: 1.55; text-align: center; }
.rk-disclaimer a { color: var(--rk-primary); font-weight: 600; }
@media (max-width: 580px) {
  .rk-wrap { border-radius: 16px; }
  .rk-head { flex-direction: column; align-items: flex-start; padding: 20px 18px 18px; gap: 10px; }
  .rk-head-icon { flex-basis: auto; width: 56px; height: 56px; }
  .rk-head h2 { font-size: 20px !important; }
  .rk-body { padding: 20px 16px 20px; }
  .rk-grid, .rk-cards { grid-template-columns: 1fr; gap: 14px; }
  .rk-radios { grid-template-columns: 1fr; }
  .rk-radios label { flex-direction: row; text-align: left; padding: 12px 14px; }
  .rk-radios .rk-kachel-icon { flex: 0 0 40px; width: 40px; height: 40px; }
  .rk-more-inner { padding: 0 14px 18px; }
  .rk-verdict-value { font-size: 25px; }
  .rk-tip { padding: 92px 18px 20px; }
  .rk-tip::before { left: 18px; top: 18px; width: 58px; height: 58px; }
  .rk-tip-cta { width: 100%; justify-content: center; }
  .rk-btn-primary { min-width: 100%; }
  .rk-disclaimer { margin: 22px -16px -20px; padding: 14px 16px; }
}

/* ===== Fassung 3 „etwas mehr Kontrast“ (Inhaber 04.11.2026; Fassung 2 „bunter“ war zu bunt) =====
   Wenige Farben (Dunkelblau, Weiß, Grün für Ergebnis und Bewertung), dafür klare Kanten und dunklere Schrift. */
.rk-wrap { --rk-text: #0f172a; --rk-muted: #475569; --rk-line: #cbd5e1; border-color: #cbd5e1; box-shadow: 0 10px 30px rgba(15, 23, 42, .10); }
.rk-head { background: #1c5167; border-bottom: 0; }
.rk-head-icon { background: #fff; border-radius: 50%; padding: 3px; }
.rk-head h2 { color: #fff !important; }
.rk-head p { color: #dbe9ef !important; }
.rk-section-title { color: #0f172a; }
.rk-section-title::before { background: #1c5167; color: #fff; }
.rk-field > label, .rk-radios legend { color: #0f172a; }
.rk-field input[type=number], .rk-field input[type=text], .rk-field select { background-color: #fff; border: 1.5px solid #94a3b8; }
.rk-field input:hover, .rk-field select:hover { background-color: #fff; border-color: #64748b; }
.rk-field input:focus, .rk-field select:focus { border-color: #1c5167; box-shadow: 0 0 0 3px rgba(28, 81, 103, .2); }
.rk-field input::placeholder { color: #94a3b8; }
.rk-hint { color: #475569; }
.rk-radios label { border: 1.5px solid #94a3b8; }
.rk-radios label:hover { border-color: #1c5167; }
.rk-radios label:has(input:checked) { border: 2px solid #1c5167; background: #e8f1f5; box-shadow: none; }
.rk-radios label:has(input:checked)::after { background: #1c5167; }
.rk-more { background: #fff; border-color: #cbd5e1; }
.rk-more > summary::after { background: #1c5167; color: #fff; }
.rk-more .rk-section-title { color: #1c5167; }
.rk-btn-primary { background: #1c5167; box-shadow: none; }
.rk-btn-primary:hover { background: #133a4b; }
.rk-btn-secondary { color: #334155; }
.rk-result-panel { border-top: 2px solid #e2e8f0; }
.rk-verdict { background: #fff; border: 2px solid #15803d; }
.rk-verdict.rk-sell { background: #fff; border-color: #1c5167; }
.rk-verdict-sub { color: #334155; }
.rk-card { border: 1.5px solid #cbd5e1; }
.rk-card.rk-win { border: 2px solid #15803d; box-shadow: none; }
.rk-lines { color: #334155; }
.rk-fact { background: #f1f5f9; color: #0f172a; border-left: 4px solid #1c5167; }
.rk-fact.rk-gold { background: #fffbeb; color: #78350f; border-left-color: #d97706; }
.rk-fact.rk-red { background: #fef2f2; color: #7f1d1d; border-left-color: #dc2626; }
.rk-flow, .rk-fussnote, .rk-recht { border-color: #cbd5e1; }
/* Bewertung: dunkelblau mit kräftig grünem Knopf */
.rk-tip { background: #1c5167; border: 0; color: #fff; }
.rk-tip::before { filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .25)); }
.rk-tip h3 { color: #fff !important; }
.rk-tip p { color: #dbe9ef !important; }
.rk-tip p strong { color: #fff; }
.rk-tip-small { color: #b6cfd9; }
.rk-tip-cta { background: #16a34a; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.rk-tip-cta:hover { background: #15803d; }
.rk-disclaimer { background: #f1f5f9; border-top: 1px solid #cbd5e1; color: #334155; }
.rk-disclaimer a { color: #1c5167; }
/* Überschriften weniger fett (Inhaber 04.11.2026: „überschrift ist zu fett“) */
.rk-head h2 { font-weight: 600 !important; letter-spacing: 0; }
.rk-tip h3 { font-weight: 600 !important; }
.rk-verdict-value { font-weight: 700; }
/* Dafür etwas größer (Inhaber 04.11.2026: „ein kleines bisschen größer dafür“) */
.rk-head h2 { font-size: 28px !important; }
.rk-tip h3 { font-size: 22px !important; }
.rk-verdict-value { font-size: 34px; }
@media (max-width: 580px) {
  .rk-head h2 { font-size: 22px !important; }
  .rk-tip h3 { font-size: 20px !important; }
  .rk-verdict-value { font-size: 26px; }
}
/* Schutz gegen die Seitengestaltung (Bootstrap): Legende ohne Linie und Abstand */
.rk-radios legend { border: 0; margin: 0 0 7px; font-size: 13.5px; line-height: 1.4; }
/* Ergänzungen Welle 1 (v=2, 04.11.2026): Textfelder mit deutscher Zahleneingabe (oben), Unterdeckung, Rechenbeispiel und Liste im Bewertungskasten */
.rk-verdict.rk-neg { border-color: #dc2626; background: #fef2f2; }
.rk-verdict.rk-neg .rk-verdict-label, .rk-verdict.rk-neg .rk-verdict-value { color: #b91c1c; }
.rk-tip-calc { margin: 0 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; line-height: 1.5; color: #dbe9ef; }
.rk-tip-calc strong { display: block; font-size: 18px; color: #fff; }
.rk-tip-points { margin: 0 0 16px !important; padding: 0 !important; list-style: none !important; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13.5px; color: #dbe9ef; }
.rk-wrap .rk-tip-points li { position: relative; padding: 0 0 0 22px; margin: 0 !important; line-height: 1.45; border: 0; }
.rk-wrap .rk-tip-points li::before { content: "✓"; font-family: inherit; position: absolute; left: 0; top: 0; margin: 0; width: auto; color: #4ade80; font-weight: 700; }
.rk-fact:empty { display: none; }
.rk-lines em { font-style: normal; }
.rk-lines em span { color: var(--rk-muted); }
@media (max-width: 580px) { .rk-tip-points { grid-template-columns: 1fr; } }
