#interestForm {
  display: block;
  background: #f9f9fa;
  padding: 2em;
  border-radius: 5px;
  transition: all .5s linear;
  font-size: 1.3em;
}

#interestForm * {
  transition: all .5s linear;
}

#interestForm .mandatory {
  color: red;
}

#interestForm label {
  cursor: pointer;
  display: inline-flex;
    align-items: center; /* Zentriert Icon und Text vertikal */
    gap: 5px;            /* Ersetzt margin-left am Icon */  
}

#interestForm input {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

#interestForm input,
#interestForm input:focus {
  font: inherit;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 5px 10px 5px 10px;
  margin: 0 0 1em 0;
  min-height: 40px;
  box-sizing: border-box;
}

#interestForm input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

#interestForm ol,
#interestForm ol li {
  list-style: none;
  margin: 0;
  padding: 0;
}

#interestForm ol li {
  display: block;
  margin-bottom: 1em;
}

#interestForm select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  border: none;
}

#interestForm select {
  width: 100%;
  height: 40px;
  padding-left: 10px;
  color: #666;
  border-radius: 4px;
  border: 1px solid #aaa;
  outline: none;
  cursor: pointer;
  background: #fff;
}

#result {
    display: none;
}

#result.response {
    margin-top: 2em;
    display: block;
}

#error {
    margin-top: 2em;
}

#error {
  background: #fff1f1;
  padding: 1em;
}

.twocol,
.dates {
  display: flex;
}

.col,
.date {
  width: auto;
  flex-grow: 1;
  box-sizing: border-box;
  flex: 1 1 auto;
}

.firstcol,
.startdate {
  margin: 0 1em 0 0;
}

@media (max-width: 520px) {
  .twocol,
  .dates {
    display: flex;
    flex-direction: column;
  }
  .firstcol,
  .startdate {
    margin: 0;
  }  
}

#interestForm .ctabuttonCalc {
  font: inherit;
  background: #1a96cc;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  padding: 12px 25px;
  margin: 1em auto;
  text-align: center;
  box-shadow: none;
  text-transform: none;
  display: block;
}

#interestForm .ctabuttonCalc:hover {
  background: #1076a2;
}

.secondary {
    background: #1a96cc;
  color: #fff;
}

.secondary:hover {
  background: #1076a2;
}

.innerRound {display: inline; max-width:45px; border: 0; padding: 0;}

.hidden {display: none;}

button.disabled,
button.disabled:hover {
  border-color: #666;
  color: #666;
  background: #fff;
  cursor:wait;
}

#ic-chart-wrapper {margin: 0 0 30px 0;}
#interestChart {width: 100%; }

#result table td {
  text-align: left;
}

#result table td.first {
  width: 30%;
  background: #f0f0f0;
}

#interestForm .ic-toggle-group {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 6px;
    margin-top: 5px;
}

#interestForm .ic-toggle-group input[type="radio"] {
    display: none;
}

#interestForm .ic-toggle-group label {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
    transition: all 0.2s;
}

#interestForm .ic-toggle-group input[type="radio"]:checked + label {
    background: #0073aa;
    color: white;
}


.ic-modal-form .ic-toggle-group {
    display: flex;
    background: #eee;
    padding: 4px;
    border-radius: 6px;
    margin-top: 5px;
}

.ic-modal-form .ic-toggle-group input[type="radio"] {
    display: none;
}

.ic-modal-form .ic-toggle-group label {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 4px;
    margin: 0;
    font-weight: normal;
    transition: all 0.2s;
}

.ic-modal-form .ic-toggle-group input[type="radio"]:checked + label {
    background: #0073aa;
    color: white;
}

.printresult {
  text-align: center;
}
#printResultBtn {text-transform: none; font-weight: normal; font-size: 1.3em;}
.print-only {
    display: none;
}

.ic-action-area {
  text-align: center;
}

#calculator #landlordFeatureBtn {
  margin: 30px auto;
  text-transform: none;
  font-size: 1.2em;
}

#landlord-feedback-box {
  text-align: left;
  padding: 20px;
  border: 1px solid #ccc;
  margin: 30px auto;
}

 .ic-option {
  margin-bottom: 20px;
 }

 .zins-disclaimer {
  margin-top: 20px;
  display: block;
  font-size: .9em;
 }

 .info-section {
    font-size: 1.2em;
 }

@media print {
    .info-section,
    div#calculator-wrapper div,
    form#interestForm {display: none;}
    #ic-result-container, #ic-result-container *,
    form#interestForm, form#interestForm *, #interestResult, #interestResult * { display: none; }
    article.section {margin: 0;padding: 0;}

    body .main .container {
      margin: 0;
      width: 100%;
      padding: 1cm;
    }

    .section {padding: 0;}
    #interestForm { background: #fff;}
    body #interestForm div. {display: inline;}
    body #interestForm input,
    body #interestForm select {display: inline-block; border: 0; padding: 0; width: auto; appearance: none;}
    #calculator br {display: inline;}
    #interestChart {width: 100%;}
    body #interestForm label {display: inline-block; margin-right: 10px;}

    .wpcmsdev-alert {
        page-break-inside: avoid;
    }

    thead { display: table-header-group; }

    article.section p:first-child,
    .header,
    #primary,
    .mandatory,
    .ic-field,
    .ctabuttonCalc,
    .no-print { display: none; }
    .print-only {
        display: block !important;
    }
}

