/* Break-even-ACoS-Rechner (Blog) - nur Darstellung, keine Daten */
.acos-calc {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-accent, rgba(29, 78, 216, 0.25));
    border-radius: var(--radius-lg, 16px);
    padding: 1.5rem;
    margin: 1.75rem 0;
    box-shadow: 0 1px 2px rgba(16, 42, 67, .04), 0 12px 32px rgba(16, 42, 67, .07);
}
.acos-calc h2 { margin-top: 0; }
.acos-calc-lead { color: var(--text-secondary, #425466); margin-bottom: 1rem; }
.acos-example-note {
    background: var(--bg-elevated, #e7eef7);
    border-radius: 10px;
    padding: .6rem .9rem;
    font-size: .88rem;
    color: var(--text-secondary, #425466);
    margin-bottom: 1.25rem;
}
.acos-fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.acos-fieldset legend {
    font-family: var(--font-display, inherit);
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-primary, #102a43);
    padding: 0;
    margin-bottom: .6rem;
}
.acos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.1rem; }
.acos-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.acos-field[hidden] { display: none; }
.acos-field label, .acos-field .acos-label {
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-primary, #102a43);
}
.acos-hint { font-size: .78rem; color: var(--text-muted, #556b82); line-height: 1.4; }
.acos-input-wrap { position: relative; display: flex; align-items: center; }
.acos-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    padding: .65rem 2.4rem .65rem .8rem;
    border: 1px solid rgba(16, 42, 67, .22);
    border-radius: 10px;
    font: inherit;
    font-size: 1rem;
    color: var(--text-primary, #102a43);
    background: #fff;
    min-height: 44px;
}
.acos-input-wrap input:focus { outline: 2px solid var(--accent, #1d4ed8); outline-offset: 1px; border-color: var(--accent, #1d4ed8); }
.acos-unit {
    position: absolute;
    right: .8rem;
    color: var(--text-muted, #556b82);
    pointer-events: none;
    font-size: .92rem;
}
.acos-radios { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; }
.acos-radios label { font-weight: 500; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; min-height: 44px; }
.acos-radios input { width: 1.1rem; height: 1.1rem; accent-color: var(--accent, #1d4ed8); }
.acos-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.acos-btn {
    font: inherit;
    font-size: .9rem;
    font-weight: 600;
    padding: .6rem 1rem;
    min-height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(16, 42, 67, .22);
    background: #fff;
    color: var(--text-primary, #102a43);
    cursor: pointer;
}
.acos-btn:hover { border-color: var(--accent, #1d4ed8); color: var(--accent, #1d4ed8); }
.acos-btn:focus-visible { outline: 2px solid var(--accent, #1d4ed8); outline-offset: 2px; }

.acos-results {
    background: var(--bg-surface, #eef3f9);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}
.acos-results h3 { margin: 0 0 .9rem; font-size: 1.05rem; }
.acos-messages:empty { display: none; }
.acos-msg { margin: 0 0 .6rem; padding: .6rem .8rem; border-radius: 8px; font-size: .9rem; line-height: 1.5; }
.acos-msg--error { background: #fdecea; color: #7a1a12; border-left: 3px solid var(--danger, #b42318); }
.acos-msg--warn { background: #fff4e0; color: #6b3d00; border-left: 3px solid var(--warning, #a15c00); }
.acos-msg--note { background: #fff; color: var(--text-secondary, #425466); border-left: 3px solid var(--accent, #1d4ed8); }
.acos-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 0; padding: 0; }
.acos-kpi {
    background: #fff;
    border-radius: 12px;
    padding: .85rem 1rem;
    border: 1px solid rgba(16, 42, 67, .08);
    min-width: 0;
}
.acos-kpi--main { grid-column: span 3; border-color: var(--border-accent, rgba(29, 78, 216, .35)); }
.acos-kpi dt { font-size: .8rem; color: var(--text-muted, #556b82); margin: 0 0 .25rem; font-weight: 600; }
.acos-kpi dd { margin: 0; font-family: var(--font-display, inherit); font-weight: 700; font-size: 1.35rem; color: var(--text-primary, #102a43); overflow-wrap: anywhere; }
.acos-kpi--main dd { font-size: 2.1rem; color: var(--accent, #1d4ed8); }
.acos-kpi--wide { grid-column: span 3; }
.acos-kpi--wide dd { font-size: 1.05rem; font-weight: 600; }
.acos-kpi small { display: block; margin-top: .2rem; color: var(--text-muted, #556b82); font-size: .75rem; font-weight: 400; font-family: inherit; }
.acos-kpi[hidden] { display: none; }
.acos-kpi[data-sign="pos"] dd { color: var(--success, #13795b); }
.acos-kpi[data-sign="neg"] dd { color: var(--danger, #b42318); }
.acos-results[data-state="loss"] .acos-kpi--main dd { color: var(--danger, #b42318); }
.acos-results[data-state="empty"] .acos-kpi dd { color: var(--text-muted, #556b82); }

.acos-details { margin-top: 1.25rem; border: 1px solid rgba(16, 42, 67, .12); border-radius: 12px; background: #fff; }
.acos-details summary { cursor: pointer; font-weight: 700; padding: .85rem 1rem; min-height: 44px; box-sizing: border-box; color: var(--text-primary, #102a43); }
.acos-details summary:focus-visible { outline: 2px solid var(--accent, #1d4ed8); outline-offset: 2px; border-radius: 12px; }
.acos-details-body { padding: 0 1rem 1rem; }
.acos-details-body ol { padding-left: 1.3rem; }
.acos-details-body code { background: var(--bg-elevated, #e7eef7); border-radius: 4px; padding: .1rem .35rem; font-size: .88rem; overflow-wrap: anywhere; }
.acos-breakdown { width: 100%; border-collapse: collapse; margin: .75rem 0 0; font-size: .92rem; }
.acos-breakdown td { padding: .35rem .4rem; border-bottom: 1px solid rgba(16, 42, 67, .08); }
.acos-breakdown td:last-child { text-align: right; white-space: nowrap; }
.acos-breakdown .acos-row-total td { font-weight: 700; border-top: 2px solid rgba(16, 42, 67, .25); border-bottom: 0; }
.acos-privacy { font-size: .8rem; color: var(--text-muted, #556b82); margin: 1rem 0 0; }

@media (max-width: 720px) {
    .acos-calc { padding: 1rem; }
    .acos-grid { grid-template-columns: minmax(0, 1fr); }
    .acos-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acos-kpi--main, .acos-kpi--wide { grid-column: span 2; }
    .acos-kpi--main dd { font-size: 1.8rem; }
}
.acos-field--full { grid-column: 1 / -1; }

/* ---- Schnellrechner (4 Eingaben) ---- */
/* kompakter Seitenkopf, damit Felder und Ergebnis mobil ohne langes Scrollen erreichbar sind */
.article-content:has(.acos-calc) .article-header { margin-bottom: 1rem; }
.article-content:has(.acos-calc) .article-meta { margin-bottom: .6rem; gap: .6rem; }
.article-content:has(.acos-calc) h1 { margin-bottom: .75rem; }
.article-content:has(.acos-calc) .article-intro { font-size: 1rem; line-height: 1.6; margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.acos-calc h2#acos-calc-title { margin-bottom: .4rem; }
.acos-grid--quick { margin-bottom: 1.25rem; }
.acos-check { display: flex; align-items: flex-start; gap: .5rem; font-size: .85rem; font-weight: 500; margin-top: .35rem; cursor: pointer; }
.acos-check input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--accent, #1d4ed8); }
.acos-results--quick { margin-top: 0; border: 1px solid var(--border-accent, rgba(29, 78, 216, .25)); }
.acos-kpis--quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acos-kpis--quick .acos-kpi--main { grid-column: span 2; }
.acos-kpi--half { grid-column: span 1; }
.acos-kpis--quick .acos-kpi--half dd { font-size: 1.15rem; }
.acos-sentence { margin: .9rem 0 0; font-weight: 600; color: var(--text-primary, #102a43); }
.acos-sentence[hidden] { display: none; }
.acos-quick-note { margin: .6rem 0 0; font-size: .8rem; color: var(--text-muted, #556b82); line-height: 1.45; }
.acos-formula-head { margin: .8rem 0 .2rem; }
.acos-details--detail { margin-top: 1.25rem; }
.acos-details--detail > .acos-details-body > .acos-results { margin-top: 1.25rem; }
@media (max-width: 720px) {
    .article-content:has(.acos-calc) h1 { font-size: 1.45rem; }
    .article-layout:has(.acos-calc) .toc-sidebar { display: none; }
    .article-layout:has(.acos-calc) .article-reading-time { display: none; }
    .acos-calc { margin: 1rem 0; padding: .9rem; }
    .acos-grid--quick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-bottom: .9rem; }
    .acos-grid--quick .acos-field:nth-child(-n+2) { grid-column: 1 / -1; }
    .acos-grid--quick .acos-field:nth-child(n+3) .acos-hint { display: none; }
    .acos-grid--quick .acos-field label { font-size: .82rem; }
    .acos-grid--quick .acos-field:nth-child(n+3) { justify-content: flex-end; }
    .acos-calc-lead { display: none; }
    .acos-results--quick { padding: .9rem; }
}
