main{
    margin: 0 auto;
}
body{
    font-family: 'Roboto', 'Arial', sans-serif;
    font-size: 1rem;
    margin:30px;
}

body main, body header{
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

body.full-width main, body.full-width footer, body.full-width header{
    margin: 0 auto;
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    color: #333;
    font-size: 1.18rem;
    font-weight: bold;
}

.callout {
    border-radius: 0.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.login-form{
    margin: auto;
    max-width: 400px;
}

img.logo{
    height: 50px;
}

ul.menu {
    /*display: flex;*/
    align-items: center;
}
ul.menu li.first_logo a{
    padding-left:0;
    margin-left:0;
}

/* Stil f�r Pflichtfelder: roter Rahmen bei ung�ltig, gr�ner bei g�ltig */
input:required:invalid,
textarea:required:invalid,
select:required:invalid {
    border: 1px solid #e74c3c; /* roter Rahmen */
    border-radius: 4px;
}
input:required:valid,
textarea:required:valid,
select:required:valid {
    border: 1px solid #27ae60; /* gr�ner Rahmen */
    border-radius: 4px;
}
.tabs-title>a{
    font-size: unset;
}

.custom-file-upload {
    border: 2px dashed #ccc;
    border-radius: 4px;
    padding: 20px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    height:280px;
}

.custom-file-upload:hover {
    background-color: #f7f7f7;
}

/* Der file input wird �ber den gesamten Container gelegt und ist unsichtbar */
.custom-file-upload .upload-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 0;
}
.custom-file-upload .preview-area img.preview-image {
    max-width: 100%;
    max-height: 200px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.cell.resizable {
    resize: horizontal;
    overflow: auto;
    min-width: 100px;
    max-width: 100%;
}

#jstree_container {
    display: flex;
    height:calc(100vh - 250px); /* Beispiel: 100% der Viewport-Höhe */
}
#jstree_child{
    overflow: hidden;
    overflow-y: auto;
    flex: 1;
}

.jstree-default .jstree-wholerow-clicked{
    background: lightgray;
}

.jstree-node-id {
    font-size: 0.75em;
    color: #888;
    margin-left: 4px;
}

.margin-bottom{
    margin-bottom:15px;
}

#editorModal{
    width:80%;
    height:80%;
}
.ace-wrapper{
    margin-bottom:1.5rem;
}
.aceditor {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    font-family: 'Courier New', Courier, monospace;
}

.block_hinzufuegen .button, .snippet_hinzufuegen .button{
    width:100%;
    margin:3px;
    text-overflow: ellipsis;
}
.callout.block .custom-file-upload{
    margin-bottom:8px;
}
.buttonfields i{
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 15px;
}

/* CSS für das Kopier-Icon */
.dropzone.dz-clickable .copy-icon {
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 2rem;
    margin:7px;
    margin-left: 15px;
}

.dropzone.dz-clickable .copy-icon.copied {
    color: green;
    transform: scale(1.2);
}

.dropzone.dz-clickable a.dz-remove {
    width:fit-content;
    display:inline;
    font-size: 2rem;
    margin:7px;
    color: black;
}
.dropzone .dz-preview .dz-image{
    border: 1px solid #ccc;
}
.dz-preview.dz-complete.dz-image-preview{
    text-align: center;
}
.dropzone{
    border:0;
}
textarea[name='form[notizen]'], textarea[name='content']{
    height: 200px
}

.buttonsticky{
    background-color: #ccc;

}

#meta_description_length{
    font-size: 0.8rem;
    display: inline-block;
}
#meta_description_length_indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
}
#meta_description_length_indicator.green  { background-color: #4CAF50; }
#meta_description_length_indicator.yellow { background-color: #FFC107; }
#meta_description_length_indicator.red    { background-color: #F44336; }

.dataTables_filter{
    margin-bottom:8px;
}

.bilderstellung{
    padding-top:10px;
}
.bilderstellung .image-preview{
    max-height: 600px;
    border-radius: 4px;
    border: 1px solid grey;
}

table.supportTable {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table.supportTable td.subject, table.supportTable td.aktiv, table.supportTable td.datum, table td.vertical-align-top{
    vertical-align: top;
}
table.supportTable .content{
    width: 50%;
}
table.supportTable .content textarea{
    height:140px;
}

#newsletter_form #notizzettel, textarea.empfaenger-textarea{
    height: 200px;
}
a.backlink{
    display: block;
    margin-top:2rem;
    margin-bottom:2rem;
}

body footer {
    position: fixed;
    bottom: 0;
    width: 90%;
    max-width: 90%;
    border-top: 1px solid #f0f0f0;
    text-align: right;
    margin-left: auto;
    margin-right: auto;
}

/* dann main unten freilassen: */
main {
    padding-bottom: 3rem; /* mindestens Footer-Höhe */
}

textarea#themensammlung{
    height:25rem;
}

table.datatable td a{
    margin-top:auto;
    margin-bottom:auto;
}
table.datatable tr.even{
    background-color: #f9f9f9;
}


table.chatbot-table td.dialog-preview{
    font-size: 0.9rem;
}
table.chatbot-table td.dialog-preview hr{
    margin:0;
    margin-top:3px;
    margin-bottom:6px;
}