:root {
    --unterhalt-farbe-text: #222;
}

body {
    background: #f5f6f7;
    font-family: 'Segoe UI', Arial, sans-serif !important;
    color: var(--unterhalt-farbe-text);
    margin: 0;
    padding: 0;
}

.container {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 32px 24px 24px 24px;
    box-sizing: border-box;
}

.lang-switch {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 12px;
}
.lang-btn {
    min-width: 44px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #b3a369;
    border-radius: 6px;
    background: #fff;
    color: #707070;
    cursor: pointer;
}
.lang-btn:hover {
    background: #f5f0e6;
}
.lang-btn.active {
    background: #b3a369;
    color: #222;
    border-color: #707070;
}

h1 {
    color: #707070;
    text-align: center;
    margin-bottom: 24px;
    font-size: 2rem;
}

h2 {
    font-weight: bold !important;
    font-size: x-large !important;
}

h3 {
    font-weight: bold !important;
}
label {
    font-weight: 500;
    margin-top: 12px;
    display: block;
}
input[type="number"], input[type="range"], .choice-btn, .icon-btn {
    color: #707070;
    background: #fff;
    border: 2px solid #b3a369;
    border-radius: 8px;
    font-size: 1.25rem;
    padding: 16px 12px;
    height: 48px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 0;
    margin-top: 12px;
    margin-bottom: 18px;
}
input[type="number"]::placeholder {
    color: #b3a369;
    opacity: 1;
}
/* Gemeinsame Button-Klasse */
.btn {
    background: #b3a369 !important;
    color: #222 !important;
    border: 2px solid #707070 !important;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600 !important;
    margin: 8px 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-decoration: none !important;
    display: inline-block;
    text-align: center;
    text-transform: none !important;
}
.btn:hover {
    background: #222 !important;
    color: #b3a369 !important;
    border-color: #707070 !important;
}
#children-list {
    margin-bottom: 12px;
    margin-top: 12px;
}
.child-row {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px 10px 14px;
    position: relative;
}
.child-row-main {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.child-label {
    font-size: 1.08rem;
    color: #b3a369;
    font-weight: 600;
    margin-right: 10px;
    min-width: 60px;
}
.child-age-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.child-age-label {
    font-size: 1.08rem;
    color: #707070;
}
.child-age-input {
    width: 70px !important;
}
.child-remove-btn {
    margin-left: 8px;
    background: #e57373 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.child-remove-btn:hover {
    background: #c62828 !important;
    color: #fff !important;
    border-color: #c62828 !important;
}
.add-child-row {
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    margin-bottom: 0;
    min-height: 40px;
}
.child-add-btn {
    position: absolute;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 2;
}
.slider-row {
    width: 100%;
    margin-top: 0.2em;
}
#result {
    margin-top: 28px;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 18px 14px;
    border: 1px solid #e0e0e0;
}
#result ul[id=resultList] {
    padding: 0;
}
#result ul[id=resultDetails],
#result ul[id=resultDetails] > li > ul {
    padding-left: 5px;
    list-style:none;
    line-height: 150%;
}
#result ul#resultDetails > li > ul > li[data-t="resultMultipleChildrenRule"],
#result ul#resultDetails > li > ul > li[data-t="resultPlayboyFormulasHeading"],
#result ul#resultDetails > li > ul > li[data-t="resultSpouseSupportRule"] {
    margin-top: 1.15rem;
}
.canvas-container {
    width: 100%;
    max-width: 400px;
    margin: 24px auto 0 auto;
}
#resultChart {
    max-width: 100%;
    height: auto;
    display: block;
}
.content-box {
    margin-top: 24px;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}
#resultInputData {
    display: none;
    border: none;
    background-color: transparent;
    margin-top: 0;
    padding: 0;
}
#resultInputData h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.1em;
}
.input-data-row {
    margin-bottom: 8px;
    margin-top: 8px;
}
.input-data-row table {
    margin-bottom: 12px;
    margin-top: 12px;
}
.info-text-before-disclaimer {
    margin-top: 32px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}
