h1 {
    font-size: 1.4rem !important;
}
h2 {
    font-size: 1.3rem !important;
}
h3 {
    font-size: 1.2rem !important;
}
h4 {
    font-size: 1.1rem !important;
}
h5 {
    font-size: 1rem !important;
}
h6 {
    font-size: 0.9rem !important;
}

ul {
    margin: 3px 0px 10px 10px;
}

p {
    margin: 0;
}

code {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
}

.button-truncate.rz-button {
    text-align: left !important;
}

.button-truncate .rz-button-box {
    max-width: 100% !important;
}

.button-truncate .rz-button-text {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


.truncate .rz-navigation-item-text {
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


pre
{
    background-color: #f9f9f9 !important;
    padding: 15px !important;
    border-radius: 15px !important;
    font-size: 13px;
    font-family: inherit !important ;

}

/* Radzen Fieldsets haben ein overflow hidden, was blöd ist, wenn man darin ein DDL öffnen möchte*/
.overflow-visible .rz-fieldset-content-wrapper,
.overflow-visible .rz-expander-content {
    overflow: visible !important;
}

/* VIDEO PLAYER - Komplette Implementierung */
.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-element {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    cursor: pointer;
    display: block;
}

/* Großer Play/Pause Button in der Mitte */
.overlay-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 5;
    cursor: pointer;
}

.overlay-play-btn.overlay-hidden {
    opacity: 0;
}

/* Zeige Pause-Button nur bei Hover wenn Video läuft */
.video-wrapper:hover .overlay-play-btn.playing {
    opacity: 1;
}

.play-icon-wrapper {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.9), rgba(139, 92, 246, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
    border: 3px solid rgba(255, 255, 255, 0.3);
    animation: playPulse 2s ease-in-out infinite;
    transition: transform 0.2s ease;
    pointer-events: all;
}

.play-icon-wrapper:hover {
    transform: scale(1.1);
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 8px 48px rgba(99, 102, 241, 0.6);
        transform: scale(1.05);
    }
}

.play-icon {
    width: 50px;
    height: 50px;
    color: #fff;
    fill: currentColor;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

#center-icon-play {
    transform: translateX(4px);
}

/* Skip Buttons (-10s / +10s) in der Video-Mitte - länglich und eckig */
.skip-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    width: 100px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

.skip-btn.visible {
    opacity: 1;
    pointer-events: all;
}

.video-wrapper:hover .skip-btn {
    opacity: 1;
    pointer-events: all;
}

.skip-left {
    left: 60px;
}

.skip-right {
    right: 60px;
}

.skip-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.skip-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.skip-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.skip-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.controls-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.6), transparent);
    padding: 16px;
    padding-top: 48px;
    transition: opacity 0.3s;
    z-index: 20;
}

.controls-bar.controls-hidden {
    opacity: 0;
    pointer-events: none;
}

.progress-container {
    position: relative;
    width: 100%;
    height: 4px;
    margin-bottom: 16px;
}

.seek-slider {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 4px;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.seek-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.seek-slider:hover::-webkit-slider-thumb {
    transform: scale(1.2);
}

.seek-slider::-moz-range-thumb {
    height: 12px;
    width: 12px;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    border: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.1s;
}

.seek-slider:hover::-moz-range-thumb {
    transform: scale(1.2);
}

.progress-track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    pointer-events: none;
}

.progress-fill {
    height: 100%;
    background: #6366f1;
    width: 0;
    transition: width 0.1s linear;
}

.controls-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
    user-select: none;
}

.controls-left,
.controls-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    color: #a5b4fc;
}

.icon-size {
    width: 20px;
    height: 20px;
}

.icon-size-large {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.time-display {
    font-size: 12px;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    color: #d1d5db;
}

.speed-controls {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    gap: 8px;
    margin-right: 8px;
}

.speed-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 60px;
}

.speed-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.speed-btn.active {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none !important;
}

/* Fullscreen Styles */
.video-wrapper:fullscreen {
    max-width: 100vw;
    border-radius: 0;
}

.video-wrapper:fullscreen .video-element {
    height: 100vh;
    object-fit: contain;
}

.video-wrapper:fullscreen .skip-btn {
    width: 120px;
    height: 70px;
}

.video-wrapper:fullscreen .skip-icon {
    width: 32px;
    height: 32px;
}

.video-wrapper:fullscreen .skip-text {
    font-size: 16px;
}

.video-wrapper:fullscreen .play-icon-wrapper {
    width: 120px;
    height: 120px;
}

.video-wrapper:fullscreen .play-icon {
    width: 60px;
    height: 60px;
}

