/* assets/css/components.css - Component Specific Styles (Enhanced from Backup) */

/* Navigation (Original from backup) */
.navbar-custom {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: var(--transition-smooth);
}

[data-bs-theme="dark"] .navbar-custom {
    background: rgba(17, 24, 39, 0.9) !important;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 0.5rem;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background: var(--primary-gradient);
    color: white !important;
}

/* Theme Toggle (Original from backup) */
.theme-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--primary-gradient);
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--box-shadow-soft);
}

.theme-toggle i {
    transition: var(--transition-smooth);
    font-size: 1.2rem;
}

/* Language Switcher (Original from backup) */
.lang-switcher .btn {
    border-radius: 0.5rem;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
    font-weight: 600;
}

.lang-switcher .btn.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--accent-color);
}

/* Hero Section (Original from backup) */
.hero-section {
    min-height: 80vh;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.hero-image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
    margin: 0 auto;
}

.hero-image-placeholder i {
    font-size: 6rem;
}

.hero-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Timeline (Original from backup) */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
    text-align: left;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-soft);
    position: relative;
    transition: var(--transition-smooth);
}

[data-bs-theme="dark"] .timeline-content {
    background: var(--bs-dark);
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.timeline-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 10;
    font-size: 1.2rem;
}

/* Footer (Original from backup) */
.footer-custom {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 1.5rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
    animation: footerSlideUp 0.6s ease-out;
}

.footer-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

/* Footer Copyright (Original from backup) */
.footer-copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

[data-bs-theme="dark"] .footer-copyright {
    color: rgba(255, 255, 255, 0.9);
}