.info-text-before-disclaimer p {
    margin: 0;
}
.info-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 24px;
    margin-bottom: 24px;
}
.disclaimer {
    margin-top: 32px;
    text-align: left;
    font-size: 0.98rem;
    color: #666;
}
.disclaimer-button {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
.lawyer-box {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lawyer-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.lawyer-info {
    flex: 1;
}
.lawyer-name {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}
.lawyer-description {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}
.lawyer-more-info {
    margin-top: 12px;
    text-align: center;
}
.lawyer-more-info-link {
    font-size: 0.9rem;
    color: #666;
    text-decoration: underline;
    transition: color 0.2s;
}
.lawyer-more-info-link:hover {
    color: #222;
}
.step-nav {
    margin-top: 24px;
    text-align: center;
}
@media (max-width: 600px) {
    .container {
        padding: 12px 4vw 18px 4vw;
    }
    h1 {
        font-size: 1.3rem;
    }
    .slider-row, .child-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .child-row-main {
        flex-direction: column;
        align-items: flex-start;
    }
    .slider-remove-wrapper {
        display: flex;
        align-items: center;
        width: 100%;
        gap: 8px;
    }
    .slider-remove-wrapper .slider-inline {
        flex: 1;
        margin: 0;
    }
    .slider-remove-wrapper .child-remove-btn {
        flex-shrink: 0;
        margin: 0;
    }
    input[type="range"] {
        width: 100%;
        margin-right: 0;
    }
    .btn {
        font-size: 0.98rem;
        padding: 8px 10px;
    }
    .info-buttons {
        gap: 10px;
    }
    .info-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
    .choice-btn {
        font-size: 1.1rem;
        padding: 18px 0;
        min-width: 120px;
    }
    .stepper-step {
        width: 20px;
        height: 20px;
        font-size: 0.85rem;
    }
    .stepper-line {
        width: 10px;
    }
    .icon-btn {
        font-size: 1.5rem;
        width: 38px;
        height: 38px;
        padding: 16px 12px;
    }
    input[type="number"], input[type="range"], .choice-btn, .icon-btn {
        font-size: 1.1rem;
        padding: 0px 8px ;
        height: 44px;
        margin-bottom: 0px;
    }
    .child-age-label {
        margin-top: 10px;
    }
    .slider-inline {
        flex-direction: column;
        align-items: flex-start;
    }
    .lawyer-box {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .lawyer-photo {
        width: 70px;
        height: 70px;
    }
    .lawyer-name {
        font-size: 1rem;
    }
    .lawyer-description {
        font-size: 0.9rem;
    }
    .child-age-input {
        width: 100%;
        max-width: 100px;
    }
    .child-age-slider {
        width: 100%;
        min-width: 60px;
    }
}
.step-error {
    display: none;
    background: #fff6e6;
    color: #a05a00;
    border: 2px solid #ffb84d;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 12px 0 18px 0;
    font-size: 1.08rem;
    font-weight: 500;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(255,184,77,0.08);
}
.step-error.active {
    display: flex;
}
.step-error:before {
    content: "⚠️";
    font-size: 1.3em;
    margin-right: 8px;
    display: inline-block;
}
.stepper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 32px 0 32px 0;
    gap: 0;
}
.stepper-step {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 3px solid #b3a369;
    border-radius: 50%;
    color: #b3a369;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border 0.2s;
    z-index: 1;
}
.stepper-step.active {
    background: #b3a369;
    color: #fff;
    border-color: #b3a369;
}
.stepper-step.completed {
    background: #f5f0e6;
    color: #a08a4a;
}
.stepper-line {
    height: 3px;
    width: 14px;
    background: #b3a369;
    margin: 0 -2px;
    z-index: 0;
}
.choice-btn {
    min-height: 90px;
    font-size: 1.4rem;
    padding-top: 1.3em;
    padding-bottom: 1.3em;
    line-height: 1.2;
    color: #b3a369 !important;
    border: 2px solid #b3a369 !important;
    background: #fff !important;
    transition: background 0.2s, color 0.2s, border 0.2s;
    cursor: pointer;
}
.choice-btn:hover, .choice-btn.active {
    background: #b3a369 !important;
    color: #fff !important;
    border-color: #b3a369 !important;
}
.slider-inline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}
.slider-remove-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}
.slider-remove-wrapper .slider-inline {
    flex: 1;
    margin: 0;
}
.slider-remove-wrapper .child-remove-btn {
    flex-shrink: 0;
    margin: 0;
}
.slider-inline input[type='range'] {
    flex: 1 1 0px;
    min-width: 100px;
    max-width: 300px;
    margin-left: 5px;
}

