/* ==========================================================================
   General Styles & Variables
   ========================================================================== */

/* Globale Scrollbar-Einstellungen */
html {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Webkit-Scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
:root {
    /* Psychologisch Optimierte Farbpalette für SaaS Content Creator Tool */

    /* Primäre Grün-Farbpalette */
    --primary-color: #059669; /* Primary Green */
    --primary-hover: #047857; /* Dark Green */
    --primary-light: #10b981; /* Success Green */
    --primary-very-light: #ecfdf5; /* Sehr helles Grün für Highlights */

    /* Vertrauens- und Premium-Farben */
    --trust-blue: #3b82f6; /* Trust Blue für Hauptaktionen */
    --premium-indigo: #6366f1; /* Premium Indigo für exklusive Features */
    --secondary-gray: #6b7280; /* Gray für sekundäre Aktionen */

    /* Hintergrund- und Text-Farben */
    --background-color: #f8fafc; /* Slate-50 für professionellen Look */
    --background-white: #ffffff;
    --text-color: #374151; /* Dunkleres Grau für besseren Kontrast */
    --secondary-text: #6b7280;
    --light-gray: #f9fafb; /* Gray-50 für Seitenleisten */

    /* Status-Farben */
    --warning-color: #f59e0b; /* Amber für Warnungen */
    --error-color: #ef4444; /* Red für Fehler */
    --success-color: #10b981; /* Success Green */

    /* Optimierte Gradienten */
    --gradient-main: linear-gradient(135deg, #10b981 0%, #10b981 80%, #059669 100%); /* Neuer gewünschter Gradient */
    --gradient-hover: linear-gradient(135deg, #047857, #059669); /* Hover-Gradient */
    --gradient-trust: linear-gradient(135deg, #3b82f6, #2563eb); /* Vertrauens-Gradient */
    --gradient-premium: linear-gradient(135deg, #6366f1, #4f46e5); /* Premium-Gradient */

    /* Schatten mit psychologischer Optimierung */
    --shadow-primary: rgba(5, 150, 105, 0.2); /* Grün Schatten */
    --shadow-primary-hover: rgba(5, 150, 105, 0.3);
    --shadow-trust: rgba(59, 130, 246, 0.2); /* Blau Schatten */
    --shadow-premium: rgba(99, 102, 241, 0.2); /* Indigo Schatten */
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);

    /* Abstände */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
}

* {
    box-sizing: border-box;
    font-family: 'Lato', 'Poppins', sans-serif;
}

/* WordPress Header Override - Ensure it's above all plugin elements */
body > header,
.wp-site-blocks > header,
#masthead,
.site-header {
    position: relative !important;
    z-index: 9999 !important; /* Very high z-index to ensure it's above everything */
}

/* Ensure no text decoration on calendar headers */
.fc-col-header-cell-cushion,
.fc-col-header-cell a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Ensure no yellow underlines on any labels */
label, .label {
    border-bottom: none !important;
    text-decoration: none !important;
}





/* Brand Info Mode Checkboxes Side by Side */
.checkbox-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.checkbox-item-inline {
    display: flex;
    align-items: center;
}

.checkbox-item-inline input[type="checkbox"] {
    margin-right: 8px;
}

/* Brand Details Fields in 3 Columns */
#fe_brand_details_manual { /* Keep existing styles for manual if needed elsewhere */
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
}

/* Ensure #fe_brand_auto_fields is always displayed as a flex container */
#fe_brand_auto_fields {
    display: flex !important; /* Re-add !important for container */
    flex-wrap: wrap !important;
    gap: 20px !important;
    margin-top: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important; /* Ensure height isn't collapsed */
    overflow: visible !important; /* Ensure content isn't clipped */
}

/* Ensure the inner row is also displayed */
#fe_brand_auto_fields .brand-auto-fields-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    width: 100% !important; /* Ensure it takes full width */
    visibility: visible !important;
    opacity: 1 !important;
}

#fe_brand_details_manual .brand-category, /* Keep rule for manual if needed */
#fe_brand_auto_fields .brand-field-item { /* Target items specifically within auto fields */
    flex: 1 1 calc(33.333% - 20px) !important;
    box-sizing: border-box !important;
    display: block !important; /* Force display */
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px; /* Give some minimum height */
}

/* Adjust textarea width inside brand-field-item */
.brand-field-item textarea.brand-field-input {
    width: 100%;
    min-height: 100px;
    resize: vertical;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #fe_brand_details_manual,
    #fe_brand_auto_fields {
        flex-direction: column;
    }
    #fe_brand_details_manual .brand-category,
    #fe_brand_auto_fields .brand-field-item {
        flex: 1 1 100%;
    }
}

/* ==========================================================================
   Layout & Calendar Container
   ========================================================================== */
.seo-agentur-boost-calendar {
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    padding: 30px;
    box-sizing: border-box;
    background-color: var(--background-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1; /* Ensure calendar container is below header */
}

/* ==========================================================================
   Rahmen von dem Language Switcher
   ========================================================================== */

.language-switcher .lang-item.active {
    border-color: #189a84 !important;
}

/* AI-Powered Schema Configuration Styles */
.schema-config-container {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5e8 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 0;
    margin: 20px 0;
    box-shadow: 0 10px 40px rgba(76, 175, 80, 0.1);
    position: relative;
    overflow: hidden;
}

.schema-config-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4caf50, #8bc34a, #cddc39, #4caf50);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.schema-section {
    border-bottom: 1px solid rgba(224, 242, 241, 0.5);
    padding: 32px;
    position: relative;
    transition: all 0.3s ease;
}

.schema-section:last-child {
    border-bottom: none;
}

/* Schema section hover removed for professional appearance */

.schema-section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 24px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1b5e20;
    position: relative;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

/* White titles for AI schema section */
.ai-schema-section .schema-section-title {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.schema-section-title::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, #4caf50, transparent);
    margin-left: 16px;
}

.schema-icon {
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(76, 175, 80, 0.3));
}

