.st-calc{
        --blue: #1a3a5a;
        --blue-light: #f0f7ff;
        --blue-line: #d0e1f0;
        --red: #b30000;
        --text: #333;
        --muted: #666;
        --border: #ddd;
        --input-border: #ccc;
        --white: #fff;
    }
.st-calc,.st-calc *{ box-sizing: border-box; }
.st-calc .calculator-wrapper{
        display: flex;
        justify-content: center;
        padding: 20px;
    }
.st-calc .calculator-box{
        width: 100%;
        max-width: 760px;
        border: 1px solid var(--border);
        padding: 25px;
        border-radius: 12px;
        background-color: var(--white);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        color: var(--text);
    }

.st-calc .intro{
        margin: 0 0 24px;
    }
.st-calc .input-grid{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
.st-calc .input-group{
        margin-bottom: 0;
        position: relative;
    }
.st-calc .input-group.full{ grid-column: 1 / -1; }
.st-calc .input-group label{
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        color: var(--blue);
    }
.st-calc .input-group input,.st-calc .input-group select{
        width: 100%;
        min-height: 43px;
        padding: 10px 12px;
        border: 1px solid var(--input-border);
        border-radius: 4px;
        background: var(--white);
        color: var(--text);
        font: inherit;
    }
.st-calc .input-group input:focus,.st-calc .input-group select:focus{
        outline: 2px solid rgba(26,58,90,0.18);
        border-color: var(--blue);
    }
.st-calc .inline-unit{
        position: relative;
    }
.st-calc .inline-unit input{ padding-right: 48px; }
.st-calc .inline-unit .unit{
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--muted);
        pointer-events: none;
    }
.st-calc .tooltip-icon{
        display: inline-block;
        width: 18px;
        height: 18px;
        background-color: var(--blue);
        color: #fff;
        border-radius: 50%;
        text-align: center;
        font-size: 12px;
        line-height: 18px;
        cursor: help;
        margin-left: 5px;
        position: relative;
        vertical-align: 1px;
    }
.st-calc .tooltip-text{
        visibility: hidden;
        width: 290px;
        max-width: 75vw;
        background-color: #333;
        color: #fff;
        text-align: left;
        border-radius: 6px;
        padding: 10px;
        position: absolute;
        z-index: 1000;
        bottom: 125%;
        left: 50%;
        transform: translateX(-50%);
        opacity: 0;
        transition: opacity 0.2s;
        font-weight: 400;
        font-size: 13px;
        line-height: 1.4;
        pointer-events: none;
    }
.st-calc .tooltip-icon:hover .tooltip-text,.st-calc .tooltip-icon:focus .tooltip-text{
        visibility: visible;
        opacity: 1;
    }
.st-calc .button-row{
        display: flex;
        gap: 10px;
        margin-top: 22px;
        flex-wrap: wrap;
    }
.st-calc button{
        border: 0;
        border-radius: 4px;
        padding: 11px 18px;
        font: inherit;
        font-weight: 700;
        cursor: pointer;
    }
.st-calc .primary-button{
        background: var(--blue);
        color: #fff;
    }
.st-calc .secondary-button{
        background: #eef1f4;
        color: var(--blue);
    }
.st-calc button:hover{ filter: brightness(0.96); }
.st-calc .error-box{
        display: none;
        margin-top: 18px;
        padding: 12px 14px;
        border-left: 5px solid var(--red);
        background: #fff4f4;
        color: #7a0000;
        border-radius: 4px;
        line-height: 1.45;
    }
.st-calc .result-box{
        background-color: var(--blue-light);
        border-left: 6px solid var(--blue);
        padding: 20px;
        margin-top: 25px;
        border-radius: 4px;
    }

.st-calc .result-row{
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.75fr);
        gap: 16px;
        align-items: baseline;
        padding: 10px 0;
        border-bottom: 1px solid var(--blue-line);
    }
.st-calc .result-row:last-child{ border-bottom: 0; }
.st-calc .result-label{ font-weight: 600; }
.st-calc .highlight{
        font-size: 1.22em;
        font-weight: 700;
        color: var(--red);
        text-align: right;
    }
.st-calc .chart-box,.st-calc .detail-box{
        margin-top: 22px;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        padding: 18px;
        background: #fff;
    }
.st-calc #chart{
        width: 100%;
        min-height: 220px;
        display: block;
    }
.st-calc .chart-empty{
        fill: #777;
        font-size: 13px;
    }
.st-calc .detail-head,.st-calc .detail-row{
        display: grid;
        grid-template-columns: 0.7fr 1.15fr 0.9fr 1fr 1.15fr;
        gap: 10px;
        align-items: center;
    }
.st-calc .detail-head{
        color: var(--blue);
        font-weight: 700;
        font-size: 0.86rem;
        padding: 10px 8px;
        border-bottom: 2px solid var(--blue-line);
    }
.st-calc .detail-row{
        padding: 9px 8px;
        border-bottom: 1px solid #eee;
        font-size: 0.9rem;
    }
