/*
 * ============================================================================
 * LINE DANCE CLUB - COUNTRY MEETS MODERN (STYLESHEET)
 * ============================================================================
 * 
 * @package     LDC_productive
 * @module      Components
 * @component   ldc_editor
 * 
 * @description Spezifische Stile für den TipTap-Editor im .ldc-layout Workspace
 * 
 * @status      In Progress
 * @open        
 * @ticket      
 * @version     1.0.0
 * @created     2026-08-11
 * @last_change 2026-08-11
 * 
 * @export-to-schorsch
 * ============================================================================
 */
/** Ende LDC Header */
.ldc-layout .ldc-editor {
    width: 100%;
    max-width: 800px;
    background: #ffffff;
    border: 1px solid var(--ldc-color-border, var(--ldgroup-border, #d1d5db));
    border-radius: var(--ldc-border-radius-small, var(--ldgroup-border-radius-small, 6px));
    overflow: hidden;
    text-align: left;
    margin: 0 auto;
    box-shadow: var(--ldc-shadow, var(--ldgroup-shadow, 0px 4px 12px rgba(0, 0, 0, 0.1)));
}

.ldc-layout .ldc-editor__toolbar {
    background-color: var(--ldc-bg-toolbar, #f5f5f5);
    border-bottom: 1px solid var(--ldc-color-border, #d1d5db);
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Toolbar-Buttons erben automatisch den allgemeinen .ldc-layout Button-Look, 
   hier werden nur kompakte Editor-Anpassungen vorgenommen */
.ldc-layout .ldc-editor__toolbar button {
    padding: 6px 12px !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid var(--ldc-color-border, #d1d5db) !important;
}

.ldc-layout .ldc-editor__toolbar button:hover {
    background-color: #e5e7eb !important;
    border-color: #9ca3af !important;
    box-shadow: none !important;
    color: #111111 !important;
}

.ldc-layout .ldc-editor__separator {
    border-left: 1px solid #ccc;
    height: 20px;
    margin: 0 4px;
}

.ldc-layout .ldc-editor__content {
    padding: 16px;
    background: #ffffff;
    color: #1a1a1a;
    outline: none;
    font-family: var(--ldc-font-family, var(--ldgroup-font-family, 'Montserrat', sans-serif));
    font-size: 1rem;
    line-height: 1.6;
    min-height: 200px;
}

.ldc-layout .ldc-editor__content p {
    margin-top: 0;
    margin-bottom: 1em;
    font-weight: 400;
    color: #1a1a1a !important;
}

/* Blauen Focus-Rahmen beim Reinklicken entfernen */
.ldc-layout .ldc-editor__content div[contenteditable="true"] {
    outline: none !important;
    min-height: 180px; /* Nimmt die volle Höhe des Editors ein */
    padding: 10px;
    cursor: text;
}

/* Platzhalter-Styling (optional) */
.ldc-layout .ldc-editor__content p {
    margin: 0 0 0.5em 0;
}