/* AI-Powered Schema Intelligence Styles */
.ai-schema-section {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 50%, #4caf50 100%);
    border-radius: 16px;
    margin: 16px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

/* Ensure all headings in AI schema section are white */
.ai-schema-section h1,
.ai-schema-section h2,
.ai-schema-section h3,
.ai-schema-section h4,
.ai-schema-section h5,
.ai-schema-section h6,
.ai-schema-section .title,
.ai-schema-section .heading {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-schema-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    pointer-events: none;
}

.ai-schema-explanation {
    display: grid;
    gap: 24px;
}

.ai-explanation-card {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.ai-explanation-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #81c784, #a5d6a7, #c8e6c9, #81c784);
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientRotate 4s ease-in-out infinite;
}

.ai-explanation-card:hover::before {
    opacity: 0.3;
}

@keyframes gradientRotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.ai-explanation-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.ai-explanation-icon {
    font-size: 28px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.ai-explanation-header h6 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-explanation-text {
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 20px 0;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
}

.ai-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

/* AI feature hover removed for professional appearance */

.ai-feature-icon {
    font-size: 20px;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.ai-feature-text {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.ai-schema-types-preview {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(5px);
}

.ai-preview-title {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff !important;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* AI explanation header styles */
.ai-explanation-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ai-schema-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.ai-schema-type {
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* AI schema type hover removed for professional appearance */

/* Enhanced Static Data Fields */
.schema-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.schema-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.schema-field-full {
    grid-column: 1 / -1;
}

.schema-field label {
    font-weight: 600;
    color: #1b5e20;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

/* Schema labels in colored sections */
.brand-info-section .schema-field label,
.business-contact-section .schema-field label,
.address-section .schema-field label {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.schema-field label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: #4caf50;
    border-radius: 50%;
    display: inline-block;
}

/* Schema label dots in colored sections */
.brand-info-section .schema-field label::before,
.business-contact-section .schema-field label::before,
.address-section .schema-field label::before {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.5);
}

.schema-input, .schema-select {
    padding: 16px 20px;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
    position: relative;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.05);
}

/* Schema inputs in colored sections */
.brand-info-section .schema-input,
.brand-info-section .schema-select,
.business-contact-section .schema-input,
.business-contact-section .schema-select,
.address-section .schema-input,
.address-section .schema-select {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #1b5e20;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.brand-info-section .schema-input:focus,
.brand-info-section .schema-select:focus,
.business-contact-section .schema-input:focus,
.business-contact-section .schema-select:focus,
.address-section .schema-input:focus,
.address-section .schema-select:focus {
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.95);
    outline: none;
}

.schema-input:focus, .schema-select:focus {
    outline: none;
    border-color: #4caf50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.15), 0 4px 16px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
}

.schema-input::placeholder {
    color: #81c784;
    font-weight: 400;
}

.schema-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Schema Section Titles in colored sections */
.brand-info-section h5.schema-section-title,
.business-contact-section h5.schema-section-title,
.address-section h5.schema-section-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    padding: 20px 24px 0;
}

/* Enhanced Business Type Section - Brand Colors */
.business-contact-section {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 16px;
    margin: 16px;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
    transition: all 0.3s ease;
}

/* White headings for business contact section */
.business-contact-section h1,
.business-contact-section h2,
.business-contact-section h3,
.business-contact-section h4,
.business-contact-section h5,
.business-contact-section h6,
.business-contact-section .title,
.business-contact-section .heading {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects removed for professional appearance */

/* Enhanced Address Section - Brand Colors */
.address-section {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    border-radius: 16px;
    margin: 16px;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(4, 120, 87, 0.15);
    transition: all 0.3s ease;
}

/* White headings for address section */
.address-section h1,
.address-section h2,
.address-section h3,
.address-section h4,
.address-section h5,
.address-section h6,
.address-section .title,
.address-section .heading {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects removed for professional appearance */

/* Brand Info Section - Brand Colors */
.brand-info-section {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
    border-radius: 16px;
    margin: 16px;
    position: relative;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(27, 94, 32, 0.15);
    transition: all 0.3s ease;
}

/* White headings for brand info section */
.brand-info-section h1,
.brand-info-section h2,
.brand-info-section h3,
.brand-info-section h4,
.brand-info-section h5,
.brand-info-section h6,
.brand-info-section .title,
.brand-info-section .heading {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover effects removed for professional appearance */

/* Content Schema Options */
.schema-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 8px;
}

/* Scrollbar Styling für Schema Options */
.schema-options-grid::-webkit-scrollbar {
    width: 6px;
}

.schema-options-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.schema-options-grid::-webkit-scrollbar-thumb {
    background: #4caf50;
    border-radius: 3px;
}

.schema-options-grid::-webkit-scrollbar-thumb:hover {
    background: #45a049;
}

.schema-option-card {
    background: white;
    border: 2px solid #e8f5e8;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.schema-option-card:hover {
    border-color: #4caf50;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.1);
}

.schema-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.schema-option-icon {
    font-size: 24px;
}

.schema-option-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1b5e20;
}

.schema-option-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schema-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.schema-toggle input[type="checkbox"] {
    display: none;
}

.schema-toggle-slider {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ccc;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.schema-toggle-slider::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.schema-toggle input[type="checkbox"]:checked + .schema-toggle-slider {
    background: #4caf50;
}

.schema-toggle input[type="checkbox"]:checked + .schema-toggle-slider::before {
    transform: translateX(26px);
}

.schema-toggle-label {
    font-weight: 500;
    color: #2e7d32;
}

.schema-option-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Schema Type Specific Styling */
.schema-option-card:has(input[name*="recipe"]) {
    border-left: 4px solid #ff9800;
}

.schema-option-card:has(input[name*="faq"]) {
    border-left: 4px solid #2196f3;
}

.schema-option-card:has(input[name*="howto"]) {
    border-left: 4px solid #9c27b0;
}

.schema-option-card:has(input[name*="product"]) {
    border-left: 4px solid #e91e63;
}

.schema-option-card:has(input[name*="review"]) {
    border-left: 4px solid #ffc107;
}

.schema-option-card:has(input[name*="event"]) {
    border-left: 4px solid #f44336;
}

.schema-option-card:has(input[name*="article"]) {
    border-left: 4px solid #607d8b;
}

.schema-option-card:has(input[name*="video"]) {
    border-left: 4px solid #ff5722;
}

.schema-option-card:has(input[name*="course"]) {
    border-left: 4px solid #3f51b5;
}

.schema-option-card:has(input[name*="jobposting"]) {
    border-left: 4px solid #795548;
}

.schema-option-card:has(input[name*="service"]) {
    border-left: 4px solid #009688;
}

.schema-option-card:has(input[name*="software"]) {
    border-left: 4px solid #673ab7;
}

.schema-option-card:has(input[name*="book"]) {
    border-left: 4px solid #8bc34a;
}

.schema-option-card:has(input[name*="music"]) {
    border-left: 4px solid #e91e63;
}

.schema-option-card:has(input[name*="podcast"]) {
    border-left: 4px solid #ff9800;
}

/* Responsive Adjustments for More Cards */
@media (max-width: 1200px) {
    .schema-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .schema-options-grid {
        grid-template-columns: 1fr;
        max-height: 400px;
    }

    .schema-option-card {
        padding: 16px;
    }
}

/* Language Switcher Positioning */
.language-switcher {
    position: fixed !important;
    top: 160px !important;
    right: 20px !important;
    z-index: 50 !important;
    background-color: rgba(255, 255, 255, 0.8) !important;
    padding: 5px !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    pointer-events: auto !important;
}

/* Special Schema Section */
.schema-special-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.schema-info-card {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f8e9 100%);
    border: 2px solid #c8e6c9;
    border-radius: 12px;
    padding: 20px;
}

.wpheader-card {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-color: #ffcc02;
}

.thumbnail-card {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #2196f3;
}

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

.schema-info-icon {
    font-size: 20px;
}

.schema-info-header h6 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1b5e20;
    flex: 1;
}

.schema-status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.schema-status-badge.active {
    background: #4caf50;
    color: white;
}

.schema-info-description {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

.seo-agentur-boost-calendar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient-main);
}

#frontend-calendar {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    height: auto;
    min-height: 600px;
    max-height: 80vh;
    box-sizing: border-box;
    margin-bottom: 30px;
    font-family: 'Lato', sans-serif;
}

/* Kalender-Überschrift */
.calendar-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1; /* Ensure calendar header is below site header */
}

/* GSAP Animation Vorbereitung */
.calendar-header .level-title,
.calendar-header .calendar-title,
.calendar-header .ai-icon,
.calendar-header p,
.usage-info,
.seo-agentur-boost-calendar,
#frontend-calendar {
    will-change: transform, opacity;
    /* Text-Schärfe für Animationen */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Fallback: Elemente sind standardmäßig sichtbar */
.calendar-header .level-title,
.calendar-header .calendar-title,
.calendar-header .ai-icon,
.calendar-header p,
.usage-info,
.seo-agentur-boost-calendar,
#frontend-calendar {
    opacity: 1;
    transform: none;
}

