/**
 * Immobilien Bewertung - Frontend-Design
 *
 * Eigenständiges Stylesheet: kein Bootstrap, kein FontAwesome, keine
 * Webfonts von fremden Servern. Alles ist unter .ib-app gescoped, damit
 * das Theme des Kunden nichts überschreibt - und umgekehrt.
 *
 * Farben kommen als CSS-Variablen aus dem Shortcode (--ib-primary /
 * --ib-secondary) und werden am Container gesetzt.
 */

/* =========================================================
   1. Tokens
   ========================================================= */

.ib-app {
    --ib-primary: #4158D0;
    --ib-secondary: #C850C0;

    --ib-surface: #ffffff;
    --ib-surface-2: #f7f8fc;
    --ib-surface-3: #eef0f8;
    --ib-page: #ffffff;

    --ib-text: #151a2d;
    --ib-text-muted: #626a86;
    --ib-border: #e3e6f0;
    --ib-border-strong: #cfd4e6;

    --ib-danger: #d92d20;
    --ib-danger-soft: #fef3f2;
    --ib-success: #067647;
    --ib-success-soft: #ecfdf3;

    --ib-radius-lg: 26px;
    --ib-radius-md: 18px;
    --ib-radius-sm: 12px;

    --ib-shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
    --ib-shadow-md: 0 8px 24px -12px rgba(16, 24, 40, .18);
    --ib-shadow-lg: 0 32px 64px -32px rgba(16, 24, 40, .32);

    --ib-gradient: linear-gradient(120deg, var(--ib-primary), var(--ib-secondary));

    /* Abgeleitete Farben: erst ein statischer Fallback, dann color-mix.
       Browser ohne color-mix (Chrome < 111) behalten den Fallback. */
    --ib-ring: 0 0 0 4px rgba(65, 88, 208, .18);
    --ib-ring: 0 0 0 4px color-mix(in srgb, var(--ib-primary) 18%, transparent);

    --ib-primary-soft: rgba(65, 88, 208, .06);
    --ib-primary-soft: color-mix(in srgb, var(--ib-primary) 6%, var(--ib-surface));

    --ib-primary-tint: rgba(65, 88, 208, .12);
    --ib-primary-tint: color-mix(in srgb, var(--ib-primary) 12%, var(--ib-surface));

    --ib-primary-hover: rgba(65, 88, 208, .5);
    --ib-primary-hover: color-mix(in srgb, var(--ib-primary) 45%, var(--ib-border));

    --ib-primary-glow: rgba(65, 88, 208, .45);
    --ib-primary-glow: color-mix(in srgb, var(--ib-primary) 70%, transparent);

    --ib-danger-border: rgba(217, 45, 32, .3);
    --ib-danger-border: color-mix(in srgb, var(--ib-danger) 30%, transparent);

    --ib-success-border: rgba(6, 118, 71, .3);
    --ib-success-border: color-mix(in srgb, var(--ib-success) 30%, transparent);

    --ib-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ib-ease: cubic-bezier(.2, .7, .3, 1);

    box-sizing: border-box;
    color: var(--ib-text);
    font-family: var(--ib-font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    display: block;
    width: 100%;
    margin: 0 auto;
    max-width: 1000px;
}

.ib-app *,
.ib-app *::before,
.ib-app *::after {
    box-sizing: inherit;
}

/* Fallback, wenn color-mix nicht unterstützt wird. */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .ib-app {
        --ib-ring: 0 0 0 4px rgba(65, 88, 208, .18);
    }
}

.ib-theme-dark {
    --ib-surface: #171a26;
    --ib-surface-2: #1e2230;
    --ib-surface-3: #262b3b;
    --ib-page: #10121a;

    --ib-text: #eef0f7;
    --ib-text-muted: #a2a9bf;
    --ib-border: #2c3143;
    --ib-border-strong: #3a4157;

    --ib-danger-soft: #2a1616;
    --ib-success-soft: #10261c;

    --ib-shadow-lg: 0 32px 64px -32px rgba(0, 0, 0, .8);
}