#zins-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.zins-modal-card {
    background: #fff; padding: 30px; border-radius: 8px; max-width: 450px; width: 100%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); text-align: center; font-family: sans-serif;
    max-height: calc(100vh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #zins-modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .zins-modal-card {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        max-height: 92dvh;
        max-height: 92vh;
        padding: 44px 20px 36px;
        overscroll-behavior: contain;
        position: relative;
    }
    .zins-modal-card::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }
}
.zins-modal-card h3 { margin-top: 0; color: #23282d; }
.zins-modal-options { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.zins-btn-premium { 
    background: #0073aa; color: white; border: none; padding: 12px; 
    border-radius: 4px; cursor: pointer; font-weight: bold; font-size: 16px;
}
.zins-btn-premium:hover { background: #005177; }
.zins-btn-free { 
    background: none; color: #666; border: none; padding: 8px; 
    cursor: pointer; text-decoration: underline; font-size: 13px;
}

.loader,
.loader:before,
.loader:after {
  border-radius: 50%;
  width: 2.5em;
  height: 2.5em;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  -webkit-animation: load7 1.8s infinite ease-in-out;
  animation: load7 1.8s infinite ease-in-out;
}
.loader {
  color: #666;
  font-size: 10px;
  margin: 80px auto;
  position: relative;
  text-indent: -9999em;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
  -webkit-animation-delay: -0.16s;
  animation-delay: -0.16s;
}
.loader:before,
.loader:after {
  content: '';
  position: absolute;
  top: 0;
}
.loader:before {
  left: -3.5em;
  -webkit-animation-delay: -0.32s;
  animation-delay: -0.32s;
}
.loader:after {
  left: 3.5em;
}

.ic-spinner {
  border:4px solid #f3f3f3; border-top:4px solid #0073aa; border-radius:50%; width:40px; height:40px; animation:spin 1s linear infinite; margin:0 auto 20px;
}

.button.secondary {
  text-transform: none;
  font-size: .8em;
  border-radius: 6px;
  padding: 5px 10px;
}

#deductions-section .deduction-item input,
#deductions-section .deduction-item button {
  font: inherit;
  padding: 5px 10px 5px 10px;
  margin: 0;
}

#deductions-section .deduction-item button.remove-deduction {
  margin: 0; padding: 0 10px;
  height: auto;
  max-height: 40px;
background:red; 
color:#fff; border:none; cursor:pointer;
font-weight: bold;
}

#calculationShell {
    padding: 2.5em;
}

/* Container für alle Abzüge */
#deductions-list {
    margin-top: 15px;
    width: 100%;
}

/* Einzelne Abzugs-Zeile */
.deduction-item {
    display: flex;
    flex-wrap: wrap; /* Erlaubt Umbruch auf Mobilgeräten */
    gap: 10px;
    align-items: center;
    background: #fff; 
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #eeeeef;
    margin-bottom: 12px;
}

/* Styling der Formular-Elemente in der Zeile */
.deduction-item select,
.deduction-item input {
    height: 45px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 0.95em;
}

/* Spezifische Breiten für die Optik wie im Screenshot */
.deduction-item select {
    flex: 1.2; /* Kategorie-Feld */
    min-width: 150px;
}

.deduction-item input[name="deduction_label[]"] {
    flex: 2; /* Detail-Feld bekommt den meisten Platz */
    min-width: 200px;
}

.deduction-item .deduction-amount-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 0.8;
    min-width: 100px;
}

.deduction-item .deduction-val {
    width: 100%;
    max-height: 40px;
}

/* Der Löschen-Button */
.remove-deduction {
    background: #fff;
    border: 1px solid #ff4444 !important;
    color: #ff4444;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    line-height: 1;
    transition: all 0.2s;
}

.remove-deduction:hover {
    background: #ff4444;
    color: #fff;
}

/* Mobile Optimierung */
@media (max-width: 600px) {
    .deduction-item {
        flex-direction: column;
        align-items: stretch;
    }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

@-webkit-keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes load7 {
  0%,
  80%,
  100% {
    box-shadow: 0 2.5em 0 -1.3em;
  }
  40% {
    box-shadow: 0 2.5em 0 0;
  }
}
@keyframes icHighlight {
    0%   { background: transparent; }
    25%  { background: rgba(26, 150, 204, 0.1); }
    75%  { background: rgba(26, 150, 204, 0.1); }
    100% { background: transparent; }
}

#deductions-section.ic-highlight {
    animation: icHighlight 1.8s ease-in-out;
    border-radius: 4px;
}

.deduction-item--nk-highlight {
    border: 2px solid #e67e22 !important;
    background: #fff9f0 !important;
}

@keyframes nkPulse {
    0%   { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.4); }
    60%  { box-shadow: 0 0 0 6px rgba(230, 126, 34, 0); }
    100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.deduction-item--nk-highlight {
    animation: nkPulse 1.8s ease-out;
}

.ic-final-settlement-hint {
    background: #fff9f0;
    border-left: 4px solid #e67e22;
    border-radius: 0 4px 4px 0;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.88em;
    color: #555;
    line-height: 1.5;
}

.ic-final-settlement-hint i {
    color: #e67e22;
    margin-right: 5px;
}

div.hint {
    display: inline;
    margin-left: 8px;
    vertical-align: middle;
    position: relative;
    top: -3px;
}

/* Das "i" Icon */
.info-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background-color: #c3c3c3;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    font-style: normal;
    font-weight: bold;
    user-select: none;
}

/* Der Infotext, der sich nach unten schiebt */
span.hint-text {
    display: none; /* Standardmäßig aus */
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 12px;
    background-color: #f6f7f7; /* Leichtes Grau für Kontrast */
    border-left: 4px solid #0073aa;
    color: #333;
    font-size: 13px;
    line-height: 1.5;
    width: 100%; /* Nimmt die volle Breite des Formular-Containers ein */
    box-sizing: border-box;
    clear: both; /* Verhindert Layout-Probleme bei Floats */
}

.ic-buy-box {
    margin: 30px 0;
    padding: 0.5em 2.5em 2.5em!important;
}

