.rotec-tg-rechner {
    --rtg-red: #b5121b;
    --rtg-red-dark: #861018;
    --rtg-dark: #18222c;
    --rtg-dark-soft: #263747;
    --rtg-border: #d7dde3;
    --rtg-border-strong: #bcc6cf;
    --rtg-light: #f4f7f9;
    --rtg-light-red: #fff5f5;
    --rtg-muted: #5d6873;
    --rtg-ok: #e9f7ed;
    --rtg-ok-strong: #287a3a;
    --rtg-warn: #fff7df;
    --rtg-warn-strong: #9b6800;
    --rtg-error: #fdecec;
    --rtg-white: #fff;
    width: min(100%, 1200px);
    margin: clamp(20px, 4vw, 48px) auto;
    color: var(--rtg-dark);
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(24, 34, 44, 0.12);
    font-size: 16px;
    line-height: 1.5;
    isolation: isolate;
    container-name: rtg-calculator;
    container-type: inline-size;
}

.rotec-tg-rechner,
.rotec-tg-rechner * {
    box-sizing: border-box;
}

.rotec-tg-rechner * {
    min-width: 0;
}

.rotec-tg-rechner h3,
.rotec-tg-rechner h4,
.rotec-tg-rechner h5,
.rotec-tg-rechner p,
.rotec-tg-rechner label,
.rotec-tg-rechner strong,
.rotec-tg-rechner small,
.rotec-tg-rechner dt,
.rotec-tg-rechner dd,
.rotec-tg-rechner button {
    overflow-wrap: anywhere;
}

.rotec-tg-rechner h3,
.rotec-tg-rechner h4,
.rotec-tg-rechner h5,
.rotec-tg-rechner p,
.rotec-tg-rechner ol,
.rotec-tg-rechner ul,
.rotec-tg-rechner dl,
.rotec-tg-rechner dd,
.rotec-tg-rechner fieldset {
    margin: 0;
}

.rotec-tg-rechner fieldset {
    padding: 0;
    border: 0;
}

.rotec-tg-rechner button,
.rotec-tg-rechner input,
.rotec-tg-rechner select,
.rotec-tg-rechner textarea {
    font: inherit;
}

.rotec-tg-rechner .rtg-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.rotec-tg-rechner .rtg-hidden {
    display: none !important;
}

.rotec-tg-rechner .rtg-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(20px, 4vw, 48px);
    padding: clamp(24px, 5vw, 48px);
    color: var(--rtg-white);
    background: linear-gradient(135deg, var(--rtg-dark) 0%, var(--rtg-dark-soft) 72%, #3a1c22 100%);
    border-radius: 15px 15px 0 0;
}

.rotec-tg-rechner .rtg-hero-copy {
    max-width: 760px;
}

.rotec-tg-rechner .rtg-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--rtg-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rotec-tg-rechner .rtg-hero .rtg-kicker {
    color: #ffbec2;
}

.rotec-tg-rechner .rtg-hero h3 {
    color: var(--rtg-white);
    font-size: clamp(1.55rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.rotec-tg-rechner .rtg-hero p {
    max-width: 720px;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(0.96rem, 1.5vw, 1.08rem);
    line-height: 1.65;
}

.rotec-tg-rechner .rtg-source-badge {
    flex: 0 0 auto;
    min-width: 152px;
    padding: 16px 19px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    text-align: center;
}

.rotec-tg-rechner .rtg-source-badge strong,
.rotec-tg-rechner .rtg-source-badge span {
    display: block;
}

.rotec-tg-rechner .rtg-source-badge strong {
    color: var(--rtg-white);
    font-size: 1.2rem;
}

.rotec-tg-rechner .rtg-source-badge span {
    margin-top: 2px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.rotec-tg-rechner .rtg-shell {
    padding: clamp(18px, 4vw, 42px);
    background: linear-gradient(180deg, #fff 0%, #fafbfd 100%);
    border-radius: 0 0 15px 15px;
}

.rotec-tg-rechner .rtg-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0;
    list-style: none;
}

.rotec-tg-rechner .rtg-progress li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    color: var(--rtg-muted);
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-progress span,
.rotec-tg-rechner .rtg-step-number {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--rtg-white);
    background: var(--rtg-red);
    border-radius: 50%;
    font-weight: 800;
}

.rotec-tg-rechner .rtg-progress strong {
    color: var(--rtg-dark);
    font-size: 0.94rem;
}

.rotec-tg-rechner .rtg-form {
    display: grid;
    gap: clamp(18px, 3vw, 28px);
    margin-top: 22px;
}

.rotec-tg-rechner .rtg-step {
    padding: clamp(18px, 3.5vw, 30px);
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(24, 34, 44, 0.055);
}

.rotec-tg-rechner .rtg-step-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 22px;
}

.rotec-tg-rechner .rtg-step-heading h4,
.rotec-tg-rechner .rtg-result-heading h4 {
    color: var(--rtg-dark);
    font-size: clamp(1.18rem, 2vw, 1.45rem);
    line-height: 1.25;
}

.rotec-tg-rechner .rtg-step-heading p {
    max-width: 780px;
    margin-top: 4px;
    color: var(--rtg-muted);
    line-height: 1.55;
}

.rotec-tg-rechner .rtg-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
}