/* Schmale Zahlenfelder (ca. 4 Ziffern), damit Slider mehr Platz hat */
.slider-inline input[type="number"] {
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    flex: 0 0 120px;
}
.child-age-slider {
    flex: 1 1 auto;
    min-width: 60px;
    max-width: 100%;
}
.subheadline {
    text-align: center;
    font-size: 1.7em;
    margin: 24px 0 32px 0;
    font-weight: 600;
    color: #a08a4a;
    letter-spacing: 0.5px;
}
.info-box {
    background: #fffbe6;
    border: 1.5px solid #b3a369;
    border-radius: 8px;
    color: #7a6a3a;
    font-size: 1.05em;
    padding: 12px 16px 10px 16px;
    margin: 18px 0 10px 0;
    box-shadow: 0 2px 8px rgba(179,163,105,0.07);
}
.info-box b {
    color: #a08a4a;
}
.info-box ul li {
    line-height: 1.6;
    margin-bottom: 4px;
}
#resultInputData {
    line-height: 1.7;
    overflow: visible;
}
#resultInputDataContent,
#resultSummaryContent,
#resultChartBox {
    line-height: 1.7;
    padding-bottom: 2px;
    font-size: medium !important;
}
#resultInputDataContent > div,
#resultSummaryContent > div {
    line-height: 1.7;
    min-height: 1.7em;
    padding-bottom: 3px;
    overflow: visible;
}
.result-data-row {
    margin: 6px 0;
}
.result-spacer {
    height: 1rem;
}
.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin: 0 4px;
    outline: none;
}
#add-child.icon-btn {
    background: #81c784 !important;
    color: #fff !important;
}
#add-child.icon-btn:hover {
    background: #388e3c !important;
    color: #fff !important;
    border-color: #388e3c !important;
}
.add-child-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#reset-form {
    display: block;
    margin: 24px auto 0 auto;
}

/* schmerzengeld-spezifisch */
.step {
    display: none;
}
.step.active {
    display: block;
}
#resultInputData {
    display: block;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    padding: 16px;
}
.choice-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
#zeitraum-list {
    margin-bottom: 12px;
    margin-top: 12px;
}
.zeitraum-card {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px 10px 14px;
    position: relative;
}
.zeitraum-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.zeitraum-title {
    font-size: 1.08rem;
    color: #b3a369;
    font-weight: 600;
    margin: 0;
}
.zeitraum-remove-btn {
    margin-left: 8px;
    background: #e57373 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.zeitraum-remove-btn:hover {
    background: #c62828 !important;
    color: #fff !important;
    border-color: #c62828 !important;
}

@media (max-width: 600px) {
    .choice-btns {
        grid-template-columns: 1fr;
    }
}

/* Scoped Typografie-Reset gegen Theme-Regeln auf englischen Seiten. */
body .schmerzengeld-container,
body .schmerzengeld-container *,
body .schmerzengeld-container *::before,
body .schmerzengeld-container *::after,
body [data-schmerzengeld-language],
body [data-schmerzengeld-language] *,
body [data-schmerzengeld-language] *::before,
body [data-schmerzengeld-language] *::after {
    font-family: 'Segoe UI', Arial, sans-serif !important;
    letter-spacing: normal !important;
}

body .schmerzengeld-container button,
body .schmerzengeld-container .choice-btn,
body .schmerzengeld-container .btn,
body .schmerzengeld-container input,
body [data-schmerzengeld-language] button,
body [data-schmerzengeld-language] .choice-btn,
body [data-schmerzengeld-language] .btn,
body [data-schmerzengeld-language] input {
    text-transform: none !important;
}

.calculation-total-row {
    margin-top: 1rem;
}

/* schmerzengeld-spezifische Ergänzungen auf Unterhalt-Basis */
.step {
    display: none;
}

.step.active {
    display: block;
}

.choice-btns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#zeitraum-list {
    margin-bottom: 12px;
    margin-top: 12px;
}

.zeitraum-card {
    display: flex;
    flex-direction: column;
    gap: 0.2em;
    margin-bottom: 10px;
    background: #fff;
    border-radius: 10px;
    padding: 12px 14px 10px 14px;
    position: relative;
}

.zeitraum-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.zeitraum-title {
    font-size: 1.08rem;
    color: #b3a369;
    font-weight: 600;
    margin: 0;
}

.zeitraum-remove-btn {
    margin-left: 8px;
    background: #e57373 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.zeitraum-remove-btn:hover {
    background: #c62828 !important;
    color: #fff !important;
    border-color: #c62828 !important;
}

.add-child-row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#add-child.icon-btn {
    background: #81c784 !important;
    color: #fff !important;
}

#add-child.icon-btn:hover {
    background: #388e3c !important;
    color: #fff !important;
    border-color: #388e3c !important;
}

@media (max-width: 600px) {
    .choice-btns {
        grid-template-columns: 1fr;
    }
}