[data-bs-theme="light"] .footer-copyright {
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Link Styles (Original from backup) */
.footer-link {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.footer-link:hover,
.footer-link:focus {
    color: white !important;
    text-decoration: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.footer-link:active {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateY(0);
}

/* Social Links (Original from backup) */
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    color: rgba(255, 255, 255, 0.7) !important;
    border: none;
    outline: none;
}

.social-link:hover,
.social-link:focus,
.social-link:active {
    text-decoration: none !important;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: var(--transition-smooth);
}

.social-link:hover {
    color: white !important;
    transform: translateY(-3px);
}

.social-link:hover::before {
    transform: scale(1);
}

/* Specific social platform colors on hover (Original from backup) */
.social-link:hover .fa-linkedin {
    color: #0077b5;
}

.social-link:hover .fa-xing {
    color: #026466;
}

.social-link:hover .fa-github {
    color: #333;
}

[data-bs-theme="dark"] .social-link:hover .fa-github {
    color: #f0f6fc;
}

/* Dark/Light mode visibility (Original from backup) */
[data-bs-theme="light"] .footer-custom {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
}

[data-bs-theme="dark"] .footer-custom {
    background: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    color: white;
}

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

/* Portfolio Grid (Original from backup) */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
}

.portfolio-item:hover {
    transform: scale(1.02);
}

/* NEW: Portfolio Filter Buttons - Dark Mode Fix */
.portfolio-filter {
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.portfolio-filter.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.portfolio-filter:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .portfolio-filter:hover:not(.active) {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--bs-light);
}

/* NEW: Portfolio Items Dark Mode */
[data-bs-theme="dark"] .portfolio-item .card-custom {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(75, 85, 99, 0.3);
}

[data-bs-theme="dark"] .portfolio-item .card-header {
    background: var(--primary-gradient);
    color: white;
}

[data-bs-theme="dark"] .portfolio-item .badge {
    background: rgba(102, 126, 234, 0.2);
    color: var(--bs-light);
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* NEW: Portfolio Statistics Dark Mode */
[data-bs-theme="dark"] .portfolio-item .card-body {
    background: rgba(31, 41, 55, 0.8);
    color: var(--bs-light);
}

/* NEW: Breadcrumb Dark Mode */
[data-bs-theme="dark"] .breadcrumb {
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

[data-bs-theme="dark"] .breadcrumb-item a {
    color: var(--accent-color);
    text-decoration: none;
}

[data-bs-theme="dark"] .breadcrumb-item.active {
    color: var(--bs-light);
}

[data-bs-theme="dark"] .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* NEW: Gallery Styles */
.gallery-item {
    transition: var(--transition-smooth);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-soft);
}

.gallery-item img {
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* NEW: Gallery Modal */
.gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

[data-bs-theme="dark"] .gallery-modal {
    background: rgba(0, 0, 0, 0.98);
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.3s ease-out;
}

.gallery-modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: -80px;
}

.gallery-next {
    right: -80px;
}

.gallery-caption {
    margin-top: 1rem;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

.gallery-counter {
    position: absolute;
    top: -50px;
    left: 0;
    color: white;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    backdrop-filter: blur(10px);
}

/* NEW: Gallery Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Blog Filters (Original from backup) */
.blog-filters {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.blog-filters .btn {
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.blog-filters .btn.active {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.05);
}

/* NEW: Enhanced Blog Filters for Dark Mode */
.blog-filters .btn {
    border: 2px solid transparent;
}

.blog-filters .btn.active {
    border-color: var(--accent-color);
}

.blog-filters .btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

[data-bs-theme="dark"] .blog-filters .btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.4);
    color: var(--bs-light);
}

/* NEW: Blog Articles Dark Mode */
[data-bs-theme="dark"] .blog-filters .btn {
    border-color: rgba(75, 85, 99, 0.3);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .blog-filters .btn.active {
    color: white;
    border-color: var(--accent-color);
}

/* Contact Info Cards (Original from backup) */
.contact-info-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: left;
    transition: var(--transition-smooth);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

[data-bs-theme="dark"] .contact-info-card {
    background: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.3);
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-soft);
}

/* Contact Page specific icons - linksbündig (Original from backup) */
.contact-info-card .contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* General contact info icons - zentriert (Original from backup) */
.contact-info-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Responsive text sizing for location (Original from backup) */
.contact-info-card .small {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Login Form (Original from backup) */
.login-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    max-width: 450px;
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* FAQ Dark Mode Fix (Original from backup) */
[data-bs-theme="dark"] .accordion-item {
    background-color: var(--bs-dark);
    border-color: rgba(75, 85, 99, 0.3);
}

[data-bs-theme="dark"] .accordion-button {
    background-color: rgba(31, 41, 55, 0.9);
    color: var(--bs-light);
    border-color: rgba(75, 85, 99, 0.3);
}

[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
    background-color: rgba(102, 126, 234, 0.1);
    color: var(--bs-light);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-bs-theme="dark"] .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

[data-bs-theme="dark"] .accordion-body {
    background-color: rgba(31, 41, 55, 0.8);
    color: var(--bs-light);
    border-color: rgba(75, 85, 99, 0.3);
}

/* Address Box für Legal Modals (Original from backup) */
.address-box {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .address-box {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--bs-light);
}

/* Toast Styles (Enhanced for Contact Form) */
.toast {
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: var(--border-radius-lg);
}

.toast-header {
    border-top-left-radius: var(--border-radius-lg);
    border-top-right-radius: var(--border-radius-lg);
    border-bottom: none;
    padding: 1rem 1.25rem;
}

.toast-body {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.toast-header.bg-success {
    background-color: #198754 !important;
}

.toast-header.bg-danger {
    background-color: #dc3545 !important;
}

.toast-header.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.toast-header.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

[data-bs-theme="dark"] .toast {
    background-color: var(--bs-dark);
    color: var(--bs-light);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
}

[data-bs-theme="dark"] .toast-body {
    background-color: rgba(31, 41, 55, 0.9);
    color: var(--bs-light);
}

/* Toast Container top-center */
#toastContainer {
    z-index: 9999 !important;
    margin-top: 80px; /* Below navbar */
}

/* Mobile responsive toasts */
@media (max-width: 576px) {
    .toast {
        min-width: 280px;
        max-width: 90vw;
    }

    .toast-header,
    .toast-body {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    #toastContainer {
        margin-top: 70px; /* Slightly less margin on mobile */
    }
}

/* NEW: Portfolio Badge Enhancements */
.badge-custom {
    background: var(--primary-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 0.875rem;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.badge-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
    border-color: rgba(255, 255, 255, 0.3);
}

[data-bs-theme="dark"] .badge-custom {
    background: var(--primary-gradient);
    border-color: rgba(102, 126, 234, 0.3);
}

[data-bs-theme="dark"] .badge-custom:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 0.5rem 1.5rem rgba(102, 126, 234, 0.3);
}

/* NEW: Project Header Enhancements */
.portfolio-detail-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="dark"] .portfolio-detail-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
}

