/* Das Modal (Hintergrund-Overlay) */
.mic-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

/* Der eigentliche Inhalt des Modals */
.mic-modal-content {
    background-color: #fefefe;
    margin: 3% auto; /* Weniger Abstand nach oben */
    padding: 0; /* Kein Padding, da die Sektionen es haben */
    border: 1px solid #888;
    width: 90%;
    max-width: 1400px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 90vh; /* 90% der Bildschirmhöhe */
}

/* Header-Bereich des Editors */
.mic-editor-header {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}
.mic-editor-header h2 {
    margin: 0;
}

/* Schließen-Button */
.mic-modal-close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.mic-modal-close:hover,
.mic-modal-close:focus {
    color: black;
}

/* Hauptbereich des Editors (flex container) */
.mic-editor-body {
    display: flex;
    flex-grow: 1; /* Nimmt den restlichen verfügbaren Platz ein */
    overflow: hidden; /* Verhindert doppelte Scrollbalken */
}

/* Werkzeugleiste (rechte Spalte) */
.mic-editor-toolbar {
    width: 280px;
    flex-shrink: 0; /* Verhindert, dass die Toolbar schrumpft */
    background: #f1f1f1;
    padding: 15px;
    overflow-y: auto; /* Scrollbar, wenn der Inhalt zu hoch ist */
    border-left: 1px solid #ddd;
}
.mic-editor-toolbar h3 {
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}
.mic-toolbar-section .button {
    width: 100%;
    margin-bottom: 10px;
    box-sizing: border-box; /* Stellt sicher, dass Padding/Border in der Breite enthalten sind */
}

/* Vorschaubereich (linke, große Spalte) */
.mic-editor-preview-area {
    flex-grow: 1; /* Nimmt den restlichen Platz ein */
    padding: 20px;
    overflow: auto; /* Scrollbar, falls die Karte größer als der Bereich ist */
    background-color: #e9e9e9;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Der eigentliche Karten-Rahmen */
#mic-card-frame {
    width: 500px; /* Beispielgröße */
    height: 300px; /* Beispielgröße */
    background-color: #ffffff;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    color: #999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* Footer-Bereich des Editors */
.mic-editor-footer {
    padding: 10px 20px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f7f7f7;
}