.rotec-tg-rechner .rtg-choice {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    min-height: 76px;
    padding: 15px;
    border: 1px solid var(--rtg-border-strong);
    border-radius: 9px;
    background: var(--rtg-light);
    cursor: pointer;
}

.rotec-tg-rechner .rtg-choice:has(input:checked) {
    border-color: var(--rtg-red);
    background: var(--rtg-light-red);
    box-shadow: 0 0 0 2px rgba(181, 18, 27, 0.08);
}

.rotec-tg-rechner .rtg-choice input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: var(--rtg-red);
}

.rotec-tg-rechner .rtg-choice strong,
.rotec-tg-rechner .rtg-choice small {
    display: block;
}

.rotec-tg-rechner .rtg-choice strong {
    color: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-choice small {
    margin-top: 3px;
    color: var(--rtg-muted);
    font-size: 0.89rem;
    line-height: 1.4;
}

.rotec-tg-rechner .rtg-fields {
    display: grid;
    gap: 16px;
}

.rotec-tg-rechner .rtg-fields-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rotec-tg-rechner .rtg-fields-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rotec-tg-rechner .rtg-field-wide {
    grid-column: span 2;
}

.rotec-tg-rechner .rtg-field label {
    display: block;
    margin-bottom: 7px;
    color: var(--rtg-dark);
    font-size: 0.94rem;
    font-weight: 750;
    line-height: 1.35;
}

.rotec-tg-rechner .rtg-field label span {
    color: var(--rtg-red);
}

.rotec-tg-rechner .rtg-field input,
.rotec-tg-rechner .rtg-field select,
.rotec-tg-rechner .rtg-field textarea {
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    color: var(--rtg-dark);
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border-strong);
    border-radius: 7px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.rotec-tg-rechner .rtg-field input:hover,
.rotec-tg-rechner .rtg-field select:hover,
.rotec-tg-rechner .rtg-field textarea:hover {
    border-color: #8f9aa4;
}

.rotec-tg-rechner .rtg-field small {
    display: block;
    margin-top: 6px;
    color: var(--rtg-muted);
    font-size: 0.86rem;
    line-height: 1.4;
}

.rotec-tg-rechner input:focus-visible,
.rotec-tg-rechner select:focus-visible,
.rotec-tg-rechner textarea:focus-visible,
.rotec-tg-rechner button:focus-visible,
.rotec-tg-rechner a:focus-visible,
.rotec-tg-rechner summary:focus-visible,
.rotec-tg-rechner .rtg-result:focus-visible {
    outline: 3px solid rgba(181, 18, 27, 0.23);
    outline-offset: 2px;
}

.rotec-tg-rechner .rtg-check-panel {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding: 17px 18px;
    background: #fbfcfd;
    border: 1px solid var(--rtg-border);
    border-radius: 9px;
}

.rotec-tg-rechner .rtg-check-panel legend {
    padding: 0 7px;
    color: var(--rtg-dark);
    font-weight: 800;
}

.rotec-tg-rechner .rtg-check-panel > label,
.rotec-tg-rechner .rtg-check-panel > div:not(.rtg-group-error) label {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #35424e;
    line-height: 1.45;
    cursor: pointer;
}

.rotec-tg-rechner .rtg-check-panel input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--rtg-red);
}

.rotec-tg-rechner [data-section="opening-requirements"] {
    display: grid;
    gap: 10px;
    padding-left: 27px;
}

.rotec-tg-rechner .rtg-method-note,
.rotec-tg-rechner .rtg-dimension-help {
    margin-top: 16px;
    padding: 13px 15px;
    color: #3e4c58;
    background: var(--rtg-light);
    border-left: 4px solid var(--rtg-red);
    border-radius: 5px;
    font-size: 0.91rem;
    line-height: 1.5;
}