/* Nur wenn GSAP geladen ist, werden sie unsichtbar gemacht */
.gsap-ready .calendar-header .level-title,
.gsap-ready .calendar-header .calendar-title,
.gsap-ready .calendar-header .ai-icon,
.gsap-ready .calendar-header p,
.gsap-ready .usage-info,
.gsap-ready .seo-agentur-boost-calendar,
.gsap-ready #frontend-calendar {
    opacity: 0;
}

/* Text-Schärfe nach Animationen sicherstellen */
.animation-complete,
.animation-complete * {
    transform: translateZ(0) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
    backface-visibility: hidden !important;
}

/* Spezielle Regeln für Input-Felder und Text-Elemente */
input, textarea, select, label, p, span, div {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Nach Animation: 2D-Rendering für scharfen Text */
.gsap-animation-finished {
    will-change: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Spezielle Schärfe für Input-Felder und Text nach Animationen */
.seo-agentur-boost-calendar input,
.seo-agentur-boost-calendar textarea,
.seo-agentur-boost-calendar select,
.seo-agentur-boost-calendar label,
.seo-agentur-boost-calendar p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Level Title (Enterprise, Professional, etc.) - Größer */
.calendar-header .level-title {
    font-size: clamp(3.2rem, 6.5vw, 5.0rem);
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #10b981 0%, #10b981 80%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1b5e20; /* Fallback sattes Grün */
    text-shadow: 3px 4px 4px rgb(0 0 0 / 14%);
    font-family: 'Poppins', sans-serif;
}

/* Calendar Title (Content-Produktionskalender) - Kleiner als Level Title */
.calendar-header .calendar-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #10b981 0%, #10b981 80%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #1b5e20; /* Fallback sattes Grün */
    text-shadow: 3px 4px 4px rgb(0 0 0 / 14%);
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* AI Icon - Größer und passend zur Font-Höhe */
.calendar-header .ai-icon {
    width: clamp(45px, 8vw, 65px);
    height: clamp(45px, 8vw, 65px);
    flex-shrink: 0;
}

.calendar-header p {
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    color: var(--secondary-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   FullCalendar Styling
   ========================================================================== */
.fc .fc-toolbar {
    background: var(--gradient-main);
    color: white;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px var(--gradient-shadow-color);
    position: relative;
    z-index: 1; /* Ensure toolbar is below site header */
}

.fc .fc-toolbar-title {
    color: white !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1; /* Ensure toolbar title is below site header */
}

/* --- FullCalendar Buttons --- */
.fc .fc-button {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-weight: 600 !important;
    font-family: 'Lato', sans-serif !important;
    border-radius: 5px !important;
    padding: 10px 20px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    margin: 0 5px !important;
}

.fc .fc-button:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.fc .fc-button:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1) !important;
}

/* --- Calendar Grid & Events --- */
.fc .fc-daygrid-day {
    border: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.fc .fc-daygrid-day:hover {
    background-color: var(--primary-very-light);
    transition: background-color 0.2s ease;
}

.fc .fc-daygrid-day-number {
    color: var(--text-color);
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px !important;
    text-align: right;
    width: auto;
    display: block;
	text-decoration: none !important;
}

.fc .fc-day-today {
    background-color: var(--primary-very-light) !important;
    border: 1px solid var(--primary-light) !important;
}

.fc .fc-day-today .fc-daygrid-day-number {
    color: var(--primary-color);
    font-weight: 700;
}

.fc .fc-event {
    background: linear-gradient(135deg, #10b981 0%, #10b981 80%, #059669 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
    font-weight: 700;
    border-left: 4px solid #059669;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-family: 'Lato', sans-serif;
}

.fc .fc-event::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    pointer-events: none;
    border-radius: 8px;
}

.fc .fc-event:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    background: linear-gradient(135deg, #059669 0%, #047857 80%, #065f46 100%);
    color: white;
}

.fc-event .delete-event {
    color: white;
    cursor: pointer;
    margin-right: 8px;
    font-weight: bold;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.2s ease;
}

.fc-event .delete-event:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Spezielle Styling für AI-geplante Events */
.fc .fc-event.ai-planned-event {
    background: linear-gradient(135deg, #10b981 0%, #10b981 80%, #059669 100%);
    border-left: 4px solid #059669;
    position: relative;
    padding-left: 30px; /* Platz für AI-Badge links */
}

.fc .fc-event.ai-planned-event::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8px;
    width: 16px;
    height: 16px;
    background-image: url('https://contentplanning.ai/wp-content/uploads/2025/06/ai-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    opacity: 0.9;
    filter: brightness(0) invert(1); /* Macht das Icon weiß */
    transition: all 0.3s ease;
}

.fc .fc-event.ai-planned-event:hover::before {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

/* Zusätzliche Event-Verbesserungen */
.fc .fc-event-title {
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading spinner for delete */
.delete-event.loading {
    position: relative;
    color: transparent;
}
.delete-event.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    border-left-color: transparent;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   General Button Styles
   ========================================================================== */
.aii-button-test, .seo-boost-btn {
    display: inline-block !important;
    padding: 12px 25px !important;
    border-radius: 5px !important;
    text-decoration: none !important;
    font-weight: bold !important;
    transition: background-color .3s ease, transform .3s ease, box-shadow .3s ease !important;
    cursor: pointer !important;
    border: none !important;
    font-size: 1rem !important;
    text-align: center !important;
    will-change: transform !important;
    background: var(--gradient-main) !important;
    color: #fff !important;
    font-family: 'Lato', sans-serif !important;
    box-shadow: 0 2px 5px var(--gradient-shadow-color) !important;
}

.aii-button-test:hover, .seo-boost-btn:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px var(--gradient-shadow-hover-color) !important;
    color: #fff !important;
    text-decoration: none !important;
}

.aii-button-test:active, .seo-boost-btn:active {
    transform: translateY(1px) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Secondary Button Style */
.aii-button-secondary, .seo-boost-btn-secondary {
    background: transparent !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    padding: 10px 23px !important;
}

.aii-button-secondary:hover, .seo-boost-btn-secondary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
    text-decoration: none !important;
}

/* Small Button Styles for Add and Remove Internal Links */
.aii-button-small, .seo-boost-btn-small {
    background: var(--gradient-main) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-soft) !important;
    display: inline-block !important;
    text-align: center !important;
    font-size: 14px !important;
    font-family: 'Lato', sans-serif !important;
}

/* Language-specific styling for remove buttons */
html[lang="en-US"] .entfernen-button {
    color: transparent !important;
    position: relative !important;
}

html[lang="en-US"] .entfernen-button:after {
    content: "Remove" !important;
    color: #333333 !important;
    font-size: 14px !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    text-align: center !important;
}

.aii-button-small:hover, .seo-boost-btn-small:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px var(--shadow-primary) !important;
}

.aii-button-small:active, .seo-boost-btn-small:active {
    transform: translateY(0) !important;
    box-shadow: var(--shadow-soft) !important;
}

.aii-button-small:focus, .seo-boost-btn-small:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px var(--shadow-primary) !important;
}

/* Specific styling for "Add more internal links" button */
#add-internal-link, #add-cta-button, #add-article-image {
    margin-bottom: 20px;
    margin-top: 15px;
}

/* ==========================================================================
   Multiple Images Feature
   ========================================================================== */

/* Pixabay Search Button Styling */
.pixabay-search-button {
    background: var(--gradient-main) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-soft) !important;
    font-size: 14px !important;
    font-family: 'Lato', sans-serif !important;
}

