/* Tabellen-Container */
.additional-specifications {
    margin-top: 2em;
    padding: 2em;
    background: #f0f2f5;
    border-radius: 4px;
}

/* Tabellen-Creator */
.create-table-form {
    background: #fff;
    padding: 1.5em;
    margin-bottom: 2em;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.create-table-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin-top: 1.5em;
}

.create-table-inputs input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcd7ca;
    border-radius: 4px;
}

/* Tabellen-Styles */
.spec-table {
    background: #fff;
    margin-bottom: 2em;
    border-radius: 4px;
}

.spec-table-header {
    display: flex;
    align-items: center;
    gap: 1em;
    padding: 1.25em;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.spec-table-content {
    padding: var(--spacing-2) 0;
}

.spec-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
}

.table-title {
    flex: 1;
    font-size: 1.1em;
    font-weight: 500;
    padding: 8px 12px;
    border: 1px solid #dcd7ca;
    border-radius: 4px;
}

/* Zellen-Styles */
.spec-cell {
    position: relative;
    padding: 12px;
    vertical-align: top;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s ease;
}


.spec-cell:hover {
    background: #f8f9fa;
    border-color: #dcd7ca;
}

.cell-content {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.cell-content input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcd7ca;
    border-radius: 4px;
    font-size: 14px;
}

/* Zellen-Menü */
.cell-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    z-index: 100;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 1.25em;
    min-width: 250px;
}

.cell-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #666;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.cell-menu-button:hover {
    background: #f0f2f5;
    color: #333;
}


.cell-menu .rowspan-control{
    margin-bottom:1rem;
}


.cell-menu .rowspan-control input{
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dcd7ca;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom:1rem;
}

/* Fußnoten */

.footnote-item {
    display: flex;
    align-items: center;
    gap: 1em;
    margin-bottom: 0.75em;
    padding: 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.footnote-item:hover {
    background: #f8f9fa;
}

.footnote-number {
    min-width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 14px;
    font-weight: 500;
}

/* Buttons */
.delete-table,
.apply-rowspan {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #dcd7ca;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.delete-table:hover,
.apply-rowspan:hover {
    background: #f0f2f5;
    border-color: #c0c0c0;
}

/* Header Row Control */
.header-row-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fff;
    border: 1px solid #dcd7ca;
}