
/* =========================================================
   EDITOR
========================================================= */

.editor {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 6px;
    background: #fff;
    overflow: hidden;
}


/* =========================================================
   TOOLBAR
========================================================= */

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;

    padding: 8px;

    background: #f8f9fa;

    border-bottom: 1px solid #ced4da;
}


/* =========================================================
   TOOLBAR BUTTONS
========================================================= */

.editor-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 36px;
    min-height: 32px;

    padding: 4px 10px;

    border: 1px solid #ced4da;
    border-radius: 4px;

    background: #fff;

    color: #212529;

    font-size: 14px;
    line-height: 1.4;

    cursor: pointer;

    user-select: none;
}


.editor-toolbar button:hover {
    background: #e9ecef;
}


.editor-toolbar button:active {
    background: #dee2e6;
}


/* =========================================================
   EDITOR CONTENT
========================================================= */

.editor-content {
    min-height: 300px;

    padding: 16px;

    background: #fff;

    color: #212529;

    font-size: 16px;
    line-height: 1.5;

    outline: none;

    cursor: text;
}


/* =========================================================
   EDITOR FOCUS
========================================================= */

.editor-content:focus {
    box-shadow:
        inset 0 0 0 2px rgba(13, 110, 253, .12);
}


/* =========================================================
   ABSÄTZE
========================================================= */

.editor-content p {
    margin-top: 0;
    margin-bottom: 1rem;
}


/* =========================================================
   ÜBERSCHRIFTEN
========================================================= */

.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
    margin-top: 1rem;
    margin-bottom: .75rem;

    font-weight: 600;

    line-height: 1.25;
}


.editor-content h1 {
    font-size: 2rem;
}


.editor-content h2 {
    font-size: 1.75rem;
}


.editor-content h3 {
    font-size: 1.5rem;
}


.editor-content h4 {
    font-size: 1.25rem;
}


.editor-content h5 {
    font-size: 1.1rem;
}


.editor-content h6 {
    font-size: 1rem;
}


/* =========================================================
   LISTEN
========================================================= */

.editor-content ul,
.editor-content ol {
    margin-top: 0;
    margin-bottom: 1rem;

    padding-left: 2rem;
}


.editor-content li {
    margin-bottom: .25rem;
}


/* =========================================================
   LINKS
========================================================= */

.editor-content a {
    color: #0d6efd;

    text-decoration: underline;
}


/* =========================================================
   BLOCKQUOTE
========================================================= */

.editor-content blockquote {
    margin: 1rem 0;

    padding: .75rem 1rem;

    border-left: 4px solid #ced4da;

    background: #f8f9fa;

    color: #6c757d;
}


/* =========================================================
   HORIZONTALE LINIE
========================================================= */

.editor-content hr {
    margin: 1.5rem 0;

    border: 0;

    border-top: 1px solid #dee2e6;
}


/* =========================================================
   BILDER - WRAPPER
========================================================= */

.editor-image-wrapper {
    display: block;

    width: 100%;

    margin: 12px 0;

    padding: 0;

    text-align: left;
}


/* =========================================================
   BILDER
========================================================= */

.editor-image {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 0;

    padding: 0;

    border: 2px solid transparent;

    cursor: pointer;

    user-select: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}


/* =========================================================
   AUSGEWÄHLTES BILD
========================================================= */

.editor-image-selected {
    border-color: #0d6efd !important;

    box-shadow:
        0 0 0 2px rgba(13, 110, 253, .15);

}


/* =========================================================
   BILD OPTIONEN
========================================================= */

.image-options {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    margin-top: 8px;

    padding: 6px 0;
}


/* =========================================================
   BILD OPTIONEN - BUTTON GROUP
========================================================= */

.image-options .btn-group {
    display: inline-flex;
}


/* =========================================================
   BILD OPTIONEN - BUTTON
========================================================= */

.image-options .btn {
    min-width: 70px;
}


/* =========================================================
   D-NONE
========================================================= */

.image-options.d-none {
    display: none !important;
}


/* =========================================================
   CODE
========================================================= */

.editor-content code {
    padding: .15rem .3rem;

    border-radius: 3px;

    background: #f1f3f5;

    font-family:
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;

    font-size: .9em;
}


/* =========================================================
   PRE
========================================================= */

.editor-content pre {
    margin: 1rem 0;

    padding: 1rem;

    border-radius: 4px;

    background: #212529;

    color: #fff;

    overflow-x: auto;
}


.editor-content pre code {
    padding: 0;

    background: transparent;

    color: inherit;
}


/* =========================================================
   BILD AUSRICHTUNG
========================================================= */

/*
 * Links
 */

.editor-image.d-block {
    margin-left: 0;
    margin-right: auto;
}


/*
 * Mitte
 */

.editor-image.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}


/*
 * Rechts
 */

.editor-image.ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}


/* =========================================================
   AUSWAHL IM EDITOR
========================================================= */

.editor-content ::selection {
    background: rgba(13, 110, 253, .2);
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.editor-content:empty::before {
    content: "Text eingeben ...";

    color: #adb5bd;

    pointer-events: none;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 576px) {

    .editor-toolbar {
        padding: 6px;
    }

    .editor-toolbar button {
        min-width: 32px;

        padding: 4px 7px;

        font-size: 13px;
    }

    .editor-content {
        padding: 12px;

        font-size: 15px;
    }

    .image-options .btn {
        min-width: 60px;
    }

}