.pixabay-search-button:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px var(--shadow-primary) !important;
}

.pixabay-search-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 15px;
}

.pixabay-search-container .input-wrapper {
    flex: 1;
}

/* Ensure search buttons are properly aligned */
.pixabay-search-button,
.search-pixabay-article {
    align-self: flex-end;
    margin-bottom: 0;
    height: fit-content;
}

/* Remove button styling - ensure white font color */
.remove-internal-link,
.remove-cta-button,
.remove-article-image,
button[id*="remove"],
button.entfernen-button {
    background: var(--gradient-main) !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--shadow-soft) !important;
    font-size: 14px !important;
    font-family: 'Lato', sans-serif !important;
}

.remove-internal-link:hover,
.remove-cta-button:hover,
.remove-article-image:hover,
button[id*="remove"]:hover,
button.entfernen-button:hover {
    background: var(--gradient-hover) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px var(--shadow-primary) !important;
}

/* Pixabay Image Item Styling */
.pixabay-image-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-block;
    margin: 5px;
}

.pixabay-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-primary);
}

.pixabay-image-item.selected {
    border: 3px solid var(--success-color);
    transform: scale(1.02);
    box-shadow: 0 0 0 2px var(--shadow-primary);
}

.pixabay-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    transition: all 0.2s ease;
}

.pixabay-image-item img.selected {
    border: 3px solid var(--success-color);
}

#pixabay_results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--background-color);
}

.pixabay-article-results {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--background-color);
    margin-top: 10px;
}

.pixabay-search-container {
    margin-bottom: 20px;
}

.pixabay-search-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Veraltete Pixabay-Button-Stile entfernt - neue Stile sind oben definiert */

.alt-text-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 15px;
}

/* Button spacing for image features */
#add-article-image {
    margin-right: 15px;
    margin-bottom: 30px;
}

#seo-boost-plan-content {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* File input styling */
input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

input[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
}

/* ==========================================================================
   Usage Info & Settings Form
   ========================================================================== */
.usage-info {
    background: var(--gradient-main);
    color: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
    max-width: 50%;
    min-width: 50%;
    margin-left: auto;
    margin-right: auto;
    font-size: larger;
    font-family: 'Lato', sans-serif;
    box-shadow: 0 2px 10px var(--shadow-primary);
    position: relative;
    z-index: 1; /* Ensure usage info is below site header */
}

/* ==========================================================================
   Brand Color Picker
   ========================================================================== */
/* Brand Color Label Styling */
label[for="settings_brand_color"] {
    display: block;
    text-align: left;
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.brand-color-picker-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    flex-wrap: nowrap;
    width: 100%;
    max-width: none;
    padding: 0;
    box-sizing: border-box;
}

.brand-color-picker {
    width: 60px;
    height: 40px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.brand-color-picker:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary);
}

.brand-color-hex {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    transition: all 0.2s ease;
    background-color: var(--background-color);
    margin-bottom: 0;
    height: 40px;
    box-sizing: border-box;
}

.brand-color-hex:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
}

.brand-color-hex.valid {
    border-color: var(--success-color);
    background-color: #f0fdf4;
}

.brand-color-hex.invalid {
    border-color: var(--error-color);
    background-color: #fef2f2;
}

.brand-color-standard-btn {
    padding: 10px 16px;
    background: var(--gradient-main);
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
    white-space: nowrap;
    flex-shrink: 0;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
}

.brand-color-standard-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-primary);
}

.brand-color-standard-btn:active {
    transform: translateY(0);
}

/* Color Palette Preview */
.brand-color-palette {
    display: flex;
    gap: 8px;
    margin: 15px 0 0 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    max-width: none;
    padding: 0;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.color-swatch:hover {
    transform: scale(1.1);
    border-color: var(--text-color);
}

.color-swatch.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--shadow-primary);
}

.settings-form {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--background-color);
    border-radius: 10px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.settings-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.settings-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    border-bottom: none;
    text-decoration: none;
}
.settings-form input[type="text"],
.settings-form input[type="password"],
.settings-form input[type="number"],
.settings-form select,
.settings-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.settings-form input[type="text"]:focus,
.settings-form input[type="password"]:focus,
.settings-form input[type="number"]:focus,
.settings-form select:focus,
.settings-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary);
    outline: none;
}

/* Checkbox styling for settings form */
.settings-form .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.settings-form .checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.settings-form .checkbox-item label {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    border-bottom: none;
    text-decoration: none;
}

/* Schema options styling */
.schema-options {
    margin-bottom: 25px;
}

.schema-options .radio-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: var(--background-color);
    transition: all 0.2s ease;
    cursor: pointer;
}

.schema-options .radio-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.1);
}

.schema-options .radio-item input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.schema-options .radio-item input[type="radio"]:checked + label {
    color: var(--primary-color);
    font-weight: 600;
}

.schema-options .radio-item label {
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    cursor: pointer;
    font-weight: 500;
    border-bottom: none;
    text-decoration: none;
    margin-bottom: 5px;
    display: block;
    width: 100%;
}

.schema-options .radio-item .description {
    font-size: 14px;
    color: var(--secondary-text);
    margin-top: 5px;
    line-height: 1.4;
    font-style: italic;
}

.schema-options .radio-item:has(input[type="radio"]:checked) {
    border-color: var(--primary-color);
    background-color: rgba(5, 150, 105, 0.05);
}

/* Schema section in modal */
.schema-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.schema-section h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Input wrapper for settings form */
.settings-form .input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.settings-form .input-wrapper .input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.settings-form .input-wrapper .label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    font-size: 15px;
    color: #757575;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    font-family: 'Lato', sans-serif;
    border-bottom: none;
    text-decoration: none;
}

.settings-form .input-wrapper .input:focus + .label,
.settings-form .input-wrapper .input:not(:placeholder-shown) + .label,
.settings-form .input-wrapper.has-value .label {
    top: 0px;
    left: 22px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding: 0 5px;
}

/* Select2 im Einstellungsbereich */
.settings-form .select2-container {
    width: 100% !important;
    margin-bottom: 20px;
}

.settings-form .select2-container--default .select2-selection--single {
    height: auto;
    padding: 12px 15px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px;
    background-color: var(--background-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.settings-form .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: normal;
    padding-left: 0;
    color: var(--text-color);
    font-family: 'Lato', sans-serif;
    font-size: 15px;
}

.settings-form .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

.settings-form .select2-container--default.select2-container--focus .select2-selection--single,
.settings-form .select2-container--default .select2-selection--single:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--gradient-shadow-color);
}

.select2-dropdown {
    border-color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    overflow: hidden;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--secondary-color);
}

/* Einheitliche Formatierung für Select2 Dropdown-Optionen */
.select2-container--default .select2-results__option {
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    padding: 8px 12px;
    color: var(--text-color);
    font-weight: normal;
}