.buy-box-container {
    display: flex;
    flex-wrap: wrap;
    align-items: left;
    gap: 20px;
}

.buy-box-content {
    gap: 20px;
    flex: 1;
}

.buy-box-text i:before,
.buy-box-text i {
  color: green;
}

div.payment-note {text-align: center;}

.payment-trust-text {
    color: #555;
    margin: 8px 0 4px;
}
.payment-trust-text .fa-lock {
    color: #46b450;
    margin-right: 3px;
}

.buy-box-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #555;
    font-size: 1.2em;
}

.btn-text { font-weight: bold;}

/* Legal toggle (web) */
.ic-legal-toggle-wrapper {
    margin-top: 20px;
    text-align: center;
}

button.ic-legal-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
    text-transform: none;
    color: #000;
    box-shadow: none!important;
}

button.ic-legal-toggle:focus,
button.ic-legal-toggle:hover {
    background: none!important;
    color: #000!important;
    box-shadow: none!important;
    padding: 0;
}

.ic-legal-arrow {
    display: inline-block;
    transition: transform 0.2s;
}

.ic-legal-content {
    display: none;
    margin: 8px auto 0;
    max-width: 680px;
    line-height: 1.6;
    padding: 8px 16px;
}

/* Trust strip */
.ic-trust-container {
    margin-top: 24px;
}

.ic-trust-logos {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.ic-trust-logos span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f4f6f9;
    border: 1px solid #e2e6ea;
    border-radius: 20px;
    padding: 5px 14px;
    color: #555;
}

.ic-privacy-note {
    text-align: center;
    padding-top: 8px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.ic-privacy-note a {
    text-decoration: underline;
}

body.ic-modal-open {
    overflow: hidden;
}

/* Das Modal-Hintergrund (Overlay) */
.ic-modal {
    display: none; /* Standardmäßig ausgeblendet */
    position: fixed;
    z-index: 9999; /* Über allen anderen Elementen */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Abdunkelung des Hintergrunds */
    backdrop-filter: blur(3px); /* Moderner Blur-Effekt */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 5vh 16px;
    box-sizing: border-box;
}

.ic-modal button {text-transform: none;}

/* Der Modal-Container */
.ic-modal-content {
    background-color: #ffffff;
    margin: 0 auto;
    padding: 30px;
    border-radius: 12px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: icModalSlideIn 0.3s ease-out;
    box-sizing: border-box;
    font-size: 1.2em;
}

/* Animation für das Einblenden */
@keyframes icModalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile: Bottom Sheet */
@media (max-width: 600px) {
    .ic-modal {
        padding: 0;
        overflow-y: hidden;
        align-items: flex-end;
    }
    .ic-modal-content {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 92dvh;
        max-height: 92vh; /* fallback */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        border-radius: 16px 16px 0 0;
        margin: 0;
        padding: 36px 20px 32px;
        animation: icModalSlideUp 0.3s ease-out;
    }
    .ic-modal-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0 auto 20px;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@keyframes icModalSlideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Schließen-Button (X) */
.close-modal {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal:hover {
    color: #333;
}

/* Formular-Styling innerhalb des Modals */
.ic-modal-form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 600;
}

.ic-modal-form input,
.ic-modal-form select {
    width: 100%;
    padding: 10px!important;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1em;
}

/* Hint / error text shared across all assistants */
.ic-hint {
    font-size: 1em;
    color: #888;
    line-height: 1.4;
}

.ic-error {
    font-size: 1em;
    color: #c00;
    margin: 8px 0 0;
}

/* Die Ergebnis-Box */
#nk-result-box {
    margin: 20px 0;
    padding: 15px;
    background: #f0f7ff;
    border-left: 5px solid #0077ae; /* Farbe passend zum Chart-Blau */
    border-radius: 4px;
    font-size: 1em;
}

#nk-suggested-val {
    color: #0077ae;
    font-size: 1.25em;
}

.assistant {
  font: inherit;
}

.nk-time-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.nk-time-row > div {
    flex: 1;
}

.nk-sublabel {
    font-size: 0.85em;
    color: #555;
    margin-bottom: 2px;
    display: block;
}

.nk-kaution-hint {
    margin-top: 6px;
    font-size: 0.85em;
    color: #2a6496;
}

.nk-kaution-warn {
    margin-top: 6px;
    font-size: 0.85em;
    color: #b45309;
    font-weight: 600;
}

.nk-cap-note {
    font-size: 0.85em;
    color: #666;
}

/* ── Schlüsselverlust-Assistent ─────────────────────────────────────────────── */

.kl-step-title {
    font-weight: bold;
    margin: 0 0 12px;
}

/* Step navigation rows */
.kl-step-nav {
    display: flex;
    margin-top: 16px;
}
.kl-step-nav--right  { justify-content: flex-end; }
.kl-step-nav--split  { justify-content: space-between; }

/* Step 1 – checkbox card list */
.kl-key-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 4px 0 4px;
}

.kl-key-row {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
    transition: background 0.15s, border-color 0.15s;
    cursor: pointer;
    user-select: none;
}

.kl-key-row:has(.kl-key-cb:checked) {
    background: #eef5fb;
    border-color: #0073aa;
}

.kl-key-label {
    display: flex !important;
    align-items: center;
    flex: 1;
    gap: 10px;
    margin: 0 !important;
    font-weight: normal !important;
    cursor: pointer;
}

/* Hide native checkbox */
.kl-key-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom checkbox visual */
.kl-check-box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background: #fff;
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}

.kl-key-cb:checked ~ .kl-check-box {
    background: #0073aa;
    border-color: #0073aa;
}

.kl-key-cb:checked ~ .kl-check-box::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.kl-key-name {
    color: #333;
    line-height: 1.3;
}

