
/* ===== Hausfarben (Institut / LUH) ===== */
:root {
    --luh-blue: #0050a0;
    --luh-blue-dark: #003a76;
    --luh-lime: #c8d317;
    --ink: #1f2933;
    --muted: #52606d;
    --line: #e3e6ea;
}

/* ===== Kopfbereich: Navigationsleiste + blaues Titelband ===== */
body {
    margin-top: 0;
}

.app-header {
    /* Volle Breite trotz 25px Seitenrand des Bodys */
    margin: 0 -25px 1.5rem -25px;
}

.app-navbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    background: #fff;
    padding: .35rem 2rem;
    border-bottom: 3px solid var(--luh-blue);
    box-shadow: 0 2px 14px rgba(0, 58, 118, .08);
}

.app-brand {
    display: inline-flex;
}

.app-logo {
    height: 54px;
    width: auto;
    display: block;
}

.app-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .6rem;
}

.app-nav-link {
    position: relative;
    color: var(--luh-blue-dark);
    font-weight: 500;
    font-size: 1.02rem;
    text-decoration: none;
    padding: .55rem .4rem;
    transition: color .15s ease;
}

/* Lime-Akzent als animierter Unterstrich */
.app-nav-link::after {
    content: "";
    position: absolute;
    left: .4rem;
    right: .4rem;
    bottom: .15rem;
    height: 3px;
    border-radius: 2px;
    background: var(--luh-lime);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.app-nav-link:hover {
    color: var(--luh-blue);
    text-decoration: none;
}

.app-nav-link.active {
    color: var(--luh-blue);
}

.app-nav-link:hover::after,
.app-nav-link.active::after {
    transform: scaleX(1);
}

.app-titlebar {
    background: linear-gradient(135deg, var(--luh-blue) 0%, var(--luh-blue-dark) 100%);
    border-bottom: 4px solid var(--luh-lime);
    padding: 22px 40px;
}

.app-title {
    color: #ffffff;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .3px;
    margin: 0;
}

.app-subtitle {
    display: block;
    color: rgba(255, 255, 255, .82);
    font-size: 12.5px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

.app-pagetitle {
    display: inline-block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    border-left: 4px solid var(--luh-lime);
    padding-left: 12px;
}

/* Kleiner Hinweis direkt unter dem Thesaurierungsdauer-Slider */
.slider-hint {
    display: block;
    color: #888;
    font-size: 0.68rem;
    font-style: italic;
    line-height: 1.2;
    margin-top: 2px;
}

/* Vorteil-Karte (Finanzierungsseite): EK- vs. FK-Vorteil als eine KPI-Karte */
.fin-vorteil-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--luh-lime);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 58, 118, .08);
    padding: 18px 16px;
    text-align: center;
    position: sticky;
    top: 12px;
}

.fin-vorteil-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--luh-blue-dark);
    line-height: 1.25;
    margin-bottom: 10px;
}

.fin-vorteil-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--luh-blue);
    line-height: 1.1;
    white-space: nowrap;  /* Betrag soll in einer Zeile bleiben */
}

.fin-vorteil-divider {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #eef0f2;
}

.fin-vorteil-rel-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #8a939b;
    margin-bottom: 2px;
}

.fin-vorteil-rel-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--luh-blue);
    white-space: nowrap;
}

/* Generische Ergebnis-Karte (z. B. Kapitalwert-Kennzahlen Investitionsseite) */
.result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-top: 4px solid var(--luh-lime);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 58, 118, .08);
    padding: 16px 14px;
    text-align: center;
    margin-bottom: 1rem;
}

.result-card:last-child {
    margin-bottom: 0;
}

.result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--luh-blue-dark);
    line-height: 1.25;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--luh-blue);
    line-height: 1.1;
    white-space: nowrap;  /* Betrag soll in einer Zeile bleiben */
}

.result-divider {
    margin: 12px 0;
    border: 0;
    border-top: 1px solid #eef0f2;
}

