.ainw-seo-form-container {
    max-width: 100%;
    margin-bottom: 15px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.ainw-textarea-container {
    position: relative;
    margin-bottom: 15px;
}

#ainw-clear-button {
    position: absolute;
    top: 10px;
    right: 30px; /* Von 40px auf 30px verringert, um den Button 10px nach rechts zu verschieben */
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    z-index: 10;
    transition: all 0.2s ease;
}

#ainw-clear-button:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

#ainw-content {
    width: 100%;
    min-height: 300px;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    resize: vertical;
}

/* Sichtbare Resize-Markierung */
.ainw-textarea-container::after {
    content: "⋮⋮";
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: #999;
    font-size: 16px;
    line-height: 1;
    pointer-events: none;
    z-index: 5;
    transform: rotate(90deg);
    font-weight: bold;
}

#ainw-paste-button {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    background-color: #f8f8f8;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-weight: 500;
    /* Entferne alle Transitionen, die das Springen verursachen könnten */
    transition: none !important;
    pointer-events: auto;
    /* Fixiere die Position */
    margin: 0 !important;
    will-change: auto !important;
}

#ainw-paste-button:hover {
    background-color: #f0f0f0;
    /* Entferne die Transform-Eigenschaft, die das Springen verursachen könnte */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translate(-50%, -50%) !important;
}

#ainw-paste-button .dashicons {
    font-size: 16px;
}

.ainw-button-container {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
}

.ainw-analyze-button {
    margin-right: 5px !important;
    position: relative;
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 10px 16px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    font-weight: 500 !important;
}

.ainw-analyze-button:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Brief Mode aktiv - Buttons die Brief Mode unterstützen werden deutlich dunkler */
.ainw-analyze-button.brief-mode-active {
    background-color: #d8d8d8 !important;
    border-color: #b8b8b8 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12) !important;
}

.ainw-analyze-button.brief-mode-active:hover {
    background-color: #d0d0d0 !important;
    border-color: #a8a8a8 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15) !important;
}

.ainw-button-tooltip {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #333;
    font-size: 0.85em;
    background-color: #f8f8f8;
    padding: 3px 8px;
    border-radius: 3px;
    border: 1px solid #ddd;
    white-space: nowrap;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Button-Zeile für alle Buttons */
.ainw-buttons-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.ainw-button-groups-container {
    flex: 1;
    display: flex;
    gap: 5px;
    justify-content: flex-start;
}

.ainw-reset-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.ainw-brief-mode-container {
    margin-left: 10px;
}

.ainw-set-lead-container {
    margin-left: 10px;
}

#ainw-reset-button {
    padding: 8px 15px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 14px;
}

/* Brief Mode Button Styling */
#ainw-brief-mode-button {
    padding: 8px 15px !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

#ainw-brief-mode-button:hover {
    background-color: #e0e0e0 !important;
}

#ainw-brief-mode-button.active {
    background-color: #444444 !important;
    color: #fff !important;
    border-color: #444444 !important;
}

#ainw-brief-mode-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Set Lead Button Styling */
#ainw-set-lead-button {
    padding: 8px 15px !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    font-size: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
}

#ainw-set-lead-button:hover {
    background-color: #e0e0e0 !important;
}

#ainw-set-lead-button.active {
    background-color: #444444 !important;
    color: #fff !important;
    border-color: #444444 !important;
}

#ainw-set-lead-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Button-Gruppen-Container Styling */
.ainw-button-groups-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
    text-align: left;
}

/* Button-Gruppen Styling */
.ainw-group-button {
    padding: 8px 15px !important;
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: background-color 0.3s !important;
    font-size: 14px !important;
    margin: 0 !important;
    height: auto !important;
    line-height: normal !important;
}

.ainw-group-button:hover {
    background-color: #e0e0e0 !important;
}

.ainw-group-button.active {
    background-color: #444444 !important;
    color: #fff !important;
    border-color: #444444 !important;
}

#ainw-reset-button:hover {
    background-color: #e0e0e0;
}

#ainw-seo-results {
    margin-top: 15px;
    padding: 15px;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.ainw-copy-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    transition: all 0.2s ease;
}

