.ainw-seo-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#content {
    width: 100%;
    min-height: 200px;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
}

#ainw-analyze-seo {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#ainw-analyze-seo:hover {
    background-color: #005177;
}

#ainw-analyze-seo:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#ainw-seo-results {
    margin-top: 30px;
}

.error {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #dc3232;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

/* Neue Styles für die Inhaltsbereiche */
.ainw-seo-section {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ainw-seo-section h2 {
    margin-top: 0;
    margin-bottom: 1em;
    color: #333;
    font-size: 1.5em;
}

/* Hauptartikel ohne zusätzliche visuelle Trennung */
.ainw-hauptartikel {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.ainw-hauptartikel h2,
.ainw-hauptartikel h3,
.ainw-hauptartikel h4 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    color: #333;
}

.ainw-hauptartikel h2 {
    margin-top: 2em;
    margin-bottom: 1em;
    color: #333;
}

.ainw-hauptartikel h2[id^="section"] {
    margin-top: 2.5em;
    margin-bottom: 1em;
}

/* Meta-Informationen */
.ainw-meta-info {
    background: #f8f9fa;
    border-left: 4px solid #4a90e2;
}

/* Social Media Posts */
.ainw-social-media {
    background: #f8f9fa;
    border-left: 4px solid #1da1f2;
}

/* Styled Posts */
.ainw-styled-posts {
    background: #f8f9fa;
    border-left: 4px solid #e1306c;
}

/* SEO-Analyse */
.ainw-seo-analysis {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.ainw-seo-analysis h2 {
    color: #1e293b;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.analysis-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 16px;
}

.analysis-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.section-letter {
    font-weight: 600;
    color: #3b82f6;
    margin-right: 8px;
}

.section-title {
    font-weight: 600;
    color: #1e293b;
}

.section-content {
    color: #475569;
    line-height: 1.6;
}

.section-content p {
    margin: 0 0 8px 0;
}

.section-content p:last-child {
    margin-bottom: 0;
}

.section-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.section-content li {
    margin-bottom: 4px;
}

/* Tabellen in der SEO-Analyse */
.section-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
}

.section-content th,
.section-content td {
    padding: 8px;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.section-content th {
    background-color: #f8fafc;
    font-weight: 600;
}

/* Allgemeine Textformatierung */
.ainw-seo-section p {
    margin-bottom: 1em;
    line-height: 1.6;
}

/* Fehlermeldungen */
.error {
    color: #dc3545;
    padding: 1em;
    background: #f8d7da;
    border-radius: 4px;
    margin-bottom: 1em;
}

/* Listen-Styles */
.ainw-seo-section ul {
    margin: 0;
    padding-left: 20px;
}

.ainw-seo-section li {
    margin: 8px 0;
    line-height: 1.4;
}

/* Markdown-Formatierung */
.ainw-seo-section code {
    background: #f4f4f4;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Responsive Design */
@media (max-width: 600px) {
    .ainw-seo-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .ainw-seo-section h2 {
        font-size: 1.2em;
    }
}

.ainw-seo-results {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.ainw-error {
    padding: 15px;
    margin: 10px 0;
    border-left: 4px solid #dc3232;
    background: #fff;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.ainw-seo-result-content {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.seo-text, .seo-analysis {
    margin: 15px 0;
    line-height: 1.6;
}

.seo-text h1, .seo-text h2, .seo-text h3,
.seo-analysis h1, .seo-analysis h2, .seo-analysis h3 {
    margin: 20px 0 10px;
    color: #23282d;
}

.seo-text p, .seo-analysis p {
    margin: 0 0 15px;
}

.seo-text ul, .seo-analysis ul {
    margin: 0 0 15px 20px;
    list-style-type: disc;
}

.seo-text li, .seo-analysis li {
    margin: 5px 0;
}

.ainw-seo-result-content h1 { font-size: 24px; margin: 20px 0 15px; }
.ainw-seo-result-content h2 { font-size: 20px; margin: 18px 0 12px; }
.ainw-seo-result-content h3 { font-size: 16px; margin: 15px 0 10px; }

.ainw-seo-result-content ul,
.ainw-seo-result-content ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.ainw-seo-result-content li {
    margin-bottom: 5px;
}

.ainw-seo-result-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ainw-seo-result-content th,
.ainw-seo-result-content td {
    padding: 8px;
    border: 1px solid #ddd;
    text-align: left;
}

.ainw-seo-result-content th {
    background: #f5f5f5;
}

.ainw-seo-result-content pre {
    background: #f6f7f7;
    padding: 15px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 15px 0;
}

.ainw-seo-result-content code {
    background: #f6f7f7;
    padding: 2px 5px;
    border-radius: 3px;
}

.ainw-info {
    background-color: #e7f5ff;
    border: 1px solid #4dabf7;
    color: #1864ab;
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}