.result-subtable {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.result-subtable td {
    border: none;
    padding: 0.15rem 0.25rem;
    text-align: left;  /* überschreibt das zentrierte .result-card */
}

/* Nachschüssig-Hinweis bei den Kennzahlen (Optik wie Hinweis unter der Grafik) */
.kpi-hinweis {
    color: #888;
    font-size: 0.72rem;
    line-height: 1.3;
    text-align: left;
    margin-top: 6px;
    margin-bottom: 6px;
}

h6 {
    text-emphasis: beige;
}

h3 {
    font-size: larger;
}

.my-output {
    background: bisque;
}

body {
    font-family: Helvetica;
    background-color: whitesmoke;
    font-size: medium;
    margin-left: 25px;
    margin-right: 25px;
}

h1, h2, h3, h4, h5, h6 {
    color: black;
}

input[type=number]{
    width: 100%;
    max-width: 200px;
    border:2px solid #aaa;
    border-radius:4px;
    margin:8px 0;
    outline:none;
    padding:8px;
    box-sizing:border-box;
    transition:.3s;
  }

input[type=number]:focus{
    border-color:dodgerBlue;
    box-shadow:0 0 8px 0 dodgerBlue;
}

.dash-range-slider-input {
    display: none;
}


button {
    transition: all .5s ease;
    border: 2px solid gray;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    line-height: 1;
    font-size: 17px;
    background-color: rgb(153, 185, 216);
    padding: 10px;
    outline: none;
    border-radius: 4px;
    margin: 2px;
}

.accordion-button {
    text-transform: none !important;
    background-color: white !important;
    border: none !important;
    margin: 0 !important;
    padding: 1rem 1.25rem !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    box-shadow: none !important;
}

button:hover {
    color: #001F3F;
    background-color: #fff;
}

.output_fin {
    text-align: right;
}

.input_boxes {
    font-weight: bold;
    margin-top: 0.5rem;
    margin-bottom: 0px;
}

.table_own tr td {
    border-style: none;
}

.line_input_boxes {
    margin-top: 0px;
}

.box_icon {
    display:flex;
    justify-content:center;
    align-self: center;
}

.p_icon {
    font-size: xx-large;
    text-align: center;
    margin-bottom: 0px;
}

.dash-slider-wrapper {
    margin-left: 20px;
    margin-right: 20px;
}

.dash-slider-track {
  background-color: rgba(0, 80, 155, 0.1);
}

.dash-slider-range {
    background-color: rgb(153, 185, 216);
}

.dash-slider-root:not([data-included='false']) .dash-slider-range {
    background-color: rgb(0, 80, 155);
}

.dash-slider-mark {
    font-size: 0.7rem;
    white-space: nowrap;
}

.dash-slider-thumb:hover {
  background-color: rgba(0, 80, 155);
}

.dash-slider-thumb {
    background-color: rgb(0, 80, 155);
    border: 2px solid lightgrey;
}

.dash-slider-thumb:focus {
    outline: 2px solid rgb(200, 211, 23);
}

.dash-slider-thumb {
    background-color: rgb(0, 80, 155) !important;
    border: 2px solid lightgrey !important;
    box-shadow: 0 1px 3px 0 rgba(0, 80, 155, 0.15) !important;
}

.dash-slider-thumb:hover,
.dash-slider-thumb:focus,
.dash-slider-thumb:active {
    background-color: rgb(0, 80, 155) !important;
    border-color: rgb(200, 211, 23) !important;
    box-shadow: 0 0 0 0px rgba(200, 211, 23) !important;
    outline: none !important;
}



/* Verstecken des standardmäßigen Radio-Buttons */
.choice-input input[type="radio"] {
    display: none;
}

/* Stil für das Label, das als Ersatz für den Radio-Button dient */
.choice-input label {
    display: block;
    padding: 10px;
    margin-bottom: 5px;
    border: 2px solid #333;
    border-radius: 5px; /* Leichte Rundung für das Rechteck */
    cursor: pointer; /* Verändert den Cursor, um Interaktivität anzuzeigen */
    transition: background-color 0.3s, border-color 0.3s; /* Weicher Übergang für Hover-Effekte */
}

/* Stil für das Label, wenn der Radio-Button ausgewählt ist */
.choice-input input[type="radio"]:checked + label {
    background-color: #333;
    color: white;
}

/* Hover-Effekte für das Label */
.choice-input label:hover {
    background-color: #555; /* Dunklere Farbe beim Hovern */
    border-color: #555;
}

.choice-question {
    font-weight: bold;
    text-align: center;
}

.question-div {
    height: 300px;
}


.input-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 5px;
    height: 100%;
}

/* Leasing-Seite: Karten sind untereinander gestapelt, daher NICHT auf die
   volle Spaltenhöhe strecken – sonst wird Schritt 1 riesig und überlappt den
   Footer. Jede Karte soll sich an ihrem Inhalt orientieren. */
.leasing-stack .input-card {
    height: auto;
}

/* ---------------------------------------------------------------
   Eingabe-Sidebar (Control-Panel): EINE zusammenhängende Fläche,
   bewusst von den weißen Ergebniskarten abgesetzt.
   --------------------------------------------------------------- */
.sidebar-panel {
    background: white;
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 12px 14px 14px;
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
}

