@charset "UTF-8";

/* =========================
   Root / Variablen
========================= */
:root 
{
    --error-color:       #780606;
    --error-textsize-h1:      20px;
}

/* =========================
   BBCODE
========================= */

.editor-box{
    width:   auto;    /* max-width:950px */
    margin:0 auto;
    padding:25px;
    border-radius:20px;
    background:rgba(255,255,255,0.08);
    border:1px solid rgba(255,255,255,0.12);
    backdrop-filter:blur(12px);
    box-shadow:0 8px 30px rgba(0,0,0,0.35);
}

h1, h2{
    margin-top:0;
    color:#f8fafc;
}

.toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:15px;
}

/*
.toolbar button{
    padding:10px 16px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    color:#f8fafc;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.15);
    backdrop-filter:blur(8px);
    transition:0.2s ease;
}

.toolbar button:hover{
    background:rgba(56,189,248,0.22);
    transform:translateY(-1px);
}
    */

textarea{
    width:100%;
    min-height:240px;
    padding:16px;
    border-radius:18px;
    border:1px solid rgba(255,255,255,0.15);
    background:rgba(15,23,42,0.75);
    color:#f8fafc;
    font-size:16px;
    line-height:1.5;
    resize:vertical;
    outline:none;
}

textarea:focus{
    border-color:rgba(56,189,248,0.7);
    box-shadow:0 0 0 3px rgba(56,189,248,0.15);
}

.info{
    margin-top:12px;
    color:#cbd5e1;
    font-size:14px;
}

.preview-box{
    margin-top:24px;
    padding:20px;
    border-radius:18px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
}

.preview-content{
    min-height:120px;
    padding:14px;
    border-radius:14px;
    background:rgba(15,23,42,0.55);
    border:1px solid rgba(255,255,255,0.08);
}

.preview-content blockquote{
    margin:15px 0;
    padding:12px 16px;
    border-left:4px solid #22d3ee;
    background:rgba(255,255,255,0.04);
    border-radius:10px;
    font-style:italic;
}

.preview-content pre{
    padding:15px;
    overflow-x:auto;
    border-radius:12px;
    background:#020617;
    color:#e2e8f0;
}

.preview-content code{
    font-family:Consolas, Monaco, monospace;
}

.preview-content a{
    color:#38bdf8;
}   

.color-toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:12px;
    margin-bottom:15px;
}

.color-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    box-shadow:0 0 0 2px rgba(255,255,255,0.15);
    transition:transform 0.2s ease, box-shadow 0.2s ease;
}

.color-btn:hover{
    transform:scale(1.08);
    box-shadow:0 0 0 3px rgba(255,255,255,0.35);
}

.preview-image{
    display:block;
    max-width:100%;
    height:auto;
    margin:12px 0;
    border-radius:14px;
    border:1px solid rgba(255,255,255,0.12);
}

.toolbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:15px;
}

.toolbar button{
    width:46px;
    height:46px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:none;
    border-radius:14px;
    cursor:pointer;
    font-size:20px;
    font-weight:700;
    color:#f8fafc;
    background:rgba(255,255,255,0.10);
    border:1px solid rgba(255,255,255,0.15);
    backdrop-filter:blur(8px);
    transition:0.2s ease;
}

.toolbar button:hover{
    background:rgba(56,189,248,0.22);
    transform:translateY(-1px);
}

.toolbar button:active{
    transform:scale(0.98);
}

/* =========================
   BBCODE ZUSATZ
========================= */

.RAHMEN-BOX
{
    width:                         auto;
    min-height:                     5em;
    backdrop-filter:          blur(8px);
    background:         rgba(0, 0, 0, 0.30);
    padding:                        1em;
    border-radius:                 14px;
    border:1px solid rgba(255,255,255,0.12);
}