.st-calc .detail-row:last-child{ border-bottom: 0; }
.st-calc .detail-row > div:not(:first-child),.st-calc .detail-head > div:not(:first-child){ text-align: right; }
.st-calc .data-note,.st-calc .disclaimer{
        font-size: 0.85em;
        color: var(--muted);
        margin-top: 20px;
        line-height: 1.5;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }
.st-calc .data-note strong,.st-calc .disclaimer strong{ color: #555; }
.st-calc .hidden{ display: none !important; }
@media  (max-width: 680px) {.st-calc .calculator-wrapper{ padding: 10px; }
.st-calc .calculator-box{ padding: 18px; }
.st-calc .input-grid{ grid-template-columns: 1fr; }
.st-calc .input-group.full{ grid-column: auto; }
.st-calc .result-row{ grid-template-columns: 1fr; gap: 4px; }
.st-calc .highlight{ text-align: left; }
.st-calc .detail-head{ display: none; }
.st-calc .detail-row{
            grid-template-columns: 1fr 1fr;
            gap: 6px 12px;
            padding: 12px 8px;
        }
.st-calc .detail-row > div{ text-align: left !important; }
.st-calc .detail-row > div::before{
            content: attr(data-label) ": ";
            color: var(--blue);
            font-weight: 700;
        }}
@media  print {.st-calc .calculator-wrapper{ padding: 0; }
.st-calc .calculator-box{ box-shadow: none; border: 0; max-width: none; }
.st-calc .button-row,.st-calc .tooltip-icon{ display: none; }}
.st-calc{font-family:"Segoe UI",Arial,sans-serif;color:#333;width:100%;} .st-calc .calculator-wrapper{padding:8px 0;} .st-calc button:disabled{opacity:.6;cursor:wait} .st-calc .tooltip-icon{outline-offset:3px} .st-calc .result-box[hidden], .st-calc .chart-box[hidden], .st-calc .detail-box[hidden]{display:none!important} .st-calc .st-loader{display:none;margin-top:12px;color:#1a3a5a} .st-calc .st-loader.visible{display:block} .st-calc .tooltip-icon:focus-within .tooltip-text{visibility:visible;opacity:1} .st-calc .calculator-box{max-width:760px;}

/* Eigenständige Bereiche: Avada-Spaltenbreite statt fixer Kartenbreite */
.st-calc .calculator-wrapper { padding: 0; width:100%; }
.st-calc .calculator-box { max-width: none; }
.st-calc .st-part-box { padding: 18px; }
.st-calc .st-part-box .chart-box, .st-calc .st-part-box .detail-box { margin-top: 0; }
.st-calc .st-part-box .data-note { margin-top: 0; }
.st-calc .st-part-box .disclaimer { margin-bottom:0; }
.st-calc .detail-box { overflow-x: auto; }
@media (min-width:681px) { .st-calc .detail-head, .st-calc .detail-row { min-width: 610px; } }

/* V1.0.4: Überschriften und Fließtexte übernehmen Avada-Themevorgaben. */
.st-calc { font-family: inherit; font-size: inherit; line-height: inherit; }
.st-calc .calculator-box { font-family: inherit; font-size: inherit; }
.st-calc h2.st-theme-heading,
.st-calc .result-box h2.st-theme-heading,
.st-calc .chart-box h2.st-theme-heading,
.st-calc .detail-box h2.st-theme-heading {
  /* Keine eigene Farbe, Schriftgröße, Schriftfamilie oder Schriftstärke: Avada h2 übernimmt. */
  text-align: center; margin: 0 0 16px;
}
.st-calc .st-info-content p { margin: 0 0 0.5em; padding: 0; border: 0; }
.st-calc .st-info-content p:last-child { margin-bottom: 0; }
.st-calc .st-data-source { margin: 12px 0 0; padding: 0; border: 0; }
.st-calc .st-table-explanation { margin: 0 0 12px; }


/* V1.0.5: Keine zweite Karte innerhalb der Diagramm- und Tabellen-Shortcodes.
   Die äußere Avada-/Plugin-Karte bleibt unverändert. */
.st-calc.st-calc-part[data-st-part="chart"] .chart-box,
.st-calc.st-calc-part[data-st-part="table"] .detail-box {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin: 0;
}
.st-calc.st-calc-part[data-st-part="chart"] #st-chart {
    display: block;
    width: 100%;
    max-width: 100%;
}

/* V1.0.6: Fettung innerhalb der Avada-h2-Überschriften, ohne deren Typografie zu ersetzen. */
.st-calc h2.st-theme-heading > b { font-weight: 700; }


/* V1.0.7: Platzoptimierte Spalten der Kaufkrafttabelle.
   Nur der Tabellen-Shortcode; die mobile Zweispaltenansicht bleibt erhalten. */
@media (min-width: 681px) {
  .st-calc.st-calc-part[data-st-part="table"] .detail-head,
  .st-calc.st-calc-part[data-st-part="table"] .detail-row {
    grid-template-columns: minmax(43px, 0.40fr) minmax(140px, 1.40fr) minmax(75px, 0.75fr) minmax(115px, 1.12fr) minmax(140px, 1.42fr);
    column-gap: 7px;
    min-width: 580px;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-head,
  .st-calc.st-calc-part[data-st-part="table"] .detail-row {
    padding-left: 4px;
    padding-right: 4px;
  }
}

/* V1.0.8: Kaufkrafttabelle – kompakte Desktopspalten und klare mobile Jahresblöcke.
   Ausschließlich für den Tabellen-Shortcode; Rechnermodul und Chart unverändert. */
.st-calc.st-calc-part[data-st-part="table"] {
  container-type: inline-size;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-head,
.st-calc.st-calc-part[data-st-part="table"] .detail-row {
  grid-template-columns: 58px minmax(125px, 1.3fr) 92px minmax(105px, 1fr) minmax(125px, 1.3fr);
  column-gap: 8px;
  min-width: 0;
  box-sizing: border-box;
  font-size: inherit;
  line-height: 1.35;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-head {
  align-items: end;
  font-weight: 700;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-head > div {
  white-space: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-row > div {
  overflow-wrap: normal;
}
/* Spaltenkopf bewusst in zwei Zeilen, ohne zufälligen Silbenumbruch. */
.st-calc.st-calc-part[data-st-part="table"] .detail-head .st-heading-line { display:block; }
/* Bei wenig Platz innerhalb einer Avada-Spalte gilt das mobile Raster unabhängig
   von der Gesamtbreite des Browserfensters. */
@container (max-width: 640px) {
  .st-calc.st-calc-part[data-st-part="table"] .detail-head { display: none; }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    column-gap: 16px;
    row-gap: 12px;
    min-width: 0;
    padding: 14px 0 16px;
    align-items: start;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div {
    text-align: left !important;
    min-width: 0;
    line-height: 1.4;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:first-child {
    grid-column: 1 / -1;
    border-bottom: 1px solid #d0e1f0;
    padding-bottom: 7px;
    margin-bottom: 1px;
    font-weight: 600;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    color: #1a3a5a;
    font-weight: 700;
    margin-bottom: 3px;
    font-size: 0.93em;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:first-child::before {
    content: "Jahr: ";
    display: inline;
    color: #1a3a5a;
    font-weight: 700;
  }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:nth-child(2) { grid-column: 1; grid-row: 2; }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:nth-child(3) { grid-column: 2; grid-row: 2; }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:nth-child(5) { grid-column: 1; grid-row: 3; }
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div:nth-child(4) { grid-column: 2; grid-row: 3; }
}

/* 1.0.9: Editierbare Avada-Typografie-Klassen. Keine festen Schriftgrößen,
   damit Avada Custom CSS die Typografie steuern kann. */
.st-calc .INFLATION-H2 { text-align: center; }
.st-calc .INFLATION-P { font-size: inherit; }
.st-calc.st-calc-part[data-st-part="table"] .detail-row p.INFLATION-JAHRE,
.st-calc.st-calc-part[data-st-part="table"] .detail-row p.INFLATION-JAHRE-MOBILE {
  padding: 0; margin: 0; line-height: inherit; font-size: inherit; font-family: inherit;
  color: inherit; font-weight: inherit;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-row .st-desktop-value { display: block; }
.st-calc.st-calc-part[data-st-part="table"] .detail-row .st-mobile-value { display: none; }
@container (max-width: 640px) {
 .st-calc.st-calc-part[data-st-part="table"] .detail-row .st-desktop-value { display: none; }
 .st-calc.st-calc-part[data-st-part="table"] .detail-row .st-mobile-value { display: block; }
}

/* V1.0.12: alle fünf Tabellenüberschriften durchgehend zentrieren. */
.st-calc.st-calc-part[data-st-part="table"] .detail-head > div,
.st-calc.st-calc-part[data-st-part="table"] .detail-head > div:not(:first-child) {
  text-align: center;
  justify-self: stretch;
  align-self: end;
}
.st-calc.st-calc-part[data-st-part="table"] .detail-head .st-heading-line {
  display: block;
}

/* V1.0.13: Werte der fünf Spalten auf Desktop horizontal zentrieren.
   Die mobile Zweispaltenansicht bleibt bewusst linksbündig. */
.st-calc.st-calc-part[data-st-part="table"] .detail-row > div,
.st-calc.st-calc-part[data-st-part="table"] .detail-row > div:not(:first-child),
.st-calc.st-calc-part[data-st-part="table"] .detail-row p.INFLATION-JAHRE {
  text-align: center;
}
@container (max-width: 640px) {
  .st-calc.st-calc-part[data-st-part="table"] .detail-row > div,
  .st-calc.st-calc-part[data-st-part="table"] .detail-row p.INFLATION-JAHRE-MOBILE {
    text-align: left !important;
  }
}