.ainw-copy-button:hover {
    background-color: #f0f0f0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Animation Styles */
#ainw-animation-container {
    padding: 12px;
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.animation-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.processing-time {
    font-weight: 500;
    color: #333;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    height: 36px; /* Gleiche Höhe wie die Progress-Bar */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-step {
    font-style: normal;
    color: #555;
    background: #ffffff;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    height: 36px; /* Gleiche Höhe wie die Progress-Bar */
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-container {
    margin-top: 0;
}

.progress-bar {
    height: 36px; /* Gleiche Höhe wie die Infoboxen darüber */
    background: #ffffff !important;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e5e5e5 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    outline: none !important;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #e0e0e0, #c0c0c0) !important;
    width: 0%;
    border-radius: 7px;
    transition: width 0.5s ease;
    background-size: 100% 100%; /* Fester Farbverlauf ohne Animation */
}

/* Wichtig: Überschreibe alle möglichen blauen Hintergründe - mit höchster Priorität */
.progress-fill, .progress-fill.running, 
.progress-bar .progress-fill, 
.ui-progressbar-value,
.ui-widget-header,
.ui-progressbar .ui-progressbar-value,
.ui-progressbar-value.ui-widget-header {
    background: linear-gradient(to right, #e0e0e0, #c0c0c0) !important;
    background-color: #d0d0d0 !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Entferne alle möglichen blauen Umrandungen */
.progress-bar, 
.progress-container, 
.progress-container *, 
.ui-progressbar,
.ui-widget,
.ui-corner-all {
    border-color: #e5e5e5 !important;
    outline: none !important;
}

/* Diese Klasse wird dynamisch durch JavaScript gesetzt und sollte nicht mehr verwendet werden */
.progress-fill.running {
    transition: none; /* Wir verwenden jetzt jQuery animate statt CSS-Transition */
    background: linear-gradient(to right, #e0e0e0, #c0c0c0) !important;
}

/* Aktionsbuttons für die Ergebnisse */
.ainw-result-actions {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 20px;
    padding: 10px 0;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.ainw-left-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
}

.ainw-right-buttons {
    margin-left: auto;
}

/* Einheitliches Format für alle Buttons */
.ainw-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border: 1px solid #e0e0e0 !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
    height: auto !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    min-width: fit-content !important;
}

/* Hover-Effekt für alle Buttons */
.ainw-action-button:hover {
    background-color: #f0f0f0 !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Spezifische Anpassungen für den Kopieren-Button */
.ainw-right-buttons .ainw-copy-button {
    height: 40px !important;
    padding: 8px 12px !important;
    min-width: max-content !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
}

.ainw-action-button:active,
.ainw-action-button:focus,
.ainw-action-button.active,
.ainw-action-button.focus,
.ainw-action-button:visited {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    background-color: #f0f0f0 !important;
    color: #333 !important;
    border-color: #d0d0d0 !important;
    outline: none !important;
}

.ainw-action-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 1;
}

/* Styling für Buttons mit nur Icon */
.ainw-icon-only {
    padding: 8px;
    min-width: 36px;
    width: 36px;
    margin-left: 10px;
    background-color: #f0f0f0;
}

.ainw-icon-only .dashicons {
    margin: 0 auto;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Container für den eigentlichen Inhalt */
.ainw-result-content {
    margin-top: 15px;
}

/* Wichtig: Verhindere alle möglichen blauen Hintergründe für Buttons */
.ainw-button,
.ainw-button:hover,
.ainw-button:active,
.ainw-button:focus,
.ainw-button.active,
.ainw-button.focus,
.ainw-button:visited,
button.ainw-button,
button.ainw-button:hover,
button.ainw-button:active,
button.ainw-button:focus,
button.ainw-button.active,
button.ainw-button.focus,
button.ainw-button:visited {
    background-color: #f8f8f8 !important;
    color: #333 !important;
    border-color: #e0e0e0 !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.ainw-button:hover,
button.ainw-button:hover {
    background-color: #f0f0f0 !important;
    border-color: #d0d0d0 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.ainw-loading-pdf {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    font-weight: 500;
}

@media (max-width: 768px) {
    .ainw-result-actions {
        flex-direction: column;
    }
    
    .ainw-action-button {
        width: 100%;
        justify-content: center;
    }
}

/* Markdown content styling */
.seo-content h1, .seo-content h2, .seo-content h3 {
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.seo-content p {
    margin-bottom: 1em;
    line-height: 1.6;
}

.seo-content ul, .seo-content ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
}

.seo-content li {
    margin-bottom: 0.5em;
}

.seo-content blockquote {
    border-left: 4px solid #ddd;
    padding-left: 1em;
    margin-left: 0;
    color: #555;
}

.seo-content code {
    background: #f0f0f0;
    padding: 2px 4px;
    border-radius: 3px;
}

.seo-content pre {
    background: #f0f0f0;
    padding: 1em;
    border-radius: 3px;
    overflow-x: auto;
}

/* Set Lead Satz-Hervorhebung */
#sentence-overlay {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: #333; /* Text sichtbar machen */
}

#sentence-overlay span {
    color: #333; /* Text sichtbar machen */
    border-radius: 3px;
    transition: all 0.2s ease;
}

#sentence-overlay .sentence-span {
    cursor: pointer;
}

#sentence-overlay .sentence-span.hover {
    font-weight: bold;
    background-color: rgba(232, 244, 248, 0.3); /* Sehr transparenter Hintergrund */
}

#sentence-overlay .sentence-span.selected {
    font-weight: bold;
    font-style: italic;
    background-color: rgba(179, 217, 255, 0.3); /* Sehr transparenter Hintergrund */
}