/* =========================================================
   2. Grundgerüst
   ========================================================= */

.ib-shell {
    background: var(--ib-surface);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-lg);
    box-shadow: var(--ib-shadow-lg);
    overflow: hidden;
}

.ib-app h2,
.ib-app h3,
.ib-app p,
.ib-app ul {
    margin: 0;
}

.ib-app ul {
    padding: 0;
    list-style: none;
}

.ib-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;
}

/* =========================================================
   3. Kopfbereich
   ========================================================= */

.ib-header {
    position: relative;
    padding: 28px 32px 20px;
    background: var(--ib-surface-2);
    background:
        radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ib-primary) 10%, transparent), transparent 60%),
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ib-secondary) 10%, transparent), transparent 60%),
        var(--ib-surface-2);
    border-bottom: 1px solid var(--ib-border);
}

.ib-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ib-gradient);
}

.ib-header-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.ib-badge {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--ib-primary);
    background: var(--ib-primary-tint);
    border-radius: 999px;
}

.ib-header-title h2 {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.ib-value-chip {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 18px;
    background: var(--ib-surface);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-md);
    box-shadow: var(--ib-shadow-sm);
    animation: ib-pop .3s var(--ib-ease);
}

.ib-value-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ib-text-muted);
}

.ib-value-amount {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    background: var(--ib-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Fortschritt */

.ib-progress {
    margin-top: 22px;
}

.ib-progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ib-text-muted);
}

.ib-progress-track {
    height: 6px;
    background: var(--ib-surface-3);
    border-radius: 999px;
    overflow: hidden;
}

.ib-progress-bar {
    width: 0;
    height: 100%;
    background: var(--ib-gradient);
    border-radius: inherit;
    transition: width .45s var(--ib-ease);
}

/* =========================================================
   4. Schritte
   ========================================================= */

.ib-body {
    position: relative;
    padding: 32px;
}

.ib-step {
    display: none;
}

.ib-step.is-active {
    display: block;
    animation: ib-step-in .35s var(--ib-ease);
}

.ib-flow[hidden] {
    display: none;
}

.ib-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ib-primary);
}

.ib-headline {
    margin-top: 6px !important;
    margin-bottom: 22px !important;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}

.ib-hint {
    margin-top: 16px !important;
    font-size: 14px;
    color: var(--ib-text-muted);
}

/* =========================================================
   5. Auswahlkacheln
   ========================================================= */

.ib-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.ib-options-lg {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.ib-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 14px;
    text-align: center;
    background: var(--ib-surface);
    border: 1.5px solid var(--ib-border);
    border-radius: var(--ib-radius-md);
    cursor: pointer;
    transition: transform .2s var(--ib-ease), border-color .2s, box-shadow .2s, background-color .2s;
    /* Reset für <button>-Varianten */
    font: inherit;
    color: inherit;
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.ib-option:hover {
    transform: translateY(-3px);
    border-color: var(--ib-primary-hover);
    box-shadow: var(--ib-shadow-md);
}

.ib-option:active {
    transform: translateY(-1px);
}

.ib-option-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.ib-option-input:focus-visible ~ .ib-option-media,
.ib-option:focus-visible {
    outline: none;
    box-shadow: var(--ib-ring);
    border-radius: var(--ib-radius-md);
}

.ib-option-media {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: var(--ib-surface-2);
    border-radius: 50%;
    transition: background-color .2s, transform .25s var(--ib-ease);
}

.ib-option-media img {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
}

.ib-option-initial {
    font-size: 22px;
    font-weight: 700;
    color: var(--ib-primary);
}

.ib-option-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    hyphens: auto;
}

.ib-option-meta {
    font-size: 12px;
    color: var(--ib-text-muted);
}

.ib-option-check {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    color: #fff;
    background: var(--ib-primary);
    border-radius: 50%;
    opacity: 0;
    transform: scale(.6);
    transition: opacity .2s, transform .2s var(--ib-ease);
}