.rotec-tg-rechner .rtg-system-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 9px;
}

.rotec-tg-rechner .rtg-system-summary div {
    padding: 2px 0;
}

.rotec-tg-rechner .rtg-system-summary span,
.rotec-tg-rechner .rtg-system-summary strong {
    display: block;
}

.rotec-tg-rechner .rtg-system-summary span {
    color: var(--rtg-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.rotec-tg-rechner .rtg-system-summary strong {
    margin-top: 3px;
    color: var(--rtg-dark);
    font-size: 1.05rem;
}

.rotec-tg-rechner .rtg-system-summary p {
    grid-column: 1 / -1;
    padding-top: 12px;
    color: var(--rtg-muted);
    border-top: 1px solid var(--rtg-border);
    font-size: 0.89rem;
}

.rotec-tg-rechner .rtg-dimension-help {
    display: grid;
    gap: 3px;
    margin: 0 0 16px;
}

.rotec-tg-rechner .rtg-dimension-help strong {
    color: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-hood-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: start;
    gap: 22px;
}

.rotec-tg-rechner .rtg-hood-input-panel {
    min-width: 0;
}

.rotec-tg-rechner .rtg-hood-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rotec-tg-rechner .rtg-hood-rule {
    display: grid;
    gap: 3px;
    margin-top: 16px;
    padding: 14px 16px;
    color: #45525e;
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-hood-rule strong {
    color: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-hood-visualizer {
    position: sticky;
    top: 20px;
    padding: 17px;
    background: #f8fafb;
    border: 1px solid var(--rtg-border);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(24, 34, 44, 0.07);
}

.rotec-tg-rechner .rtg-visualizer-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.rotec-tg-rechner .rtg-visualizer-heading h5 {
    color: var(--rtg-dark);
    font-size: 1.08rem;
    line-height: 1.3;
}

.rotec-tg-rechner .rtg-hood-quantity {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: var(--rtg-white);
    background: var(--rtg-red);
    border-radius: 999px;
    font-size: 0.78rem;
}

.rotec-tg-rechner .rtg-visualizer-viewport {
    position: relative;
    width: 100%;
    margin-top: 13px;
    overflow: hidden;
    background: linear-gradient(180deg, #eef3f6 0%, #fff 70%);
    border: 1px solid var(--rtg-border-strong);
    border-radius: 8px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.rotec-tg-rechner .rtg-visualizer-viewport.rtg-is-dragging {
    cursor: grabbing;
}

.rotec-tg-rechner .rtg-visualizer-viewport svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 13 / 9;
}

.rotec-tg-rechner .rtg-visualizer-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--rtg-muted);
    text-align: center;
    pointer-events: none;
}

.rotec-tg-rechner .rtg-visualizer-placeholder[hidden] {
    display: none;
}

.rotec-tg-rechner .rtg-hood-face {
    stroke: #52616e;
    stroke-width: 2;
}

.rotec-tg-rechner .rtg-hood-face-a {
    fill: #dfe6ea;
}

.rotec-tg-rechner .rtg-hood-face-b {
    fill: #cbd5db;
}

.rotec-tg-rechner .rtg-hood-slat {
    stroke: #344451;
    stroke-width: 3;
    stroke-linecap: round;
}

.rotec-tg-rechner .rtg-hood-cover {
    fill: var(--rtg-dark-soft);
    stroke: var(--rtg-dark);
    stroke-width: 2;
}

.rotec-tg-rechner .rtg-hood-marker-line {
    stroke: var(--rtg-dark);
    stroke-width: 2;
    stroke-linecap: round;
}

.rotec-tg-rechner .rtg-hood-marker-badge {
    fill: var(--rtg-red);
    stroke: var(--rtg-white);
    stroke-width: 2;
}

.rotec-tg-rechner .rtg-hood-marker-cover .rtg-hood-marker-badge {
    fill: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-hood-marker-text {
    fill: var(--rtg-white);
    font-size: 12px;
    font-weight: 800;
    pointer-events: none;
}

.rotec-tg-rechner .rtg-visualizer-help,
.rotec-tg-rechner .rtg-visualizer-note {
    color: var(--rtg-muted);
    font-size: 0.8rem;
    line-height: 1.45;
}

.rotec-tg-rechner .rtg-visualizer-help {
    margin-top: 7px;
}

.rotec-tg-rechner .rtg-visualizer-controls {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 11px;
}

.rotec-tg-rechner .rtg-visualizer-controls button {
    min-height: 44px;
    padding: 7px;
    color: var(--rtg-dark);
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border-strong);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 800;
}

.rotec-tg-rechner .rtg-visualizer-controls button:hover {
    color: var(--rtg-red-dark);
    border-color: var(--rtg-red);
}

.rotec-tg-rechner .rtg-visualizer-meta {
    display: grid;
    gap: 8px;
    margin-top: 13px;
}

.rotec-tg-rechner .rtg-visualizer-meta > div {
    display: grid;
    grid-template-columns: minmax(90px, 0.32fr) 1fr;
    gap: 10px;
}

.rotec-tg-rechner .rtg-visualizer-meta dt {
    color: var(--rtg-muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.rotec-tg-rechner .rtg-visualizer-meta dd {
    color: var(--rtg-dark);
    font-size: 0.84rem;
    font-weight: 750;
}

.rotec-tg-rechner .rtg-visualizer-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 13px;
    padding: 0;
    list-style: none;
}

.rotec-tg-rechner .rtg-visualizer-legend li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 9px;
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 7px;
}

.rotec-tg-rechner .rtg-legend-marker {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    padding: 0 6px;
    color: var(--rtg-white);
    background: var(--rtg-red);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.rotec-tg-rechner .rtg-legend-marker[data-kind="cover"] {
    background: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-visualizer-legend strong,
.rotec-tg-rechner .rtg-visualizer-legend small {
    display: block;
}

.rotec-tg-rechner .rtg-visualizer-legend strong {
    color: var(--rtg-dark);
    font-size: 0.78rem;
    line-height: 1.35;
}

.rotec-tg-rechner .rtg-visualizer-legend small {
    margin-top: 2px;
    color: var(--rtg-muted);
    font-size: 0.76rem;
    line-height: 1.35;
}

.rotec-tg-rechner .rtg-visualizer-warning {
    margin-top: 12px;
    padding: 9px 10px;
    color: #46535f;
    background: var(--rtg-white);
    border-left: 3px solid var(--rtg-border-strong);
    border-radius: 4px;
    font-size: 0.82rem;
}

.rotec-tg-rechner .rtg-visualizer-warning[data-state="warning"] {
    color: #765000;
    background: var(--rtg-warn);
    border-left-color: var(--rtg-warn-strong);
}

.rotec-tg-rechner .rtg-visualizer-warning[data-state="ready"] {
    color: #236532;
    background: var(--rtg-ok);
    border-left-color: var(--rtg-ok-strong);
}

.rotec-tg-rechner .rtg-visualizer-note {
    margin-top: 9px;
}

.rotec-tg-rechner .rtg-field-rows {
    display: grid;
    gap: 12px;
}

.rotec-tg-rechner .rtg-field-row {
    display: grid;
    grid-template-columns: 36px minmax(100px, 0.65fr) repeat(2, minmax(160px, 1fr)) auto;
    align-items: start;
    gap: 12px;
    padding: 15px;
    background: #fbfcfd;
    border: 1px solid var(--rtg-border);
    border-radius: 9px;
}

.rotec-tg-rechner .rtg-row-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: 26px;
    color: var(--rtg-white);
    background: var(--rtg-dark-soft);
    border-radius: 50%;
    font-size: 0.86rem;
    font-weight: 800;
}

.rotec-tg-rechner .rtg-row-remove {
    min-height: 44px;
    margin-top: 26px;
    padding: 8px 12px;
    color: var(--rtg-red-dark);
    background: var(--rtg-white);
    border: 1px solid #dfb7ba;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 750;
}

.rotec-tg-rechner .rtg-row-remove:hover:not(:disabled) {
    background: var(--rtg-light-red);
}

.rotec-tg-rechner .rtg-row-remove:disabled {
    color: #8e969d;
    border-color: var(--rtg-border);
    cursor: not-allowed;
    opacity: 0.65;
}

.rotec-tg-rechner .rtg-row-actions,
.rotec-tg-rechner .rtg-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
}

.rotec-tg-rechner .rtg-row-actions {
    justify-content: space-between;
    margin-top: 13px;
}

.rotec-tg-rechner .rtg-row-actions > span,
.rotec-tg-rechner .rtg-engine {
    color: var(--rtg-muted);
    font-size: 0.9rem;
}

.rotec-tg-rechner .rtg-form-actions {
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--rtg-border);
}

.rotec-tg-rechner .rtg-button {
    min-height: 48px;
    padding: 11px 19px;
    border: 1px solid transparent;
    border-radius: 7px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.rotec-tg-rechner .rtg-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.rotec-tg-rechner .rtg-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.rotec-tg-rechner .rtg-button-primary {
    color: var(--rtg-white);
    background: linear-gradient(180deg, #c41822 0%, var(--rtg-red) 100%);
    box-shadow: 0 7px 16px rgba(181, 18, 27, 0.22);
}

.rotec-tg-rechner .rtg-button-primary:hover {
    background: var(--rtg-red-dark);
}

.rotec-tg-rechner .rtg-button-secondary {
    color: var(--rtg-dark);
    background: #edf0f2;
    border-color: var(--rtg-border);
}

.rotec-tg-rechner .rtg-button-add {
    color: var(--rtg-red-dark);
    background: var(--rtg-white);
    border-color: #d5a9ac;
}

.rotec-tg-rechner .rtg-field-invalid input,
.rotec-tg-rechner .rtg-field-invalid select,
.rotec-tg-rechner .rtg-group-invalid {
    border-color: var(--rtg-red);
    background-color: #fff8f8;
    box-shadow: 0 0 0 3px rgba(181, 18, 27, 0.1);
}

.rotec-tg-rechner .rtg-field-invalid label,
.rotec-tg-rechner .rtg-group-invalid legend {
    color: var(--rtg-red-dark);
}

.rotec-tg-rechner .rtg-field-error,
.rotec-tg-rechner .rtg-group-error {
    margin-top: 7px;
    padding: 8px 10px;
    color: #7d0b12;
    background: var(--rtg-error);
    border-left: 3px solid var(--rtg-red);
    border-radius: 3px;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.4;
}

.rotec-tg-rechner .rtg-result {
    margin-top: clamp(24px, 4vw, 40px);
    padding-top: clamp(22px, 4vw, 34px);
    border-top: 2px solid #edf0f2;
    scroll-margin-top: 24px;
}

.rotec-tg-rechner .rtg-result-heading {
    margin-bottom: 15px;
}

.rotec-tg-rechner .rtg-status {
    display: grid;
    gap: 4px;
    padding: 17px 18px;
    color: var(--rtg-dark);
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-left: 6px solid var(--rtg-muted);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-status strong {
    font-size: 1.08rem;
}

.rotec-tg-rechner .rtg-status[data-level="green"] {
    background: var(--rtg-ok);
    border-color: #b8ddc1;
    border-left-color: var(--rtg-ok-strong);
}

.rotec-tg-rechner .rtg-status[data-level="amber"] {
    background: var(--rtg-warn);
    border-color: #efdca6;
    border-left-color: var(--rtg-warn-strong);
}

.rotec-tg-rechner .rtg-status[data-level="red"] {
    color: var(--rtg-white);
    background: var(--rtg-red);
    border-color: var(--rtg-red-dark);
    border-left-color: var(--rtg-red-dark);
}

.rotec-tg-rechner .rtg-status[data-level="red"] span {
    color: var(--rtg-white);
}

.rotec-tg-rechner .rtg-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 16px;
}

.rotec-tg-rechner .rtg-metric {
    min-height: 142px;
    padding: 16px;
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 9px;
}

.rotec-tg-rechner .rtg-metric-primary {
    background: linear-gradient(135deg, #fff 0%, var(--rtg-light-red) 100%);
    border-color: rgba(181, 18, 27, 0.28);
}

.rotec-tg-rechner .rtg-result[data-level="red"] .rtg-metric {
    background: var(--rtg-white);
    border: 2px solid var(--rtg-red);
    box-shadow: inset 0 5px 0 var(--rtg-red);
}

.rotec-tg-rechner .rtg-result[data-level="red"] .rtg-metric strong {
    color: var(--rtg-red-dark);
}

.rotec-tg-rechner .rtg-metric span,
.rotec-tg-rechner .rtg-metric strong,
.rotec-tg-rechner .rtg-metric small {
    display: block;
}

.rotec-tg-rechner .rtg-metric span {
    color: #4c5965;
    font-size: 0.87rem;
    font-weight: 750;
    line-height: 1.4;
}

.rotec-tg-rechner .rtg-metric strong {
    margin: 10px 0 7px;
    color: var(--rtg-dark);
    font-size: clamp(1.25rem, 2vw, 1.58rem);
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.rotec-tg-rechner .rtg-metric small {
    color: var(--rtg-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.rotec-tg-rechner .rtg-delta {
    display: grid;
    grid-template-columns: minmax(160px, 1fr) auto;
    gap: 3px 18px;
    align-items: center;
    margin-top: 14px;
    padding: 15px 17px;
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-delta strong {
    grid-row: span 2;
    color: var(--rtg-dark);
    font-size: 1.35rem;
}

.rotec-tg-rechner .rtg-delta small {
    color: var(--rtg-muted);
}

.rotec-tg-rechner .rtg-delta[data-level="green"] {
    background: var(--rtg-ok);
    border-color: #b8ddc1;
}

.rotec-tg-rechner .rtg-delta[data-level="amber"] {
    background: var(--rtg-warn);
    border-color: #efdca6;
}

.rotec-tg-rechner .rtg-delta[data-level="red"] {
    background: var(--rtg-white);
    border: 2px solid var(--rtg-red);
    border-left-width: 8px;
}

.rotec-tg-rechner .rtg-details {
    margin-top: 16px;
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-details summary {
    padding: 14px 16px;
    color: var(--rtg-dark);
    cursor: pointer;
    font-weight: 800;
}

.rotec-tg-rechner .rtg-details dl {
    padding: 0 16px 15px;
}

.rotec-tg-rechner .rtg-details dl > div {
    display: grid;
    grid-template-columns: minmax(170px, 0.32fr) 1fr;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--rtg-border);
}

.rotec-tg-rechner .rtg-details dt {
    color: var(--rtg-dark);
    font-weight: 750;
}

.rotec-tg-rechner .rtg-details dd {
    color: #44515d;
    overflow-wrap: anywhere;
}

.rotec-tg-rechner .rtg-details a {
    color: var(--rtg-red-dark);
    font-weight: 750;
}

.rotec-tg-rechner .rtg-scope-note {
    margin-top: 16px;
    padding: 14px 16px;
    color: #46535f;
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 7px;
    font-size: 0.9rem;
}

.rotec-tg-rechner .rtg-scope-note strong {
    color: var(--rtg-dark);
}

.rotec-tg-rechner .rtg-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 18px;
    color: var(--rtg-white);
    background: var(--rtg-dark);
    border-radius: 9px;
}

.rotec-tg-rechner .rtg-contact strong,
.rotec-tg-rechner .rtg-contact span {
    display: block;
}

.rotec-tg-rechner .rtg-contact span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.rotec-tg-rechner .rtg-contact button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 16px;
    color: var(--rtg-white);
    background: var(--rtg-red);
    border: 0;
    border-radius: 6px;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}

.rotec-tg-rechner .rtg-contact button:hover:not(:disabled) {
    background: #d51a25;
}

.rotec-tg-rechner .rtg-contact button:disabled {
    color: rgba(255, 255, 255, 0.72);
    background: #68737d;
    cursor: not-allowed;
}

.rotec-tg-rechner .rtg-contact-panel {
    margin-top: 16px;
    padding: clamp(18px, 3.5vw, 30px);
    background: var(--rtg-white);
    border: 1px solid var(--rtg-border);
    border-radius: 10px;
    box-shadow: 0 7px 22px rgba(24, 34, 44, 0.055);
}

.rotec-tg-rechner .rtg-contact-panel[hidden] {
    display: none !important;
}

.rotec-tg-rechner .rtg-contact-panel-heading h4 {
    color: var(--rtg-dark);
    font-size: clamp(1.15rem, 2vw, 1.4rem);
}

.rotec-tg-rechner .rtg-contact-panel-heading p {
    max-width: 780px;
    margin-top: 6px;
    color: var(--rtg-muted);
}

.rotec-tg-rechner .rtg-contact-calculation {
    margin-top: 18px;
    padding: 16px;
    background: var(--rtg-light);
    border: 1px solid var(--rtg-border);
    border-radius: 8px;
}

.rotec-tg-rechner .rtg-contact-calculation h5 {
    margin: 0 0 11px;
    color: var(--rtg-dark);
    font-size: 1rem;
}

.rotec-tg-rechner .rtg-contact-calculation dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.rotec-tg-rechner .rtg-contact-calculation dl > div {
    padding-left: 10px;
    border-left: 3px solid var(--rtg-red);
}

.rotec-tg-rechner .rtg-contact-calculation dt,
.rotec-tg-rechner .rtg-contact-calculation dd {
    overflow-wrap: anywhere;
}

.rotec-tg-rechner .rtg-contact-calculation dt {
    color: var(--rtg-muted);
    font-size: 0.8rem;
    font-weight: 750;
}

.rotec-tg-rechner .rtg-contact-calculation dd {
    margin-top: 2px;
    color: var(--rtg-dark);
    font-weight: 800;
}

.rotec-tg-rechner .rtg-contact-form {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.rotec-tg-rechner .rtg-contact-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rotec-tg-rechner .rtg-contact-fields .rtg-field-wide,
.rotec-tg-rechner .rtg-contact-consent,
.rotec-tg-rechner .rtg-contact-actions,
.rotec-tg-rechner .rtg-contact-status {
    grid-column: 1 / -1;
}

.rotec-tg-rechner .rtg-field textarea {
    min-height: 126px;
    resize: vertical;
}

.rotec-tg-rechner .rtg-contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.rotec-tg-rechner .rtg-contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #35424e;
    cursor: pointer;
}

.rotec-tg-rechner .rtg-contact-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--rtg-red);
}

.rotec-tg-rechner .rtg-contact-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rotec-tg-rechner .rtg-contact-status {
    min-height: 24px;
    color: var(--rtg-dark);
    font-weight: 750;
}

.rotec-tg-rechner .rtg-contact-status[data-state="success"] {
    color: var(--rtg-ok-strong);
}

.rotec-tg-rechner .rtg-contact-status[data-state="error"] {
    color: var(--rtg-red-dark);
}

@media (max-width: 1020px) {
    .rotec-tg-rechner .rtg-fields-three,
    .rotec-tg-rechner .rtg-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotec-tg-rechner .rtg-field-wide {
        grid-column: 1 / -1;
    }

    .rotec-tg-rechner .rtg-contact-calculation dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotec-tg-rechner .rtg-hood-workspace {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-hood-visualizer {
        position: static;
        order: initial;
    }
}

@media (max-width: 820px) {
    .rotec-tg-rechner .rtg-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotec-tg-rechner .rtg-row-index {
        grid-column: 1;
        grid-row: 1;
        margin-top: 0;
    }

    .rotec-tg-rechner .rtg-row-remove {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-top: 0;
    }
}

@media (max-width: 700px) {
    .rotec-tg-rechner .rtg-hero,
    .rotec-tg-rechner .rtg-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-source-badge {
        min-width: 0;
        text-align: left;
    }

    .rotec-tg-rechner .rtg-progress strong {
        display: none;
    }

    .rotec-tg-rechner .rtg-progress li {
        justify-content: center;
        padding: 9px;
    }

    .rotec-tg-rechner .rtg-choice-grid,
    .rotec-tg-rechner .rtg-fields-two,
    .rotec-tg-rechner .rtg-fields-three,
    .rotec-tg-rechner .rtg-system-summary,
    .rotec-tg-rechner .rtg-metrics {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-field-wide {
        grid-column: auto;
    }

    .rotec-tg-rechner .rtg-contact button {
        width: 100%;
    }

    .rotec-tg-rechner .rtg-contact-calculation dl,
    .rotec-tg-rechner .rtg-contact-fields {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-contact-fields .rtg-field-wide,
    .rotec-tg-rechner .rtg-contact-consent,
    .rotec-tg-rechner .rtg-contact-actions,
    .rotec-tg-rechner .rtg-contact-status {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .rotec-tg-rechner {
        margin: 16px auto;
        border-radius: 12px;
    }

    .rotec-tg-rechner .rtg-hero,
    .rotec-tg-rechner .rtg-shell,
    .rotec-tg-rechner .rtg-step {
        padding: 17px;
    }

    .rotec-tg-rechner .rtg-hero {
        border-radius: 11px 11px 0 0;
    }

    .rotec-tg-rechner .rtg-shell {
        border-radius: 0 0 11px 11px;
    }

    .rotec-tg-rechner .rtg-step-heading {
        gap: 10px;
    }

    .rotec-tg-rechner .rtg-field-row {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .rotec-tg-rechner .rtg-hood-fields,
    .rotec-tg-rechner .rtg-visualizer-meta > div {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-visualizer-heading {
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-visualizer-controls [data-action="reset-view"] {
        width: 100%;
    }

    .rotec-tg-rechner .rtg-row-index,
    .rotec-tg-rechner .rtg-row-remove {
        grid-column: 1;
    }

    .rotec-tg-rechner .rtg-row-remove {
        grid-row: auto;
        width: 100%;
    }

    .rotec-tg-rechner [data-section="opening-requirements"] {
        padding-left: 0;
    }

    .rotec-tg-rechner .rtg-row-actions,
    .rotec-tg-rechner .rtg-form-actions,
    .rotec-tg-rechner .rtg-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-button,
    .rotec-tg-rechner .rtg-engine,
    .rotec-tg-rechner .rtg-row-actions > span {
        width: 100%;
        text-align: center;
    }

    .rotec-tg-rechner .rtg-delta,
    .rotec-tg-rechner .rtg-details dl > div {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-delta strong {
        grid-row: auto;
    }
}

@container rtg-calculator (max-width: 900px) {
    .rotec-tg-rechner .rtg-hood-workspace {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-hood-visualizer {
        position: static;
        order: initial;
    }

    .rotec-tg-rechner .rtg-fields-three,
    .rotec-tg-rechner .rtg-metrics,
    .rotec-tg-rechner .rtg-contact-calculation dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotec-tg-rechner .rtg-field-wide {
        grid-column: 1 / -1;
    }
}

@container rtg-calculator (max-width: 720px) {
    .rotec-tg-rechner .rtg-hero,
    .rotec-tg-rechner .rtg-contact {
        align-items: flex-start;
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-source-badge {
        min-width: 0;
        text-align: left;
    }

    .rotec-tg-rechner .rtg-progress strong {
        display: none;
    }

    .rotec-tg-rechner .rtg-progress li {
        justify-content: center;
        padding: 9px;
    }

    .rotec-tg-rechner .rtg-choice-grid,
    .rotec-tg-rechner .rtg-fields-two,
    .rotec-tg-rechner .rtg-fields-three,
    .rotec-tg-rechner .rtg-system-summary,
    .rotec-tg-rechner .rtg-hood-fields,
    .rotec-tg-rechner .rtg-metrics,
    .rotec-tg-rechner .rtg-contact-calculation dl,
    .rotec-tg-rechner .rtg-contact-fields {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-field-wide,
    .rotec-tg-rechner .rtg-contact-fields .rtg-field-wide,
    .rotec-tg-rechner .rtg-contact-consent,
    .rotec-tg-rechner .rtg-contact-actions,
    .rotec-tg-rechner .rtg-contact-status {
        grid-column: auto;
    }

    .rotec-tg-rechner .rtg-contact button {
        width: 100%;
    }

    .rotec-tg-rechner .rtg-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rotec-tg-rechner .rtg-row-index {
        grid-column: 1;
        grid-row: 1;
        margin-top: 0;
    }

    .rotec-tg-rechner .rtg-row-remove {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        margin-top: 0;
    }
}

@container rtg-calculator (max-width: 520px) {
    .rotec-tg-rechner .rtg-hero,
    .rotec-tg-rechner .rtg-shell,
    .rotec-tg-rechner .rtg-step,
    .rotec-tg-rechner .rtg-contact-panel {
        padding: 17px;
    }

    .rotec-tg-rechner .rtg-visualizer-heading {
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-visualizer-legend,
    .rotec-tg-rechner .rtg-visualizer-meta > div,
    .rotec-tg-rechner .rtg-delta,
    .rotec-tg-rechner .rtg-details dl > div {
        grid-template-columns: 1fr;
    }

    .rotec-tg-rechner .rtg-visualizer-controls button,
    .rotec-tg-rechner .rtg-contact button {
        width: 100%;
    }

    .rotec-tg-rechner .rtg-field-row {
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .rotec-tg-rechner .rtg-row-index,
    .rotec-tg-rechner .rtg-row-remove {
        grid-column: 1;
    }

    .rotec-tg-rechner .rtg-row-remove {
        grid-row: auto;
        width: 100%;
    }

    .rotec-tg-rechner [data-section="opening-requirements"] {
        padding-left: 0;
    }

    .rotec-tg-rechner .rtg-row-actions,
    .rotec-tg-rechner .rtg-form-actions,
    .rotec-tg-rechner .rtg-contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .rotec-tg-rechner .rtg-button,
    .rotec-tg-rechner .rtg-engine,
    .rotec-tg-rechner .rtg-row-actions > span {
        width: 100%;
        text-align: center;
    }

    .rotec-tg-rechner .rtg-delta strong {
        grid-row: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rotec-tg-rechner *,
    .rotec-tg-rechner *::before,
    .rotec-tg-rechner *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .rotec-tg-rechner .rtg-button:hover {
        transform: none;
    }
}

@media (forced-colors: active) {
    .rotec-tg-rechner .rtg-step-number,
    .rotec-tg-rechner .rtg-progress span {
        border: 1px solid ButtonText;
    }
}