.sidebar-title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgb(0, 80, 155);
    margin: 0 0 10px 0;
}

.sidebar-group {
    margin-bottom: 2px;
}

.sidebar-group-title {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8a93a0;
    margin: 0 0 6px 0;
}

.sidebar-divider {
    border: none;
    border-top: 1px solid #dfe3e8;
    margin: 12px 0;
}

.sidebar-control {
    margin-bottom: 12px;
}

.sidebar-control:last-child {
    margin-bottom: 0;
}

.sidebar-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #374151;
    line-height: 1.2;
    margin-bottom: 3px;
}

/* kompaktes Wertfeld (ersetzt die große .slider-output-Box im Sidebar) */
.sidebar-value {
    font-size: 0.78rem;
    font-weight: 700;
    color: rgb(0, 80, 155);
    text-align: right;
    margin: 2px 0 0 0;
}

/* Slider im schmalen Panel kompakter: kleinere Markenbeschriftung,
   etwas seitlicher Abstand, damit Randmarken nicht abgeschnitten werden */
.sidebar-panel .rc-slider {
    margin-left: 4px;
    margin-right: 4px;
    width: calc(100% - 8px);
}

.sidebar-panel .rc-slider-mark-text {
    font-size: 0.6rem;
    color: #9aa1ab;
}

/* Annahmen-Liste im Infos-Accordion der Sidebar: kompakt */
.infos-list {
    font-size: 0.68rem;
    line-height: 1.35;
    color: #52606d;
    padding-left: 1.1em;
    margin: 0;
}

.infos-list li {
    margin-bottom: 4px;
}

.sidebar-panel .Select-value-label,
.sidebar-panel .Select-placeholder {
    font-size: 0.8rem;
}

/* RadioItems im Sidebar untereinander statt nebeneinander (spart Breite) */
.sidebar-panel .form-check {
    font-size: 0.74rem;
}

.dash-spreadsheet-menu {
    display: none !important;
}

/* Berechnungstabellen: ganze Zeile beim Überfahren farbig hervorheben */
.dash-spreadsheet-container .dash-spreadsheet-inner tr:hover td.dash-cell {
    background-color: rgba(0, 80, 155, 0.12) !important;
    transition: background-color 0.12s ease;
}

/* Kennzahlen bei identischer Rechtsform A == B: nur einen Wert zeigen,
   Steuervorteil-Kachel entfällt, Endvermögen-Kachel auf volle Breite. */
.kpi-single .kpi-half:nth-child(2) {
    display: none;
}

.kpi-single .kpi-half:first-child {
    border-right: none;
}

.kpi-single .kpi-col-advantage {
    display: none;
}

.kpi-single .kpi-col-ev {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
}


.kpi-card {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    height: 100%;
}

.kpi-card-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.kpi-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.75rem;
}

.kpi-split {
    display: flex;
}

.kpi-half {
    flex: 1;
    text-align: center;
}

.kpi-half:first-child {
    border-right: 1px solid #e1e1e1;
}

.kpi-label {
    font-size: 0.78rem;
    color: #666;
    margin-bottom: 0.2rem;
}

.kpi-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2f2f2f;
}

.kpi-value-big {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    color: rgb(0, 80, 155);
}

.kpi-subvalue {
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    color: #666;
    margin-top: 0.15rem;
}


.slider-output {
    margin-top: 8px;
    padding: 6px 10px;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgb(0, 80, 155);
    background: rgba(0, 80, 155, 0.05);
    border-radius: 6px;
}

/* ===== Kreditkauf vs. Leasing ===== */

/* Sidebar-Kopf: Titel links, kleiner Reset-Button rechts in der Ecke */
.leasing-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.leasing-sidebar-header .sidebar-title {
    margin: 0;
}