.ib-option-check svg {
    width: 13px;
    height: 13px;
}

/* Ausgewählter Zustand */
.ib-option-input:checked ~ .ib-option-check {
    opacity: 1;
    transform: scale(1);
}

.ib-option:has(.ib-option-input:checked) {
    border-color: var(--ib-primary);
    background: var(--ib-primary-soft);
    box-shadow: var(--ib-shadow-md);
}

.ib-option:has(.ib-option-input:checked) .ib-option-media {
    background: var(--ib-primary-tint);
    transform: scale(1.05);
}

/* Fallback für Browser ohne :has() */
.ib-option.is-selected {
    border-color: var(--ib-primary);
    background: var(--ib-primary-soft);
    box-shadow: var(--ib-shadow-md);
}

.ib-option.is-selected .ib-option-check {
    opacity: 1;
    transform: scale(1);
}

/* =========================================================
   6. Schieberegler
   ========================================================= */

.ib-slider {
    padding: 26px;
    background: var(--ib-surface-2);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-md);
}

.ib-slider-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-bottom: 22px;
}

.ib-slider-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    background: var(--ib-surface);
    border: 1px solid var(--ib-border);
    border-radius: 50%;
    flex: none;
}

.ib-slider-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.ib-slider-readout {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ib-number {
    width: 5.5ch;
    padding: 4px 0;
    font-family: inherit;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -.03em;
    text-align: right;
    color: var(--ib-text);
    background: transparent;
    border: none;
    border-bottom: 2px dashed var(--ib-border-strong);
    border-radius: 0;
    -moz-appearance: textfield;
    appearance: textfield;
}

.ib-number::-webkit-outer-spin-button,
.ib-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ib-number:focus {
    outline: none;
    border-bottom-color: var(--ib-primary);
}

.ib-unit {
    font-size: 20px;
    font-weight: 600;
    color: var(--ib-text-muted);
}

.ib-range {
    --ib-fill: 50%;
    width: 100%;
    height: 26px;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.ib-range:focus {
    outline: none;
}

.ib-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ib-primary) 0%, var(--ib-secondary) var(--ib-fill), var(--ib-surface-3) var(--ib-fill));
}

.ib-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: var(--ib-surface-3);
}

.ib-range::-moz-range-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--ib-gradient);
}

.ib-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 26px;
    height: 26px;
    margin-top: -9px;
    background: var(--ib-surface);
    border: 3px solid var(--ib-primary);
    border-radius: 50%;
    box-shadow: var(--ib-shadow-md);
    transition: transform .15s var(--ib-ease);
}

.ib-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    background: var(--ib-surface);
    border: 3px solid var(--ib-primary);
    border-radius: 50%;
    box-shadow: var(--ib-shadow-md);
}

.ib-range:hover::-webkit-slider-thumb,
.ib-range:focus-visible::-webkit-slider-thumb {
    transform: scale(1.12);
}

.ib-range:focus-visible::-webkit-slider-thumb {
    box-shadow: var(--ib-ring);
}

.ib-slider-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ib-text-muted);
}

/* =========================================================
   7. Eingabefelder
   ========================================================= */

.ib-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ib-field {
    position: relative;
}

.ib-field-third {
    grid-column: span 1;
}

.ib-field-two-thirds {
    grid-column: span 2;
}

.ib-field-full {
    grid-column: 1 / -1;
    max-width: 480px;
}

.ib-input {
    width: 100%;
    padding: 22px 16px 8px;
    font-family: inherit;
    font-size: 16px;
    color: var(--ib-text);
    background: var(--ib-surface);
    border: 1.5px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    transition: border-color .2s, box-shadow .2s;
}

.ib-input:hover {
    border-color: var(--ib-border-strong);
}

.ib-input:focus {
    outline: none;
    border-color: var(--ib-primary);
    box-shadow: var(--ib-ring);
}

