.wendewerk-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.ww-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.ww-btn:hover {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
    transform: translateY(-1px);
}

.ww-btn.active {
    background: #007cba;
    color: #fff;
    border-color: #007cba;
}

.ww-btn.saved {
    background: #46b450;
    color: #fff;
    border-color: #46b450;
}

.ww-btn svg {
    width: 18px;
    height: 18px;
}

.ww-share-dropdown {
    position: relative;
}

.ww-share-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 150px;
    display: none;
}

.ww-share-item {
    display: block;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

.ww-share-item:last-child {
    border-bottom: none;
}

.ww-share-item:hover {
    background: #f8f9fa;
    color: #007cba;
}

.ww-readtime {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    color: #666;
    font-size: 13px;
    white-space: nowrap;
}

.ww-reading-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #007cba;
    color: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 260px;
}

.ww-reading-main {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ww-read-toggle {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 30px;
    height: 30px;
    padding: 0;
    box-sizing: border-box;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ww-read-toggle:hover {
    background: rgba(255,255,255,0.3);
}

.ww-reading-label {
    flex-grow: 1;
    font-size: 14px;
}

.ww-reading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.25);
    border-radius: 2px;
    overflow: hidden;
}

.ww-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    transition: width 0.2s linear;
}

.ww-reading-speed {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.ww-reading-speed label {
    white-space: nowrap;
    opacity: 0.85;
}

.ww-reading-speed input[type="range"] {
    flex-grow: 1;
}

.ww-speed-value {
    min-width: 32px;
    text-align: right;
}

.ww-stop-reading {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.ww-stop-reading:hover {
    background: rgba(255,255,255,0.3);
}

.ww-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #46b450;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.ww-notification.show {
    transform: translateX(0);
}

/* Saved Posts Styles */
.wendewerk-saved-posts {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.wendewerk-saved-posts h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.ww-saved-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ww-saved-post-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.ww-saved-post-item:last-child {
    border-bottom: none;
}

.ww-saved-post-item a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    flex-grow: 1;
}

.ww-saved-post-item a:hover {
    text-decoration: underline;
}

.ww-post-date {
    color: #666;
    font-size: 12px;
    margin-left: 10px;
}

.ww-remove-saved {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: 10px;
    transition: background 0.2s ease;
}

.ww-remove-saved:hover {
    background: #c82333;
}

.ww-no-saved {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* Kontrast & Schriftgröße */
.ww-contrast-wrap {
    position: relative;
}

.ww-contrast-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff !important;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 200px;
    padding: 12px 14px;
    margin-top: 6px;
}

.ww-contrast-panel.open {
    display: block;
}

.ww-contrast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: #333 !important;
}

.ww-contrast-row + .ww-contrast-row {
    border-top: 1px solid #eee;
}

.ww-contrast-panel .ww-contrast-toggle,
.ww-contrast-panel .ww-fontsize-btn,
button.ww-contrast-toggle,
button.ww-fontsize-btn {
    background: #f1f3f5 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: normal !important;
    line-height: normal !important;
    opacity: 1 !important;
    box-shadow: none !important;
    text-transform: none !important;
    text-shadow: none !important;
}

.ww-fontsize-btn + .ww-fontsize-btn {
    margin-left: 4px !important;
}

.ww-contrast-panel .ww-contrast-toggle:hover,
.ww-contrast-panel .ww-fontsize-btn:hover,
button.ww-contrast-toggle:hover,
button.ww-fontsize-btn:hover {
    background: #007cba !important;
    color: #fff !important;
    border-color: #007cba !important;
}

/* Effekt-Klassen werden auf <html> gesetzt (siehe toolbar.js) und wirken
   primär auf den Artikelinhalt (.entry-content, Astra-Theme) */
html.ww-contrast-mode body {
    background: #000 !important;
    color: #fff !important;
}

html.ww-contrast-mode .entry-content {
    background: #000 !important;
    color: #fff !important;
}

html.ww-contrast-mode a {
    color: #ffeb3b !important;
}

html.ww-fontsize-down2 .entry-content { font-size: 0.85em; }
html.ww-fontsize-down1 .entry-content { font-size: 0.92em; }
html.ww-fontsize-up1 .entry-content { font-size: 1.1em; }
html.ww-fontsize-up2 .entry-content { font-size: 1.25em; }
html.ww-fontsize-up3 .entry-content { font-size: 1.4em; }

/* Feedback-Mikro-Widget */
.ww-feedback {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 20px;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    flex-wrap: wrap;
    font-size: 14px;
}

.ww-feedback-label {
    color: #444;
    font-weight: 500;
}

.ww-feedback-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.ww-feedback-btn:hover:not(:disabled) {
    border-color: #007cba;
}

.ww-feedback-btn:disabled {
    cursor: default;
    opacity: 0.6;
}

.ww-feedback-thanks {
    color: #46b450;
    font-size: 13px;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wendewerk-toolbar {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .ww-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .ww-btn span {
        display: none;
    }
    
    .ww-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .ww-saved-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .ww-post-date {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .wendewerk-toolbar {
        justify-content: center;
    }
    
    .ww-reading-indicator {
        bottom: 10px;
        right: 10px;
        left: 10px;
        text-align: center;
    }
}