.kl-key-sub {
    color: #999;
    font-size: 1em;
}

/* Count stepper */
.kl-count-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    margin-left: 8px;
}

.kl-count-wrap input[type="number"] {
    width: 52px !important;
    padding: 5px 6px !important;
    text-align: center;
    font-size: 1em !important;
}

.kl-count-unit {
    font-size: 1em;
    color: #888;
}

/* Steps 2 & 3 – radio choice cards */
.kl-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 4px 0 4px;
}

.kl-choice {
    display: flex !important;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e2e2e2;
    border-radius: 8px;
    background: #fafafa;
    cursor: pointer;
    margin: 0 !important;
    font-weight: normal !important;
    line-height: 1.4;
    transition: background 0.15s, border-color 0.15s;
    user-select: none;
}

.kl-choice:has(input:checked) {
    background: #eef5fb;
    border-color: #0073aa;
}

/* Hide native radio */
.kl-choice input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Custom radio visual */
.kl-choice-dot {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: #fff;
    position: relative;
    margin-top: 1px;
    transition: border-color 0.15s;
}

.kl-choice input:checked ~ .kl-choice-dot {
    border-color: #0073aa;
}

.kl-choice input:checked ~ .kl-choice-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background: #0073aa;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Button-Anpassung */
#nk-apply-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-transform: none;
}

.ic-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.ic-switch input { opacity: 0; width: 0; height: 0; }

.ic-slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s; border-radius: 20px;
}

.ic-slider:before {
  position: absolute; content: "";
  height: 14px; width: 14px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .4s; border-radius: 50%;
}

input:checked + .ic-slider { background-color: #0073aa; }
input:checked + .ic-slider:before { transform: translateX(20px); }

.ic-switch-lg {
  width: 56px;
  height: 28px;
}
.ic-switch-lg .ic-slider { border-radius: 28px; }
.ic-switch-lg .ic-slider:before {
  height: 20px; width: 20px;
  left: 4px; bottom: 4px;
}
.ic-switch-lg input:checked + .ic-slider:before { transform: translateX(28px); }

.ic-row-summary {
    background-color: #ffffff;
    font-weight: 500;
}

.ic-status-bar {
    padding: 4px 0;
    text-align: left;
    font-size: 0.8em;
    color: #666;
    margin-top: 4px;
}

.ic-status-text strong {
    font-weight: 700;
}
.ic-datenstand-link {
    color: inherit;
    text-decoration: underline dotted;
    cursor: pointer;
}
.ic-datenstand-link:hover {
    color: #1a96cc;
    text-decoration: underline;
}
.ic-exit-bb-link {
    color: #bbb;
    text-decoration: none;
}
.ic-exit-bb-link:hover {
    color: #999;
    text-decoration: underline;
}

#ic-exit-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
#ic-exit-content {
    background: #fff; padding: 40px; border-radius: 8px; max-width: 600px; width: 100%;
    text-align: center; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: calc(100vh - 32px); overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}
#ic-exit-close {
    position: absolute; top: 10px; right: 20px; font-size: 30px; cursor: pointer; color: #aaa;
}

@media (max-width: 600px) {
    #ic-exit-overlay {
        align-items: flex-end;
        padding: 0;
    }
    #ic-exit-content {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        max-height: 92dvh;
        max-height: 92vh;
        padding: 44px 20px 40px;
        overscroll-behavior: contain;
    }
    #ic-exit-content::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
    }
}
#ic-exit-icon { font-size: 30px; margin-bottom: 8px; }
#ic-exit-content {font-size: 1.3em;}
#ic-exit-content h2 { color: #1a96cc; margin-top: 0; line-height: normal; }
#ic-exit-content p { color: #444; margin: 0 0 10px; }
.ic-exit-legal { color: #bbb !important; margin-top: 14px !important; }
#ic-exit-email {
    font: inherit;
    width: 100%; padding: 12px; margin: 20px 0 12px; border: 1px solid #ddd; border-radius: 4px;
     box-sizing: border-box;
}
#ic-exit-submit {
    width: 100%; padding: 15px; background: #46b450; color: #fff; border: none;
    border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 16px;
    transition: background 0.15s;
}
#ic-exit-submit:hover { background: #3da047; }
#ic-exit-submit:disabled { background: #a0d4a5; cursor: not-allowed; }
.ic-exit-success { color: #46b450; font-weight: bold; margin: 12px 0 0; }
.ic-exit-error { color: #cc1a1a; margin: 8px 0 0; }

.paymentTrust img {
  display: inline-block;
}

/* ============================================================
   A/B Variant B — Landlord multi-step form
   ============================================================ */

/* Step navigation bar */
.ic-steps-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 16px;
    padding: 12px 20px 4px;
    max-width: 400px;
}

.ic-snav-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
}

.ic-snav-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    border: 2px solid #ccc;
    background: #fff;
    color: #aaa;
}

.ic-snav-label {
    font-size: 1em;
    color: #aaa;
    transition: color 0.3s;
    white-space: nowrap;
}

.ic-snav-connector {
    flex: 1;
    height: 2px;
    background: #ddd;
    margin: 0 8px;
    margin-bottom: 22px;
    transition: background 0.3s;
}