.ib-label {
    position: absolute;
    top: 15px;
    left: 17px;
    font-size: 15px;
    color: var(--ib-text-muted);
    pointer-events: none;
    transition: transform .18s var(--ib-ease), font-size .18s var(--ib-ease), color .18s;
    transform-origin: left top;
}

.ib-input:focus + .ib-label,
.ib-input:not(:placeholder-shown) + .ib-label {
    transform: translateY(-9px) scale(.78);
    color: var(--ib-primary);
}

.ib-field.has-error .ib-input {
    border-color: var(--ib-danger);
    background: var(--ib-danger-soft);
}

.ib-field.has-error .ib-label {
    color: var(--ib-danger);
}

/* Einwilligung */

.ib-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 22px;
    padding: 16px 18px;
    font-size: 14px;
    line-height: 1.5;
    background: var(--ib-surface-2);
    border: 1.5px solid var(--ib-border);
    border-radius: var(--ib-radius-sm);
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.ib-consent:hover {
    border-color: var(--ib-border-strong);
}

.ib-consent input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.ib-consent-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    color: transparent;
    background: var(--ib-surface);
    border: 1.5px solid var(--ib-border-strong);
    border-radius: 6px;
    transition: background-color .2s, border-color .2s, color .2s;
}

.ib-consent-box svg {
    width: 14px;
    height: 14px;
}

.ib-consent input:checked ~ .ib-consent-box {
    color: #fff;
    background: var(--ib-primary);
    border-color: var(--ib-primary);
}

.ib-consent input:focus-visible ~ .ib-consent-box {
    box-shadow: var(--ib-ring);
}

.ib-consent.has-error {
    border-color: var(--ib-danger);
    background: var(--ib-danger-soft);
}

.ib-consent a {
    color: var(--ib-primary);
    text-decoration: underline;
}

.ib-privacy {
    margin-top: 16px;
    padding: 14px 18px;
    font-size: 14px;
    color: var(--ib-text-muted);
    background: var(--ib-surface-2);
    border-radius: var(--ib-radius-sm);
}

.ib-privacy summary {
    font-weight: 600;
    color: var(--ib-text);
    cursor: pointer;
}

.ib-privacy ul {
    margin: 12px 0 !important;
    padding-left: 18px !important;
    list-style: disc;
}

.ib-privacy li {
    margin-bottom: 4px;
}

/* =========================================================
   8. Zusammenfassung
   ========================================================= */

.ib-summary {
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-md);
    overflow: hidden;
}

.ib-summary-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ib-border);
    background: var(--ib-surface);
}

.ib-summary-row:last-child {
    border-bottom: none;
}

.ib-summary-row:nth-child(odd) {
    background: var(--ib-surface-2);
}

.ib-summary-label {
    flex: 0 0 38%;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--ib-text-muted);
}

.ib-summary-value {
    flex: 1;
    font-weight: 600;
    word-break: break-word;
}

.ib-summary-value.is-empty {
    font-weight: 400;
    color: var(--ib-text-muted);
}

.ib-summary-edit {
    flex: none;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ib-primary);
    background: transparent;
    border: 1px solid var(--ib-border-strong);
    border-radius: 999px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s;
}

.ib-summary-edit:hover {
    border-color: var(--ib-primary);
    background: var(--ib-primary-soft);
}

/* =========================================================
   9. Schaltflächen
   ========================================================= */

.ib-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    margin-top: 28px;
}

.ib-actions-center {
    justify-content: center;
}

.ib-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    padding: 13px 26px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: 1.5px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    transition: transform .18s var(--ib-ease), box-shadow .2s, background-color .2s, opacity .2s;
}

.ib-btn:focus-visible {
    outline: none;
    box-shadow: var(--ib-ring);
}

.ib-btn-icon {
    width: 18px;
    height: 18px;
    flex: none;
}

.ib-btn-primary {
    color: #fff;
    background: var(--ib-gradient);
    box-shadow: var(--ib-shadow-md);
}

.ib-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px var(--ib-primary-glow);
}