/* Entfernen des X-Symbols für das Sprache-Dropdown */
#settings_language + .select2-container--default .select2-selection__clear {
    display: none;
}
.settings-form .aii-button-test {
    margin-top: 20px;
    padding: 14px 30px !important;
    font-size: 16px !important;
    min-width: 200px;
}

/* ==========================================================================
   Success Modal Styling
   ========================================================================== */
#success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.3);
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* Glassmorphism effect */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
    animation: modalBackdropFadeIn 0.3s ease-out forwards;
    /* Center modal vertically and horizontally */
    align-items: center;
    justify-content: center;
    padding: 0;
}

#success-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

#success-modal-content {
    background: var(--background-color);
    margin: auto;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow:
        0 4px 20px 0 rgba(60, 64, 67, 0.3),
        0 8px 30px 5px rgba(60, 64, 67, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Glassmorphism inner effect */
    background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.85));
    animation: modalFadeIn 0.4s ease-out forwards;
    transform-origin: center;
}

#success-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 10;
    transition: all 0.2s ease;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--shadow-primary);
    text-shadow: 0 0 2px rgba(248, 250, 252, 0.8);
}

#success-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: pulse 2s infinite;
}

#success-modal-close:hover {
    background: var(--background-color);
    transform: rotate(90deg);
    color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--shadow-primary), 0 0 0 3px var(--shadow-primary);
}

#success-modal .container {
    padding: 30px;
    flex-grow: 1;
}

#success-modal .form-header {
    background: var(--gradient-main);
    color: white;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

#success-modal .form-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#success-modal .form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

#success-modal .success-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

#success-modal .success-icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    box-shadow: 0 4px 10px var(--gradient-shadow-color);
}

#success-modal .success-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-main);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--gradient-shadow-color);
    text-align: center;
}

#success-modal .success-btn:hover {
    background: var(--gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--gradient-shadow-hover-color);
}

/* ==========================================================================
   Error Modal Styling
   ========================================================================== */
#error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 193, 7, 0.3);
    z-index: 2000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* Glassmorphism effect */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 193, 7, 0.1));
    animation: modalBackdropFadeIn 0.3s ease-out forwards;
    /* Center modal vertically and horizontally */
    align-items: center;
    justify-content: center;
    padding: 0;
}

#error-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

#error-modal-content {
    background: var(--background-color);
    margin: auto;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow:
        0 4px 20px 0 rgba(60, 64, 67, 0.3),
        0 8px 30px 5px rgba(60, 64, 67, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Glassmorphism inner effect */
    background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.85));
    animation: modalFadeIn 0.4s ease-out forwards;
    transform-origin: center;
}

#error-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    color: var(--warning-color);
    z-index: 10;
    transition: all 0.2s ease;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--shadow-warning);
    text-shadow: 0 0 2px rgba(248, 250, 252, 0.8);
}

#error-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: pulse 2s infinite;
}

#error-modal-close:hover {
    background: var(--background-color);
    transform: rotate(90deg);
    color: var(--error-color);
    box-shadow: 0 4px 12px var(--shadow-warning), 0 0 0 3px var(--shadow-warning);
}

#error-modal .container {
    padding: 30px;
    flex-grow: 1;
}

#error-modal .form-header {
    background: var(--gradient-yellow);
    color: #333333;
    padding: 20px 30px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

#error-modal .form-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 5px;
}

#error-modal .form-header p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

#error-modal .error-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #333;
}

#error-modal .error-icon {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: var(--gradient-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333333;
    font-size: 32px;
    box-shadow: 0 4px 10px var(--gradient-yellow-shadow-color);
}

#error-modal .error-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-yellow);
    color: #333333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px var(--gradient-yellow-shadow-color);
    text-align: center;
}

#error-modal .error-btn:hover {
    background: var(--gradient-yellow-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--gradient-yellow-shadow-hover-color);
}

/* ==========================================================================
   Modal (#plan-modal) Styling
   ========================================================================== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalBackdropFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}
#plan-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(76, 175, 80, 0.3);
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    backdrop-filter: blur(10px);
    box-sizing: border-box;
    /* Glassmorphism effect */
    background-image:
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)),
        linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
    animation: modalBackdropFadeIn 0.3s ease-out forwards;
    /* Center modal vertically and horizontally */
    align-items: center;
    justify-content: center;
    padding: 0;
}

#plan-modal.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

#plan-modal-content {
    background: var(--background-color);
    margin: auto;
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    border-radius: 16px;
    box-shadow:
        0 4px 20px 0 rgba(60, 64, 67, 0.3),
        0 8px 30px 5px rgba(60, 64, 67, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Glassmorphism inner effect */
    background-image: linear-gradient(135deg, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.85));
    animation: modalFadeIn 0.4s ease-out forwards;
    transform-origin: center;
}

#plan-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 10;
    transition: all 0.2s ease;
    background: rgba(248, 250, 252, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 0 0 2px var(--shadow-primary);
    text-shadow: 0 0 2px rgba(248, 250, 252, 0.8);
}

#plan-modal-close::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 175, 80, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

#plan-modal-close:hover {
    background: var(--background-color);
    transform: rotate(90deg);
    color: var(--primary-hover);
    box-shadow: 0 4px 12px var(--shadow-primary), 0 0 0 3px var(--shadow-primary);
}

/* --- Modal Form Container & Header --- */
#plan-modal .container {
    padding: 0 30px 30px;
    flex-grow: 1;
    overflow-y: auto;
    max-height: calc(80vh - 80px);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
}

/* Custom scrollbar for Webkit browsers */
#plan-modal .container::-webkit-scrollbar {
    width: 8px;
}

#plan-modal .container::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

#plan-modal .container::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
}

#plan-modal .container::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

#plan-modal .form-header {
    background: var(--gradient-main);
    color: white;
    padding: 20px 25px;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#plan-modal .form-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    pointer-events: none;
}

#plan-modal .form-header h1,
#plan-modal .form-header p {
    color: white !important;
    font-weight: 400 !important;
    margin: 0;
}

#plan-modal .form-header h1 {
    font-size: 22px !important;
    margin-bottom: 8px !important;
}

#plan-modal .form-header p {
    font-size: 14px !important;
    opacity: 0.9 !important;
}

/* ==========================================================================
   Form Elements (Inputs, Selects, Radios, Checkboxes) in Modal
   ========================================================================== */

/* --- Input Wrapper & Floating Label --- */
#plan-modal .input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

/* --- Form Section Titles --- */
#plan-modal .section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 30px 0 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

/* --- Gradient Border Input Fields (Modal Specific) --- */
#plan-modal .input-wrapper .input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 0.95), rgba(248, 250, 252, 0.9));
}

#plan-modal .input-wrapper .input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--shadow-primary), 0 5px 15px var(--shadow-primary);
    background-image: linear-gradient(to bottom, rgba(248, 250, 252, 1), rgba(248, 250, 252, 0.95));
}

#plan-modal .input-wrapper .input:focus + .label {
    top: 0px;
    left: 22px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding: 0 5px;
}

/* --- Floating Labels --- */
#plan-modal .input-wrapper .label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 16px;
    font-size: 15px;
    color: #757575;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    font-family: 'Lato', sans-serif;
}

#plan-modal .input-wrapper.has-value .label {
    top: 0px;
    left: 22px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary-color);
    background-color: var(--background-color);
    padding: 0 5px;
}

/* --- Select2 Specific Adjustments --- */
#plan-modal .select2-container {
    width: 100% !important;
}

