/* Offene Meinung Redaktion - Frontend Styles */

* {
    box-sizing: border-box;
}

.om-redaktion-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

.om-container {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.om-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.om-header h1 {
    margin: 0 0 10px 0;
    font-size: 32px;
    color: #333;
}

.om-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.om-message {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
    border-left: 4px solid;
}

.om-message.om-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.om-message.om-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.om-alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
    border-left: 5px solid;
}

.om-alert-danger {
    background-color: #fff3f3;
    border-color: #dc3545;
    color: #721c24;
}

.om-alert-warning {
    background-color: #fffaf0;
    border-color: #ffc107;
    color: #856404;
}

.om-form-group {
    margin-bottom: 25px;
}

.om-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.om-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.om-form-group input[type="text"],
.om-form-group input[type="email"],
.om-form-group select,
.om-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
}

.om-form-group input[type="file"] {
    padding: 8px 0;
    margin-bottom: 8px;
    display: block;
    width: 100%;
}

.om-form-group textarea {
    resize: vertical;
    min-height: 200px;
}

.om-form-group input:focus,
.om-form-group select:focus,
.om-form-group textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.om-form-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.om-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.om-btn-primary {
    background-color: #007bff;
    color: #fff;
}

.om-btn-primary:hover {
    background-color: #0056b3;
}

.om-btn-success {
    background-color: #28a745;
    color: #fff;
}

.om-btn-success:hover {
    background-color: #218838;
}

.om-btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.om-btn-secondary:hover {
    background-color: #5a6268;
}

/* Neue Radio-Buttons und Felder */
.om-radio-group {
    display: flex;
    gap: 20px;
    margin-top: 5px;
}

.om-radio-group label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.om-radio-group input[type="radio"],
.om-show_author_name input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
}

.om-show-author-name {
    margin-top: -10px;
    margin-bottom: 30px;
}

.om-show-author-name label {
    font-weight: normal;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
}

.om-show-author-name input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.char-counter {
    font-size: 12px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.om-link-preview-box {
    background: #f0f7ff;
    border: 1px solid #c2e0ff;
    padding: 20px;
    border-radius: 4px;
}

.om-link-preview-box hr {
    border: none;
    border-top: 1px solid #c2e0ff;
    margin: 15px 0;
}

.om-link-preview-box p {
    margin: 8px 0;
}

.om-meta-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.om-meta-box h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.om-meta-box p {
    margin: 8px 0;
    color: #555;
}

.om-article-preview {
    margin: 30px 0;
    padding: 30px;
    background: #fafafa;
    border-radius: 4px;
}

.om-article-preview h2 {
    margin-top: 0;
    color: #222;
}

.om-article-meta {
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.om-article-meta p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

.om-article-content {
    line-height: 1.8;
    color: #333;
}

.om-workflow-log {
    margin-top: 40px;
}

.om-workflow-log h3 {
    margin-bottom: 20px;
    color: #333;
}

.om-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.om-table thead {
    background: #f8f9fa;
}

.om-table th,
.om-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.om-table th {
    font-weight: 600;
    color: #333;
}

.om-table td {
    color: #555;
}

.om-table tbody tr:hover {
    background-color: #f8f9fa;
}

.om-file-upload-frame {
    border: 2px dashed #007bff;
    padding: 20px;
    border-radius: 8px;
    background-color: #f0f7ff;
    margin-top: 20px;
    margin-bottom: 25px;
}

.om-file-upload-frame label {
    color: #0056b3;
    margin-bottom: 12px;
}

.om-file-upload-info {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.om-attached-document {
    background: #e9ecef;
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.om-attached-document a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

.om-attached-document a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .om-container {
        padding: 20px;
    }

    .om-form-row {
        grid-template-columns: 1fr;
    }

    .om-form-actions {
        flex-direction: column;
    }

    .om-btn {
        width: 100%;
        text-align: center;
    }
}