.ib-btn-ghost {
    color: var(--ib-text-muted);
    background: var(--ib-surface);
    border-color: var(--ib-border);
}

.ib-btn-ghost:hover {
    color: var(--ib-text);
    border-color: var(--ib-border-strong);
    background: var(--ib-surface-2);
}

.ib-btn[disabled],
.ib-btn.is-busy {
    pointer-events: none;
    opacity: .65;
}

.ib-btn.is-busy::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ib-spin .7s linear infinite;
}

/* =========================================================
   10. Meldungen
   ========================================================= */

.ib-notice {
    margin: 16px 0 0 !important;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    border-radius: var(--ib-radius-sm);
    animation: ib-pop .25s var(--ib-ease);
}

.ib-notice[hidden] {
    display: none;
}

.ib-notice.is-error {
    color: var(--ib-danger);
    background: var(--ib-danger-soft);
    border-color: var(--ib-danger-border);
}

.ib-notice.is-success {
    color: var(--ib-success);
    background: var(--ib-success-soft);
    border-color: var(--ib-success-border);
}

.ib-notice.is-info {
    color: var(--ib-text-muted);
    background: var(--ib-surface-2);
    border-color: var(--ib-border);
}

/* =========================================================
   11. Startschritt & Erfolg
   ========================================================= */

.ib-usp {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 26px !important;
    font-size: 14px;
    color: var(--ib-text-muted);
}

.ib-usp li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ib-usp li::before {
    content: "";
    width: 7px;
    height: 7px;
    background: var(--ib-gradient);
    border-radius: 50%;
}

.ib-success {
    text-align: center;
}

.ib-success-icon {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    color: #fff;
    background: var(--ib-gradient);
    border-radius: 50%;
    animation: ib-pop .4s var(--ib-ease);
}

.ib-success-icon svg {
    width: 38px;
    height: 38px;
}

.ib-success-text {
    max-width: 460px;
    margin: 0 auto !important;
    color: var(--ib-text-muted);
}

.ib-success-value {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 24px;
    padding: 18px 32px;
    background: var(--ib-surface-2);
    border: 1px solid var(--ib-border);
    border-radius: var(--ib-radius-md);
}

.ib-success-value .ib-value-amount {
    font-size: 30px;
}

/* =========================================================
   12. Animationen
   ========================================================= */

@keyframes ib-step-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

@keyframes ib-pop {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ib-spin {
    to { transform: rotate(360deg); }
}

@keyframes ib-shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

.ib-shake {
    animation: ib-shake .5s;
}

@media (prefers-reduced-motion: reduce) {
    .ib-app *,
    .ib-app *::before,
    .ib-app *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .ib-option:hover,
    .ib-btn-primary:hover {
        transform: none;
    }
}

/* =========================================================
   13. Responsiv
   ========================================================= */

@media (max-width: 782px) {
    .ib-header {
        padding: 22px 20px 18px;
    }

    .ib-body {
        padding: 24px 20px 28px;
    }

    .ib-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .ib-value-chip {
        width: 100%;
    }

    .ib-options {
        grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
        gap: 10px;
    }

    .ib-option {
        padding: 16px 10px;
    }

    .ib-option-media {
        width: 52px;
        height: 52px;
    }

    .ib-option-media img {
        width: 28px;
        height: 28px;
    }

    .ib-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ib-field-third,
    .ib-field-two-thirds {
        grid-column: span 1;
    }

    .ib-summary-row {
        flex-wrap: wrap;
        gap: 6px 12px;
    }

    .ib-summary-label {
        flex-basis: 100%;
    }

    .ib-actions {
        flex-direction: column-reverse;
    }

    .ib-btn {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .ib-options {
        grid-template-columns: repeat(2, 1fr);
    }

    .ib-grid {
        grid-template-columns: 1fr;
    }

    .ib-slider {
        padding: 20px 16px;
    }

    .ib-slider-top {
        gap: 12px;
    }
}