#plan-modal .select2-container--default .select2-selection--single {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    font-size: 15px;
    background-color: var(--background-color);
    color: var(--text-color);
    box-sizing: border-box;
    height: auto;
    line-height: normal;
    position: relative;
    z-index: 1;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#plan-modal .select2-container--default .select2-selection--single:focus,
#plan-modal .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--shadow-primary);
}

#plan-modal .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--text-color);
    line-height: normal;
    padding-left: 0;
}

#plan-modal .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    right: 10px;
}

/* --- Checkbox & Radio Styling --- */
#plan-modal .checkbox-item,
#plan-modal .radio-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

#plan-modal .checkbox-item input[type="checkbox"],
#plan-modal .radio-item input[type="radio"] {
    margin-right: 10px;
    cursor: pointer;
}

#plan-modal .checkbox-item label,
#plan-modal .radio-item label {
    font-family: 'Lato', sans-serif;
    font-size: 15px;
    color: var(--text-color);
    cursor: pointer;
}

/* --- Section Containers --- */
#plan-modal #internal-links-section,
#plan-modal #cta-section,
#plan-modal #shortcode-section {
    background-color: var(--secondary-very-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--secondary-light);
}

#plan-modal .input-wrapper .select2-container--default::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    background: var(--gradient-main);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.2s ease-out, border-radius 0.2s ease-out;
}

#plan-modal .input-wrapper .select2-container--default.select2-container--focus .select2-selection--single,
#plan-modal .input-wrapper .select2-container--default.select2-container--open .select2-selection--single {
    border-radius: 30px;
    border: 2px solid var(--primary-color) !important;
}

#plan-modal .input-wrapper .select2-container--default.select2-container--focus::before,
#plan-modal .input-wrapper .select2-container--default.select2-container--open::before {
    opacity: 1;
    border-radius: 30px;
}

#plan-modal .input-wrapper .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: inherit;
    padding: 0;
    color: var(--text-color);
}

#plan-modal .input-wrapper .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: calc(100% - 4px);
    right: 8px;
    top: 2px;
}

#plan-modal .input-wrapper .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: var(--secondary-text);
}

/* --- Floating Label (Modal Specific) --- */
#plan-modal .input-wrapper .label {
    position: absolute;
    left: 17px;
    top: 25px;
    color: var(--secondary-text);
    font-size: 17px;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.17s ease-out;
    background-color: var(--background-color);
    padding: 0 1px;
    z-index: 1;
    border-bottom: none;
    text-decoration: none;
}

/* State when input has value or focus - Label floats up (Modal Specific) */
#plan-modal .input-wrapper .input:focus + .label,
#plan-modal .input-wrapper .input:not(:placeholder-shown) + .label,
#plan-modal .input-wrapper.has-value .label,
#plan-modal .input-wrapper .select2-container--default.select2-container--open ~ .label {
    top: 0px;
    left: 22px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-color);
    background-color: var(--background-color);
    padding: 0 5px;
}

/* --- Radio Buttons & Checkboxes (Modal Specific) --- */
#plan-modal .radio-group,
#plan-modal .checkbox-group {
    margin-bottom: 20px;
}
#plan-modal .section-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--secondary-text);
    font-size: 14px;
    border-bottom: none;
    text-decoration: none;
}
#plan-modal .radio-item,
#plan-modal .checkbox-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    cursor: pointer;
}
#plan-modal .radio-item label,
#plan-modal .checkbox-item label {
    margin-left: 8px;
    display: flex;
    align-items: center;
    border-bottom: none;
    text-decoration: none;
}

/* Premium feature badge */
.premium-feature label {
    position: relative;
}

/* Premium badge styling moved to bottom of file to avoid conflicts */
#plan-modal input[type="checkbox"],
#plan-modal input[type="radio"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    flex-shrink: 0;
    accent-color: var(--gradient-start);
    cursor: pointer;
}

/* --- Spacing between Thumbnail options and Time (Modal Specific) --- */
#plan-modal #pixabay_search,
#plan-modal #upload_image,
#plan-modal .thumbnail-option-content {
    margin-bottom: 24px;
    padding: 15px;
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    background-color: var(--primary-very-light);
}

/* Section heading sizes */
.thumbnail-section h3,
.content-type-section h3,
.status-section h3 {
    font-size: 16px !important;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color);
}

/* Add spacing between sections */
.content-type-section,
.status-section {
    margin-bottom: 24px;
}

/* Internal Link Group Styling */
.internal-link-group {
    margin-bottom: 15px;
}

.internal-link-group .aii-button-small {
    margin-top: 10px;
}

/* ==========================================================================
   Pixabay Search Specific Styles (Modal Specific)
   ========================================================================== */
#plan-modal #pixabay_search .input-wrapper {
    margin-bottom: 15px;
}
#plan-modal #pixabay_search button.search-pixabay-button {
    margin-bottom: 15px;
}

#plan-modal #pixabay_results,
#plan-modal .pixabay-results,
#plan-modal .pixabay-article-results,
.pixabay-images-container,
#pixabay_results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    max-height: 350px;
    overflow-y: auto;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
    background-color: var(--background-color);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    /* Verbesserte Scrollbar-Darstellung */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Scrollbar-Styling für Webkit-Browser (Chrome, Safari) */
#plan-modal #pixabay_results::-webkit-scrollbar,
#plan-modal .pixabay-results::-webkit-scrollbar,
#plan-modal .pixabay-article-results::-webkit-scrollbar,
.pixabay-images-container::-webkit-scrollbar,
#pixabay_results::-webkit-scrollbar {
    width: 8px;
}

#plan-modal #pixabay_results::-webkit-scrollbar-track,
#plan-modal .pixabay-results::-webkit-scrollbar-track,
#plan-modal .pixabay-article-results::-webkit-scrollbar-track,
.pixabay-images-container::-webkit-scrollbar-track,
#pixabay_results::-webkit-scrollbar-track {
    background: transparent;
}

#plan-modal #pixabay_results::-webkit-scrollbar-thumb,
#plan-modal .pixabay-results::-webkit-scrollbar-thumb,
#plan-modal .pixabay-article-results::-webkit-scrollbar-thumb,
.pixabay-images-container::-webkit-scrollbar-thumb,
#pixabay_results::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

#plan-modal .pixabay-results img,
#plan-modal #pixabay_results img,
#plan-modal .pixabay-article-results img,
.pixabay-images-container img,
.pixabay-image-item img,
#pixabay_results img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#plan-modal .pixabay-results img:hover,
#plan-modal #pixabay_results img:hover,
#plan-modal .pixabay-article-results img:hover,
.pixabay-images-container img:hover,
.pixabay-image-item:hover img,
#pixabay_results img:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-primary);
    outline: 2px solid var(--primary-light);
    outline-offset: -2px;
}

#plan-modal .pixabay-results img.selected,
#plan-modal #pixabay_results img.selected,
#plan-modal .pixabay-article-results img.selected,
.pixabay-images-container img.selected,
.pixabay-image-item.selected img,
#pixabay_results img.selected {
    border-color: var(--success-color); /* Grüne Farbe für ausgewählte Bilder */
    border-width: 3px;
    box-shadow: 0 0 10px var(--shadow-primary);
    outline: none;
}

/* Container für Pixabay-Bilder */
.pixabay-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.pixabay-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-primary);
}