/* Active step */
.ic-snav-step.active .ic-snav-num {
    background: #1a96cc;
    border-color: #1a96cc;
    color: #fff;
}
.ic-snav-step.active .ic-snav-label { color: #1a96cc; font-weight: bold; }

/* Unlocked (completed) step */
.ic-snav-step.unlocked .ic-snav-num {
    background: #46b450;
    border-color: #46b450;
    color: #fff;
}
.ic-snav-step.unlocked .ic-snav-label { color: #46b450; }
.ic-snav-step.unlocked ~ .ic-snav-connector { background: #46b450; }

/* Form cards */
.ic-form-card {
    background: #f9f9fa;
    border-radius: 6px;
    padding: 1.6em 2em;
    margin-bottom: 16px;
}

.ic-form-card.ic-step-locked {
    opacity: 0.85;
}

.ic-card-heading {
    margin: 0 0 0.6em;
    font-size: 1.15em;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ic-step-badge {
    font-size: 0.65em;
    font-weight: normal;
    background: #e8f4fd;
    color: #1a96cc;
    border: 1px solid #b8d9ef;
    border-radius: 20px;
    padding: 2px 10px;
    vertical-align: middle;
}

.ic-step-subtitle {
    font-size: 0.85em;
    color: #666;
    margin: -4px 0 16px;
}

/* CTA button inside .ic-form-card (variant B) */
.ic-variant-b .ctabuttonCalc,
#interestFormB .ctabuttonCalc {
    font: inherit;
    background: #1a96cc;
    color: #fff;
    border-radius: 4px;
    font-weight: bold;
    padding: 12px 25px;
    margin: 1em auto;
    text-align: center;
    box-shadow: none;
    text-transform: none;
    display: block;
    width: 100%;
    cursor: pointer;
    border: none;
}

.ic-variant-b .ctabuttonCalc:hover,
#interestFormB .ctabuttonCalc:hover {
    background: #1076a2;
}

/* Recalculating indicator on result */
#ic-result-container.ic-recalculating {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s;
}

.select {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Deposit field inline warning */
.ic-deposit-warning {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 7px 10px;
    background: #fff8e1;
    border-left: 3px solid #f0a500;
    border-radius: 3px;
    font-size: 0.88em;
    color: #6b4c00;
}

.ic-estimate-hint {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #e8f4fd;
    border-left: 3px solid #1a96cc;
    border-radius: 3px;
    font-size: 0.88em;
    color: #0d5275;
    line-height: 1.45;
}

/* ============================================================
   Payment success panel
   ============================================================ */

.ic-payment-success {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    margin: 24px 0;
    background: #fff;
}

.ic-ps-header {
    background: linear-gradient(135deg, #34c262, #27ae60);
    padding: 28px 24px 22px;
    text-align: center;
    color: #fff;
}

.ic-ps-icon {
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.6em;
}

.ic-ps-title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px;
    line-height: 1.2;
}

.ic-ps-subtitle {
    opacity: 0.9;
    font-size: 0.9em;
    margin: 0;
}

.ic-ps-body {
    padding: 24px;
}

/* Download CTA */
.ic-ps-download {
    text-align: center;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef1f4;
    margin-bottom: 20px;
}

.ic-pdf-cta {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: #1a96cc;
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 6px;
    text-decoration: none !important;
    box-shadow: 0 3px 14px rgba(26,150,204,0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
    margin-bottom: 14px;
}

.ic-pdf-cta:hover {
    background: #1076a2;
    box-shadow: 0 5px 18px rgba(26,150,204,0.4);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}

.ic-pdf-cta--secondary {
    background: #2e7d32;
    box-shadow: 0 3px 14px rgba(46,125,50,0.25);
}
.ic-pdf-cta--secondary:hover {
    background: #1b5e20;
    box-shadow: 0 5px 18px rgba(46,125,50,0.35);
}

.ic-pdf-cta-icon {
    font-size: 1.8em;
    margin-bottom: 4px;
}

.ic-pdf-cta-label {
    font-size: 1.05em;
    font-weight: 700;
}

.ic-pdf-cta-sub {
    font-size: 0.78em;
    opacity: 0.85;
}

.ic-invoice-link {
    display: block;
    font-size: 0.85em;
    color: #888 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.ic-invoice-link:hover {
    color: #1a96cc !important;
    text-decoration: underline !important;
}

/* Magic link section */
.ic-ps-magic-link {
    background: #f7f9fb;
    border: 1px solid #e4eaf0;
    border-radius: 6px;
    padding: 18px;
    margin-top: 24px;
    font-size: 1.2em;
}

.ic-ps-ml-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1a96cc;
    margin: 0 0 8px;
    font-size: 0.9em;
}

.ic-ps-ml-desc {
    font-size: 0.83em;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.ic-magic-link-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ic-magic-link-row input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    font-size: 0.83em;
    background: #fff;
    border: 1px solid #ccd7e0;
    border-radius: 4px;
    color: #444;
    min-width: 0;
}

.ic-copy-btn {
    white-space: nowrap;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid #1a96cc;
    color: #1a96cc;
    padding: 8px 14px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.83em;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.ic-copy-btn:hover,
.ic-copy-btn:focus {
    background: #1a96cc;
    color: #fff;
    outline: none;
}

@media (max-width: 520px) {
    .ic-magic-link-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ic-pdf-cta {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Return-visit notice */
.ic-magic-link-return {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f0f7ff;
    border-left: 4px solid #1a96cc;
    border-radius: 0 6px 6px 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.ic-return-icon {
    font-size: 1.4em;
    color: #1a96cc;
    flex-shrink: 0;
    line-height: 1;
}

.ic-return-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    color: #555;
}

.ic-return-text strong {
    color: #1a96cc;
    font-size: 0.95em;
}

.ic-return-text span {
    font-size: 0.85em;
}

.ic-return-paid-badge {
    margin-left: auto;
    flex-shrink: 0;
    background: #e6f7ee;
    color: #1a7a44;
    border: 1px solid #a8dfc0;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
}

.ic-return-paid-badge .fa {
    margin-right: 4px;
}

.ic-ps-power-cta {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e4eaf0;
    border-radius: 6px;
    font-size: 0.85em;
    color: #555;
}

.ic-ps-power-cta .fa {
    color: #1a96cc;
    margin-right: 6px;
}

.ic-ps-power-cta a {
    color: #1a96cc;
    font-weight: 600;
    text-decoration: none;
}

.ic-ps-power-cta a:hover {
    text-decoration: underline;
}

/* Letter slot — fills with Anschreiben section after calculation loads */
.ic-ps-letter-slot:not(:empty) {
    border-top: 1px solid #eef1f4;
    padding-top: 20px;
    margin-top: 4px;
}

/* Letter section inside the success panel body */
.ic-ps-body .ic-letter-section {
    margin: 0;
    box-shadow: none;
    border-color: #e4eaf0;
    border-radius: 8px;
}

/* ── Anschreiben-Generator ─────────────────────────────── */
.ic-letter-section {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 10px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

/* Header row */
.ic-letter-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eef1f6;
}

.ic-letter-header-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0077ae, #005a82);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15em;
    flex-shrink: 0;
}

.ic-letter-header-title {
    font-size: 1.05em;
    font-weight: 700;
    color: #1a2332;
    margin: 0 0 2px;
    line-height: 1.3;
}

.ic-letter-header-sub {
    font-size: 0.8em;
    color: #6b7a8d;
    margin: 0;
}

/* Type selector pills */
.ic-letter-type-row {
    margin-bottom: 16px;
}

.ic-letter-type-label {
    font-size: 0.78em;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 7px;
}

.ic-letter-type-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}

.ic-letter-type-pill {
    padding: 5px 14px;
    font-size: 0.82em;
    font-weight: 500;
    border: 1.5px solid #d0d8e8;
    border-radius: 20px;
    background: #fff;
    color: #4a5568;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    line-height: 1.5;
}

.ic-letter-type-pill:hover {
    border-color: #0077ae;
    color: #0077ae;
    background: #f0f7ff;
}

.ic-letter-type-pill.active {
    background: #0077ae;
    border-color: #0077ae;
    color: #fff;
}

/* Privacy notice */
.ic-letter-intro {
    font-size: 0.82em;
    color: #555;
    margin-bottom: 16px;
    padding: 9px 12px;
    background: #f5f9ff;
    border-left: 3px solid #a8c8e8;
    border-radius: 4px;
}

/* Input fields */
.ic-letter-fields {
    background: #f9fafb;
    border: 1px solid #edf0f5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.ic-letter-field-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.ic-letter-field-row > div {
    flex: 1;
    min-width: 140px;
}

.ic-letter-field-row label {
    display: block;
    font-size: 0.78em;
    font-weight: 700;
    color: #6b7a8d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
}

.ic-letter-field-row input[type="text"] {
    width: 100%;
    height: 36px;
    padding: 0 10px;
    border: 1.5px solid #d8e0ec;
    border-radius: 6px;
    font-size: 0.9em;
    background: #fff;
    color: #1a2332;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.ic-letter-field-row input[type="text"]:focus {
    outline: none;
    border-color: #0077ae;
    box-shadow: 0 0 0 3px rgba(0,119,174,0.1);
}

/* Paper-look preview */
.ic-letter-paper-wrap {
    background: #e8ecf2;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 14px;
}

#ic-letter-text {
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8em;
    line-height: 1.65;
    border: none;
    border-radius: 4px;
    padding: 20px 24px;
    background: #fff;
    color: #2c2c2c;
    box-sizing: border-box;
    resize: vertical;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04);
}

/* Action buttons */
.ic-letter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.ic-letter-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, #0077ae, #005a82);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(0,119,174,0.3);
}