.leasing-reset-btn {
    flex: 0 0 auto;
    font-size: 0.64rem;
    line-height: 1;
    font-family: inherit;
    color: var(--luh-blue-dark);
    background: #f3f4f6;
    border: 1px solid #d7dbe0;
    border-radius: 5px;
    padding: 3px 7px;
    margin: 0;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.leasing-reset-btn:hover {
    background: var(--luh-lime);
    border-color: var(--luh-lime);
    color: var(--luh-blue-dark);
}

/* Ergebnis-Banner der Zurechnung (Schritt 1) */
.leasing-result {
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    margin: 6px 0 14px 0;
    border: 1px solid #e5e7eb;
}

/* Zurechnung beim Leasinggeber: Haus-Blau */
.leasing-geber {
    background: rgba(0, 80, 160, .08);
    border-color: var(--luh-blue);
    color: var(--luh-blue-dark);
}

/* Zurechnung beim Leasingnehmer: Lime-Akzent */
.leasing-nehmer {
    background: rgba(200, 211, 23, .16);
    border-color: var(--luh-lime);
    color: #5a5f00;
}

/* Noch unvollständig: neutraler Hinweiston */
.leasing-pending {
    background: #f3f4f6;
    border-color: #e3e6ea;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Schritt-für-Schritt-Begründung */
.leasing-pfad {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--ink);
    background: #fafbfc;
    border-left: 3px solid var(--luh-lime);
    border-radius: 4px;
    padding: 10px 14px 10px 16px;
    margin-top: 8px;
}

.leasing-pfad ul {
    margin: 0;
    padding-left: 1.1em;
}

.leasing-pfad li {
    margin-bottom: 4px;
}

/* 40-/90-%-Korridor – mittig und kompakt zwischen Schritt 4 und 5 eingebettet */
.leasing-corridor {
    max-width: 76%;
    margin: 6px auto 12px auto;
}

.leasing-corridor-title {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    text-align: center;
    margin-bottom: 5px;
}

.leasing-corridor-track {
    position: relative;
    height: 13px;
    background: #eef0f2;
    border-radius: 7px;
}

/* Grüner Korridor 40 %–90 % (statisch positioniert) */
.leasing-corridor-band {
    position: absolute;
    left: 40%;
    width: 50%;
    top: 0;
    bottom: 0;
    background: rgba(200, 211, 23, .45);
    border-left: 1px dashed #9aa400;
    border-right: 1px dashed #9aa400;
}

/* Marker für GMZ/ND – Position vom Callback gesetzt */
.leasing-corridor-marker {
    position: absolute;
    top: -3px;
    bottom: -3px;
    width: 3px;
    margin-left: -1.5px;
    background: var(--luh-blue);
    border-radius: 2px;
}

.leasing-corridor-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.62rem;
    color: #9aa1ab;
    margin-top: 2px;
}

/* Die Skala-Marken sitzen bei 0/40/90/100 % – über Flex grob verteilt;
   feinjustiert über individuelle Ausrichtung */
.leasing-corridor-scale span:nth-child(2) { margin-left: 26%; }
.leasing-corridor-scale span:nth-child(3) { margin-left: 38%; }

.leasing-corridor-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--luh-blue);
    text-align: center;
    margin-top: 5px;
}

/* Relevanzhinweis über der Vergleichstabelle (Schritt 2) */
.leasing-note {
    font-size: 0.8rem;
    line-height: 1.4;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.leasing-note-active {
    background: rgba(0, 80, 160, .07);
    border: 1px solid rgba(0, 80, 160, .25);
    color: var(--luh-blue-dark);
}

.leasing-note-muted {
    background: #f3f4f6;
    border: 1px solid #e3e6ea;
    color: var(--muted);
}

.leasing-vorteil-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--muted);
}

/* Annahme-Box über dem Belastungsvergleich */
.leasing-premise {
    font-size: 0.76rem;
    font-style: italic;
    line-height: 1.4;
    color: var(--muted);
    background: #fafbfc;
    border-left: 3px solid #d7dbe0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

/* Zwischenüberschrift der beiden Teiltabellen in Schritt 2 */
.leasing-subhead {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--luh-blue-dark);
    margin: 14px 0 4px 0;
}


/* ===== Startseite: Intro + Themenkacheln ===== */
.home-wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
}

.home-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.home-intro-title {
    color: var(--luh-blue-dark);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 .5rem 0;
}

.home-intro-text {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.5;
    max-width: 680px;
    margin: 0 auto;
}

/* Link-Wrapper: nimmt volle Höhe der Spalte ein, kein Link-Styling */
.home-card-link {
    display: block;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.home-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.home-card {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 4px solid var(--luh-lime);
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 58, 118, .08);
    padding: 28px 26px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 58, 118, .16);
}

/* Icon im farbigen Kreis; beim Hover Wechsel auf Lime-Akzent */
.home-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 80, 160, .08);
    color: var(--luh-blue);
    font-size: 1.9rem;
    margin-bottom: 18px;
    transition: background .18s ease, color .18s ease;
}

.home-card:hover .home-card-icon {
    background: var(--luh-lime);
    color: var(--luh-blue-dark);
}

.home-card-title {
    color: var(--luh-blue-dark);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 .5rem 0;
}

.home-card-desc {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.5;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;  /* drückt den CTA bei ungleich langen Texten nach unten */
}

.home-card-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    color: var(--luh-blue);
}

.home-card-cta .bi {
    transition: transform .18s ease;
}

.home-card:hover .home-card-cta .bi {
    transform: translateX(4px);
}