.pixabay-image-item.selected {
    transform: translateY(-2px);
    box-shadow: 0 0 10px var(--shadow-primary);
}

/* ==========================================================================
   Skeleton Loading Effect
   ========================================================================== */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

#plan-modal.loading .input-wrapper .input,
#plan-modal.loading .input-wrapper .select2-container--default .select2-selection--single,
#plan-modal.loading .radio-item,
#plan-modal.loading .checkbox-item {
    pointer-events: none;
    opacity: 0.5;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.5s infinite;
}

#plan-modal.loading .input-wrapper .label {
    color: transparent;
}

#plan-modal.loading .radio-item label,
#plan-modal.loading .checkbox-item label {
    color: transparent;
}

#plan-modal.loading .radio-item input[type="radio"],
#plan-modal.loading .checkbox-item input[type="checkbox"] {
    visibility: hidden;
}

/* ==========================================================================
   Modal Notifications
   ========================================================================== */
.seo-boost-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-in-out;
    /* Center modal vertically and horizontally */
    align-items: center;
    justify-content: center;
}

/* Ensure all modal headers have white text */
.seo-boost-modal-header h2,
.form-header h1,
.form-header h2,
.modal-header h1,
.modal-header h2 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.seo-boost-modal-content {
    position: relative;
    background: var(--background-color);
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    animation: slideIn 0.4s ease-out;
    overflow: hidden;
}

.seo-boost-modal-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
}

#success-modal .seo-boost-modal-header {
    background: linear-gradient(135deg, #28a745, #48bb78);
    color: white;
}

#success-modal .seo-boost-modal-header h2 {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#error-modal .seo-boost-modal-header {
    background: linear-gradient(135deg, #dc3545, #ff6b81);
    color: white;
}

.seo-boost-modal-header h2 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: white !important;
}

.seo-boost-modal-body {
    padding: 30px;
    text-align: center;
}

.seo-boost-modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: white;
    font-weight: bold;
}

.seo-boost-modal-icon.success {
    background: linear-gradient(135deg, #28a745, #48bb78);
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.seo-boost-modal-icon.error {
    background: linear-gradient(135deg, #dc3545, #ff6b81);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

.seo-boost-modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0;
}

.seo-boost-modal-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.seo-boost-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    color: white;
    z-index: 10;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.seo-boost-modal-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, 0.3);
}

#success-modal .seo-boost-modal-ok {
    background: linear-gradient(135deg, #28a745, #48bb78) !important;
}

#success-modal .seo-boost-modal-ok:hover {
    background: linear-gradient(135deg, #218838, #3ca065) !important;
}

#error-modal .seo-boost-modal-ok {
    background: linear-gradient(135deg, #dc3545, #ff6b81) !important;
}

#error-modal .seo-boost-modal-ok:hover {
    background: linear-gradient(135deg, #c82333, #e74c3c) !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   Epic Toast Notifications System
   ========================================================================== */
.epic-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    min-width: 420px;
    max-width: 500px;
    padding: 0;
    border-radius: 16px;
    z-index: 15000;
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Lato', sans-serif;
    backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.epic-toast-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.epic-toast-exit {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
    transition: all 0.3s ease-in-out;
}

/* Toast Types with Gradients and Glows */
.epic-toast-success {
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    box-shadow: 0 20px 40px rgba(0, 200, 81, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 200, 81, 0.3);
}

.epic-toast-error {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow: 0 20px 40px rgba(255, 68, 68, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
}

.epic-toast-warning {
    background: linear-gradient(135deg, #ffbb33 0%, #ff8800 100%);
    box-shadow: 0 20px 40px rgba(255, 187, 51, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 187, 51, 0.3);
}

.epic-toast-info {
    background: linear-gradient(135deg, #33b5e5 0%, #0099cc 100%);
    box-shadow: 0 20px 40px rgba(51, 181, 229, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(51, 181, 229, 0.3);
}

/* Toast Content Layout */
.epic-toast {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
    position: relative;
}

.epic-toast-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    animation: epic-toast-icon-pulse 2s infinite;
}

.epic-toast-content {
    flex: 1;
    color: white;
}

.epic-toast-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.epic-toast-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.epic-toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.epic-toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: scale(1.1);
}

/* Progress Bar */
.epic-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 16px 16px;
    animation: epic-toast-progress 6s linear forwards;
}

/* Animations */
@keyframes epic-toast-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes epic-toast-progress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Hover Effects */
.epic-toast:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.epic-toast:hover .epic-toast-progress {
    animation-play-state: paused;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .epic-toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100%) scale(0.9);
    }

    .epic-toast-visible {
        transform: translateY(0) scale(1);
    }

    .epic-toast-exit {
        transform: translateY(-100%) scale(0.9);
    }
}

/* ==========================================================================
   Mega Toast for Critical Errors (Upload Errors, etc.)
   ========================================================================== */
.mega-toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mega-toast-visible {
    opacity: 1;
    transform: scale(1);
}

.mega-toast-exit {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease-in-out;
}

.mega-toast-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    animation: mega-toast-backdrop-pulse 3s ease-in-out infinite;
}

.mega-toast-container {
    position: relative;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    border-radius: 24px;
    padding: 40px;
    max-width: 600px;
    width: 90%;
    box-shadow:
        0 30px 60px rgba(255, 68, 68, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 68, 68, 0.3);
    color: white;
    text-align: center;
    animation: mega-toast-shake 0.5s ease-in-out;
}

