/* ============================================
   Custom CSS für Saarbrücken Website
   Hochschule Kaiserslautern - Digital Media Marketing
   ============================================ */

/* --- CSS Variables (CI-Farben) --- */
:root {
    --hs-kl-blue: #0066CC;
    --saarbruecken-energy: #FF6B35;
    --brand-accent: #00B4D8;
    --saarbruecken-green: #2D6A4F;
    --text-dark: #1a202c;
    --text-gray: #4a5568;
    --bg-light: #f7fafc;
}

/* --- Global Styles --- */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* --- General Button Transitions --- */
button,
a[class*="btn"],
a[class*="bg-brand"],
a[class*="bg-white"][class*="font-bold"] {
    transition: all 0.3s ease;
}

/* --- Navigation Blur Effect --- */
.nav-blur {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.nav-blur a {
    transition: color 0.2s ease;
}

.nav-blur a:hover {
    color: var(--hs-kl-blue);
}

/* Keep DMM button text white on hover */
.nav-blur a.bg-brand-primary {
    transition: all 0.3s ease;
}

.nav-blur a.bg-brand-primary:hover {
    color: white;
}

/* --- Hero Sections --- */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.85) 0%, rgba(0, 180, 216, 0.7) 100%);
}

.hero-section {
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.hero-pattern {
    background-image:
        linear-gradient(30deg, rgba(0, 102, 204, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 102, 204, 0.1) 87.5%, rgba(0, 102, 204, 0.1)),
        linear-gradient(150deg, rgba(0, 102, 204, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 102, 204, 0.1) 87.5%, rgba(0, 102, 204, 0.1)),
        linear-gradient(30deg, rgba(0, 102, 204, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 102, 204, 0.1) 87.5%, rgba(0, 102, 204, 0.1)),
        linear-gradient(150deg, rgba(0, 102, 204, 0.1) 12%, transparent 12.5%, transparent 87%, rgba(0, 102, 204, 0.1) 87.5%, rgba(0, 102, 204, 0.1));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* --- DMM Advertisement Banner --- */
.dmm-ad-banner {
    background: linear-gradient(135deg, var(--hs-kl-blue) 0%, #0052a3 100%);
    border-left: 4px solid var(--saarbruecken-energy);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dmm-ad-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.dmm-ad-banner a {
    transition: all 0.2s ease;
}

.dmm-ad-banner a:hover {
    background-color: #f1f5f9 !important;
}

/* DMM Sidebar - Fixed Position Styling */
.dmm-ad-sidebar {
    animation: slideInRight 0.5s ease-out;
}

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

/* --- Card Hover Effects --- */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

/* --- Button Styles --- */
.btn-primary {
    background: linear-gradient(135deg, var(--hs-kl-blue) 0%, #0052a3 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--saarbruecken-energy) 0%, #e85d2b 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(255, 107, 53, 0.4);
}

/* --- Section Dividers --- */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 102, 204, 0.3) 50%, transparent 100%);
    margin: 4rem 0;
}

/* --- Testimonial Cards --- */
.testimonial-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--hs-kl-blue);
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-top-color: var(--saarbruecken-energy);
}

.testimonial-quote {
    padding-top: 2rem;
}

.testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--hs-kl-blue);
    opacity: 0.2;
    position: absolute;
    top: 0;
    left: 0;
    font-family: Georgia, serif;
    z-index: 0;
    line-height: 1;
}

.testimonial-quote p {
    position: relative;
    z-index: 1;
}

/* --- Stats Counter --- */
.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--hs-kl-blue) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Icon Containers --- */
.icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hs-kl-blue) 0%, var(--brand-accent) 100%);
    color: white;
    font-size: 1.5rem;
}

/* --- Image Overlays --- */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
    transition: opacity 0.3s ease;
}

.image-overlay:hover::after {
    opacity: 0.7;
}

/* --- Footer Gradient Background --- */
.footer-gradient {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
}

/* --- Responsive Image Scaling --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Loading Animation for Images --- */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* --- Mobile Menu Animation --- */
.mobile-menu-enter {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hs-kl-blue) 0%, var(--brand-accent) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* --- Badge Styles --- */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem; /* rounded-lg für einheitliches Design */
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--bg-light);
    color: var(--hs-kl-blue);
}

.badge-primary {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--hs-kl-blue);
    color: white;
}

.badge-secondary {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--saarbruecken-energy);
    color: white;
}

/* --- Utility Classes --- */
.text-gradient {
    background: linear-gradient(135deg, var(--hs-kl-blue) 0%, var(--brand-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-pattern {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 100% 150%, rgba(0, 102, 204, 0.05) 24%, rgba(0, 102, 204, 0) 25%),
        radial-gradient(circle at 0% 100%, rgba(0, 180, 216, 0.05) 24%, rgba(0, 180, 216, 0) 25%);
    background-size: 3em 3em;
}

/* --- Accessibility Improvements --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid var(--hs-kl-blue);
    outline-offset: 2px;
}

/* --- Print Styles --- */
@media print {
    .dmm-ad-sidebar,
    nav,
    footer,
    .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .dmm-ad-sidebar {
        display: none;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .icon-container {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* --- Dark Mode Support (optional) --- */
@media (prefers-color-scheme: dark) {
    /* Kann bei Bedarf aktiviert werden */
}