.ic-letter-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.ic-letter-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: #fff;
    color: #4a5568;
    border: 1.5px solid #d0d8e8;
    border-radius: 6px;
    font-size: 0.88em;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.ic-letter-btn-secondary:hover {
    border-color: #0077ae;
    color: #0077ae;
    background: #f0f7ff;
}

#ic-letter-copy-msg {
    display: none;
    color: #46b450;
    font-size: 0.85em;
    font-weight: 600;
}

@media (max-width: 600px) {
    .ic-letter-field-row {
        flex-direction: column;
    }
    .ic-letter-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .ic-letter-btn-primary,
    .ic-letter-btn-secondary {
        justify-content: center;
    }
}

/* PDF Preview Modal */
.ic-preview-modal-content {
    max-width: 680px;
    padding: 0 !important;
    overflow: hidden;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;    
}

.ic-preview-doc {
    position: relative;
    padding: 28px 32px 32px;
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    overflow: hidden;
}

.ic-preview-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-35deg);
    font-size: 72px;
    font-weight: 900;
    color: rgba(0, 115, 170, 0.07);
    letter-spacing: 10px;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    z-index: 0;
}

.ic-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.ic-preview-brand {
    color: #0073aa;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ic-preview-docinfo {
    text-align: right;
    color: #666;
    font-size: 11px;
}

.ic-preview-section-title {
    background: #f4f4f4;
    padding: 5px 10px;
    font-weight: 700;
    margin-top: 18px;
    margin-bottom: 4px;
    border-left: 4px solid #0073aa;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.ic-preview-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
    position: relative;
    z-index: 1;
}

.ic-preview-data-table td {
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
}

.ic-pv-label { color: #666; width: 60%; }
.ic-pv-value { font-weight: 700; text-align: right; }

.ic-preview-billing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    position: relative;
    z-index: 1;
}

.ic-preview-billing-table th {
    background: #0073aa;
    color: #fff;
    text-align: left;
    padding: 7px 8px;
    font-size: 11px;
}

.ic-preview-billing-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #eee;
}

.ic-pv-amount {
    text-align: right;
    white-space: nowrap;
    font-family: 'Courier New', monospace;
}

.ic-pv-deductions-header {
    background: #f4f4f4;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 8px !important;
}

