﻿/*Einfacher Text*/

.block-text {
    line-height: 1.6;
    color: #333;
}

.block-quote {
    border-left: 4px solid #2196F3;
    padding-left: 16px;
    margin: 0;
    font-style: italic;
    color: #555;
}

.block-code {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 12px;
    overflow-x: auto;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
}


/* Bild und Text */
.image-text-block {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin: 16px 0;
}

.image-text-block.layout-left .image-part {
    order: 1;
}

.image-text-block.layout-left .text-part {
    order: 2;
}

.image-text-block.layout-right .image-part {
    order: 2;
}

.image-text-block.layout-right .text-part {
    order: 1;
}

.image-text-block .image-part img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.image-text-block .image-part img:hover {
    transform: scale(1.02);
}

.image-text-block .text-part {
    flex: 1;
    line-height: 1.6;
    white-space: pre-wrap;
}

/*Tabelle*/

.table-block {
    margin: 16px 0;
    overflow-x: auto;
}

.content-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.content-table thead th {
    background: #2196F3;
    color: white;
    font-weight: 600;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #1976D2;
}

.content-table tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
}

.content-table tbody tr:last-child td {
    border-bottom: none;
}

.content-table tbody tr:hover {
    background: #f5f5f5;
}

/* Liste */
.list-block {
    margin: 12px 0;
    line-height: 1.8;
}

.list-block .list-icon {
    margin-right: 8px;
    color: #2196F3;
}

.list-block a {
    color: #2196F3;
    text-decoration: none;
}

.list-block a:hover {
    text-decoration: underline;
}

/* Links */
.link-block {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 12px 0;
    transition: all 0.2s;
}

.link-block:hover {
    background: #f0f0f0;
    border-color: #2196F3;
}

.link-icon {
    font-size: 24px;
    color: #2196F3;
    flex-shrink: 0;
}

.link-content {
    flex: 1;
}

.link-title {
    font-weight: 600;
    color: #2196F3;
    text-decoration: none;
    font-size: 16px;
}

.link-title:hover {
    text-decoration: underline;
}

.link-description {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 14px;
}

/* Info Card */
.info-card {
    padding: 16px;
    border-radius: 8px;
    border-left: 4px solid;
    margin: 16px 0;
}

.info-card.type-info {
    background: #e3f2fd;
    border-color: #2196F3;
}

.info-card.type-warning {
    background: #fff3e0;
    border-color: #ff9800;
}

.info-card.type-success {
    background: #e8f5e9;
    border-color: #4caf50;
}

.info-card.type-error {
    background: #ffebee;
    border-color: #f44336;
}

.info-card.type-tip {
    background: #f3e5f5;
    border-color: #9c27b0;
}

.info-card-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 16px;
}

.info-card-content {
    line-height: 1.6;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.gallery-item {
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* Image */
.image-block {
    margin: 16px 0;
}

.image-block.align-left {
    text-align: left;
}

.image-block.align-center {
    text-align: center;
}

.image-block.align-right {
    text-align: right;
}

.image-block img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.image-block img:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Divider */
.divider {
    margin: 24px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

.divider.dashed {
    border-top-style: dashed;
}

.divider.dotted {
    border-top-style: dotted;
}

/* Data Definition List */
.data-definition-block {
    margin: 16px 0;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
}

.definition-term {
    font-weight: 600;
    color: #333;
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 16px;
}

.definition-term:first-child {
    margin-top: 0;
}

.definition-item {
    margin-left: 24px;
    margin-bottom: 4px;
    color: #666;
    line-height: 1.6;
}

.term-icon,
.item-icon {
    margin-right: 8px;
    color: #2196F3;
}

.definition-item a {
    color: #2196F3;
    text-decoration: none;
}

.definition-item a:hover {
    text-decoration: underline;
}

/* Attachments */
.attachment-block {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f9f9f9;
    margin: 12px 0;
    align-items: center;
}

.attachment-icon {
    font-size: 32px;
    color: #666;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
}

.attachment-name {
    font-weight: 600;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.attachment-name:hover {
    color: #2196F3;
    text-decoration: underline;
}

.attachment-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #999;
}

.attachment-description {
    margin: 8px 0 0 0;
    color: #666;
    font-size: 14px;
}

.attachment-download {
    flex-shrink: 0;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #2196F3;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-download:hover {
    background: #1976D2;
    transform: scale(1.1);
}



/******************************************************
Block Editor
 *****************************************************/
.block-editor-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: var(--kendo-spacing-4, 16px);
    box-sizing: border-box;
}

.block-editor-container.has-height {
    overflow-y: auto;
    overflow-x: hidden;
}

.block-editor {
    display: flex;
    flex-direction: column;
    gap: var(--kendo-spacing-2, 8px);
}

.block-wrapper {
    position: relative;
    border: 2px solid transparent;
    border-radius: var(--kendo-border-radius-md, 4px);
    transition: all 0.2s ease;
    min-height: 20px;
    flex-shrink: 0;
}

.block-wrapper:hover {
    border-color: var(--kendo-color-primary, #2196F3);
}

.block-wrapper.editing {
    border-color: var(--kendo-color-primary, #2196F3);
}

.block-toolbar-overlay {
    position: absolute;
    top: -12px;
    right: var(--kendo-spacing-2, 8px);
    z-index: 10;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.block-wrapper:hover .block-toolbar-overlay,
.block-wrapper.editing .block-toolbar-overlay {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.block-actions {
    display: flex;
    gap: var(--kendo-spacing-1, 4px);
    background: var(--kendo-color-surface, white);
    border: 1px solid var(--kendo-color-border, #e0e0e0);
    border-radius: var(--kendo-border-radius-md, 4px);
    padding: var(--kendo-spacing-1, 4px);
    box-shadow: var(--kendo-elevation-2, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.block-content-wrapper {
    padding: var(--kendo-spacing-2, 8px);
    min-height: 20px;
}

.block-wrapper.editing .block-content-wrapper {
    padding: var(--kendo-spacing-3, 12px);
}

.block-insert-area {
    position: relative;
    height: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: calc(var(--kendo-spacing-1, 4px) * -1) 0;
    transition: height 0.2s ease;
    flex-shrink: 0;
}

.block-insert-area:hover {
    height: 32px;
}

.block-insert-area::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: transparent;
    transition: all 0.2s ease;
}

.block-insert-area:hover::before {
    background: var(--kendo-color-primary, #2196F3);
}

.block-insert-buttons {
    position: relative;
    z-index: 5;
    display: flex;
    gap: var(--kendo-spacing-1, 4px);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    pointer-events: none;
    background: var(--kendo-color-surface, white);
    border: 1px solid var(--kendo-color-border, #e0e0e0);
    border-radius: var(--kendo-border-radius-md, 4px);
    padding: var(--kendo-spacing-1, 4px);
    box-shadow: var(--kendo-elevation-2, 0 2px 8px rgba(0, 0, 0, 0.1));
}

.block-insert-area:hover .block-insert-buttons {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.block-add-menu {
    display: flex;
    justify-content: center;
    padding: var(--kendo-spacing-4, 16px) 0;
    margin-top: var(--kendo-spacing-2, 8px);
    flex-shrink: 0;
}