.mega-toast-error .mega-toast-container {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    box-shadow:
        0 30px 60px rgba(255, 68, 68, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mega-toast-warning .mega-toast-container {
    background: linear-gradient(135deg, #ffbb33 0%, #ff8800 100%);
    box-shadow:
        0 30px 60px rgba(255, 187, 51, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.mega-toast-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: mega-toast-icon-bounce 1s ease-in-out infinite;
}

.mega-toast-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 3;
}

.mega-toast-title {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    animation: mega-toast-title-glow 2s ease-in-out infinite;
}

.mega-toast-message {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mega-toast-suggestion {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    white-space: pre-line;
}

.mega-toast-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

.mega-toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

/* Mega Toast Animations */
@keyframes mega-toast-backdrop-pulse {
    0%, 100% { background: rgba(0, 0, 0, 0.7); }
    50% { background: rgba(0, 0, 0, 0.8); }
}

@keyframes mega-toast-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

@keyframes mega-toast-icon-bounce {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes mega-toast-title-glow {
    0%, 100% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
    50% { text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.3); }
}

/* Mobile Responsiveness for Mega Toast */
@media (max-width: 768px) {
    .mega-toast-container {
        padding: 30px 20px;
        margin: 20px;
    }

    .mega-toast-title {
        font-size: 24px;
    }

    .mega-toast-message {
        font-size: 18px;
    }

    .mega-toast-suggestion {
        font-size: 14px;
    }

    .mega-toast-icon {
        width: 60px;
        height: 60px;
    }

    .mega-toast-icon svg {
        width: 36px;
        height: 36px;
    }
}

/* Legacy Toast Support (Fallback) */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-family: 'Lato', sans-serif;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    text-align: center;
    transform: translateY(-10px);
}

.toast.success {
    background-color: #28a745;
    color: white;
    border-left: 5px solid #1e7e34;
}

.toast.error {
    background-color: #d32f2f;
    border-left: 5px solid #b71c1c;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Calendar Error Message */
.calendar-error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    margin: 10px 0 20px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Enhanced Premium Badge - FIXED VERSION */
.premium-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%) !important;
    color: #333 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-left: 10px !important;
    text-transform: uppercase !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    z-index: 999 !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

.premium-badge::before {
    content: "★" !important;
    margin-right: 3px !important;
    font-size: 10px !important;
    display: inline-block !important;
    color: #333 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Maximale Spezifität für Premium Badges - ALLE KONTEXTE */
#plan-modal .premium-badge,
.premium-feature .premium-badge,
label .premium-badge,
.checkbox-item .premium-badge,
.premium-feature label .premium-badge,
#plan-modal .premium-feature .premium-badge,
#plan-modal .checkbox-item .premium-badge,
#plan-modal label .premium-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%) !important;
    color: #333 !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-left: 10px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3) !important;
    border: 1px solid #e6c200 !important;
    white-space: nowrap !important;
    min-width: auto !important;
    width: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

/* Verhindere, dass Loading-States das Premium Badge verstecken */
#plan-modal.loading .premium-badge,
.loading .premium-badge {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Skeleton Loading Effect
   ========================================================================== */
@keyframes shimmerSkeleton {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.settings-form.loading {
    position: relative;
    pointer-events: none;
}

.settings-form.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(240, 240, 240, 0.6) 25%, rgba(224, 224, 224, 0.6) 50%, rgba(240, 240, 240, 0.6) 75%);
    background-size: 200% 100%;
    animation: shimmerSkeleton 1.5s infinite;
    z-index: 10;
    border-radius: 10px;
}

.settings-form.loading input[type="text"],
.settings-form.loading input[type="password"],
.settings-form.loading input[type="number"],
.settings-form.loading select,
.settings-form.loading textarea,
.settings-form.loading .select2-container--default .select2-selection--single {
    border-color: #e0e0e0 !important;
    color: transparent !important;
}

.settings-form.loading label {
    color: #aaa;
}

.settings-form.loading .aii-button-test,
.settings-form.loading .seo-boost-btn {
    opacity: 0.7;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 768px) {
    .seo-agentur-boost-calendar {
        padding: 10px;
    }
    #frontend-calendar {
        height: 65vh;
    }
    .fc .fc-daygrid-day-number {
        font-size: 14px;
        padding: 3px 5px !important;
    }
    .fc .fc-toolbar {
        /* Add specific responsive toolbar styles here if needed */
    }

    /* Responsive title adjustments */
    .calendar-header .level-title {
        font-size: clamp(2.2rem, 5vw, 3.0rem);
        margin-bottom: 16px;
    }

    .calendar-header .calendar-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        margin-bottom: 16px;
    }

    .calendar-header .ai-icon {
        width: clamp(32px, 6vw, 45px);
        height: clamp(32px, 6vw, 45px);
    }

    .calendar-header .calendar-title {
        gap: 10px;
    }

    /* Responsive event styling */
    .fc .fc-event {
        font-size: 12px;
        padding: 6px 10px;
        padding-left: 26px; /* Weniger Platz für AI-Badge links auf Mobile */
    }

    .fc .fc-event.ai-planned-event::before {
        width: 14px;
        height: 14px;
        left: 6px;
    }

    /* Responsive language switcher */
    .language-switcher {
        top: 100px !important;
        right: 10px !important;
    }

    .language-switcher img {
        width: 30px !important;
    }
} /* Closing brace for @media (max-width: 768px) */

/* ==========================================================================
   Shortcode Groups Styling
   ========================================================================== */
.shortcode-group {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.shortcode-group .input-wrapper {
    margin-bottom: 15px;
}

.shortcode-group .radio-group {
    margin-bottom: 15px;
}

.shortcode-group .remove-shortcode {
    margin-top: 10px;
}

#shortcodes-section {
    background-color: var(--secondary-very-light);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--secondary-light);
}

#add-shortcode {
    margin-top: 15px;
    margin-bottom: 20px;
}

/* Help text styling */
.help-text {
    margin-top: -15px;
    margin-bottom: 20px;
}

.help-text small {
    color: var(--secondary-text);
    font-size: 13px;
    line-height: 1.4;
    display: block;
    font-style: italic;
}

/* Category Helper Styling */
.category-helper {
    margin-top: 10px;
    margin-bottom: 15px;
}

#categories-list {
    margin-top: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f8fafc; /* Fallback für CSS-Variable */
    background-color: var(--background-color);
    max-height: 300px;
    overflow-y: auto;
    /* KRITISCHER FIX: Stelle sicher, dass das Element sichtbar ist wenn display: block gesetzt wird */
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    /* ZUSÄTZLICHER FIX: Mindesthöhe für bessere Sichtbarkeit */
    min-height: 50px !important;
}

/* KRITISCHER FIX: Wenn das Element angezeigt wird, stelle sicher dass es sichtbar ist */
#categories-list[style*="display: block"],
#categories-list[style*="display:block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
}

.categories-container {
    padding: 15px;
    /* KRITISCHER FIX: Stelle sicher, dass Container sichtbar ist */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #ffffff; /* Fallback für bessere Sichtbarkeit */
    min-height: 30px !important;
}

.categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    /* KRITISCHER FIX: Stelle sicher, dass Grid sichtbar ist */
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 50px !important;
}

.category-item {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff !important; /* Feste weiße Hintergrundfarbe */
    position: relative;
    /* KRITISCHER FIX: Stelle sicher, dass Items sichtbar sind */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 80px !important; /* Mindesthöhe für bessere Sichtbarkeit */
    margin-bottom: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.category-item:hover {
    border-color: var(--primary-color, #059669); /* Fallback für CSS-Variable */
    box-shadow: 0 2px 8px var(--shadow-primary, rgba(5, 150, 105, 0.2)); /* Fallback */
    transform: translateY(-1px);
}

.category-item.selected {
    border-color: var(--success-color, #10b981); /* Fallback */
    background-color: var(--primary-very-light, #f0fdf4); /* Fallback */
    box-shadow: 0 0 0 2px var(--shadow-primary, rgba(5, 150, 105, 0.2)); /* Fallback */
}

.category-name {
    font-weight: 600 !important;
    color: #374151 !important; /* Feste dunkle Farbe für bessere Sichtbarkeit */
    margin-bottom: 4px !important;
    font-size: 16px !important; /* Größere Schrift für bessere Sichtbarkeit */
    /* KRITISCHER FIX: Stelle sicher, dass Text sichtbar ist */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-id {
    font-size: 14px !important; /* Größere Schrift */
    color: #059669 !important; /* Feste grüne Farbe */
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    /* KRITISCHER FIX: Stelle sicher, dass Text sichtbar ist */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.category-count {
    font-size: 11px;
    color: var(--secondary-text, #6b7280); /* Fallback */
    margin-bottom: 6px;
    /* KRITISCHER FIX: Stelle sicher, dass Text sichtbar ist */
    display: block !important;
    visibility: visible !important;
}

.category-description {
    font-size: 11px;
    color: var(--secondary-text, #6b7280); /* Fallback */
    font-style: italic;
    line-height: 1.3;
    /* KRITISCHER FIX: Stelle sicher, dass Text sichtbar ist */
    display: block !important;
    visibility: visible !important;
}

.category-confirmation {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.no-categories {
    text-align: center;
    color: var(--secondary-text);
    font-style: italic;
    padding: 20px;
}


