
/* TTV 2.0 – Formular, Ergebnisanzeige und Frageneditor (Version 1.8) */
.ttv20 {
    max-width:820px;
    margin:2rem auto;
    color:#49484A;
    font:inherit;
}

.ttv20 [hidden] {
    display:none!important;
}

.ttv20 * {
    box-sizing:border-box;
}

.ttv20 h2 {
    font-size:clamp(1.8rem,4vw,2.6rem);
    line-height:1.15;
    color:#49484A;
}

.ttv20 .lead {
    font-size:1.1rem;
    line-height:1.6;
}

.ttv20 .bar {
    height:8px;
    background:#E4E1D8;
    border-radius:12px;
    overflow:hidden;
    margin:18px 0;
}

.ttv20 .fill {
    height:100%;
    width:0;
    background:#CC8B21;
    transition:width .2s;
}

.ttv20 fieldset {
    border:0;
    padding:0;
    margin:0 0 24px;
}

.ttv20 legend {
    font-weight:700;
    font-size:1.15rem;
    margin-bottom:16px;
}

.ttv20 .card {
    margin-bottom:18px;
    border:1px solid #B3AFAB;
    border-radius:14px;
    padding:24px;
    background:#fff;
    box-shadow:0 8px 25px #49484A10;
}

.ttv20 .choice {
    display:block;
    padding:12px 16px;
    border:1px solid #E4E1D8;
    border-radius:10px;
    margin:9px 0;
    cursor:pointer;
    line-height:1.45;
}

.ttv20 .choice:has(input:checked) {
    border-color:#8A5307;
    background:#FFF8E7;
}

.ttv20 input[type=radio] {
    accent-color:#8A5307;
    margin-right:10px;
}

.ttv20 input[type=text],.ttv20 input[type=email] {
    display:block;
    width:100%;
    padding:12px;
    margin:6px 0 16px;
    border:1px solid #B3AFAB;
    border-radius:8px;
}

.ttv20 .buttons {
    display:flex;
    gap:12px;
    justify-content:space-between;
    margin-top:20px;
}

.ttv20 button {
    background:#8A5307;
    color:white;
    border:0;
    border-radius:9px;
    padding:12px 24px;
    cursor:pointer;
    font-weight:700;
}

.ttv20 button.secondary {
    background:#E4E1D8;
    color:#49484A;
}

.ttv20 button:focus-visible,.ttv20 input:focus-visible {
    outline:3px solid #CC8B21;
    outline-offset:2px;
}

.ttv20 .hint {
    color:#7A7878;
}

.ttv20 .error {
    color:#8a2118;
    font-weight:700;
}

.ttv20 .trap {
    position:absolute;
    left:-9999px;
}

.ttv20-result {
    max-width: 820px;
    margin: 2rem auto;
    color: #49484A;
}

.ttv20-result-row {
    margin: 1rem 0;
}

.ttv20-result-track {
    background: #E4E1D8;
    height: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.ttv20-result-fill {
    height: 100%;
}

.ttv20-result-fill--r {
    background: #A73C32;
}

.ttv20-result-fill--g {
    background: #4B8060;
}

.ttv20-result-fill--y {
    background: #CC8B21;
}

.ttv20-result-fill--b {
    background: #416C91;
}

.ttv20-table-scroll {
    overflow-x: auto;
}

.ttv20-result-table {
    width: 100%;
    border-collapse: collapse;
}

.ttv20-result-table th, .ttv20-result-table td {
    text-align: center;
}

.ttv20-result-table tbody th, .ttv20-result-table tbody td {
    border-top: 1px solid #E4E1D8;
    padding: 9px 4px;
}

.ttv20-result-table .ttv20-area {
    text-align: left;
}

.ttv20-result-note {
    margin-top: 1.5rem;
}

.ttv20-question-editor {
    width: 100%;
    max-width: 1100px;
    font-family: monospace;
}

