/* KI-Agenten Styles */

/* Container */
.agent-hub-container,
.agent-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.agent-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.agent-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
}

.agent-header .subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 10px 0;
}

.back-link {
    display: inline-block;
    margin-top: 15px;
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: white;
}

/* Agent Grid (Hub Page) */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.agent-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.agent-card.featured {
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.agent-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.agent-card h3 {
    margin: 10px 0;
    color: #333;
}

.agent-card p {
    color: #666;
    margin: 10px 0;
}

.agent-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.agent-features li {
    padding: 5px 0;
    color: #555;
}

.agent-card button {
    width: 100%;
    padding: 12px;
    margin-top: 15px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agent-card button:hover {
    background: #5568d3;
    transform: scale(1.02);
}

.agent-card button.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Video Selector */
.video-selector-panel {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.video-dropdown {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 20px;
}

.level-selector {
    margin-top: 20px;
}

.level-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.level-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.level-btn:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.level-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.level-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff6b6b;
    color: white;
    font-size: 0.75em;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.level-btn.active .level-badge {
    background: #ffd93d;
    color: #333;
}

/* Exercise Container */
.exercise-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.exercise-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.exercise-controls {
    display: flex;
    gap: 20px;
    align-items: center;
}

.exercise-navigation {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 25px;
    border: 1px solid #e0e0e0;
}

.exercise-counter {
    font-weight: 600;
    color: #667eea;
    min-width: 60px;
    text-align: center;
}

.btn-nav {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.btn-nav:not(:disabled):hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.video-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

/* Grammar Rule Toggle */
.grammar-rule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.grammar-rule-header h3 {
    margin: 0;
}

.toggle-btn {
    padding: 8px 16px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 15px;
    font-size: 0.9em;
    margin-right: 10px;
}

/* Tabs */
.exercise-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid #f0f0f0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #667eea;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
}

/* Exercise Panels */
.exercise-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.exercise-panel.active {
    display: block;
}

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

/* Flashcards */
.flashcard-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

.flashcard {
    width: 400px;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 40px;
    position: relative;
}

.flashcard.flipped .flashcard-front {
    transform: rotateY(180deg);
}

.flashcard.flipped .flashcard-back {
    transform: rotateY(0deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease;
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flashcard-back {
    background: white;
    border: 3px solid #667eea;
    transform: rotateY(180deg);
}

.flashcard-front h2 {
    font-size: 2.5em;
    margin: 0;
}

.flashcard-front .hint {
    margin-top: 20px;
    opacity: 0.8;
}

.flashcard-back .translation {
    font-size: 1.5em;
    color: #333;
    margin-bottom: 20px;
}

.flashcard-back .example {
    font-style: italic;
    color: #666;
}

.flashcard-controls {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.flashcard-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Buttons */
.btn-primary {
    padding: 12px 30px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.btn-secondary {
    padding: 12px 30px;
    background: #e0e0e0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    padding: 12px 30px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.btn-warning {
    padding: 12px 30px;
    background: #ff9800;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* Questions */
.questions-list {
    margin: 20px 0;
}

.fill-blank-question,
.multiple-choice-question,
.comprehension-question,
.ordering-question {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.fill-blank-input {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 1em;
}

.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.option-label {
    display: flex;
    align-items: center;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-label:hover {
    border-color: #667eea;
    background: #f5f7ff;
}

.option-label input[type="radio"] {
    margin-right: 10px;
}

/* Feedback */
.question-feedback {
    margin-top: 10px;
    padding: 10px;
    border-radius: 5px;
}

.question-feedback.correct {
    background: #e8f5e9;
    color: #2e7d32;
}

.question-feedback.incorrect {
    background: #ffebee;
    color: #c62828;
}

.question-feedback.warning {
    background: #fff3e0;
    color: #ef6c00;
}

/* Results Panel */
.results-panel {
    margin-top: 30px;
    padding: 25px;
    background: #f5f7fa;
    border-radius: 10px;
    border-left: 5px solid #667eea;
}

.results-panel h3 {
    margin-top: 0;
    color: #333;
}

.progress-bar {
    width: 100%;
    height: 25px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
}

/* Grammar Rule Panel */
.grammar-rule-panel {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    border-left: 5px solid #667eea;
}

.conjugation-table table {
    width: 100%;
    margin: 15px 0;
}

.conjugation-table td {
    padding: 8px;
}

/* Reading Text */
.reading-text-panel {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.reading-text {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.reading-paragraph {
    margin-bottom: 20px;
}

.highlighted-text {
    background: #ffeb3b;
    padding: 2px 5px;
    border-radius: 3px;
}

.text-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.font-size-select {
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
}

/* Vocabulary Helper */
.vocabulary-helper {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
}

.vocabulary-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vocab-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: white;
    border-radius: 20px;
}

.remove-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2em;
}

/* Writing Area */
.writing-prompt-panel {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.prompt-text {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.helpful-resources {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.resource-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}

.helpful-words-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.helpful-word {
    padding: 8px 15px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.helpful-word:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.example-sentences-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.example-sentence {
    padding: 10px;
    background: white;
    border-left: 3px solid #667eea;
    border-radius: 5px;
}

.writing-area-panel {
    margin-bottom: 30px;
}

.writing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.word-counter {
    font-size: 1.1em;
    color: #666;
}

.writing-textarea {
    width: 100%;
    min-height: 300px;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    line-height: 1.6;
    resize: vertical;
}

.submit-section {
    text-align: center;
    margin: 30px 0;
}

.feedback-panel {
    background: #e8f5e9;
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid #4caf50;
    margin-top: 30px;
}

.feedback-section {
    margin: 20px 0;
}

.feedback-section ul {
    padding-left: 20px;
}

.correction-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

.correction-explanation {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

/* Learning Plan */
.plan-overview {
    margin-bottom: 40px;
}

.plan-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1em;
}

/* Day Cards */
.day-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.day-card.completed {
    opacity: 0.7;
    background: #f5f5f5;
}

.day-card.current {
    border: 3px solid #667eea;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.day-number {
    font-weight: bold;
    color: #667eea;
    font-size: 1.2em;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9em;
}

.status-badge.pending {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.current {
    background: #e3f2fd;
    color: #1976d2;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.locked {
    background: #f5f5f5;
    color: #999;
}

.exercises-list {
    margin: 20px 0;
}

.exercise-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.exercise-icon {
    font-size: 1.5em;
}

.exercise-item span {
    flex: 1;
}

.start-btn {
    padding: 8px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.start-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.complete-day-btn {
    width: 100%;
    padding: 15px;
    background: #4caf50;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
}

/* Progress Dashboard */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-icon {
    font-size: 2em;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.category-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-icon {
    font-size: 2em;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.activity-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 10px;
}

.activity-badge {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9em;
}

.activity-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

/* Loading & Empty States */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f0f0f0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.empty-state {
    text-align: center;
    padding: 60px;
    color: #999;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.toast-success {
    background: #4caf50;
    color: white;
}

.toast-error {
    background: #f44336;
    color: white;
}

.toast-info {
    background: #2196f3;
    color: white;
}

.toast-warning {
    background: #ff9800;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .agent-grid {
        grid-template-columns: 1fr;
    }

    .flashcard {
        width: 100%;
        max-width: 350px;
    }

    .exercise-header {
        flex-direction: column;
        gap: 15px;
    }

    .helpful-resources {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Video Context Info */
.video-context-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
}

.video-info-card {
    display: flex;
    gap: 20px;
    align-items: center;
    color: white;
}

.video-thumbnail {
    flex-shrink: 0;
    width: 180px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-details {
    flex: 1;
}

.video-details h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    color: white;
}

.video-meta {
    display: flex;
    gap: 15px;
    align-items: center;
    margin: 10px 0;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.badge-a1 { background: rgba(76, 175, 80, 0.3); }
.badge-a2 { background: rgba(139, 195, 74, 0.3); }
.badge-b1 { background: rgba(255, 193, 7, 0.3); }
.badge-b2 { background: rgba(255, 152, 0, 0.3); }
.badge-c1 { background: rgba(255, 87, 34, 0.3); }
.badge-c2 { background: rgba(244, 67, 54, 0.3); }

.channel-name {
    font-size: 0.9em;
    opacity: 0.9;
}

.video-link {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
}

.video-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Video Selector Section */
.video-selector-section {
    margin: 30px 0;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.video-selector-section h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.section-description {
    color: #666;
    margin-bottom: 20px;
}

.video-search {
    margin: 20px 0;
}

.video-search input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1em;
    transition: all 0.3s ease;
}

.video-search input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.video-selector-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 2px solid transparent;
}

.video-selector-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.video-selector-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.video-selector-info {
    padding: 15px;
}

.video-selector-info h4 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    line-height: 1.4;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: #333;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
    font-size: 1.1em;
}

.error-message {
    text-align: center;
    padding: 40px;
    color: #f44336;
    font-size: 1.1em;
}

/* Feature Card Highlight (for index.html) */
.ki-agenten-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}

.ki-agenten-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20%, -20%); }
}

.ki-agenten-highlight h3,
.ki-agenten-highlight p {
    color: white;
    position: relative;
    z-index: 1;
}

.ki-agenten-highlight .feature-icon {
    position: relative;
    z-index: 1;
}

.feature-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Responsive adjustments for video context */
@media (max-width: 768px) {
    .video-info-card {
        flex-direction: column;
        text-align: center;
    }

    .video-thumbnail {
        width: 100%;
        max-width: 300px;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal/Pop-up Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    position: relative;
}

.modal-icon {
    font-size: 64px;
    text-align: center;
    margin-bottom: 20px;
}

.modal-content h3 {
    text-align: center;
    color: #333;
    margin: 0 0 15px 0;
    font-size: 24px;
}

.modal-content p {
    text-align: center;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    font-size: 16px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.modal-button {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modal-button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.modal-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.modal-button.secondary {
    background: #f0f0f0;
    color: #666;
}

.modal-button.secondary:hover {
    background: #e0e0e0;
}

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

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