.ic-pv-total-row {
    background: #f0f6fb;
    font-weight: 700;
    font-size: 14px;
    border-top: 2px solid #0073aa !important;
}

.ic-preview-history-wrapper {
    position: relative;
    z-index: 1;
    max-height: 160px;
    overflow: hidden;
}

.ic-preview-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.ic-preview-history-table th {
    border-bottom: 1px solid #333;
    text-align: left;
    padding: 3px 4px;
    font-size: 10px;
}

.ic-preview-history-table td {
    padding: 3px 4px;
    border-bottom: 1px solid #eee;
}

.ic-preview-history-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.97) 100%);
    pointer-events: none;
}

/* Link below preview image */
.ic-preview-link-row {
    text-align: center;
    margin-top: 8px;
}

.ic-preview-link {
    font-size: 13px;
    color: #1a96cc;
    text-decoration: none;
    border-bottom: 1px dashed #1a96cc;
}

.ic-preview-link:hover {
    color: #0073aa;
    border-bottom-color: #0073aa;
}

@media (max-width: 600px) {
    .ic-preview-modal-content {
        max-width: 100%;
    }
    .ic-preview-doc {
        padding: 20px 16px 24px;
    }
    .ic-preview-brand {
        font-size: 15px;
    }
    .ic-preview-watermark {
        font-size: 48px;
    }
}

/* ─── Abzugs-Assistenten ──────────────────────────────────────────── */

.ic-assistant-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 12px 0 20px;
}

.ic-assistant-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    gap: 10px;
    padding: 16px 10px 14px;
    background: #fff;
    border: 1.5px solid #dde3e9;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
    margin-top: 0;
    margin-bottom: 0;
}

/* override the form's blanket 0.5s transition for snappier hover */
#deductions-section .ic-assistant-card {
    transition: all .1s linear;
}

.ic-assistant-card:hover,
.ic-assistant-card:focus-visible {
    border-color: #e8f4fd;
    outline: none;
    color: #333;
    background: #e8f4fd;
}

.ic-assistant-card:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(26, 150, 204, 0.1);
}

.ic-assistant-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #e8f4fd;
    border-radius: 50%;
    color: #1a96cc;
    font-size: 1em;
    flex-shrink: 0;
    transition: background 0.1s ease;
}

.ic-assistant-card:hover .ic-assistant-icon {
    background: #1a96cc;
    color: #fff;
}

.ic-assistant-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-transform: none;
}

.ic-assistant-label {
    font-size: 0.78em;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

.ic-assistant-desc {
    font-size: 0.68em;
    color: #888;
    line-height: 1.3;
}

/* Mobile: stack as horizontal rows */
@media (max-width: 520px) {
    .ic-assistant-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .ic-assistant-card {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        align-items: center;
        gap: 14px;
        padding: 12px 16px;
    }

    .ic-assistant-icon {
        width: 34px;
        height: 34px;
        font-size: 0.9em;
    }

    .ic-assistant-body {
        align-items: flex-start;
        gap: 2px;
    }

    .ic-assistant-label {
        font-size: 0.88em;
    }

    .ic-assistant-desc {
        font-size: 0.75em;
    }
}

/* ── Berechnungs-History ──────────────────────────────────────────────────── */

.ic-history {
    margin-bottom: 20px;
    border: 1px solid #dde3ea;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    font-size: 1.3em;
}

.ic-history button {
    text-transform: none;
}

.ic-history-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #f0f4f8;
    border-bottom: 1px solid #dde3ea;
}

.ic-history-title {
    font-size: 0.95em;
    font-weight: 600;
    color: #2c3e50;
}

.ic-history-title .fa {
    margin-right: 7px;
    color: #1a96cc;
}

.ic-history-local-hint {
    font-size: 0.8em;
    font-weight: 400;
    color: #7a8a99;
    margin-left: 4px;
}

.ic-history-info-icon {
    cursor: help;
    color: #9baab8;
}

.ic-history-info-icon:hover {
    color: #1a96cc;
}

.ic-history-list {
    padding: 8px 0;
}

.ic-history-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f4f8;
    gap: 12px;
}

.ic-history-card:last-child {
    border-bottom: none;
}

.ic-hc-info {
    flex: 1;
    min-width: 0;
}

.ic-hc-dates {
    font-size: 0.9em;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ic-hc-meta {
    font-size: 0.82em;
    color: #666;
    margin-top: 2px;
}

.ic-hc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.ic-hc-btn-load {
    background: #1a96cc;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 0.82em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.ic-hc-btn-load:hover {
    background: #1076a2;
}

.ic-hc-btn-partial {
    background: #fff;
    color: #1a96cc;
    border: 1px solid #1a96cc;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 0.82em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.ic-hc-btn-partial:hover {
    background: #1a96cc;
    color: #fff;
}

.ic-hc-btn-final {
    background: #fff;
    color: #46b450;
    border: 1px solid #46b450;
    border-radius: 5px;
    padding: 6px 14px;
    font-size: 0.82em;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.ic-hc-btn-final:hover {
    background: #46b450;
    color: #fff;
}

.ic-hc-btn-delete {
    background: none;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #999;
    padding: 6px 9px;
    font-size: 0.82em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.ic-hc-btn-delete:hover {
    color: #c0392b;
    border-color: #c0392b;
}

@media (max-width: 600px) {
    .ic-history-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .ic-hc-actions {
        width: 100%;
    }

    .ic-hc-btn-load {
        flex: 1;
        text-align: center;
    }
}

/* ── Mietrückstand-Assistent ─────────────────────────────────────────────── */

#mr-rows-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 12px;
    font-size: 1em;
}

#mr-rows-table th {
    text-align: left;
    color: #666;
    font-weight: normal;
    padding: 0 4px 8px 0;
    border-bottom: 1px solid #ddd;
}

#mr-rows-table td {
    padding: 4px 4px 4px 0;
    vertical-align: middle;
}

