.json-editor-wrapper {
    .json-editor-container {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 0.375rem;
        padding: 1rem;
        transition: all 0.2s ease-in-out;
        position: relative;
        min-height: 80px;
        display: flex;
        flex-direction: column;

        &.is-empty::after {
            content: "Keine Eigenschaften definiert.";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #adb5bd;
            font-size: 0.9rem;
            font-style: italic;
            width: 100%;
            text-align: center;
            pointer-events: none;
            display: block;
        }

        &:focus-within {
            border-color: #86b7fe;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }
    }

    .property-row {
        background: white;
        padding: 0.5rem;
        border-radius: 0.375rem;
        border: 1px solid transparent;
        transition: all 0.15s ease;

        &:hover {
            border-color: #e9ecef;
            background-color: #fff;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        /* Verschachtelung für Unterelemente */
        .col-1 {
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }

    .prop-key {
        font-weight: 600;
        color: #495057;
        background-color: #f1f3f5;
        border: 1px solid #ced4da;

        &:focus {
            background-color: #fff;
        }
    }

    .prop-val.monospace {
        font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
        font-size: 0.875rem;
        color: #d63384;
        background-color: #fcfcfc;
    }

    .remove-prop-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: #dc3545;
        background-color: #fff5f5;
        border: 1px solid #fee2e2;
        line-height: 1;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);

        &:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
        }

        &:hover {
            background-color: #dc3545;
            color: white;
            border-color: #dc3545;
            transform: translateY(-1px) scale(1.05);
            box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
        }

        &:active {
            transform: translateY(0) scale(0.95);
        }
    }
}

.btn-add-json {
    /* Reset */
    background: transparent;
    border: 1px dashed #dee2e6; /* Gestrichelte Linie wirkt technischer/schlichter */
    color: #6c757d;

    /* Layout */
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;

    .icon {
        margin-right: 6px;
        font-size: 1.1rem;
        line-height: 1;
        transition: transform 0.2s ease;
    }

    /* Hover-Zustand: Hier kommt der "Pepp" */
    &:hover {
        border-style: solid; /* Linie wird durchgezogen */
        border-color: #0d6efd; /* Schlägt ins Blaue um */
        color: #0d6efd;
        background-color: rgba(13, 110, 253, 0.04);

        .icon {
            transform: rotate(90deg); /* Das Plus-Zeichen dreht sich dezent */
        }
    }

    /* Klick-Effekt */
    &:active {
        transform: scale(0.97);
        background-color: rgba(13, 110, 253, 0.08);
    }

    &:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
    }
}