/* ===== MODERNE EFFEKTE FÜR MEDICAL-SERVICE.CENTER ===== */

/* CSS-Variablen für konsistente Farben */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #4a90e2;
    --accent-color: #00d4aa;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-medical: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 60px rgba(103, 126, 234, 0.3);
    --border-radius-modern: 20px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Globale Animationen */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(74, 144, 226, 0.8);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered Animationen */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: var(--transition-smooth);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Banner/Hero-Section Verbesserungen */
#banner {
    position: relative;
    background: var(--gradient-medical);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="rgba(255,255,255,0.05)" points="0,1000 1000,800 1000,1000"/></svg>');
    animation: float 6s ease-in-out infinite;
}

#banner header {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: slideInFromTop 1s ease-out;
}

#banner header h3 {
    color: white;
    font-size: 2.5em;
    font-weight: 300;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    margin: 0;
    animation: fadeInUp 1s ease-out 0.3s both;
}

/* Moderne Card-Effekte für Highlights */
.box.highlight {
    background: white;
    border-radius: var(--border-radius-modern);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.box.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: var(--transition-smooth);
    z-index: 1;
    opacity: 0;
}

.box.highlight:hover::before {
    left: 0;
    opacity: 0.1;
}

.box.highlight:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.box.highlight * {
    position: relative;
    z-index: 2;
}

.box.highlight .icon.major {
    transition: var(--transition-smooth);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.box.highlight:hover .icon.major {
    transform: scale(1.1) rotate(5deg);
    animation: pulseGlow 2s infinite;
}

/* Moderne Button-Effekte */
.button {
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    padding: 15px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 8px 25px rgba(103, 126, 234, 0.3);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.button:hover::before {
    width: 300px;
    height: 300px;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(103, 126, 234, 0.4);
}

.button.alt {
    background: var(--gradient-medical);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.3);
}

.button.alt:hover {
    box-shadow: 0 15px 40px rgba(79, 172, 254, 0.4);
}

/* Verbesserte Post-Box (Röntgenbild-Sektion) */
.box.post {
    background: white;
    border-radius: var(--border-radius-modern);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
}

.box.post::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-medical);
}

.box.post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.box.post .image.left img {
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.box.post:hover .image.left img {
    transform: scale(1.05);
}

/* Eingabefelder modernisieren */
input[type="text"], input[type="password"] {
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    padding: 15px 20px;
    font-size: 1em;
    transition: var(--transition-smooth);
    background: white;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    outline: none;
    transform: translateY(-2px);
}

/* Wrapper-Stile verbessern */
.wrapper.style1 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    position: relative;
}

.wrapper.style3 {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.wrapper.style3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle fill="rgba(255,255,255,0.03)" cx="200" cy="200" r="150"/><circle fill="rgba(255,255,255,0.03)" cx="800" cy="600" r="200"/></svg>');
}

/* Header Navigation verbessern */
#header {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

#nav ul li a {
    transition: var(--transition-smooth);
    border-radius: 25px;
    margin: 0 5px;
}

#nav ul li a:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(103, 126, 234, 0.3);
}

/* Responsive Verbesserungen */
@media screen and (max-width: 768px) {
    #banner header h3 {
        font-size: 1.8em;
    }
    
    .box.highlight:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    .button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
}

/* Loading Animation für die gesamte Seite */
body {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth Scroll für die gesamte Seite */
html {
    scroll-behavior: smooth;
}

/* Glitzer-Effekt für besondere Elemente */
.sparkle {
    position: relative;
}

.sparkle::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.2em;
    animation: float 3s ease-in-out infinite;
    opacity: 0.7;
}