#mr-rows-table td:last-child {
    width: 28px;
    text-align: center;
}

#mr-rows-table .mr-month,
#mr-rows-table .mr-rent,
#mr-rows-table .mr-paid {
    height: 36px !important;
    margin: 0 !important;
    padding: 4px 6px !important;
    font-size: 1em !important;
    width: 100%;
    box-sizing: border-box;
}

#mr-rows-table .mr-arrears {
    text-align: right;
    white-space: nowrap;
    font-weight: bold;
    padding-right: 6px;
    min-width: 70px;
}

.mr-remove-row {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 1em;
    line-height: 1;
    padding: 0 2px;
}

/* Save-calc widget */
.ic-save-calc-box {
    background: #f4f8fb;
    border: 1px solid #d0e4f0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 10px;
    font-size: 1.2em;
}

.ic-save-calc-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.ic-save-calc-icon {
    font-size: 1.6em;
    color: #0077ae;
    flex-shrink: 0;
}

.ic-save-calc-text {
    flex: 1 1 180px;
}

.ic-save-calc-text strong {
    display: block;
    color: #1a3a4a;
    margin-bottom: 2px;
}

.ic-save-calc-text span {
    color: #555;
    font-size: 0.88em;
    line-height: 1.4;
}

.ic-save-calc-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 0;
}

.ic-save-calc-email-input {
    padding: 7px 10px;
    border: 1px solid #b0cfe0;
    border-radius: 4px;
    font-size: 0.9em;
    width: 210px;
    height: auto;
    min-height: unset;
    margin: 0;
}

.ic-save-calc-email-input.ic-input-error {
    border-color: #d9534f;
    outline: none;
}

.ic-save-calc-btn {
    padding: 7px 16px;
    font-size: 0.88em;
    background: #0077ae;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}

.ic-save-calc-btn:hover {
    background: #005f8e;
}

.ic-save-calc-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.ic-save-calc-consent {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #d0e4f0;
}

.ic-save-calc-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.ic-save-calc-consent-label input[type="checkbox"] {
    width: auto;
    min-height: unset;
    margin: 3px 0 0;
    flex-shrink: 0;
}

.ic-save-calc-consent-label span {
    font-size: 0.82em;
    color: #555;
    line-height: 1.4;
}

.ic-save-calc-consent-label a {
    color: #0077ae;
}

.ic-save-calc-success {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #2a7a2a;
    font-size: 0.9em;
    padding: 4px 0;
}

.ic-save-calc-success .fa {
    font-size: 1.4em;
    flex-shrink: 0;
}

.ic-nk-reminder-box {
    background: #fffbf0;
    border: 1px solid #f0d580;
    border-radius: 6px;
    padding: 14px 18px;
    margin-top: 10px;
    font-size: 1.2em;
}

.ic-nk-reminder-icon {
    font-size: 1.6em;
    color: #b45309;
    flex-shrink: 0;
}

.ic-nk-reminder-btn {
    padding: 7px 16px;
    font-size: 0.88em;
    background: #b45309;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1.4;
}

.ic-nk-reminder-btn:hover {
    background: #92400e;
}

.ic-nk-reminder-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Short-term rental calculator ────────────────────────────────────────────
   Mirrors #interestForm styles for the standalone #ic-shortterm-form.
   ─────────────────────────────────────────────────────────────────────────── */
#ic-shortterm-form {
  display: block;
  background: #f9f9fa;
  padding: 2em;
  border-radius: 5px;
  font-size: 1.3em;
}

#ic-shortterm-form .mandatory { color: red; }

#ic-shortterm-form label {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

#ic-shortterm-form input {
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

#ic-shortterm-form input,
#ic-shortterm-form input:focus {
  font: inherit;
  background: #fff;
  border: 1px solid #aaa;
  border-radius: 4px;
  padding: 5px 10px;
  margin: 0 0 1em 0;
  min-height: 40px;
  box-sizing: border-box;
}

#ic-shortterm-form input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

#ic-shortterm-form select {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  width: 100%;
  height: 40px;
  padding-left: 10px;
  color: #666;
  border-radius: 4px;
  border: 1px solid #aaa;
  outline: none;
  cursor: pointer;
  background: #fff;
  margin: 0 0 1em 0;
}

#ic-shortterm-form .ctabuttonCalc {
  font: inherit;
  background: #1a96cc;
  color: #fff;
  border-radius: 4px;
  font-weight: bold;
  padding: 12px 25px;
  margin: 1em auto;
  text-align: center;
  box-shadow: none;
  text-transform: none;
  display: block;
  width: 100%;
  cursor: pointer;
  border: none;
}

#ic-shortterm-form .ctabuttonCalc:hover { background: #1076a2; }

#ic-shortterm-form .ctabuttonCalc:disabled {
  background: #9ab;
  cursor: not-allowed;
}

/* Deduction rows inside the shortterm form */
.ic-shortterm #st-deductions-list .deduction-item input,
.ic-shortterm #st-deductions-list .deduction-item button {
  font: inherit;
  padding: 5px 10px;
  margin: 0;
}

/* Result panel */
.ic-result-panel {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px 24px;
  font-size: 1.1em;
}

.ic-result-panel .h3 { margin: 0 0 4px; }

@media (max-width: 520px) {
  #ic-shortterm-form { padding: 1em; }
}

/* XMiete JSON export link */
.ic-xmiete-badge {
    margin-top: 10px;
}

#ic-xmiete-json-dl {
    text-transform: none;
    box-shadow: none;
    text-decoration: none;
    text-align: center;
    width: 100%;
    display: inline-block;
}
.ic-xmiete-btn,
.ic-xmiete-btn:hover {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #333!important;
}