.portfolio-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* NEW: Progress Bars for Skills/Technologies */
.progress {
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

[data-bs-theme="dark"] .progress {
    background: rgba(102, 126, 234, 0.2);
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* NEW: Enhanced Card Headers */
.card-custom .card-header h3,
.card-custom .card-header h4 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

[data-bs-theme="dark"] .card-custom .card-header h3,
[data-bs-theme="dark"] .card-custom .card-header h4 {
    color: white;
    -webkit-text-fill-color: white;
}

/* NEW: Improve text contrast in dark mode */
[data-bs-theme="dark"] .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

[data-bs-theme="dark"] .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* NEW: Enhanced buttons for portfolio detail */
.btn-outline-primary:hover,
.btn-outline-success:hover,
.btn-outline-warning:hover,
.btn-outline-danger:hover,
.btn-outline-info:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-soft);
}

/* NEW: Mobile Responsive Gallery */
@media (max-width: 768px) {
    .gallery-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .gallery-modal-image {
        max-height: 70vh;
    }
    
    .gallery-close {
        top: -40px;
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
    
    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-prev {
        left: -50px;
    }
    
    .gallery-next {
        right: -50px;
    }
    
    .gallery-caption {
        font-size: 1rem;
        margin-top: 0.5rem;
        padding: 0.75rem 1.5rem;
    }
    
    .gallery-counter {
        top: -40px;
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .toast {
        min-width: 300px;
        max-width: 90vw;
    }
    
    .toast-container {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-prev {
        left: 10px;
        top: 40%;
    }
    
    .gallery-next {
        right: 10px;
        top: 40%;
    }
    
    .gallery-close {
        top: 10px;
        right: 10px;
    }
    
    .gallery-counter {
        top: 10px;
        left: 10px;
    }
}

/* NEW: Pagination Dark Mode */
[data-bs-theme="dark"] .pagination .page-link {
    background-color: rgba(31, 41, 55, 0.9);
    border-color: rgba(75, 85, 99, 0.3);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .pagination .page-item.active .page-link {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

[data-bs-theme="dark"] .pagination .page-link:hover {
    background-color: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: var(--bs-light);
}

[data-bs-theme="dark"] .pagination .page-item.disabled .page-link {
    background-color: rgba(31, 41, 55, 0.5);
    border-color: rgba(75, 85, 99, 0.2);
    color: rgba(255, 255, 255, 0.5);
}

/* NEW: Touch device optimizations for gallery */
@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .gallery-nav {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .gallery-close {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }
}

/* NEW: Print styles for portfolio detail */
@media print {
    .gallery-modal,
    .gallery-nav,
    .gallery-close {
        display: none !important;
    }
    
    .gallery-item {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .portfolio-filter {
        display: none;
    }
    
    .breadcrumb {
        display: none;
    }
}

/* NEW: Accessibility improvements */
.gallery-nav:focus,
.gallery-close:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.portfolio-filter:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* NEW: High contrast mode support */
@media (prefers-contrast: high) {
    .gallery-modal {
        background: rgba(0, 0, 0, 1);
    }
    
    .gallery-nav,
    .gallery-close {
        background: rgba(255, 255, 255, 0.3);
        border: 2px solid white;
    }
    
    .portfolio-filter {
        border: 2px solid currentColor;
    }
    
    .badge-custom {
        border: 2px solid white;
    }
    
    .card-custom {
        border: 2px solid var(--accent-color);
    }
    
    .btn-gradient {
        border: 2px solid white;
    }
    
    .navbar-custom {
        border-bottom-width: 2px;
    }
    
    .footer-custom::before {
        height: 2px;
    }
}

/* NEW: Card header text styling - replaces inline styles */
.csp-card-header .csp-header-text {
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: transparent !important;
    font-weight: 700;
}

/* NEW: Dashboard project icon styling */
.dashboard-project-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

/* NEW: Feature icons styling */
.feature-icon {
    font-size: 2rem;
}

/* NEW: Gallery styling enhancements */
.gallery-trigger {
    cursor: pointer;
    height: 200px;
    transition: var(--transition-smooth);
}

.gallery-trigger:hover {
    transform: scale(1.05);
    box-shadow: var(--box-shadow-soft);
}

.gallery-image {
    transition: var(--transition-smooth);
}

.gallery-trigger:hover .gallery-image {
    transform: scale(1.1);
}

.gallery-overlay-element {
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-trigger:hover .gallery-overlay-element {
    opacity: 1;
}

/* NEW: Enhanced Gallery Modal */
.gallery-modal.d-flex {
    display: flex !important;
}

/* NEW: Gallery close button */
.gallery-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white !important;
    font-size: 2rem;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition-smooth);
    border: none;
    text-decoration: none;
}

.gallery-close:hover,
.gallery-close:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    color: white !important;
    text-decoration: none;
}

/* NEW: Gallery navigation buttons enhancement */
.gallery-nav {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white !important;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-smooth);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.gallery-nav:hover,
.gallery-nav:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
    color: white !important;
    text-decoration: none;
}

/* Cookie Consent Banner */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 250, 251, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 3px solid;
    border-image: var(--primary-gradient) 1;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] .cookie-consent-banner {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.98) 0%, rgba(31, 41, 55, 0.98) 100%);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-content {
    padding: 1.5rem 0;
}

.cookie-consent-banner h3 {
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-bs-theme="dark"] .cookie-consent-banner h3 {
    color: white;
    -webkit-text-fill-color: white;
}

.cookie-consent-banner p {
    color: var(--text-muted);
    line-height: 1.6;
}

[data-bs-theme="dark"] .cookie-consent-banner p {
    color: rgba(255, 255, 255, 0.8);
}

.cookie-consent-banner a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.cookie-consent-banner a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Cookie Consent Banner Animation */
@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .cookie-consent-banner .col-lg-8,
    .cookie-consent-banner .col-lg-4 {
        text-align: center;
    }

    .cookie-consent-content {
        padding: 1.25rem 0;
    }

    .cookie-consent-banner h3 {
        font-size: 1.1rem;
    }

    .cookie-consent-banner p {
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .cookie-consent-banner .fa-cookie-bite {
        font-size: 1.5rem !important;
    }

    .cookie-consent-content {
        padding: 1rem 0;
    }

    .cookie-consent-banner .btn-sm {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ============================================================================ */
/* Page-specific styles extracted from inline styles for CSP compliance        */
/* ============================================================================ */

/* About Page */
.about-welcome-icon {
    font-size: 1.5rem;
}

.about-hero-image {
    width: 250px;
    height: 250px;
    margin: 0 auto;
}

.about-logo-image {
    max-height: 60px;
}

/* Progress bars - Technology Skills */
.progress-bar-95 {
    width: 95%;
}

.progress-bar-85 {
    width: 85%;
}

.progress-bar-70 {
    width: 70%;
}

.progress-bar-75 {
    width: 75%;
}

.progress-bar-80 {
    width: 80%;
}

.progress-bar-65 {
    width: 65%;
}

.progress-bar-50 {
    width: 50%;
}

/* Contact Page */
.contact-icon-accent {
    color: var(--accent-color);
}

.contact-honeypot {
    position: absolute;
    left: -5000px;
}

.contact-message-textarea {
    resize: vertical;
    min-height: 60px; /* Mindestens 2 Zeilen */
}

/* Section backgrounds */
.section-bg-alt {
    background-color: var(--bg-light-section);
}

.bg-light-section {
    background-color: var(--bg-light-section);
}

/* CSP Compliance - Icon Sizes */
.icon-xl {
    font-size: 3rem !important;
}

.icon-lg {
    font-size: 2rem !important;
}

.icon-md {
    font-size: 2.5rem !important;
}

/* CSP Compliance - Layout Utilities */
.logout-container {
    text-align: center;
    padding: 50px;
    font-family: Arial, sans-serif;
}

.card-narrow {
    max-width: 500px;
}

.hidden-iframe {
    visibility: hidden;
    width: 1px;
    height: 1px;
}