.video-wrapper:-webkit-full-screen {
    max-width: 100vw;
    border-radius: 0;
}

.video-wrapper:-webkit-full-screen .video-element {
    height: 100vh;
    object-fit: contain;
}

.video-wrapper:-webkit-full-screen .skip-btn {
    width: 120px;
    height: 70px;
}

.video-wrapper:-webkit-full-screen .skip-icon {
    width: 32px;
    height: 32px;
}

.video-wrapper:-webkit-full-screen .skip-text {
    font-size: 16px;
}

.video-wrapper:-webkit-full-screen .play-icon-wrapper {
    width: 120px;
    height: 120px;
}

.video-wrapper:-webkit-full-screen .play-icon {
    width: 60px;
    height: 60px;
}

.video-wrapper:-moz-full-screen {
    max-width: 100vw;
    border-radius: 0;
}

.video-wrapper:-moz-full-screen .video-element {
    height: 100vh;
    object-fit: contain;
}

.video-wrapper:-moz-full-screen .skip-btn {
    width: 120px;
    height: 70px;
}

.video-wrapper:-moz-full-screen .skip-icon {
    width: 32px;
    height: 32px;
}

.video-wrapper:-moz-full-screen .skip-text {
    font-size: 16px;
}

.video-wrapper:-moz-full-screen .play-icon-wrapper {
    width: 120px;
    height: 120px;
}

.video-wrapper:-moz-full-screen .play-icon {
    width: 60px;
    height: 60px;
}

.video-wrapper:-ms-fullscreen {
    max-width: 100vw;
    border-radius: 0;
}

.video-wrapper:-ms-fullscreen .video-element {
    height: 100vh;
    object-fit: contain;
}

.video-wrapper:-ms-fullscreen .skip-btn {
    width: 120px;
    height: 70px;
}

.video-wrapper:-ms-fullscreen .skip-icon {
    width: 32px;
    height: 32px;
}

.video-wrapper:-ms-fullscreen .skip-text {
    font-size: 16px;
}

.video-wrapper:-ms-fullscreen .play-icon-wrapper {
    width: 120px;
    height: 120px;
}

.video-wrapper:-ms-fullscreen .play-icon {
    width: 60px;
    height: 60px;
}

/* Responsive */
@media (max-width: 600px) {
    .time-display {
        display: none;
    }
    
    .speed-btn {
        font-size: 11px;
        padding: 6px 16px;
        min-width: 50px;
    }
    
    .speed-controls {
        gap: 6px;
        padding: 3px;
    }
    
    .controls-left,
    .controls-right {
        gap: 8px;
    }
    
    .skip-left {
        left: 30px;
    }
    
    .skip-right {
        right: 30px;
    }
    
    .skip-btn {
        width: 85px;
        height: 50px;
    }
    
    .skip-icon {
        width: 24px;
        height: 24px;
    }
    
    .skip-text {
        font-size: 12px;
    }
    
    .play-icon-wrapper {
        width: 80px;
        height: 80px;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
    }
}

/* CHAT */
.abstand-klein { margin-bottom:5px !important; }
.abstand-gross { margin-bottom:15px !important; }
.abstand-mittel { margin-bottom:10px !important; }
.breite-voll { width:100% !important; }
.breite-tool-auswahl { width:200px !important; }
.hoehe-mindest { min-height:100px !important; }
.zeiger { cursor:pointer !important; }
.llm-calls { text-align:right !important; margin-top: 10px; }
.chat-user { background-color:#e3f2fd !important; }
.chat-reihe { min-width:250px !important; }
    .rz-card { padding:10px; }
.chat-message-card {
    max-width: 100% !important;
    max-height: 500px !important;
    overflow: scroll;
}
.tool-buttons-klein .rz-button {
    font-size: 0.75rem !important;
    padding: 2px 6px !important;
}

/* Mobile-Optimierung */
@media (max-width: 600px) {
    .hide-mobile {
        display: none !important;
    }
    .show-mobile {
        display: inline !important;
    }

    .rz-body {
        padding: 2px;
    }
}

@media (min-width: 601px) {
    .show-mobile {
        display: none !important;
    }
}

.loading-text {
  color: transparent;
  background: linear-gradient(90deg, #888 0%, #ddd 40%, #888 80%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shimmer 1.6s linear infinite;
}

@keyframes shimmer {
  from { background-position: 0% 0; }
  to   { background-position: 200% 0; }
}

/* ARTIKEL BEARBEITEN */
.artikel-url-badge {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
}

.artikel-url-link {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: none;
    color: inherit!important;
    text-decoration: none!important;
}

.artikel-url-input {
    width: 100%;
}